_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());
  ------------------
  |  |   84|      4|   do {                                                                     \
  |  |   85|      4|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   86|      4|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 4]
  |  |  ------------------
  |  |   87|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   88|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   89|      0|      }                                                                     \
  |  |   90|      4|   } while(0)
  |  |  ------------------
  |  |  |  Branch (90: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());
  ------------------
  |  |   84|      2|   do {                                                                     \
  |  |   85|      2|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   86|      2|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 2]
  |  |  ------------------
  |  |   87|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   88|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   89|      0|      }                                                                     \
  |  |   90|      2|   } while(0)
  |  |  ------------------
  |  |  |  Branch (90: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);
  ------------------
  |  |   84|      2|   do {                                                                     \
  |  |   85|      2|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   86|      2|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 2]
  |  |  ------------------
  |  |   87|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   88|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   89|      0|      }                                                                     \
  |  |   90|      2|   } while(0)
  |  |  ------------------
  |  |  |  Branch (90:12): [Folded, False: 2]
  |  |  ------------------
  ------------------
  115|      2|         return std::span(m_buffer).last(elements);
  116|      2|      }
_ZNK5Botan15AlignmentBufferIhLm128ELNS_25AlignmentBufferFinalBlockE0EE4sizeEv:
  217|      2|      constexpr size_t size() const { return m_buffer.size(); }

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

_ZN5Botan17ct_expand_top_bitITkNSt3__117unsigned_integralEmEET_S2_:
   28|   217M|BOTAN_FORCE_INLINE constexpr T ct_expand_top_bit(T a) {
   29|   217M|   const T top = CT::value_barrier<T>(a >> (sizeof(T) * 8 - 1));
   30|   217M|   return static_cast<T>(0) - top;
   31|   217M|}
_ZN5Botan10ct_is_zeroITkNSt3__117unsigned_integralEmEET_S2_:
   37|   190M|BOTAN_FORCE_INLINE constexpr T ct_is_zero(T x) {
   38|   190M|   return ct_expand_top_bit<T>(~x & (x - 1));
   39|   190M|}
_ZN5Botan6chooseITkNSt3__117unsigned_integralEmEET_S2_S2_S2_:
  216|   271M|BOTAN_FORCE_INLINE constexpr T choose(T mask, T a, T b) {
  217|       |   //return (mask & a) | (~mask & b);
  218|   271M|   return (b ^ (mask & (a ^ b)));
  219|   271M|}
_ZN5Botan8high_bitITkNSt3__117unsigned_integralEjEEmT_:
   73|  1.49k|BOTAN_FORCE_INLINE constexpr size_t high_bit(T n) {
   74|  1.49k|   size_t hb = 0;
   75|       |
   76|  8.98k|   for(size_t s = 8 * sizeof(T) / 2; s > 0; s /= 2) {
  ------------------
  |  Branch (76:38): [True: 7.49k, False: 1.49k]
  ------------------
   77|       |      // Equivalent to: ((n >> s) == 0) ? 0 : s;
   78|  7.49k|      const size_t z = s - ct_if_is_zero_ret<T>(n >> s, s);
   79|  7.49k|      hb += z;
   80|  7.49k|      n >>= z;
   81|  7.49k|   }
   82|       |
   83|  1.49k|   hb += static_cast<size_t>(n);
   84|       |
   85|  1.49k|   return hb;
   86|  1.49k|}
_ZN5Botan17ct_if_is_zero_retITkNSt3__117unsigned_integralEjEEmT_m:
   45|  7.49k|BOTAN_FORCE_INLINE constexpr size_t ct_if_is_zero_ret(T x, size_t s) {
   46|       |   /*
   47|       |   Similar to `return ct_is_zero(x) & s` but has to account for possibility that
   48|       |   sizeof(T) is smaller than sizeof(size_t) which would lead to incomplete masking
   49|       |   */
   50|  7.49k|   const T a = ~x & (x - 1);
   51|  7.49k|   const size_t a_top = static_cast<size_t>(CT::value_barrier<T>(a >> (sizeof(T) * 8 - 1)));
   52|  7.49k|   const size_t mask = static_cast<size_t>(0) - a_top;
   53|  7.49k|   return mask & s;
   54|  7.49k|}
_ZN5Botan17ct_if_is_zero_retITkNSt3__117unsigned_integralEmEEmT_m:
   45|   889k|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|   889k|   const T a = ~x & (x - 1);
   51|   889k|   const size_t a_top = static_cast<size_t>(CT::value_barrier<T>(a >> (sizeof(T) * 8 - 1)));
   52|   889k|   const size_t mask = static_cast<size_t>(0) - a_top;
   53|   889k|   return mask & s;
   54|   889k|}
_ZN5Botan3ctzITkNSt3__117unsigned_integralEmEEmT_:
  115|  79.3k|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|  79.3k|   size_t lb = ct_if_is_zero_ret<T>(n, 1);
  121|       |
  122|   555k|   for(size_t s = 8 * sizeof(T) / 2; s > 0; s /= 2) {
  ------------------
  |  Branch (122:38): [True: 475k, False: 79.3k]
  ------------------
  123|   475k|      const T range = (static_cast<T>(1) << s) - 1;
  124|       |      // Equivalent to: ((n & range) == 0) ? s : 0;
  125|   475k|      const size_t z = ct_if_is_zero_ret<T>(n & range, s);
  126|   475k|      lb += z;
  127|   475k|      n >>= z;
  128|   475k|   }
  129|       |
  130|  79.3k|   return lb;
  131|  79.3k|}
_ZN5Botan13is_power_of_2ITkNSt3__117unsigned_integralEmEEbT_:
   62|  9.77k|BOTAN_FORCE_INLINE constexpr bool is_power_of_2(T arg) {
   63|  9.77k|   return (arg != 0) && (arg != 1) && ((arg & static_cast<T>(arg - 1)) == 0);
  ------------------
  |  Branch (63:11): [True: 9.77k, False: 0]
  |  Branch (63:25): [True: 9.77k, False: 0]
  |  Branch (63:39): [True: 5.28k, False: 4.48k]
  ------------------
   64|  9.77k|}
_ZN5Botan8majorityITkNSt3__117unsigned_integralEmEET_S2_S2_S2_:
  222|    160|BOTAN_FORCE_INLINE constexpr T majority(T a, T b, T c) {
  223|       |   /*
  224|       |   Considering each bit of a, b, c individually
  225|       |
  226|       |   If a xor b is set, then c is the deciding vote.
  227|       |
  228|       |   If a xor b is not set then either a and b are both set or both unset.
  229|       |   In either case the value of c doesn't matter, and examining b (or a)
  230|       |   allows us to determine which case we are in.
  231|       |   */
  232|    160|   return choose(a ^ b, c, b);
  233|    160|}
_ZN5Botan8high_bitITkNSt3__117unsigned_integralEmEEmT_:
   73|  55.6k|BOTAN_FORCE_INLINE constexpr size_t high_bit(T n) {
   74|  55.6k|   size_t hb = 0;
   75|       |
   76|   389k|   for(size_t s = 8 * sizeof(T) / 2; s > 0; s /= 2) {
  ------------------
  |  Branch (76:38): [True: 333k, False: 55.6k]
  ------------------
   77|       |      // Equivalent to: ((n >> s) == 0) ? 0 : s;
   78|   333k|      const size_t z = s - ct_if_is_zero_ret<T>(n >> s, s);
   79|   333k|      hb += z;
   80|   333k|      n >>= z;
   81|   333k|   }
   82|       |
   83|  55.6k|   hb += static_cast<size_t>(n);
   84|       |
   85|  55.6k|   return hb;
   86|  55.6k|}
_ZN5Botan9ceil_log2ITkNSt3__117unsigned_integralEmEEhT_QltstS2_Li32E:
  142|    819|{
  143|    819|   if(x >> (sizeof(T) * 8 - 1)) {
  ------------------
  |  Branch (143:7): [True: 0, False: 819]
  ------------------
  144|      0|      return sizeof(T) * 8;
  145|      0|   }
  146|       |
  147|    819|   uint8_t result = 0;
  148|    819|   T compare = 1;
  149|       |
  150|  9.59k|   while(compare < x) {
  ------------------
  |  Branch (150:10): [True: 8.78k, False: 819]
  ------------------
  151|  8.78k|      compare <<= 1;
  152|  8.78k|      result++;
  153|  8.78k|   }
  154|       |
  155|    819|   return result;
  156|    819|}
_ZN5Botan10ct_is_zeroITkNSt3__117unsigned_integralEhEET_S2_:
   37|   441k|BOTAN_FORCE_INLINE constexpr T ct_is_zero(T x) {
   38|   441k|   return ct_expand_top_bit<T>(~x & (x - 1));
   39|   441k|}
_ZN5Botan17ct_expand_top_bitITkNSt3__117unsigned_integralEhEET_S2_:
   28|   441k|BOTAN_FORCE_INLINE constexpr T ct_expand_top_bit(T a) {
   29|   441k|   const T top = CT::value_barrier<T>(a >> (sizeof(T) * 8 - 1));
   30|   441k|   return static_cast<T>(0) - top;
   31|   441k|}
_ZN5Botan6chooseITkNSt3__117unsigned_integralEhEET_S2_S2_S2_:
  216|   441k|BOTAN_FORCE_INLINE constexpr T choose(T mask, T a, T b) {
  217|       |   //return (mask & a) | (~mask & b);
  218|   441k|   return (b ^ (mask & (a ^ b)));
  219|   441k|}
_ZN5Botan9ceil_log2ITkNSt3__117unsigned_integralEjEEhT_QltstS2_Li32E:
  142|     64|{
  143|     64|   if(x >> (sizeof(T) * 8 - 1)) {
  ------------------
  |  Branch (143:7): [True: 0, False: 64]
  ------------------
  144|      0|      return sizeof(T) * 8;
  145|      0|   }
  146|       |
  147|     64|   uint8_t result = 0;
  148|     64|   T compare = 1;
  149|       |
  150|    500|   while(compare < x) {
  ------------------
  |  Branch (150:10): [True: 436, False: 64]
  ------------------
  151|    436|      compare <<= 1;
  152|    436|      result++;
  153|    436|   }
  154|       |
  155|     64|   return result;
  156|     64|}
_ZN5Botan12ceil_tobytesITkNSt3__117unsigned_integralEjEET_S2_:
  175|    128|BOTAN_FORCE_INLINE constexpr T ceil_tobytes(T bits) {
  176|    128|   return (bits + 7) / 8;
  177|    128|}
_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|   119k|BOTAN_FORCE_INLINE constexpr T ct_expand_top_bit(T a) {
   29|   119k|   const T top = CT::value_barrier<T>(a >> (sizeof(T) * 8 - 1));
   30|   119k|   return static_cast<T>(0) - top;
   31|   119k|}

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

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

_ZN5Botan13BufferStufferC2ENSt3__14spanIhLm18446744073709551615EEE:
   26|   893k|      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.11M|      constexpr std::span<uint8_t> next(size_t bytes) {
   33|  1.11M|         BOTAN_STATE_CHECK(m_buffer.size() >= bytes);
  ------------------
  |  |   51|  1.11M|   do {                                                         \
  |  |   52|  1.11M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|  1.11M|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 1.11M]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|  1.11M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 1.11M]
  |  |  ------------------
  ------------------
   34|       |
   35|  1.11M|         auto result = m_buffer.first(bytes);
   36|  1.11M|         m_buffer = m_buffer.subspan(bytes);
   37|  1.11M|         return result;
   38|  1.11M|      }
_ZN5Botan13BufferStuffer6appendENSt3__14spanIKhLm18446744073709551615EEE:
   59|  1.11M|      constexpr void append(std::span<const uint8_t> buffer) {
   60|  1.11M|         auto sink = next(buffer.size());
   61|  1.11M|         std::copy(buffer.begin(), buffer.end(), sink.begin());
   62|  1.11M|      }
_ZNK5Botan13BufferStuffer4fullEv:
   69|   892k|      constexpr bool full() const { return m_buffer.empty(); }
_ZN5Botan13BufferStuffer4nextILm32EEENSt3__14spanIhXT_EEEv:
   41|    704|      constexpr std::span<uint8_t, bytes> next() {
   42|    704|         BOTAN_STATE_CHECK(m_buffer.size() >= bytes);
  ------------------
  |  |   51|    704|   do {                                                         \
  |  |   52|    704|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|    704|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 704]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|    704|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 704]
  |  |  ------------------
  ------------------
   43|       |
   44|    704|         auto result = m_buffer.first<bytes>();
   45|    704|         m_buffer = m_buffer.subspan(bytes);
   46|    704|         return result;
   47|    704|      }
_ZN5Botan13BufferStuffer4nextILm48EEENSt3__14spanIhXT_EEEv:
   41|    552|      constexpr std::span<uint8_t, bytes> next() {
   42|    552|         BOTAN_STATE_CHECK(m_buffer.size() >= bytes);
  ------------------
  |  |   51|    552|   do {                                                         \
  |  |   52|    552|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|    552|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 552]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|    552|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 552]
  |  |  ------------------
  ------------------
   43|       |
   44|    552|         auto result = m_buffer.first<bytes>();
   45|    552|         m_buffer = m_buffer.subspan(bytes);
   46|    552|         return result;
   47|    552|      }
_ZN5Botan13BufferStuffer4nextILm64EEENSt3__14spanIhXT_EEEv:
   41|    344|      constexpr std::span<uint8_t, bytes> next() {
   42|    344|         BOTAN_STATE_CHECK(m_buffer.size() >= bytes);
  ------------------
  |  |   51|    344|   do {                                                         \
  |  |   52|    344|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|    344|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 344]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|    344|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 344]
  |  |  ------------------
  ------------------
   43|       |
   44|    344|         auto result = m_buffer.first<bytes>();
   45|    344|         m_buffer = m_buffer.subspan(bytes);
   46|    344|         return result;
   47|    344|      }
_ZN5Botan13BufferStuffer4nextILm28EEENSt3__14spanIhXT_EEEv:
   41|    444|      constexpr std::span<uint8_t, bytes> next() {
   42|    444|         BOTAN_STATE_CHECK(m_buffer.size() >= bytes);
  ------------------
  |  |   51|    444|   do {                                                         \
  |  |   52|    444|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|    444|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 444]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|    444|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 444]
  |  |  ------------------
  ------------------
   43|       |
   44|    444|         auto result = m_buffer.first<bytes>();
   45|    444|         m_buffer = m_buffer.subspan(bytes);
   46|    444|         return result;
   47|    444|      }
_ZN5Botan13BufferStuffer4nextILm66EEENSt3__14spanIhXT_EEEv:
   41|    352|      constexpr std::span<uint8_t, bytes> next() {
   42|    352|         BOTAN_STATE_CHECK(m_buffer.size() >= bytes);
  ------------------
  |  |   51|    352|   do {                                                         \
  |  |   52|    352|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|    352|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 352]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|    352|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 352]
  |  |  ------------------
  ------------------
   43|       |
   44|    352|         auto result = m_buffer.first<bytes>();
   45|    352|         m_buffer = m_buffer.subspan(bytes);
   46|    352|         return result;
   47|    352|      }

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

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

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

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

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

_ZN5Botan2CT6Choice9from_maskEm:
  303|  7.28M|      constexpr static Choice from_mask(underlying_type v) { return Choice(v); }
_ZN5Botan2CT6Choice2noEv:
  307|    353|      constexpr static Choice no() { return Choice(0); }
_ZNK5Botan2CT6ChoicentEv:
  309|  2.55M|      constexpr Choice operator!() const { return Choice(~value()); }
_ZNK5Botan2CT6ChoiceaaERKS1_:
  311|  3.29M|      constexpr Choice operator&&(const Choice& other) const { return Choice(value() & other.value()); }
_ZNK5Botan2CT6ChoiceooERKS1_:
  313|   526k|      constexpr Choice operator||(const Choice& other) const { return Choice(value() | other.value()); }
_ZNK5Botan2CT6Choice7as_boolEv:
  329|  2.55M|      constexpr bool as_bool() const { return m_value != 0; }
_ZNK5Botan2CT6Choice5valueEv:
  332|  13.5M|      constexpr underlying_type value() const { return value_barrier(m_value); }
_ZN5Botan2CT6ChoiceC2Em:
  341|  15.4M|      constexpr explicit Choice(underlying_type v) : m_value(CT::value_barrier<underlying_type>(v)) {}
_ZN5Botan2CT4MaskImE7is_zeroEm:
  437|  74.2M|      static constexpr Mask<T> is_zero(T x) { return Mask<T>(ct_is_zero<T>(value_barrier<T>(x))); }
_ZNK5Botan2CT4MaskImE5valueEv:
  630|   198M|      constexpr T value() const { return value_barrier<T>(m_mask); }
_ZNK5Botan2CT4MaskImEcoEv:
  533|  32.3M|      constexpr Mask<T> operator~() const { return Mask<T>(~value()); }
_ZN5Botan2CT4MaskImE6expandEm:
  392|  31.4M|      static constexpr Mask<T> expand(T v) { return ~Mask<T>::is_zero(value_barrier<T>(v)); }
_ZN5Botan2CT6poisonImEEvPKT_m:
   56|  2.02M|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.02M|   BOTAN_UNUSED(p, n);
  ------------------
  |  |  151|  2.02M|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
   64|  2.02M|}
_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|  19.7k|constexpr void poison(const R& r) {
  122|  19.7k|   const std::span s{r};
  123|  19.7k|   poison(s.data(), s.size());
  124|  19.7k|}
_ZN5Botan2CT8unpoisonImEEvPKT_m:
   67|  30.8M|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|  30.8M|   BOTAN_UNUSED(p, n);
  ------------------
  |  |  151|  30.8M|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
   75|  30.8M|}
_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|  6.01M|constexpr void unpoison(const R& r) {
  129|  6.01M|   const std::span s{r};
  130|  6.01M|   unpoison(s.data(), s.size());
  131|  6.01M|}
_ZNK5Botan2CT4MaskImE6selectEmm:
  548|  50.8M|      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|      }
_ZN5Botan2CTanENS0_4MaskImEES2_:
  518|   441k|      friend constexpr Mask<T> operator&(Mask<T> x, Mask<T> y) { return Mask<T>(x.value() & y.value()); }
_ZN5Botan2CT4MaskImEC2Em:
  637|   145M|      constexpr explicit Mask(T m) : m_mask(m) {}
_ZN5Botan2CT9all_zerosImEENS0_4MaskIT_EEPKS3_m:
  785|  4.64M|constexpr inline CT::Mask<T> all_zeros(const T elem[], size_t len) {
  786|  4.64M|   T sum = 0;
  787|  36.8M|   for(size_t i = 0; i != len; ++i) {
  ------------------
  |  Branch (787:22): [True: 32.2M, False: 4.64M]
  ------------------
  788|  32.2M|      sum |= elem[i];
  789|  32.2M|   }
  790|  4.64M|   return CT::Mask<T>::is_zero(sum);
  791|  4.64M|}
_ZNK5Botan2CT4MaskImE7as_boolEv:
  614|   195k|      constexpr bool as_bool() const { return unpoisoned_value() != 0; }
_ZNK5Botan2CT4MaskImE16unpoisoned_valueEv:
  598|  7.48M|      constexpr T unpoisoned_value() const {
  599|  7.48M|         T r = value();
  600|  7.48M|         CT::unpoison(r);
  601|  7.48M|         return r;
  602|  7.48M|      }
_ZN5Botan2CT8unpoisonITkNSt3__18integralEmEEvRKT_:
  112|  17.7M|constexpr void unpoison(const T& p) {
  113|  17.7M|   unpoison(&p, 1);
  114|  17.7M|}
_ZN5Botan2CT4MaskImE8is_equalEmm:
  442|  31.7M|      static constexpr Mask<T> is_equal(T x, T y) {
  443|  31.7M|         const T diff = value_barrier(x) ^ value_barrier(y);
  444|  31.7M|         return Mask<T>::is_zero(diff);
  445|  31.7M|      }
_ZNK5Botan2CT4MaskImE13if_set_returnEm:
  538|  26.3M|      constexpr T if_set_return(T x) const { return value() & x; }
_ZN5Botan2CT4MaskImE5is_ltEmm:
  450|  26.3M|      static constexpr Mask<T> is_lt(T x, T y) {
  451|  26.3M|         T u = x ^ ((x ^ y) | ((x - y) ^ x));
  452|  26.3M|         return Mask<T>::expand_top_bit(u);
  453|  26.3M|      }
_ZN5Botan2CT4MaskImE14expand_top_bitEm:
  415|  27.0M|      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.05M|constexpr inline Mask<T> conditional_copy_mem(T cnd, T* dest, const T* if_set, const T* if_unset, size_t elems) {
  739|  2.05M|   const auto mask = CT::Mask<T>::expand(cnd);
  740|  2.05M|   return CT::conditional_copy_mem(mask, dest, if_set, if_unset, elems);
  741|  2.05M|}
_ZN5Botan2CT20conditional_copy_memImEENS0_4MaskIT_EES4_PS3_PKS3_S7_m:
  732|  2.05M|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.05M|   mask.select_n(dest, if_set, if_unset, elems);
  734|  2.05M|   return mask;
  735|  2.05M|}
_ZNK5Botan2CT4MaskImE8select_nEPmPKmS5_m:
  565|  29.7M|      constexpr void select_n(T output[], const T x[], const T y[], size_t len) const {
  566|  29.7M|         const T mask = value();
  567|   198M|         for(size_t i = 0; i != len; ++i) {
  ------------------
  |  Branch (567:28): [True: 168M, False: 29.7M]
  ------------------
  568|   168M|            output[i] = choose(mask, x[i], y[i]);
  569|   168M|         }
  570|  29.7M|      }
_ZN5Botan2CT4MaskImE5is_gtEmm:
  458|   524k|      static constexpr Mask<T> is_gt(T x, T y) { return Mask<T>::is_lt(y, x); }
_ZN5Botan2CT4MaskImE6is_gteEmm:
  468|   828k|      static constexpr Mask<T> is_gte(T x, T y) { return ~Mask<T>::is_lt(x, y); }
_ZNK5Botan2CT4MaskImE11select_maskES2_S2_:
  559|  10.8M|      Mask<T> select_mask(Mask<T> x, Mask<T> y) const { return Mask<T>(select(x.value(), y.value())); }
_ZN5Botan2CT4MaskImEoRES2_:
  510|   110k|      Mask<T>& operator|=(Mask<T> o) {
  511|   110k|         m_mask |= o.value();
  512|   110k|         return (*this);
  513|   110k|      }
_ZN5Botan2CT4MaskImEaNES2_:
  494|  1.76M|      Mask<T>& operator&=(Mask<T> o) {
  495|  1.76M|         m_mask &= o.value();
  496|  1.76M|         return (*this);
  497|  1.76M|      }
_ZN5Botan2CT4MaskImE11expand_boolEb:
  397|   436k|      static constexpr Mask<T> expand_bool(bool v) { return Mask<T>::expand(static_cast<T>(v)); }
_ZN5Botan2CT4MaskIhE11expand_boolEb:
  397|   441k|      static constexpr Mask<T> expand_bool(bool v) { return Mask<T>::expand(static_cast<T>(v)); }
_ZN5Botan2CT4MaskIhE6expandEh:
  392|   441k|      static constexpr Mask<T> expand(T v) { return ~Mask<T>::is_zero(value_barrier<T>(v)); }
_ZN5Botan2CT4MaskIhE7is_zeroEh:
  437|   441k|      static constexpr Mask<T> is_zero(T x) { return Mask<T>(ct_is_zero<T>(value_barrier<T>(x))); }
_ZN5Botan2CT4MaskIhEC2Eh:
  637|   882k|      constexpr explicit Mask(T m) : m_mask(m) {}
_ZNK5Botan2CT4MaskIhEcoEv:
  533|   441k|      constexpr Mask<T> operator~() const { return Mask<T>(~value()); }
_ZNK5Botan2CT4MaskIhE5valueEv:
  630|   882k|      constexpr T value() const { return value_barrier<T>(m_mask); }
_ZNK5Botan2CT4MaskIhE6selectEhh:
  548|   441k|      constexpr T select(T x, T y) const { return choose(value(), x, y); }
_ZNK5Botan2CT4MaskImE9as_choiceEv:
  619|  7.28M|      constexpr CT::Choice as_choice() const {
  620|  7.28M|         if constexpr(sizeof(T) >= sizeof(Choice::underlying_type)) {
  621|  7.28M|            return CT::Choice::from_mask(static_cast<Choice::underlying_type>(unpoisoned_value()));
  622|       |         } else {
  623|       |            return CT::Choice::from_int(unpoisoned_value());
  624|       |         }
  625|  7.28M|      }
_ZN5Botan2CTorENS0_4MaskImEES2_:
  528|  1.02M|      friend constexpr Mask<T> operator|(Mask<T> x, Mask<T> y) { return Mask<T>(x.value() | y.value()); }
_ZN5Botan2CTeoENS0_4MaskImEES2_:
  523|    224|      friend constexpr Mask<T> operator^(Mask<T> x, Mask<T> y) { return Mask<T>(x.value() ^ y.value()); }
_ZN5Botan2CT6Choice8from_intIjQaasr3stdE17unsigned_integralIT_Entsr3stdE7same_asIbS3_EEES1_S3_:
  268|  1.78M|      constexpr static Choice from_int(T v) {
  269|  1.78M|         if constexpr(sizeof(T) <= sizeof(underlying_type)) {
  270|  1.78M|            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|  1.78M|      }
_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.00M|constexpr void poison(const R& r) {
  122|  2.00M|   const std::span s{r};
  123|  2.00M|   poison(s.data(), s.size());
  124|  2.00M|}
_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.00M|constexpr void unpoison(const R& r) {
  129|  2.00M|   const std::span s{r};
  130|  2.00M|   unpoison(s.data(), s.size());
  131|  2.00M|}
_ZN5Botan2CT4MaskImE15if_set_zero_outEPmm:
  575|  2.33M|      constexpr void if_set_zero_out(T buf[], size_t elems) {
  576|  23.3M|         for(size_t i = 0; i != elems; ++i) {
  ------------------
  |  Branch (576:28): [True: 21.0M, False: 2.33M]
  ------------------
  577|  21.0M|            buf[i] = this->if_not_set_return(buf[i]);
  578|  21.0M|         }
  579|  2.33M|      }
_ZNK5Botan2CT4MaskImE17if_not_set_returnEm:
  543|  21.0M|      constexpr T if_not_set_return(T x) const { return ~value() & x; }
_ZN5Botan2CT22conditional_assign_memImEENS0_4MaskIT_EES3_PS3_PKS3_m:
  749|  21.6M|constexpr inline Mask<T> conditional_assign_mem(T cnd, T* dest, const T* src, size_t elems) {
  750|  21.6M|   const auto mask = CT::Mask<T>::expand(cnd);
  751|  21.6M|   mask.select_n(dest, src, dest, elems);
  752|  21.6M|   return mask;
  753|  21.6M|}
_ZN5Botan2CT4MaskImE7clearedEv:
  387|  9.93k|      static constexpr Mask<T> cleared() { return Mask<T>(0); }
_ZN5Botan2CT16driveby_unpoisonITkNS0_12unpoisonableEmEEDcOT_Qsr3stdE21is_rvalue_reference_vIDtfp_EE:
  245|  1.01k|{
  246|  1.01k|   unpoison(v);
  247|  1.01k|   return std::forward<T>(v);
  248|  1.01k|}
_ZNK5Botan2CT6Choice12into_bitmaskImQaasr3stdE17unsigned_integralIT_Entsr3stdE7same_asIbS3_EEES3_v:
  291|  3.35M|      constexpr T into_bitmask() const {
  292|  3.35M|         if constexpr(sizeof(T) <= sizeof(underlying_type)) {
  293|       |            // The inner mask is already |0| or |1| so just truncate
  294|  3.35M|            return static_cast<T>(value());
  295|       |         } else {
  296|       |            return ~ct_is_zero<T>(value());
  297|       |         }
  298|  3.35M|      }
_ZN5Botan2CT6poisonIhEEvPKT_m:
   56|  1.30k|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.30k|   BOTAN_UNUSED(p, n);
  ------------------
  |  |  151|  1.30k|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
   64|  1.30k|}
pcurves_brainpool256r1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES4_E11FieldParamsEEEEES9_EEEEvRKT_:
  138|    130|constexpr void poison(const T& x) {
  139|    130|   x._const_time_poison();
  140|    130|}
pcurves_brainpool256r1.cpp:_ZN5Botan2CT10poison_allITpTkNS0_10poisonableEJNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES3_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  201|    130|constexpr void poison_all(const Ts&... ts) {
  202|    130|   (poison(ts), ...);
  203|    130|}
pcurves_brainpool256r1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES3_E11FieldParamsEEEEEEEvRKT_:
  138|    390|constexpr void poison(const T& x) {
  139|    390|   x._const_time_poison();
  140|    390|}
_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.72k|constexpr void poison(const R& r) {
  122|  1.72k|   const std::span s{r};
  123|  1.72k|   poison(s.data(), s.size());
  124|  1.72k|}
pcurves_brainpool256r1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES4_E11FieldParamsEEEEES9_EEEEvRKT_:
  143|    130|constexpr void unpoison(const T& x) {
  144|    130|   x._const_time_unpoison();
  145|    130|}
pcurves_brainpool256r1.cpp:_ZN5Botan2CT12unpoison_allITpTkNS0_12unpoisonableEJNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES3_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  207|    130|constexpr void unpoison_all(const Ts&... ts) {
  208|    130|   (unpoison(ts), ...);
  209|    130|}
pcurves_brainpool256r1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES3_E11FieldParamsEEEEEEEvRKT_:
  143|    390|constexpr void unpoison(const T& x) {
  144|    390|   x._const_time_unpoison();
  145|    390|}
_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.72k|constexpr void unpoison(const R& r) {
  129|  1.72k|   const std::span s{r};
  130|  1.72k|   unpoison(s.data(), s.size());
  131|  1.72k|}
_ZN5Botan2CT8unpoisonIhEEvPKT_m:
   67|  1.47k|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.47k|   BOTAN_UNUSED(p, n);
  ------------------
  |  |  151|  1.47k|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
   75|  1.47k|}
_ZN5Botan2CT8is_equalImEENS0_4MaskIT_EEPKS3_S6_m:
  798|  1.63k|constexpr inline CT::Mask<T> is_equal(const T x[], const T y[], size_t len) {
  799|  1.63k|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (799:7): [Folded, False: 1.63k]
  ------------------
  800|      0|      T difference = 0;
  801|       |
  802|      0|      for(size_t i = 0; i != len; ++i) {
  ------------------
  |  Branch (802:25): [True: 0, False: 0]
  ------------------
  803|      0|         difference = difference | (x[i] ^ y[i]);
  804|      0|      }
  805|       |
  806|      0|      return CT::Mask<T>::is_zero(difference);
  807|  1.63k|   } else {
  808|  1.63k|      volatile T difference = 0;
  809|       |
  810|  10.5k|      for(size_t i = 0; i != len; ++i) {
  ------------------
  |  Branch (810:25): [True: 8.93k, False: 1.63k]
  ------------------
  811|  8.93k|         difference = difference | (x[i] ^ y[i]);
  812|  8.93k|      }
  813|       |
  814|  1.63k|      return CT::Mask<T>::is_zero(difference);
  815|  1.63k|   }
  816|  1.63k|}
pcurves_brainpool384r1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES4_E11FieldParamsEEEEES9_EEEEvRKT_:
  138|    126|constexpr void poison(const T& x) {
  139|    126|   x._const_time_poison();
  140|    126|}
pcurves_brainpool384r1.cpp:_ZN5Botan2CT10poison_allITpTkNS0_10poisonableEJNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES3_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  201|    126|constexpr void poison_all(const Ts&... ts) {
  202|    126|   (poison(ts), ...);
  203|    126|}
pcurves_brainpool384r1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES3_E11FieldParamsEEEEEEEvRKT_:
  138|    378|constexpr void poison(const T& x) {
  139|    378|   x._const_time_poison();
  140|    378|}
_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|    828|constexpr void poison(const R& r) {
  122|    828|   const std::span s{r};
  123|    828|   poison(s.data(), s.size());
  124|    828|}
pcurves_brainpool384r1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES4_E11FieldParamsEEEEES9_EEEEvRKT_:
  143|    126|constexpr void unpoison(const T& x) {
  144|    126|   x._const_time_unpoison();
  145|    126|}
pcurves_brainpool384r1.cpp:_ZN5Botan2CT12unpoison_allITpTkNS0_12unpoisonableEJNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES3_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  207|    126|constexpr void unpoison_all(const Ts&... ts) {
  208|    126|   (unpoison(ts), ...);
  209|    126|}
pcurves_brainpool384r1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES3_E11FieldParamsEEEEEEEvRKT_:
  143|    378|constexpr void unpoison(const T& x) {
  144|    378|   x._const_time_unpoison();
  145|    378|}
_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|    828|constexpr void unpoison(const R& r) {
  129|    828|   const std::span s{r};
  130|    828|   unpoison(s.data(), s.size());
  131|    828|}
pcurves_brainpool512r1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES4_E11FieldParamsEEEEES9_EEEEvRKT_:
  138|    172|constexpr void poison(const T& x) {
  139|    172|   x._const_time_poison();
  140|    172|}
pcurves_brainpool512r1.cpp:_ZN5Botan2CT10poison_allITpTkNS0_10poisonableEJNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES3_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  201|    172|constexpr void poison_all(const Ts&... ts) {
  202|    172|   (poison(ts), ...);
  203|    172|}
pcurves_brainpool512r1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES3_E11FieldParamsEEEEEEEvRKT_:
  138|    516|constexpr void poison(const T& x) {
  139|    516|   x._const_time_poison();
  140|    516|}
_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|    516|constexpr void poison(const R& r) {
  122|    516|   const std::span s{r};
  123|    516|   poison(s.data(), s.size());
  124|    516|}
pcurves_brainpool512r1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES4_E11FieldParamsEEEEES9_EEEEvRKT_:
  143|    172|constexpr void unpoison(const T& x) {
  144|    172|   x._const_time_unpoison();
  145|    172|}
pcurves_brainpool512r1.cpp:_ZN5Botan2CT12unpoison_allITpTkNS0_12unpoisonableEJNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES3_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  207|    172|constexpr void unpoison_all(const Ts&... ts) {
  208|    172|   (unpoison(ts), ...);
  209|    172|}
pcurves_brainpool512r1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES3_E11FieldParamsEEEEEEEvRKT_:
  143|    516|constexpr void unpoison(const T& x) {
  144|    516|   x._const_time_unpoison();
  145|    516|}
_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|    516|constexpr void unpoison(const R& r) {
  129|    516|   const std::span s{r};
  130|    516|   unpoison(s.data(), s.size());
  131|    516|}
_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_6PCurve22GenericProjectivePointEEEvRKT_:
  138|    254|constexpr void poison(const T& x) {
  139|    254|   x._const_time_poison();
  140|    254|}
pcurves_generic.cpp:_ZN5Botan2CT10poison_allITpTkNS0_10poisonableEJNS_6PCurve12_GLOBAL__N_112GenericFieldES4_S4_EQgtsZT_Li0EEEvDpRKT_:
  201|    254|constexpr void poison_all(const Ts&... ts) {
  202|    254|   (poison(ts), ...);
  203|    254|}
pcurves_generic.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_6PCurve12_GLOBAL__N_112GenericFieldEEEvRKT_:
  138|    762|constexpr void poison(const T& x) {
  139|    762|   x._const_time_poison();
  140|    762|}
_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.28k|constexpr void poison(const R& r) {
  122|  1.28k|   const std::span s{r};
  123|  1.28k|   poison(s.data(), s.size());
  124|  1.28k|}
_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_6PCurve22GenericProjectivePointEEEvRKT_:
  143|    254|constexpr void unpoison(const T& x) {
  144|    254|   x._const_time_unpoison();
  145|    254|}
pcurves_generic.cpp:_ZN5Botan2CT12unpoison_allITpTkNS0_12unpoisonableEJNS_6PCurve12_GLOBAL__N_112GenericFieldES4_S4_EQgtsZT_Li0EEEvDpRKT_:
  207|    254|constexpr void unpoison_all(const Ts&... ts) {
  208|    254|   (unpoison(ts), ...);
  209|    254|}
pcurves_generic.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_6PCurve12_GLOBAL__N_112GenericFieldEEEvRKT_:
  143|    762|constexpr void unpoison(const T& x) {
  144|    762|   x._const_time_unpoison();
  145|    762|}
_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.28k|constexpr void unpoison(const R& r) {
  129|  1.28k|   const std::span s{r};
  130|  1.28k|   unpoison(s.data(), s.size());
  131|  1.28k|}
pcurves_secp224r1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS6_6ParamsES7_E11FieldParamsEEEEES9_EEEEvRKT_:
  138|    222|constexpr void poison(const T& x) {
  139|    222|   x._const_time_poison();
  140|    222|}
pcurves_secp224r1.cpp:_ZN5Botan2CT10poison_allITpTkNS0_10poisonableEJNS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  201|    222|constexpr void poison_all(const Ts&... ts) {
  202|    222|   (poison(ts), ...);
  203|    222|}
pcurves_secp224r1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEEEEvRKT_:
  138|    666|constexpr void poison(const T& x) {
  139|    666|   x._const_time_poison();
  140|    666|}
pcurves_secp224r1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS6_6ParamsES7_E11FieldParamsEEEEES9_EEEEvRKT_:
  143|    222|constexpr void unpoison(const T& x) {
  144|    222|   x._const_time_unpoison();
  145|    222|}
pcurves_secp224r1.cpp:_ZN5Botan2CT12unpoison_allITpTkNS0_12unpoisonableEJNS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  207|    222|constexpr void unpoison_all(const Ts&... ts) {
  208|    222|   (unpoison(ts), ...);
  209|    222|}
pcurves_secp224r1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEEEEvRKT_:
  143|    666|constexpr void unpoison(const T& x) {
  144|    666|   x._const_time_unpoison();
  145|    666|}
pcurves_secp256k1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS6_6ParamsES7_E11FieldParamsEEEEES9_EEEEvRKT_:
  138|    138|constexpr void poison(const T& x) {
  139|    138|   x._const_time_poison();
  140|    138|}
pcurves_secp256k1.cpp:_ZN5Botan2CT10poison_allITpTkNS0_10poisonableEJNS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  201|    138|constexpr void poison_all(const Ts&... ts) {
  202|    138|   (poison(ts), ...);
  203|    138|}
pcurves_secp256k1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEEEEvRKT_:
  138|    414|constexpr void poison(const T& x) {
  139|    414|   x._const_time_poison();
  140|    414|}
pcurves_secp256k1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS6_6ParamsES7_E11FieldParamsEEEEES9_EEEEvRKT_:
  143|    138|constexpr void unpoison(const T& x) {
  144|    138|   x._const_time_unpoison();
  145|    138|}
pcurves_secp256k1.cpp:_ZN5Botan2CT12unpoison_allITpTkNS0_12unpoisonableEJNS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  207|    138|constexpr void unpoison_all(const Ts&... ts) {
  208|    138|   (unpoison(ts), ...);
  209|    138|}
pcurves_secp256k1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEEEEvRKT_:
  143|    414|constexpr void unpoison(const T& x) {
  144|    414|   x._const_time_unpoison();
  145|    414|}
pcurves_secp256r1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS5_9secp256r16ParamsES6_E11FieldParamsEEEEES9_EEEEvRKT_:
  138|     84|constexpr void poison(const T& x) {
  139|     84|   x._const_time_poison();
  140|     84|}
pcurves_secp256r1.cpp:_ZN5Botan2CT10poison_allITpTkNS0_10poisonableEJNS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS4_9secp256r16ParamsES5_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  201|     84|constexpr void poison_all(const Ts&... ts) {
  202|     84|   (poison(ts), ...);
  203|     84|}
pcurves_secp256r1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS4_9secp256r16ParamsES5_E11FieldParamsEEEEEEEvRKT_:
  138|    252|constexpr void poison(const T& x) {
  139|    252|   x._const_time_poison();
  140|    252|}
pcurves_secp256r1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS5_9secp256r16ParamsES6_E11FieldParamsEEEEES9_EEEEvRKT_:
  143|     84|constexpr void unpoison(const T& x) {
  144|     84|   x._const_time_unpoison();
  145|     84|}
pcurves_secp256r1.cpp:_ZN5Botan2CT12unpoison_allITpTkNS0_12unpoisonableEJNS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS4_9secp256r16ParamsES5_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  207|     84|constexpr void unpoison_all(const Ts&... ts) {
  208|     84|   (unpoison(ts), ...);
  209|     84|}
pcurves_secp256r1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS4_9secp256r16ParamsES5_E11FieldParamsEEEEEEEvRKT_:
  143|    252|constexpr void unpoison(const T& x) {
  144|    252|   x._const_time_unpoison();
  145|    252|}
pcurves_secp384r1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS5_9secp384r16ParamsES6_E11FieldParamsEEEEES9_EEEEvRKT_:
  138|    150|constexpr void poison(const T& x) {
  139|    150|   x._const_time_poison();
  140|    150|}
pcurves_secp384r1.cpp:_ZN5Botan2CT10poison_allITpTkNS0_10poisonableEJNS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS4_9secp384r16ParamsES5_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  201|    150|constexpr void poison_all(const Ts&... ts) {
  202|    150|   (poison(ts), ...);
  203|    150|}
pcurves_secp384r1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS4_9secp384r16ParamsES5_E11FieldParamsEEEEEEEvRKT_:
  138|    450|constexpr void poison(const T& x) {
  139|    450|   x._const_time_poison();
  140|    450|}
pcurves_secp384r1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS5_9secp384r16ParamsES6_E11FieldParamsEEEEES9_EEEEvRKT_:
  143|    150|constexpr void unpoison(const T& x) {
  144|    150|   x._const_time_unpoison();
  145|    150|}
pcurves_secp384r1.cpp:_ZN5Botan2CT12unpoison_allITpTkNS0_12unpoisonableEJNS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS4_9secp384r16ParamsES5_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  207|    150|constexpr void unpoison_all(const Ts&... ts) {
  208|    150|   (unpoison(ts), ...);
  209|    150|}
pcurves_secp384r1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS4_9secp384r16ParamsES5_E11FieldParamsEEEEEEEvRKT_:
  143|    450|constexpr void unpoison(const T& x) {
  144|    450|   x._const_time_unpoison();
  145|    450|}
pcurves_secp521r1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS6_6ParamsES7_E11FieldParamsEEEEES9_EEEEvRKT_:
  138|    175|constexpr void poison(const T& x) {
  139|    175|   x._const_time_poison();
  140|    175|}
pcurves_secp521r1.cpp:_ZN5Botan2CT10poison_allITpTkNS0_10poisonableEJNS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  201|    175|constexpr void poison_all(const Ts&... ts) {
  202|    175|   (poison(ts), ...);
  203|    175|}
pcurves_secp521r1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEEEEvRKT_:
  138|    525|constexpr void poison(const T& x) {
  139|    525|   x._const_time_poison();
  140|    525|}
pcurves_secp521r1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS6_6ParamsES7_E11FieldParamsEEEEES9_EEEEvRKT_:
  143|    175|constexpr void unpoison(const T& x) {
  144|    175|   x._const_time_unpoison();
  145|    175|}
pcurves_secp521r1.cpp:_ZN5Botan2CT12unpoison_allITpTkNS0_12unpoisonableEJNS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  207|    175|constexpr void unpoison_all(const Ts&... ts) {
  208|    175|   (unpoison(ts), ...);
  209|    175|}
pcurves_secp521r1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEEEEvRKT_:
  143|    525|constexpr void unpoison(const T& x) {
  144|    525|   x._const_time_unpoison();
  145|    525|}
_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.23k|constexpr void poison_range(const R& r) {
  182|  19.7k|   for(const auto& v : r) {
  ------------------
  |  Branch (182:22): [True: 19.7k, False: 1.23k]
  ------------------
  183|  19.7k|      poison(v);
  184|  19.7k|   }
  185|  1.23k|}
_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_14Montgomery_IntEEEvRKT_:
  138|  19.7k|constexpr void poison(const T& x) {
  139|  19.7k|   x._const_time_poison();
  140|  19.7k|}
_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_14Montgomery_IntEEEvRKT_:
  143|  1.09k|constexpr void unpoison(const T& x) {
  144|  1.09k|   x._const_time_unpoison();
  145|  1.09k|}
_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|   119k|      constexpr T value() const { return value_barrier<T>(m_mask); }
_ZNK5Botan2CT4MaskIjE13if_set_returnEj:
  538|   118k|      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|   312k|constexpr void unpoison(const T& p) {
  113|   312k|   unpoison(&p, 1);
  114|   312k|}
_ZN5Botan2CT8unpoisonIbEEvPKT_m:
   67|   312k|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|   312k|   BOTAN_UNUSED(p, n);
  ------------------
  |  |  151|   312k|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
   75|   312k|}
_ZN5Botan2CT4MaskIjEC2Ej:
  637|   119k|      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|   312k|{
  246|   312k|   unpoison(v);
  247|   312k|   return std::forward<T>(v);
  248|   312k|}
_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|   118k|      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|    865|constexpr void poison(const T& x) {
  139|    865|   x._const_time_poison();
  140|    865|}
_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|    865|constexpr void poison(const R& r) {
  122|    865|   const std::span s{r};
  123|    865|   poison(s.data(), s.size());
  124|    865|}
_ZN5Botan2CT6poisonIiEEvPKT_m:
   56|    865|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|    865|   BOTAN_UNUSED(p, n);
  ------------------
  |  |  151|    865|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
   64|    865|}
_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|     72|constexpr void poison(const R& r) {
  122|     72|   const std::span s{r};
  123|     72|   poison(s.data(), s.size());
  124|     72|}
_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS2_6DomainE0EEEEEvRKT_:
  143|    288|constexpr void unpoison(const T& x) {
  144|    288|   x._const_time_unpoison();
  145|    288|}
_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|    288|constexpr void unpoison_range(const R& r) {
  190|  1.79k|   for(const auto& v : r) {
  ------------------
  |  Branch (190:22): [True: 1.79k, False: 288]
  ------------------
  191|  1.79k|      unpoison(v);
  192|  1.79k|   }
  193|    288|}
_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS2_6DomainE0EEEEEvRKT_:
  143|  1.79k|constexpr void unpoison(const T& x) {
  144|  1.79k|   x._const_time_unpoison();
  145|  1.79k|}
_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.79k|constexpr void unpoison(const R& r) {
  129|  1.79k|   const std::span s{r};
  130|  1.79k|   unpoison(s.data(), s.size());
  131|  1.79k|}
_ZN5Botan2CT8unpoisonIiEEvPKT_m:
   67|  1.79k|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.79k|   BOTAN_UNUSED(p, n);
  ------------------
  |  |  151|  1.79k|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
   75|  1.79k|}
_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_28Dilithium_PrivateKeyInternalEEEvRKT_:
  143|     72|constexpr void unpoison(const T& x) {
  144|     72|   x._const_time_unpoison();
  145|     72|}
_ZN5Botan2CT12unpoison_allITpTkNS0_12unpoisonableEJNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_15DilithiumSeedK_EJEEENS_8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNSA_6DomainE0EEESE_SE_EQgtsZT_Li0EEEvDpRKT_:
  207|     72|constexpr void unpoison_all(const Ts&... ts) {
  208|     72|   (unpoison(ts), ...);
  209|     72|}
_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|     72|constexpr void unpoison(const R& r) {
  129|     72|   const std::span s{r};
  130|     72|   unpoison(s.data(), s.size());
  131|     72|}
_ZN5Botan2CT8unpoisonINS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_24DilithiumSeedRandomness_EJEEEQrQRKT__Xclgssr5Botan2CTE8unpoisonfL0p_EEEEvRKNS3_8optionalISA_EE:
  160|     72|constexpr void unpoison(const std::optional<T>& x) {
  161|     72|   if(x.has_value()) {
  ------------------
  |  Branch (161:7): [True: 72, False: 0]
  ------------------
  162|     72|      unpoison(*x);
  163|     72|   }
  164|     72|}
_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|     72|constexpr void unpoison(const R& r) {
  129|     72|   const std::span s{r};
  130|     72|   unpoison(s.data(), s.size());
  131|     72|}
_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|     72|constexpr void unpoison(const R& r) {
  129|     72|   const std::span s{r};
  130|     72|   unpoison(s.data(), s.size());
  131|     72|}
_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|     28|constexpr void poison(const R& r) {
  122|     28|   const std::span s{r};
  123|     28|   poison(s.data(), s.size());
  124|     28|}
_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|     28|constexpr void unpoison(const R& r) {
  129|     28|   const std::span s{r};
  130|     28|   unpoison(s.data(), s.size());
  131|     28|}
_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS2_6DomainE1EEEEEvRKT_:
  143|     56|constexpr void unpoison(const T& x) {
  144|     56|   x._const_time_unpoison();
  145|     56|}
_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS2_6DomainE1EEEEEvRKT_:
  143|    178|constexpr void unpoison(const T& x) {
  144|    178|   x._const_time_unpoison();
  145|    178|}
_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|     56|constexpr void unpoison_range(const R& r) {
  190|    178|   for(const auto& v : r) {
  ------------------
  |  Branch (190:22): [True: 178, False: 56]
  ------------------
  191|    178|      unpoison(v);
  192|    178|   }
  193|     56|}
_ZN5Botan2CT8unpoisonIsEEvPKT_m:
   67|    178|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|    178|   BOTAN_UNUSED(p, n);
  ------------------
  |  |  151|    178|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
   75|    178|}
_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|    178|constexpr void unpoison(const R& r) {
  129|    178|   const std::span s{r};
  130|    178|   unpoison(s.data(), s.size());
  131|    178|}
_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|     28|constexpr void unpoison(const R& r) {
  129|     28|   const std::span s{r};
  130|     28|   unpoison(s.data(), s.size());
  131|     28|}
_ZN5Botan2CT12unpoison_allITpTkNS0_12unpoisonableEJNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_20KyberSeedRandomness_EJEEENS_8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNSA_6DomainE1EEESE_EQgtsZT_Li0EEEvDpRKT_:
  207|     28|constexpr void unpoison_all(const Ts&... ts) {
  208|     28|   (unpoison(ts), ...);
  209|     28|}
_ZN5Botan2CT4MaskImE10expand_bitEmm:
  421|    256|      static constexpr Mask<T> expand_bit(T v, size_t bit) {
  422|    256|         return CT::Mask<T>::expand_top_bit(v << (sizeof(v) * 8 - 1 - bit));
  423|    256|      }

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

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

_ZN5Botan19DilithiumPolyTraits3nttENSt3__14spanIiLm256EEE:
   50|    401|      static constexpr void ntt(std::span<T, N> coeffs) {
   51|    401|         size_t j = 0;
   52|    401|         size_t k = 0;
   53|       |
   54|  3.60k|         for(size_t len = N / 2; len > 0; len >>= 1) {
  ------------------
  |  Branch (54:34): [True: 3.20k, False: 401]
  ------------------
   55|   105k|            for(size_t start = 0; start < N; start = j + len) {
  ------------------
  |  Branch (55:35): [True: 102k, False: 3.20k]
  ------------------
   56|   102k|               const T zeta = zetas[++k];
   57|   512k|               for(j = start; j < start + len; ++j) {
  ------------------
  |  Branch (57:31): [True: 410k, False: 102k]
  ------------------
   58|       |                  // Zetas contain the montgomery parameter 2^32 mod q
   59|   410k|                  const T t = fqmul(zeta, coeffs[j + len]);
   60|   410k|                  coeffs[j + len] = coeffs[j] - t;
   61|   410k|                  coeffs[j] = coeffs[j] + t;
   62|   410k|               }
   63|   102k|            }
   64|  3.20k|         }
   65|    401|      }
_ZN5Botan19DilithiumPolyTraits29montgomery_reduce_coefficientEl:
   26|  1.69M|      static constexpr T montgomery_reduce_coefficient(T2 a) {
   27|  1.69M|         const T2 t = static_cast<T>(static_cast<T2>(static_cast<T>(a)) * Q_inverse);
   28|  1.69M|         return static_cast<T>((a - static_cast<T2>(t) * Q) >> (sizeof(T) * 8));
   29|  1.69M|      }
_ZN5Botan19DilithiumPolyTraits25poly_pointwise_montgomeryENSt3__14spanIiLm256EEENS2_IKiLm256EEES5_:
  107|  2.68k|                                                      std::span<const T, N> rhs) {
  108|   689k|         for(size_t i = 0; i < N; ++i) {
  ------------------
  |  Branch (108:28): [True: 687k, False: 2.68k]
  ------------------
  109|   687k|            result[i] = fqmul(lhs[i], rhs[i]);
  110|   687k|         }
  111|  2.68k|      }
_ZN5Botan19DilithiumPolyTraits26barrett_reduce_coefficientEi:
   31|   237k|      static constexpr T barrett_reduce_coefficient(T a) {
   32|       |         // 2**22 is roughly Q/2 and 2**23 is roughly Q
   33|   237k|         const T t = (a + (1 << 22)) >> 23;
   34|   237k|         a = a - t * Q;
   35|   237k|         return a;
   36|   237k|      }
_ZN5Botan19DilithiumPolyTraits11inverse_nttENSt3__14spanIiLm256EEE:
   78|    464|      static constexpr void inverse_ntt(std::span<T, N> coeffs) {
   79|    464|         size_t j = 0;
   80|    464|         size_t k = N;
   81|  4.17k|         for(size_t len = 1; len < N; len <<= 1) {
  ------------------
  |  Branch (81:30): [True: 3.71k, False: 464]
  ------------------
   82|   122k|            for(size_t start = 0; start < N; start = j + len) {
  ------------------
  |  Branch (82:35): [True: 118k, False: 3.71k]
  ------------------
   83|   118k|               const T zeta = -zetas[--k];
   84|   593k|               for(j = start; j < start + len; ++j) {
  ------------------
  |  Branch (84:31): [True: 475k, False: 118k]
  ------------------
   85|   475k|                  const T t = coeffs[j];
   86|   475k|                  coeffs[j] = t + coeffs[j + len];
   87|   475k|                  coeffs[j + len] = t - coeffs[j + len];
   88|       |                  // Zetas contain the montgomery parameter 2^32 mod q
   89|   475k|                  coeffs[j + len] = fqmul(zeta, coeffs[j + len]);
   90|   475k|               }
   91|   118k|            }
   92|  3.71k|         }
   93|       |
   94|   118k|         for(auto& coeff : coeffs) {
  ------------------
  |  Branch (94:26): [True: 118k, False: 464]
  ------------------
   95|   118k|            coeff = fqmul(coeff, F_WITH_MONTY_SQUARED);
   96|   118k|         }
   97|    464|      }

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

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

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

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

_ZNK5Botan13EC_Group_Data7p_bytesEv:
  206|  1.34k|      size_t p_bytes() const { return (m_p_bits + 7) / 8; }
_ZNK5Botan13EC_Group_Data11order_bytesEv:
  210|  8.18k|      size_t order_bytes() const { return m_order_bytes; }
_ZNK5Botan13EC_Group_Data1pEv:
  170|   263k|      const BigInt& p() const { return m_p; }
_ZNK5Botan13EC_Group_Data1aEv:
  172|    356|      const BigInt& a() const { return m_a; }
_ZNK5Botan13EC_Group_Data1bEv:
  174|    355|      const BigInt& b() const { return m_b; }
_ZNK5Botan13EC_Group_Data5orderEv:
  176|    210|      const BigInt& order() const { return m_order; }
_ZNK5Botan13EC_Group_Data8cofactorEv:
  178|    210|      const BigInt& cofactor() const { return m_cofactor; }
_ZNK5Botan13EC_Group_Data3oidEv:
  166|  3.49k|      const OID& oid() const { return m_oid; }
_ZNK5Botan13EC_Group_Data5curveEv:
  181|  1.45k|      const CurveGFp& curve() const { return m_curve; }
_ZNK5Botan13EC_Group_Data5montyEv:
  185|  4.91M|      const Montgomery_Params& monty() const { return m_monty; }
_ZNK5Botan13EC_Group_Data7monty_aEv:
  187|    137|      const BigInt& monty_a() const { return m_a_r; }
_ZNK5Botan13EC_Group_Data7monty_bEv:
  189|    137|      const BigInt& monty_b() const { return m_b_r; }
_ZNK5Botan13EC_Group_Data7p_wordsEv:
  202|   402k|      size_t p_words() const { return m_p_words; }
_ZNK5Botan13EC_Group_Data12a_is_minus_3Ev:
  212|  53.5k|      bool a_is_minus_3() const { return m_a_is_minus_3; }
_ZNK5Botan13EC_Group_Data9a_is_zeroEv:
  214|   106k|      bool a_is_zero() const { return m_a_is_zero; }
_ZNK5Botan13EC_Group_Data6pcurveEv:
  297|  7.97k|      const PCurve::PrimeOrderCurve& pcurve() const {
  298|  7.97k|         BOTAN_ASSERT_NONNULL(m_pcurve);
  ------------------
  |  |  123|  7.97k|   do {                                                                                   \
  |  |  124|  7.97k|      if((ptr) == nullptr) {                                                              \
  |  |  ------------------
  |  |  |  Branch (124:10): [True: 0, False: 7.97k]
  |  |  ------------------
  |  |  125|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                              \
  |  |  126|      0|         Botan::assertion_failure(#ptr " is not null", "", __func__, __FILE__, __LINE__); \
  |  |  127|      0|      }                                                                                   \
  |  |  128|  7.97k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (128:12): [Folded, False: 7.97k]
  |  |  ------------------
  ------------------
  299|  7.97k|         return *m_pcurve;
  300|  7.97k|      }
_ZN5Botan19EC_AffinePoint_DataD2Ev:
   74|  1.58k|      virtual ~EC_AffinePoint_Data() = default;
_ZN5Botan14EC_Scalar_DataD2Ev:
   39|  4.17k|      virtual ~EC_Scalar_Data() = default;

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

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

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

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

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

_ZN5Botan3fmtIJNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEES7_NS1_17basic_string_viewIcS4_EEDpRKT_:
   53|    496|std::string fmt(std::string_view format, const T&... args) {
   54|    496|   std::ostringstream oss;
   55|    496|   oss.imbue(std::locale::classic());
   56|    496|   fmt_detail::do_fmt(oss, format, args...);
   57|    496|   return oss.str();
   58|    496|}
_ZN5Botan10fmt_detail6do_fmtINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEJEEEvRNS2_19basic_ostringstreamIcS5_S7_EENS2_17basic_string_viewIcS5_EERKT_DpRKT0_:
   25|    496|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|    496|   size_t i = 0;
   27|       |
   28|  11.4k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 11.4k, False: 0]
  ------------------
   29|  11.4k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 496, False: 10.9k]
  |  Branch (29:30): [True: 496, False: 0]
  |  Branch (29:59): [True: 496, False: 0]
  ------------------
   30|    496|         oss << val;
   31|    496|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  10.9k|      } else {
   33|  10.9k|         oss << format[i];
   34|  10.9k|      }
   35|       |
   36|  10.9k|      i += 1;
   37|  10.9k|   }
   38|    496|}
_ZN5Botan10fmt_detail6do_fmtERNSt3__119basic_ostringstreamIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_17basic_string_viewIcS4_EE:
   20|  12.2k|inline void do_fmt(std::ostringstream& oss, std::string_view format) {
   21|  12.2k|   oss << format;
   22|  12.2k|}
_ZN5Botan3fmtIJNSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEEEENS1_12basic_stringIcS4_NS1_9allocatorIcEEEES5_DpRKT_:
   53|  7.08k|std::string fmt(std::string_view format, const T&... args) {
   54|  7.08k|   std::ostringstream oss;
   55|  7.08k|   oss.imbue(std::locale::classic());
   56|  7.08k|   fmt_detail::do_fmt(oss, format, args...);
   57|  7.08k|   return oss.str();
   58|  7.08k|}
_ZN5Botan10fmt_detail6do_fmtINSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEJEEEvRNS2_19basic_ostringstreamIcS5_NS2_9allocatorIcEEEES6_RKT_DpRKT0_:
   25|  8.82k|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|  8.82k|   size_t i = 0;
   27|       |
   28|  84.7k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 84.7k, False: 0]
  ------------------
   29|  84.7k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 8.82k, False: 75.8k]
  |  Branch (29:30): [True: 8.82k, False: 0]
  |  Branch (29:59): [True: 8.82k, False: 0]
  ------------------
   30|  8.82k|         oss << val;
   31|  8.82k|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  75.8k|      } else {
   33|  75.8k|         oss << format[i];
   34|  75.8k|      }
   35|       |
   36|  75.8k|      i += 1;
   37|  75.8k|   }
   38|  8.82k|}
_ZN5Botan3fmtIJNS_3OIDEEEENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS2_17basic_string_viewIcS5_EEDpRKT_:
   53|  1.67k|std::string fmt(std::string_view format, const T&... args) {
   54|  1.67k|   std::ostringstream oss;
   55|  1.67k|   oss.imbue(std::locale::classic());
   56|  1.67k|   fmt_detail::do_fmt(oss, format, args...);
   57|  1.67k|   return oss.str();
   58|  1.67k|}
_ZN5Botan10fmt_detail6do_fmtINS_3OIDEJEEEvRNSt3__119basic_ostringstreamIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS3_17basic_string_viewIcS6_EERKT_DpRKT0_:
   25|  1.67k|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|  1.67k|   size_t i = 0;
   27|       |
   28|  38.5k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 38.5k, False: 0]
  ------------------
   29|  38.5k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 1.67k, False: 36.8k]
  |  Branch (29:30): [True: 1.67k, False: 0]
  |  Branch (29:59): [True: 1.67k, False: 0]
  ------------------
   30|  1.67k|         oss << val;
   31|  1.67k|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  36.8k|      } else {
   33|  36.8k|         oss << format[i];
   34|  36.8k|      }
   35|       |
   36|  36.8k|      i += 1;
   37|  36.8k|   }
   38|  1.67k|}
_ZN5Botan3fmtIJPKcS2_S2_EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS3_17basic_string_viewIcS6_EEDpRKT_:
   53|      9|std::string fmt(std::string_view format, const T&... args) {
   54|      9|   std::ostringstream oss;
   55|      9|   oss.imbue(std::locale::classic());
   56|      9|   fmt_detail::do_fmt(oss, format, args...);
   57|      9|   return oss.str();
   58|      9|}
_ZN5Botan10fmt_detail6do_fmtIPKcJS3_S3_EEEvRNSt3__119basic_ostringstreamIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_17basic_string_viewIcS7_EERKT_DpRKT0_:
   25|      9|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|      9|   size_t i = 0;
   27|       |
   28|      9|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 9, False: 0]
  ------------------
   29|      9|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 9, False: 0]
  |  Branch (29:30): [True: 9, False: 0]
  |  Branch (29:59): [True: 9, False: 0]
  ------------------
   30|      9|         oss << val;
   31|      9|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|      9|      } else {
   33|      0|         oss << format[i];
   34|      0|      }
   35|       |
   36|      0|      i += 1;
   37|      0|   }
   38|      9|}
_ZN5Botan10fmt_detail6do_fmtIPKcJS3_EEEvRNSt3__119basic_ostringstreamIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_17basic_string_viewIcS7_EERKT_DpRKT0_:
   25|      9|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|      9|   size_t i = 0;
   27|       |
   28|     45|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 45, False: 0]
  ------------------
   29|     45|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 9, False: 36]
  |  Branch (29:30): [True: 9, False: 0]
  |  Branch (29:59): [True: 9, False: 0]
  ------------------
   30|      9|         oss << val;
   31|      9|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|     36|      } else {
   33|     36|         oss << format[i];
   34|     36|      }
   35|       |
   36|     36|      i += 1;
   37|     36|   }
   38|      9|}
_ZN5Botan10fmt_detail6do_fmtIPKcJEEEvRNSt3__119basic_ostringstreamIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_17basic_string_viewIcS7_EERKT_DpRKT0_:
   25|  1.16k|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|  1.16k|   size_t i = 0;
   27|       |
   28|  16.1k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 16.1k, False: 0]
  ------------------
   29|  16.1k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 1.16k, False: 14.9k]
  |  Branch (29:30): [True: 1.16k, False: 0]
  |  Branch (29:59): [True: 1.16k, False: 0]
  ------------------
   30|  1.16k|         oss << val;
   31|  1.16k|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  14.9k|      } else {
   33|  14.9k|         oss << format[i];
   34|  14.9k|      }
   35|       |
   36|  14.9k|      i += 1;
   37|  14.9k|   }
   38|  1.16k|}
_ZN5Botan10fmt_detail6do_fmtINSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEJS6_EEEvRNS2_19basic_ostringstreamIcS5_NS2_9allocatorIcEEEES6_RKT_DpRKT0_:
   25|  1.73k|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|  1.73k|   size_t i = 0;
   27|       |
   28|  1.73k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 1.73k, False: 0]
  ------------------
   29|  1.73k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 1.73k, False: 0]
  |  Branch (29:30): [True: 1.73k, False: 0]
  |  Branch (29:59): [True: 1.73k, False: 0]
  ------------------
   30|  1.73k|         oss << val;
   31|  1.73k|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  1.73k|      } else {
   33|      0|         oss << format[i];
   34|      0|      }
   35|       |
   36|      0|      i += 1;
   37|      0|   }
   38|  1.73k|}
_ZN5Botan3fmtIJNSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEPKcEEENS1_12basic_stringIcS4_NS1_9allocatorIcEEEES5_DpRKT_:
   53|  1.14k|std::string fmt(std::string_view format, const T&... args) {
   54|  1.14k|   std::ostringstream oss;
   55|  1.14k|   oss.imbue(std::locale::classic());
   56|  1.14k|   fmt_detail::do_fmt(oss, format, args...);
   57|  1.14k|   return oss.str();
   58|  1.14k|}
_ZN5Botan10fmt_detail6do_fmtINSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEJPKcEEEvRNS2_19basic_ostringstreamIcS5_NS2_9allocatorIcEEEES6_RKT_DpRKT0_:
   25|  1.14k|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|  1.14k|   size_t i = 0;
   27|       |
   28|  1.14k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 1.14k, False: 0]
  ------------------
   29|  1.14k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 1.14k, False: 0]
  |  Branch (29:30): [True: 1.14k, False: 0]
  |  Branch (29:59): [True: 1.14k, False: 0]
  ------------------
   30|  1.14k|         oss << val;
   31|  1.14k|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  1.14k|      } else {
   33|      0|         oss << format[i];
   34|      0|      }
   35|       |
   36|      0|      i += 1;
   37|      0|   }
   38|  1.14k|}
_ZN5Botan3fmtIJNSt3__117basic_string_viewIcNS1_11char_traitsIcEEEES5_EEENS1_12basic_stringIcS4_NS1_9allocatorIcEEEES5_DpRKT_:
   53|  1.73k|std::string fmt(std::string_view format, const T&... args) {
   54|  1.73k|   std::ostringstream oss;
   55|  1.73k|   oss.imbue(std::locale::classic());
   56|  1.73k|   fmt_detail::do_fmt(oss, format, args...);
   57|  1.73k|   return oss.str();
   58|  1.73k|}
_ZN5Botan3fmtIJNSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEjEEENS1_12basic_stringIcS4_NS1_9allocatorIcEEEES5_DpRKT_:
   53|     51|std::string fmt(std::string_view format, const T&... args) {
   54|     51|   std::ostringstream oss;
   55|     51|   oss.imbue(std::locale::classic());
   56|     51|   fmt_detail::do_fmt(oss, format, args...);
   57|     51|   return oss.str();
   58|     51|}
_ZN5Botan10fmt_detail6do_fmtINSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEJjEEEvRNS2_19basic_ostringstreamIcS5_NS2_9allocatorIcEEEES6_RKT_DpRKT0_:
   25|     51|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|     51|   size_t i = 0;
   27|       |
   28|     51|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 51, False: 0]
  ------------------
   29|     51|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 51, False: 0]
  |  Branch (29:30): [True: 51, False: 0]
  |  Branch (29:59): [True: 51, False: 0]
  ------------------
   30|     51|         oss << val;
   31|     51|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|     51|      } else {
   33|      0|         oss << format[i];
   34|      0|      }
   35|       |
   36|      0|      i += 1;
   37|      0|   }
   38|     51|}
_ZN5Botan10fmt_detail6do_fmtIjJEEEvRNSt3__119basic_ostringstreamIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS2_17basic_string_viewIcS5_EERKT_DpRKT0_:
   25|     51|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|     51|   size_t i = 0;
   27|       |
   28|    153|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 153, False: 0]
  ------------------
   29|    153|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 51, False: 102]
  |  Branch (29:30): [True: 51, False: 0]
  |  Branch (29:59): [True: 51, False: 0]
  ------------------
   30|     51|         oss << val;
   31|     51|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|    102|      } else {
   33|    102|         oss << format[i];
   34|    102|      }
   35|       |
   36|    102|      i += 1;
   37|    102|   }
   38|     51|}
_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|}
_ZN5Botan3fmtIJNS_3OIDENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEEEENS2_12basic_stringIcS5_NS2_9allocatorIcEEEES6_DpRKT_:
   53|      5|std::string fmt(std::string_view format, const T&... args) {
   54|      5|   std::ostringstream oss;
   55|      5|   oss.imbue(std::locale::classic());
   56|      5|   fmt_detail::do_fmt(oss, format, args...);
   57|      5|   return oss.str();
   58|      5|}
_ZN5Botan10fmt_detail6do_fmtINS_3OIDEJNSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEEEEvRNS3_19basic_ostringstreamIcS6_NS3_9allocatorIcEEEES7_RKT_DpRKT0_:
   25|      5|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|      5|   size_t i = 0;
   27|       |
   28|    180|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 180, False: 0]
  ------------------
   29|    180|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 5, False: 175]
  |  Branch (29:30): [True: 5, False: 0]
  |  Branch (29:59): [True: 5, False: 0]
  ------------------
   30|      5|         oss << val;
   31|      5|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|    175|      } else {
   33|    175|         oss << format[i];
   34|    175|      }
   35|       |
   36|    175|      i += 1;
   37|    175|   }
   38|      5|}

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

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

_ZN5Botan24Keccak_Permutation_roundImEEvPT_PKS1_m:
   57|   423k|BOTAN_FORCE_INLINE void Keccak_Permutation_round(W T[25], const W A[25], uint64_t RC) {
   58|   423k|   const W C0 = A[0] ^ A[5] ^ A[10] ^ A[15] ^ A[20];
   59|   423k|   const W C1 = A[1] ^ A[6] ^ A[11] ^ A[16] ^ A[21];
   60|   423k|   const W C2 = A[2] ^ A[7] ^ A[12] ^ A[17] ^ A[22];
   61|   423k|   const W C3 = A[3] ^ A[8] ^ A[13] ^ A[18] ^ A[23];
   62|   423k|   const W C4 = A[4] ^ A[9] ^ A[14] ^ A[19] ^ A[24];
   63|       |
   64|   423k|   const W D0 = keccak_rotl<1>(C0) ^ C3;
   65|   423k|   const W D1 = keccak_rotl<1>(C1) ^ C4;
   66|   423k|   const W D2 = keccak_rotl<1>(C2) ^ C0;
   67|   423k|   const W D3 = keccak_rotl<1>(C3) ^ C1;
   68|   423k|   const W D4 = keccak_rotl<1>(C4) ^ C2;
   69|       |
   70|   423k|   const W B00 = A[0] ^ D1;
   71|   423k|   const W B01 = keccak_rotl<44>(A[6] ^ D2);
   72|   423k|   const W B02 = keccak_rotl<43>(A[12] ^ D3);
   73|   423k|   const W B03 = keccak_rotl<21>(A[18] ^ D4);
   74|   423k|   const W B04 = keccak_rotl<14>(A[24] ^ D0);
   75|   423k|   T[0] = keccak_chi(B00, B01, B02) ^ keccak_iota<W>(RC);
   76|   423k|   T[1] = keccak_chi(B01, B02, B03);
   77|   423k|   T[2] = keccak_chi(B02, B03, B04);
   78|   423k|   T[3] = keccak_chi(B03, B04, B00);
   79|   423k|   T[4] = keccak_chi(B04, B00, B01);
   80|       |
   81|   423k|   const W B05 = keccak_rotl<28>(A[3] ^ D4);
   82|   423k|   const W B06 = keccak_rotl<20>(A[9] ^ D0);
   83|   423k|   const W B07 = keccak_rotl<3>(A[10] ^ D1);
   84|   423k|   const W B08 = keccak_rotl<45>(A[16] ^ D2);
   85|   423k|   const W B09 = keccak_rotl<61>(A[22] ^ D3);
   86|   423k|   T[5] = keccak_chi(B05, B06, B07);
   87|   423k|   T[6] = keccak_chi(B06, B07, B08);
   88|   423k|   T[7] = keccak_chi(B07, B08, B09);
   89|   423k|   T[8] = keccak_chi(B08, B09, B05);
   90|   423k|   T[9] = keccak_chi(B09, B05, B06);
   91|       |
   92|   423k|   const W B10 = keccak_rotl<1>(A[1] ^ D2);
   93|   423k|   const W B11 = keccak_rotl<6>(A[7] ^ D3);
   94|   423k|   const W B12 = keccak_rotl<25>(A[13] ^ D4);
   95|   423k|   const W B13 = keccak_rotl<8>(A[19] ^ D0);
   96|   423k|   const W B14 = keccak_rotl<18>(A[20] ^ D1);
   97|   423k|   T[10] = keccak_chi(B10, B11, B12);
   98|   423k|   T[11] = keccak_chi(B11, B12, B13);
   99|   423k|   T[12] = keccak_chi(B12, B13, B14);
  100|   423k|   T[13] = keccak_chi(B13, B14, B10);
  101|   423k|   T[14] = keccak_chi(B14, B10, B11);
  102|       |
  103|   423k|   const W B15 = keccak_rotl<27>(A[4] ^ D0);
  104|   423k|   const W B16 = keccak_rotl<36>(A[5] ^ D1);
  105|   423k|   const W B17 = keccak_rotl<10>(A[11] ^ D2);
  106|   423k|   const W B18 = keccak_rotl<15>(A[17] ^ D3);
  107|   423k|   const W B19 = keccak_rotl<56>(A[23] ^ D4);
  108|   423k|   T[15] = keccak_chi(B15, B16, B17);
  109|   423k|   T[16] = keccak_chi(B16, B17, B18);
  110|   423k|   T[17] = keccak_chi(B17, B18, B19);
  111|   423k|   T[18] = keccak_chi(B18, B19, B15);
  112|   423k|   T[19] = keccak_chi(B19, B15, B16);
  113|       |
  114|   423k|   const W B20 = keccak_rotl<62>(A[2] ^ D3);
  115|   423k|   const W B21 = keccak_rotl<55>(A[8] ^ D4);
  116|   423k|   const W B22 = keccak_rotl<39>(A[14] ^ D0);
  117|   423k|   const W B23 = keccak_rotl<41>(A[15] ^ D1);
  118|   423k|   const W B24 = keccak_rotl<2>(A[21] ^ D2);
  119|   423k|   T[20] = keccak_chi(B20, B21, B22);
  120|   423k|   T[21] = keccak_chi(B21, B22, B23);
  121|   423k|   T[22] = keccak_chi(B22, B23, B24);
  122|   423k|   T[23] = keccak_chi(B23, B24, B20);
  123|   423k|   T[24] = keccak_chi(B24, B20, B21);
  124|   423k|}
_ZN5Botan11keccak_rotlILm1EmEET0_RKS1_:
   30|  2.54M|BOTAN_FORCE_INLINE W keccak_rotl(const W& v) {
   31|  2.54M|   if constexpr(std::unsigned_integral<W>) {
   32|  2.54M|      return rotl<R>(v);
   33|       |   } else {
   34|       |      return v.template rotl<R>();
   35|       |   }
   36|  2.54M|}
_ZN5Botan11keccak_rotlILm44EmEET0_RKS1_:
   30|   423k|BOTAN_FORCE_INLINE W keccak_rotl(const W& v) {
   31|   423k|   if constexpr(std::unsigned_integral<W>) {
   32|   423k|      return rotl<R>(v);
   33|       |   } else {
   34|       |      return v.template rotl<R>();
   35|       |   }
   36|   423k|}
_ZN5Botan11keccak_rotlILm43EmEET0_RKS1_:
   30|   423k|BOTAN_FORCE_INLINE W keccak_rotl(const W& v) {
   31|   423k|   if constexpr(std::unsigned_integral<W>) {
   32|   423k|      return rotl<R>(v);
   33|       |   } else {
   34|       |      return v.template rotl<R>();
   35|       |   }
   36|   423k|}
_ZN5Botan11keccak_rotlILm21EmEET0_RKS1_:
   30|   423k|BOTAN_FORCE_INLINE W keccak_rotl(const W& v) {
   31|   423k|   if constexpr(std::unsigned_integral<W>) {
   32|   423k|      return rotl<R>(v);
   33|       |   } else {
   34|       |      return v.template rotl<R>();
   35|       |   }
   36|   423k|}
_ZN5Botan11keccak_rotlILm14EmEET0_RKS1_:
   30|   423k|BOTAN_FORCE_INLINE W keccak_rotl(const W& v) {
   31|   423k|   if constexpr(std::unsigned_integral<W>) {
   32|   423k|      return rotl<R>(v);
   33|       |   } else {
   34|       |      return v.template rotl<R>();
   35|       |   }
   36|   423k|}
_ZN5Botan10keccak_chiImEET_RKS1_S3_S3_:
   39|  10.5M|BOTAN_FORCE_INLINE W keccak_chi(const W& x, const W& y, const W& z) {
   40|  10.5M|   if constexpr(std::unsigned_integral<W>) {
   41|  10.5M|      return x ^ (~y & z);
   42|       |   } else {
   43|       |      return W::chi(x, y, z);
   44|       |   }
   45|  10.5M|}
_ZN5Botan11keccak_iotaImEET_m:
   48|   423k|BOTAN_FORCE_INLINE W keccak_iota(uint64_t rc) {
   49|   423k|   if constexpr(std::unsigned_integral<W>) {
   50|   423k|      return rc;
   51|       |   } else {
   52|       |      return W::splat(rc);
   53|       |   }
   54|   423k|}
_ZN5Botan11keccak_rotlILm28EmEET0_RKS1_:
   30|   423k|BOTAN_FORCE_INLINE W keccak_rotl(const W& v) {
   31|   423k|   if constexpr(std::unsigned_integral<W>) {
   32|   423k|      return rotl<R>(v);
   33|       |   } else {
   34|       |      return v.template rotl<R>();
   35|       |   }
   36|   423k|}
_ZN5Botan11keccak_rotlILm20EmEET0_RKS1_:
   30|   423k|BOTAN_FORCE_INLINE W keccak_rotl(const W& v) {
   31|   423k|   if constexpr(std::unsigned_integral<W>) {
   32|   423k|      return rotl<R>(v);
   33|       |   } else {
   34|       |      return v.template rotl<R>();
   35|       |   }
   36|   423k|}
_ZN5Botan11keccak_rotlILm3EmEET0_RKS1_:
   30|   423k|BOTAN_FORCE_INLINE W keccak_rotl(const W& v) {
   31|   423k|   if constexpr(std::unsigned_integral<W>) {
   32|   423k|      return rotl<R>(v);
   33|       |   } else {
   34|       |      return v.template rotl<R>();
   35|       |   }
   36|   423k|}
_ZN5Botan11keccak_rotlILm45EmEET0_RKS1_:
   30|   423k|BOTAN_FORCE_INLINE W keccak_rotl(const W& v) {
   31|   423k|   if constexpr(std::unsigned_integral<W>) {
   32|   423k|      return rotl<R>(v);
   33|       |   } else {
   34|       |      return v.template rotl<R>();
   35|       |   }
   36|   423k|}
_ZN5Botan11keccak_rotlILm61EmEET0_RKS1_:
   30|   423k|BOTAN_FORCE_INLINE W keccak_rotl(const W& v) {
   31|   423k|   if constexpr(std::unsigned_integral<W>) {
   32|   423k|      return rotl<R>(v);
   33|       |   } else {
   34|       |      return v.template rotl<R>();
   35|       |   }
   36|   423k|}
_ZN5Botan11keccak_rotlILm6EmEET0_RKS1_:
   30|   423k|BOTAN_FORCE_INLINE W keccak_rotl(const W& v) {
   31|   423k|   if constexpr(std::unsigned_integral<W>) {
   32|   423k|      return rotl<R>(v);
   33|       |   } else {
   34|       |      return v.template rotl<R>();
   35|       |   }
   36|   423k|}
_ZN5Botan11keccak_rotlILm25EmEET0_RKS1_:
   30|   423k|BOTAN_FORCE_INLINE W keccak_rotl(const W& v) {
   31|   423k|   if constexpr(std::unsigned_integral<W>) {
   32|   423k|      return rotl<R>(v);
   33|       |   } else {
   34|       |      return v.template rotl<R>();
   35|       |   }
   36|   423k|}
_ZN5Botan11keccak_rotlILm8EmEET0_RKS1_:
   30|   423k|BOTAN_FORCE_INLINE W keccak_rotl(const W& v) {
   31|   423k|   if constexpr(std::unsigned_integral<W>) {
   32|   423k|      return rotl<R>(v);
   33|       |   } else {
   34|       |      return v.template rotl<R>();
   35|       |   }
   36|   423k|}
_ZN5Botan11keccak_rotlILm18EmEET0_RKS1_:
   30|   423k|BOTAN_FORCE_INLINE W keccak_rotl(const W& v) {
   31|   423k|   if constexpr(std::unsigned_integral<W>) {
   32|   423k|      return rotl<R>(v);
   33|       |   } else {
   34|       |      return v.template rotl<R>();
   35|       |   }
   36|   423k|}
_ZN5Botan11keccak_rotlILm27EmEET0_RKS1_:
   30|   423k|BOTAN_FORCE_INLINE W keccak_rotl(const W& v) {
   31|   423k|   if constexpr(std::unsigned_integral<W>) {
   32|   423k|      return rotl<R>(v);
   33|       |   } else {
   34|       |      return v.template rotl<R>();
   35|       |   }
   36|   423k|}
_ZN5Botan11keccak_rotlILm36EmEET0_RKS1_:
   30|   423k|BOTAN_FORCE_INLINE W keccak_rotl(const W& v) {
   31|   423k|   if constexpr(std::unsigned_integral<W>) {
   32|   423k|      return rotl<R>(v);
   33|       |   } else {
   34|       |      return v.template rotl<R>();
   35|       |   }
   36|   423k|}
_ZN5Botan11keccak_rotlILm10EmEET0_RKS1_:
   30|   423k|BOTAN_FORCE_INLINE W keccak_rotl(const W& v) {
   31|   423k|   if constexpr(std::unsigned_integral<W>) {
   32|   423k|      return rotl<R>(v);
   33|       |   } else {
   34|       |      return v.template rotl<R>();
   35|       |   }
   36|   423k|}
_ZN5Botan11keccak_rotlILm15EmEET0_RKS1_:
   30|   423k|BOTAN_FORCE_INLINE W keccak_rotl(const W& v) {
   31|   423k|   if constexpr(std::unsigned_integral<W>) {
   32|   423k|      return rotl<R>(v);
   33|       |   } else {
   34|       |      return v.template rotl<R>();
   35|       |   }
   36|   423k|}
_ZN5Botan11keccak_rotlILm56EmEET0_RKS1_:
   30|   423k|BOTAN_FORCE_INLINE W keccak_rotl(const W& v) {
   31|   423k|   if constexpr(std::unsigned_integral<W>) {
   32|   423k|      return rotl<R>(v);
   33|       |   } else {
   34|       |      return v.template rotl<R>();
   35|       |   }
   36|   423k|}
_ZN5Botan11keccak_rotlILm62EmEET0_RKS1_:
   30|   423k|BOTAN_FORCE_INLINE W keccak_rotl(const W& v) {
   31|   423k|   if constexpr(std::unsigned_integral<W>) {
   32|   423k|      return rotl<R>(v);
   33|       |   } else {
   34|       |      return v.template rotl<R>();
   35|       |   }
   36|   423k|}
_ZN5Botan11keccak_rotlILm55EmEET0_RKS1_:
   30|   423k|BOTAN_FORCE_INLINE W keccak_rotl(const W& v) {
   31|   423k|   if constexpr(std::unsigned_integral<W>) {
   32|   423k|      return rotl<R>(v);
   33|       |   } else {
   34|       |      return v.template rotl<R>();
   35|       |   }
   36|   423k|}
_ZN5Botan11keccak_rotlILm39EmEET0_RKS1_:
   30|   423k|BOTAN_FORCE_INLINE W keccak_rotl(const W& v) {
   31|   423k|   if constexpr(std::unsigned_integral<W>) {
   32|   423k|      return rotl<R>(v);
   33|       |   } else {
   34|       |      return v.template rotl<R>();
   35|       |   }
   36|   423k|}
_ZN5Botan11keccak_rotlILm41EmEET0_RKS1_:
   30|   423k|BOTAN_FORCE_INLINE W keccak_rotl(const W& v) {
   31|   423k|   if constexpr(std::unsigned_integral<W>) {
   32|   423k|      return rotl<R>(v);
   33|       |   } else {
   34|       |      return v.template rotl<R>();
   35|       |   }
   36|   423k|}
_ZN5Botan11keccak_rotlILm2EmEET0_RKS1_:
   30|   423k|BOTAN_FORCE_INLINE W keccak_rotl(const W& v) {
   31|   423k|   if constexpr(std::unsigned_integral<W>) {
   32|   423k|      return rotl<R>(v);
   33|       |   } else {
   34|       |      return v.template rotl<R>();
   35|       |   }
   36|   423k|}

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

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

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

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

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

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

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

_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());
  ------------------
  |  |   84|      2|   do {                                                                     \
  |  |   85|      2|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   86|      2|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 2]
  |  |  ------------------
  |  |   87|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   88|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   89|      0|      }                                                                     \
  |  |   90|      2|   } while(0)
  |  |  ------------------
  |  |  |  Branch (90: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);
  ------------------
  |  |   84|      2|   do {                                                                     \
  |  |   85|      2|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   86|      2|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 2]
  |  |  ------------------
  |  |   87|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   88|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   89|      0|      }                                                                     \
  |  |   90|      2|   } while(0)
  |  |  ------------------
  |  |  |  Branch (90: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);
  ------------------
  |  |   84|      2|   do {                                                                     \
  |  |   85|      2|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   86|      2|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 2]
  |  |  ------------------
  |  |   87|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   88|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   89|      0|      }                                                                     \
  |  |   90|      2|   } while(0)
  |  |  ------------------
  |  |  |  Branch (90:12): [Folded, False: 2]
  |  |  ------------------
  ------------------
  115|       |
  116|      2|         if constexpr(MD::byte_endianness == MD_Endian::Big) {
  117|      2|            copy_out_be(output.first(MD::output_bytes), m_digest);
  118|       |         } else {
  119|       |            copy_out_le(output.first(MD::output_bytes), m_digest);
  120|       |         }
  121|      2|      }

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

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

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

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

_ZN5Botan10word8_add2ITkNS_8WordTypeEmEET_PS1_PKS1_S1_:
  276|    514|inline constexpr auto word8_add2(W x[8], const W y[8], W carry) -> W {
  277|    514|#if defined(BOTAN_MP_USE_X86_64_ASM)
  278|    514|   if constexpr(std::same_as<W, uint64_t>) {
  279|    514|      if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (279:10): [True: 514, Folded]
  ------------------
  280|    514|         asm volatile(ADD_OR_SUBTRACT(DO_8_TIMES(ADDSUB2_OP, "adcq"))
  281|    514|                      : [carry] "=r"(carry)
  282|    514|                      : [x] "r"(x), [y] "r"(y), "0"(carry)
  283|    514|                      : "cc", "memory");
  284|    514|         return carry;
  285|    514|      }
  286|    514|   }
  287|      0|#endif
  288|       |
  289|      0|   x[0] = word_add(x[0], y[0], &carry);
  290|    514|   x[1] = word_add(x[1], y[1], &carry);
  291|    514|   x[2] = word_add(x[2], y[2], &carry);
  292|    514|   x[3] = word_add(x[3], y[3], &carry);
  293|    514|   x[4] = word_add(x[4], y[4], &carry);
  294|    514|   x[5] = word_add(x[5], y[5], &carry);
  295|    514|   x[6] = word_add(x[6], y[6], &carry);
  296|    514|   x[7] = word_add(x[7], y[7], &carry);
  297|    514|   return carry;
  298|    514|}
_ZN5Botan8word_addITkNS_8WordTypeEmEET_S1_S1_PS1_:
  239|  48.7M|inline constexpr auto word_add(W x, W y, W* carry) -> W {
  240|  48.7M|#if BOTAN_COMPILER_HAS_BUILTIN(__builtin_addc)
  241|  48.7M|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (241:7): [True: 48.7M, Folded]
  ------------------
  242|       |      if constexpr(std::same_as<W, unsigned int>) {
  243|       |         return __builtin_addc(x, y, *carry & 1, carry);
  244|  48.7M|      } else if constexpr(std::same_as<W, unsigned long>) {
  245|  48.7M|         return __builtin_addcl(x, y, *carry & 1, carry);
  246|       |      } else if constexpr(std::same_as<W, unsigned long long>) {
  247|       |         return __builtin_addcll(x, y, *carry & 1, carry);
  248|       |      }
  249|  48.7M|   }
  250|      0|#endif
  251|       |
  252|       |   if constexpr(WordInfo<W>::dword_is_native && use_dword_for_word_add) {
  253|       |      /*
  254|       |      TODO(Botan4) this is largely a performance hack for GCCs that don't
  255|       |      support __builtin_addc, if we increase the minimum supported version of
  256|       |      GCC to GCC 14 then we can remove this and not worry about it
  257|       |      */
  258|       |      const W cb = *carry & 1;
  259|       |      const auto s = typename WordInfo<W>::dword(x) + y + cb;
  260|       |      *carry = static_cast<W>(s >> WordInfo<W>::bits);
  261|       |      return static_cast<W>(s);
  262|  48.7M|   } else {
  263|  48.7M|      const W cb = *carry & 1;
  264|  48.7M|      W z = x + y;
  265|  48.7M|      W c1 = (z < x);
  266|  48.7M|      z += cb;
  267|  48.7M|      *carry = c1 | (z < cb);
  268|  48.7M|      return z;
  269|  48.7M|   }
  270|  48.7M|}
_ZN5Botan10word8_sub2ITkNS_8WordTypeEmEET_PS1_PKS1_S1_:
  357|   708k|inline constexpr auto word8_sub2(W x[8], const W y[8], W carry) -> W {
  358|   708k|#if defined(BOTAN_MP_USE_X86_64_ASM)
  359|   708k|   if constexpr(std::same_as<W, uint64_t>) {
  360|   708k|      if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (360:10): [True: 708k, Folded]
  ------------------
  361|   708k|         asm volatile(ADD_OR_SUBTRACT(DO_8_TIMES(ADDSUB2_OP, "sbbq"))
  362|   708k|                      : [carry] "=r"(carry)
  363|   708k|                      : [x] "r"(x), [y] "r"(y), "0"(carry)
  364|   708k|                      : "cc", "memory");
  365|   708k|         return carry;
  366|   708k|      }
  367|   708k|   }
  368|      0|#endif
  369|       |
  370|      0|   x[0] = word_sub(x[0], y[0], &carry);
  371|   708k|   x[1] = word_sub(x[1], y[1], &carry);
  372|   708k|   x[2] = word_sub(x[2], y[2], &carry);
  373|   708k|   x[3] = word_sub(x[3], y[3], &carry);
  374|   708k|   x[4] = word_sub(x[4], y[4], &carry);
  375|   708k|   x[5] = word_sub(x[5], y[5], &carry);
  376|   708k|   x[6] = word_sub(x[6], y[6], &carry);
  377|   708k|   x[7] = word_sub(x[7], y[7], &carry);
  378|   708k|   return carry;
  379|   708k|}
_ZN5Botan8word_subITkNS_8WordTypeEmEET_S1_S1_PS1_:
  332|   160M|inline constexpr auto word_sub(W x, W y, W* carry) -> W {
  333|   160M|#if BOTAN_COMPILER_HAS_BUILTIN(__builtin_subc)
  334|   160M|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (334:7): [True: 160M, Folded]
  ------------------
  335|       |      if constexpr(std::same_as<W, unsigned int>) {
  336|       |         return __builtin_subc(x, y, *carry & 1, carry);
  337|   160M|      } else if constexpr(std::same_as<W, unsigned long>) {
  338|   160M|         return __builtin_subcl(x, y, *carry & 1, carry);
  339|       |      } else if constexpr(std::same_as<W, unsigned long long>) {
  340|       |         return __builtin_subcll(x, y, *carry & 1, carry);
  341|       |      }
  342|   160M|   }
  343|      0|#endif
  344|       |
  345|      0|   const W cb = *carry & 1;
  346|   160M|   W t0 = x - y;
  347|   160M|   W c1 = (t0 > x);
  348|   160M|   W z = t0 - cb;
  349|   160M|   *carry = c1 | (z > t0);
  350|   160M|   return z;
  351|   160M|}
_ZN5Botan10word8_sub3ITkNS_8WordTypeEmEET_PS1_PKS1_S4_S1_:
  385|  7.96M|inline constexpr auto word8_sub3(W z[8], const W x[8], const W y[8], W carry) -> W {
  386|  7.96M|#if defined(BOTAN_MP_USE_X86_64_ASM)
  387|  7.96M|   if constexpr(std::same_as<W, uint64_t>) {
  388|  7.96M|      if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (388:10): [True: 7.96M, Folded]
  ------------------
  389|  7.96M|         asm volatile(ADD_OR_SUBTRACT(DO_8_TIMES(ADDSUB3_OP, "sbbq"))
  390|  7.96M|                      : [carry] "=r"(carry)
  391|  7.96M|                      : [x] "r"(x), [y] "r"(y), [z] "r"(z), "0"(carry)
  392|  7.96M|                      : "cc", "memory");
  393|  7.96M|         return carry;
  394|  7.96M|      }
  395|  7.96M|   }
  396|      0|#endif
  397|       |
  398|      0|   z[0] = word_sub(x[0], y[0], &carry);
  399|  7.96M|   z[1] = word_sub(x[1], y[1], &carry);
  400|  7.96M|   z[2] = word_sub(x[2], y[2], &carry);
  401|  7.96M|   z[3] = word_sub(x[3], y[3], &carry);
  402|  7.96M|   z[4] = word_sub(x[4], y[4], &carry);
  403|  7.96M|   z[5] = word_sub(x[5], y[5], &carry);
  404|  7.96M|   z[6] = word_sub(x[6], y[6], &carry);
  405|  7.96M|   z[7] = word_sub(x[7], y[7], &carry);
  406|  7.96M|   return carry;
  407|  7.96M|}
_ZN5Botan10word8_add3ITkNS_8WordTypeEmEET_PS1_PKS1_S4_S1_:
  304|   476k|inline constexpr auto word8_add3(W z[8], const W x[8], const W y[8], W carry) -> W {
  305|   476k|#if defined(BOTAN_MP_USE_X86_64_ASM)
  306|   476k|   if constexpr(std::same_as<W, uint64_t>) {
  307|   476k|      if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (307:10): [True: 476k, Folded]
  ------------------
  308|   476k|         asm volatile(ADD_OR_SUBTRACT(DO_8_TIMES(ADDSUB3_OP, "adcq"))
  309|   476k|                      : [carry] "=r"(carry)
  310|   476k|                      : [x] "r"(x), [y] "r"(y), [z] "r"(z), "0"(carry)
  311|   476k|                      : "cc", "memory");
  312|   476k|         return carry;
  313|   476k|      }
  314|   476k|   }
  315|      0|#endif
  316|       |
  317|      0|   z[0] = word_add(x[0], y[0], &carry);
  318|   476k|   z[1] = word_add(x[1], y[1], &carry);
  319|   476k|   z[2] = word_add(x[2], y[2], &carry);
  320|   476k|   z[3] = word_add(x[3], y[3], &carry);
  321|   476k|   z[4] = word_add(x[4], y[4], &carry);
  322|   476k|   z[5] = word_add(x[5], y[5], &carry);
  323|   476k|   z[6] = word_add(x[6], y[6], &carry);
  324|   476k|   z[7] = word_add(x[7], y[7], &carry);
  325|   476k|   return carry;
  326|   476k|}
_ZN5Botan13word8_linmul3ITkNS_8WordTypeEmEET_PS1_PKS1_S1_S1_:
  413|    166|inline constexpr auto word8_linmul3(W z[8], const W x[8], W y, W carry) -> W {
  414|    166|#if defined(BOTAN_MP_USE_X86_64_ASM)
  415|    166|   if constexpr(std::same_as<W, uint64_t>) {
  416|    166|      if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (416:10): [True: 166, Folded]
  ------------------
  417|    166|         asm volatile(DO_8_TIMES(LINMUL_OP, "z")
  418|    166|                      : [carry] "=r"(carry)
  419|    166|                      : [z] "r"(z), [x] "r"(x), [y] "rm"(y), "0"(carry)
  420|    166|                      : "cc", "%rax", "%rdx", "memory");
  421|    166|         return carry;
  422|    166|      }
  423|    166|   }
  424|      0|#endif
  425|       |
  426|      0|   z[0] = word_madd2(x[0], y, &carry);
  427|    166|   z[1] = word_madd2(x[1], y, &carry);
  428|    166|   z[2] = word_madd2(x[2], y, &carry);
  429|    166|   z[3] = word_madd2(x[3], y, &carry);
  430|    166|   z[4] = word_madd2(x[4], y, &carry);
  431|    166|   z[5] = word_madd2(x[5], y, &carry);
  432|    166|   z[6] = word_madd2(x[6], y, &carry);
  433|    166|   z[7] = word_madd2(x[7], y, &carry);
  434|    166|   return carry;
  435|    166|}
_ZN5Botan10word_madd2ITkNS_8WordTypeEmEET_S1_S1_PS1_:
   90|  5.99M|inline constexpr auto word_madd2(W a, W b, W* c) -> W {
   91|  5.99M|#if defined(BOTAN_MP_USE_X86_64_ASM)
   92|  5.99M|   if constexpr(std::same_as<W, uint64_t>) {
   93|  5.99M|      if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (93:10): [True: 5.99M, Folded]
  ------------------
   94|  5.99M|         asm(R"(
   95|  5.99M|            mulq %[b]
   96|  5.99M|            addq %[c],%[a]
   97|  5.99M|            adcq $0,%[carry]
   98|  5.99M|            )"
   99|  5.99M|             : [a] "=a"(a), [b] "=rm"(b), [carry] "=&d"(*c)
  100|  5.99M|             : "0"(a), "1"(b), [c] "g"(*c)
  101|  5.99M|             : "cc");
  102|       |
  103|  5.99M|         return a;
  104|  5.99M|      }
  105|  5.99M|   }
  106|       |#elif defined(BOTAN_MP_USE_AARCH64_ASM)
  107|       |   if constexpr(std::same_as<W, uint64_t>) {
  108|       |      if(!std::is_constant_evaluated()) {
  109|       |         W lo = 0;
  110|       |         W hi = 0;
  111|       |         asm(R"(
  112|       |            mul  %[lo], %[a], %[b]
  113|       |            umulh %[hi], %[a], %[b]
  114|       |            adds %[lo], %[lo], %[c]
  115|       |            adc  %[hi], %[hi], xzr
  116|       |            )"
  117|       |             : [lo] "=&r"(lo), [hi] "=&r"(hi)
  118|       |             : [a] "r"(a), [b] "r"(b), [c] "r"(*c)
  119|       |             : "cc");
  120|       |
  121|       |         *c = hi;
  122|       |         return lo;
  123|       |      }
  124|       |   }
  125|       |#endif
  126|       |
  127|      0|   typedef typename WordInfo<W>::dword dword;
  128|  5.99M|   const dword s = dword(a) * b + *c;
  129|  5.99M|   *c = static_cast<W>(s >> WordInfo<W>::bits);
  130|  5.99M|   return static_cast<W>(s);
  131|  5.99M|}
_ZN5Botan11word8_madd3ITkNS_8WordTypeEmEET_PS1_PKS1_S1_S1_:
  441|  13.6M|inline constexpr auto word8_madd3(W z[8], const W x[8], W y, W carry) -> W {
  442|  13.6M|#if defined(BOTAN_MP_USE_X86_64_ASM)
  443|  13.6M|   if constexpr(std::same_as<W, uint64_t>) {
  444|  13.6M|      if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (444:10): [True: 13.6M, Folded]
  ------------------
  445|  13.6M|         asm volatile(DO_8_TIMES(MULADD_OP, "")
  446|  13.6M|                      : [carry] "=r"(carry)
  447|  13.6M|                      : [z] "r"(z), [x] "r"(x), [y] "rm"(y), "0"(carry)
  448|  13.6M|                      : "cc", "%rax", "%rdx", "memory");
  449|  13.6M|         return carry;
  450|  13.6M|      }
  451|  13.6M|   }
  452|      0|#endif
  453|       |
  454|      0|   z[0] = word_madd3(x[0], y, z[0], &carry);
  455|  13.6M|   z[1] = word_madd3(x[1], y, z[1], &carry);
  456|  13.6M|   z[2] = word_madd3(x[2], y, z[2], &carry);
  457|  13.6M|   z[3] = word_madd3(x[3], y, z[3], &carry);
  458|  13.6M|   z[4] = word_madd3(x[4], y, z[4], &carry);
  459|  13.6M|   z[5] = word_madd3(x[5], y, z[5], &carry);
  460|  13.6M|   z[6] = word_madd3(x[6], y, z[6], &carry);
  461|  13.6M|   z[7] = word_madd3(x[7], y, z[7], &carry);
  462|  13.6M|   return carry;
  463|  13.6M|}
_ZN5Botan10word_madd3ITkNS_8WordTypeEmEET_S1_S1_S1_PS1_:
  137|   156M|inline constexpr auto word_madd3(W a, W b, W c, W* d) -> W {
  138|   156M|#if defined(BOTAN_MP_USE_X86_64_ASM)
  139|   156M|   if constexpr(std::same_as<W, uint64_t>) {
  140|   156M|      if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (140:10): [True: 156M, Folded]
  ------------------
  141|   156M|         asm(R"(
  142|   156M|            mulq %[b]
  143|   156M|
  144|   156M|            addq %[c],%[a]
  145|   156M|            adcq $0,%[carry]
  146|   156M|
  147|   156M|            addq %[d],%[a]
  148|   156M|            adcq $0,%[carry]
  149|   156M|            )"
  150|   156M|             : [a] "=a"(a), [b] "=rm"(b), [carry] "=&d"(*d)
  151|   156M|             : "0"(a), "1"(b), [c] "g"(c), [d] "g"(*d)
  152|   156M|             : "cc");
  153|       |
  154|   156M|         return a;
  155|   156M|      }
  156|   156M|   }
  157|       |#elif defined(BOTAN_MP_USE_AARCH64_ASM)
  158|       |   if constexpr(std::same_as<W, uint64_t>) {
  159|       |      if(!std::is_constant_evaluated()) {
  160|       |         W lo = 0;
  161|       |         W hi = 0;
  162|       |         asm(R"(
  163|       |            mul  %[lo], %[a], %[b]
  164|       |            umulh %[hi], %[a], %[b]
  165|       |            adds %[lo], %[lo], %[c]
  166|       |            adc  %[hi], %[hi], xzr
  167|       |            adds %[lo], %[lo], %[d]
  168|       |            adc  %[hi], %[hi], xzr
  169|       |            )"
  170|       |             : [lo] "=&r"(lo), [hi] "=&r"(hi)
  171|       |             : [a] "r"(a), [b] "r"(b), [c] "r"(c), [d] "r"(*d)
  172|       |             : "cc");
  173|       |
  174|       |         *d = hi;
  175|       |         return lo;
  176|       |      }
  177|       |   }
  178|       |#endif
  179|       |
  180|      0|   typedef typename WordInfo<W>::dword dword;
  181|   156M|   const dword s = dword(a) * b + c + *d;
  182|   156M|   *d = static_cast<W>(s >> WordInfo<W>::bits);
  183|   156M|   return static_cast<W>(s);
  184|   156M|}
_ZN5Botan5word3ImE3mulEmm:
  480|   762M|      inline constexpr void mul(W x, W y) { m_w += static_cast<W3>(x) * y; }
_ZN5Botan5word3ImE7extractEv:
  486|   239M|      inline constexpr W extract() {
  487|   239M|         W r = static_cast<W>(m_w);
  488|   239M|         m_w >>= WordInfo<W>::bits;
  489|   239M|         return r;
  490|   239M|      }
_ZN5Botan5word3ImE3addEm:
  484|   151M|      inline constexpr void add(W x) { m_w += x; }
_ZN5Botan5word3ImE10monty_stepEmm:
  492|  75.5M|      inline constexpr W monty_step(W p0, W p_dash) {
  493|  75.5M|         const W w0 = static_cast<W>(m_w);
  494|  75.5M|         const W r = w0 * p_dash;
  495|  75.5M|         mul(r, p0);
  496|  75.5M|         m_w >>= WordInfo<W>::bits;
  497|  75.5M|         return r;
  498|  75.5M|      }
_ZN5Botan5word3ImEC2Ev:
  478|  29.4M|      constexpr word3() : m_w(0) {}
_ZN5Botan5word3ImE6mul_x2Emm:
  482|  52.7M|      inline constexpr void mul_x2(W x, W y) { m_w += static_cast<W3>(x) * y * 2; }

_ZN5Botan11bigint_add2ITkNS_8WordTypeEmEET_PS1_mPKS1_m:
   95|   135k|inline constexpr auto bigint_add2(W x[], size_t x_size, const W y[], size_t y_size) -> W {
   96|   135k|   W carry = 0;
   97|       |
   98|   135k|   BOTAN_ASSERT(x_size >= y_size, "Expected sizes");
  ------------------
  |  |   71|   135k|   do {                                                                                 \
  |  |   72|   135k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   73|   135k|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (73:10): [True: 0, False: 135k]
  |  |  ------------------
  |  |   74|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   75|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   76|      0|      }                                                                                 \
  |  |   77|   135k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (77:12): [Folded, False: 135k]
  |  |  ------------------
  ------------------
   99|       |
  100|   135k|   const size_t blocks = y_size - (y_size % 8);
  101|       |
  102|   135k|   for(size_t i = 0; i != blocks; i += 8) {
  ------------------
  |  Branch (102:22): [True: 514, False: 135k]
  ------------------
  103|    514|      carry = word8_add2(x + i, y + i, carry);
  104|    514|   }
  105|       |
  106|   405k|   for(size_t i = blocks; i != y_size; ++i) {
  ------------------
  |  Branch (106:27): [True: 270k, False: 135k]
  ------------------
  107|   270k|      x[i] = word_add(x[i], y[i], &carry);
  108|   270k|   }
  109|       |
  110|   413k|   for(size_t i = y_size; i != x_size; ++i) {
  ------------------
  |  Branch (110:27): [True: 278k, False: 135k]
  ------------------
  111|   278k|      x[i] = word_add(x[i], static_cast<W>(0), &carry);
  112|   278k|   }
  113|       |
  114|   135k|   return carry;
  115|   135k|}
_ZN5Botan10bigint_cmpITkNS_8WordTypeEmEEiPKT_mS3_m:
  460|  2.04M|inline constexpr int32_t bigint_cmp(const W x[], size_t x_size, const W y[], size_t y_size) {
  461|  2.04M|   static_assert(sizeof(W) >= sizeof(uint32_t), "Size assumption");
  462|       |
  463|  2.04M|   const W LT = static_cast<W>(-1);
  464|  2.04M|   const W EQ = 0;
  465|  2.04M|   const W GT = 1;
  466|       |
  467|  2.04M|   const size_t common_elems = std::min(x_size, y_size);
  468|       |
  469|  2.04M|   W result = EQ;  // until found otherwise
  470|       |
  471|  16.2M|   for(size_t i = 0; i != common_elems; i++) {
  ------------------
  |  Branch (471:22): [True: 14.1M, False: 2.04M]
  ------------------
  472|  14.1M|      const auto is_eq = CT::Mask<W>::is_equal(x[i], y[i]);
  473|  14.1M|      const auto is_lt = CT::Mask<W>::is_lt(x[i], y[i]);
  474|       |
  475|  14.1M|      result = is_eq.select(result, is_lt.select(LT, GT));
  476|  14.1M|   }
  477|       |
  478|  2.04M|   if(x_size < y_size) {
  ------------------
  |  Branch (478:7): [True: 3.39k, False: 2.04M]
  ------------------
  479|  3.39k|      W mask = 0;
  480|  12.1k|      for(size_t i = x_size; i != y_size; i++) {
  ------------------
  |  Branch (480:30): [True: 8.77k, False: 3.39k]
  ------------------
  481|  8.77k|         mask |= y[i];
  482|  8.77k|      }
  483|       |
  484|       |      // If any bits were set in high part of y, then x < y
  485|  3.39k|      result = CT::Mask<W>::is_zero(mask).select(result, LT);
  486|  2.04M|   } else if(y_size < x_size) {
  ------------------
  |  Branch (486:14): [True: 5.53k, False: 2.04M]
  ------------------
  487|  5.53k|      W mask = 0;
  488|  28.3k|      for(size_t i = y_size; i != x_size; i++) {
  ------------------
  |  Branch (488:30): [True: 22.8k, False: 5.53k]
  ------------------
  489|  22.8k|         mask |= x[i];
  490|  22.8k|      }
  491|       |
  492|       |      // If any bits were set in high part of x, then x > y
  493|  5.53k|      result = CT::Mask<W>::is_zero(mask).select(result, GT);
  494|  5.53k|   }
  495|       |
  496|  2.04M|   CT::unpoison(result);
  497|  2.04M|   BOTAN_DEBUG_ASSERT(result == LT || result == GT || result == EQ);
  ------------------
  |  |  137|  2.04M|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|  2.04M|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 2.04M]
  |  |  ------------------
  ------------------
  498|  2.04M|   return static_cast<int32_t>(result);
  499|  2.04M|}
_ZN5Botan11bigint_sub2ITkNS_8WordTypeEmEET_PS1_mPKS1_m:
  149|  2.00M|inline constexpr auto bigint_sub2(W x[], size_t x_size, const W y[], size_t y_size) -> W {
  150|  2.00M|   W borrow = 0;
  151|       |
  152|  2.00M|   BOTAN_ASSERT(x_size >= y_size, "Expected sizes");
  ------------------
  |  |   71|  2.00M|   do {                                                                                 \
  |  |   72|  2.00M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   73|  2.00M|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (73:10): [True: 0, False: 2.00M]
  |  |  ------------------
  |  |   74|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   75|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   76|      0|      }                                                                                 \
  |  |   77|  2.00M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (77:12): [Folded, False: 2.00M]
  |  |  ------------------
  ------------------
  153|       |
  154|  2.00M|   const size_t blocks = y_size - (y_size % 8);
  155|       |
  156|  2.71M|   for(size_t i = 0; i != blocks; i += 8) {
  ------------------
  |  Branch (156:22): [True: 708k, False: 2.00M]
  ------------------
  157|   708k|      borrow = word8_sub2(x + i, y + i, borrow);
  158|   708k|   }
  159|       |
  160|  12.3M|   for(size_t i = blocks; i != y_size; ++i) {
  ------------------
  |  Branch (160:27): [True: 10.3M, False: 2.00M]
  ------------------
  161|  10.3M|      x[i] = word_sub(x[i], y[i], &borrow);
  162|  10.3M|   }
  163|       |
  164|  2.00M|   for(size_t i = y_size; i != x_size; ++i) {
  ------------------
  |  Branch (164:27): [True: 0, False: 2.00M]
  ------------------
  165|      0|      x[i] = word_sub(x[i], static_cast<W>(0), &borrow);
  166|      0|   }
  167|       |
  168|  2.00M|   return borrow;
  169|  2.00M|}
_ZN5Botan15bigint_sub2_revITkNS_8WordTypeEmEEvPT_PKS1_m:
  175|  1.91k|inline constexpr void bigint_sub2_rev(W x[], const W y[], size_t y_size) {
  176|  1.91k|   W borrow = 0;
  177|       |
  178|  6.06k|   for(size_t i = 0; i != y_size; ++i) {
  ------------------
  |  Branch (178:22): [True: 4.14k, False: 1.91k]
  ------------------
  179|  4.14k|      x[i] = word_sub(y[i], x[i], &borrow);
  180|  4.14k|   }
  181|       |
  182|  1.91k|   BOTAN_ASSERT(borrow == 0, "y must be greater than x");
  ------------------
  |  |   71|  1.91k|   do {                                                                                 \
  |  |   72|  1.91k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   73|  1.91k|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (73:10): [True: 0, False: 1.91k]
  |  |  ------------------
  |  |   74|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   75|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   76|      0|      }                                                                                 \
  |  |   77|  1.91k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (77:12): [Folded, False: 1.91k]
  |  |  ------------------
  ------------------
  183|  1.91k|}
_ZN5Botan11bigint_sub3ITkNS_8WordTypeEmEET_PS1_PKS1_mS4_m:
  193|  9.09M|inline constexpr auto bigint_sub3(W z[], const W x[], size_t x_size, const W y[], size_t y_size) -> W {
  194|  9.09M|   W borrow = 0;
  195|       |
  196|  9.09M|   BOTAN_ASSERT(x_size >= y_size, "Expected sizes");
  ------------------
  |  |   71|  9.09M|   do {                                                                                 \
  |  |   72|  9.09M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   73|  9.09M|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (73:10): [True: 0, False: 9.09M]
  |  |  ------------------
  |  |   74|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   75|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   76|      0|      }                                                                                 \
  |  |   77|  9.09M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (77:12): [Folded, False: 9.09M]
  |  |  ------------------
  ------------------
  197|       |
  198|  9.09M|   const size_t blocks = y_size - (y_size % 8);
  199|       |
  200|  13.5M|   for(size_t i = 0; i != blocks; i += 8) {
  ------------------
  |  Branch (200:22): [True: 4.41M, False: 9.09M]
  ------------------
  201|  4.41M|      borrow = word8_sub3(z + i, x + i, y + i, borrow);
  202|  4.41M|   }
  203|       |
  204|  32.6M|   for(size_t i = blocks; i != y_size; ++i) {
  ------------------
  |  Branch (204:27): [True: 23.5M, False: 9.09M]
  ------------------
  205|  23.5M|      z[i] = word_sub(x[i], y[i], &borrow);
  206|  23.5M|   }
  207|       |
  208|  14.2M|   for(size_t i = y_size; i != x_size; ++i) {
  ------------------
  |  Branch (208:27): [True: 5.15M, False: 9.09M]
  ------------------
  209|  5.15M|      z[i] = word_sub(x[i], static_cast<W>(0), &borrow);
  210|  5.15M|   }
  211|       |
  212|  9.09M|   return borrow;
  213|  9.09M|}
_ZN5Botan11bigint_add3ITkNS_8WordTypeEmEET_PS1_PKS1_mS4_m:
  121|  3.80M|inline constexpr auto bigint_add3(W z[], const W x[], size_t x_size, const W y[], size_t y_size) -> W {
  122|  3.80M|   if(x_size < y_size) {
  ------------------
  |  Branch (122:7): [True: 15.9k, False: 3.78M]
  ------------------
  123|  15.9k|      return bigint_add3(z, y, y_size, x, x_size);
  124|  15.9k|   }
  125|       |
  126|  3.78M|   W carry = 0;
  127|       |
  128|  3.78M|   const size_t blocks = y_size - (y_size % 8);
  129|       |
  130|  4.26M|   for(size_t i = 0; i != blocks; i += 8) {
  ------------------
  |  Branch (130:22): [True: 476k, False: 3.78M]
  ------------------
  131|   476k|      carry = word8_add3(z + i, x + i, y + i, carry);
  132|   476k|   }
  133|       |
  134|  17.5M|   for(size_t i = blocks; i != y_size; ++i) {
  ------------------
  |  Branch (134:27): [True: 13.8M, False: 3.78M]
  ------------------
  135|  13.8M|      z[i] = word_add(x[i], y[i], &carry);
  136|  13.8M|   }
  137|       |
  138|  3.85M|   for(size_t i = y_size; i != x_size; ++i) {
  ------------------
  |  Branch (138:27): [True: 74.8k, False: 3.78M]
  ------------------
  139|  74.8k|      z[i] = word_add(x[i], static_cast<W>(0), &carry);
  140|  74.8k|   }
  141|       |
  142|  3.78M|   return carry;
  143|  3.80M|}
_ZN5Botan14bigint_cnd_addITkNS_8WordTypeEmEET_S1_PS1_PKS1_m:
   46|  2.22M|inline constexpr W bigint_cnd_add(W cnd, W x[], const W y[], size_t size) {
   47|  2.22M|   const auto mask = CT::Mask<W>::expand(cnd).value();
   48|       |
   49|  2.22M|   W carry = 0;
   50|       |
   51|  13.5M|   for(size_t i = 0; i != size; ++i) {
  ------------------
  |  Branch (51:22): [True: 11.3M, False: 2.22M]
  ------------------
   52|  11.3M|      x[i] = word_add(x[i], y[i] & mask, &carry);
   53|  11.3M|   }
   54|       |
   55|  2.22M|   return (mask & carry);
   56|  2.22M|}
_ZN5Botan14bigint_linmul3ITkNS_8WordTypeEmEEvPT_PKS1_mS1_:
  417|  1.71k|inline constexpr void bigint_linmul3(W z[], const W x[], size_t x_size, W y) {
  418|  1.71k|   const size_t blocks = x_size - (x_size % 8);
  419|       |
  420|  1.71k|   W carry = 0;
  421|       |
  422|  1.88k|   for(size_t i = 0; i != blocks; i += 8) {
  ------------------
  |  Branch (422:22): [True: 166, False: 1.71k]
  ------------------
  423|    166|      carry = word8_linmul3(z + i, x + i, y, carry);
  424|    166|   }
  425|       |
  426|  7.45k|   for(size_t i = blocks; i != x_size; ++i) {
  ------------------
  |  Branch (426:27): [True: 5.73k, False: 1.71k]
  ------------------
  427|  5.73k|      z[i] = word_madd2(x[i], y, &carry);
  428|  5.73k|   }
  429|       |
  430|  1.71k|   z[x_size] = carry;
  431|  1.71k|}
_ZN5Botan14bigint_linmul2ITkNS_8WordTypeEmEET_PS1_mS1_:
  406|   427k|[[nodiscard]] inline constexpr auto bigint_linmul2(W x[], size_t x_size, W y) -> W {
  407|   427k|   W carry = 0;
  408|       |
  409|  5.46M|   for(size_t i = 0; i != x_size; ++i) {
  ------------------
  |  Branch (409:22): [True: 5.04M, False: 427k]
  ------------------
  410|  5.04M|      x[i] = word_madd2(x[i], y, &carry);
  411|  5.04M|   }
  412|       |
  413|   427k|   return carry;
  414|   427k|}
_ZN5Botan14divide_precompImE13setup_vartimeEm:
  706|  5.52k|      static constexpr divide_precomp setup_vartime(W divisor) {
  707|  5.52k|         const size_t shift = WordInfo<W>::bits - high_bit(divisor);
  708|  5.52k|         const W norm_divisor = divisor << shift;
  709|  5.52k|         const W reciprocal = reciprocal_word(norm_divisor);
  710|  5.52k|         return divide_precomp(divisor, shift, norm_divisor, reciprocal);
  711|  5.52k|      }
_ZN5Botan15reciprocal_wordITkNS_8WordTypeEmEET_S1_:
  597|  5.52k|constexpr W reciprocal_word(W D) {
  598|  5.52k|   BOTAN_DEBUG_ASSERT((D & WordInfo<W>::top_bit) != 0);
  ------------------
  |  |  137|  5.52k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|  5.52k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 5.52k]
  |  |  ------------------
  ------------------
  599|       |
  600|       |   /*
  601|       |   * Subtracting 2^b*D from the numerator gives
  602|       |   * v = floor(((~D)*2^b + (2^b - 1)) / D). Since D is normalized, ~D < D
  603|       |   * and the quotient fits in a word. See the first part of Section III A
  604|       |   * in the paper.
  605|       |   */
  606|       |   if constexpr(sizeof(W) == 4) {
  607|       |      const auto nD = ~D;  // Work around spurious MSVC warning
  608|       |      const typename WordInfo<W>::dword n =
  609|       |         (static_cast<typename WordInfo<W>::dword>(nD) << WordInfo<W>::bits) | WordInfo<W>::max;
  610|       |      return static_cast<W>(n / D);
  611|  5.52k|   } else {
  612|  5.52k|      if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (612:10): [True: 5.52k, Folded]
  ------------------
  613|  5.52k|#if defined(BOTAN_MP_USE_X86_64_ASM)
  614|  5.52k|         W quotient = 0;
  615|  5.52k|         W remainder = 0;
  616|       |         // NOLINTNEXTLINE(*-no-assembler)
  617|  5.52k|         asm("divq %[d]"
  618|  5.52k|             : "=a"(quotient), "=d"(remainder)
  619|  5.52k|             : [d] "r"(D), "a"(WordInfo<W>::max), "d"(static_cast<W>(~D))
  620|  5.52k|             : "cc");
  621|  5.52k|         return quotient;
  622|       |#elif !defined(BOTAN_BUILD_COMPILER_IS_CLANGCL)
  623|       |         /* clang-cl has a bug where on encountering a 128/64 division it emits
  624|       |         * a call to __udivti3() but then fails to link the relevant builtin into
  625|       |         * the binary, causing a link failure. Work around this by simply omitting
  626|       |         * such code for clang-cl
  627|       |         *
  628|       |         * See https://github.com/llvm/llvm-project/issues/25679
  629|       |         */
  630|       |         if constexpr(WordInfo<W>::dword_is_native) {
  631|       |            typename WordInfo<W>::dword n =
  632|       |               (static_cast<typename WordInfo<W>::dword>(~D) << WordInfo<W>::bits) | WordInfo<W>::max;
  633|       |            return static_cast<W>(n / D);
  634|       |         }
  635|       |#endif
  636|  5.52k|      }
  637|       |
  638|       |      // Algorithm 2 of Möller and Granlund
  639|      0|      const W d0 = D & 1;
  640|      0|      const W d9 = D >> 55;
  641|      0|      const W d40 = (D >> 24) + 1;
  642|      0|      const W d63 = (D >> 1) + d0;  // ceil(D/2)
  643|       |
  644|       |      // This division is done with a table lookup in the paper
  645|      0|      const W v0 = ((W(1) << 19) - (W(3) << 8)) / d9;
  646|      0|      const W v1 = (v0 << 11) - ((v0 * v0 * d40) >> 40) - 1;
  647|      0|      const W v2 = (v1 << 13) + ((v1 * ((W(1) << 60) - v1 * d40)) >> 47);
  648|       |
  649|      0|      const W e = W(0) - v2 * d63 + (v2 >> 1) * d0;
  650|       |
  651|      0|      W product_hi = 0;
  652|      0|      word_madd2(v2, e, &product_hi);
  653|      0|      const W v3 = (v2 << 31) + (product_hi >> 1);
  654|       |
  655|       |      // Compute floor((v3 + 2^64 + 1) * D / 2^64) modulo 2^64
  656|      0|      product_hi = D;
  657|      0|      word_madd2(v3, D, &product_hi);
  658|      0|      return v3 - D - product_hi;
  659|  5.52k|   }
  660|  5.52k|}
_ZN5Botan14divide_precompImEC2Emmmm:
  791|  17.0k|            m_divisor(divisor), m_shift(shift), m_norm_divisor(norm_divisor), m_reciprocal(reciprocal) {}
_ZNK5Botan14divide_precompImE8mod_2to1Emm:
  787|  17.4k|      inline constexpr W mod_2to1(W n1, W n0) const { return this->divmod_2to1_vartime(n1, n0).second; }
_ZNK5Botan14divide_precompImE19divmod_2to1_vartimeEmm:
  729|  21.6k|      inline constexpr std::pair<W, W> divmod_2to1_vartime(W n1, W n0) const {
  730|  21.6k|         if(m_divisor == WordInfo<W>::max) {
  ------------------
  |  Branch (730:13): [True: 0, False: 21.6k]
  ------------------
  731|      0|            const W q = div_2to1_max_d(n1, n0);
  732|      0|            const W r = static_cast<W>(n0 + q);
  733|      0|            return std::make_pair(q, r);
  734|      0|         }
  735|       |
  736|  21.6k|         if(m_divisor == WordInfo<W>::top_bit) {
  ------------------
  |  Branch (736:13): [True: 0, False: 21.6k]
  ------------------
  737|       |            // Simply a shift by N-1 bits
  738|      0|            const W q = (n1 << 1) | (n0 >> (WordInfo<W>::bits - 1));
  739|      0|            const W r = static_cast<W>(n0 & (WordInfo<W>::top_bit - 1));
  740|      0|            return std::make_pair(q, r);
  741|      0|         }
  742|       |
  743|  21.6k|         return divmod_2to1_ct(n1, n0);
  744|  21.6k|      }
_ZNK5Botan14divide_precompImE14divmod_2to1_ctEmm:
  751|  93.4k|      inline constexpr std::pair<W, W> divmod_2to1_ct(W n1, W n0) const {
  752|       |         /*
  753|       |         * Scale the numerator to match the normalized divisor; the scaling cancels
  754|       |         * in the quotient and is removed from the remainder by the final shift.
  755|       |         */
  756|  93.4k|         n1 <<= m_shift;
  757|  93.4k|         const size_t rshift = WordInfo<W>::bits - m_shift;
  758|       |         /*
  759|       |         * We can't just `n0 >> rshift` because m_shift may be 0 (high bit divisor)
  760|       |         * in which case rshift will be the maximum bit length, and >> by the maximum
  761|       |         * bitlength is undefined behavior despite having an entirely obvious meaning.
  762|       |         *
  763|       |         * However we know m_shift is not equal to the bit length of the word, because
  764|       |         * that would imply that the divisor is 0. Thus rshift must be >= 1. So split
  765|       |         * the shift into two phases (first rshift-1, then 1)
  766|       |         */
  767|  93.4k|         n1 |= (n0 >> 1) >> (rshift - 1);
  768|  93.4k|         n0 <<= m_shift;
  769|       |
  770|  93.4k|         const auto [q, scaled_r] = div2by1_preinv(n1, n0, m_norm_divisor, m_reciprocal);
  771|  93.4k|         const W r = scaled_r >> m_shift;
  772|  93.4k|         return std::make_pair(q, r);
  773|  93.4k|      }
_ZN5Botan14divide_precompImE14div2by1_preinvEmmmm:
  802|  93.4k|      static constexpr std::pair<W, W> div2by1_preinv(W u1, W u0, W D, W v) {
  803|       |         // Steps 1-3: <q1,q0> = v*u1; <q1,q0> += <u1,u0>; q1 += 1
  804|  93.4k|         W q1 = u0;
  805|  93.4k|         const W q0 = word_madd2(u1, v, &q1);  // <q1,q0> = u1*v + u0
  806|  93.4k|         q1 += u1 + 1;
  807|       |
  808|       |         // Step 4
  809|  93.4k|         W r = u0 - q1 * D;
  810|       |
  811|       |         // Steps 5-7: If r >= q0 { q1 -= 1; r += d; }
  812|  93.4k|         const auto fix_down = CT::Mask<W>::is_gt(r, q0);
  813|  93.4k|         q1 -= fix_down.if_set_return(1);
  814|  93.4k|         r += fix_down.if_set_return(D);
  815|       |
  816|       |         // Steps 8-10: if r >= D { q1 += 1; r -= D; }
  817|  93.4k|         const auto fix_up = CT::Mask<W>::is_gte(r, D);
  818|  93.4k|         q1 += fix_up.if_set_return(1);
  819|  93.4k|         r -= fix_up.if_set_return(D);
  820|       |
  821|       |         // Step 11
  822|  93.4k|         return std::make_pair(q1, r);
  823|  93.4k|      }
_ZN5Botan11bigint_shl1ITkNS_8WordTypeEmEEvPT_mmm:
  310|    313|inline constexpr void bigint_shl1(W x[], size_t x_size, size_t x_words, size_t shift) {
  311|    313|   const size_t word_shift = shift / WordInfo<W>::bits;
  312|    313|   const size_t bit_shift = shift % WordInfo<W>::bits;
  313|       |
  314|    313|   BOTAN_ASSERT_NOMSG(word_shift <= x_size);
  ------------------
  |  |   84|    313|   do {                                                                     \
  |  |   85|    313|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   86|    313|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 313]
  |  |  ------------------
  |  |   87|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   88|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   89|      0|      }                                                                     \
  |  |   90|    313|   } while(0)
  |  |  ------------------
  |  |  |  Branch (90:12): [Folded, False: 313]
  |  |  ------------------
  ------------------
  315|    313|   BOTAN_ASSERT_NOMSG(x_words <= x_size - word_shift);
  ------------------
  |  |   84|    313|   do {                                                                     \
  |  |   85|    313|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   86|    313|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 313]
  |  |  ------------------
  |  |   87|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   88|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   89|      0|      }                                                                     \
  |  |   90|    313|   } while(0)
  |  |  ------------------
  |  |  |  Branch (90:12): [Folded, False: 313]
  |  |  ------------------
  ------------------
  316|       |
  317|    313|   unchecked_copy_memory(x + word_shift, x, x_words);
  318|    313|   zeroize_buffer(x, word_shift);
  319|       |
  320|    313|   const auto carry_mask = CT::Mask<W>::expand(bit_shift);
  321|    313|   const W carry_shift = carry_mask.if_set_return(WordInfo<W>::bits - bit_shift);
  322|       |
  323|    313|   W carry = 0;
  324|  3.13k|   for(size_t i = word_shift; i != x_size; ++i) {
  ------------------
  |  Branch (324:31): [True: 2.81k, False: 313]
  ------------------
  325|  2.81k|      const W w = x[i];
  326|  2.81k|      x[i] = (w << bit_shift) | carry;
  327|  2.81k|      carry = carry_mask.if_set_return(w >> carry_shift);
  328|  2.81k|   }
  329|    313|}
_ZN5Botan11bigint_shr1ITkNS_8WordTypeEmEEvPT_mm:
  332|  1.08M|inline constexpr void bigint_shr1(W x[], size_t x_size, size_t shift) {
  333|  1.08M|   const size_t word_shift = shift / WordInfo<W>::bits;
  334|  1.08M|   const size_t bit_shift = shift % WordInfo<W>::bits;
  335|       |
  336|  1.08M|   const size_t top = x_size >= word_shift ? (x_size - word_shift) : 0;
  ------------------
  |  Branch (336:23): [True: 1.08M, False: 0]
  ------------------
  337|       |
  338|  1.08M|   if(top > 0) {
  ------------------
  |  Branch (338:7): [True: 1.08M, False: 0]
  ------------------
  339|  1.08M|      unchecked_copy_memory(x, x + word_shift, top);
  340|  1.08M|   }
  341|  1.08M|   zeroize_buffer(x + top, std::min(word_shift, x_size));
  342|       |
  343|  1.08M|   const auto carry_mask = CT::Mask<W>::expand(bit_shift);
  344|  1.08M|   const W carry_shift = carry_mask.if_set_return(WordInfo<W>::bits - bit_shift);
  345|       |
  346|  1.08M|   W carry = 0;
  347|       |
  348|  15.6M|   for(size_t i = 0; i != top; ++i) {
  ------------------
  |  Branch (348:22): [True: 14.6M, False: 1.08M]
  ------------------
  349|  14.6M|      const W w = x[top - i - 1];
  350|  14.6M|      x[top - i - 1] = (w >> bit_shift) | carry;
  351|  14.6M|      carry = carry_mask.if_set_return(w << carry_shift);
  352|  14.6M|   }
  353|  1.08M|}
_ZN5Botan17bigint_monty_redcEPmPKmS2_mmS0_m:
 1097|  15.4M|   word r[], const word z[], const word p[], size_t p_size, word p_dash, word ws[], size_t ws_size) {
 1098|  15.4M|   const size_t z_size = 2 * p_size;
 1099|       |
 1100|  15.4M|   BOTAN_ARG_CHECK(ws_size >= p_size, "Montgomery reduction workspace too small");
  ------------------
  |  |   35|  15.4M|   do {                                                          \
  |  |   36|  15.4M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  15.4M|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 15.4M]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  15.4M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 15.4M]
  |  |  ------------------
  ------------------
 1101|       |
 1102|  15.4M|   if(p_size == 4) {
  ------------------
  |  Branch (1102:7): [True: 5.89M, False: 9.57M]
  ------------------
 1103|  5.89M|      bigint_monty_redc_4(r, z, p, p_dash, ws);
 1104|  9.57M|   } else if(p_size == 6) {
  ------------------
  |  Branch (1104:14): [True: 2.07k, False: 9.56M]
  ------------------
 1105|  2.07k|      bigint_monty_redc_6(r, z, p, p_dash, ws);
 1106|  9.56M|   } else if(p_size == 8) {
  ------------------
  |  Branch (1106:14): [True: 2.87k, False: 9.56M]
  ------------------
 1107|  2.87k|      bigint_monty_redc_8(r, z, p, p_dash, ws);
 1108|  9.56M|   } else if(p_size == 12) {
  ------------------
  |  Branch (1108:14): [True: 1.39k, False: 9.56M]
  ------------------
 1109|  1.39k|      bigint_monty_redc_12(r, z, p, p_dash, ws);
 1110|  9.56M|   } else if(p_size == 16) {
  ------------------
  |  Branch (1110:14): [True: 1.60k, False: 9.56M]
  ------------------
 1111|  1.60k|      bigint_monty_redc_16(r, z, p, p_dash, ws);
 1112|  9.56M|   } else if(p_size == 24) {
  ------------------
  |  Branch (1112:14): [True: 0, False: 9.56M]
  ------------------
 1113|      0|      bigint_monty_redc_24(r, z, p, p_dash, ws);
 1114|  9.56M|   } else if(p_size == 32) {
  ------------------
  |  Branch (1114:14): [True: 0, False: 9.56M]
  ------------------
 1115|      0|      bigint_monty_redc_32(r, z, p, p_dash, ws);
 1116|  9.56M|   } else {
 1117|  9.56M|      bigint_monty_redc_generic(r, z, z_size, p, p_size, p_dash, ws);
 1118|  9.56M|   }
 1119|  15.4M|}
_ZN5Botan25bigint_monty_redc_inplaceEPmPKmmmS0_m:
 1121|  5.30M|inline void bigint_monty_redc_inplace(word z[], const word p[], size_t p_size, word p_dash, word ws[], size_t ws_size) {
 1122|  5.30M|   bigint_monty_redc(z, z, p, p_size, p_dash, ws, ws_size);
 1123|  5.30M|   zeroize_buffer(z + p_size, p_size);
 1124|  5.30M|}
_ZN5Botan11bigint_shr2ITkNS_8WordTypeEmEEvPT_mPKS1_mm:
  379|  1.01k|inline constexpr void bigint_shr2(W y[], size_t y_size, const W x[], size_t x_size, size_t shift) {
  380|  1.01k|   const size_t word_shift = shift / WordInfo<W>::bits;
  381|  1.01k|   const size_t bit_shift = shift % WordInfo<W>::bits;
  382|  1.01k|   const size_t new_size = x_size < word_shift ? 0 : (x_size - word_shift);
  ------------------
  |  Branch (382:28): [True: 0, False: 1.01k]
  ------------------
  383|       |
  384|  1.01k|   BOTAN_ASSERT_NOMSG(new_size <= y_size);
  ------------------
  |  |   84|  1.01k|   do {                                                                     \
  |  |   85|  1.01k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   86|  1.01k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 1.01k]
  |  |  ------------------
  |  |   87|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   88|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   89|      0|      }                                                                     \
  |  |   90|  1.01k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (90:12): [Folded, False: 1.01k]
  |  |  ------------------
  ------------------
  385|       |
  386|  1.01k|   if(new_size > 0) {
  ------------------
  |  Branch (386:7): [True: 1.01k, False: 0]
  ------------------
  387|  1.01k|      unchecked_copy_memory(y, x + word_shift, new_size);
  388|  1.01k|   }
  389|  1.01k|   zeroize_buffer(y + new_size, y_size - new_size);
  390|       |
  391|  1.01k|   const auto carry_mask = CT::Mask<W>::expand(bit_shift);
  392|  1.01k|   const W carry_shift = carry_mask.if_set_return(WordInfo<W>::bits - bit_shift);
  393|       |
  394|  1.01k|   W carry = 0;
  395|  6.20k|   for(size_t i = new_size; i > 0; --i) {
  ------------------
  |  Branch (395:29): [True: 5.18k, False: 1.01k]
  ------------------
  396|  5.18k|      W w = y[i - 1];
  397|  5.18k|      y[i - 1] = (w >> bit_shift) | carry;
  398|  5.18k|      carry = carry_mask.if_set_return(w << carry_shift);
  399|  5.18k|   }
  400|  1.01k|}
_ZN5Botan15bigint_ct_is_eqITkNS_8WordTypeEmEENS_2CT4MaskIT_EEPKS3_mS6_m:
  540|  22.2k|inline constexpr auto bigint_ct_is_eq(const W x[], size_t x_size, const W y[], size_t y_size) -> CT::Mask<W> {
  541|  22.2k|   const size_t common_elems = std::min(x_size, y_size);
  542|       |
  543|  22.2k|   W diff = 0;
  544|       |
  545|   243k|   for(size_t i = 0; i != common_elems; i++) {
  ------------------
  |  Branch (545:22): [True: 220k, False: 22.2k]
  ------------------
  546|   220k|      diff |= (x[i] ^ y[i]);
  547|   220k|   }
  548|       |
  549|       |   // If any bits were set in high part of x/y, then they are not equal
  550|  22.2k|   if(x_size < y_size) {
  ------------------
  |  Branch (550:7): [True: 336, False: 21.8k]
  ------------------
  551|  2.47k|      for(size_t i = x_size; i != y_size; i++) {
  ------------------
  |  Branch (551:30): [True: 2.13k, False: 336]
  ------------------
  552|  2.13k|         diff |= y[i];
  553|  2.13k|      }
  554|  21.8k|   } else if(y_size < x_size) {
  ------------------
  |  Branch (554:14): [True: 14.7k, False: 7.16k]
  ------------------
  555|  97.7k|      for(size_t i = y_size; i != x_size; i++) {
  ------------------
  |  Branch (555:30): [True: 83.0k, False: 14.7k]
  ------------------
  556|  83.0k|         diff |= x[i];
  557|  83.0k|      }
  558|  14.7k|   }
  559|       |
  560|  22.2k|   return CT::Mask<W>::is_zero(diff);
  561|  22.2k|}
_ZN5Botan15bigint_ct_is_ltITkNS_8WordTypeEmEENS_2CT4MaskIT_EEPKS3_mS6_mb:
  508|  1.80M|   -> CT::Mask<W> {
  509|  1.80M|   const size_t common_elems = std::min(x_size, y_size);
  510|       |
  511|  1.80M|   auto is_lt = CT::Mask<W>::expand(lt_or_equal);
  512|       |
  513|  12.6M|   for(size_t i = 0; i != common_elems; i++) {
  ------------------
  |  Branch (513:22): [True: 10.8M, False: 1.80M]
  ------------------
  514|  10.8M|      const auto eq = CT::Mask<W>::is_equal(x[i], y[i]);
  515|  10.8M|      const auto lt = CT::Mask<W>::is_lt(x[i], y[i]);
  516|  10.8M|      is_lt = eq.select_mask(is_lt, lt);
  517|  10.8M|   }
  518|       |
  519|  1.80M|   if(x_size < y_size) {
  ------------------
  |  Branch (519:7): [True: 30.9k, False: 1.77M]
  ------------------
  520|  30.9k|      W mask = 0;
  521|  67.6k|      for(size_t i = x_size; i != y_size; i++) {
  ------------------
  |  Branch (521:30): [True: 36.7k, False: 30.9k]
  ------------------
  522|  36.7k|         mask |= y[i];
  523|  36.7k|      }
  524|       |      // If any bits were set in high part of y, then is_lt should be forced true
  525|  30.9k|      is_lt |= CT::Mask<W>::expand(mask);
  526|  1.77M|   } else if(y_size < x_size) {
  ------------------
  |  Branch (526:14): [True: 1.76M, False: 14.8k]
  ------------------
  527|  1.76M|      W mask = 0;
  528|  19.5M|      for(size_t i = y_size; i != x_size; i++) {
  ------------------
  |  Branch (528:30): [True: 17.8M, False: 1.76M]
  ------------------
  529|  17.8M|         mask |= x[i];
  530|  17.8M|      }
  531|       |
  532|       |      // If any bits were set in high part of x, then is_lt should be false
  533|  1.76M|      is_lt &= CT::Mask<W>::is_zero(mask);
  534|  1.76M|   }
  535|       |
  536|  1.80M|   return is_lt;
  537|  1.80M|}
_ZN5Botan15bigint_cnd_swapITkNS_8WordTypeEmEEvT_PS1_S2_m:
   30|   210k|inline constexpr void bigint_cnd_swap(W cnd, W x[], W y[], size_t size) {
   31|   210k|   const auto mask = CT::Mask<W>::expand(cnd);
   32|       |
   33|  1.30M|   for(size_t i = 0; i != size; ++i) {
  ------------------
  |  Branch (33:22): [True: 1.09M, False: 210k]
  ------------------
   34|  1.09M|      const W a = x[i];
   35|  1.09M|      const W b = y[i];
   36|  1.09M|      x[i] = mask.select(b, a);
   37|  1.09M|      y[i] = mask.select(a, b);
   38|  1.09M|   }
   39|   210k|}
_ZN5Botan14divide_precompImE5setupEm:
  714|  11.4k|      static constexpr divide_precomp setup(W divisor) {
  715|  11.4k|         const size_t shift = WordInfo<W>::bits - high_bit(divisor);
  716|  11.4k|         const W norm_divisor = divisor << shift;
  717|  11.4k|         const W reciprocal = reciprocal_word_ct(norm_divisor);
  718|  11.4k|         return divide_precomp(divisor, shift, norm_divisor, reciprocal);
  719|  11.4k|      }
_ZN5Botan18reciprocal_word_ctITkNS_8WordTypeEmEET_S1_:
  669|  11.4k|constexpr W reciprocal_word_ct(W D) {
  670|  11.4k|   BOTAN_DEBUG_ASSERT((D & WordInfo<W>::top_bit) != 0);
  ------------------
  |  |  137|  11.4k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|  11.4k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 11.4k]
  |  |  ------------------
  ------------------
  671|       |
  672|       |   // Bit serial long division of ((~D) || (2^b - 1)) / D, with all of the
  673|       |   // conditional logic computed via masks
  674|  11.4k|   W remainder = static_cast<W>(~D);
  675|  11.4k|   W quotient = 0;
  676|       |
  677|   746k|   for(size_t i = 0; i != WordInfo<W>::bits; ++i) {
  ------------------
  |  Branch (677:22): [True: 734k, False: 11.4k]
  ------------------
  678|   734k|      const auto carry = CT::Mask<W>::expand_top_bit(remainder);
  679|   734k|      remainder = static_cast<W>((remainder << 1) | 1);
  680|   734k|      quotient <<= 1;
  681|       |
  682|   734k|      const auto sub = carry | CT::Mask<W>::is_gte(remainder, D);
  683|   734k|      remainder -= sub.if_set_return(D);
  684|   734k|      quotient |= sub.if_set_return(1);
  685|   734k|   }
  686|       |
  687|  11.4k|   return quotient;
  688|  11.4k|}
_ZN5Botan13bigint_submulITkNS_8WordTypeEmEET_PS1_PKS1_mS1_:
  440|  71.7k|inline constexpr auto bigint_submul(W z[], const W y[], size_t N, W q) -> W {
  441|  71.7k|   W mul_carry = 0;
  442|  71.7k|   W borrow = 0;
  443|       |
  444|   494k|   for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (444:22): [True: 422k, False: 71.7k]
  ------------------
  445|   422k|      const W t = word_madd2(y[i], q, &mul_carry);
  446|   422k|      z[i] = word_sub(z[i], t, &borrow);
  447|   422k|   }
  448|       |
  449|       |   // Both mul_carry <= W_max - 1 and borrow <= 1, so this cannot overflow
  450|  71.7k|   return mul_carry + borrow;
  451|  71.7k|}
_ZN5Botan14bigint_sub_absITkNS_8WordTypeEmEENS_2CT4MaskIT_EEPS3_PKS3_S7_mS5_:
  280|  2.00M|inline constexpr auto bigint_sub_abs(W z[], const W x[], const W y[], size_t N, W ws[]) -> CT::Mask<W> {
  281|       |   // Subtract in both direction then conditional copy out the result
  282|       |
  283|  2.00M|   W* ws0 = ws;
  284|  2.00M|   W* ws1 = ws + N;
  285|       |
  286|  2.00M|   W borrow0 = 0;
  287|  2.00M|   W borrow1 = 0;
  288|       |
  289|  2.00M|   const size_t blocks = N - (N % 8);
  290|       |
  291|  2.71M|   for(size_t i = 0; i != blocks; i += 8) {
  ------------------
  |  Branch (291:22): [True: 705k, False: 2.00M]
  ------------------
  292|   705k|      borrow0 = word8_sub3(ws0 + i, x + i, y + i, borrow0);
  293|   705k|      borrow1 = word8_sub3(ws1 + i, y + i, x + i, borrow1);
  294|   705k|   }
  295|       |
  296|  10.3M|   for(size_t i = blocks; i != N; ++i) {
  ------------------
  |  Branch (296:27): [True: 8.36M, False: 2.00M]
  ------------------
  297|  8.36M|      ws0[i] = word_sub(x[i], y[i], &borrow0);
  298|  8.36M|      ws1[i] = word_sub(y[i], x[i], &borrow1);
  299|  8.36M|   }
  300|       |
  301|  2.00M|   return CT::conditional_copy_mem(borrow0, z, ws1, ws0, N);
  302|  2.00M|}
_ZN5Botan14bigint_cnd_subITkNS_8WordTypeEmEET_S1_PS1_PKS1_m:
   63|   421k|inline constexpr auto bigint_cnd_sub(W cnd, W x[], const W y[], size_t size) -> W {
   64|   421k|   const auto mask = CT::Mask<W>::expand(cnd).value();
   65|       |
   66|   421k|   W carry = 0;
   67|       |
   68|  2.61M|   for(size_t i = 0; i != size; ++i) {
  ------------------
  |  Branch (68:22): [True: 2.19M, False: 421k]
  ------------------
   69|  2.19M|      x[i] = word_sub(x[i], y[i] & mask, &carry);
   70|  2.19M|   }
   71|       |
   72|   421k|   return (mask & carry);
   73|   421k|}
_ZN5Botan14bigint_cnd_absITkNS_8WordTypeEmEEvT_PS1_m:
   81|   210k|inline constexpr void bigint_cnd_abs(W cnd, W x[], size_t size) {
   82|   210k|   const auto mask = CT::Mask<W>::expand(cnd);
   83|       |
   84|   210k|   W carry = mask.if_set_return(1);
   85|  1.30M|   for(size_t i = 0; i != size; ++i) {
  ------------------
  |  Branch (85:22): [True: 1.09M, False: 210k]
  ------------------
   86|  1.09M|      const W z = word_add(~x[i], static_cast<W>(0), &carry);
   87|  1.09M|      x[i] = mask.select(z, x[i]);
   88|  1.09M|   }
   89|   210k|}
_ZN5Botan13monty_inverseITkNS_8WordTypeEmEET_S1_:
  876|  4.12k|inline constexpr auto monty_inverse(W a) -> W {
  877|  4.12k|   BOTAN_ARG_CHECK(a % 2 == 1, "Cannot compute Montgomery inverse of an even integer");
  ------------------
  |  |   35|  4.12k|   do {                                                          \
  |  |   36|  4.12k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  4.12k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 4.12k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  4.12k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 4.12k]
  |  |  ------------------
  ------------------
  878|       |
  879|       |   // Newton's Method, following https://lemire.me/blog/2017/09/18/computing-the-inverse-of-odd-integers/
  880|       |
  881|  4.12k|   constexpr size_t iter = WordInfo<W>::bits == 64 ? 4 : 3;
  ------------------
  |  Branch (881:28): [True: 0, Folded]
  ------------------
  882|       |
  883|       |   // Initial guess provides 5 bits of accuracy
  884|  4.12k|   W r = (3 * a) ^ 2;
  885|       |
  886|       |   // Each iteration doubles the accuracy
  887|  20.6k|   for(size_t i = 0; i != iter; ++i) {
  ------------------
  |  Branch (887:22): [True: 16.5k, False: 4.12k]
  ------------------
  888|  16.5k|      r = r * (2 - r * a);
  889|  16.5k|   }
  890|       |
  891|       |   // Now invert in addition space
  892|  4.12k|   r = (WordInfo<W>::max - r) + 1;
  893|       |
  894|  4.12k|   return r;
  895|  4.12k|}
_ZN5Botan22bigint_monty_maybe_subITkNS_8WordTypeEmEEvmPT_S1_PKS1_S4_:
  226|  12.6M|inline constexpr void bigint_monty_maybe_sub(size_t N, W z[], W x0, const W x[], const W p[]) {
  227|  12.6M|   W borrow = 0;
  228|       |
  229|  12.6M|   const size_t blocks = N - (N % 8);
  230|       |
  231|  14.7M|   for(size_t i = 0; i != blocks; i += 8) {
  ------------------
  |  Branch (231:22): [True: 2.13M, False: 12.6M]
  ------------------
  232|  2.13M|      borrow = word8_sub3(z + i, x + i, p + i, borrow);
  233|  2.13M|   }
  234|       |
  235|  56.4M|   for(size_t i = blocks; i != N; ++i) {
  ------------------
  |  Branch (235:27): [True: 43.8M, False: 12.6M]
  ------------------
  236|  43.8M|      z[i] = word_sub(x[i], p[i], &borrow);
  237|  43.8M|   }
  238|       |
  239|  12.6M|   borrow = (x0 - borrow) > x0;
  240|       |
  241|  12.6M|   CT::conditional_assign_mem(borrow, z, x, N);
  242|  12.6M|}
_ZN5Botan9comba_sqrILm4ETkNS_8WordTypeEmEEvPT0_PKS1_:
 1027|   242k|constexpr inline void comba_sqr(W z[2 * N], const W x[N]) {
 1028|   242k|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (1028:7): [True: 242k, Folded]
  ------------------
 1029|   242k|      if constexpr(std::same_as<W, word> && N == 4) {
 1030|   242k|         return bigint_comba_sqr4(z, x);
 1031|   242k|      }
 1032|       |      if constexpr(std::same_as<W, word> && N == 6) {
 1033|       |         return bigint_comba_sqr6(z, x);
 1034|       |      }
 1035|       |      if constexpr(std::same_as<W, word> && N == 7) {
 1036|       |         return bigint_comba_sqr7(z, x);
 1037|       |      }
 1038|       |      if constexpr(std::same_as<W, word> && N == 8) {
 1039|       |         return bigint_comba_sqr8(z, x);
 1040|       |      }
 1041|       |      if constexpr(std::same_as<W, word> && N == 9) {
 1042|       |         return bigint_comba_sqr9(z, x);
 1043|       |      }
 1044|       |      if constexpr(std::same_as<W, word> && N == 16) {
 1045|       |         return bigint_comba_sqr16(z, x);
 1046|       |      }
 1047|   242k|   }
 1048|       |
 1049|      0|   word3<W> accum;
 1050|       |
 1051|   242k|   for(size_t i = 0; i != 2 * N; ++i) {
  ------------------
  |  Branch (1051:22): [True: 0, False: 242k]
  ------------------
 1052|      0|      const size_t start = i + 1 < N ? 0 : i + 1 - N;
  ------------------
  |  Branch (1052:28): [True: 0, False: 0]
  ------------------
 1053|      0|      const size_t end = std::min(N, i + 1);
 1054|       |
 1055|      0|      for(size_t j = start; j != end; ++j) {
  ------------------
  |  Branch (1055:29): [True: 0, False: 0]
  ------------------
 1056|      0|         accum.mul(x[j], x[i - j]);
 1057|      0|      }
 1058|      0|      z[i] = accum.extract();
 1059|      0|   }
 1060|   242k|}
_ZN5Botan22bigint_monty_maybe_subILm4ETkNS_8WordTypeEmEEvPT0_S1_PKS1_S4_:
  255|  6.09M|inline constexpr void bigint_monty_maybe_sub(W z[N], W x0, const W x[N], const W y[N]) {
  256|  6.09M|   W borrow = 0;
  257|       |
  258|  30.4M|   for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (258:22): [True: 24.3M, False: 6.09M]
  ------------------
  259|  24.3M|      z[i] = word_sub(x[i], y[i], &borrow);
  260|  24.3M|   }
  261|       |
  262|  6.09M|   borrow = (x0 - borrow) > x0;
  263|       |
  264|  6.09M|   CT::conditional_assign_mem(borrow, z, x, N);
  265|  6.09M|}
_ZN5Botan9comba_mulILm4ETkNS_8WordTypeEmEEvPT0_PKS1_S4_:
  991|   283k|constexpr inline void comba_mul(W z[2 * N], const W x[N], const W y[N]) {
  992|   283k|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (992:7): [True: 283k, Folded]
  ------------------
  993|   283k|      if constexpr(std::same_as<W, word> && N == 4) {
  994|   283k|         return bigint_comba_mul4(z, x, y);
  995|   283k|      }
  996|       |      if constexpr(std::same_as<W, word> && N == 6) {
  997|       |         return bigint_comba_mul6(z, x, y);
  998|       |      }
  999|       |      if constexpr(std::same_as<W, word> && N == 7) {
 1000|       |         return bigint_comba_mul7(z, x, y);
 1001|       |      }
 1002|       |      if constexpr(std::same_as<W, word> && N == 8) {
 1003|       |         return bigint_comba_mul8(z, x, y);
 1004|       |      }
 1005|       |      if constexpr(std::same_as<W, word> && N == 9) {
 1006|       |         return bigint_comba_mul9(z, x, y);
 1007|       |      }
 1008|       |      if constexpr(std::same_as<W, word> && N == 16) {
 1009|       |         return bigint_comba_mul16(z, x, y);
 1010|       |      }
 1011|   283k|   }
 1012|       |
 1013|      0|   word3<W> accum;
 1014|       |
 1015|   283k|   for(size_t i = 0; i != 2 * N; ++i) {
  ------------------
  |  Branch (1015:22): [True: 0, False: 283k]
  ------------------
 1016|      0|      const size_t start = i + 1 < N ? 0 : i + 1 - N;
  ------------------
  |  Branch (1016:28): [True: 0, False: 0]
  ------------------
 1017|      0|      const size_t end = std::min(N, i + 1);
 1018|       |
 1019|      0|      for(size_t j = start; j != end; ++j) {
  ------------------
  |  Branch (1019:29): [True: 0, False: 0]
  ------------------
 1020|      0|         accum.mul(x[j], y[i - j]);
 1021|      0|      }
 1022|      0|      z[i] = accum.extract();
 1023|      0|   }
 1024|   283k|}
_ZN5Botan10shift_leftILm1ETkNS_8WordTypeEmLm4EEET0_RNSt3__15arrayIS1_XT1_EEE:
  898|  25.8k|inline constexpr W shift_left(std::array<W, N>& x) {
  899|  25.8k|   static_assert(N >= 1, "Invalid input size");
  900|  25.8k|   static_assert(S > 0, "Zero shift not supported");
  901|  25.8k|   static_assert(S < WordInfo<W>::bits, "Shift too large");
  902|       |
  903|  25.8k|   const W carry = x[N - 1] >> (WordInfo<W>::bits - S);
  904|       |
  905|   103k|   for(size_t i = N - 1; i != 0; --i) {
  ------------------
  |  Branch (905:26): [True: 77.5k, False: 25.8k]
  ------------------
  906|  77.5k|      x[i] = (x[i] << S) | (x[i - 1] >> (WordInfo<W>::bits - S));
  907|  77.5k|   }
  908|  25.8k|   x[0] <<= S;
  909|       |
  910|  25.8k|   return carry;
  911|  25.8k|}
_ZN5Botan16read_window_bitsILm4EmLm4EEEmNSt3__14spanIKT0_XT1_EEEm:
 1244|  8.32k|constexpr size_t read_window_bits(std::span<const W, N> words, size_t offset) {
 1245|  8.32k|   static_assert(WindowBits >= 1 && WindowBits <= 7);
 1246|       |
 1247|  8.32k|   constexpr uint8_t WindowMask = static_cast<uint8_t>(1 << WindowBits) - 1;
 1248|       |
 1249|  8.32k|   constexpr size_t W_bits = sizeof(W) * 8;
 1250|  8.32k|   const auto bit_shift = offset % W_bits;
 1251|  8.32k|   const auto word_offset = words.size() - 1 - (offset / W_bits);
 1252|       |
 1253|  8.32k|   const bool single_byte_window = bit_shift <= (W_bits - WindowBits) || word_offset == 0;
  ------------------
  |  Branch (1253:36): [True: 8.32k, False: 0]
  |  Branch (1253:74): [True: 0, False: 0]
  ------------------
 1254|       |
 1255|  8.32k|   const auto w0 = words[word_offset];
 1256|       |
 1257|  8.32k|   if(single_byte_window) {
  ------------------
  |  Branch (1257:7): [True: 8.32k, False: 0]
  ------------------
 1258|  8.32k|      return (w0 >> bit_shift) & WindowMask;
 1259|  8.32k|   } else {
 1260|       |      // Otherwise we must join two words and extract the result
 1261|      0|      const auto w1 = words[word_offset - 1];
 1262|      0|      const auto combined = ((w0 >> bit_shift) | (w1 << (W_bits - bit_shift)));
 1263|      0|      return combined & WindowMask;
 1264|      0|   }
 1265|  8.32k|}
_ZN5Botan11shift_rightILm1ETkNS_8WordTypeEmLm4EEET0_RNSt3__15arrayIS1_XT1_EEE:
  914|  2.86k|inline constexpr W shift_right(std::array<W, N>& x) {
  915|  2.86k|   static_assert(N >= 1, "Invalid input size");
  916|  2.86k|   static_assert(S > 0, "Zero shift not supported");
  917|  2.86k|   static_assert(S < WordInfo<W>::bits, "Shift too large");
  918|       |
  919|  2.86k|   const W carry = x[0] << (WordInfo<W>::bits - S);
  920|       |
  921|  11.4k|   for(size_t i = 0; i != N - 1; ++i) {
  ------------------
  |  Branch (921:22): [True: 8.59k, False: 2.86k]
  ------------------
  922|  8.59k|      x[i] = (x[i] >> S) | (x[i + 1] << (WordInfo<W>::bits - S));
  923|  8.59k|   }
  924|  2.86k|   x[N - 1] >>= S;
  925|       |
  926|  2.86k|   return carry;
  927|  2.86k|}
_ZN5Botan16read_window_bitsILm7EhLm18446744073709551615EEEmNSt3__14spanIKT0_XT1_EEEm:
 1244|  81.7k|constexpr size_t read_window_bits(std::span<const W, N> words, size_t offset) {
 1245|  81.7k|   static_assert(WindowBits >= 1 && WindowBits <= 7);
 1246|       |
 1247|  81.7k|   constexpr uint8_t WindowMask = static_cast<uint8_t>(1 << WindowBits) - 1;
 1248|       |
 1249|  81.7k|   constexpr size_t W_bits = sizeof(W) * 8;
 1250|  81.7k|   const auto bit_shift = offset % W_bits;
 1251|  81.7k|   const auto word_offset = words.size() - 1 - (offset / W_bits);
 1252|       |
 1253|  81.7k|   const bool single_byte_window = bit_shift <= (W_bits - WindowBits) || word_offset == 0;
  ------------------
  |  Branch (1253:36): [True: 21.1k, False: 60.6k]
  |  Branch (1253:74): [True: 1.27k, False: 59.3k]
  ------------------
 1254|       |
 1255|  81.7k|   const auto w0 = words[word_offset];
 1256|       |
 1257|  81.7k|   if(single_byte_window) {
  ------------------
  |  Branch (1257:7): [True: 22.3k, False: 59.3k]
  ------------------
 1258|  22.3k|      return (w0 >> bit_shift) & WindowMask;
 1259|  59.3k|   } else {
 1260|       |      // Otherwise we must join two words and extract the result
 1261|  59.3k|      const auto w1 = words[word_offset - 1];
 1262|  59.3k|      const auto combined = ((w0 >> bit_shift) | (w1 << (W_bits - bit_shift)));
 1263|  59.3k|      return combined & WindowMask;
 1264|  59.3k|   }
 1265|  81.7k|}
_ZN5Botan9comba_sqrILm6ETkNS_8WordTypeEmEEvPT0_PKS1_:
 1027|   186k|constexpr inline void comba_sqr(W z[2 * N], const W x[N]) {
 1028|   186k|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (1028:7): [True: 186k, Folded]
  ------------------
 1029|       |      if constexpr(std::same_as<W, word> && N == 4) {
 1030|       |         return bigint_comba_sqr4(z, x);
 1031|       |      }
 1032|   186k|      if constexpr(std::same_as<W, word> && N == 6) {
 1033|   186k|         return bigint_comba_sqr6(z, x);
 1034|   186k|      }
 1035|       |      if constexpr(std::same_as<W, word> && N == 7) {
 1036|       |         return bigint_comba_sqr7(z, x);
 1037|       |      }
 1038|       |      if constexpr(std::same_as<W, word> && N == 8) {
 1039|       |         return bigint_comba_sqr8(z, x);
 1040|       |      }
 1041|       |      if constexpr(std::same_as<W, word> && N == 9) {
 1042|       |         return bigint_comba_sqr9(z, x);
 1043|       |      }
 1044|       |      if constexpr(std::same_as<W, word> && N == 16) {
 1045|       |         return bigint_comba_sqr16(z, x);
 1046|       |      }
 1047|   186k|   }
 1048|       |
 1049|      0|   word3<W> accum;
 1050|       |
 1051|   186k|   for(size_t i = 0; i != 2 * N; ++i) {
  ------------------
  |  Branch (1051:22): [True: 0, False: 186k]
  ------------------
 1052|      0|      const size_t start = i + 1 < N ? 0 : i + 1 - N;
  ------------------
  |  Branch (1052:28): [True: 0, False: 0]
  ------------------
 1053|      0|      const size_t end = std::min(N, i + 1);
 1054|       |
 1055|      0|      for(size_t j = start; j != end; ++j) {
  ------------------
  |  Branch (1055:29): [True: 0, False: 0]
  ------------------
 1056|      0|         accum.mul(x[j], x[i - j]);
 1057|      0|      }
 1058|      0|      z[i] = accum.extract();
 1059|      0|   }
 1060|   186k|}
_ZN5Botan22bigint_monty_maybe_subILm6ETkNS_8WordTypeEmEEvPT0_S1_PKS1_S4_:
  255|   245k|inline constexpr void bigint_monty_maybe_sub(W z[N], W x0, const W x[N], const W y[N]) {
  256|   245k|   W borrow = 0;
  257|       |
  258|  1.72M|   for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (258:22): [True: 1.47M, False: 245k]
  ------------------
  259|  1.47M|      z[i] = word_sub(x[i], y[i], &borrow);
  260|  1.47M|   }
  261|       |
  262|   245k|   borrow = (x0 - borrow) > x0;
  263|       |
  264|   245k|   CT::conditional_assign_mem(borrow, z, x, N);
  265|   245k|}
_ZN5Botan9comba_mulILm6ETkNS_8WordTypeEmEEvPT0_PKS1_S4_:
  991|   220k|constexpr inline void comba_mul(W z[2 * N], const W x[N], const W y[N]) {
  992|   220k|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (992:7): [True: 220k, Folded]
  ------------------
  993|       |      if constexpr(std::same_as<W, word> && N == 4) {
  994|       |         return bigint_comba_mul4(z, x, y);
  995|       |      }
  996|   220k|      if constexpr(std::same_as<W, word> && N == 6) {
  997|   220k|         return bigint_comba_mul6(z, x, y);
  998|   220k|      }
  999|       |      if constexpr(std::same_as<W, word> && N == 7) {
 1000|       |         return bigint_comba_mul7(z, x, y);
 1001|       |      }
 1002|       |      if constexpr(std::same_as<W, word> && N == 8) {
 1003|       |         return bigint_comba_mul8(z, x, y);
 1004|       |      }
 1005|       |      if constexpr(std::same_as<W, word> && N == 9) {
 1006|       |         return bigint_comba_mul9(z, x, y);
 1007|       |      }
 1008|       |      if constexpr(std::same_as<W, word> && N == 16) {
 1009|       |         return bigint_comba_mul16(z, x, y);
 1010|       |      }
 1011|   220k|   }
 1012|       |
 1013|      0|   word3<W> accum;
 1014|       |
 1015|   220k|   for(size_t i = 0; i != 2 * N; ++i) {
  ------------------
  |  Branch (1015:22): [True: 0, False: 220k]
  ------------------
 1016|      0|      const size_t start = i + 1 < N ? 0 : i + 1 - N;
  ------------------
  |  Branch (1016:28): [True: 0, False: 0]
  ------------------
 1017|      0|      const size_t end = std::min(N, i + 1);
 1018|       |
 1019|      0|      for(size_t j = start; j != end; ++j) {
  ------------------
  |  Branch (1019:29): [True: 0, False: 0]
  ------------------
 1020|      0|         accum.mul(x[j], y[i - j]);
 1021|      0|      }
 1022|      0|      z[i] = accum.extract();
 1023|      0|   }
 1024|   220k|}
_ZN5Botan10shift_leftILm1ETkNS_8WordTypeEmLm6EEET0_RNSt3__15arrayIS1_XT1_EEE:
  898|  19.8k|inline constexpr W shift_left(std::array<W, N>& x) {
  899|  19.8k|   static_assert(N >= 1, "Invalid input size");
  900|  19.8k|   static_assert(S > 0, "Zero shift not supported");
  901|  19.8k|   static_assert(S < WordInfo<W>::bits, "Shift too large");
  902|       |
  903|  19.8k|   const W carry = x[N - 1] >> (WordInfo<W>::bits - S);
  904|       |
  905|   119k|   for(size_t i = N - 1; i != 0; --i) {
  ------------------
  |  Branch (905:26): [True: 99.2k, False: 19.8k]
  ------------------
  906|  99.2k|      x[i] = (x[i] << S) | (x[i - 1] >> (WordInfo<W>::bits - S));
  907|  99.2k|   }
  908|  19.8k|   x[0] <<= S;
  909|       |
  910|  19.8k|   return carry;
  911|  19.8k|}
_ZN5Botan16read_window_bitsILm5EmLm6EEEmNSt3__14spanIKT0_XT1_EEEm:
 1244|  9.70k|constexpr size_t read_window_bits(std::span<const W, N> words, size_t offset) {
 1245|  9.70k|   static_assert(WindowBits >= 1 && WindowBits <= 7);
 1246|       |
 1247|  9.70k|   constexpr uint8_t WindowMask = static_cast<uint8_t>(1 << WindowBits) - 1;
 1248|       |
 1249|  9.70k|   constexpr size_t W_bits = sizeof(W) * 8;
 1250|  9.70k|   const auto bit_shift = offset % W_bits;
 1251|  9.70k|   const auto word_offset = words.size() - 1 - (offset / W_bits);
 1252|       |
 1253|  9.70k|   const bool single_byte_window = bit_shift <= (W_bits - WindowBits) || word_offset == 0;
  ------------------
  |  Branch (1253:36): [True: 9.07k, False: 630]
  |  Branch (1253:74): [True: 126, False: 504]
  ------------------
 1254|       |
 1255|  9.70k|   const auto w0 = words[word_offset];
 1256|       |
 1257|  9.70k|   if(single_byte_window) {
  ------------------
  |  Branch (1257:7): [True: 9.19k, False: 504]
  ------------------
 1258|  9.19k|      return (w0 >> bit_shift) & WindowMask;
 1259|  9.19k|   } else {
 1260|       |      // Otherwise we must join two words and extract the result
 1261|    504|      const auto w1 = words[word_offset - 1];
 1262|    504|      const auto combined = ((w0 >> bit_shift) | (w1 << (W_bits - bit_shift)));
 1263|    504|      return combined & WindowMask;
 1264|    504|   }
 1265|  9.70k|}
_ZN5Botan11shift_rightILm1ETkNS_8WordTypeEmLm6EEET0_RNSt3__15arrayIS1_XT1_EEE:
  914|  2.21k|inline constexpr W shift_right(std::array<W, N>& x) {
  915|  2.21k|   static_assert(N >= 1, "Invalid input size");
  916|  2.21k|   static_assert(S > 0, "Zero shift not supported");
  917|  2.21k|   static_assert(S < WordInfo<W>::bits, "Shift too large");
  918|       |
  919|  2.21k|   const W carry = x[0] << (WordInfo<W>::bits - S);
  920|       |
  921|  13.2k|   for(size_t i = 0; i != N - 1; ++i) {
  ------------------
  |  Branch (921:22): [True: 11.0k, False: 2.21k]
  ------------------
  922|  11.0k|      x[i] = (x[i] >> S) | (x[i + 1] << (WordInfo<W>::bits - S));
  923|  11.0k|   }
  924|  2.21k|   x[N - 1] >>= S;
  925|       |
  926|  2.21k|   return carry;
  927|  2.21k|}
_ZN5Botan9comba_sqrILm8ETkNS_8WordTypeEmEEvPT0_PKS1_:
 1027|   153k|constexpr inline void comba_sqr(W z[2 * N], const W x[N]) {
 1028|   153k|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (1028:7): [True: 153k, Folded]
  ------------------
 1029|       |      if constexpr(std::same_as<W, word> && N == 4) {
 1030|       |         return bigint_comba_sqr4(z, x);
 1031|       |      }
 1032|       |      if constexpr(std::same_as<W, word> && N == 6) {
 1033|       |         return bigint_comba_sqr6(z, x);
 1034|       |      }
 1035|       |      if constexpr(std::same_as<W, word> && N == 7) {
 1036|       |         return bigint_comba_sqr7(z, x);
 1037|       |      }
 1038|   153k|      if constexpr(std::same_as<W, word> && N == 8) {
 1039|   153k|         return bigint_comba_sqr8(z, x);
 1040|   153k|      }
 1041|       |      if constexpr(std::same_as<W, word> && N == 9) {
 1042|       |         return bigint_comba_sqr9(z, x);
 1043|       |      }
 1044|       |      if constexpr(std::same_as<W, word> && N == 16) {
 1045|       |         return bigint_comba_sqr16(z, x);
 1046|       |      }
 1047|   153k|   }
 1048|       |
 1049|      0|   word3<W> accum;
 1050|       |
 1051|   153k|   for(size_t i = 0; i != 2 * N; ++i) {
  ------------------
  |  Branch (1051:22): [True: 0, False: 153k]
  ------------------
 1052|      0|      const size_t start = i + 1 < N ? 0 : i + 1 - N;
  ------------------
  |  Branch (1052:28): [True: 0, False: 0]
  ------------------
 1053|      0|      const size_t end = std::min(N, i + 1);
 1054|       |
 1055|      0|      for(size_t j = start; j != end; ++j) {
  ------------------
  |  Branch (1055:29): [True: 0, False: 0]
  ------------------
 1056|      0|         accum.mul(x[j], x[i - j]);
 1057|      0|      }
 1058|      0|      z[i] = accum.extract();
 1059|      0|   }
 1060|   153k|}
_ZN5Botan22bigint_monty_maybe_subILm8ETkNS_8WordTypeEmEEvPT0_S1_PKS1_S4_:
  255|   370k|inline constexpr void bigint_monty_maybe_sub(W z[N], W x0, const W x[N], const W y[N]) {
  256|   370k|   W borrow = 0;
  257|       |
  258|  3.33M|   for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (258:22): [True: 2.96M, False: 370k]
  ------------------
  259|  2.96M|      z[i] = word_sub(x[i], y[i], &borrow);
  260|  2.96M|   }
  261|       |
  262|   370k|   borrow = (x0 - borrow) > x0;
  263|       |
  264|   370k|   CT::conditional_assign_mem(borrow, z, x, N);
  265|   370k|}
_ZN5Botan9comba_mulILm8ETkNS_8WordTypeEmEEvPT0_PKS1_S4_:
  991|   180k|constexpr inline void comba_mul(W z[2 * N], const W x[N], const W y[N]) {
  992|   180k|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (992:7): [True: 180k, Folded]
  ------------------
  993|       |      if constexpr(std::same_as<W, word> && N == 4) {
  994|       |         return bigint_comba_mul4(z, x, y);
  995|       |      }
  996|       |      if constexpr(std::same_as<W, word> && N == 6) {
  997|       |         return bigint_comba_mul6(z, x, y);
  998|       |      }
  999|       |      if constexpr(std::same_as<W, word> && N == 7) {
 1000|       |         return bigint_comba_mul7(z, x, y);
 1001|       |      }
 1002|   180k|      if constexpr(std::same_as<W, word> && N == 8) {
 1003|   180k|         return bigint_comba_mul8(z, x, y);
 1004|   180k|      }
 1005|       |      if constexpr(std::same_as<W, word> && N == 9) {
 1006|       |         return bigint_comba_mul9(z, x, y);
 1007|       |      }
 1008|       |      if constexpr(std::same_as<W, word> && N == 16) {
 1009|       |         return bigint_comba_mul16(z, x, y);
 1010|       |      }
 1011|   180k|   }
 1012|       |
 1013|      0|   word3<W> accum;
 1014|       |
 1015|   180k|   for(size_t i = 0; i != 2 * N; ++i) {
  ------------------
  |  Branch (1015:22): [True: 0, False: 180k]
  ------------------
 1016|      0|      const size_t start = i + 1 < N ? 0 : i + 1 - N;
  ------------------
  |  Branch (1016:28): [True: 0, False: 0]
  ------------------
 1017|      0|      const size_t end = std::min(N, i + 1);
 1018|       |
 1019|      0|      for(size_t j = start; j != end; ++j) {
  ------------------
  |  Branch (1019:29): [True: 0, False: 0]
  ------------------
 1020|      0|         accum.mul(x[j], y[i - j]);
 1021|      0|      }
 1022|      0|      z[i] = accum.extract();
 1023|      0|   }
 1024|   180k|}
_ZN5Botan10shift_leftILm1ETkNS_8WordTypeEmLm8EEET0_RNSt3__15arrayIS1_XT1_EEE:
  898|  13.1k|inline constexpr W shift_left(std::array<W, N>& x) {
  899|  13.1k|   static_assert(N >= 1, "Invalid input size");
  900|  13.1k|   static_assert(S > 0, "Zero shift not supported");
  901|  13.1k|   static_assert(S < WordInfo<W>::bits, "Shift too large");
  902|       |
  903|  13.1k|   const W carry = x[N - 1] >> (WordInfo<W>::bits - S);
  904|       |
  905|   105k|   for(size_t i = N - 1; i != 0; --i) {
  ------------------
  |  Branch (905:26): [True: 92.3k, False: 13.1k]
  ------------------
  906|  92.3k|      x[i] = (x[i] << S) | (x[i - 1] >> (WordInfo<W>::bits - S));
  907|  92.3k|   }
  908|  13.1k|   x[0] <<= S;
  909|       |
  910|  13.1k|   return carry;
  911|  13.1k|}
_ZN5Botan16read_window_bitsILm5EmLm8EEEmNSt3__14spanIKT0_XT1_EEEm:
 1244|  17.7k|constexpr size_t read_window_bits(std::span<const W, N> words, size_t offset) {
 1245|  17.7k|   static_assert(WindowBits >= 1 && WindowBits <= 7);
 1246|       |
 1247|  17.7k|   constexpr uint8_t WindowMask = static_cast<uint8_t>(1 << WindowBits) - 1;
 1248|       |
 1249|  17.7k|   constexpr size_t W_bits = sizeof(W) * 8;
 1250|  17.7k|   const auto bit_shift = offset % W_bits;
 1251|  17.7k|   const auto word_offset = words.size() - 1 - (offset / W_bits);
 1252|       |
 1253|  17.7k|   const bool single_byte_window = bit_shift <= (W_bits - WindowBits) || word_offset == 0;
  ------------------
  |  Branch (1253:36): [True: 16.5k, False: 1.20k]
  |  Branch (1253:74): [True: 172, False: 1.03k]
  ------------------
 1254|       |
 1255|  17.7k|   const auto w0 = words[word_offset];
 1256|       |
 1257|  17.7k|   if(single_byte_window) {
  ------------------
  |  Branch (1257:7): [True: 16.6k, False: 1.03k]
  ------------------
 1258|  16.6k|      return (w0 >> bit_shift) & WindowMask;
 1259|  16.6k|   } else {
 1260|       |      // Otherwise we must join two words and extract the result
 1261|  1.03k|      const auto w1 = words[word_offset - 1];
 1262|  1.03k|      const auto combined = ((w0 >> bit_shift) | (w1 << (W_bits - bit_shift)));
 1263|  1.03k|      return combined & WindowMask;
 1264|  1.03k|   }
 1265|  17.7k|}
_ZN5Botan11shift_rightILm1ETkNS_8WordTypeEmLm8EEET0_RNSt3__15arrayIS1_XT1_EEE:
  914|  1.42k|inline constexpr W shift_right(std::array<W, N>& x) {
  915|  1.42k|   static_assert(N >= 1, "Invalid input size");
  916|  1.42k|   static_assert(S > 0, "Zero shift not supported");
  917|  1.42k|   static_assert(S < WordInfo<W>::bits, "Shift too large");
  918|       |
  919|  1.42k|   const W carry = x[0] << (WordInfo<W>::bits - S);
  920|       |
  921|  11.4k|   for(size_t i = 0; i != N - 1; ++i) {
  ------------------
  |  Branch (921:22): [True: 9.98k, False: 1.42k]
  ------------------
  922|  9.98k|      x[i] = (x[i] >> S) | (x[i + 1] << (WordInfo<W>::bits - S));
  923|  9.98k|   }
  924|  1.42k|   x[N - 1] >>= S;
  925|       |
  926|  1.42k|   return carry;
  927|  1.42k|}
_ZN5Botan10shift_leftILm1ETkNS_8WordTypeEmLm9EEET0_RNSt3__15arrayIS1_XT1_EEE:
  898|  2.17M|inline constexpr W shift_left(std::array<W, N>& x) {
  899|  2.17M|   static_assert(N >= 1, "Invalid input size");
  900|  2.17M|   static_assert(S > 0, "Zero shift not supported");
  901|  2.17M|   static_assert(S < WordInfo<W>::bits, "Shift too large");
  902|       |
  903|  2.17M|   const W carry = x[N - 1] >> (WordInfo<W>::bits - S);
  904|       |
  905|  19.5M|   for(size_t i = N - 1; i != 0; --i) {
  ------------------
  |  Branch (905:26): [True: 17.3M, False: 2.17M]
  ------------------
  906|  17.3M|      x[i] = (x[i] << S) | (x[i - 1] >> (WordInfo<W>::bits - S));
  907|  17.3M|   }
  908|  2.17M|   x[0] <<= S;
  909|       |
  910|  2.17M|   return carry;
  911|  2.17M|}
_ZN5Botan22bigint_monty_maybe_subILm9ETkNS_8WordTypeEmEEvPT0_S1_PKS1_S4_:
  255|  2.19M|inline constexpr void bigint_monty_maybe_sub(W z[N], W x0, const W x[N], const W y[N]) {
  256|  2.19M|   W borrow = 0;
  257|       |
  258|  21.9M|   for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (258:22): [True: 19.7M, False: 2.19M]
  ------------------
  259|  19.7M|      z[i] = word_sub(x[i], y[i], &borrow);
  260|  19.7M|   }
  261|       |
  262|  2.19M|   borrow = (x0 - borrow) > x0;
  263|       |
  264|  2.19M|   CT::conditional_assign_mem(borrow, z, x, N);
  265|  2.19M|}
_ZN5Botan16read_window_bitsILm4EmLm18446744073709551615EEEmNSt3__14spanIKT0_XT1_EEEm:
 1244|  35.7k|constexpr size_t read_window_bits(std::span<const W, N> words, size_t offset) {
 1245|  35.7k|   static_assert(WindowBits >= 1 && WindowBits <= 7);
 1246|       |
 1247|  35.7k|   constexpr uint8_t WindowMask = static_cast<uint8_t>(1 << WindowBits) - 1;
 1248|       |
 1249|  35.7k|   constexpr size_t W_bits = sizeof(W) * 8;
 1250|  35.7k|   const auto bit_shift = offset % W_bits;
 1251|  35.7k|   const auto word_offset = words.size() - 1 - (offset / W_bits);
 1252|       |
 1253|  35.7k|   const bool single_byte_window = bit_shift <= (W_bits - WindowBits) || word_offset == 0;
  ------------------
  |  Branch (1253:36): [True: 35.7k, False: 0]
  |  Branch (1253:74): [True: 0, False: 0]
  ------------------
 1254|       |
 1255|  35.7k|   const auto w0 = words[word_offset];
 1256|       |
 1257|  35.7k|   if(single_byte_window) {
  ------------------
  |  Branch (1257:7): [True: 35.7k, False: 0]
  ------------------
 1258|  35.7k|      return (w0 >> bit_shift) & WindowMask;
 1259|  35.7k|   } else {
 1260|       |      // Otherwise we must join two words and extract the result
 1261|      0|      const auto w1 = words[word_offset - 1];
 1262|      0|      const auto combined = ((w0 >> bit_shift) | (w1 << (W_bits - bit_shift)));
 1263|      0|      return combined & WindowMask;
 1264|      0|   }
 1265|  35.7k|}
_ZN5Botan11shift_rightILm1ETkNS_8WordTypeEmLm9EEET0_RNSt3__15arrayIS1_XT1_EEE:
  914|  1.48k|inline constexpr W shift_right(std::array<W, N>& x) {
  915|  1.48k|   static_assert(N >= 1, "Invalid input size");
  916|  1.48k|   static_assert(S > 0, "Zero shift not supported");
  917|  1.48k|   static_assert(S < WordInfo<W>::bits, "Shift too large");
  918|       |
  919|  1.48k|   const W carry = x[0] << (WordInfo<W>::bits - S);
  920|       |
  921|  13.3k|   for(size_t i = 0; i != N - 1; ++i) {
  ------------------
  |  Branch (921:22): [True: 11.8k, False: 1.48k]
  ------------------
  922|  11.8k|      x[i] = (x[i] >> S) | (x[i + 1] << (WordInfo<W>::bits - S));
  923|  11.8k|   }
  924|  1.48k|   x[N - 1] >>= S;
  925|       |
  926|  1.48k|   return carry;
  927|  1.48k|}
_ZN5Botan10shift_leftILm32ETkNS_8WordTypeEmLm4EEET0_RNSt3__15arrayIS1_XT1_EEE:
  898|    412|inline constexpr W shift_left(std::array<W, N>& x) {
  899|    412|   static_assert(N >= 1, "Invalid input size");
  900|    412|   static_assert(S > 0, "Zero shift not supported");
  901|    412|   static_assert(S < WordInfo<W>::bits, "Shift too large");
  902|       |
  903|    412|   const W carry = x[N - 1] >> (WordInfo<W>::bits - S);
  904|       |
  905|  1.64k|   for(size_t i = N - 1; i != 0; --i) {
  ------------------
  |  Branch (905:26): [True: 1.23k, False: 412]
  ------------------
  906|  1.23k|      x[i] = (x[i] << S) | (x[i - 1] >> (WordInfo<W>::bits - S));
  907|  1.23k|   }
  908|    412|   x[0] <<= S;
  909|       |
  910|    412|   return carry;
  911|    412|}
_ZN5Botan13redc_crandallITkNS_8WordTypeEmLm4ETnT_Lm4294968273EEENSt3__15arrayIS1_XT0_EEENS2_4spanIKS1_XmlLi2ET0_EEE:
 1165|   130k|constexpr std::array<W, N> redc_crandall(std::span<const W, 2 * N> z) {
 1166|   130k|   static_assert(N >= 2);
 1167|       |
 1168|   130k|   std::array<W, N> hi = {};
 1169|       |
 1170|       |   // hi = hi * c + lo
 1171|       |
 1172|   130k|   W carry = 0;
 1173|   652k|   for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (1173:22): [True: 521k, False: 130k]
  ------------------
 1174|   521k|      hi[i] = word_madd3(z[i + N], C, z[i], &carry);
 1175|   521k|   }
 1176|       |
 1177|       |   // hi += carry * C
 1178|   130k|   word carry_c[2] = {0};
 1179|   130k|   carry_c[0] = word_madd2(carry, C, &carry_c[1]);
 1180|       |
 1181|   130k|   carry = bigint_add2(hi.data(), N, carry_c, 2);
 1182|       |
 1183|   130k|   constexpr W P0 = WordInfo<W>::max - (C - 1);
 1184|       |
 1185|   130k|   std::array<W, N> r = {};
 1186|       |
 1187|   130k|   W borrow = 0;
 1188|       |
 1189|       |   /*
 1190|       |   * For undetermined reasons, on GCC (only) removing this asm block causes
 1191|       |   * massive (up to 20%) performance regressions in secp256k1.
 1192|       |   *
 1193|       |   * The generated code without the asm seems quite reasonable, and timing
 1194|       |   * repeated calls to redc_crandall with the cycle counter show that GCC
 1195|       |   * computes it in about the same number of cycles with or without the asm.
 1196|       |   *
 1197|       |   * So the cause of the regression is unclear. But it is reproducible across
 1198|       |   * machines and GCC versions.
 1199|       |   */
 1200|       |#if defined(BOTAN_MP_USE_X86_64_ASM) && defined(__GNUC__) && !defined(__clang__)
 1201|       |   if constexpr(N == 4 && std::same_as<W, uint64_t>) {
 1202|       |      if(!std::is_constant_evaluated()) {
 1203|       |         asm volatile(R"(
 1204|       |                      movq 0(%[x]), %[borrow]
 1205|       |                      subq %[p0], %[borrow]
 1206|       |                      movq %[borrow], 0(%[r])
 1207|       |                      movq 8(%[x]), %[borrow]
 1208|       |                      sbbq $-1, %[borrow]
 1209|       |                      movq %[borrow], 8(%[r])
 1210|       |                      movq 16(%[x]), %[borrow]
 1211|       |                      sbbq $-1, %[borrow]
 1212|       |                      movq %[borrow], 16(%[r])
 1213|       |                      movq 24(%[x]), %[borrow]
 1214|       |                      sbbq $-1, %[borrow]
 1215|       |                      movq %[borrow], 24(%[r])
 1216|       |                      sbbq %[borrow],%[borrow]
 1217|       |                      negq %[borrow]
 1218|       |                      )"
 1219|       |                      : [borrow] "=r"(borrow)
 1220|       |                      : [x] "r"(hi.data()), [p0] "r"(P0), [r] "r"(r.data()), "0"(borrow)
 1221|       |                      : "cc", "memory");
 1222|       |
 1223|       |         borrow = (carry - borrow) > carry;
 1224|       |         CT::conditional_assign_mem(borrow, r.data(), hi.data(), N);
 1225|       |         return r;
 1226|       |      }
 1227|       |   }
 1228|       |#endif
 1229|       |
 1230|   130k|   r[0] = word_sub(hi[0], P0, &borrow);
 1231|   521k|   for(size_t i = 1; i != N; ++i) {
  ------------------
  |  Branch (1231:22): [True: 391k, False: 130k]
  ------------------
 1232|   391k|      r[i] = word_sub(hi[i], WordInfo<W>::max, &borrow);
 1233|   391k|   }
 1234|       |
 1235|   130k|   borrow = (carry - borrow) > carry;
 1236|       |
 1237|   130k|   CT::conditional_assign_mem(borrow, r.data(), hi.data(), N);
 1238|       |
 1239|   130k|   return r;
 1240|   130k|}
_ZN5Botan9comba_sqrILm9ETkNS_8WordTypeEmEEvPT0_PKS1_:
 1027|   152k|constexpr inline void comba_sqr(W z[2 * N], const W x[N]) {
 1028|   152k|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (1028:7): [True: 152k, Folded]
  ------------------
 1029|       |      if constexpr(std::same_as<W, word> && N == 4) {
 1030|       |         return bigint_comba_sqr4(z, x);
 1031|       |      }
 1032|       |      if constexpr(std::same_as<W, word> && N == 6) {
 1033|       |         return bigint_comba_sqr6(z, x);
 1034|       |      }
 1035|       |      if constexpr(std::same_as<W, word> && N == 7) {
 1036|       |         return bigint_comba_sqr7(z, x);
 1037|       |      }
 1038|       |      if constexpr(std::same_as<W, word> && N == 8) {
 1039|       |         return bigint_comba_sqr8(z, x);
 1040|       |      }
 1041|   152k|      if constexpr(std::same_as<W, word> && N == 9) {
 1042|   152k|         return bigint_comba_sqr9(z, x);
 1043|   152k|      }
 1044|       |      if constexpr(std::same_as<W, word> && N == 16) {
 1045|       |         return bigint_comba_sqr16(z, x);
 1046|       |      }
 1047|   152k|   }
 1048|       |
 1049|      0|   word3<W> accum;
 1050|       |
 1051|   152k|   for(size_t i = 0; i != 2 * N; ++i) {
  ------------------
  |  Branch (1051:22): [True: 0, False: 152k]
  ------------------
 1052|      0|      const size_t start = i + 1 < N ? 0 : i + 1 - N;
  ------------------
  |  Branch (1052:28): [True: 0, False: 0]
  ------------------
 1053|      0|      const size_t end = std::min(N, i + 1);
 1054|       |
 1055|      0|      for(size_t j = start; j != end; ++j) {
  ------------------
  |  Branch (1055:29): [True: 0, False: 0]
  ------------------
 1056|      0|         accum.mul(x[j], x[i - j]);
 1057|      0|      }
 1058|      0|      z[i] = accum.extract();
 1059|      0|   }
 1060|   152k|}
_ZN5Botan9comba_mulILm9ETkNS_8WordTypeEmEEvPT0_PKS1_S4_:
  991|   166k|constexpr inline void comba_mul(W z[2 * N], const W x[N], const W y[N]) {
  992|   166k|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (992:7): [True: 166k, Folded]
  ------------------
  993|       |      if constexpr(std::same_as<W, word> && N == 4) {
  994|       |         return bigint_comba_mul4(z, x, y);
  995|       |      }
  996|       |      if constexpr(std::same_as<W, word> && N == 6) {
  997|       |         return bigint_comba_mul6(z, x, y);
  998|       |      }
  999|       |      if constexpr(std::same_as<W, word> && N == 7) {
 1000|       |         return bigint_comba_mul7(z, x, y);
 1001|       |      }
 1002|       |      if constexpr(std::same_as<W, word> && N == 8) {
 1003|       |         return bigint_comba_mul8(z, x, y);
 1004|       |      }
 1005|   166k|      if constexpr(std::same_as<W, word> && N == 9) {
 1006|   166k|         return bigint_comba_mul9(z, x, y);
 1007|   166k|      }
 1008|       |      if constexpr(std::same_as<W, word> && N == 16) {
 1009|       |         return bigint_comba_mul16(z, x, y);
 1010|       |      }
 1011|   166k|   }
 1012|       |
 1013|      0|   word3<W> accum;
 1014|       |
 1015|   166k|   for(size_t i = 0; i != 2 * N; ++i) {
  ------------------
  |  Branch (1015:22): [True: 0, False: 166k]
  ------------------
 1016|      0|      const size_t start = i + 1 < N ? 0 : i + 1 - N;
  ------------------
  |  Branch (1016:28): [True: 0, False: 0]
  ------------------
 1017|      0|      const size_t end = std::min(N, i + 1);
 1018|       |
 1019|      0|      for(size_t j = start; j != end; ++j) {
  ------------------
  |  Branch (1019:29): [True: 0, False: 0]
  ------------------
 1020|      0|         accum.mul(x[j], y[i - j]);
 1021|      0|      }
 1022|      0|      z[i] = accum.extract();
 1023|      0|   }
 1024|   166k|}
_ZN5Botan10shift_leftILm16ETkNS_8WordTypeEmLm9EEET0_RNSt3__15arrayIS1_XT1_EEE:
  898|    364|inline constexpr W shift_left(std::array<W, N>& x) {
  899|    364|   static_assert(N >= 1, "Invalid input size");
  900|    364|   static_assert(S > 0, "Zero shift not supported");
  901|    364|   static_assert(S < WordInfo<W>::bits, "Shift too large");
  902|       |
  903|    364|   const W carry = x[N - 1] >> (WordInfo<W>::bits - S);
  904|       |
  905|  3.27k|   for(size_t i = N - 1; i != 0; --i) {
  ------------------
  |  Branch (905:26): [True: 2.91k, False: 364]
  ------------------
  906|  2.91k|      x[i] = (x[i] << S) | (x[i - 1] >> (WordInfo<W>::bits - S));
  907|  2.91k|   }
  908|    364|   x[0] <<= S;
  909|       |
  910|    364|   return carry;
  911|    364|}
_ZN5Botan22bigint_monty_maybe_subILm12ETkNS_8WordTypeEmEEvPT0_S1_PKS1_S4_:
  255|  1.39k|inline constexpr void bigint_monty_maybe_sub(W z[N], W x0, const W x[N], const W y[N]) {
  256|  1.39k|   W borrow = 0;
  257|       |
  258|  18.1k|   for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (258:22): [True: 16.7k, False: 1.39k]
  ------------------
  259|  16.7k|      z[i] = word_sub(x[i], y[i], &borrow);
  260|  16.7k|   }
  261|       |
  262|  1.39k|   borrow = (x0 - borrow) > x0;
  263|       |
  264|  1.39k|   CT::conditional_assign_mem(borrow, z, x, N);
  265|  1.39k|}
_ZN5Botan22bigint_monty_maybe_subILm16ETkNS_8WordTypeEmEEvPT0_S1_PKS1_S4_:
  255|  1.60k|inline constexpr void bigint_monty_maybe_sub(W z[N], W x0, const W x[N], const W y[N]) {
  256|  1.60k|   W borrow = 0;
  257|       |
  258|  27.2k|   for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (258:22): [True: 25.6k, False: 1.60k]
  ------------------
  259|  25.6k|      z[i] = word_sub(x[i], y[i], &borrow);
  260|  25.6k|   }
  261|       |
  262|  1.60k|   borrow = (x0 - borrow) > x0;
  263|       |
  264|  1.60k|   CT::conditional_assign_mem(borrow, z, x, N);
  265|  1.60k|}
_ZN5Botan9comba_mulILm7ETkNS_8WordTypeEmEEvPT0_PKS1_S4_:
  991|  15.0k|constexpr inline void comba_mul(W z[2 * N], const W x[N], const W y[N]) {
  992|  15.0k|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (992:7): [True: 15.0k, Folded]
  ------------------
  993|       |      if constexpr(std::same_as<W, word> && N == 4) {
  994|       |         return bigint_comba_mul4(z, x, y);
  995|       |      }
  996|       |      if constexpr(std::same_as<W, word> && N == 6) {
  997|       |         return bigint_comba_mul6(z, x, y);
  998|       |      }
  999|  15.0k|      if constexpr(std::same_as<W, word> && N == 7) {
 1000|  15.0k|         return bigint_comba_mul7(z, x, y);
 1001|  15.0k|      }
 1002|       |      if constexpr(std::same_as<W, word> && N == 8) {
 1003|       |         return bigint_comba_mul8(z, x, y);
 1004|       |      }
 1005|       |      if constexpr(std::same_as<W, word> && N == 9) {
 1006|       |         return bigint_comba_mul9(z, x, y);
 1007|       |      }
 1008|       |      if constexpr(std::same_as<W, word> && N == 16) {
 1009|       |         return bigint_comba_mul16(z, x, y);
 1010|       |      }
 1011|  15.0k|   }
 1012|       |
 1013|      0|   word3<W> accum;
 1014|       |
 1015|  15.0k|   for(size_t i = 0; i != 2 * N; ++i) {
  ------------------
  |  Branch (1015:22): [True: 0, False: 15.0k]
  ------------------
 1016|      0|      const size_t start = i + 1 < N ? 0 : i + 1 - N;
  ------------------
  |  Branch (1016:28): [True: 0, False: 0]
  ------------------
 1017|      0|      const size_t end = std::min(N, i + 1);
 1018|       |
 1019|      0|      for(size_t j = start; j != end; ++j) {
  ------------------
  |  Branch (1019:29): [True: 0, False: 0]
  ------------------
 1020|      0|         accum.mul(x[j], y[i - j]);
 1021|      0|      }
 1022|      0|      z[i] = accum.extract();
 1023|      0|   }
 1024|  15.0k|}
_ZN5Botan9comba_sqrILm7ETkNS_8WordTypeEmEEvPT0_PKS1_:
 1027|  8.61k|constexpr inline void comba_sqr(W z[2 * N], const W x[N]) {
 1028|  8.61k|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (1028:7): [True: 8.61k, Folded]
  ------------------
 1029|       |      if constexpr(std::same_as<W, word> && N == 4) {
 1030|       |         return bigint_comba_sqr4(z, x);
 1031|       |      }
 1032|       |      if constexpr(std::same_as<W, word> && N == 6) {
 1033|       |         return bigint_comba_sqr6(z, x);
 1034|       |      }
 1035|  8.61k|      if constexpr(std::same_as<W, word> && N == 7) {
 1036|  8.61k|         return bigint_comba_sqr7(z, x);
 1037|  8.61k|      }
 1038|       |      if constexpr(std::same_as<W, word> && N == 8) {
 1039|       |         return bigint_comba_sqr8(z, x);
 1040|       |      }
 1041|       |      if constexpr(std::same_as<W, word> && N == 9) {
 1042|       |         return bigint_comba_sqr9(z, x);
 1043|       |      }
 1044|       |      if constexpr(std::same_as<W, word> && N == 16) {
 1045|       |         return bigint_comba_sqr16(z, x);
 1046|       |      }
 1047|  8.61k|   }
 1048|       |
 1049|      0|   word3<W> accum;
 1050|       |
 1051|  8.61k|   for(size_t i = 0; i != 2 * N; ++i) {
  ------------------
  |  Branch (1051:22): [True: 0, False: 8.61k]
  ------------------
 1052|      0|      const size_t start = i + 1 < N ? 0 : i + 1 - N;
  ------------------
  |  Branch (1052:28): [True: 0, False: 0]
  ------------------
 1053|      0|      const size_t end = std::min(N, i + 1);
 1054|       |
 1055|      0|      for(size_t j = start; j != end; ++j) {
  ------------------
  |  Branch (1055:29): [True: 0, False: 0]
  ------------------
 1056|      0|         accum.mul(x[j], x[i - j]);
 1057|      0|      }
 1058|      0|      z[i] = accum.extract();
 1059|      0|   }
 1060|  8.61k|}

_ZN5Botan6PCurve15PrimeOrderCurve6ScalarD2Ev:
   74|  10.8k|            ~Scalar() { _zeroize(); }
_ZN5Botan6PCurve15PrimeOrderCurve11AffinePointD2Ev:
  102|  4.70k|            ~AffinePoint() = default;
_ZN5Botan6PCurve15PrimeOrderCurve15ProjectivePointD2Ev:
  136|  1.45k|            ~ProjectivePoint() = default;
_ZN5Botan6PCurve15PrimeOrderCurve6ScalarC2EOS2_:
   69|  5.42k|            Scalar(Scalar&& other) = default;
_ZN5Botan6PCurve15PrimeOrderCurve6ScalarC2ERKS2_:
   68|  3.61k|            Scalar(const Scalar& other) = default;
_ZN5Botan6PCurve15PrimeOrderCurve11AffinePointC2EOS2_:
   99|  2.90k|            AffinePoint(AffinePoint&& other) = default;
_ZNK5Botan6PCurve15PrimeOrderCurve6Scalar6_curveEv:
   78|  5.06k|            const auto& _curve() const { return m_curve; }
_ZNK5Botan6PCurve15PrimeOrderCurve6Scalar6_valueEv:
   80|  5.06k|            const auto& _value() const { return m_value; }
_ZN5Botan6PCurve15PrimeOrderCurve6Scalar7_createENSt3__110shared_ptrIKS1_EENS3_5arrayImLm9EEE:
   82|  1.80k|            static Scalar _create(CurvePtr curve, StorageUnit v) { return Scalar(std::move(curve), v); }
_ZN5Botan6PCurve15PrimeOrderCurve6ScalarC2ENSt3__110shared_ptrIKS1_EENS3_5arrayImLm9EEE:
   85|  1.80k|            Scalar(CurvePtr curve, StorageUnit v) : m_curve(std::move(curve)), m_value(v) {}
_ZNK5Botan6PCurve15PrimeOrderCurve11AffinePoint6_curveEv:
  106|  3.25k|            const auto& _curve() const { return m_curve; }
_ZNK5Botan6PCurve15PrimeOrderCurve11AffinePoint2_xEv:
  108|  3.25k|            const auto& _x() const { return m_x; }
_ZNK5Botan6PCurve15PrimeOrderCurve11AffinePoint2_yEv:
  110|  3.25k|            const auto& _y() const { return m_y; }
_ZN5Botan6PCurve15PrimeOrderCurve11AffinePoint7_createENSt3__110shared_ptrIKS1_EENS3_5arrayImLm9EEES8_:
  112|  1.79k|            static AffinePoint _create(CurvePtr curve, StorageUnit x, StorageUnit y) {
  113|  1.79k|               return AffinePoint(std::move(curve), x, y);
  114|  1.79k|            }
_ZN5Botan6PCurve15PrimeOrderCurve11AffinePointC2ENSt3__110shared_ptrIKS1_EENS3_5arrayImLm9EEES8_:
  117|  1.79k|            AffinePoint(CurvePtr curve, StorageUnit x, StorageUnit y) : m_curve(std::move(curve)), m_x(x), m_y(y) {}
_ZNK5Botan6PCurve15PrimeOrderCurve15ProjectivePoint6_curveEv:
  138|  1.45k|            const auto& _curve() const { return m_curve; }
_ZNK5Botan6PCurve15PrimeOrderCurve15ProjectivePoint2_xEv:
  140|  1.45k|            const auto& _x() const { return m_x; }
_ZNK5Botan6PCurve15PrimeOrderCurve15ProjectivePoint2_yEv:
  142|  1.45k|            const auto& _y() const { return m_y; }
_ZNK5Botan6PCurve15PrimeOrderCurve15ProjectivePoint2_zEv:
  144|  1.45k|            const auto& _z() const { return m_z; }
_ZN5Botan6PCurve15PrimeOrderCurve15ProjectivePoint7_createENSt3__110shared_ptrIKS1_EENS3_5arrayImLm9EEES8_S8_:
  146|  1.45k|            static ProjectivePoint _create(CurvePtr curve, StorageUnit x, StorageUnit y, StorageUnit z) {
  147|  1.45k|               return ProjectivePoint(std::move(curve), x, y, z);
  148|  1.45k|            }
_ZN5Botan6PCurve15PrimeOrderCurve15ProjectivePointC2ENSt3__110shared_ptrIKS1_EENS3_5arrayImLm9EEES8_S8_:
  152|  1.45k|                  m_curve(std::move(curve)), m_x(x), m_y(y), m_z(z) {}
_ZN5Botan6PCurve15PrimeOrderCurveD2Ev:
  165|    353|      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|    130|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|    130|   } else {
   85|    130|      const auto z_inv = invert_field_element<C>(pt.z());
   86|    130|      const auto z2_inv = z_inv.square();
   87|    130|      const auto z3_inv = z_inv * z2_inv;
   88|    130|      return typename C::AffinePoint(pt.x() * z2_inv, pt.y() * z3_inv);
   89|    130|   }
   90|    130|}
pcurves_brainpool256r1.cpp:_ZN5Botan20invert_field_elementINS_6PCurve12_GLOBAL__N_114brainpool256r15CurveEEEDaRKNT_12FieldElementE:
   35|    130|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|    130|   } else {
   39|    130|      return fe.invert();
   40|    130|   }
   41|    130|}
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|  5.46k|                                                        const FieldElement& one) {
  297|  5.46k|   const auto a_is_identity = a.is_identity();
  298|  5.46k|   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|  5.46k|   auto by = b.y();
  307|  5.46k|   by.conditional_assign(sub, by.negate());
  308|       |
  309|  5.46k|   const auto Z1Z1 = a.z().square();
  310|  5.46k|   const auto U2 = b.x() * Z1Z1;
  311|  5.46k|   const auto S2 = by * a.z() * Z1Z1;
  312|  5.46k|   const auto H = U2 - a.x();
  313|  5.46k|   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|  5.46k|   if((r.is_zero() && H.is_zero() && !(a_is_identity && b_is_identity)).as_bool()) {
  ------------------
  |  Branch (325:7): [True: 0, False: 5.46k]
  ------------------
  326|      0|      return a.dbl();
  327|      0|   }
  328|       |
  329|  5.46k|   const auto HH = H.square();
  330|  5.46k|   const auto HHH = H * HH;
  331|  5.46k|   const auto V = a.x() * HH;
  332|  5.46k|   const auto t2 = r.square();
  333|  5.46k|   const auto t3 = V + V;
  334|  5.46k|   const auto t4 = t2 - HHH;
  335|  5.46k|   auto X3 = t4 - t3;
  336|  5.46k|   const auto t5 = V - X3;
  337|  5.46k|   const auto t6 = a.y() * HHH;
  338|  5.46k|   const auto t7 = r * t5;
  339|  5.46k|   auto Y3 = t7 - t6;
  340|  5.46k|   auto Z3 = a.z() * H;
  341|       |
  342|       |   // if a is identity then return b
  343|  5.46k|   FieldElement::conditional_assign(X3, Y3, Z3, a_is_identity, b.x(), by, one);
  344|       |
  345|       |   // if b is identity then return a
  346|  5.46k|   FieldElement::conditional_assign(X3, Y3, Z3, b_is_identity, a.x(), a.y(), a.z());
  347|       |
  348|  5.46k|   return ProjectivePoint(X3, Y3, Z3);
  349|  5.46k|}
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|    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_brainpool384r1.cpp:_ZN5Botan20invert_field_elementINS_6PCurve12_GLOBAL__N_114brainpool384r15CurveEEEDaRKNT_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_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.06k|                                                        const FieldElement& one) {
  297|  8.06k|   const auto a_is_identity = a.is_identity();
  298|  8.06k|   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.06k|   auto by = b.y();
  307|  8.06k|   by.conditional_assign(sub, by.negate());
  308|       |
  309|  8.06k|   const auto Z1Z1 = a.z().square();
  310|  8.06k|   const auto U2 = b.x() * Z1Z1;
  311|  8.06k|   const auto S2 = by * a.z() * Z1Z1;
  312|  8.06k|   const auto H = U2 - a.x();
  313|  8.06k|   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.06k|   if((r.is_zero() && H.is_zero() && !(a_is_identity && b_is_identity)).as_bool()) {
  ------------------
  |  Branch (325:7): [True: 0, False: 8.06k]
  ------------------
  326|      0|      return a.dbl();
  327|      0|   }
  328|       |
  329|  8.06k|   const auto HH = H.square();
  330|  8.06k|   const auto HHH = H * HH;
  331|  8.06k|   const auto V = a.x() * HH;
  332|  8.06k|   const auto t2 = r.square();
  333|  8.06k|   const auto t3 = V + V;
  334|  8.06k|   const auto t4 = t2 - HHH;
  335|  8.06k|   auto X3 = t4 - t3;
  336|  8.06k|   const auto t5 = V - X3;
  337|  8.06k|   const auto t6 = a.y() * HHH;
  338|  8.06k|   const auto t7 = r * t5;
  339|  8.06k|   auto Y3 = t7 - t6;
  340|  8.06k|   auto Z3 = a.z() * H;
  341|       |
  342|       |   // if a is identity then return b
  343|  8.06k|   FieldElement::conditional_assign(X3, Y3, Z3, a_is_identity, b.x(), by, one);
  344|       |
  345|       |   // if b is identity then return a
  346|  8.06k|   FieldElement::conditional_assign(X3, Y3, Z3, b_is_identity, a.x(), a.y(), a.z());
  347|       |
  348|  8.06k|   return ProjectivePoint(X3, Y3, Z3);
  349|  8.06k|}
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|    172|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|    172|   } else {
   85|    172|      const auto z_inv = invert_field_element<C>(pt.z());
   86|    172|      const auto z2_inv = z_inv.square();
   87|    172|      const auto z3_inv = z_inv * z2_inv;
   88|    172|      return typename C::AffinePoint(pt.x() * z2_inv, pt.y() * z3_inv);
   89|    172|   }
   90|    172|}
pcurves_brainpool512r1.cpp:_ZN5Botan20invert_field_elementINS_6PCurve12_GLOBAL__N_114brainpool512r15CurveEEEDaRKNT_12FieldElementE:
   35|    172|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|    172|   } else {
   39|    172|      return fe.invert();
   40|    172|   }
   41|    172|}
pcurves_brainpool512r1.cpp:_ZZN5Botan15to_affine_batchINS_6PCurve12_GLOBAL__N_114brainpool512r15CurveELb1EEEDaNSt3__14spanIKNT_15ProjectivePointELm18446744073709551615EEEENKUlvE_clEv:
  149|      1|      auto s_inv = [&]() {
  150|      1|         if constexpr(VariableTime) {
  151|      1|            return c[N - 1].invert_vartime();
  152|       |         } else {
  153|       |            return invert_field_element<C>(c[N - 1]);
  154|       |         }
  155|      1|      }();
pcurves_brainpool512r1.cpp:_ZN5Botan22point_add_or_sub_mixedINS_20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES3_E11FieldParamsEEEEES8_EENS_16AffineCurvePointISC_EESC_EET_RKSG_RKT0_NS_2CT6ChoiceERKT1_:
  296|  14.6k|                                                        const FieldElement& one) {
  297|  14.6k|   const auto a_is_identity = a.is_identity();
  298|  14.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|  14.6k|   auto by = b.y();
  307|  14.6k|   by.conditional_assign(sub, by.negate());
  308|       |
  309|  14.6k|   const auto Z1Z1 = a.z().square();
  310|  14.6k|   const auto U2 = b.x() * Z1Z1;
  311|  14.6k|   const auto S2 = by * a.z() * Z1Z1;
  312|  14.6k|   const auto H = U2 - a.x();
  313|  14.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|  14.6k|   if((r.is_zero() && H.is_zero() && !(a_is_identity && b_is_identity)).as_bool()) {
  ------------------
  |  Branch (325:7): [True: 0, False: 14.6k]
  ------------------
  326|      0|      return a.dbl();
  327|      0|   }
  328|       |
  329|  14.6k|   const auto HH = H.square();
  330|  14.6k|   const auto HHH = H * HH;
  331|  14.6k|   const auto V = a.x() * HH;
  332|  14.6k|   const auto t2 = r.square();
  333|  14.6k|   const auto t3 = V + V;
  334|  14.6k|   const auto t4 = t2 - HHH;
  335|  14.6k|   auto X3 = t4 - t3;
  336|  14.6k|   const auto t5 = V - X3;
  337|  14.6k|   const auto t6 = a.y() * HHH;
  338|  14.6k|   const auto t7 = r * t5;
  339|  14.6k|   auto Y3 = t7 - t6;
  340|  14.6k|   auto Z3 = a.z() * H;
  341|       |
  342|       |   // if a is identity then return b
  343|  14.6k|   FieldElement::conditional_assign(X3, Y3, Z3, a_is_identity, b.x(), by, one);
  344|       |
  345|       |   // if b is identity then return a
  346|  14.6k|   FieldElement::conditional_assign(X3, Y3, Z3, b_is_identity, a.x(), a.y(), a.z());
  347|       |
  348|  14.6k|   return ProjectivePoint(X3, Y3, Z3);
  349|  14.6k|}
pcurves_generic.cpp:_ZN5Botan22point_add_or_sub_mixedINS_6PCurve22GenericProjectivePointENS1_18GenericAffinePointENS1_12_GLOBAL__N_112GenericFieldEEET_RKS6_RKT0_NS_2CT6ChoiceERKT1_:
  296|  9.95k|                                                        const FieldElement& one) {
  297|  9.95k|   const auto a_is_identity = a.is_identity();
  298|  9.95k|   const auto b_is_identity = b.is_identity();
  299|       |
  300|       |   /*
  301|       |   https://hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-3.html#addition-add-1998-cmo-2
  302|       |
  303|       |   Cost: 8M + 3S + 6add + 1*2
  304|       |   */
  305|       |
  306|  9.95k|   auto by = b.y();
  307|  9.95k|   by.conditional_assign(sub, by.negate());
  308|       |
  309|  9.95k|   const auto Z1Z1 = a.z().square();
  310|  9.95k|   const auto U2 = b.x() * Z1Z1;
  311|  9.95k|   const auto S2 = by * a.z() * Z1Z1;
  312|  9.95k|   const auto H = U2 - a.x();
  313|  9.95k|   const auto r = S2 - a.y();
  314|       |
  315|       |   /* Risky conditional
  316|       |   *
  317|       |   * This implementation uses projective coordinates, which do not have an efficient complete
  318|       |   * addition formula. We rely on the design of the multiplication algorithms to avoid doublings.
  319|       |   *
  320|       |   * This conditional only comes into play for the actual doubling case, not x + (-x) which
  321|       |   * is another exceptional case in some circumstances. Here if a == -b then H == 0 && r != 0,
  322|       |   * in which case at the end we'll set z to a.z * H = 0, resulting in the correct output
  323|       |   * (the identity element)
  324|       |   */
  325|  9.95k|   if((r.is_zero() && H.is_zero() && !(a_is_identity && b_is_identity)).as_bool()) {
  ------------------
  |  Branch (325:7): [True: 0, False: 9.95k]
  ------------------
  326|      0|      return a.dbl();
  327|      0|   }
  328|       |
  329|  9.95k|   const auto HH = H.square();
  330|  9.95k|   const auto HHH = H * HH;
  331|  9.95k|   const auto V = a.x() * HH;
  332|  9.95k|   const auto t2 = r.square();
  333|  9.95k|   const auto t3 = V + V;
  334|  9.95k|   const auto t4 = t2 - HHH;
  335|  9.95k|   auto X3 = t4 - t3;
  336|  9.95k|   const auto t5 = V - X3;
  337|  9.95k|   const auto t6 = a.y() * HHH;
  338|  9.95k|   const auto t7 = r * t5;
  339|  9.95k|   auto Y3 = t7 - t6;
  340|  9.95k|   auto Z3 = a.z() * H;
  341|       |
  342|       |   // if a is identity then return b
  343|  9.95k|   FieldElement::conditional_assign(X3, Y3, Z3, a_is_identity, b.x(), by, one);
  344|       |
  345|       |   // if b is identity then return a
  346|  9.95k|   FieldElement::conditional_assign(X3, Y3, Z3, b_is_identity, a.x(), a.y(), a.z());
  347|       |
  348|  9.95k|   return ProjectivePoint(X3, Y3, Z3);
  349|  9.95k|}
_ZN5Botan13dbl_a_minus_3INS_6PCurve22GenericProjectivePointEEET_RKS3_:
  362|  28.1k|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|  28.1k|   const auto z2 = pt.z().square();
  368|  28.1k|   const auto m = (pt.x() - z2).mul3() * (pt.x() + z2);
  369|       |
  370|       |   // Remaining cost: 3M + 3S + 3A + 2*2 + 1*4 + 1*8
  371|  28.1k|   const auto y2 = pt.y().square();
  372|  28.1k|   const auto s = pt.x().mul4() * y2;
  373|  28.1k|   const auto nx = m.square() - s.mul2();
  374|  28.1k|   const auto ny = m * (s - nx) - y2.square().mul8();
  375|  28.1k|   const auto nz = pt.y().mul2() * pt.z();
  376|       |
  377|  28.1k|   return ProjectivePoint(nx, ny, nz);
  378|  28.1k|}
_ZN5Botan10dbl_a_zeroINS_6PCurve22GenericProjectivePointEEET_RKS3_:
  381|  45.9k|inline constexpr ProjectivePoint dbl_a_zero(const ProjectivePoint& pt) {
  382|       |   // If a == 0 then 3*x^2 + a*z^4 == 3*x^2
  383|       |   // Cost: 1S + 1*3
  384|  45.9k|   const auto m = pt.x().square().mul3();
  385|       |
  386|       |   // Remaining cost: 3M + 3S + 3A + 2*2 + 1*4 + 1*8
  387|  45.9k|   const auto y2 = pt.y().square();
  388|  45.9k|   const auto s = pt.x().mul4() * y2;
  389|  45.9k|   const auto nx = m.square() - s.mul2();
  390|  45.9k|   const auto ny = m * (s - nx) - y2.square().mul8();
  391|  45.9k|   const auto nz = pt.y().mul2() * pt.z();
  392|       |
  393|  45.9k|   return ProjectivePoint(nx, ny, nz);
  394|  45.9k|}
pcurves_generic.cpp:_ZN5Botan11dbl_genericINS_6PCurve22GenericProjectivePointENS1_12_GLOBAL__N_112GenericFieldEEET_RKS5_RKT0_:
  397|   195k|inline constexpr ProjectivePoint dbl_generic(const ProjectivePoint& pt, const FieldElement& A) {
  398|       |   // Cost: 1M + 3S + 1A + 1*3
  399|   195k|   const auto z2 = pt.z().square();
  400|   195k|   const auto m = pt.x().square().mul3() + A * z2.square();
  401|       |
  402|       |   // Remaining cost: 3M + 3S + 3A + 2*2 + 1*4 + 1*8
  403|   195k|   const auto y2 = pt.y().square();
  404|   195k|   const auto s = pt.x().mul4() * y2;
  405|   195k|   const auto nx = m.square() - s.mul2();
  406|   195k|   const auto ny = m * (s - nx) - y2.square().mul8();
  407|   195k|   const auto nz = pt.y().mul2() * pt.z();
  408|       |
  409|   195k|   return ProjectivePoint(nx, ny, nz);
  410|   195k|}
pcurves_generic.cpp:_ZN5Botan20invert_field_elementINS_6PCurve12_GLOBAL__N_112GenericCurveEEEDaRKNT_12FieldElementE:
   35|    254|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|    254|   } else {
   39|    254|      return fe.invert();
   40|    254|   }
   41|    254|}
pcurves_generic.cpp:_ZN5Botan9point_addINS_6PCurve22GenericProjectivePointENS1_12_GLOBAL__N_112GenericFieldEEET_RKS5_S7_:
  187|   238k|inline constexpr ProjectivePoint point_add(const ProjectivePoint& a, const ProjectivePoint& b) {
  188|   238k|   const auto a_is_identity = a.is_identity();
  189|   238k|   const auto b_is_identity = b.is_identity();
  190|       |
  191|   238k|   const auto Z1Z1 = a.z().square();
  192|   238k|   const auto Z2Z2 = b.z().square();
  193|   238k|   const auto U1 = a.x() * Z2Z2;
  194|   238k|   const auto U2 = b.x() * Z1Z1;
  195|   238k|   const auto S1 = a.y() * b.z() * Z2Z2;
  196|   238k|   const auto S2 = b.y() * a.z() * Z1Z1;
  197|   238k|   const auto H = U2 - U1;
  198|   238k|   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|   238k|   if((r.is_zero() && H.is_zero() && !(a_is_identity && b_is_identity)).as_bool()) {
  ------------------
  |  Branch (210:7): [True: 0, False: 238k]
  ------------------
  211|      0|      return a.dbl();
  212|      0|   }
  213|       |
  214|   238k|   const auto HH = H.square();
  215|   238k|   const auto HHH = H * HH;
  216|   238k|   const auto V = U1 * HH;
  217|   238k|   const auto t2 = r.square();
  218|   238k|   const auto t3 = V + V;
  219|   238k|   const auto t4 = t2 - HHH;
  220|   238k|   auto X3 = t4 - t3;
  221|   238k|   const auto t5 = V - X3;
  222|   238k|   const auto t6 = S1 * HHH;
  223|   238k|   const auto t7 = r * t5;
  224|   238k|   auto Y3 = t7 - t6;
  225|   238k|   const auto t8 = b.z() * H;
  226|   238k|   auto Z3 = a.z() * t8;
  227|       |
  228|       |   // if a is identity then return b
  229|   238k|   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|   238k|   FieldElement::conditional_assign(X3, Y3, Z3, b_is_identity, a.x(), a.y(), a.z());
  233|       |
  234|   238k|   return ProjectivePoint(X3, Y3, Z3);
  235|   238k|}
pcurves_generic.cpp:_ZN5Botan9to_affineINS_6PCurve12_GLOBAL__N_112GenericCurveEEEDaRKNT_15ProjectivePointE:
   76|    254|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|    254|   } else {
   85|    254|      const auto z_inv = invert_field_element<C>(pt.z());
   86|    254|      const auto z2_inv = z_inv.square();
   87|    254|      const auto z3_inv = z_inv * z2_inv;
   88|    254|      return typename C::AffinePoint(pt.x() * z2_inv, pt.y() * z3_inv);
   89|    254|   }
   90|    254|}
pcurves_generic.cpp:_ZN5Botan15to_affine_batchINS_6PCurve12_GLOBAL__N_112GenericCurveELb1EEEDaNSt3__14spanIKNT_15ProjectivePointELm18446744073709551615EEE:
  107|    345|auto to_affine_batch(std::span<const typename C::ProjectivePoint> projective) {
  108|    345|   using AffinePoint = typename C::AffinePoint;
  109|       |
  110|    345|   const size_t N = projective.size();
  111|    345|   std::vector<AffinePoint> affine;
  112|    345|   affine.reserve(N);
  113|       |
  114|    345|   CT::Choice any_identity = CT::Choice::no();
  115|       |
  116|   507k|   for(const auto& pt : projective) {
  ------------------
  |  Branch (116:23): [True: 507k, False: 345]
  ------------------
  117|   507k|      any_identity = any_identity || pt.is_identity();
  118|   507k|   }
  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|    345|   if(N <= 2 || any_identity.as_bool()) {
  ------------------
  |  Branch (126:7): [True: 0, False: 345]
  |  Branch (126:17): [True: 0, False: 345]
  ------------------
  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|    345|   } else {
  134|    345|      std::vector<typename C::FieldElement> c;
  135|    345|      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|    345|      c.push_back(projective[0].z());
  145|   507k|      for(size_t i = 1; i != N; ++i) {
  ------------------
  |  Branch (145:25): [True: 507k, False: 345]
  ------------------
  146|   507k|         c.push_back(c[i - 1] * projective[i].z());
  147|   507k|      }
  148|       |
  149|    345|      auto s_inv = [&]() {
  150|    345|         if constexpr(VariableTime) {
  151|    345|            return c[N - 1].invert_vartime();
  152|    345|         } else {
  153|    345|            return invert_field_element<C>(c[N - 1]);
  154|    345|         }
  155|    345|      }();
  156|       |
  157|   507k|      for(size_t i = N - 1; i > 0; --i) {
  ------------------
  |  Branch (157:29): [True: 507k, False: 345]
  ------------------
  158|   507k|         const auto& p = projective[i];
  159|       |
  160|   507k|         const auto z_inv = s_inv * c[i - 1];
  161|   507k|         const auto z2_inv = z_inv.square();
  162|   507k|         const auto z3_inv = z_inv * z2_inv;
  163|       |
  164|   507k|         s_inv = s_inv * p.z();
  165|       |
  166|   507k|         affine.push_back(AffinePoint(p.x() * z2_inv, p.y() * z3_inv));
  167|   507k|      }
  168|       |
  169|    345|      const auto z2_inv = s_inv.square();
  170|    345|      const auto z3_inv = s_inv * z2_inv;
  171|    345|      affine.push_back(AffinePoint(projective[0].x() * z2_inv, projective[0].y() * z3_inv));
  172|    345|      std::reverse(affine.begin(), affine.end());
  173|    345|      return affine;
  174|    345|   }
  175|       |
  176|      0|   return affine;
  177|    345|}
pcurves_generic.cpp:_ZZN5Botan15to_affine_batchINS_6PCurve12_GLOBAL__N_112GenericCurveELb1EEEDaNSt3__14spanIKNT_15ProjectivePointELm18446744073709551615EEEENKUlvE_clEv:
  149|    345|      auto s_inv = [&]() {
  150|    345|         if constexpr(VariableTime) {
  151|    345|            return c[N - 1].invert_vartime();
  152|       |         } else {
  153|       |            return invert_field_element<C>(c[N - 1]);
  154|       |         }
  155|    345|      }();
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|    222|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|    222|   if constexpr(curve_supports_fe_invert2<C>) {
   81|    222|      const auto z2_inv = C::fe_invert2(pt.z());
   82|    222|      const auto z3_inv = z2_inv.square() * pt.z();
   83|    222|      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|    222|}
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|  8.21k|                                                        const FieldElement& one) {
  297|  8.21k|   const auto a_is_identity = a.is_identity();
  298|  8.21k|   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.21k|   auto by = b.y();
  307|  8.21k|   by.conditional_assign(sub, by.negate());
  308|       |
  309|  8.21k|   const auto Z1Z1 = a.z().square();
  310|  8.21k|   const auto U2 = b.x() * Z1Z1;
  311|  8.21k|   const auto S2 = by * a.z() * Z1Z1;
  312|  8.21k|   const auto H = U2 - a.x();
  313|  8.21k|   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.21k|   if((r.is_zero() && H.is_zero() && !(a_is_identity && b_is_identity)).as_bool()) {
  ------------------
  |  Branch (325:7): [True: 0, False: 8.21k]
  ------------------
  326|      0|      return a.dbl();
  327|      0|   }
  328|       |
  329|  8.21k|   const auto HH = H.square();
  330|  8.21k|   const auto HHH = H * HH;
  331|  8.21k|   const auto V = a.x() * HH;
  332|  8.21k|   const auto t2 = r.square();
  333|  8.21k|   const auto t3 = V + V;
  334|  8.21k|   const auto t4 = t2 - HHH;
  335|  8.21k|   auto X3 = t4 - t3;
  336|  8.21k|   const auto t5 = V - X3;
  337|  8.21k|   const auto t6 = a.y() * HHH;
  338|  8.21k|   const auto t7 = r * t5;
  339|  8.21k|   auto Y3 = t7 - t6;
  340|  8.21k|   auto Z3 = a.z() * H;
  341|       |
  342|       |   // if a is identity then return b
  343|  8.21k|   FieldElement::conditional_assign(X3, Y3, Z3, a_is_identity, b.x(), by, one);
  344|       |
  345|       |   // if b is identity then return a
  346|  8.21k|   FieldElement::conditional_assign(X3, Y3, Z3, b_is_identity, a.x(), a.y(), a.z());
  347|       |
  348|  8.21k|   return ProjectivePoint(X3, Y3, Z3);
  349|  8.21k|}
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|    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|    138|   if constexpr(curve_supports_fe_invert2<C>) {
   81|    138|      const auto z2_inv = C::fe_invert2(pt.z());
   82|    138|      const auto z3_inv = z2_inv.square() * pt.z();
   83|    138|      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|    138|}
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|  5.79k|                                                        const FieldElement& one) {
  297|  5.79k|   const auto a_is_identity = a.is_identity();
  298|  5.79k|   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|  5.79k|   auto by = b.y();
  307|  5.79k|   by.conditional_assign(sub, by.negate());
  308|       |
  309|  5.79k|   const auto Z1Z1 = a.z().square();
  310|  5.79k|   const auto U2 = b.x() * Z1Z1;
  311|  5.79k|   const auto S2 = by * a.z() * Z1Z1;
  312|  5.79k|   const auto H = U2 - a.x();
  313|  5.79k|   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|  5.79k|   if((r.is_zero() && H.is_zero() && !(a_is_identity && b_is_identity)).as_bool()) {
  ------------------
  |  Branch (325:7): [True: 0, False: 5.79k]
  ------------------
  326|      0|      return a.dbl();
  327|      0|   }
  328|       |
  329|  5.79k|   const auto HH = H.square();
  330|  5.79k|   const auto HHH = H * HH;
  331|  5.79k|   const auto V = a.x() * HH;
  332|  5.79k|   const auto t2 = r.square();
  333|  5.79k|   const auto t3 = V + V;
  334|  5.79k|   const auto t4 = t2 - HHH;
  335|  5.79k|   auto X3 = t4 - t3;
  336|  5.79k|   const auto t5 = V - X3;
  337|  5.79k|   const auto t6 = a.y() * HHH;
  338|  5.79k|   const auto t7 = r * t5;
  339|  5.79k|   auto Y3 = t7 - t6;
  340|  5.79k|   auto Z3 = a.z() * H;
  341|       |
  342|       |   // if a is identity then return b
  343|  5.79k|   FieldElement::conditional_assign(X3, Y3, Z3, a_is_identity, b.x(), by, one);
  344|       |
  345|       |   // if b is identity then return a
  346|  5.79k|   FieldElement::conditional_assign(X3, Y3, Z3, b_is_identity, a.x(), a.y(), a.z());
  347|       |
  348|  5.79k|   return ProjectivePoint(X3, Y3, Z3);
  349|  5.79k|}
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|     84|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|     84|   if constexpr(curve_supports_fe_invert2<C>) {
   81|     84|      const auto z2_inv = C::fe_invert2(pt.z());
   82|     84|      const auto z3_inv = z2_inv.square() * pt.z();
   83|     84|      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|     84|}
pcurves_secp256r1.cpp:_ZZN5Botan15to_affine_batchINS_6PCurve12_GLOBAL__N_19secp256r15CurveELb1EEEDaNSt3__14spanIKNT_15ProjectivePointELm18446744073709551615EEEENKUlvE_clEv:
  149|      1|      auto s_inv = [&]() {
  150|      1|         if constexpr(VariableTime) {
  151|      1|            return c[N - 1].invert_vartime();
  152|       |         } else {
  153|       |            return invert_field_element<C>(c[N - 1]);
  154|       |         }
  155|      1|      }();
pcurves_secp256r1.cpp:_ZN5Botan22point_add_or_sub_mixedINS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS4_9secp256r16ParamsES5_E11FieldParamsEEEEES8_EENS_16AffineCurvePointISC_EESC_EET_RKSG_RKT0_NS_2CT6ChoiceERKT1_:
  296|  3.52k|                                                        const FieldElement& one) {
  297|  3.52k|   const auto a_is_identity = a.is_identity();
  298|  3.52k|   const auto b_is_identity = b.is_identity();
  299|       |
  300|       |   /*
  301|       |   https://hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-3.html#addition-add-1998-cmo-2
  302|       |
  303|       |   Cost: 8M + 3S + 6add + 1*2
  304|       |   */
  305|       |
  306|  3.52k|   auto by = b.y();
  307|  3.52k|   by.conditional_assign(sub, by.negate());
  308|       |
  309|  3.52k|   const auto Z1Z1 = a.z().square();
  310|  3.52k|   const auto U2 = b.x() * Z1Z1;
  311|  3.52k|   const auto S2 = by * a.z() * Z1Z1;
  312|  3.52k|   const auto H = U2 - a.x();
  313|  3.52k|   const auto r = S2 - a.y();
  314|       |
  315|       |   /* Risky conditional
  316|       |   *
  317|       |   * This implementation uses projective coordinates, which do not have an efficient complete
  318|       |   * addition formula. We rely on the design of the multiplication algorithms to avoid doublings.
  319|       |   *
  320|       |   * This conditional only comes into play for the actual doubling case, not x + (-x) which
  321|       |   * is another exceptional case in some circumstances. Here if a == -b then H == 0 && r != 0,
  322|       |   * in which case at the end we'll set z to a.z * H = 0, resulting in the correct output
  323|       |   * (the identity element)
  324|       |   */
  325|  3.52k|   if((r.is_zero() && H.is_zero() && !(a_is_identity && b_is_identity)).as_bool()) {
  ------------------
  |  Branch (325:7): [True: 0, False: 3.52k]
  ------------------
  326|      0|      return a.dbl();
  327|      0|   }
  328|       |
  329|  3.52k|   const auto HH = H.square();
  330|  3.52k|   const auto HHH = H * HH;
  331|  3.52k|   const auto V = a.x() * HH;
  332|  3.52k|   const auto t2 = r.square();
  333|  3.52k|   const auto t3 = V + V;
  334|  3.52k|   const auto t4 = t2 - HHH;
  335|  3.52k|   auto X3 = t4 - t3;
  336|  3.52k|   const auto t5 = V - X3;
  337|  3.52k|   const auto t6 = a.y() * HHH;
  338|  3.52k|   const auto t7 = r * t5;
  339|  3.52k|   auto Y3 = t7 - t6;
  340|  3.52k|   auto Z3 = a.z() * H;
  341|       |
  342|       |   // if a is identity then return b
  343|  3.52k|   FieldElement::conditional_assign(X3, Y3, Z3, a_is_identity, b.x(), by, one);
  344|       |
  345|       |   // if b is identity then return a
  346|  3.52k|   FieldElement::conditional_assign(X3, Y3, Z3, b_is_identity, a.x(), a.y(), a.z());
  347|       |
  348|  3.52k|   return ProjectivePoint(X3, Y3, Z3);
  349|  3.52k|}
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|    150|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|    150|   if constexpr(curve_supports_fe_invert2<C>) {
   81|    150|      const auto z2_inv = C::fe_invert2(pt.z());
   82|    150|      const auto z3_inv = z2_inv.square() * pt.z();
   83|    150|      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|    150|}
pcurves_secp384r1.cpp:_ZZN5Botan15to_affine_batchINS_6PCurve12_GLOBAL__N_19secp384r15CurveELb1EEEDaNSt3__14spanIKNT_15ProjectivePointELm18446744073709551615EEEENKUlvE_clEv:
  149|      1|      auto s_inv = [&]() {
  150|      1|         if constexpr(VariableTime) {
  151|      1|            return c[N - 1].invert_vartime();
  152|       |         } else {
  153|       |            return invert_field_element<C>(c[N - 1]);
  154|       |         }
  155|      1|      }();
pcurves_secp384r1.cpp:_ZN5Botan22point_add_or_sub_mixedINS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS4_9secp384r16ParamsES5_E11FieldParamsEEEEES8_EENS_16AffineCurvePointISC_EESC_EET_RKSG_RKT0_NS_2CT6ChoiceERKT1_:
  296|  9.60k|                                                        const FieldElement& one) {
  297|  9.60k|   const auto a_is_identity = a.is_identity();
  298|  9.60k|   const auto b_is_identity = b.is_identity();
  299|       |
  300|       |   /*
  301|       |   https://hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-3.html#addition-add-1998-cmo-2
  302|       |
  303|       |   Cost: 8M + 3S + 6add + 1*2
  304|       |   */
  305|       |
  306|  9.60k|   auto by = b.y();
  307|  9.60k|   by.conditional_assign(sub, by.negate());
  308|       |
  309|  9.60k|   const auto Z1Z1 = a.z().square();
  310|  9.60k|   const auto U2 = b.x() * Z1Z1;
  311|  9.60k|   const auto S2 = by * a.z() * Z1Z1;
  312|  9.60k|   const auto H = U2 - a.x();
  313|  9.60k|   const auto r = S2 - a.y();
  314|       |
  315|       |   /* Risky conditional
  316|       |   *
  317|       |   * This implementation uses projective coordinates, which do not have an efficient complete
  318|       |   * addition formula. We rely on the design of the multiplication algorithms to avoid doublings.
  319|       |   *
  320|       |   * This conditional only comes into play for the actual doubling case, not x + (-x) which
  321|       |   * is another exceptional case in some circumstances. Here if a == -b then H == 0 && r != 0,
  322|       |   * in which case at the end we'll set z to a.z * H = 0, resulting in the correct output
  323|       |   * (the identity element)
  324|       |   */
  325|  9.60k|   if((r.is_zero() && H.is_zero() && !(a_is_identity && b_is_identity)).as_bool()) {
  ------------------
  |  Branch (325:7): [True: 0, False: 9.60k]
  ------------------
  326|      0|      return a.dbl();
  327|      0|   }
  328|       |
  329|  9.60k|   const auto HH = H.square();
  330|  9.60k|   const auto HHH = H * HH;
  331|  9.60k|   const auto V = a.x() * HH;
  332|  9.60k|   const auto t2 = r.square();
  333|  9.60k|   const auto t3 = V + V;
  334|  9.60k|   const auto t4 = t2 - HHH;
  335|  9.60k|   auto X3 = t4 - t3;
  336|  9.60k|   const auto t5 = V - X3;
  337|  9.60k|   const auto t6 = a.y() * HHH;
  338|  9.60k|   const auto t7 = r * t5;
  339|  9.60k|   auto Y3 = t7 - t6;
  340|  9.60k|   auto Z3 = a.z() * H;
  341|       |
  342|       |   // if a is identity then return b
  343|  9.60k|   FieldElement::conditional_assign(X3, Y3, Z3, a_is_identity, b.x(), by, one);
  344|       |
  345|       |   // if b is identity then return a
  346|  9.60k|   FieldElement::conditional_assign(X3, Y3, Z3, b_is_identity, a.x(), a.y(), a.z());
  347|       |
  348|  9.60k|   return ProjectivePoint(X3, Y3, Z3);
  349|  9.60k|}
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|    175|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|    175|   if constexpr(curve_supports_fe_invert2<C>) {
   81|    175|      const auto z2_inv = C::fe_invert2(pt.z());
   82|    175|      const auto z3_inv = z2_inv.square() * pt.z();
   83|    175|      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|    175|}
pcurves_secp521r1.cpp:_ZZN5Botan15to_affine_batchINS_6PCurve12_GLOBAL__N_19secp521r15CurveELb1EEEDaNSt3__14spanIKNT_15ProjectivePointELm18446744073709551615EEEENKUlvE_clEv:
  149|      1|      auto s_inv = [&]() {
  150|      1|         if constexpr(VariableTime) {
  151|      1|            return c[N - 1].invert_vartime();
  152|       |         } else {
  153|       |            return invert_field_element<C>(c[N - 1]);
  154|       |         }
  155|      1|      }();
pcurves_secp521r1.cpp:_ZN5Botan22point_add_or_sub_mixedINS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEES8_EENS_16AffineCurvePointISC_EESC_EET_RKSG_RKT0_NS_2CT6ChoiceERKT1_:
  296|  15.0k|                                                        const FieldElement& one) {
  297|  15.0k|   const auto a_is_identity = a.is_identity();
  298|  15.0k|   const auto b_is_identity = b.is_identity();
  299|       |
  300|       |   /*
  301|       |   https://hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-3.html#addition-add-1998-cmo-2
  302|       |
  303|       |   Cost: 8M + 3S + 6add + 1*2
  304|       |   */
  305|       |
  306|  15.0k|   auto by = b.y();
  307|  15.0k|   by.conditional_assign(sub, by.negate());
  308|       |
  309|  15.0k|   const auto Z1Z1 = a.z().square();
  310|  15.0k|   const auto U2 = b.x() * Z1Z1;
  311|  15.0k|   const auto S2 = by * a.z() * Z1Z1;
  312|  15.0k|   const auto H = U2 - a.x();
  313|  15.0k|   const auto r = S2 - a.y();
  314|       |
  315|       |   /* Risky conditional
  316|       |   *
  317|       |   * This implementation uses projective coordinates, which do not have an efficient complete
  318|       |   * addition formula. We rely on the design of the multiplication algorithms to avoid doublings.
  319|       |   *
  320|       |   * This conditional only comes into play for the actual doubling case, not x + (-x) which
  321|       |   * is another exceptional case in some circumstances. Here if a == -b then H == 0 && r != 0,
  322|       |   * in which case at the end we'll set z to a.z * H = 0, resulting in the correct output
  323|       |   * (the identity element)
  324|       |   */
  325|  15.0k|   if((r.is_zero() && H.is_zero() && !(a_is_identity && b_is_identity)).as_bool()) {
  ------------------
  |  Branch (325:7): [True: 0, False: 15.0k]
  ------------------
  326|      0|      return a.dbl();
  327|      0|   }
  328|       |
  329|  15.0k|   const auto HH = H.square();
  330|  15.0k|   const auto HHH = H * HH;
  331|  15.0k|   const auto V = a.x() * HH;
  332|  15.0k|   const auto t2 = r.square();
  333|  15.0k|   const auto t3 = V + V;
  334|  15.0k|   const auto t4 = t2 - HHH;
  335|  15.0k|   auto X3 = t4 - t3;
  336|  15.0k|   const auto t5 = V - X3;
  337|  15.0k|   const auto t6 = a.y() * HHH;
  338|  15.0k|   const auto t7 = r * t5;
  339|  15.0k|   auto Y3 = t7 - t6;
  340|  15.0k|   auto Z3 = a.z() * H;
  341|       |
  342|       |   // if a is identity then return b
  343|  15.0k|   FieldElement::conditional_assign(X3, Y3, Z3, a_is_identity, b.x(), by, one);
  344|       |
  345|       |   // if b is identity then return a
  346|  15.0k|   FieldElement::conditional_assign(X3, Y3, Z3, b_is_identity, a.x(), a.y(), a.z());
  347|       |
  348|  15.0k|   return ProjectivePoint(X3, Y3, Z3);
  349|  15.0k|}

_ZNK5Botan6PCurve22GenericPrimeOrderCurve7_paramsEv:
  119|  53.5M|      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|    131|      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|    131|         auto x = pt.x();
 1027|    131|         auto y = pt.y();
 1028|    131|         auto z = FieldElement::one();
 1029|       |
 1030|    131|         FieldElement::conditional_swap(pt.is_identity(), y, z);
 1031|       |
 1032|    131|         return ProjectiveCurvePoint(x, y, z);
 1033|    131|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEEE1xEv:
  971|   196k|      constexpr const FieldElement& x() const { return m_x; }
pcurves_brainpool256r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEEE1yEv:
  976|   190k|      constexpr const FieldElement& y() const { return m_y; }
pcurves_brainpool256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEE3oneEv:
  200|  5.72k|      static constexpr Self one() { return Self(Rep::one()); }
pcurves_brainpool256r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES0_E11FieldParamsEE3oneEv:
   99|  5.72k|      constexpr static std::array<W, N> one() { return R1; }
pcurves_brainpool256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEEC2ENSt3__15arrayImLm4EEE:
  898|   171k|      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|    131|      static constexpr void conditional_swap(CT::Choice cond, Self& x, Self& y) {
  411|    131|         const W mask = cond.into_bitmask<W>();
  412|       |
  413|    655|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (413:28): [True: 524, False: 131]
  ------------------
  414|    524|            auto nx = Botan::choose(mask, y.m_val[i], x.m_val[i]);
  415|    524|            auto ny = Botan::choose(mask, x.m_val[i], y.m_val[i]);
  416|    524|            x.m_val[i] = nx;
  417|    524|            y.m_val[i] = ny;
  418|    524|         }
  419|    131|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEEE11is_identityEv:
  928|  5.98k|      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|  32.8k|      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|  7.41k|            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|  41.5k|      constexpr const FieldElement& z() const { return m_z; }
pcurves_brainpool256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEE6squareEv:
  426|  27.1k|      constexpr BOTAN_FORCE_INLINE Self square() const {
  427|  27.1k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  428|  27.1k|         comba_sqr<N>(z.data(), this->data());
  429|  27.1k|         return Self(Rep::redc(z));
  430|  27.1k|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEE4dataEv:
  896|   214k|      constexpr const W* data() const { return m_val.data(); }
pcurves_brainpool256r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES0_E11FieldParamsEE4redcERKNSt3__15arrayImLm8EEE:
  104|   134k|      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|   134k|         } else {
  108|   134k|            return monty_redc(z, P, P_dash);
  109|   134k|         }
  110|   134k|      }
pcurves_brainpool256r1.cpp:_ZN5BotanplERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEEESC_:
  265|  8.29k|      friend constexpr BOTAN_FORCE_INLINE Self operator+(const Self& a, const Self& b) {
  266|  8.29k|         std::array<W, N> t;  // NOLINT(*-member-init)
  267|       |
  268|  8.29k|         W carry = 0;
  269|  41.4k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (269:28): [True: 33.1k, False: 8.29k]
  ------------------
  270|  33.1k|            t[i] = word_add(a.m_val[i], b.m_val[i], &carry);
  271|  33.1k|         }
  272|       |
  273|  8.29k|         std::array<W, N> r;  // NOLINT(*-member-init)
  274|  8.29k|         bigint_monty_maybe_sub<N>(r.data(), carry, t.data(), P.data());
  275|  8.29k|         return Self(r);
  276|  8.29k|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEES7_E1xEv:
 1162|  23.0k|      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|  66.6k|      friend constexpr BOTAN_FORCE_INLINE Self operator*(const Self& a, const Self& b) {
  347|  66.6k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  348|  66.6k|         comba_mul<N>(z.data(), a.data(), b.data());
  349|  66.6k|         return Self(Rep::redc(z));
  350|  66.6k|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEES7_E1yEv:
 1167|  23.0k|      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|  39.6k|      friend constexpr BOTAN_FORCE_INLINE Self operator-(const Self& a, const Self& b) {
  282|  39.6k|         std::array<W, N> r;  // NOLINT(*-member-init)
  283|  39.6k|         W carry = 0;
  284|   198k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (284:28): [True: 158k, False: 39.6k]
  ------------------
  285|   158k|            r[i] = word_sub(a.m_val[i], b.m_val[i], &carry);
  286|   158k|         }
  287|       |
  288|  39.6k|         const auto mask = CT::Mask<W>::expand(carry).value();
  289|       |
  290|  39.6k|         carry = 0;
  291|       |
  292|   198k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (292:28): [True: 158k, False: 39.6k]
  ------------------
  293|   158k|            r[i] = word_add(r[i], P[i] & mask, &carry);
  294|   158k|         }
  295|       |
  296|  39.6k|         return Self(r);
  297|  39.6k|      }
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|  8.49k|      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|  12.5k|         Self& x, Self& y, Self& z, CT::Choice cond, const Self& nx, const Self& ny, const Self& nz) {
  396|  12.5k|         const W mask = cond.into_bitmask<W>();
  397|       |
  398|  62.6k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (398:28): [True: 50.0k, False: 12.5k]
  ------------------
  399|  50.0k|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  400|  50.0k|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  401|  50.0k|            z.m_val[i] = Botan::choose(mask, nz.m_val[i], z.m_val[i]);
  402|  50.0k|         }
  403|  12.5k|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEE6invertEv:
  538|    130|      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|    130|      constexpr Self pow_vartime(const std::array<W, N>& exp) const {
  478|    130|         constexpr size_t WindowBits = (Self::BITS <= 256) ? 4 : 5;
  ------------------
  |  Branch (478:40): [True: 0, Folded]
  ------------------
  479|    130|         constexpr size_t WindowElements = (1 << WindowBits) - 1;
  480|       |
  481|    130|         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|    130|         std::array<Self, WindowElements> tbl;
  490|       |
  491|    130|         tbl[0] = (*this);
  492|       |
  493|  1.95k|         for(size_t i = 1; i != WindowElements; ++i) {
  ------------------
  |  Branch (493:28): [True: 1.82k, False: 130]
  ------------------
  494|       |            // Conditional ok: table indexes are public here
  495|  1.82k|            if(i % 2 == 1) {
  ------------------
  |  Branch (495:16): [True: 910, False: 910]
  ------------------
  496|    910|               tbl[i] = tbl[i / 2].square();
  497|    910|            } else {
  498|    910|               tbl[i] = tbl[i - 1] * tbl[0];
  499|    910|            }
  500|  1.82k|         }
  501|       |
  502|    130|         auto r = Self::one();
  503|       |
  504|    130|         const size_t w0 = read_window_bits<WindowBits>(std::span{exp}, (Windows - 1) * WindowBits);
  505|       |
  506|       |         // Conditional ok: this function is variable time
  507|    130|         if(w0 > 0) {
  ------------------
  |  Branch (507:13): [True: 130, False: 0]
  ------------------
  508|    130|            r = tbl[w0 - 1];
  509|    130|         }
  510|       |
  511|  8.32k|         for(size_t i = 1; i != Windows; ++i) {
  ------------------
  |  Branch (511:28): [True: 8.19k, False: 130]
  ------------------
  512|  8.19k|            r.square_n(WindowBits);
  513|       |
  514|  8.19k|            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|  8.19k|            if(w > 0) {
  ------------------
  |  Branch (517:16): [True: 7.67k, False: 520]
  ------------------
  518|  7.67k|               r *= tbl[w - 1];
  519|  7.67k|            }
  520|  8.19k|         }
  521|       |
  522|    130|         return r;
  523|    130|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEEC2Ev:
  180|  1.95k|      constexpr IntMod() : m_val({}) {}
pcurves_brainpool256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEE8square_nEm:
  439|  8.19k|      constexpr void square_n(size_t n) {
  440|  8.19k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  441|  40.9k|         for(size_t i = 0; i != n; ++i) {
  ------------------
  |  Branch (441:28): [True: 32.7k, False: 8.19k]
  ------------------
  442|  32.7k|            comba_sqr<N>(z.data(), this->data());
  443|  32.7k|            m_val = Rep::redc(z);
  444|  32.7k|         }
  445|  8.19k|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEEmLERKSA_:
  355|  7.67k|      constexpr BOTAN_FORCE_INLINE Self& operator*=(const Self& other) {
  356|  7.67k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  357|  7.67k|         comba_mul<N>(z.data(), data(), other.data());
  358|  7.67k|         m_val = Rep::redc(z);
  359|  7.67k|         return (*this);
  360|  7.67k|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEE14invert_vartimeEv:
  598|      1|      constexpr Self invert_vartime() const {
  599|       |         // Conditional ok: this function is variable time
  600|      1|         if(this->is_zero().as_bool()) {
  ------------------
  |  Branch (600:13): [True: 0, False: 1]
  ------------------
  601|      0|            return Self::zero();
  602|      0|         }
  603|       |
  604|      1|         auto x = Self(std::array<W, N>{1});  // 1 in standard domain
  605|      1|         auto b = Self(this->to_words());     // *this in standard domain
  606|       |
  607|       |         // First loop iteration
  608|      1|         Self::_invert_vartime_div2_helper(b, x);
  609|       |
  610|      1|         auto a = b.negate();
  611|       |         // y += x but y is zero at the outset
  612|      1|         auto y = x;
  613|       |
  614|       |         // First half of second loop iteration
  615|      1|         Self::_invert_vartime_div2_helper(a, y);
  616|       |
  617|    177|         for(;;) {
  618|       |            // Conditional ok: this function is variable time
  619|    177|            if(a.m_val == b.m_val) {
  ------------------
  |  Branch (619:16): [True: 1, False: 176]
  ------------------
  620|       |               // At this point it should be that a == b == 1
  621|      1|               auto r = y.negate();
  622|       |
  623|       |               // Convert back to Montgomery if required
  624|      1|               r.m_val = Rep::to_rep(r.m_val);
  625|      1|               return r;
  626|      1|            }
  627|       |
  628|    176|            auto nx = x + y;
  629|       |
  630|       |            /*
  631|       |            * Otherwise either b > a or a > b
  632|       |            *
  633|       |            * If b > a we want to set b to b - a
  634|       |            * Otherwise we want to set a to a - b
  635|       |            *
  636|       |            * Compute r = b - a and check if it underflowed
  637|       |            * If it did not then we are in the b > a path
  638|       |            */
  639|    176|            std::array<W, N> r;  // NOLINT(*-member-init)
  640|    176|            const word carry = bigint_sub3(r.data(), b.data(), N, a.data(), N);
  641|       |
  642|       |            // Conditional ok: this function is variable time
  643|    176|            if(carry == 0) {
  ------------------
  |  Branch (643:16): [True: 94, False: 82]
  ------------------
  644|       |               // b > a
  645|     94|               b.m_val = r;
  646|     94|               x = nx;
  647|     94|               Self::_invert_vartime_div2_helper(b, x);
  648|     94|            } else {
  649|       |               // We know this can't underflow because a > b
  650|     82|               bigint_sub3(r.data(), a.data(), N, b.data(), N);
  651|     82|               a.m_val = r;
  652|     82|               y = nx;
  653|     82|               Self::_invert_vartime_div2_helper(a, y);
  654|     82|            }
  655|    176|         }
  656|      1|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEE4zeroEv:
  195|  11.1k|      static constexpr Self zero() { return Self(std::array<W, N>{0}); }
pcurves_brainpool256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEE8to_wordsEv:
  734|      1|      constexpr std::array<W, Self::N> to_words() const { return Rep::from_rep(m_val); }
pcurves_brainpool256r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES0_E11FieldParamsEE8from_repERKNSt3__15arrayImLm4EEE:
  137|    261|      constexpr static std::array<W, N> from_rep(const std::array<W, N>& z) {
  138|    261|         std::array<W, 2 * N> ze = {};
  139|    261|         copy_mem(std::span{ze}.template first<N>(), z);
  140|    261|         return Self::redc(ze);
  141|    261|      }
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|  5.59k|      constexpr Self negate() const {
  453|  5.59k|         const W x_is_zero = ~CT::all_zeros(this->data(), N).value();
  454|       |
  455|  5.59k|         std::array<W, N> r;  // NOLINT(*-member-init)
  456|  5.59k|         W carry = 0;
  457|  27.9k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (457:28): [True: 22.3k, False: 5.59k]
  ------------------
  458|  22.3k|            r[i] = word_sub(P[i] & x_is_zero, m_val[i], &carry);
  459|  22.3k|         }
  460|       |
  461|  5.59k|         return Self(r);
  462|  5.59k|      }
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|  7.54k|      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|    650|      std::array<W, L> stash_value() const {
  760|    650|         static_assert(L >= N);
  761|    650|         std::array<W, L> stash = {};
  762|  3.25k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 2.60k, False: 650]
  ------------------
  763|  2.60k|            stash[i] = m_val[i];
  764|  2.60k|         }
  765|    650|         return stash;
  766|    650|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan23PrecomputedBaseMulTableINS_6PCurve12_GLOBAL__N_114brainpool256r15CurveELm6EE3mulERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsES7_E12ScalarParamsEEEEERNS_21RandomNumberGeneratorE:
 1407|    130|      ProjectivePoint mul(const Scalar& s, RandomNumberGenerator& rng) const {
 1408|    130|         const BlindedScalar scalar(s, rng);
 1409|    130|         return basemul_booth_exec<C, WindowBits>(m_table, scalar, rng);
 1410|    130|      }
pcurves_brainpool256r1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_114brainpool256r15CurveELm7EEC2ERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsES7_E12ScalarParamsEEEEERNS_21RandomNumberGeneratorE:
 1307|    130|      BlindedScalarBits(const typename C::Scalar& scalar, RandomNumberGenerator& rng) {
 1308|    130|         if(BlindingBits > 0 && rng.is_seeded()) {
  ------------------
  |  Branch (1308:13): [True: 130, Folded]
  |  Branch (1308:33): [True: 0, False: 130]
  ------------------
 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|    130|         } else {
 1344|       |            // No RNG available, skip blinding
 1345|    130|            m_bytes.resize(C::Scalar::BYTES);
 1346|    130|            scalar.serialize_to(std::span{m_bytes}.template first<C::Scalar::BYTES>());
 1347|    130|            m_bits = C::Scalar::BITS;
 1348|    130|         }
 1349|       |
 1350|    130|         CT::poison(m_bytes.data(), m_bytes.size());
 1351|    130|      }
pcurves_brainpool256r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES0_E12ScalarParamsEE8from_repERKNSt3__15arrayImLm4EEE:
  137|    290|      constexpr static std::array<W, N> from_rep(const std::array<W, N>& z) {
  138|    290|         std::array<W, 2 * N> ze = {};
  139|    290|         copy_mem(std::span{ze}.template first<N>(), z);
  140|    290|         return Self::redc(ze);
  141|    290|      }
pcurves_brainpool256r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES0_E12ScalarParamsEE4redcERKNSt3__15arrayImLm8EEE:
  104|    451|      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|    451|         } else {
  108|    451|            return monty_redc(z, P, P_dash);
  109|    451|         }
  110|    451|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E12ScalarParamsEEEE12serialize_toENSt3__14spanIhLm32EEE:
  739|    290|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|    290|         auto v = Rep::from_rep(m_val);
  741|    290|         std::reverse(v.begin(), v.end());
  742|       |
  743|    290|         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|    290|            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|    290|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_114brainpool256r15CurveELm7EE4bitsEv:
 1305|    130|      size_t bits() const { return m_bits; }
pcurves_brainpool256r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEES7_E18conditional_assignENS_2CT6ChoiceERKSC_:
 1084|    130|      constexpr void conditional_assign(CT::Choice cond, const Self& pt) {
 1085|    130|         FieldElement::conditional_assign(m_x, m_y, m_z, cond, pt.x(), pt.y(), pt.z());
 1086|    130|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEES7_E6negateEv:
 1134|    130|      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|    130|      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|    390|      constexpr void _const_time_poison() const { CT::poison(m_val); }
pcurves_brainpool256r1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_114brainpool256r15CurveELm7EE10get_windowEm:
 1353|  5.59k|      size_t get_window(size_t offset) const {
 1354|       |         // Extract a WindowBits sized window out of s, depending on offset.
 1355|  5.59k|         return read_window_bits<WindowBits>(std::span{m_bytes}, offset);
 1356|  5.59k|      }
pcurves_brainpool256r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEES7_E10add_or_subERKSC_RKNS_16AffineCurvePointISB_EENS_2CT6ChoiceE:
 1096|  5.46k|      constexpr static Self add_or_sub(const Self& a, const AffinePoint& b, CT::Choice sub) {
 1097|  5.46k|         return point_add_or_sub_mixed<Self, AffinePoint, FieldElement>(a, b, sub, FieldElement::one());
 1098|  5.46k|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEE18conditional_assignENS_2CT6ChoiceERKSA_:
  367|  5.46k|      constexpr void conditional_assign(CT::Choice cond, const Self& nx) {
  368|  5.46k|         const W mask = cond.into_bitmask<W>();
  369|       |
  370|  27.3k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (370:28): [True: 21.8k, False: 5.46k]
  ------------------
  371|  21.8k|            m_val[i] = Botan::choose(mask, nx.m_val[i], m_val[i]);
  372|  21.8k|         }
  373|  5.46k|      }
pcurves_brainpool256r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEEE9ct_selectENSt3__14spanIKSC_Lm18446744073709551615EEEm:
  955|  5.59k|      static constexpr auto ct_select(std::span<const Self> pts, size_t idx) {
  956|  5.59k|         auto result = Self::identity(pts[0]);
  957|       |
  958|       |         // Intentionally wrapping; set to maximum size_t if idx == 0
  959|  5.59k|         const size_t idx1 = static_cast<size_t>(idx - 1);
  960|   184k|         for(size_t i = 0; i != pts.size(); ++i) {
  ------------------
  |  Branch (960:28): [True: 178k, False: 5.59k]
  ------------------
  961|   178k|            const auto found = CT::Mask<size_t>::is_equal(idx1, i).as_choice();
  962|   178k|            result.conditional_assign(found, pts[i]);
  963|   178k|         }
  964|       |
  965|  5.59k|         return result;
  966|  5.59k|      }
pcurves_brainpool256r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEEE8identityERKSC_:
  924|  5.59k|      static constexpr Self identity(const Self& /*unused*/) {
  925|  5.59k|         return Self(FieldElement::zero(), FieldElement::zero());
  926|  5.59k|      }
pcurves_brainpool256r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEEE18conditional_assignENS_2CT6ChoiceERKSC_:
  981|   178k|      constexpr void conditional_assign(CT::Choice cond, const Self& pt) {
  982|   178k|         FieldElement::conditional_assign(m_x, m_y, cond, pt.x(), pt.y());
  983|   178k|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEE18conditional_assignERSA_SB_NS_2CT6ChoiceERKSA_SF_:
  380|   178k|      static constexpr void conditional_assign(Self& x, Self& y, CT::Choice cond, const Self& nx, const Self& ny) {
  381|   178k|         const W mask = cond.into_bitmask<W>();
  382|       |
  383|   894k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (383:28): [True: 715k, False: 178k]
  ------------------
  384|   715k|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  385|   715k|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  386|   715k|         }
  387|   178k|      }
pcurves_brainpool256r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEES7_E13randomize_repERNS_21RandomNumberGeneratorE:
 1142|    520|      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|    520|         if(rng.is_seeded()) {
  ------------------
  |  Branch (1147:13): [True: 0, False: 520]
  ------------------
 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|    520|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEES7_E20_const_time_unpoisonEv:
 1176|    130|      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|    390|      constexpr void _const_time_unpoison() const { CT::unpoison(m_val); }
pcurves_brainpool256r1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_114brainpool256r15CurveELm7EED2Ev:
 1358|    130|      ~BlindedScalarBits() {
 1359|    130|         secure_zeroize_buffer(m_bytes.data(), m_bytes.size());
 1360|    130|         CT::unpoison(m_bytes.data(), m_bytes.size());
 1361|    130|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E12ScalarParamsEEEE10from_stashILm9EEESA_RKNSt3__15arrayImXT_EEE:
  774|    450|      static Self from_stash(const std::array<W, L>& stash) {
  775|    450|         static_assert(L >= N);
  776|    450|         std::array<W, N> val = {};
  777|  2.25k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 1.80k, False: 450]
  ------------------
  778|  1.80k|            val[i] = stash[i];
  779|  1.80k|         }
  780|    450|         return Self(val);
  781|    450|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E12ScalarParamsEEEEC2ENSt3__15arrayImLm4EEE:
  898|    611|      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|    260|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|    260|         auto v = Rep::from_rep(m_val);
  741|    260|         std::reverse(v.begin(), v.end());
  742|       |
  743|    260|         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|    260|            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|    260|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E12ScalarParamsEEEE11stash_valueILm9EEENSt3__15arrayImXT_EEEv:
  759|    160|      std::array<W, L> stash_value() const {
  760|    160|         static_assert(L >= N);
  761|    160|         std::array<W, L> stash = {};
  762|    800|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 640, False: 160]
  ------------------
  763|    640|            stash[i] = m_val[i];
  764|    640|         }
  765|    160|         return stash;
  766|    160|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEE10from_stashILm9EEESA_RKNSt3__15arrayImXT_EEE:
  774|    910|      static Self from_stash(const std::array<W, L>& stash) {
  775|    910|         static_assert(L >= N);
  776|    910|         std::array<W, N> val = {};
  777|  4.55k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 3.64k, False: 910]
  ------------------
  778|  3.64k|            val[i] = stash[i];
  779|  3.64k|         }
  780|    910|         return Self(val);
  781|    910|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E12ScalarParamsEEEE7is_zeroEv:
  225|    321|      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|    130|      constexpr CT::Choice operator==(const Self& other) const {
  723|    130|         return CT::is_equal(this->data(), other.data(), N).as_choice();
  724|    130|      }
pcurves_brainpool256r1.cpp:_ZN5Botan13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsENS_13MontgomeryRepEE7x3_ax_bERKNS_6IntModINS5_INS6_11FieldParamsEEEEE:
 1275|    130|      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|    161|      static std::optional<Self> deserialize(std::span<const uint8_t> bytes) {
  793|       |         // Conditional ok: input length is public
  794|    161|         if(bytes.size() != Self::BYTES) {
  ------------------
  |  Branch (794:13): [True: 0, False: 161]
  ------------------
  795|      0|            return {};
  796|      0|         }
  797|       |
  798|    161|         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|    161|         if(!bigint_ct_is_lt(words.data(), N, P.data(), N).as_bool()) {
  ------------------
  |  Branch (801:13): [True: 0, False: 161]
  ------------------
  802|      0|            return {};
  803|      0|         }
  804|       |
  805|       |         // Safe because we checked above that words is an integer < P
  806|    161|         return Self::from_words(words);
  807|    161|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E12ScalarParamsEEEE10from_wordsILm4EEESA_NSt3__15arrayImXT_EEE:
  211|    161|      static constexpr Self from_words(std::array<W, L> w) {
  212|    161|         if constexpr(L == N) {
  213|    161|            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|    161|      }
pcurves_brainpool256r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES0_E12ScalarParamsEE6to_repERKNSt3__15arrayImLm4EEE:
  115|    161|      constexpr static std::array<W, N> to_rep(const std::array<W, N>& x) {
  116|    161|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  117|    161|         comba_mul<N>(z.data(), x.data(), R2.data());
  118|    161|         return Self::redc(z);
  119|    161|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEEE12serialize_toENSt3__14spanIhLm65EEE:
  941|    130|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  942|    130|         BOTAN_STATE_CHECK(this->is_identity().as_bool() == false);
  ------------------
  |  |   51|    130|   do {                                                         \
  |  |   52|    130|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|    130|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 130]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|    130|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 130]
  |  |  ------------------
  ------------------
  943|    130|         BufferStuffer pack(bytes);
  944|    130|         pack.append(0x04);
  945|    130|         x().serialize_to(pack.next<FieldElement::BYTES>());
  946|    130|         y().serialize_to(pack.next<FieldElement::BYTES>());
  947|    130|         BOTAN_DEBUG_ASSERT(pack.full());
  ------------------
  |  |  137|    130|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|    130|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 130]
  |  |  ------------------
  ------------------
  948|    130|      }
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|    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_brainpool384r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEEE1xEv:
  971|   287k|      constexpr const FieldElement& x() const { return m_x; }
pcurves_brainpool384r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEEE1yEv:
  976|   279k|      constexpr const FieldElement& y() const { return m_y; }
pcurves_brainpool384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEE3oneEv:
  200|  8.31k|      static constexpr Self one() { return Self(Rep::one()); }
pcurves_brainpool384r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES0_E11FieldParamsEE3oneEv:
   99|  8.31k|      constexpr static std::array<W, N> one() { return R1; }
pcurves_brainpool384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEEC2ENSt3__15arrayImLm6EEE:
  898|   254k|      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|    127|      static constexpr void conditional_swap(CT::Choice cond, Self& x, Self& y) {
  411|    127|         const W mask = cond.into_bitmask<W>();
  412|       |
  413|    889|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (413:28): [True: 762, False: 127]
  ------------------
  414|    762|            auto nx = Botan::choose(mask, y.m_val[i], x.m_val[i]);
  415|    762|            auto ny = Botan::choose(mask, x.m_val[i], y.m_val[i]);
  416|    762|            x.m_val[i] = nx;
  417|    762|            y.m_val[i] = ny;
  418|    762|         }
  419|    127|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEEE11is_identityEv:
  928|  8.56k|      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|  48.0k|      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|  10.7k|            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|  61.2k|      constexpr const FieldElement& z() const { return m_z; }
pcurves_brainpool384r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEE6squareEv:
  426|  40.6k|      constexpr BOTAN_FORCE_INLINE Self square() const {
  427|  40.6k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  428|  40.6k|         comba_sqr<N>(z.data(), this->data());
  429|  40.6k|         return Self(Rep::redc(z));
  430|  40.6k|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEE4dataEv:
  896|   314k|      constexpr const W* data() const { return m_val.data(); }
pcurves_brainpool384r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES0_E11FieldParamsEE4redcERKNSt3__15arrayImLm12EEE:
  104|   196k|      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|   196k|         } else {
  108|   196k|            return monty_redc(z, P, P_dash);
  109|   196k|         }
  110|   196k|      }
pcurves_brainpool384r1.cpp:_ZN5BotanplERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEEESC_:
  265|  12.1k|      friend constexpr BOTAN_FORCE_INLINE Self operator+(const Self& a, const Self& b) {
  266|  12.1k|         std::array<W, N> t;  // NOLINT(*-member-init)
  267|       |
  268|  12.1k|         W carry = 0;
  269|  85.0k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (269:28): [True: 72.9k, False: 12.1k]
  ------------------
  270|  72.9k|            t[i] = word_add(a.m_val[i], b.m_val[i], &carry);
  271|  72.9k|         }
  272|       |
  273|  12.1k|         std::array<W, N> r;  // NOLINT(*-member-init)
  274|  12.1k|         bigint_monty_maybe_sub<N>(r.data(), carry, t.data(), P.data());
  275|  12.1k|         return Self(r);
  276|  12.1k|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEES7_E1xEv:
 1162|  33.8k|      constexpr const FieldElement& x() const { return m_x; }
pcurves_brainpool384r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEE4mul3Ev:
  335|  1.24k|      constexpr inline Self mul3() const { return mul2() + (*this); }
pcurves_brainpool384r1.cpp:_ZN5BotanmlERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEEESC_:
  346|  99.0k|      friend constexpr BOTAN_FORCE_INLINE Self operator*(const Self& a, const Self& b) {
  347|  99.0k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  348|  99.0k|         comba_mul<N>(z.data(), a.data(), b.data());
  349|  99.0k|         return Self(Rep::redc(z));
  350|  99.0k|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEES7_E1yEv:
 1167|  33.8k|      constexpr const FieldElement& y() const { return m_y; }
pcurves_brainpool384r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEE4mul4Ev:
  338|  1.24k|      constexpr inline Self mul4() const { return mul2().mul2(); }
pcurves_brainpool384r1.cpp:_ZN5BotanmiERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEEESC_:
  281|  58.6k|      friend constexpr BOTAN_FORCE_INLINE Self operator-(const Self& a, const Self& b) {
  282|  58.6k|         std::array<W, N> r;  // NOLINT(*-member-init)
  283|  58.6k|         W carry = 0;
  284|   410k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (284:28): [True: 352k, False: 58.6k]
  ------------------
  285|   352k|            r[i] = word_sub(a.m_val[i], b.m_val[i], &carry);
  286|   352k|         }
  287|       |
  288|  58.6k|         const auto mask = CT::Mask<W>::expand(carry).value();
  289|       |
  290|  58.6k|         carry = 0;
  291|       |
  292|   410k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (292:28): [True: 352k, False: 58.6k]
  ------------------
  293|   352k|            r[i] = word_add(r[i], P[i] & mask, &carry);
  294|   352k|         }
  295|       |
  296|  58.6k|         return Self(r);
  297|  58.6k|      }
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|  12.5k|      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|  18.4k|         Self& x, Self& y, Self& z, CT::Choice cond, const Self& nx, const Self& ny, const Self& nz) {
  396|  18.4k|         const W mask = cond.into_bitmask<W>();
  397|       |
  398|   129k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (398:28): [True: 110k, False: 18.4k]
  ------------------
  399|   110k|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  400|   110k|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  401|   110k|            z.m_val[i] = Botan::choose(mask, nz.m_val[i], z.m_val[i]);
  402|   110k|         }
  403|  18.4k|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEE6invertEv:
  538|    126|      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|    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|  9.70k|         for(size_t i = 1; i != Windows; ++i) {
  ------------------
  |  Branch (511:28): [True: 9.57k, False: 126]
  ------------------
  512|  9.57k|            r.square_n(WindowBits);
  513|       |
  514|  9.57k|            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|  9.57k|            if(w > 0) {
  ------------------
  |  Branch (517:16): [True: 9.19k, False: 378]
  ------------------
  518|  9.19k|               r *= tbl[w - 1];
  519|  9.19k|            }
  520|  9.57k|         }
  521|       |
  522|    126|         return r;
  523|    126|      }
pcurves_brainpool384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEEC2Ev:
  180|  3.90k|      constexpr IntMod() : m_val({}) {}
pcurves_brainpool384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEE8square_nEm:
  439|  9.57k|      constexpr void square_n(size_t n) {
  440|  9.57k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  441|  57.4k|         for(size_t i = 0; i != n; ++i) {
  ------------------
  |  Branch (441:28): [True: 47.8k, False: 9.57k]
  ------------------
  442|  47.8k|            comba_sqr<N>(z.data(), this->data());
  443|  47.8k|            m_val = Rep::redc(z);
  444|  47.8k|         }
  445|  9.57k|      }
pcurves_brainpool384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEEmLERKSA_:
  355|  9.19k|      constexpr BOTAN_FORCE_INLINE Self& operator*=(const Self& other) {
  356|  9.19k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  357|  9.19k|         comba_mul<N>(z.data(), data(), other.data());
  358|  9.19k|         m_val = Rep::redc(z);
  359|  9.19k|         return (*this);
  360|  9.19k|      }
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|  16.3k|      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|    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_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.19k|      constexpr Self negate() const {
  453|  8.19k|         const W x_is_zero = ~CT::all_zeros(this->data(), N).value();
  454|       |
  455|  8.19k|         std::array<W, N> r;  // NOLINT(*-member-init)
  456|  8.19k|         W carry = 0;
  457|  57.3k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (457:28): [True: 49.1k, False: 8.19k]
  ------------------
  458|  49.1k|            r[i] = word_sub(P[i] & x_is_zero, m_val[i], &carry);
  459|  49.1k|         }
  460|       |
  461|  8.19k|         return Self(r);
  462|  8.19k|      }
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|  10.9k|      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|    630|      std::array<W, L> stash_value() const {
  760|    630|         static_assert(L >= N);
  761|    630|         std::array<W, L> stash = {};
  762|  4.41k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 3.78k, False: 630]
  ------------------
  763|  3.78k|            stash[i] = m_val[i];
  764|  3.78k|         }
  765|    630|         return stash;
  766|    630|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan23PrecomputedBaseMulTableINS_6PCurve12_GLOBAL__N_114brainpool384r15CurveELm6EE3mulERKNS_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_brainpool384r1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_114brainpool384r15CurveELm7EEC2ERKNS_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|      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|    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_brainpool384r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES0_E12ScalarParamsEE8from_repERKNSt3__15arrayImLm6EEE:
  137|    271|      constexpr static std::array<W, N> from_rep(const std::array<W, N>& z) {
  138|    271|         std::array<W, 2 * N> ze = {};
  139|    271|         copy_mem(std::span{ze}.template first<N>(), z);
  140|    271|         return Self::redc(ze);
  141|    271|      }
pcurves_brainpool384r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES0_E12ScalarParamsEE4redcERKNSt3__15arrayImLm12EEE:
  104|    417|      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|    417|         } else {
  108|    417|            return monty_redc(z, P, P_dash);
  109|    417|         }
  110|    417|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E12ScalarParamsEEEE12serialize_toENSt3__14spanIhLm48EEE:
  739|    271|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|    271|         auto v = Rep::from_rep(m_val);
  741|    271|         std::reverse(v.begin(), v.end());
  742|       |
  743|    271|         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|    271|            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|    271|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_114brainpool384r15CurveELm7EE4bitsEv:
 1305|    126|      size_t bits() const { return m_bits; }
pcurves_brainpool384r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_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_brainpool384r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEES7_E6negateEv:
 1134|    126|      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|    126|      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|    378|      constexpr void _const_time_poison() const { CT::poison(m_val); }
pcurves_brainpool384r1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_114brainpool384r15CurveELm7EE10get_windowEm:
 1353|  8.19k|      size_t get_window(size_t offset) const {
 1354|       |         // Extract a WindowBits sized window out of s, depending on offset.
 1355|  8.19k|         return read_window_bits<WindowBits>(std::span{m_bytes}, offset);
 1356|  8.19k|      }
pcurves_brainpool384r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEES7_E10add_or_subERKSC_RKNS_16AffineCurvePointISB_EENS_2CT6ChoiceE:
 1096|  8.06k|      constexpr static Self add_or_sub(const Self& a, const AffinePoint& b, CT::Choice sub) {
 1097|  8.06k|         return point_add_or_sub_mixed<Self, AffinePoint, FieldElement>(a, b, sub, FieldElement::one());
 1098|  8.06k|      }
pcurves_brainpool384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEE18conditional_assignENS_2CT6ChoiceERKSA_:
  367|  8.06k|      constexpr void conditional_assign(CT::Choice cond, const Self& nx) {
  368|  8.06k|         const W mask = cond.into_bitmask<W>();
  369|       |
  370|  56.4k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (370:28): [True: 48.3k, False: 8.06k]
  ------------------
  371|  48.3k|            m_val[i] = Botan::choose(mask, nx.m_val[i], m_val[i]);
  372|  48.3k|         }
  373|  8.06k|      }
pcurves_brainpool384r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEEE9ct_selectENSt3__14spanIKSC_Lm18446744073709551615EEEm:
  955|  8.19k|      static constexpr auto ct_select(std::span<const Self> pts, size_t idx) {
  956|  8.19k|         auto result = Self::identity(pts[0]);
  957|       |
  958|       |         // Intentionally wrapping; set to maximum size_t if idx == 0
  959|  8.19k|         const size_t idx1 = static_cast<size_t>(idx - 1);
  960|   270k|         for(size_t i = 0; i != pts.size(); ++i) {
  ------------------
  |  Branch (960:28): [True: 262k, False: 8.19k]
  ------------------
  961|   262k|            const auto found = CT::Mask<size_t>::is_equal(idx1, i).as_choice();
  962|   262k|            result.conditional_assign(found, pts[i]);
  963|   262k|         }
  964|       |
  965|  8.19k|         return result;
  966|  8.19k|      }
pcurves_brainpool384r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEEE8identityERKSC_:
  924|  8.19k|      static constexpr Self identity(const Self& /*unused*/) {
  925|  8.19k|         return Self(FieldElement::zero(), FieldElement::zero());
  926|  8.19k|      }
pcurves_brainpool384r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEEE18conditional_assignENS_2CT6ChoiceERKSC_:
  981|   262k|      constexpr void conditional_assign(CT::Choice cond, const Self& pt) {
  982|   262k|         FieldElement::conditional_assign(m_x, m_y, cond, pt.x(), pt.y());
  983|   262k|      }
pcurves_brainpool384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEE18conditional_assignERSA_SB_NS_2CT6ChoiceERKSA_SF_:
  380|   262k|      static constexpr void conditional_assign(Self& x, Self& y, CT::Choice cond, const Self& nx, const Self& ny) {
  381|   262k|         const W mask = cond.into_bitmask<W>();
  382|       |
  383|  1.83M|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (383:28): [True: 1.57M, False: 262k]
  ------------------
  384|  1.57M|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  385|  1.57M|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  386|  1.57M|         }
  387|   262k|      }
pcurves_brainpool384r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_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_brainpool384r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEES7_E20_const_time_unpoisonEv:
 1176|    126|      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|    378|      constexpr void _const_time_unpoison() const { CT::unpoison(m_val); }
pcurves_brainpool384r1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_114brainpool384r15CurveELm7EED2Ev:
 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_brainpool384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E12ScalarParamsEEEE10from_stashILm9EEESA_RKNSt3__15arrayImXT_EEE:
  774|    416|      static Self from_stash(const std::array<W, L>& stash) {
  775|    416|         static_assert(L >= N);
  776|    416|         std::array<W, N> val = {};
  777|  2.91k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 2.49k, False: 416]
  ------------------
  778|  2.49k|            val[i] = stash[i];
  779|  2.49k|         }
  780|    416|         return Self(val);
  781|    416|      }
pcurves_brainpool384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E12ScalarParamsEEEEC2ENSt3__15arrayImLm6EEE:
  898|    562|      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|    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_brainpool384r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E12ScalarParamsEEEE11stash_valueILm9EEENSt3__15arrayImXT_EEEv:
  759|    145|      std::array<W, L> stash_value() const {
  760|    145|         static_assert(L >= N);
  761|    145|         std::array<W, L> stash = {};
  762|  1.01k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 870, False: 145]
  ------------------
  763|    870|            stash[i] = m_val[i];
  764|    870|         }
  765|    145|         return stash;
  766|    145|      }
pcurves_brainpool384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_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|  6.17k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 5.29k, False: 882]
  ------------------
  778|  5.29k|            val[i] = stash[i];
  779|  5.29k|         }
  780|    882|         return Self(val);
  781|    882|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E12ScalarParamsEEEE7is_zeroEv:
  225|    291|      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|    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_brainpool384r1.cpp:_ZN5Botan13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsENS_13MontgomeryRepEE7x3_ax_bERKNS_6IntModINS5_INS6_11FieldParamsEEEEE:
 1275|    126|      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|    146|      static std::optional<Self> deserialize(std::span<const uint8_t> bytes) {
  793|       |         // Conditional ok: input length is public
  794|    146|         if(bytes.size() != Self::BYTES) {
  ------------------
  |  Branch (794:13): [True: 0, False: 146]
  ------------------
  795|      0|            return {};
  796|      0|         }
  797|       |
  798|    146|         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|    146|         if(!bigint_ct_is_lt(words.data(), N, P.data(), N).as_bool()) {
  ------------------
  |  Branch (801:13): [True: 0, False: 146]
  ------------------
  802|      0|            return {};
  803|      0|         }
  804|       |
  805|       |         // Safe because we checked above that words is an integer < P
  806|    146|         return Self::from_words(words);
  807|    146|      }
pcurves_brainpool384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E12ScalarParamsEEEE10from_wordsILm6EEESA_NSt3__15arrayImXT_EEE:
  211|    146|      static constexpr Self from_words(std::array<W, L> w) {
  212|    146|         if constexpr(L == N) {
  213|    146|            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|    146|      }
pcurves_brainpool384r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES0_E12ScalarParamsEE6to_repERKNSt3__15arrayImLm6EEE:
  115|    146|      constexpr static std::array<W, N> to_rep(const std::array<W, N>& x) {
  116|    146|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  117|    146|         comba_mul<N>(z.data(), x.data(), R2.data());
  118|    146|         return Self::redc(z);
  119|    146|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEEE12serialize_toENSt3__14spanIhLm97EEE:
  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());
  ------------------
  |  |  137|    126|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|    126|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 126]
  |  |  ------------------
  ------------------
  948|    126|      }
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|    173|      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|    173|         auto x = pt.x();
 1027|    173|         auto y = pt.y();
 1028|    173|         auto z = FieldElement::one();
 1029|       |
 1030|    173|         FieldElement::conditional_swap(pt.is_identity(), y, z);
 1031|       |
 1032|    173|         return ProjectiveCurvePoint(x, y, z);
 1033|    173|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEEE1xEv:
  971|   518k|      constexpr const FieldElement& x() const { return m_x; }
pcurves_brainpool512r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEEE1yEv:
  976|   503k|      constexpr const FieldElement& y() const { return m_y; }
pcurves_brainpool512r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE3oneEv:
  200|  14.9k|      static constexpr Self one() { return Self(Rep::one()); }
pcurves_brainpool512r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES0_E11FieldParamsEE3oneEv:
   99|  14.9k|      constexpr static std::array<W, N> one() { return R1; }
pcurves_brainpool512r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEEC2ENSt3__15arrayImLm8EEE:
  898|   423k|      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|    173|      static constexpr void conditional_swap(CT::Choice cond, Self& x, Self& y) {
  411|    173|         const W mask = cond.into_bitmask<W>();
  412|       |
  413|  1.55k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (413:28): [True: 1.38k, False: 173]
  ------------------
  414|  1.38k|            auto nx = Botan::choose(mask, y.m_val[i], x.m_val[i]);
  415|  1.38k|            auto ny = Botan::choose(mask, x.m_val[i], y.m_val[i]);
  416|  1.38k|            x.m_val[i] = nx;
  417|  1.38k|            y.m_val[i] = ny;
  418|  1.38k|         }
  419|    173|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEEE11is_identityEv:
  928|  15.3k|      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|  83.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|  18.2k|            m_x(x), m_y(y), m_z(z) {}
pcurves_brainpool512r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEES7_E3dblEv:
 1121|  1.64k|      constexpr Self dbl() const {
 1122|       |         if constexpr(Self::A_is_minus_3) {
 1123|       |            return dbl_a_minus_3(*this);
 1124|       |         } else if constexpr(Self::A_is_zero) {
 1125|       |            return dbl_a_zero(*this);
 1126|  1.64k|         } else {
 1127|  1.64k|            return dbl_generic(*this, A);
 1128|  1.64k|         }
 1129|  1.64k|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEES7_E1zEv:
 1172|   100k|      constexpr const FieldElement& z() const { return m_z; }
pcurves_brainpool512r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE6squareEv:
  426|  65.7k|      constexpr BOTAN_FORCE_INLINE Self square() const {
  427|  65.7k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  428|  65.7k|         comba_sqr<N>(z.data(), this->data());
  429|  65.7k|         return Self(Rep::redc(z));
  430|  65.7k|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE4dataEv:
  896|   529k|      constexpr const W* data() const { return m_val.data(); }
pcurves_brainpool512r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES0_E11FieldParamsEE4redcERKNSt3__15arrayImLm16EEE:
  104|   333k|      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|   333k|         } else {
  108|   333k|            return monty_redc(z, P, P_dash);
  109|   333k|         }
  110|   333k|      }
pcurves_brainpool512r1.cpp:_ZN5BotanplERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEEESC_:
  265|  20.0k|      friend constexpr BOTAN_FORCE_INLINE Self operator+(const Self& a, const Self& b) {
  266|  20.0k|         std::array<W, N> t;  // NOLINT(*-member-init)
  267|       |
  268|  20.0k|         W carry = 0;
  269|   180k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (269:28): [True: 160k, False: 20.0k]
  ------------------
  270|   160k|            t[i] = word_add(a.m_val[i], b.m_val[i], &carry);
  271|   160k|         }
  272|       |
  273|  20.0k|         std::array<W, N> r;  // NOLINT(*-member-init)
  274|  20.0k|         bigint_monty_maybe_sub<N>(r.data(), carry, t.data(), P.data());
  275|  20.0k|         return Self(r);
  276|  20.0k|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEES7_E1xEv:
 1162|  56.7k|      constexpr const FieldElement& x() const { return m_x; }
pcurves_brainpool512r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE4mul3Ev:
  335|  1.64k|      constexpr inline Self mul3() const { return mul2() + (*this); }
pcurves_brainpool512r1.cpp:_ZN5BotanmlERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEEESC_:
  346|   162k|      friend constexpr BOTAN_FORCE_INLINE Self operator*(const Self& a, const Self& b) {
  347|   162k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  348|   162k|         comba_mul<N>(z.data(), a.data(), b.data());
  349|   162k|         return Self(Rep::redc(z));
  350|   162k|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEES7_E1yEv:
 1167|  56.7k|      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|   101k|      friend constexpr BOTAN_FORCE_INLINE Self operator-(const Self& a, const Self& b) {
  282|   101k|         std::array<W, N> r;  // NOLINT(*-member-init)
  283|   101k|         W carry = 0;
  284|   912k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (284:28): [True: 811k, False: 101k]
  ------------------
  285|   811k|            r[i] = word_sub(a.m_val[i], b.m_val[i], &carry);
  286|   811k|         }
  287|       |
  288|   101k|         const auto mask = CT::Mask<W>::expand(carry).value();
  289|       |
  290|   101k|         carry = 0;
  291|       |
  292|   912k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (292:28): [True: 811k, False: 101k]
  ------------------
  293|   811k|            r[i] = word_add(r[i], P[i] & mask, &carry);
  294|   811k|         }
  295|       |
  296|   101k|         return Self(r);
  297|   101k|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE4mul2Ev:
  325|  13.1k|      constexpr BOTAN_FORCE_INLINE Self mul2() const {
  326|  13.1k|         std::array<W, N> t = value();
  327|  13.1k|         const W carry = shift_left<1>(t);
  328|       |
  329|  13.1k|         std::array<W, N> r;  // NOLINT(*-member-init)
  330|  13.1k|         bigint_monty_maybe_sub<N>(r.data(), carry, t.data(), P.data());
  331|  13.1k|         return Self(r);
  332|  13.1k|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE5valueEv:
  894|  13.1k|      constexpr const std::array<W, N>& value() const { return m_val; }
pcurves_brainpool512r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE4mul8Ev:
  341|  1.64k|      constexpr inline Self mul8() const { return mul2().mul2().mul2(); }
pcurves_brainpool512r1.cpp:_ZN5BotanplERKNS_20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEES7_EESE_:
 1064|  1.45k|      friend constexpr Self operator+(const Self& a, const Self& b) { return Self::add(a, b); }
pcurves_brainpool512r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEES7_E3addERKSC_SE_:
 1103|  1.45k|      constexpr static Self add(const Self& a, const Self& b) { return point_add<Self, FieldElement>(a, b); }
pcurves_brainpool512r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEES7_E11is_identityEv:
 1082|  20.6k|      constexpr CT::Choice is_identity() const { return z().is_zero(); }
pcurves_brainpool512r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE18conditional_assignERSA_SB_SB_NS_2CT6ChoiceERKSA_SF_SF_:
  395|  32.3k|         Self& x, Self& y, Self& z, CT::Choice cond, const Self& nx, const Self& ny, const Self& nz) {
  396|  32.3k|         const W mask = cond.into_bitmask<W>();
  397|       |
  398|   290k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (398:28): [True: 258k, False: 32.3k]
  ------------------
  399|   258k|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  400|   258k|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  401|   258k|            z.m_val[i] = Botan::choose(mask, nz.m_val[i], z.m_val[i]);
  402|   258k|         }
  403|  32.3k|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE6invertEv:
  538|    172|      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|    172|      constexpr Self pow_vartime(const std::array<W, N>& exp) const {
  478|    172|         constexpr size_t WindowBits = (Self::BITS <= 256) ? 4 : 5;
  ------------------
  |  Branch (478:40): [Folded, False: 172]
  ------------------
  479|    172|         constexpr size_t WindowElements = (1 << WindowBits) - 1;
  480|       |
  481|    172|         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|    172|         std::array<Self, WindowElements> tbl;
  490|       |
  491|    172|         tbl[0] = (*this);
  492|       |
  493|  5.33k|         for(size_t i = 1; i != WindowElements; ++i) {
  ------------------
  |  Branch (493:28): [True: 5.16k, False: 172]
  ------------------
  494|       |            // Conditional ok: table indexes are public here
  495|  5.16k|            if(i % 2 == 1) {
  ------------------
  |  Branch (495:16): [True: 2.58k, False: 2.58k]
  ------------------
  496|  2.58k|               tbl[i] = tbl[i / 2].square();
  497|  2.58k|            } else {
  498|  2.58k|               tbl[i] = tbl[i - 1] * tbl[0];
  499|  2.58k|            }
  500|  5.16k|         }
  501|       |
  502|    172|         auto r = Self::one();
  503|       |
  504|    172|         const size_t w0 = read_window_bits<WindowBits>(std::span{exp}, (Windows - 1) * WindowBits);
  505|       |
  506|       |         // Conditional ok: this function is variable time
  507|    172|         if(w0 > 0) {
  ------------------
  |  Branch (507:13): [True: 172, False: 0]
  ------------------
  508|    172|            r = tbl[w0 - 1];
  509|    172|         }
  510|       |
  511|  17.7k|         for(size_t i = 1; i != Windows; ++i) {
  ------------------
  |  Branch (511:28): [True: 17.5k, False: 172]
  ------------------
  512|  17.5k|            r.square_n(WindowBits);
  513|       |
  514|  17.5k|            const size_t w = read_window_bits<WindowBits>(std::span{exp}, (Windows - i - 1) * WindowBits);
  515|       |
  516|       |            // Conditional ok: this function is variable time
  517|  17.5k|            if(w > 0) {
  ------------------
  |  Branch (517:16): [True: 17.2k, False: 344]
  ------------------
  518|  17.2k|               r *= tbl[w - 1];
  519|  17.2k|            }
  520|  17.5k|         }
  521|       |
  522|    172|         return r;
  523|    172|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEEC2Ev:
  180|  5.33k|      constexpr IntMod() : m_val({}) {}
pcurves_brainpool512r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE8square_nEm:
  439|  17.5k|      constexpr void square_n(size_t n) {
  440|  17.5k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  441|   105k|         for(size_t i = 0; i != n; ++i) {
  ------------------
  |  Branch (441:28): [True: 87.7k, False: 17.5k]
  ------------------
  442|  87.7k|            comba_sqr<N>(z.data(), this->data());
  443|  87.7k|            m_val = Rep::redc(z);
  444|  87.7k|         }
  445|  17.5k|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEEmLERKSA_:
  355|  17.2k|      constexpr BOTAN_FORCE_INLINE Self& operator*=(const Self& other) {
  356|  17.2k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  357|  17.2k|         comba_mul<N>(z.data(), data(), other.data());
  358|  17.2k|         m_val = Rep::redc(z);
  359|  17.2k|         return (*this);
  360|  17.2k|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE14invert_vartimeEv:
  598|      1|      constexpr Self invert_vartime() const {
  599|       |         // Conditional ok: this function is variable time
  600|      1|         if(this->is_zero().as_bool()) {
  ------------------
  |  Branch (600:13): [True: 0, False: 1]
  ------------------
  601|      0|            return Self::zero();
  602|      0|         }
  603|       |
  604|      1|         auto x = Self(std::array<W, N>{1});  // 1 in standard domain
  605|      1|         auto b = Self(this->to_words());     // *this in standard domain
  606|       |
  607|       |         // First loop iteration
  608|      1|         Self::_invert_vartime_div2_helper(b, x);
  609|       |
  610|      1|         auto a = b.negate();
  611|       |         // y += x but y is zero at the outset
  612|      1|         auto y = x;
  613|       |
  614|       |         // First half of second loop iteration
  615|      1|         Self::_invert_vartime_div2_helper(a, y);
  616|       |
  617|    366|         for(;;) {
  618|       |            // Conditional ok: this function is variable time
  619|    366|            if(a.m_val == b.m_val) {
  ------------------
  |  Branch (619:16): [True: 1, False: 365]
  ------------------
  620|       |               // At this point it should be that a == b == 1
  621|      1|               auto r = y.negate();
  622|       |
  623|       |               // Convert back to Montgomery if required
  624|      1|               r.m_val = Rep::to_rep(r.m_val);
  625|      1|               return r;
  626|      1|            }
  627|       |
  628|    365|            auto nx = x + y;
  629|       |
  630|       |            /*
  631|       |            * Otherwise either b > a or a > b
  632|       |            *
  633|       |            * If b > a we want to set b to b - a
  634|       |            * Otherwise we want to set a to a - b
  635|       |            *
  636|       |            * Compute r = b - a and check if it underflowed
  637|       |            * If it did not then we are in the b > a path
  638|       |            */
  639|    365|            std::array<W, N> r;  // NOLINT(*-member-init)
  640|    365|            const word carry = bigint_sub3(r.data(), b.data(), N, a.data(), N);
  641|       |
  642|       |            // Conditional ok: this function is variable time
  643|    365|            if(carry == 0) {
  ------------------
  |  Branch (643:16): [True: 175, False: 190]
  ------------------
  644|       |               // b > a
  645|    175|               b.m_val = r;
  646|    175|               x = nx;
  647|    175|               Self::_invert_vartime_div2_helper(b, x);
  648|    190|            } else {
  649|       |               // We know this can't underflow because a > b
  650|    190|               bigint_sub3(r.data(), a.data(), N, b.data(), N);
  651|    190|               a.m_val = r;
  652|    190|               y = nx;
  653|    190|               Self::_invert_vartime_div2_helper(a, y);
  654|    190|            }
  655|    365|         }
  656|      1|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE4zeroEv:
  195|  29.5k|      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|    345|      constexpr static std::array<W, N> from_rep(const std::array<W, N>& z) {
  138|    345|         std::array<W, 2 * N> ze = {};
  139|    345|         copy_mem(std::span{ze}.template first<N>(), z);
  140|    345|         return Self::redc(ze);
  141|    345|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE27_invert_vartime_div2_helperERSA_SB_:
  547|    367|      static constexpr void _invert_vartime_div2_helper(Self& a, Self& x) {
  548|    367|         constexpr auto INV_2 = p_div_2_plus_1(Rep::P);
  549|       |
  550|       |         // Conditional ok: this function is variable time
  551|  1.08k|         while((a.m_val[0] & 1) != 1) {
  ------------------
  |  Branch (551:16): [True: 713, False: 367]
  ------------------
  552|    713|            shift_right<1>(a.m_val);
  553|       |
  554|    713|            const W borrow = shift_right<1>(x.m_val);
  555|       |
  556|       |            // Conditional ok: this function is variable time
  557|    713|            if(borrow) {
  ------------------
  |  Branch (557:16): [True: 362, False: 351]
  ------------------
  558|    362|               bigint_add2(x.m_val.data(), N, INV_2.data(), N);
  559|    362|            }
  560|    713|         }
  561|    367|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE6negateEv:
  452|  14.7k|      constexpr Self negate() const {
  453|  14.7k|         const W x_is_zero = ~CT::all_zeros(this->data(), N).value();
  454|       |
  455|  14.7k|         std::array<W, N> r;  // NOLINT(*-member-init)
  456|  14.7k|         W carry = 0;
  457|   133k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (457:28): [True: 118k, False: 14.7k]
  ------------------
  458|   118k|            r[i] = word_sub(P[i] & x_is_zero, m_val[i], &carry);
  459|   118k|         }
  460|       |
  461|  14.7k|         return Self(r);
  462|  14.7k|      }
pcurves_brainpool512r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES0_E11FieldParamsEE6to_repERKNSt3__15arrayImLm8EEE:
  115|      1|      constexpr static std::array<W, N> to_rep(const std::array<W, N>& x) {
  116|      1|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  117|      1|         comba_mul<N>(z.data(), x.data(), R2.data());
  118|      1|         return Self::redc(z);
  119|      1|      }
pcurves_brainpool512r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEEEC2ERKSB_SE_:
  917|  18.4k|      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|    860|      std::array<W, L> stash_value() const {
  760|    860|         static_assert(L >= N);
  761|    860|         std::array<W, L> stash = {};
  762|  7.74k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 6.88k, False: 860]
  ------------------
  763|  6.88k|            stash[i] = m_val[i];
  764|  6.88k|         }
  765|    860|         return stash;
  766|    860|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan23PrecomputedBaseMulTableINS_6PCurve12_GLOBAL__N_114brainpool512r15CurveELm6EE3mulERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsES7_E12ScalarParamsEEEEERNS_21RandomNumberGeneratorE:
 1407|    172|      ProjectivePoint mul(const Scalar& s, RandomNumberGenerator& rng) const {
 1408|    172|         const BlindedScalar scalar(s, rng);
 1409|    172|         return basemul_booth_exec<C, WindowBits>(m_table, scalar, rng);
 1410|    172|      }
pcurves_brainpool512r1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_114brainpool512r15CurveELm7EEC2ERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsES7_E12ScalarParamsEEEEERNS_21RandomNumberGeneratorE:
 1307|    172|      BlindedScalarBits(const typename C::Scalar& scalar, RandomNumberGenerator& rng) {
 1308|    172|         if(BlindingBits > 0 && rng.is_seeded()) {
  ------------------
  |  Branch (1308:13): [True: 172, Folded]
  |  Branch (1308:33): [True: 0, False: 172]
  ------------------
 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|    172|         } else {
 1344|       |            // No RNG available, skip blinding
 1345|    172|            m_bytes.resize(C::Scalar::BYTES);
 1346|    172|            scalar.serialize_to(std::span{m_bytes}.template first<C::Scalar::BYTES>());
 1347|    172|            m_bits = C::Scalar::BITS;
 1348|    172|         }
 1349|       |
 1350|    172|         CT::poison(m_bytes.data(), m_bytes.size());
 1351|    172|      }
pcurves_brainpool512r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES0_E12ScalarParamsEE8from_repERKNSt3__15arrayImLm8EEE:
  137|    369|      constexpr static std::array<W, N> from_rep(const std::array<W, N>& z) {
  138|    369|         std::array<W, 2 * N> ze = {};
  139|    369|         copy_mem(std::span{ze}.template first<N>(), z);
  140|    369|         return Self::redc(ze);
  141|    369|      }
pcurves_brainpool512r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES0_E12ScalarParamsEE4redcERKNSt3__15arrayImLm16EEE:
  104|    567|      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|    567|         } else {
  108|    567|            return monty_redc(z, P, P_dash);
  109|    567|         }
  110|    567|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E12ScalarParamsEEEE12serialize_toENSt3__14spanIhLm64EEE:
  739|    369|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|    369|         auto v = Rep::from_rep(m_val);
  741|    369|         std::reverse(v.begin(), v.end());
  742|       |
  743|    369|         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|    369|            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|    369|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_114brainpool512r15CurveELm7EE4bitsEv:
 1305|    172|      size_t bits() const { return m_bits; }
pcurves_brainpool512r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEES7_E18conditional_assignENS_2CT6ChoiceERKSC_:
 1084|    172|      constexpr void conditional_assign(CT::Choice cond, const Self& pt) {
 1085|    172|         FieldElement::conditional_assign(m_x, m_y, m_z, cond, pt.x(), pt.y(), pt.z());
 1086|    172|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEES7_E6negateEv:
 1134|    172|      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|    172|      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|    516|      constexpr void _const_time_poison() const { CT::poison(m_val); }
pcurves_brainpool512r1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_114brainpool512r15CurveELm7EE10get_windowEm:
 1353|  14.7k|      size_t get_window(size_t offset) const {
 1354|       |         // Extract a WindowBits sized window out of s, depending on offset.
 1355|  14.7k|         return read_window_bits<WindowBits>(std::span{m_bytes}, offset);
 1356|  14.7k|      }
pcurves_brainpool512r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEES7_E10add_or_subERKSC_RKNS_16AffineCurvePointISB_EENS_2CT6ChoiceE:
 1096|  14.6k|      constexpr static Self add_or_sub(const Self& a, const AffinePoint& b, CT::Choice sub) {
 1097|  14.6k|         return point_add_or_sub_mixed<Self, AffinePoint, FieldElement>(a, b, sub, FieldElement::one());
 1098|  14.6k|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE18conditional_assignENS_2CT6ChoiceERKSA_:
  367|  14.6k|      constexpr void conditional_assign(CT::Choice cond, const Self& nx) {
  368|  14.6k|         const W mask = cond.into_bitmask<W>();
  369|       |
  370|   131k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (370:28): [True: 116k, False: 14.6k]
  ------------------
  371|   116k|            m_val[i] = Botan::choose(mask, nx.m_val[i], m_val[i]);
  372|   116k|         }
  373|  14.6k|      }
pcurves_brainpool512r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEEE9ct_selectENSt3__14spanIKSC_Lm18446744073709551615EEEm:
  955|  14.7k|      static constexpr auto ct_select(std::span<const Self> pts, size_t idx) {
  956|  14.7k|         auto result = Self::identity(pts[0]);
  957|       |
  958|       |         // Intentionally wrapping; set to maximum size_t if idx == 0
  959|  14.7k|         const size_t idx1 = static_cast<size_t>(idx - 1);
  960|   488k|         for(size_t i = 0; i != pts.size(); ++i) {
  ------------------
  |  Branch (960:28): [True: 473k, False: 14.7k]
  ------------------
  961|   473k|            const auto found = CT::Mask<size_t>::is_equal(idx1, i).as_choice();
  962|   473k|            result.conditional_assign(found, pts[i]);
  963|   473k|         }
  964|       |
  965|  14.7k|         return result;
  966|  14.7k|      }
pcurves_brainpool512r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEEE8identityERKSC_:
  924|  14.7k|      static constexpr Self identity(const Self& /*unused*/) {
  925|  14.7k|         return Self(FieldElement::zero(), FieldElement::zero());
  926|  14.7k|      }
pcurves_brainpool512r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEEE18conditional_assignENS_2CT6ChoiceERKSC_:
  981|   473k|      constexpr void conditional_assign(CT::Choice cond, const Self& pt) {
  982|   473k|         FieldElement::conditional_assign(m_x, m_y, cond, pt.x(), pt.y());
  983|   473k|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE18conditional_assignERSA_SB_NS_2CT6ChoiceERKSA_SF_:
  380|   473k|      static constexpr void conditional_assign(Self& x, Self& y, CT::Choice cond, const Self& nx, const Self& ny) {
  381|   473k|         const W mask = cond.into_bitmask<W>();
  382|       |
  383|  4.26M|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (383:28): [True: 3.78M, False: 473k]
  ------------------
  384|  3.78M|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  385|  3.78M|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  386|  3.78M|         }
  387|   473k|      }
pcurves_brainpool512r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEES7_E13randomize_repERNS_21RandomNumberGeneratorE:
 1142|    688|      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|    688|         if(rng.is_seeded()) {
  ------------------
  |  Branch (1147:13): [True: 0, False: 688]
  ------------------
 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|    688|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEES7_E20_const_time_unpoisonEv:
 1176|    172|      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|    516|      constexpr void _const_time_unpoison() const { CT::unpoison(m_val); }
pcurves_brainpool512r1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_114brainpool512r15CurveELm7EED2Ev:
 1358|    172|      ~BlindedScalarBits() {
 1359|    172|         secure_zeroize_buffer(m_bytes.data(), m_bytes.size());
 1360|    172|         CT::unpoison(m_bytes.data(), m_bytes.size());
 1361|    172|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E12ScalarParamsEEEE10from_stashILm9EEESA_RKNSt3__15arrayImXT_EEE:
  774|    566|      static Self from_stash(const std::array<W, L>& stash) {
  775|    566|         static_assert(L >= N);
  776|    566|         std::array<W, N> val = {};
  777|  5.09k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 4.52k, False: 566]
  ------------------
  778|  4.52k|            val[i] = stash[i];
  779|  4.52k|         }
  780|    566|         return Self(val);
  781|    566|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E12ScalarParamsEEEEC2ENSt3__15arrayImLm8EEE:
  898|    764|      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|    344|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|    344|         auto v = Rep::from_rep(m_val);
  741|    344|         std::reverse(v.begin(), v.end());
  742|       |
  743|    344|         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|    344|            store_be(bytes, v);
  745|       |         } else {
  746|       |            // Remove leading zero bytes
  747|       |            const auto padded_bytes = store_be(v);
  748|       |            constexpr size_t extra = N * WordInfo<W>::bytes - Self::BYTES;
  749|       |            copy_mem(bytes, std::span{padded_bytes}.template subspan<extra, Self::BYTES>());
  750|       |         }
  751|    344|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E12ScalarParamsEEEE11stash_valueILm9EEENSt3__15arrayImXT_EEEv:
  759|    197|      std::array<W, L> stash_value() const {
  760|    197|         static_assert(L >= N);
  761|    197|         std::array<W, L> stash = {};
  762|  1.77k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 1.57k, False: 197]
  ------------------
  763|  1.57k|            stash[i] = m_val[i];
  764|  1.57k|         }
  765|    197|         return stash;
  766|    197|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE10from_stashILm9EEESA_RKNSt3__15arrayImXT_EEE:
  774|  1.20k|      static Self from_stash(const std::array<W, L>& stash) {
  775|  1.20k|         static_assert(L >= N);
  776|  1.20k|         std::array<W, N> val = {};
  777|  10.8k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 9.63k, False: 1.20k]
  ------------------
  778|  9.63k|            val[i] = stash[i];
  779|  9.63k|         }
  780|  1.20k|         return Self(val);
  781|  1.20k|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E12ScalarParamsEEEE7is_zeroEv:
  225|    395|      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|    172|      constexpr CT::Choice operator==(const Self& other) const {
  723|    172|         return CT::is_equal(this->data(), other.data(), N).as_choice();
  724|    172|      }
pcurves_brainpool512r1.cpp:_ZN5Botan13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsENS_13MontgomeryRepEE7x3_ax_bERKNS_6IntModINS5_INS6_11FieldParamsEEEEE:
 1275|    172|      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|    198|      static std::optional<Self> deserialize(std::span<const uint8_t> bytes) {
  793|       |         // Conditional ok: input length is public
  794|    198|         if(bytes.size() != Self::BYTES) {
  ------------------
  |  Branch (794:13): [True: 0, False: 198]
  ------------------
  795|      0|            return {};
  796|      0|         }
  797|       |
  798|    198|         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|    198|         if(!bigint_ct_is_lt(words.data(), N, P.data(), N).as_bool()) {
  ------------------
  |  Branch (801:13): [True: 0, False: 198]
  ------------------
  802|      0|            return {};
  803|      0|         }
  804|       |
  805|       |         // Safe because we checked above that words is an integer < P
  806|    198|         return Self::from_words(words);
  807|    198|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E12ScalarParamsEEEE10from_wordsILm8EEESA_NSt3__15arrayImXT_EEE:
  211|    198|      static constexpr Self from_words(std::array<W, L> w) {
  212|    198|         if constexpr(L == N) {
  213|    198|            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|    198|      }
pcurves_brainpool512r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES0_E12ScalarParamsEE6to_repERKNSt3__15arrayImLm8EEE:
  115|    198|      constexpr static std::array<W, N> to_rep(const std::array<W, N>& x) {
  116|    198|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  117|    198|         comba_mul<N>(z.data(), x.data(), R2.data());
  118|    198|         return Self::redc(z);
  119|    198|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEEE12serialize_toENSt3__14spanIhLm129EEE:
  941|    172|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  942|    172|         BOTAN_STATE_CHECK(this->is_identity().as_bool() == false);
  ------------------
  |  |   51|    172|   do {                                                         \
  |  |   52|    172|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|    172|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 172]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|    172|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 172]
  |  |  ------------------
  ------------------
  943|    172|         BufferStuffer pack(bytes);
  944|    172|         pack.append(0x04);
  945|    172|         x().serialize_to(pack.next<FieldElement::BYTES>());
  946|    172|         y().serialize_to(pack.next<FieldElement::BYTES>());
  947|    172|         BOTAN_DEBUG_ASSERT(pack.full());
  ------------------
  |  |  137|    172|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|    172|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 172]
  |  |  ------------------
  ------------------
  948|    172|      }
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|    223|      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|    223|         auto x = pt.x();
 1027|    223|         auto y = pt.y();
 1028|    223|         auto z = FieldElement::one();
 1029|       |
 1030|    223|         FieldElement::conditional_swap(pt.is_identity(), y, z);
 1031|       |
 1032|    223|         return ProjectiveCurvePoint(x, y, z);
 1033|    223|      }
pcurves_secp224r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE1xEv:
  971|   296k|      constexpr const FieldElement& x() const { return m_x; }
pcurves_secp224r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE1yEv:
  976|   288k|      constexpr const FieldElement& y() const { return m_y; }
pcurves_secp224r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE3oneEv:
  200|  8.43k|      static constexpr Self one() { return Self(Rep::one()); }
pcurves_secp224r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEC2ENSt3__15arrayImLm4EEE:
  898|   227k|      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|    223|      static constexpr void conditional_swap(CT::Choice cond, Self& x, Self& y) {
  411|    223|         const W mask = cond.into_bitmask<W>();
  412|       |
  413|  1.11k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (413:28): [True: 892, False: 223]
  ------------------
  414|    892|            auto nx = Botan::choose(mask, y.m_val[i], x.m_val[i]);
  415|    892|            auto ny = Botan::choose(mask, x.m_val[i], y.m_val[i]);
  416|    892|            x.m_val[i] = nx;
  417|    892|            y.m_val[i] = ny;
  418|    892|         }
  419|    223|      }
pcurves_secp224r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE11is_identityEv:
  928|  9.10k|      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|  46.8k|      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|  10.2k|            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|  54.2k|      constexpr const FieldElement& z() const { return m_z; }
pcurves_secp224r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE6squareEv:
  426|  33.4k|      constexpr BOTAN_FORCE_INLINE Self square() const {
  427|  33.4k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  428|  33.4k|         comba_sqr<N>(z.data(), this->data());
  429|  33.4k|         return Self(Rep::redc(z));
  430|  33.4k|      }
pcurves_secp224r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE4dataEv:
  896|   267k|      constexpr const W* data() const { return m_val.data(); }
pcurves_secp224r1.cpp:_ZN5BotanmlERKNS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEESC_:
  346|  85.5k|      friend constexpr BOTAN_FORCE_INLINE Self operator*(const Self& a, const Self& b) {
  347|  85.5k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  348|  85.5k|         comba_mul<N>(z.data(), a.data(), b.data());
  349|  85.5k|         return Self(Rep::redc(z));
  350|  85.5k|      }
pcurves_secp224r1.cpp:_ZN5BotanmiERKNS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEESC_:
  281|  56.0k|      friend constexpr BOTAN_FORCE_INLINE Self operator-(const Self& a, const Self& b) {
  282|  56.0k|         std::array<W, N> r;  // NOLINT(*-member-init)
  283|  56.0k|         W carry = 0;
  284|   280k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (284:28): [True: 224k, False: 56.0k]
  ------------------
  285|   224k|            r[i] = word_sub(a.m_val[i], b.m_val[i], &carry);
  286|   224k|         }
  287|       |
  288|  56.0k|         const auto mask = CT::Mask<W>::expand(carry).value();
  289|       |
  290|  56.0k|         carry = 0;
  291|       |
  292|   280k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (292:28): [True: 224k, False: 56.0k]
  ------------------
  293|   224k|            r[i] = word_add(r[i], P[i] & mask, &carry);
  294|   224k|         }
  295|       |
  296|  56.0k|         return Self(r);
  297|  56.0k|      }
pcurves_secp224r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E1xEv:
 1162|  31.6k|      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|  11.0k|      friend constexpr BOTAN_FORCE_INLINE Self operator+(const Self& a, const Self& b) {
  266|  11.0k|         std::array<W, N> t;  // NOLINT(*-member-init)
  267|       |
  268|  11.0k|         W carry = 0;
  269|  55.1k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (269:28): [True: 44.1k, False: 11.0k]
  ------------------
  270|  44.1k|            t[i] = word_add(a.m_val[i], b.m_val[i], &carry);
  271|  44.1k|         }
  272|       |
  273|  11.0k|         std::array<W, N> r;  // NOLINT(*-member-init)
  274|  11.0k|         bigint_monty_maybe_sub<N>(r.data(), carry, t.data(), P.data());
  275|  11.0k|         return Self(r);
  276|  11.0k|      }
pcurves_secp224r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E1yEv:
 1167|  30.9k|      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.8k|      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|  17.9k|         Self& x, Self& y, Self& z, CT::Choice cond, const Self& nx, const Self& ny, const Self& nz) {
  396|  17.9k|         const W mask = cond.into_bitmask<W>();
  397|       |
  398|  89.7k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (398:28): [True: 71.7k, False: 17.9k]
  ------------------
  399|  71.7k|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  400|  71.7k|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  401|  71.7k|            z.m_val[i] = Botan::choose(mask, nz.m_val[i], z.m_val[i]);
  402|  71.7k|         }
  403|  17.9k|      }
pcurves_secp224r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEmLERKSA_:
  355|  2.66k|      constexpr BOTAN_FORCE_INLINE Self& operator*=(const Self& other) {
  356|  2.66k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  357|  2.66k|         comba_mul<N>(z.data(), data(), other.data());
  358|  2.66k|         m_val = Rep::redc(z);
  359|  2.66k|         return (*this);
  360|  2.66k|      }
pcurves_secp224r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE8square_nEm:
  439|  1.77k|      constexpr void square_n(size_t n) {
  440|  1.77k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  441|  50.1k|         for(size_t i = 0; i != n; ++i) {
  ------------------
  |  Branch (441:28): [True: 48.3k, False: 1.77k]
  ------------------
  442|  48.3k|            comba_sqr<N>(z.data(), this->data());
  443|  48.3k|            m_val = Rep::redc(z);
  444|  48.3k|         }
  445|  1.77k|      }
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|  16.8k|      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|  8.43k|      constexpr Self negate() const {
  453|  8.43k|         const W x_is_zero = ~CT::all_zeros(this->data(), N).value();
  454|       |
  455|  8.43k|         std::array<W, N> r;  // NOLINT(*-member-init)
  456|  8.43k|         W carry = 0;
  457|  42.1k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (457:28): [True: 33.7k, False: 8.43k]
  ------------------
  458|  33.7k|            r[i] = word_sub(P[i] & x_is_zero, m_val[i], &carry);
  459|  33.7k|         }
  460|       |
  461|  8.43k|         return Self(r);
  462|  8.43k|      }
pcurves_secp224r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEEC2ERKSB_SE_:
  917|  10.4k|      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.11k|      std::array<W, L> stash_value() const {
  760|  1.11k|         static_assert(L >= N);
  761|  1.11k|         std::array<W, L> stash = {};
  762|  5.55k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 4.44k, False: 1.11k]
  ------------------
  763|  4.44k|            stash[i] = m_val[i];
  764|  4.44k|         }
  765|  1.11k|         return stash;
  766|  1.11k|      }
pcurves_secp224r1.cpp:_ZNK5Botan23PrecomputedBaseMulTableINS_6PCurve12_GLOBAL__N_19secp224r15CurveELm6EE3mulERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS3_12Secp224r1RepEE12ScalarParamsEEEEERNS_21RandomNumberGeneratorE:
 1407|    222|      ProjectivePoint mul(const Scalar& s, RandomNumberGenerator& rng) const {
 1408|    222|         const BlindedScalar scalar(s, rng);
 1409|    222|         return basemul_booth_exec<C, WindowBits>(m_table, scalar, rng);
 1410|    222|      }
pcurves_secp224r1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp224r15CurveELm7EEC2ERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS3_12Secp224r1RepEE12ScalarParamsEEEEERNS_21RandomNumberGeneratorE:
 1307|    222|      BlindedScalarBits(const typename C::Scalar& scalar, RandomNumberGenerator& rng) {
 1308|    222|         if(BlindingBits > 0 && rng.is_seeded()) {
  ------------------
  |  Branch (1308:13): [True: 222, Folded]
  |  Branch (1308:33): [True: 0, False: 222]
  ------------------
 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|    222|         } else {
 1344|       |            // No RNG available, skip blinding
 1345|    222|            m_bytes.resize(C::Scalar::BYTES);
 1346|    222|            scalar.serialize_to(std::span{m_bytes}.template first<C::Scalar::BYTES>());
 1347|    222|            m_bits = C::Scalar::BITS;
 1348|    222|         }
 1349|       |
 1350|    222|         CT::poison(m_bytes.data(), m_bytes.size());
 1351|    222|      }
pcurves_secp224r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp224r16ParamsENS4_12Secp224r1RepEE12ScalarParamsEE8from_repERKNSt3__15arrayImLm4EEE:
  137|    512|      constexpr static std::array<W, N> from_rep(const std::array<W, N>& z) {
  138|    512|         std::array<W, 2 * N> ze = {};
  139|    512|         copy_mem(std::span{ze}.template first<N>(), z);
  140|    512|         return Self::redc(ze);
  141|    512|      }
pcurves_secp224r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp224r16ParamsENS4_12Secp224r1RepEE12ScalarParamsEE4redcERKNSt3__15arrayImLm8EEE:
  104|    803|      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|    803|         } else {
  108|    803|            return monty_redc(z, P, P_dash);
  109|    803|         }
  110|    803|      }
pcurves_secp224r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp224r16ParamsENS5_12Secp224r1RepEE12ScalarParamsEEEE12serialize_toENSt3__14spanIhLm28EEE:
  739|    512|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|    512|         auto v = Rep::from_rep(m_val);
  741|    512|         std::reverse(v.begin(), v.end());
  742|       |
  743|       |         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|       |            store_be(bytes, v);
  745|    512|         } else {
  746|       |            // Remove leading zero bytes
  747|    512|            const auto padded_bytes = store_be(v);
  748|    512|            constexpr size_t extra = N * WordInfo<W>::bytes - Self::BYTES;
  749|    512|            copy_mem(bytes, std::span{padded_bytes}.template subspan<extra, Self::BYTES>());
  750|    512|         }
  751|    512|      }
pcurves_secp224r1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp224r15CurveELm7EE4bitsEv:
 1305|    222|      size_t bits() const { return m_bits; }
pcurves_secp224r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E18conditional_assignENS_2CT6ChoiceERKSC_:
 1084|    222|      constexpr void conditional_assign(CT::Choice cond, const Self& pt) {
 1085|    222|         FieldElement::conditional_assign(m_x, m_y, m_z, cond, pt.x(), pt.y(), pt.z());
 1086|    222|      }
pcurves_secp224r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E6negateEv:
 1134|    222|      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|    222|      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|    666|      constexpr void _const_time_poison() const { CT::poison(m_val); }
pcurves_secp224r1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp224r15CurveELm7EE10get_windowEm:
 1353|  8.43k|      size_t get_window(size_t offset) const {
 1354|       |         // Extract a WindowBits sized window out of s, depending on offset.
 1355|  8.43k|         return read_window_bits<WindowBits>(std::span{m_bytes}, offset);
 1356|  8.43k|      }
pcurves_secp224r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E10add_or_subERKSC_RKNS_16AffineCurvePointISB_EENS_2CT6ChoiceE:
 1096|  8.21k|      constexpr static Self add_or_sub(const Self& a, const AffinePoint& b, CT::Choice sub) {
 1097|  8.21k|         return point_add_or_sub_mixed<Self, AffinePoint, FieldElement>(a, b, sub, FieldElement::one());
 1098|  8.21k|      }
pcurves_secp224r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE18conditional_assignENS_2CT6ChoiceERKSA_:
  367|  8.21k|      constexpr void conditional_assign(CT::Choice cond, const Self& nx) {
  368|  8.21k|         const W mask = cond.into_bitmask<W>();
  369|       |
  370|  41.0k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (370:28): [True: 32.8k, False: 8.21k]
  ------------------
  371|  32.8k|            m_val[i] = Botan::choose(mask, nx.m_val[i], m_val[i]);
  372|  32.8k|         }
  373|  8.21k|      }
pcurves_secp224r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE9ct_selectENSt3__14spanIKSC_Lm18446744073709551615EEEm:
  955|  8.43k|      static constexpr auto ct_select(std::span<const Self> pts, size_t idx) {
  956|  8.43k|         auto result = Self::identity(pts[0]);
  957|       |
  958|       |         // Intentionally wrapping; set to maximum size_t if idx == 0
  959|  8.43k|         const size_t idx1 = static_cast<size_t>(idx - 1);
  960|   278k|         for(size_t i = 0; i != pts.size(); ++i) {
  ------------------
  |  Branch (960:28): [True: 269k, False: 8.43k]
  ------------------
  961|   269k|            const auto found = CT::Mask<size_t>::is_equal(idx1, i).as_choice();
  962|   269k|            result.conditional_assign(found, pts[i]);
  963|   269k|         }
  964|       |
  965|  8.43k|         return result;
  966|  8.43k|      }
pcurves_secp224r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE8identityERKSC_:
  924|  8.43k|      static constexpr Self identity(const Self& /*unused*/) {
  925|  8.43k|         return Self(FieldElement::zero(), FieldElement::zero());
  926|  8.43k|      }
pcurves_secp224r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE18conditional_assignENS_2CT6ChoiceERKSC_:
  981|   269k|      constexpr void conditional_assign(CT::Choice cond, const Self& pt) {
  982|   269k|         FieldElement::conditional_assign(m_x, m_y, cond, pt.x(), pt.y());
  983|   269k|      }
pcurves_secp224r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE18conditional_assignERSA_SB_NS_2CT6ChoiceERKSA_SF_:
  380|   269k|      static constexpr void conditional_assign(Self& x, Self& y, CT::Choice cond, const Self& nx, const Self& ny) {
  381|   269k|         const W mask = cond.into_bitmask<W>();
  382|       |
  383|  1.34M|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (383:28): [True: 1.07M, False: 269k]
  ------------------
  384|  1.07M|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  385|  1.07M|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  386|  1.07M|         }
  387|   269k|      }
pcurves_secp224r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E13randomize_repERNS_21RandomNumberGeneratorE:
 1142|    888|      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|    888|         if(rng.is_seeded()) {
  ------------------
  |  Branch (1147:13): [True: 0, False: 888]
  ------------------
 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|    888|      }
pcurves_secp224r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE11deserializeENSt3__14spanIKhLm18446744073709551615EEE:
  792|    120|      static std::optional<Self> deserialize(std::span<const uint8_t> bytes) {
  793|       |         // Conditional ok: input length is public
  794|    120|         if(bytes.size() != Self::BYTES) {
  ------------------
  |  Branch (794:13): [True: 0, False: 120]
  ------------------
  795|      0|            return {};
  796|      0|         }
  797|       |
  798|    120|         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|    120|         if(!bigint_ct_is_lt(words.data(), N, P.data(), N).as_bool()) {
  ------------------
  |  Branch (801:13): [True: 5, False: 115]
  ------------------
  802|      5|            return {};
  803|      5|         }
  804|       |
  805|       |         // Safe because we checked above that words is an integer < P
  806|    115|         return Self::from_words(words);
  807|    120|      }
pcurves_secp224r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE10from_wordsILm4EEESA_NSt3__15arrayImXT_EEE:
  211|    115|      static constexpr Self from_words(std::array<W, L> w) {
  212|    115|         if constexpr(L == N) {
  213|    115|            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|    115|      }
pcurves_secp224r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E20_const_time_unpoisonEv:
 1176|    222|      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|    666|      constexpr void _const_time_unpoison() const { CT::unpoison(m_val); }
pcurves_secp224r1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp224r15CurveELm7EED2Ev:
 1358|    222|      ~BlindedScalarBits() {
 1359|    222|         secure_zeroize_buffer(m_bytes.data(), m_bytes.size());
 1360|    222|         CT::unpoison(m_bytes.data(), m_bytes.size());
 1361|    222|      }
pcurves_secp224r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp224r16ParamsENS5_12Secp224r1RepEE12ScalarParamsEEEE10from_stashILm9EEESB_RKNSt3__15arrayImXT_EEE:
  774|    802|      static Self from_stash(const std::array<W, L>& stash) {
  775|    802|         static_assert(L >= N);
  776|    802|         std::array<W, N> val = {};
  777|  4.01k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 3.20k, False: 802]
  ------------------
  778|  3.20k|            val[i] = stash[i];
  779|  3.20k|         }
  780|    802|         return Self(val);
  781|    802|      }
pcurves_secp224r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp224r16ParamsENS5_12Secp224r1RepEE12ScalarParamsEEEEC2ENSt3__15arrayImLm4EEE:
  898|  1.09k|      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|    444|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|    444|         auto v = Rep::from_rep(m_val);
  741|    444|         std::reverse(v.begin(), v.end());
  742|       |
  743|       |         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|       |            store_be(bytes, v);
  745|    444|         } else {
  746|       |            // Remove leading zero bytes
  747|    444|            const auto padded_bytes = store_be(v);
  748|    444|            constexpr size_t extra = N * WordInfo<W>::bytes - Self::BYTES;
  749|    444|            copy_mem(bytes, std::span{padded_bytes}.template subspan<extra, Self::BYTES>());
  750|    444|         }
  751|    444|      }
pcurves_secp224r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp224r16ParamsENS5_12Secp224r1RepEE12ScalarParamsEEEE11stash_valueILm9EEENSt3__15arrayImXT_EEEv:
  759|    290|      std::array<W, L> stash_value() const {
  760|    290|         static_assert(L >= N);
  761|    290|         std::array<W, L> stash = {};
  762|  1.45k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 1.16k, False: 290]
  ------------------
  763|  1.16k|            stash[i] = m_val[i];
  764|  1.16k|         }
  765|    290|         return stash;
  766|    290|      }
pcurves_secp224r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE10from_stashILm9EEESA_RKNSt3__15arrayImXT_EEE:
  774|  1.55k|      static Self from_stash(const std::array<W, L>& stash) {
  775|  1.55k|         static_assert(L >= N);
  776|  1.55k|         std::array<W, N> val = {};
  777|  7.77k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 6.21k, False: 1.55k]
  ------------------
  778|  6.21k|            val[i] = stash[i];
  779|  6.21k|         }
  780|  1.55k|         return Self(val);
  781|  1.55k|      }
pcurves_secp224r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp224r16ParamsENS5_12Secp224r1RepEE12ScalarParamsEEEE7is_zeroEv:
  225|    581|      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|    278|      constexpr CT::Choice operator==(const Self& other) const {
  723|    278|         return CT::is_equal(this->data(), other.data(), N).as_choice();
  724|    278|      }
pcurves_secp224r1.cpp:_ZN5Botan13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp224r16ParamsENS3_12Secp224r1RepEE7x3_ax_bERKNS_6IntModINS5_INS6_11FieldParamsEEEEE:
 1275|    278|      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|    292|      static std::optional<Self> deserialize(std::span<const uint8_t> bytes) {
  793|       |         // Conditional ok: input length is public
  794|    292|         if(bytes.size() != Self::BYTES) {
  ------------------
  |  Branch (794:13): [True: 0, False: 292]
  ------------------
  795|      0|            return {};
  796|      0|         }
  797|       |
  798|    292|         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|    292|         if(!bigint_ct_is_lt(words.data(), N, P.data(), N).as_bool()) {
  ------------------
  |  Branch (801:13): [True: 1, False: 291]
  ------------------
  802|      1|            return {};
  803|      1|         }
  804|       |
  805|       |         // Safe because we checked above that words is an integer < P
  806|    291|         return Self::from_words(words);
  807|    292|      }
pcurves_secp224r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp224r16ParamsENS5_12Secp224r1RepEE12ScalarParamsEEEE10from_wordsILm4EEESB_NSt3__15arrayImXT_EEE:
  211|    291|      static constexpr Self from_words(std::array<W, L> w) {
  212|    291|         if constexpr(L == N) {
  213|    291|            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|    291|      }
pcurves_secp224r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp224r16ParamsENS4_12Secp224r1RepEE12ScalarParamsEE6to_repERKNSt3__15arrayImLm4EEE:
  115|    291|      constexpr static std::array<W, N> to_rep(const std::array<W, N>& x) {
  116|    291|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  117|    291|         comba_mul<N>(z.data(), x.data(), R2.data());
  118|    291|         return Self::redc(z);
  119|    291|      }
pcurves_secp224r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE12serialize_toENSt3__14spanIhLm57EEE:
  941|    222|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  942|    222|         BOTAN_STATE_CHECK(this->is_identity().as_bool() == false);
  ------------------
  |  |   51|    222|   do {                                                         \
  |  |   52|    222|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|    222|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 222]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|    222|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 222]
  |  |  ------------------
  ------------------
  943|    222|         BufferStuffer pack(bytes);
  944|    222|         pack.append(0x04);
  945|    222|         x().serialize_to(pack.next<FieldElement::BYTES>());
  946|    222|         y().serialize_to(pack.next<FieldElement::BYTES>());
  947|    222|         BOTAN_DEBUG_ASSERT(pack.full());
  ------------------
  |  |  137|    222|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|    222|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 222]
  |  |  ------------------
  ------------------
  948|    222|      }
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|    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_secp256k1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE1xEv:
  971|   208k|      constexpr const FieldElement& x() const { return m_x; }
pcurves_secp256k1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE1yEv:
  976|   202k|      constexpr const FieldElement& y() const { return m_y; }
pcurves_secp256k1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE3oneEv:
  200|  5.93k|      static constexpr Self one() { return Self(Rep::one()); }
pcurves_secp256k1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEC2ENSt3__15arrayImLm4EEE:
  898|   174k|      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|    139|      static constexpr void conditional_swap(CT::Choice cond, Self& x, Self& y) {
  411|    139|         const W mask = cond.into_bitmask<W>();
  412|       |
  413|    695|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (413:28): [True: 556, False: 139]
  ------------------
  414|    556|            auto nx = Botan::choose(mask, y.m_val[i], x.m_val[i]);
  415|    556|            auto ny = Botan::choose(mask, x.m_val[i], y.m_val[i]);
  416|    556|            x.m_val[i] = nx;
  417|    556|            y.m_val[i] = ny;
  418|    556|         }
  419|    139|      }
pcurves_secp256k1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE11is_identityEv:
  928|  6.34k|      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|  34.5k|      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|  7.77k|            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|  24.1k|      constexpr const FieldElement& x() const { return m_x; }
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE6squareEv:
  426|  25.9k|      constexpr BOTAN_FORCE_INLINE Self square() const {
  427|  25.9k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  428|  25.9k|         comba_sqr<N>(z.data(), this->data());
  429|  25.9k|         return Self(Rep::redc(z));
  430|  25.9k|      }
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE4dataEv:
  896|   206k|      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|  7.81k|      friend constexpr BOTAN_FORCE_INLINE Self operator+(const Self& a, const Self& b) {
  266|  7.81k|         std::array<W, N> t;  // NOLINT(*-member-init)
  267|       |
  268|  7.81k|         W carry = 0;
  269|  39.0k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (269:28): [True: 31.2k, False: 7.81k]
  ------------------
  270|  31.2k|            t[i] = word_add(a.m_val[i], b.m_val[i], &carry);
  271|  31.2k|         }
  272|       |
  273|  7.81k|         std::array<W, N> r;  // NOLINT(*-member-init)
  274|  7.81k|         bigint_monty_maybe_sub<N>(r.data(), carry, t.data(), P.data());
  275|  7.81k|         return Self(r);
  276|  7.81k|      }
pcurves_secp256k1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E1yEv:
 1167|  24.1k|      constexpr const FieldElement& y() const { return m_y; }
pcurves_secp256k1.cpp:_ZN5BotanmlERKNS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEESC_:
  346|  67.7k|      friend constexpr BOTAN_FORCE_INLINE Self operator*(const Self& a, const Self& b) {
  347|  67.7k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  348|  67.7k|         comba_mul<N>(z.data(), a.data(), b.data());
  349|  67.7k|         return Self(Rep::redc(z));
  350|  67.7k|      }
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|  41.6k|      friend constexpr BOTAN_FORCE_INLINE Self operator-(const Self& a, const Self& b) {
  282|  41.6k|         std::array<W, N> r;  // NOLINT(*-member-init)
  283|  41.6k|         W carry = 0;
  284|   208k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (284:28): [True: 166k, False: 41.6k]
  ------------------
  285|   166k|            r[i] = word_sub(a.m_val[i], b.m_val[i], &carry);
  286|   166k|         }
  287|       |
  288|  41.6k|         const auto mask = CT::Mask<W>::expand(carry).value();
  289|       |
  290|  41.6k|         carry = 0;
  291|       |
  292|   208k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (292:28): [True: 166k, False: 41.6k]
  ------------------
  293|   166k|            r[i] = word_add(r[i], P[i] & mask, &carry);
  294|   166k|         }
  295|       |
  296|  41.6k|         return Self(r);
  297|  41.6k|      }
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|  42.5k|      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|  8.83k|      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|  13.2k|         Self& x, Self& y, Self& z, CT::Choice cond, const Self& nx, const Self& ny, const Self& nz) {
  396|  13.2k|         const W mask = cond.into_bitmask<W>();
  397|       |
  398|  66.0k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (398:28): [True: 52.8k, False: 13.2k]
  ------------------
  399|  52.8k|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  400|  52.8k|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  401|  52.8k|            z.m_val[i] = Botan::choose(mask, nz.m_val[i], z.m_val[i]);
  402|  52.8k|         }
  403|  13.2k|      }
pcurves_secp256k1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEmLERKSA_:
  355|  1.79k|      constexpr BOTAN_FORCE_INLINE Self& operator*=(const Self& other) {
  356|  1.79k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  357|  1.79k|         comba_mul<N>(z.data(), data(), other.data());
  358|  1.79k|         m_val = Rep::redc(z);
  359|  1.79k|         return (*this);
  360|  1.79k|      }
pcurves_secp256k1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE8square_nEm:
  439|  1.79k|      constexpr void square_n(size_t n) {
  440|  1.79k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  441|  36.7k|         for(size_t i = 0; i != n; ++i) {
  ------------------
  |  Branch (441:28): [True: 34.9k, False: 1.79k]
  ------------------
  442|  34.9k|            comba_sqr<N>(z.data(), this->data());
  443|  34.9k|            m_val = Rep::redc(z);
  444|  34.9k|         }
  445|  1.79k|      }
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|  11.8k|      static constexpr Self zero() { return Self(std::array<W, N>{0}); }
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE8to_wordsEv:
  734|      1|      constexpr std::array<W, Self::N> to_words() const { return Rep::from_rep(m_val); }
pcurves_secp256k1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE27_invert_vartime_div2_helperERSA_SB_:
  547|    177|      static constexpr void _invert_vartime_div2_helper(Self& a, Self& x) {
  548|    177|         constexpr auto INV_2 = p_div_2_plus_1(Rep::P);
  549|       |
  550|       |         // Conditional ok: this function is variable time
  551|    541|         while((a.m_val[0] & 1) != 1) {
  ------------------
  |  Branch (551:16): [True: 364, False: 177]
  ------------------
  552|    364|            shift_right<1>(a.m_val);
  553|       |
  554|    364|            const W borrow = shift_right<1>(x.m_val);
  555|       |
  556|       |            // Conditional ok: this function is variable time
  557|    364|            if(borrow) {
  ------------------
  |  Branch (557:16): [True: 186, False: 178]
  ------------------
  558|    186|               bigint_add2(x.m_val.data(), N, INV_2.data(), N);
  559|    186|            }
  560|    364|         }
  561|    177|      }
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE6negateEv:
  452|  5.93k|      constexpr Self negate() const {
  453|  5.93k|         const W x_is_zero = ~CT::all_zeros(this->data(), N).value();
  454|       |
  455|  5.93k|         std::array<W, N> r;  // NOLINT(*-member-init)
  456|  5.93k|         W carry = 0;
  457|  29.6k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (457:28): [True: 23.7k, False: 5.93k]
  ------------------
  458|  23.7k|            r[i] = word_sub(P[i] & x_is_zero, m_val[i], &carry);
  459|  23.7k|         }
  460|       |
  461|  5.93k|         return Self(r);
  462|  5.93k|      }
pcurves_secp256k1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEEC2ERKSB_SE_:
  917|  7.91k|      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|    690|      std::array<W, L> stash_value() const {
  760|    690|         static_assert(L >= N);
  761|    690|         std::array<W, L> stash = {};
  762|  3.45k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 2.76k, False: 690]
  ------------------
  763|  2.76k|            stash[i] = m_val[i];
  764|  2.76k|         }
  765|    690|         return stash;
  766|    690|      }
pcurves_secp256k1.cpp:_ZNK5Botan23PrecomputedBaseMulTableINS_6PCurve12_GLOBAL__N_19secp256k15CurveELm6EE3mulERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS3_12Secp256k1RepEE12ScalarParamsEEEEERNS_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_secp256k1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp256k15CurveELm7EEC2ERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS3_12Secp256k1RepEE12ScalarParamsEEEEERNS_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_secp256k1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS4_12Secp256k1RepEE12ScalarParamsEE8from_repERKNSt3__15arrayImLm4EEE:
  137|    299|      constexpr static std::array<W, N> from_rep(const std::array<W, N>& z) {
  138|    299|         std::array<W, 2 * N> ze = {};
  139|    299|         copy_mem(std::span{ze}.template first<N>(), z);
  140|    299|         return Self::redc(ze);
  141|    299|      }
pcurves_secp256k1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS4_12Secp256k1RepEE12ScalarParamsEE4redcERKNSt3__15arrayImLm8EEE:
  104|    462|      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|    462|         } else {
  108|    462|            return monty_redc(z, P, P_dash);
  109|    462|         }
  110|    462|      }
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS5_12Secp256k1RepEE12ScalarParamsEEEE12serialize_toENSt3__14spanIhLm32EEE:
  739|    299|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|    299|         auto v = Rep::from_rep(m_val);
  741|    299|         std::reverse(v.begin(), v.end());
  742|       |
  743|    299|         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|    299|            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|    299|      }
pcurves_secp256k1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp256k15CurveELm7EE4bitsEv:
 1305|    138|      size_t bits() const { return m_bits; }
pcurves_secp256k1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_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_secp256k1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E6negateEv:
 1134|    138|      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|    138|      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|    414|      constexpr void _const_time_poison() const { CT::poison(m_val); }
pcurves_secp256k1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp256k15CurveELm7EE10get_windowEm:
 1353|  5.93k|      size_t get_window(size_t offset) const {
 1354|       |         // Extract a WindowBits sized window out of s, depending on offset.
 1355|  5.93k|         return read_window_bits<WindowBits>(std::span{m_bytes}, offset);
 1356|  5.93k|      }
pcurves_secp256k1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E10add_or_subERKSC_RKNS_16AffineCurvePointISB_EENS_2CT6ChoiceE:
 1096|  5.79k|      constexpr static Self add_or_sub(const Self& a, const AffinePoint& b, CT::Choice sub) {
 1097|  5.79k|         return point_add_or_sub_mixed<Self, AffinePoint, FieldElement>(a, b, sub, FieldElement::one());
 1098|  5.79k|      }
pcurves_secp256k1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE18conditional_assignENS_2CT6ChoiceERKSA_:
  367|  5.79k|      constexpr void conditional_assign(CT::Choice cond, const Self& nx) {
  368|  5.79k|         const W mask = cond.into_bitmask<W>();
  369|       |
  370|  28.9k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (370:28): [True: 23.1k, False: 5.79k]
  ------------------
  371|  23.1k|            m_val[i] = Botan::choose(mask, nx.m_val[i], m_val[i]);
  372|  23.1k|         }
  373|  5.79k|      }
pcurves_secp256k1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE9ct_selectENSt3__14spanIKSC_Lm18446744073709551615EEEm:
  955|  5.93k|      static constexpr auto ct_select(std::span<const Self> pts, size_t idx) {
  956|  5.93k|         auto result = Self::identity(pts[0]);
  957|       |
  958|       |         // Intentionally wrapping; set to maximum size_t if idx == 0
  959|  5.93k|         const size_t idx1 = static_cast<size_t>(idx - 1);
  960|   195k|         for(size_t i = 0; i != pts.size(); ++i) {
  ------------------
  |  Branch (960:28): [True: 189k, False: 5.93k]
  ------------------
  961|   189k|            const auto found = CT::Mask<size_t>::is_equal(idx1, i).as_choice();
  962|   189k|            result.conditional_assign(found, pts[i]);
  963|   189k|         }
  964|       |
  965|  5.93k|         return result;
  966|  5.93k|      }
pcurves_secp256k1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE8identityERKSC_:
  924|  5.93k|      static constexpr Self identity(const Self& /*unused*/) {
  925|  5.93k|         return Self(FieldElement::zero(), FieldElement::zero());
  926|  5.93k|      }
pcurves_secp256k1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE18conditional_assignENS_2CT6ChoiceERKSC_:
  981|   189k|      constexpr void conditional_assign(CT::Choice cond, const Self& pt) {
  982|   189k|         FieldElement::conditional_assign(m_x, m_y, cond, pt.x(), pt.y());
  983|   189k|      }
pcurves_secp256k1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE18conditional_assignERSA_SB_NS_2CT6ChoiceERKSA_SF_:
  380|   189k|      static constexpr void conditional_assign(Self& x, Self& y, CT::Choice cond, const Self& nx, const Self& ny) {
  381|   189k|         const W mask = cond.into_bitmask<W>();
  382|       |
  383|   949k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (383:28): [True: 759k, False: 189k]
  ------------------
  384|   759k|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  385|   759k|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  386|   759k|         }
  387|   189k|      }
pcurves_secp256k1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_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_secp256k1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E20_const_time_unpoisonEv:
 1176|    138|      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|    414|      constexpr void _const_time_unpoison() const { CT::unpoison(m_val); }
pcurves_secp256k1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp256k15CurveELm7EED2Ev:
 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_secp256k1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS5_12Secp256k1RepEE12ScalarParamsEEEE10from_stashILm9EEESB_RKNSt3__15arrayImXT_EEE:
  774|    460|      static Self from_stash(const std::array<W, L>& stash) {
  775|    460|         static_assert(L >= N);
  776|    460|         std::array<W, N> val = {};
  777|  2.30k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 1.84k, False: 460]
  ------------------
  778|  1.84k|            val[i] = stash[i];
  779|  1.84k|         }
  780|    460|         return Self(val);
  781|    460|      }
pcurves_secp256k1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS5_12Secp256k1RepEE12ScalarParamsEEEEC2ENSt3__15arrayImLm4EEE:
  898|    623|      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|    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_secp256k1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS5_12Secp256k1RepEE12ScalarParamsEEEE11stash_valueILm9EEENSt3__15arrayImXT_EEEv:
  759|    161|      std::array<W, L> stash_value() const {
  760|    161|         static_assert(L >= N);
  761|    161|         std::array<W, L> stash = {};
  762|    805|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 644, False: 161]
  ------------------
  763|    644|            stash[i] = m_val[i];
  764|    644|         }
  765|    161|         return stash;
  766|    161|      }
pcurves_secp256k1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_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|  4.83k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 3.86k, False: 966]
  ------------------
  778|  3.86k|            val[i] = stash[i];
  779|  3.86k|         }
  780|    966|         return Self(val);
  781|    966|      }
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS5_12Secp256k1RepEE12ScalarParamsEEEE7is_zeroEv:
  225|    324|      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|    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_secp256k1.cpp:_ZN5Botan13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS3_12Secp256k1RepEE7x3_ax_bERKNS_6IntModINS5_INS6_11FieldParamsEEEEE:
 1275|    138|      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|    163|      static std::optional<Self> deserialize(std::span<const uint8_t> bytes) {
  793|       |         // Conditional ok: input length is public
  794|    163|         if(bytes.size() != Self::BYTES) {
  ------------------
  |  Branch (794:13): [True: 0, False: 163]
  ------------------
  795|      0|            return {};
  796|      0|         }
  797|       |
  798|    163|         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|    163|         if(!bigint_ct_is_lt(words.data(), N, P.data(), N).as_bool()) {
  ------------------
  |  Branch (801:13): [True: 0, False: 163]
  ------------------
  802|      0|            return {};
  803|      0|         }
  804|       |
  805|       |         // Safe because we checked above that words is an integer < P
  806|    163|         return Self::from_words(words);
  807|    163|      }
pcurves_secp256k1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS5_12Secp256k1RepEE12ScalarParamsEEEE10from_wordsILm4EEESB_NSt3__15arrayImXT_EEE:
  211|    163|      static constexpr Self from_words(std::array<W, L> w) {
  212|    163|         if constexpr(L == N) {
  213|    163|            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|    163|      }
pcurves_secp256k1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS4_12Secp256k1RepEE12ScalarParamsEE6to_repERKNSt3__15arrayImLm4EEE:
  115|    163|      constexpr static std::array<W, N> to_rep(const std::array<W, N>& x) {
  116|    163|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  117|    163|         comba_mul<N>(z.data(), x.data(), R2.data());
  118|    163|         return Self::redc(z);
  119|    163|      }
pcurves_secp256k1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE12serialize_toENSt3__14spanIhLm65EEE:
  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());
  ------------------
  |  |  137|    138|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|    138|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 138]
  |  |  ------------------
  ------------------
  948|    138|      }
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|     85|      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|     85|         auto x = pt.x();
 1027|     85|         auto y = pt.y();
 1028|     85|         auto z = FieldElement::one();
 1029|       |
 1030|     85|         FieldElement::conditional_swap(pt.is_identity(), y, z);
 1031|       |
 1032|     85|         return ProjectiveCurvePoint(x, y, z);
 1033|     85|      }
pcurves_secp256r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEEE1xEv:
  971|   126k|      constexpr const FieldElement& x() const { return m_x; }
pcurves_secp256r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEEE1yEv:
  976|   123k|      constexpr const FieldElement& y() const { return m_y; }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE3oneEv:
  200|  3.61k|      static constexpr Self one() { return Self(Rep::one()); }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEEC2ENSt3__15arrayImLm4EEE:
  898|   125k|      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|     85|      static constexpr void conditional_swap(CT::Choice cond, Self& x, Self& y) {
  411|     85|         const W mask = cond.into_bitmask<W>();
  412|       |
  413|    425|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (413:28): [True: 340, False: 85]
  ------------------
  414|    340|            auto nx = Botan::choose(mask, y.m_val[i], x.m_val[i]);
  415|    340|            auto ny = Botan::choose(mask, x.m_val[i], y.m_val[i]);
  416|    340|            x.m_val[i] = nx;
  417|    340|            y.m_val[i] = ny;
  418|    340|         }
  419|     85|      }
pcurves_secp256r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEEE11is_identityEv:
  928|  3.86k|      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|  22.8k|      constexpr CT::Choice is_zero() const { return CT::all_zeros(m_val.data(), m_val.size()).as_choice(); }
pcurves_secp256r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEES7_EC2ERKSB_SE_SE_:
 1056|  5.34k|            m_x(x), m_y(y), m_z(z) {}
pcurves_secp256r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEES7_E3dblEv:
 1121|    833|      constexpr Self dbl() const {
 1122|    833|         if constexpr(Self::A_is_minus_3) {
 1123|    833|            return dbl_a_minus_3(*this);
 1124|       |         } else if constexpr(Self::A_is_zero) {
 1125|       |            return dbl_a_zero(*this);
 1126|       |         } else {
 1127|       |            return dbl_generic(*this, A);
 1128|       |         }
 1129|    833|      }
pcurves_secp256r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEES7_E1zEv:
 1172|  31.7k|      constexpr const FieldElement& z() const { return m_z; }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE6squareEv:
  426|  18.9k|      constexpr BOTAN_FORCE_INLINE Self square() const {
  427|  18.9k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  428|  18.9k|         comba_sqr<N>(z.data(), this->data());
  429|  18.9k|         return Self(Rep::redc(z));
  430|  18.9k|      }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE4dataEv:
  896|   146k|      constexpr const W* data() const { return m_val.data(); }
pcurves_secp256r1.cpp:_ZN5BotanmlERKNS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEEESC_:
  346|  50.1k|      friend constexpr BOTAN_FORCE_INLINE Self operator*(const Self& a, const Self& b) {
  347|  50.1k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  348|  50.1k|         comba_mul<N>(z.data(), a.data(), b.data());
  349|  50.1k|         return Self(Rep::redc(z));
  350|  50.1k|      }
pcurves_secp256r1.cpp:_ZN5BotanmiERKNS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEEESC_:
  281|  28.9k|      friend constexpr BOTAN_FORCE_INLINE Self operator-(const Self& a, const Self& b) {
  282|  28.9k|         std::array<W, N> r;  // NOLINT(*-member-init)
  283|  28.9k|         W carry = 0;
  284|   144k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (284:28): [True: 115k, False: 28.9k]
  ------------------
  285|   115k|            r[i] = word_sub(a.m_val[i], b.m_val[i], &carry);
  286|   115k|         }
  287|       |
  288|  28.9k|         const auto mask = CT::Mask<W>::expand(carry).value();
  289|       |
  290|  28.9k|         carry = 0;
  291|       |
  292|   144k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (292:28): [True: 115k, False: 28.9k]
  ------------------
  293|   115k|            r[i] = word_add(r[i], P[i] & mask, &carry);
  294|   115k|         }
  295|       |
  296|  28.9k|         return Self(r);
  297|  28.9k|      }
pcurves_secp256r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEES7_E1xEv:
 1162|  17.9k|      constexpr const FieldElement& x() const { return m_x; }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE4mul3Ev:
  335|    833|      constexpr inline Self mul3() const { return mul2() + (*this); }
pcurves_secp256r1.cpp:_ZN5BotanplERKNS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEEESC_:
  265|  6.27k|      friend constexpr BOTAN_FORCE_INLINE Self operator+(const Self& a, const Self& b) {
  266|  6.27k|         std::array<W, N> t;  // NOLINT(*-member-init)
  267|       |
  268|  6.27k|         W carry = 0;
  269|  31.3k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (269:28): [True: 25.0k, False: 6.27k]
  ------------------
  270|  25.0k|            t[i] = word_add(a.m_val[i], b.m_val[i], &carry);
  271|  25.0k|         }
  272|       |
  273|  6.27k|         std::array<W, N> r;  // NOLINT(*-member-init)
  274|  6.27k|         bigint_monty_maybe_sub<N>(r.data(), carry, t.data(), P.data());
  275|  6.27k|         return Self(r);
  276|  6.27k|      }
pcurves_secp256r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEES7_E1yEv:
 1167|  17.0k|      constexpr const FieldElement& y() const { return m_y; }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE4mul4Ev:
  338|    833|      constexpr inline Self mul4() const { return mul2().mul2(); }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE4mul2Ev:
  325|  6.66k|      constexpr BOTAN_FORCE_INLINE Self mul2() const {
  326|  6.66k|         std::array<W, N> t = value();
  327|  6.66k|         const W carry = shift_left<1>(t);
  328|       |
  329|  6.66k|         std::array<W, N> r;  // NOLINT(*-member-init)
  330|  6.66k|         bigint_monty_maybe_sub<N>(r.data(), carry, t.data(), P.data());
  331|  6.66k|         return Self(r);
  332|  6.66k|      }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE5valueEv:
  894|  6.66k|      constexpr const std::array<W, N>& value() const { return m_val; }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE4mul8Ev:
  341|    833|      constexpr inline Self mul8() const { return mul2().mul2().mul2(); }
pcurves_secp256r1.cpp:_ZN5BotanplERKNS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEES7_EESE_:
 1064|    735|      friend constexpr Self operator+(const Self& a, const Self& b) { return Self::add(a, b); }
pcurves_secp256r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEES7_E3addERKSC_SE_:
 1103|    735|      constexpr static Self add(const Self& a, const Self& b) { return point_add<Self, FieldElement>(a, b); }
pcurves_secp256r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEES7_E11is_identityEv:
 1082|  6.56k|      constexpr CT::Choice is_identity() const { return z().is_zero(); }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE18conditional_assignERSA_SB_SB_NS_2CT6ChoiceERKSA_SF_SF_:
  395|  8.61k|         Self& x, Self& y, Self& z, CT::Choice cond, const Self& nx, const Self& ny, const Self& nz) {
  396|  8.61k|         const W mask = cond.into_bitmask<W>();
  397|       |
  398|  43.0k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (398:28): [True: 34.4k, False: 8.61k]
  ------------------
  399|  34.4k|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  400|  34.4k|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  401|  34.4k|            z.m_val[i] = Botan::choose(mask, nz.m_val[i], z.m_val[i]);
  402|  34.4k|         }
  403|  8.61k|      }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEEmLERKSA_:
  355|    924|      constexpr BOTAN_FORCE_INLINE Self& operator*=(const Self& other) {
  356|    924|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  357|    924|         comba_mul<N>(z.data(), data(), other.data());
  358|    924|         m_val = Rep::redc(z);
  359|    924|         return (*this);
  360|    924|      }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE8square_nEm:
  439|    756|      constexpr void square_n(size_t n) {
  440|    756|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  441|  21.9k|         for(size_t i = 0; i != n; ++i) {
  ------------------
  |  Branch (441:28): [True: 21.1k, False: 756]
  ------------------
  442|  21.1k|            comba_sqr<N>(z.data(), this->data());
  443|  21.1k|            m_val = Rep::redc(z);
  444|  21.1k|         }
  445|    756|      }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE14invert_vartimeEv:
  598|      1|      constexpr Self invert_vartime() const {
  599|       |         // Conditional ok: this function is variable time
  600|      1|         if(this->is_zero().as_bool()) {
  ------------------
  |  Branch (600:13): [True: 0, False: 1]
  ------------------
  601|      0|            return Self::zero();
  602|      0|         }
  603|       |
  604|      1|         auto x = Self(std::array<W, N>{1});  // 1 in standard domain
  605|      1|         auto b = Self(this->to_words());     // *this in standard domain
  606|       |
  607|       |         // First loop iteration
  608|      1|         Self::_invert_vartime_div2_helper(b, x);
  609|       |
  610|      1|         auto a = b.negate();
  611|       |         // y += x but y is zero at the outset
  612|      1|         auto y = x;
  613|       |
  614|       |         // First half of second loop iteration
  615|      1|         Self::_invert_vartime_div2_helper(a, y);
  616|       |
  617|    176|         for(;;) {
  618|       |            // Conditional ok: this function is variable time
  619|    176|            if(a.m_val == b.m_val) {
  ------------------
  |  Branch (619:16): [True: 1, False: 175]
  ------------------
  620|       |               // At this point it should be that a == b == 1
  621|      1|               auto r = y.negate();
  622|       |
  623|       |               // Convert back to Montgomery if required
  624|      1|               r.m_val = Rep::to_rep(r.m_val);
  625|      1|               return r;
  626|      1|            }
  627|       |
  628|    175|            auto nx = x + y;
  629|       |
  630|       |            /*
  631|       |            * Otherwise either b > a or a > b
  632|       |            *
  633|       |            * If b > a we want to set b to b - a
  634|       |            * Otherwise we want to set a to a - b
  635|       |            *
  636|       |            * Compute r = b - a and check if it underflowed
  637|       |            * If it did not then we are in the b > a path
  638|       |            */
  639|    175|            std::array<W, N> r;  // NOLINT(*-member-init)
  640|    175|            const word carry = bigint_sub3(r.data(), b.data(), N, a.data(), N);
  641|       |
  642|       |            // Conditional ok: this function is variable time
  643|    175|            if(carry == 0) {
  ------------------
  |  Branch (643:16): [True: 85, False: 90]
  ------------------
  644|       |               // b > a
  645|     85|               b.m_val = r;
  646|     85|               x = nx;
  647|     85|               Self::_invert_vartime_div2_helper(b, x);
  648|     90|            } else {
  649|       |               // We know this can't underflow because a > b
  650|     90|               bigint_sub3(r.data(), a.data(), N, b.data(), N);
  651|     90|               a.m_val = r;
  652|     90|               y = nx;
  653|     90|               Self::_invert_vartime_div2_helper(a, y);
  654|     90|            }
  655|    175|         }
  656|      1|      }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE4zeroEv:
  195|  7.22k|      static constexpr Self zero() { return Self(std::array<W, N>{0}); }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE8to_wordsEv:
  734|      1|      constexpr std::array<W, Self::N> to_words() const { return Rep::from_rep(m_val); }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE27_invert_vartime_div2_helperERSA_SB_:
  547|    177|      static constexpr void _invert_vartime_div2_helper(Self& a, Self& x) {
  548|    177|         constexpr auto INV_2 = p_div_2_plus_1(Rep::P);
  549|       |
  550|       |         // Conditional ok: this function is variable time
  551|    545|         while((a.m_val[0] & 1) != 1) {
  ------------------
  |  Branch (551:16): [True: 368, False: 177]
  ------------------
  552|    368|            shift_right<1>(a.m_val);
  553|       |
  554|    368|            const W borrow = shift_right<1>(x.m_val);
  555|       |
  556|       |            // Conditional ok: this function is variable time
  557|    368|            if(borrow) {
  ------------------
  |  Branch (557:16): [True: 129, False: 239]
  ------------------
  558|    129|               bigint_add2(x.m_val.data(), N, INV_2.data(), N);
  559|    129|            }
  560|    368|         }
  561|    177|      }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE6negateEv:
  452|  3.61k|      constexpr Self negate() const {
  453|  3.61k|         const W x_is_zero = ~CT::all_zeros(this->data(), N).value();
  454|       |
  455|  3.61k|         std::array<W, N> r;  // NOLINT(*-member-init)
  456|  3.61k|         W carry = 0;
  457|  18.0k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (457:28): [True: 14.4k, False: 3.61k]
  ------------------
  458|  14.4k|            r[i] = word_sub(P[i] & x_is_zero, m_val[i], &carry);
  459|  14.4k|         }
  460|       |
  461|  3.61k|         return Self(r);
  462|  3.61k|      }
pcurves_secp256r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEEEC2ERKSB_SE_:
  917|  5.43k|      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|    420|      std::array<W, L> stash_value() const {
  760|    420|         static_assert(L >= N);
  761|    420|         std::array<W, L> stash = {};
  762|  2.10k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 1.68k, False: 420]
  ------------------
  763|  1.68k|            stash[i] = m_val[i];
  764|  1.68k|         }
  765|    420|         return stash;
  766|    420|      }
pcurves_secp256r1.cpp:_ZNK5Botan23PrecomputedBaseMulTableINS_6PCurve12_GLOBAL__N_19secp256r15CurveELm6EE3mulERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS2_12Secp256r1RepEE12ScalarParamsEEEEERNS_21RandomNumberGeneratorE:
 1407|     84|      ProjectivePoint mul(const Scalar& s, RandomNumberGenerator& rng) const {
 1408|     84|         const BlindedScalar scalar(s, rng);
 1409|     84|         return basemul_booth_exec<C, WindowBits>(m_table, scalar, rng);
 1410|     84|      }
pcurves_secp256r1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp256r15CurveELm7EEC2ERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS2_12Secp256r1RepEE12ScalarParamsEEEEERNS_21RandomNumberGeneratorE:
 1307|     84|      BlindedScalarBits(const typename C::Scalar& scalar, RandomNumberGenerator& rng) {
 1308|     84|         if(BlindingBits > 0 && rng.is_seeded()) {
  ------------------
  |  Branch (1308:13): [True: 84, Folded]
  |  Branch (1308:33): [True: 0, False: 84]
  ------------------
 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|     84|         } else {
 1344|       |            // No RNG available, skip blinding
 1345|     84|            m_bytes.resize(C::Scalar::BYTES);
 1346|     84|            scalar.serialize_to(std::span{m_bytes}.template first<C::Scalar::BYTES>());
 1347|     84|            m_bits = C::Scalar::BITS;
 1348|     84|         }
 1349|       |
 1350|     84|         CT::poison(m_bytes.data(), m_bytes.size());
 1351|     84|      }
pcurves_secp256r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS3_12Secp256r1RepEE12ScalarParamsEE8from_repERKNSt3__15arrayImLm4EEE:
  137|    168|      constexpr static std::array<W, N> from_rep(const std::array<W, N>& z) {
  138|    168|         std::array<W, 2 * N> ze = {};
  139|    168|         copy_mem(std::span{ze}.template first<N>(), z);
  140|    168|         return Self::redc(ze);
  141|    168|      }
pcurves_secp256r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS3_12Secp256r1RepEE12ScalarParamsEE4redcERKNSt3__15arrayImLm8EEE:
  104|    253|      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|    253|         } else {
  108|    253|            return monty_redc(z, P, P_dash);
  109|    253|         }
  110|    253|      }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS4_12Secp256r1RepEE12ScalarParamsEEEE12serialize_toENSt3__14spanIhLm32EEE:
  739|    168|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|    168|         auto v = Rep::from_rep(m_val);
  741|    168|         std::reverse(v.begin(), v.end());
  742|       |
  743|    168|         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|    168|            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|    168|      }
pcurves_secp256r1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp256r15CurveELm7EE4bitsEv:
 1305|     84|      size_t bits() const { return m_bits; }
pcurves_secp256r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEES7_E18conditional_assignENS_2CT6ChoiceERKSC_:
 1084|     84|      constexpr void conditional_assign(CT::Choice cond, const Self& pt) {
 1085|     84|         FieldElement::conditional_assign(m_x, m_y, m_z, cond, pt.x(), pt.y(), pt.z());
 1086|     84|      }
pcurves_secp256r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEES7_E6negateEv:
 1134|     84|      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|     84|      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|    252|      constexpr void _const_time_poison() const { CT::poison(m_val); }
pcurves_secp256r1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp256r15CurveELm7EE10get_windowEm:
 1353|  3.61k|      size_t get_window(size_t offset) const {
 1354|       |         // Extract a WindowBits sized window out of s, depending on offset.
 1355|  3.61k|         return read_window_bits<WindowBits>(std::span{m_bytes}, offset);
 1356|  3.61k|      }
pcurves_secp256r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEES7_E10add_or_subERKSC_RKNS_16AffineCurvePointISB_EENS_2CT6ChoiceE:
 1096|  3.52k|      constexpr static Self add_or_sub(const Self& a, const AffinePoint& b, CT::Choice sub) {
 1097|  3.52k|         return point_add_or_sub_mixed<Self, AffinePoint, FieldElement>(a, b, sub, FieldElement::one());
 1098|  3.52k|      }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE18conditional_assignENS_2CT6ChoiceERKSA_:
  367|  3.52k|      constexpr void conditional_assign(CT::Choice cond, const Self& nx) {
  368|  3.52k|         const W mask = cond.into_bitmask<W>();
  369|       |
  370|  17.6k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (370:28): [True: 14.1k, False: 3.52k]
  ------------------
  371|  14.1k|            m_val[i] = Botan::choose(mask, nx.m_val[i], m_val[i]);
  372|  14.1k|         }
  373|  3.52k|      }
pcurves_secp256r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEEE9ct_selectENSt3__14spanIKSC_Lm18446744073709551615EEEm:
  955|  3.61k|      static constexpr auto ct_select(std::span<const Self> pts, size_t idx) {
  956|  3.61k|         auto result = Self::identity(pts[0]);
  957|       |
  958|       |         // Intentionally wrapping; set to maximum size_t if idx == 0
  959|  3.61k|         const size_t idx1 = static_cast<size_t>(idx - 1);
  960|   119k|         for(size_t i = 0; i != pts.size(); ++i) {
  ------------------
  |  Branch (960:28): [True: 115k, False: 3.61k]
  ------------------
  961|   115k|            const auto found = CT::Mask<size_t>::is_equal(idx1, i).as_choice();
  962|   115k|            result.conditional_assign(found, pts[i]);
  963|   115k|         }
  964|       |
  965|  3.61k|         return result;
  966|  3.61k|      }
pcurves_secp256r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEEE8identityERKSC_:
  924|  3.61k|      static constexpr Self identity(const Self& /*unused*/) {
  925|  3.61k|         return Self(FieldElement::zero(), FieldElement::zero());
  926|  3.61k|      }
pcurves_secp256r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEEE18conditional_assignENS_2CT6ChoiceERKSC_:
  981|   115k|      constexpr void conditional_assign(CT::Choice cond, const Self& pt) {
  982|   115k|         FieldElement::conditional_assign(m_x, m_y, cond, pt.x(), pt.y());
  983|   115k|      }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE18conditional_assignERSA_SB_NS_2CT6ChoiceERKSA_SF_:
  380|   115k|      static constexpr void conditional_assign(Self& x, Self& y, CT::Choice cond, const Self& nx, const Self& ny) {
  381|   115k|         const W mask = cond.into_bitmask<W>();
  382|       |
  383|   577k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (383:28): [True: 462k, False: 115k]
  ------------------
  384|   462k|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  385|   462k|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  386|   462k|         }
  387|   115k|      }
pcurves_secp256r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEES7_E13randomize_repERNS_21RandomNumberGeneratorE:
 1142|    336|      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|    336|         if(rng.is_seeded()) {
  ------------------
  |  Branch (1147:13): [True: 0, False: 336]
  ------------------
 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|    336|      }
pcurves_secp256r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEES7_E20_const_time_unpoisonEv:
 1176|     84|      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|    252|      constexpr void _const_time_unpoison() const { CT::unpoison(m_val); }
pcurves_secp256r1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp256r15CurveELm7EED2Ev:
 1358|     84|      ~BlindedScalarBits() {
 1359|     84|         secure_zeroize_buffer(m_bytes.data(), m_bytes.size());
 1360|     84|         CT::unpoison(m_bytes.data(), m_bytes.size());
 1361|     84|      }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS4_12Secp256r1RepEE12ScalarParamsEEEE10from_stashILm9EEESB_RKNSt3__15arrayImXT_EEE:
  774|    252|      static Self from_stash(const std::array<W, L>& stash) {
  775|    252|         static_assert(L >= N);
  776|    252|         std::array<W, N> val = {};
  777|  1.26k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 1.00k, False: 252]
  ------------------
  778|  1.00k|            val[i] = stash[i];
  779|  1.00k|         }
  780|    252|         return Self(val);
  781|    252|      }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS4_12Secp256r1RepEE12ScalarParamsEEEEC2ENSt3__15arrayImLm4EEE:
  898|    337|      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|    168|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|    168|         auto v = Rep::from_rep(m_val);
  741|    168|         std::reverse(v.begin(), v.end());
  742|       |
  743|    168|         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|    168|            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|    168|      }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS4_12Secp256r1RepEE12ScalarParamsEEEE11stash_valueILm9EEENSt3__15arrayImXT_EEEv:
  759|     84|      std::array<W, L> stash_value() const {
  760|     84|         static_assert(L >= N);
  761|     84|         std::array<W, L> stash = {};
  762|    420|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 336, False: 84]
  ------------------
  763|    336|            stash[i] = m_val[i];
  764|    336|         }
  765|     84|         return stash;
  766|     84|      }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE10from_stashILm9EEESA_RKNSt3__15arrayImXT_EEE:
  774|    588|      static Self from_stash(const std::array<W, L>& stash) {
  775|    588|         static_assert(L >= N);
  776|    588|         std::array<W, N> val = {};
  777|  2.94k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 2.35k, False: 588]
  ------------------
  778|  2.35k|            val[i] = stash[i];
  779|  2.35k|         }
  780|    588|         return Self(val);
  781|    588|      }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS4_12Secp256r1RepEE12ScalarParamsEEEE7is_zeroEv:
  225|    169|      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|     84|      constexpr CT::Choice operator==(const Self& other) const {
  723|     84|         return CT::is_equal(this->data(), other.data(), N).as_choice();
  724|     84|      }
pcurves_secp256r1.cpp:_ZN5Botan13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS2_12Secp256r1RepEE7x3_ax_bERKNS_6IntModINS5_INS6_11FieldParamsEEEEE:
 1275|     84|      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|     85|      static std::optional<Self> deserialize(std::span<const uint8_t> bytes) {
  793|       |         // Conditional ok: input length is public
  794|     85|         if(bytes.size() != Self::BYTES) {
  ------------------
  |  Branch (794:13): [True: 0, False: 85]
  ------------------
  795|      0|            return {};
  796|      0|         }
  797|       |
  798|     85|         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|     85|         if(!bigint_ct_is_lt(words.data(), N, P.data(), N).as_bool()) {
  ------------------
  |  Branch (801:13): [True: 0, False: 85]
  ------------------
  802|      0|            return {};
  803|      0|         }
  804|       |
  805|       |         // Safe because we checked above that words is an integer < P
  806|     85|         return Self::from_words(words);
  807|     85|      }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS4_12Secp256r1RepEE12ScalarParamsEEEE10from_wordsILm4EEESB_NSt3__15arrayImXT_EEE:
  211|     85|      static constexpr Self from_words(std::array<W, L> w) {
  212|     85|         if constexpr(L == N) {
  213|     85|            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|     85|      }
pcurves_secp256r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS3_12Secp256r1RepEE12ScalarParamsEE6to_repERKNSt3__15arrayImLm4EEE:
  115|     85|      constexpr static std::array<W, N> to_rep(const std::array<W, N>& x) {
  116|     85|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  117|     85|         comba_mul<N>(z.data(), x.data(), R2.data());
  118|     85|         return Self::redc(z);
  119|     85|      }
pcurves_secp256r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEEE12serialize_toENSt3__14spanIhLm65EEE:
  941|     84|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  942|     84|         BOTAN_STATE_CHECK(this->is_identity().as_bool() == false);
  ------------------
  |  |   51|     84|   do {                                                         \
  |  |   52|     84|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|     84|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 84]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|     84|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 84]
  |  |  ------------------
  ------------------
  943|     84|         BufferStuffer pack(bytes);
  944|     84|         pack.append(0x04);
  945|     84|         x().serialize_to(pack.next<FieldElement::BYTES>());
  946|     84|         y().serialize_to(pack.next<FieldElement::BYTES>());
  947|     84|         BOTAN_DEBUG_ASSERT(pack.full());
  ------------------
  |  |  137|     84|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|     84|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 84]
  |  |  ------------------
  ------------------
  948|     84|      }
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|    151|      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|    151|         auto x = pt.x();
 1027|    151|         auto y = pt.y();
 1028|    151|         auto z = FieldElement::one();
 1029|       |
 1030|    151|         FieldElement::conditional_swap(pt.is_identity(), y, z);
 1031|       |
 1032|    151|         return ProjectiveCurvePoint(x, y, z);
 1033|    151|      }
pcurves_secp384r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEEE1xEv:
  971|   342k|      constexpr const FieldElement& x() const { return m_x; }
pcurves_secp384r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEEE1yEv:
  976|   332k|      constexpr const FieldElement& y() const { return m_y; }
pcurves_secp384r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEE3oneEv:
  200|  9.75k|      static constexpr Self one() { return Self(Rep::one()); }
pcurves_secp384r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEEC2ENSt3__15arrayImLm6EEE:
  898|   283k|      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|    151|      static constexpr void conditional_swap(CT::Choice cond, Self& x, Self& y) {
  411|    151|         const W mask = cond.into_bitmask<W>();
  412|       |
  413|  1.05k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (413:28): [True: 906, False: 151]
  ------------------
  414|    906|            auto nx = Botan::choose(mask, y.m_val[i], x.m_val[i]);
  415|    906|            auto ny = Botan::choose(mask, x.m_val[i], y.m_val[i]);
  416|    906|            x.m_val[i] = nx;
  417|    906|            y.m_val[i] = ny;
  418|    906|         }
  419|    151|      }
pcurves_secp384r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEEE11is_identityEv:
  928|  10.2k|      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|  55.9k|      constexpr CT::Choice is_zero() const { return CT::all_zeros(m_val.data(), m_val.size()).as_choice(); }
pcurves_secp384r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEES7_EC2ERKSB_SE_SE_:
 1056|  12.3k|            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|  69.1k|      constexpr const FieldElement& z() const { return m_z; }
pcurves_secp384r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEE6squareEv:
  426|  41.2k|      constexpr BOTAN_FORCE_INLINE Self square() const {
  427|  41.2k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  428|  41.2k|         comba_sqr<N>(z.data(), this->data());
  429|  41.2k|         return Self(Rep::redc(z));
  430|  41.2k|      }
pcurves_secp384r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEE4dataEv:
  896|   332k|      constexpr const W* data() const { return m_val.data(); }
pcurves_secp384r1.cpp:_ZN5BotanmlERKNS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEEESC_:
  346|   109k|      friend constexpr BOTAN_FORCE_INLINE Self operator*(const Self& a, const Self& b) {
  347|   109k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  348|   109k|         comba_mul<N>(z.data(), a.data(), b.data());
  349|   109k|         return Self(Rep::redc(z));
  350|   109k|      }
pcurves_secp384r1.cpp:_ZN5BotanmiERKNS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEEESC_:
  281|  69.1k|      friend constexpr BOTAN_FORCE_INLINE Self operator-(const Self& a, const Self& b) {
  282|  69.1k|         std::array<W, N> r;  // NOLINT(*-member-init)
  283|  69.1k|         W carry = 0;
  284|   483k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (284:28): [True: 414k, False: 69.1k]
  ------------------
  285|   414k|            r[i] = word_sub(a.m_val[i], b.m_val[i], &carry);
  286|   414k|         }
  287|       |
  288|  69.1k|         const auto mask = CT::Mask<W>::expand(carry).value();
  289|       |
  290|  69.1k|         carry = 0;
  291|       |
  292|   483k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (292:28): [True: 414k, False: 69.1k]
  ------------------
  293|   414k|            r[i] = word_add(r[i], P[i] & mask, &carry);
  294|   414k|         }
  295|       |
  296|  69.1k|         return Self(r);
  297|  69.1k|      }
pcurves_secp384r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEES7_E1xEv:
 1162|  39.8k|      constexpr const FieldElement& x() const { return m_x; }
pcurves_secp384r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEE4mul3Ev:
  335|  1.24k|      constexpr inline Self mul3() const { return mul2() + (*this); }
pcurves_secp384r1.cpp:_ZN5BotanplERKNS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEEESC_:
  265|  13.7k|      friend constexpr BOTAN_FORCE_INLINE Self operator+(const Self& a, const Self& b) {
  266|  13.7k|         std::array<W, N> t;  // NOLINT(*-member-init)
  267|       |
  268|  13.7k|         W carry = 0;
  269|  96.0k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (269:28): [True: 82.3k, False: 13.7k]
  ------------------
  270|  82.3k|            t[i] = word_add(a.m_val[i], b.m_val[i], &carry);
  271|  82.3k|         }
  272|       |
  273|  13.7k|         std::array<W, N> r;  // NOLINT(*-member-init)
  274|  13.7k|         bigint_monty_maybe_sub<N>(r.data(), carry, t.data(), P.data());
  275|  13.7k|         return Self(r);
  276|  13.7k|      }
pcurves_secp384r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEES7_E1yEv:
 1167|  38.5k|      constexpr const FieldElement& y() const { return m_y; }
pcurves_secp384r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEE4mul4Ev:
  338|  1.24k|      constexpr inline Self mul4() const { return mul2().mul2(); }
pcurves_secp384r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEE4mul2Ev:
  325|  9.92k|      constexpr BOTAN_FORCE_INLINE Self mul2() const {
  326|  9.92k|         std::array<W, N> t = value();
  327|  9.92k|         const W carry = shift_left<1>(t);
  328|       |
  329|  9.92k|         std::array<W, N> r;  // NOLINT(*-member-init)
  330|  9.92k|         bigint_monty_maybe_sub<N>(r.data(), carry, t.data(), P.data());
  331|  9.92k|         return Self(r);
  332|  9.92k|      }
pcurves_secp384r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEE5valueEv:
  894|  9.92k|      constexpr const std::array<W, N>& value() const { return m_val; }
pcurves_secp384r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEE4mul8Ev:
  341|  1.24k|      constexpr inline Self mul8() const { return mul2().mul2().mul2(); }
pcurves_secp384r1.cpp:_ZN5BotanplERKNS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEES7_EESE_:
 1064|  1.09k|      friend constexpr Self operator+(const Self& a, const Self& b) { return Self::add(a, b); }
pcurves_secp384r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEES7_E3addERKSC_SE_:
 1103|  1.09k|      constexpr static Self add(const Self& a, const Self& b) { return point_add<Self, FieldElement>(a, b); }
pcurves_secp384r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEES7_E11is_identityEv:
 1082|  14.1k|      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|  21.5k|         Self& x, Self& y, Self& z, CT::Choice cond, const Self& nx, const Self& ny, const Self& nz) {
  396|  21.5k|         const W mask = cond.into_bitmask<W>();
  397|       |
  398|   150k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (398:28): [True: 129k, False: 21.5k]
  ------------------
  399|   129k|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  400|   129k|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  401|   129k|            z.m_val[i] = Botan::choose(mask, nz.m_val[i], z.m_val[i]);
  402|   129k|         }
  403|  21.5k|      }
pcurves_secp384r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEEmLERKSA_:
  355|  1.95k|      constexpr BOTAN_FORCE_INLINE Self& operator*=(const Self& other) {
  356|  1.95k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  357|  1.95k|         comba_mul<N>(z.data(), data(), other.data());
  358|  1.95k|         m_val = Rep::redc(z);
  359|  1.95k|         return (*this);
  360|  1.95k|      }
pcurves_secp384r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEE8square_nEm:
  439|  1.80k|      constexpr void square_n(size_t n) {
  440|  1.80k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  441|  58.9k|         for(size_t i = 0; i != n; ++i) {
  ------------------
  |  Branch (441:28): [True: 57.1k, False: 1.80k]
  ------------------
  442|  57.1k|            comba_sqr<N>(z.data(), this->data());
  443|  57.1k|            m_val = Rep::redc(z);
  444|  57.1k|         }
  445|  1.80k|      }
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|  19.5k|      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|  9.75k|      constexpr Self negate() const {
  453|  9.75k|         const W x_is_zero = ~CT::all_zeros(this->data(), N).value();
  454|       |
  455|  9.75k|         std::array<W, N> r;  // NOLINT(*-member-init)
  456|  9.75k|         W carry = 0;
  457|  68.2k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (457:28): [True: 58.5k, False: 9.75k]
  ------------------
  458|  58.5k|            r[i] = word_sub(P[i] & x_is_zero, m_val[i], &carry);
  459|  58.5k|         }
  460|       |
  461|  9.75k|         return Self(r);
  462|  9.75k|      }
pcurves_secp384r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEEEC2ERKSB_SE_:
  917|  12.5k|      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|    750|      std::array<W, L> stash_value() const {
  760|    750|         static_assert(L >= N);
  761|    750|         std::array<W, L> stash = {};
  762|  5.25k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 4.50k, False: 750]
  ------------------
  763|  4.50k|            stash[i] = m_val[i];
  764|  4.50k|         }
  765|    750|         return stash;
  766|    750|      }
pcurves_secp384r1.cpp:_ZNK5Botan23PrecomputedBaseMulTableINS_6PCurve12_GLOBAL__N_19secp384r15CurveELm6EE3mulERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS2_12Secp384r1RepEE12ScalarParamsEEEEERNS_21RandomNumberGeneratorE:
 1407|    150|      ProjectivePoint mul(const Scalar& s, RandomNumberGenerator& rng) const {
 1408|    150|         const BlindedScalar scalar(s, rng);
 1409|    150|         return basemul_booth_exec<C, WindowBits>(m_table, scalar, rng);
 1410|    150|      }
pcurves_secp384r1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp384r15CurveELm7EEC2ERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS2_12Secp384r1RepEE12ScalarParamsEEEEERNS_21RandomNumberGeneratorE:
 1307|    150|      BlindedScalarBits(const typename C::Scalar& scalar, RandomNumberGenerator& rng) {
 1308|    150|         if(BlindingBits > 0 && rng.is_seeded()) {
  ------------------
  |  Branch (1308:13): [True: 150, Folded]
  |  Branch (1308:33): [True: 0, False: 150]
  ------------------
 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|    150|         } else {
 1344|       |            // No RNG available, skip blinding
 1345|    150|            m_bytes.resize(C::Scalar::BYTES);
 1346|    150|            scalar.serialize_to(std::span{m_bytes}.template first<C::Scalar::BYTES>());
 1347|    150|            m_bits = C::Scalar::BITS;
 1348|    150|         }
 1349|       |
 1350|    150|         CT::poison(m_bytes.data(), m_bytes.size());
 1351|    150|      }
pcurves_secp384r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp384r16ParamsENS3_12Secp384r1RepEE12ScalarParamsEE8from_repERKNSt3__15arrayImLm6EEE:
  137|    347|      constexpr static std::array<W, N> from_rep(const std::array<W, N>& z) {
  138|    347|         std::array<W, 2 * N> ze = {};
  139|    347|         copy_mem(std::span{ze}.template first<N>(), z);
  140|    347|         return Self::redc(ze);
  141|    347|      }
pcurves_secp384r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp384r16ParamsENS3_12Secp384r1RepEE12ScalarParamsEE4redcERKNSt3__15arrayImLm12EEE:
  104|    545|      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|    545|         } else {
  108|    545|            return monty_redc(z, P, P_dash);
  109|    545|         }
  110|    545|      }
pcurves_secp384r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp384r16ParamsENS4_12Secp384r1RepEE12ScalarParamsEEEE12serialize_toENSt3__14spanIhLm48EEE:
  739|    347|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|    347|         auto v = Rep::from_rep(m_val);
  741|    347|         std::reverse(v.begin(), v.end());
  742|       |
  743|    347|         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|    347|            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|    347|      }
pcurves_secp384r1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp384r15CurveELm7EE4bitsEv:
 1305|    150|      size_t bits() const { return m_bits; }
pcurves_secp384r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEES7_E18conditional_assignENS_2CT6ChoiceERKSC_:
 1084|    150|      constexpr void conditional_assign(CT::Choice cond, const Self& pt) {
 1085|    150|         FieldElement::conditional_assign(m_x, m_y, m_z, cond, pt.x(), pt.y(), pt.z());
 1086|    150|      }
pcurves_secp384r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEES7_E6negateEv:
 1134|    150|      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|    150|      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|    450|      constexpr void _const_time_poison() const { CT::poison(m_val); }
pcurves_secp384r1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp384r15CurveELm7EE10get_windowEm:
 1353|  9.75k|      size_t get_window(size_t offset) const {
 1354|       |         // Extract a WindowBits sized window out of s, depending on offset.
 1355|  9.75k|         return read_window_bits<WindowBits>(std::span{m_bytes}, offset);
 1356|  9.75k|      }
pcurves_secp384r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEES7_E10add_or_subERKSC_RKNS_16AffineCurvePointISB_EENS_2CT6ChoiceE:
 1096|  9.60k|      constexpr static Self add_or_sub(const Self& a, const AffinePoint& b, CT::Choice sub) {
 1097|  9.60k|         return point_add_or_sub_mixed<Self, AffinePoint, FieldElement>(a, b, sub, FieldElement::one());
 1098|  9.60k|      }
pcurves_secp384r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEE18conditional_assignENS_2CT6ChoiceERKSA_:
  367|  9.60k|      constexpr void conditional_assign(CT::Choice cond, const Self& nx) {
  368|  9.60k|         const W mask = cond.into_bitmask<W>();
  369|       |
  370|  67.2k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (370:28): [True: 57.6k, False: 9.60k]
  ------------------
  371|  57.6k|            m_val[i] = Botan::choose(mask, nx.m_val[i], m_val[i]);
  372|  57.6k|         }
  373|  9.60k|      }
pcurves_secp384r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEEE9ct_selectENSt3__14spanIKSC_Lm18446744073709551615EEEm:
  955|  9.75k|      static constexpr auto ct_select(std::span<const Self> pts, size_t idx) {
  956|  9.75k|         auto result = Self::identity(pts[0]);
  957|       |
  958|       |         // Intentionally wrapping; set to maximum size_t if idx == 0
  959|  9.75k|         const size_t idx1 = static_cast<size_t>(idx - 1);
  960|   321k|         for(size_t i = 0; i != pts.size(); ++i) {
  ------------------
  |  Branch (960:28): [True: 312k, False: 9.75k]
  ------------------
  961|   312k|            const auto found = CT::Mask<size_t>::is_equal(idx1, i).as_choice();
  962|   312k|            result.conditional_assign(found, pts[i]);
  963|   312k|         }
  964|       |
  965|  9.75k|         return result;
  966|  9.75k|      }
pcurves_secp384r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEEE8identityERKSC_:
  924|  9.75k|      static constexpr Self identity(const Self& /*unused*/) {
  925|  9.75k|         return Self(FieldElement::zero(), FieldElement::zero());
  926|  9.75k|      }
pcurves_secp384r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEEE18conditional_assignENS_2CT6ChoiceERKSC_:
  981|   312k|      constexpr void conditional_assign(CT::Choice cond, const Self& pt) {
  982|   312k|         FieldElement::conditional_assign(m_x, m_y, cond, pt.x(), pt.y());
  983|   312k|      }
pcurves_secp384r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEE18conditional_assignERSA_SB_NS_2CT6ChoiceERKSA_SF_:
  380|   312k|      static constexpr void conditional_assign(Self& x, Self& y, CT::Choice cond, const Self& nx, const Self& ny) {
  381|   312k|         const W mask = cond.into_bitmask<W>();
  382|       |
  383|  2.18M|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (383:28): [True: 1.87M, False: 312k]
  ------------------
  384|  1.87M|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  385|  1.87M|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  386|  1.87M|         }
  387|   312k|      }
pcurves_secp384r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEES7_E13randomize_repERNS_21RandomNumberGeneratorE:
 1142|    600|      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|    600|         if(rng.is_seeded()) {
  ------------------
  |  Branch (1147:13): [True: 0, False: 600]
  ------------------
 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|    600|      }
pcurves_secp384r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEES7_E20_const_time_unpoisonEv:
 1176|    150|      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|    450|      constexpr void _const_time_unpoison() const { CT::unpoison(m_val); }
pcurves_secp384r1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp384r15CurveELm7EED2Ev:
 1358|    150|      ~BlindedScalarBits() {
 1359|    150|         secure_zeroize_buffer(m_bytes.data(), m_bytes.size());
 1360|    150|         CT::unpoison(m_bytes.data(), m_bytes.size());
 1361|    150|      }
pcurves_secp384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp384r16ParamsENS4_12Secp384r1RepEE12ScalarParamsEEEE10from_stashILm9EEESB_RKNSt3__15arrayImXT_EEE:
  774|    544|      static Self from_stash(const std::array<W, L>& stash) {
  775|    544|         static_assert(L >= N);
  776|    544|         std::array<W, N> val = {};
  777|  3.80k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 3.26k, False: 544]
  ------------------
  778|  3.26k|            val[i] = stash[i];
  779|  3.26k|         }
  780|    544|         return Self(val);
  781|    544|      }
pcurves_secp384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp384r16ParamsENS4_12Secp384r1RepEE12ScalarParamsEEEEC2ENSt3__15arrayImLm6EEE:
  898|    742|      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|    300|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|    300|         auto v = Rep::from_rep(m_val);
  741|    300|         std::reverse(v.begin(), v.end());
  742|       |
  743|    300|         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|    300|            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|    300|      }
pcurves_secp384r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp384r16ParamsENS4_12Secp384r1RepEE12ScalarParamsEEEE11stash_valueILm9EEENSt3__15arrayImXT_EEEv:
  759|    197|      std::array<W, L> stash_value() const {
  760|    197|         static_assert(L >= N);
  761|    197|         std::array<W, L> stash = {};
  762|  1.37k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 1.18k, False: 197]
  ------------------
  763|  1.18k|            stash[i] = m_val[i];
  764|  1.18k|         }
  765|    197|         return stash;
  766|    197|      }
pcurves_secp384r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEE10from_stashILm9EEESA_RKNSt3__15arrayImXT_EEE:
  774|  1.05k|      static Self from_stash(const std::array<W, L>& stash) {
  775|  1.05k|         static_assert(L >= N);
  776|  1.05k|         std::array<W, N> val = {};
  777|  7.35k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 6.30k, False: 1.05k]
  ------------------
  778|  6.30k|            val[i] = stash[i];
  779|  6.30k|         }
  780|  1.05k|         return Self(val);
  781|  1.05k|      }
pcurves_secp384r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp384r16ParamsENS4_12Secp384r1RepEE12ScalarParamsEEEE7is_zeroEv:
  225|    395|      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|    150|      constexpr CT::Choice operator==(const Self& other) const {
  723|    150|         return CT::is_equal(this->data(), other.data(), N).as_choice();
  724|    150|      }
pcurves_secp384r1.cpp:_ZN5Botan13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp384r16ParamsENS2_12Secp384r1RepEE7x3_ax_bERKNS_6IntModINS5_INS6_11FieldParamsEEEEE:
 1275|    150|      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|    198|      static std::optional<Self> deserialize(std::span<const uint8_t> bytes) {
  793|       |         // Conditional ok: input length is public
  794|    198|         if(bytes.size() != Self::BYTES) {
  ------------------
  |  Branch (794:13): [True: 0, False: 198]
  ------------------
  795|      0|            return {};
  796|      0|         }
  797|       |
  798|    198|         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|    198|         if(!bigint_ct_is_lt(words.data(), N, P.data(), N).as_bool()) {
  ------------------
  |  Branch (801:13): [True: 0, False: 198]
  ------------------
  802|      0|            return {};
  803|      0|         }
  804|       |
  805|       |         // Safe because we checked above that words is an integer < P
  806|    198|         return Self::from_words(words);
  807|    198|      }
pcurves_secp384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp384r16ParamsENS4_12Secp384r1RepEE12ScalarParamsEEEE10from_wordsILm6EEESB_NSt3__15arrayImXT_EEE:
  211|    198|      static constexpr Self from_words(std::array<W, L> w) {
  212|    198|         if constexpr(L == N) {
  213|    198|            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|    198|      }
pcurves_secp384r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp384r16ParamsENS3_12Secp384r1RepEE12ScalarParamsEE6to_repERKNSt3__15arrayImLm6EEE:
  115|    198|      constexpr static std::array<W, N> to_rep(const std::array<W, N>& x) {
  116|    198|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  117|    198|         comba_mul<N>(z.data(), x.data(), R2.data());
  118|    198|         return Self::redc(z);
  119|    198|      }
pcurves_secp384r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEEE12serialize_toENSt3__14spanIhLm97EEE:
  941|    150|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  942|    150|         BOTAN_STATE_CHECK(this->is_identity().as_bool() == false);
  ------------------
  |  |   51|    150|   do {                                                         \
  |  |   52|    150|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|    150|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 150]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|    150|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 150]
  |  |  ------------------
  ------------------
  943|    150|         BufferStuffer pack(bytes);
  944|    150|         pack.append(0x04);
  945|    150|         x().serialize_to(pack.next<FieldElement::BYTES>());
  946|    150|         y().serialize_to(pack.next<FieldElement::BYTES>());
  947|    150|         BOTAN_DEBUG_ASSERT(pack.full());
  ------------------
  |  |  137|    150|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|    150|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 150]
  |  |  ------------------
  ------------------
  948|    150|      }
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|    176|      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|    176|         auto x = pt.x();
 1027|    176|         auto y = pt.y();
 1028|    176|         auto z = FieldElement::one();
 1029|       |
 1030|    176|         FieldElement::conditional_swap(pt.is_identity(), y, z);
 1031|       |
 1032|    176|         return ProjectiveCurvePoint(x, y, z);
 1033|    176|      }
pcurves_secp521r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE1xEv:
  971|   533k|      constexpr const FieldElement& x() const { return m_x; }
pcurves_secp521r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE1yEv:
  976|   518k|      constexpr const FieldElement& y() const { return m_y; }
pcurves_secp521r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE3oneEv:
  200|  15.2k|      static constexpr Self one() { return Self(Rep::one()); }
pcurves_secp521r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEC2ENSt3__15arrayImLm9EEE:
  898|   427k|      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|    176|      static constexpr void conditional_swap(CT::Choice cond, Self& x, Self& y) {
  411|    176|         const W mask = cond.into_bitmask<W>();
  412|       |
  413|  1.76k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (413:28): [True: 1.58k, False: 176]
  ------------------
  414|  1.58k|            auto nx = Botan::choose(mask, y.m_val[i], x.m_val[i]);
  415|  1.58k|            auto ny = Botan::choose(mask, x.m_val[i], y.m_val[i]);
  416|  1.58k|            x.m_val[i] = nx;
  417|  1.58k|            y.m_val[i] = ny;
  418|  1.58k|         }
  419|    176|      }
pcurves_secp521r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE11is_identityEv:
  928|  15.7k|      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.5k|      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.6k|            m_x(x), m_y(y), m_z(z) {}
pcurves_secp521r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E3dblEv:
 1121|  1.64k|      constexpr Self dbl() const {
 1122|  1.64k|         if constexpr(Self::A_is_minus_3) {
 1123|  1.64k|            return dbl_a_minus_3(*this);
 1124|       |         } else if constexpr(Self::A_is_zero) {
 1125|       |            return dbl_a_zero(*this);
 1126|       |         } else {
 1127|       |            return dbl_generic(*this, A);
 1128|       |         }
 1129|  1.64k|      }
pcurves_secp521r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E1zEv:
 1172|   103k|      constexpr const FieldElement& z() const { return m_z; }
pcurves_secp521r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE6squareEv:
  426|  61.6k|      constexpr BOTAN_FORCE_INLINE Self square() const {
  427|  61.6k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  428|  61.6k|         comba_sqr<N>(z.data(), this->data());
  429|  61.6k|         return Self(Rep::redc(z));
  430|  61.6k|      }
pcurves_secp521r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE4dataEv:
  896|   500k|      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: 950k, False: 105k]
  ------------------
  285|   950k|            r[i] = word_sub(a.m_val[i], b.m_val[i], &carry);
  286|   950k|         }
  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: 950k, False: 105k]
  ------------------
  293|   950k|            r[i] = word_add(r[i], P[i] & mask, &carry);
  294|   950k|         }
  295|       |
  296|   105k|         return Self(r);
  297|   105k|      }
pcurves_secp521r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E1xEv:
 1162|  59.7k|      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.6k|      friend constexpr BOTAN_FORCE_INLINE Self operator+(const Self& a, const Self& b) {
  266|  20.6k|         std::array<W, N> t;  // NOLINT(*-member-init)
  267|       |
  268|  20.6k|         W carry = 0;
  269|   206k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (269:28): [True: 185k, False: 20.6k]
  ------------------
  270|   185k|            t[i] = word_add(a.m_val[i], b.m_val[i], &carry);
  271|   185k|         }
  272|       |
  273|  20.6k|         std::array<W, N> r;  // NOLINT(*-member-init)
  274|  20.6k|         bigint_monty_maybe_sub<N>(r.data(), carry, t.data(), P.data());
  275|  20.6k|         return Self(r);
  276|  20.6k|      }
pcurves_secp521r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E1yEv:
 1167|  58.0k|      constexpr const FieldElement& y() const { return m_y; }
pcurves_secp521r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE4mul4Ev:
  338|  1.64k|      constexpr inline Self mul4() const { return mul2().mul2(); }
pcurves_secp521r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE4mul2Ev:
  325|  13.1k|      constexpr BOTAN_FORCE_INLINE Self mul2() const {
  326|  13.1k|         std::array<W, N> t = value();
  327|  13.1k|         const W carry = shift_left<1>(t);
  328|       |
  329|  13.1k|         std::array<W, N> r;  // NOLINT(*-member-init)
  330|  13.1k|         bigint_monty_maybe_sub<N>(r.data(), carry, t.data(), P.data());
  331|  13.1k|         return Self(r);
  332|  13.1k|      }
pcurves_secp521r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE5valueEv:
  894|  13.1k|      constexpr const std::array<W, N>& value() const { return m_val; }
pcurves_secp521r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE4mul8Ev:
  341|  1.64k|      constexpr inline Self mul8() const { return mul2().mul2().mul2(); }
pcurves_secp521r1.cpp:_ZN5BotanplERKNS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_EESE_:
 1064|  1.45k|      friend constexpr Self operator+(const Self& a, const Self& b) { return Self::add(a, b); }
pcurves_secp521r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E3addERKSC_SE_:
 1103|  1.45k|      constexpr static Self add(const Self& a, const Self& b) { return point_add<Self, FieldElement>(a, b); }
pcurves_secp521r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E11is_identityEv:
 1082|  21.0k|      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.1k|         Self& x, Self& y, Self& z, CT::Choice cond, const Self& nx, const Self& ny, const Self& nz) {
  396|  33.1k|         const W mask = cond.into_bitmask<W>();
  397|       |
  398|   331k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (398:28): [True: 298k, False: 33.1k]
  ------------------
  399|   298k|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  400|   298k|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  401|   298k|            z.m_val[i] = Botan::choose(mask, nz.m_val[i], z.m_val[i]);
  402|   298k|         }
  403|  33.1k|      }
pcurves_secp521r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEmLERKSA_:
  355|  2.10k|      constexpr BOTAN_FORCE_INLINE Self& operator*=(const Self& other) {
  356|  2.10k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  357|  2.10k|         comba_mul<N>(z.data(), data(), other.data());
  358|  2.10k|         m_val = Rep::redc(z);
  359|  2.10k|         return (*this);
  360|  2.10k|      }
pcurves_secp521r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE8square_nEm:
  439|  1.92k|      constexpr void square_n(size_t n) {
  440|  1.92k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  441|  92.5k|         for(size_t i = 0; i != n; ++i) {
  ------------------
  |  Branch (441:28): [True: 90.6k, False: 1.92k]
  ------------------
  442|  90.6k|            comba_sqr<N>(z.data(), this->data());
  443|  90.6k|            m_val = Rep::redc(z);
  444|  90.6k|         }
  445|  1.92k|      }
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.4k|      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.2k|      constexpr Self negate() const {
  453|  15.2k|         const W x_is_zero = ~CT::all_zeros(this->data(), N).value();
  454|       |
  455|  15.2k|         std::array<W, N> r;  // NOLINT(*-member-init)
  456|  15.2k|         W carry = 0;
  457|   152k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (457:28): [True: 137k, False: 15.2k]
  ------------------
  458|   137k|            r[i] = word_sub(P[i] & x_is_zero, m_val[i], &carry);
  459|   137k|         }
  460|       |
  461|  15.2k|         return Self(r);
  462|  15.2k|      }
pcurves_secp521r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEEC2ERKSB_SE_:
  917|  18.8k|      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|    877|      std::array<W, L> stash_value() const {
  760|    877|         static_assert(L >= N);
  761|    877|         std::array<W, L> stash = {};
  762|  8.77k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 7.89k, False: 877]
  ------------------
  763|  7.89k|            stash[i] = m_val[i];
  764|  7.89k|         }
  765|    877|         return stash;
  766|    877|      }
pcurves_secp521r1.cpp:_ZNK5Botan23PrecomputedBaseMulTableINS_6PCurve12_GLOBAL__N_19secp521r15CurveELm6EE3mulERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS3_7P521RepEE12ScalarParamsEEEEERNS_21RandomNumberGeneratorE:
 1407|    175|      ProjectivePoint mul(const Scalar& s, RandomNumberGenerator& rng) const {
 1408|    175|         const BlindedScalar scalar(s, rng);
 1409|    175|         return basemul_booth_exec<C, WindowBits>(m_table, scalar, rng);
 1410|    175|      }
pcurves_secp521r1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp521r15CurveELm7EEC2ERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS3_7P521RepEE12ScalarParamsEEEEERNS_21RandomNumberGeneratorE:
 1307|    175|      BlindedScalarBits(const typename C::Scalar& scalar, RandomNumberGenerator& rng) {
 1308|    175|         if(BlindingBits > 0 && rng.is_seeded()) {
  ------------------
  |  Branch (1308:13): [True: 175, Folded]
  |  Branch (1308:33): [True: 0, False: 175]
  ------------------
 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|    175|         } else {
 1344|       |            // No RNG available, skip blinding
 1345|    175|            m_bytes.resize(C::Scalar::BYTES);
 1346|    175|            scalar.serialize_to(std::span{m_bytes}.template first<C::Scalar::BYTES>());
 1347|    175|            m_bits = C::Scalar::BITS;
 1348|    175|         }
 1349|       |
 1350|    175|         CT::poison(m_bytes.data(), m_bytes.size());
 1351|    175|      }
pcurves_secp521r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp521r16ParamsENS4_7P521RepEE12ScalarParamsEE8from_repERKNSt3__15arrayImLm9EEE:
  137|    413|      constexpr static std::array<W, N> from_rep(const std::array<W, N>& z) {
  138|    413|         std::array<W, 2 * N> ze = {};
  139|    413|         copy_mem(std::span{ze}.template first<N>(), z);
  140|    413|         return Self::redc(ze);
  141|    413|      }
pcurves_secp521r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp521r16ParamsENS4_7P521RepEE12ScalarParamsEE4redcERKNSt3__15arrayImLm18EEE:
  104|    652|      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|    652|         } else {
  108|    652|            return monty_redc(z, P, P_dash);
  109|    652|         }
  110|    652|      }
pcurves_secp521r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp521r16ParamsENS5_7P521RepEE12ScalarParamsEEEE12serialize_toENSt3__14spanIhLm66EEE:
  739|    413|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|    413|         auto v = Rep::from_rep(m_val);
  741|    413|         std::reverse(v.begin(), v.end());
  742|       |
  743|       |         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|       |            store_be(bytes, v);
  745|    413|         } else {
  746|       |            // Remove leading zero bytes
  747|    413|            const auto padded_bytes = store_be(v);
  748|    413|            constexpr size_t extra = N * WordInfo<W>::bytes - Self::BYTES;
  749|    413|            copy_mem(bytes, std::span{padded_bytes}.template subspan<extra, Self::BYTES>());
  750|    413|         }
  751|    413|      }
pcurves_secp521r1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp521r15CurveELm7EE4bitsEv:
 1305|    175|      size_t bits() const { return m_bits; }
pcurves_secp521r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E18conditional_assignENS_2CT6ChoiceERKSC_:
 1084|    175|      constexpr void conditional_assign(CT::Choice cond, const Self& pt) {
 1085|    175|         FieldElement::conditional_assign(m_x, m_y, m_z, cond, pt.x(), pt.y(), pt.z());
 1086|    175|      }
pcurves_secp521r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E6negateEv:
 1134|    175|      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|    175|      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|    525|      constexpr void _const_time_poison() const { CT::poison(m_val); }
pcurves_secp521r1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp521r15CurveELm7EE10get_windowEm:
 1353|  15.2k|      size_t get_window(size_t offset) const {
 1354|       |         // Extract a WindowBits sized window out of s, depending on offset.
 1355|  15.2k|         return read_window_bits<WindowBits>(std::span{m_bytes}, offset);
 1356|  15.2k|      }
pcurves_secp521r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E10add_or_subERKSC_RKNS_16AffineCurvePointISB_EENS_2CT6ChoiceE:
 1096|  15.0k|      constexpr static Self add_or_sub(const Self& a, const AffinePoint& b, CT::Choice sub) {
 1097|  15.0k|         return point_add_or_sub_mixed<Self, AffinePoint, FieldElement>(a, b, sub, FieldElement::one());
 1098|  15.0k|      }
pcurves_secp521r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE18conditional_assignENS_2CT6ChoiceERKSA_:
  367|  15.0k|      constexpr void conditional_assign(CT::Choice cond, const Self& nx) {
  368|  15.0k|         const W mask = cond.into_bitmask<W>();
  369|       |
  370|   150k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (370:28): [True: 135k, False: 15.0k]
  ------------------
  371|   135k|            m_val[i] = Botan::choose(mask, nx.m_val[i], m_val[i]);
  372|   135k|         }
  373|  15.0k|      }
pcurves_secp521r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE9ct_selectENSt3__14spanIKSC_Lm18446744073709551615EEEm:
  955|  15.2k|      static constexpr auto ct_select(std::span<const Self> pts, size_t idx) {
  956|  15.2k|         auto result = Self::identity(pts[0]);
  957|       |
  958|       |         // Intentionally wrapping; set to maximum size_t if idx == 0
  959|  15.2k|         const size_t idx1 = static_cast<size_t>(idx - 1);
  960|   502k|         for(size_t i = 0; i != pts.size(); ++i) {
  ------------------
  |  Branch (960:28): [True: 487k, False: 15.2k]
  ------------------
  961|   487k|            const auto found = CT::Mask<size_t>::is_equal(idx1, i).as_choice();
  962|   487k|            result.conditional_assign(found, pts[i]);
  963|   487k|         }
  964|       |
  965|  15.2k|         return result;
  966|  15.2k|      }
pcurves_secp521r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE8identityERKSC_:
  924|  15.2k|      static constexpr Self identity(const Self& /*unused*/) {
  925|  15.2k|         return Self(FieldElement::zero(), FieldElement::zero());
  926|  15.2k|      }
pcurves_secp521r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE18conditional_assignENS_2CT6ChoiceERKSC_:
  981|   487k|      constexpr void conditional_assign(CT::Choice cond, const Self& pt) {
  982|   487k|         FieldElement::conditional_assign(m_x, m_y, cond, pt.x(), pt.y());
  983|   487k|      }
pcurves_secp521r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE18conditional_assignERSA_SB_NS_2CT6ChoiceERKSA_SF_:
  380|   487k|      static constexpr void conditional_assign(Self& x, Self& y, CT::Choice cond, const Self& nx, const Self& ny) {
  381|   487k|         const W mask = cond.into_bitmask<W>();
  382|       |
  383|  4.87M|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (383:28): [True: 4.38M, False: 487k]
  ------------------
  384|  4.38M|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  385|  4.38M|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  386|  4.38M|         }
  387|   487k|      }
pcurves_secp521r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E13randomize_repERNS_21RandomNumberGeneratorE:
 1142|    700|      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|    700|         if(rng.is_seeded()) {
  ------------------
  |  Branch (1147:13): [True: 0, False: 700]
  ------------------
 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|    700|      }
pcurves_secp521r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE11deserializeENSt3__14spanIKhLm18446744073709551615EEE:
  792|    124|      static std::optional<Self> deserialize(std::span<const uint8_t> bytes) {
  793|       |         // Conditional ok: input length is public
  794|    124|         if(bytes.size() != Self::BYTES) {
  ------------------
  |  Branch (794:13): [True: 0, False: 124]
  ------------------
  795|      0|            return {};
  796|      0|         }
  797|       |
  798|    124|         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|    124|         if(!bigint_ct_is_lt(words.data(), N, P.data(), N).as_bool()) {
  ------------------
  |  Branch (801:13): [True: 5, False: 119]
  ------------------
  802|      5|            return {};
  803|      5|         }
  804|       |
  805|       |         // Safe because we checked above that words is an integer < P
  806|    119|         return Self::from_words(words);
  807|    124|      }
pcurves_secp521r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE10from_wordsILm9EEESA_NSt3__15arrayImXT_EEE:
  211|    119|      static constexpr Self from_words(std::array<W, L> w) {
  212|    119|         if constexpr(L == N) {
  213|    119|            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|    119|      }
pcurves_secp521r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E20_const_time_unpoisonEv:
 1176|    175|      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|    525|      constexpr void _const_time_unpoison() const { CT::unpoison(m_val); }
pcurves_secp521r1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp521r15CurveELm7EED2Ev:
 1358|    175|      ~BlindedScalarBits() {
 1359|    175|         secure_zeroize_buffer(m_bytes.data(), m_bytes.size());
 1360|    175|         CT::unpoison(m_bytes.data(), m_bytes.size());
 1361|    175|      }
pcurves_secp521r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp521r16ParamsENS5_7P521RepEE12ScalarParamsEEEE10from_stashILm9EEESB_RKNSt3__15arrayImXT_EEE:
  774|    651|      static Self from_stash(const std::array<W, L>& stash) {
  775|    651|         static_assert(L >= N);
  776|    651|         std::array<W, N> val = {};
  777|  6.51k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 5.85k, False: 651]
  ------------------
  778|  5.85k|            val[i] = stash[i];
  779|  5.85k|         }
  780|    651|         return Self(val);
  781|    651|      }
pcurves_secp521r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp521r16ParamsENS5_7P521RepEE12ScalarParamsEEEEC2ENSt3__15arrayImLm9EEE:
  898|    890|      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|    352|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|    352|         auto v = Rep::from_rep(m_val);
  741|    352|         std::reverse(v.begin(), v.end());
  742|       |
  743|       |         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|       |            store_be(bytes, v);
  745|    352|         } else {
  746|       |            // Remove leading zero bytes
  747|    352|            const auto padded_bytes = store_be(v);
  748|    352|            constexpr size_t extra = N * WordInfo<W>::bytes - Self::BYTES;
  749|    352|            copy_mem(bytes, std::span{padded_bytes}.template subspan<extra, Self::BYTES>());
  750|    352|         }
  751|    352|      }
pcurves_secp521r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp521r16ParamsENS5_7P521RepEE12ScalarParamsEEEE11stash_valueILm9EEENSt3__15arrayImXT_EEEv:
  759|    238|      std::array<W, L> stash_value() const {
  760|    238|         static_assert(L >= N);
  761|    238|         std::array<W, L> stash = {};
  762|  2.38k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 2.14k, False: 238]
  ------------------
  763|  2.14k|            stash[i] = m_val[i];
  764|  2.14k|         }
  765|    238|         return stash;
  766|    238|      }
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: 11.0k, False: 1.22k]
  ------------------
  778|  11.0k|            val[i] = stash[i];
  779|  11.0k|         }
  780|  1.22k|         return Self(val);
  781|  1.22k|      }
pcurves_secp521r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp521r16ParamsENS5_7P521RepEE12ScalarParamsEEEE7is_zeroEv:
  225|    477|      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|    234|      constexpr CT::Choice operator==(const Self& other) const {
  723|    234|         return CT::is_equal(this->data(), other.data(), N).as_choice();
  724|    234|      }
pcurves_secp521r1.cpp:_ZN5Botan13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp521r16ParamsENS3_7P521RepEE7x3_ax_bERKNS_6IntModINS5_INS6_11FieldParamsEEEEE:
 1275|    234|      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|    240|      static std::optional<Self> deserialize(std::span<const uint8_t> bytes) {
  793|       |         // Conditional ok: input length is public
  794|    240|         if(bytes.size() != Self::BYTES) {
  ------------------
  |  Branch (794:13): [True: 0, False: 240]
  ------------------
  795|      0|            return {};
  796|      0|         }
  797|       |
  798|    240|         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|    240|         if(!bigint_ct_is_lt(words.data(), N, P.data(), N).as_bool()) {
  ------------------
  |  Branch (801:13): [True: 1, False: 239]
  ------------------
  802|      1|            return {};
  803|      1|         }
  804|       |
  805|       |         // Safe because we checked above that words is an integer < P
  806|    239|         return Self::from_words(words);
  807|    240|      }
pcurves_secp521r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp521r16ParamsENS5_7P521RepEE12ScalarParamsEEEE10from_wordsILm9EEESB_NSt3__15arrayImXT_EEE:
  211|    239|      static constexpr Self from_words(std::array<W, L> w) {
  212|    239|         if constexpr(L == N) {
  213|    239|            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|    239|      }
pcurves_secp521r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp521r16ParamsENS4_7P521RepEE12ScalarParamsEE6to_repERKNSt3__15arrayImLm9EEE:
  115|    239|      constexpr static std::array<W, N> to_rep(const std::array<W, N>& x) {
  116|    239|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  117|    239|         comba_mul<N>(z.data(), x.data(), R2.data());
  118|    239|         return Self::redc(z);
  119|    239|      }
pcurves_secp521r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE12serialize_toENSt3__14spanIhLm133EEE:
  941|    176|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  942|    176|         BOTAN_STATE_CHECK(this->is_identity().as_bool() == false);
  ------------------
  |  |   51|    176|   do {                                                         \
  |  |   52|    176|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|    176|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 176]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|    176|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 176]
  |  |  ------------------
  ------------------
  943|    176|         BufferStuffer pack(bytes);
  944|    176|         pack.append(0x04);
  945|    176|         x().serialize_to(pack.next<FieldElement::BYTES>());
  946|    176|         y().serialize_to(pack.next<FieldElement::BYTES>());
  947|    176|         BOTAN_DEBUG_ASSERT(pack.full());
  ------------------
  |  |  137|    176|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|    176|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 176]
  |  |  ------------------
  ------------------
  948|    176|      }

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|    130|                                               RandomNumberGenerator& rng) {
  309|    130|   static constexpr size_t WindowElements = 1 << (WindowBits - 1);
  310|       |
  311|    130|   const size_t windows = (scalar.bits() + WindowBits) / WindowBits;
  312|       |
  313|    130|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|    130|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|    130|      const size_t raw = w_bits << 1;
  317|    130|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|    130|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|    130|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|    130|      pt.conditional_assign(tneg, pt.negate());
  322|    130|      CT::poison(pt);
  323|    130|      pt.randomize_rep(rng);
  324|    130|      return pt;
  325|    130|   }();
  326|       |
  327|  5.59k|   for(size_t i = 1; i != windows; ++i) {
  ------------------
  |  Branch (327:22): [True: 5.46k, False: 130]
  ------------------
  328|       |      // Extract W+1 bits overlapping by 1 with the previous window
  329|  5.46k|      const size_t bit_pos = WindowBits * i - 1;
  330|  5.46k|      const size_t raw = scalar.get_window(bit_pos);
  331|  5.46k|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  332|       |
  333|  5.46k|      const auto tbl_i = table.subspan(WindowElements * i, WindowElements);
  334|       |
  335|  5.46k|      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|  5.46k|      if(i <= 3) {
  ------------------
  |  Branch (338:10): [True: 390, False: 5.07k]
  ------------------
  339|    390|         accum.randomize_rep(rng);
  340|    390|      }
  341|  5.46k|   }
  342|       |
  343|    130|   CT::unpoison(accum);
  344|    130|   return accum;
  345|    130|}
pcurves_brainpool256r1.cpp:_ZZN5Botan18basemul_booth_execINS_6PCurve12_GLOBAL__N_114brainpool256r15CurveELm6ENS_17BlindedScalarBitsIS4_Lm7EEEEENT_15ProjectivePointENSt3__14spanIKNS7_11AffinePointELm18446744073709551615EEERKT1_RNS_21RandomNumberGeneratorEENKUlvE_clEv:
  313|    130|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|    130|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|    130|      const size_t raw = w_bits << 1;
  317|    130|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|    130|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|    130|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|    130|      pt.conditional_assign(tneg, pt.negate());
  322|    130|      CT::poison(pt);
  323|    130|      pt.randomize_rep(rng);
  324|    130|      return pt;
  325|    130|   }();
_ZN5Botan12booth_recodeILm6ETkNSt3__117unsigned_integralEmEENS1_4pairImNS_2CT6ChoiceEEET0_:
  294|  81.7k|constexpr std::pair<size_t, CT::Choice> booth_recode(T x) {
  295|  81.7k|   static_assert(WindowBits >= 1 && WindowBits <= 8);
  296|       |
  297|  81.7k|   auto s_mask = CT::Mask<T>::expand(x >> WindowBits);
  298|  81.7k|   const T neg_x = (1 << (WindowBits + 1)) - x - 1;
  299|  81.7k|   T d = s_mask.select(neg_x, x);
  300|  81.7k|   d = (d >> 1) + (d & 1);
  301|       |
  302|  81.7k|   return std::make_pair(static_cast<size_t>(d), s_mask.as_choice());
  303|  81.7k|}
_ZN5Botan20scalar_blinding_bitsEm:
   41|    599|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|    599|   if(scalar_bits == 521) {
  ------------------
  |  Branch (45:7): [True: 14, False: 585]
  ------------------
   46|     14|      return 55;
   47|    585|   } else {
   48|    585|      return scalar_bits / 8;
   49|    585|   }
   50|    599|}
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|    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|  8.19k|   for(size_t i = 1; i != windows; ++i) {
  ------------------
  |  Branch (327:22): [True: 8.06k, False: 126]
  ------------------
  328|       |      // Extract W+1 bits overlapping by 1 with the previous window
  329|  8.06k|      const size_t bit_pos = WindowBits * i - 1;
  330|  8.06k|      const size_t raw = scalar.get_window(bit_pos);
  331|  8.06k|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  332|       |
  333|  8.06k|      const auto tbl_i = table.subspan(WindowElements * i, WindowElements);
  334|       |
  335|  8.06k|      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.06k|      if(i <= 3) {
  ------------------
  |  Branch (338:10): [True: 378, False: 7.68k]
  ------------------
  339|    378|         accum.randomize_rep(rng);
  340|    378|      }
  341|  8.06k|   }
  342|       |
  343|    126|   CT::unpoison(accum);
  344|    126|   return accum;
  345|    126|}
pcurves_brainpool384r1.cpp:_ZZN5Botan18basemul_booth_execINS_6PCurve12_GLOBAL__N_114brainpool384r15CurveELm6ENS_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_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|    172|                                               RandomNumberGenerator& rng) {
  309|    172|   static constexpr size_t WindowElements = 1 << (WindowBits - 1);
  310|       |
  311|    172|   const size_t windows = (scalar.bits() + WindowBits) / WindowBits;
  312|       |
  313|    172|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|    172|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|    172|      const size_t raw = w_bits << 1;
  317|    172|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|    172|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|    172|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|    172|      pt.conditional_assign(tneg, pt.negate());
  322|    172|      CT::poison(pt);
  323|    172|      pt.randomize_rep(rng);
  324|    172|      return pt;
  325|    172|   }();
  326|       |
  327|  14.7k|   for(size_t i = 1; i != windows; ++i) {
  ------------------
  |  Branch (327:22): [True: 14.6k, False: 172]
  ------------------
  328|       |      // Extract W+1 bits overlapping by 1 with the previous window
  329|  14.6k|      const size_t bit_pos = WindowBits * i - 1;
  330|  14.6k|      const size_t raw = scalar.get_window(bit_pos);
  331|  14.6k|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  332|       |
  333|  14.6k|      const auto tbl_i = table.subspan(WindowElements * i, WindowElements);
  334|       |
  335|  14.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|  14.6k|      if(i <= 3) {
  ------------------
  |  Branch (338:10): [True: 516, False: 14.1k]
  ------------------
  339|    516|         accum.randomize_rep(rng);
  340|    516|      }
  341|  14.6k|   }
  342|       |
  343|    172|   CT::unpoison(accum);
  344|    172|   return accum;
  345|    172|}
pcurves_brainpool512r1.cpp:_ZZN5Botan18basemul_booth_execINS_6PCurve12_GLOBAL__N_114brainpool512r15CurveELm6ENS_17BlindedScalarBitsIS4_Lm7EEEEENT_15ProjectivePointENSt3__14spanIKNS7_11AffinePointELm18446744073709551615EEERKT1_RNS_21RandomNumberGeneratorEENKUlvE_clEv:
  313|    172|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|    172|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|    172|      const size_t raw = w_bits << 1;
  317|    172|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|    172|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|    172|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|    172|      pt.conditional_assign(tneg, pt.negate());
  322|    172|      CT::poison(pt);
  323|    172|      pt.randomize_rep(rng);
  324|    172|      return pt;
  325|    172|   }();
pcurves_generic.cpp:_ZN5Botan18basemul_booth_execINS_6PCurve12_GLOBAL__N_112GenericCurveELm6ENS2_24GenericBlindedScalarBitsEEENT_15ProjectivePointENSt3__14spanIKNS5_11AffinePointELm18446744073709551615EEERKT1_RNS_21RandomNumberGeneratorE:
  308|    254|                                               RandomNumberGenerator& rng) {
  309|    254|   static constexpr size_t WindowElements = 1 << (WindowBits - 1);
  310|       |
  311|    254|   const size_t windows = (scalar.bits() + WindowBits) / WindowBits;
  312|       |
  313|    254|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|    254|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|    254|      const size_t raw = w_bits << 1;
  317|    254|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|    254|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|    254|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|    254|      pt.conditional_assign(tneg, pt.negate());
  322|    254|      CT::poison(pt);
  323|    254|      pt.randomize_rep(rng);
  324|    254|      return pt;
  325|    254|   }();
  326|       |
  327|  10.2k|   for(size_t i = 1; i != windows; ++i) {
  ------------------
  |  Branch (327:22): [True: 9.95k, False: 254]
  ------------------
  328|       |      // Extract W+1 bits overlapping by 1 with the previous window
  329|  9.95k|      const size_t bit_pos = WindowBits * i - 1;
  330|  9.95k|      const size_t raw = scalar.get_window(bit_pos);
  331|  9.95k|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  332|       |
  333|  9.95k|      const auto tbl_i = table.subspan(WindowElements * i, WindowElements);
  334|       |
  335|  9.95k|      accum = C::ProjectivePoint::add_or_sub(accum, C::AffinePoint::ct_select(tbl_i, tidx), tneg);
  336|       |
  337|       |      // Conditional ok: loop iteration count is public
  338|  9.95k|      if(i <= 3) {
  ------------------
  |  Branch (338:10): [True: 762, False: 9.19k]
  ------------------
  339|    762|         accum.randomize_rep(rng);
  340|    762|      }
  341|  9.95k|   }
  342|       |
  343|    254|   CT::unpoison(accum);
  344|    254|   return accum;
  345|    254|}
pcurves_generic.cpp:_ZZN5Botan18basemul_booth_execINS_6PCurve12_GLOBAL__N_112GenericCurveELm6ENS2_24GenericBlindedScalarBitsEEENT_15ProjectivePointENSt3__14spanIKNS5_11AffinePointELm18446744073709551615EEERKT1_RNS_21RandomNumberGeneratorEENKUlvE_clEv:
  313|    254|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|    254|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|    254|      const size_t raw = w_bits << 1;
  317|    254|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|    254|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|    254|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|    254|      pt.conditional_assign(tneg, pt.negate());
  322|    254|      CT::poison(pt);
  323|    254|      pt.randomize_rep(rng);
  324|    254|      return pt;
  325|    254|   }();
pcurves_generic.cpp:_ZN5Botan19basemul_booth_setupINS_6PCurve12_GLOBAL__N_112GenericCurveELm6EEENSt3__16vectorINT_11AffinePointENS4_9allocatorIS7_EEEERKS7_m:
  254|    345|std::vector<typename C::AffinePoint> basemul_booth_setup(const typename C::AffinePoint& p, size_t max_scalar_bits) {
  255|    345|   static_assert(WindowBits >= 1 && WindowBits <= 8);
  256|       |
  257|       |   // 2^(W-1) elements per window [1*base .. 2^(W-1)*base]
  258|    345|   constexpr size_t WindowElements = 1 << (WindowBits - 1);
  259|       |
  260|    345|   const size_t Windows = (max_scalar_bits + WindowBits - 1) / WindowBits;
  261|       |
  262|    345|   const size_t TableSize = Windows * WindowElements;
  263|       |
  264|    345|   std::vector<typename C::ProjectivePoint> table;
  265|    345|   table.reserve(TableSize);
  266|       |
  267|    345|   auto accum = C::ProjectivePoint::from_affine(p);
  268|       |
  269|  16.2k|   for(size_t i = 0; i != TableSize; i += WindowElements) {
  ------------------
  |  Branch (269:22): [True: 15.8k, False: 345]
  ------------------
  270|  15.8k|      table.push_back(accum);
  271|       |
  272|   507k|      for(size_t j = 1; j != WindowElements; ++j) {
  ------------------
  |  Branch (272:25): [True: 491k, False: 15.8k]
  ------------------
  273|       |         // Conditional ok: loop iteration count is public
  274|   491k|         if(j % 2 == 1) {
  ------------------
  |  Branch (274:13): [True: 253k, False: 238k]
  ------------------
  275|   253k|            table.emplace_back(table[i + j / 2].dbl());
  276|   253k|         } else {
  277|   238k|            table.emplace_back(table[i + j - 1] + table[i]);
  278|   238k|         }
  279|   491k|      }
  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|  15.8k|      accum = table[i + WindowElements - 1].dbl();
  284|  15.8k|   }
  285|       |
  286|       |   // Variable time batch conversion is fine since generator is public
  287|    345|   return to_affine_batch<C, true>(table);
  288|    345|}
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|    222|                                               RandomNumberGenerator& rng) {
  309|    222|   static constexpr size_t WindowElements = 1 << (WindowBits - 1);
  310|       |
  311|    222|   const size_t windows = (scalar.bits() + WindowBits) / WindowBits;
  312|       |
  313|    222|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|    222|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|    222|      const size_t raw = w_bits << 1;
  317|    222|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|    222|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|    222|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|    222|      pt.conditional_assign(tneg, pt.negate());
  322|    222|      CT::poison(pt);
  323|    222|      pt.randomize_rep(rng);
  324|    222|      return pt;
  325|    222|   }();
  326|       |
  327|  8.43k|   for(size_t i = 1; i != windows; ++i) {
  ------------------
  |  Branch (327:22): [True: 8.21k, False: 222]
  ------------------
  328|       |      // Extract W+1 bits overlapping by 1 with the previous window
  329|  8.21k|      const size_t bit_pos = WindowBits * i - 1;
  330|  8.21k|      const size_t raw = scalar.get_window(bit_pos);
  331|  8.21k|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  332|       |
  333|  8.21k|      const auto tbl_i = table.subspan(WindowElements * i, WindowElements);
  334|       |
  335|  8.21k|      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.21k|      if(i <= 3) {
  ------------------
  |  Branch (338:10): [True: 666, False: 7.54k]
  ------------------
  339|    666|         accum.randomize_rep(rng);
  340|    666|      }
  341|  8.21k|   }
  342|       |
  343|    222|   CT::unpoison(accum);
  344|    222|   return accum;
  345|    222|}
pcurves_secp224r1.cpp:_ZZN5Botan18basemul_booth_execINS_6PCurve12_GLOBAL__N_19secp224r15CurveELm6ENS_17BlindedScalarBitsIS4_Lm7EEEEENT_15ProjectivePointENSt3__14spanIKNS7_11AffinePointELm18446744073709551615EEERKT1_RNS_21RandomNumberGeneratorEENKUlvE_clEv:
  313|    222|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|    222|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|    222|      const size_t raw = w_bits << 1;
  317|    222|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|    222|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|    222|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|    222|      pt.conditional_assign(tneg, pt.negate());
  322|    222|      CT::poison(pt);
  323|    222|      pt.randomize_rep(rng);
  324|    222|      return pt;
  325|    222|   }();
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|    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|  5.93k|   for(size_t i = 1; i != windows; ++i) {
  ------------------
  |  Branch (327:22): [True: 5.79k, False: 138]
  ------------------
  328|       |      // Extract W+1 bits overlapping by 1 with the previous window
  329|  5.79k|      const size_t bit_pos = WindowBits * i - 1;
  330|  5.79k|      const size_t raw = scalar.get_window(bit_pos);
  331|  5.79k|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  332|       |
  333|  5.79k|      const auto tbl_i = table.subspan(WindowElements * i, WindowElements);
  334|       |
  335|  5.79k|      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|  5.79k|      if(i <= 3) {
  ------------------
  |  Branch (338:10): [True: 414, False: 5.38k]
  ------------------
  339|    414|         accum.randomize_rep(rng);
  340|    414|      }
  341|  5.79k|   }
  342|       |
  343|    138|   CT::unpoison(accum);
  344|    138|   return accum;
  345|    138|}
pcurves_secp256k1.cpp:_ZZN5Botan18basemul_booth_execINS_6PCurve12_GLOBAL__N_19secp256k15CurveELm6ENS_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_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|     84|                                               RandomNumberGenerator& rng) {
  309|     84|   static constexpr size_t WindowElements = 1 << (WindowBits - 1);
  310|       |
  311|     84|   const size_t windows = (scalar.bits() + WindowBits) / WindowBits;
  312|       |
  313|     84|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|     84|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|     84|      const size_t raw = w_bits << 1;
  317|     84|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|     84|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|     84|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|     84|      pt.conditional_assign(tneg, pt.negate());
  322|     84|      CT::poison(pt);
  323|     84|      pt.randomize_rep(rng);
  324|     84|      return pt;
  325|     84|   }();
  326|       |
  327|  3.61k|   for(size_t i = 1; i != windows; ++i) {
  ------------------
  |  Branch (327:22): [True: 3.52k, False: 84]
  ------------------
  328|       |      // Extract W+1 bits overlapping by 1 with the previous window
  329|  3.52k|      const size_t bit_pos = WindowBits * i - 1;
  330|  3.52k|      const size_t raw = scalar.get_window(bit_pos);
  331|  3.52k|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  332|       |
  333|  3.52k|      const auto tbl_i = table.subspan(WindowElements * i, WindowElements);
  334|       |
  335|  3.52k|      accum = C::ProjectivePoint::add_or_sub(accum, C::AffinePoint::ct_select(tbl_i, tidx), tneg);
  336|       |
  337|       |      // Conditional ok: loop iteration count is public
  338|  3.52k|      if(i <= 3) {
  ------------------
  |  Branch (338:10): [True: 252, False: 3.27k]
  ------------------
  339|    252|         accum.randomize_rep(rng);
  340|    252|      }
  341|  3.52k|   }
  342|       |
  343|     84|   CT::unpoison(accum);
  344|     84|   return accum;
  345|     84|}
pcurves_secp256r1.cpp:_ZZN5Botan18basemul_booth_execINS_6PCurve12_GLOBAL__N_19secp256r15CurveELm6ENS_17BlindedScalarBitsIS4_Lm7EEEEENT_15ProjectivePointENSt3__14spanIKNS7_11AffinePointELm18446744073709551615EEERKT1_RNS_21RandomNumberGeneratorEENKUlvE_clEv:
  313|     84|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|     84|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|     84|      const size_t raw = w_bits << 1;
  317|     84|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|     84|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|     84|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|     84|      pt.conditional_assign(tneg, pt.negate());
  322|     84|      CT::poison(pt);
  323|     84|      pt.randomize_rep(rng);
  324|     84|      return pt;
  325|     84|   }();
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|    150|                                               RandomNumberGenerator& rng) {
  309|    150|   static constexpr size_t WindowElements = 1 << (WindowBits - 1);
  310|       |
  311|    150|   const size_t windows = (scalar.bits() + WindowBits) / WindowBits;
  312|       |
  313|    150|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|    150|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|    150|      const size_t raw = w_bits << 1;
  317|    150|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|    150|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|    150|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|    150|      pt.conditional_assign(tneg, pt.negate());
  322|    150|      CT::poison(pt);
  323|    150|      pt.randomize_rep(rng);
  324|    150|      return pt;
  325|    150|   }();
  326|       |
  327|  9.75k|   for(size_t i = 1; i != windows; ++i) {
  ------------------
  |  Branch (327:22): [True: 9.60k, False: 150]
  ------------------
  328|       |      // Extract W+1 bits overlapping by 1 with the previous window
  329|  9.60k|      const size_t bit_pos = WindowBits * i - 1;
  330|  9.60k|      const size_t raw = scalar.get_window(bit_pos);
  331|  9.60k|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  332|       |
  333|  9.60k|      const auto tbl_i = table.subspan(WindowElements * i, WindowElements);
  334|       |
  335|  9.60k|      accum = C::ProjectivePoint::add_or_sub(accum, C::AffinePoint::ct_select(tbl_i, tidx), tneg);
  336|       |
  337|       |      // Conditional ok: loop iteration count is public
  338|  9.60k|      if(i <= 3) {
  ------------------
  |  Branch (338:10): [True: 450, False: 9.15k]
  ------------------
  339|    450|         accum.randomize_rep(rng);
  340|    450|      }
  341|  9.60k|   }
  342|       |
  343|    150|   CT::unpoison(accum);
  344|    150|   return accum;
  345|    150|}
pcurves_secp384r1.cpp:_ZZN5Botan18basemul_booth_execINS_6PCurve12_GLOBAL__N_19secp384r15CurveELm6ENS_17BlindedScalarBitsIS4_Lm7EEEEENT_15ProjectivePointENSt3__14spanIKNS7_11AffinePointELm18446744073709551615EEERKT1_RNS_21RandomNumberGeneratorEENKUlvE_clEv:
  313|    150|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|    150|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|    150|      const size_t raw = w_bits << 1;
  317|    150|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|    150|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|    150|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|    150|      pt.conditional_assign(tneg, pt.negate());
  322|    150|      CT::poison(pt);
  323|    150|      pt.randomize_rep(rng);
  324|    150|      return pt;
  325|    150|   }();
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|    175|                                               RandomNumberGenerator& rng) {
  309|    175|   static constexpr size_t WindowElements = 1 << (WindowBits - 1);
  310|       |
  311|    175|   const size_t windows = (scalar.bits() + WindowBits) / WindowBits;
  312|       |
  313|    175|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|    175|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|    175|      const size_t raw = w_bits << 1;
  317|    175|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|    175|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|    175|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|    175|      pt.conditional_assign(tneg, pt.negate());
  322|    175|      CT::poison(pt);
  323|    175|      pt.randomize_rep(rng);
  324|    175|      return pt;
  325|    175|   }();
  326|       |
  327|  15.2k|   for(size_t i = 1; i != windows; ++i) {
  ------------------
  |  Branch (327:22): [True: 15.0k, False: 175]
  ------------------
  328|       |      // Extract W+1 bits overlapping by 1 with the previous window
  329|  15.0k|      const size_t bit_pos = WindowBits * i - 1;
  330|  15.0k|      const size_t raw = scalar.get_window(bit_pos);
  331|  15.0k|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  332|       |
  333|  15.0k|      const auto tbl_i = table.subspan(WindowElements * i, WindowElements);
  334|       |
  335|  15.0k|      accum = C::ProjectivePoint::add_or_sub(accum, C::AffinePoint::ct_select(tbl_i, tidx), tneg);
  336|       |
  337|       |      // Conditional ok: loop iteration count is public
  338|  15.0k|      if(i <= 3) {
  ------------------
  |  Branch (338:10): [True: 525, False: 14.5k]
  ------------------
  339|    525|         accum.randomize_rep(rng);
  340|    525|      }
  341|  15.0k|   }
  342|       |
  343|    175|   CT::unpoison(accum);
  344|    175|   return accum;
  345|    175|}
pcurves_secp521r1.cpp:_ZZN5Botan18basemul_booth_execINS_6PCurve12_GLOBAL__N_19secp521r15CurveELm6ENS_17BlindedScalarBitsIS4_Lm7EEEEENT_15ProjectivePointENSt3__14spanIKNS7_11AffinePointELm18446744073709551615EEERKT1_RNS_21RandomNumberGeneratorEENKUlvE_clEv:
  313|    175|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|    175|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|    175|      const size_t raw = w_bits << 1;
  317|    175|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|    175|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|    175|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|    175|      pt.conditional_assign(tneg, pt.negate());
  322|    175|      CT::poison(pt);
  323|    175|      pt.randomize_rep(rng);
  324|    175|      return pt;
  325|    175|   }();

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

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

pcurves_brainpool256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEE8instanceEv:
  344|  1.42k|      static std::shared_ptr<const PrimeOrderCurve> instance() {
  345|  1.42k|         static auto g_curve = std::make_shared<const PrimeOrderCurveImpl<C>>();
  346|  1.42k|         return g_curve;
  347|  1.42k|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEEC2Ev:
  342|      1|      PrimeOrderCurveImpl() : m_mul_by_g(C::G) {}
pcurves_brainpool256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEE19field_element_bytesEv:
   36|    260|      size_t field_element_bytes() const override { return C::FieldElement::BYTES; }
pcurves_brainpool256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEE8mul_by_gERKNS0_15PrimeOrderCurve6ScalarERNS_21RandomNumberGeneratorE:
   38|    130|      ProjectivePoint mul_by_g(const Scalar& scalar, RandomNumberGenerator& rng) const override {
   39|    130|         return stash(m_mul_by_g.mul(from_stash(scalar), rng));
   40|    130|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEE5stashERKNS_20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEESA_EE:
  376|    130|      static ProjectivePoint stash(const typename C::ProjectivePoint& pt) {
  377|    130|         auto x_w = pt.x().template stash_value<StorageWords>();
  378|    130|         auto y_w = pt.y().template stash_value<StorageWords>();
  379|    130|         auto z_w = pt.z().template stash_value<StorageWords>();
  380|    130|         return ProjectivePoint::_create(instance(), x_w, y_w, z_w);
  381|    130|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEE10from_stashERKNS0_15PrimeOrderCurve6ScalarE:
  354|    450|      static typename C::Scalar from_stash(const Scalar& s) {
  355|    450|         if(s._curve() != instance()) {
  ------------------
  |  Branch (355:13): [True: 0, False: 450]
  ------------------
  356|      0|            throw Invalid_Argument("Curve mismatch");
  357|      0|         }
  358|    450|         return C::Scalar::from_stash(s._value());
  359|    450|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEE5stashERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsES7_E12ScalarParamsEEEEE:
  350|    160|      static Scalar stash(const typename C::Scalar& s) {
  351|    160|         return Scalar::_create(instance(), s.template stash_value<StorageWords>());
  352|    160|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEE10from_stashERKNS0_15PrimeOrderCurve11AffinePointE:
  367|    260|      static typename C::AffinePoint from_stash(const AffinePoint& pt) {
  368|    260|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (368:13): [True: 0, False: 260]
  ------------------
  369|      0|            throw Invalid_Argument("Curve mismatch");
  370|      0|         }
  371|    260|         auto x = C::FieldElement::from_stash(pt._x());
  372|    260|         auto y = C::FieldElement::from_stash(pt._y());
  373|    260|         return typename C::AffinePoint(x, y);
  374|    260|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEE5stashERKNS_16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEEEE:
  361|    130|      static AffinePoint stash(const typename C::AffinePoint& pt) {
  362|    130|         auto x_w = pt.x().template stash_value<StorageWords>();
  363|    130|         auto y_w = pt.y().template stash_value<StorageWords>();
  364|    130|         return AffinePoint::_create(instance(), x_w, y_w);
  365|    130|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEE18deserialize_scalarENSt3__14spanIKhLm18446744073709551615EEE:
  224|    161|      std::optional<Scalar> deserialize_scalar(std::span<const uint8_t> bytes) const override {
  225|    161|         if(auto scalar = C::Scalar::deserialize(bytes)) {
  ------------------
  |  Branch (225:18): [True: 161, False: 0]
  ------------------
  226|    161|            if(!scalar->is_zero().as_bool()) {
  ------------------
  |  Branch (226:16): [True: 160, False: 1]
  ------------------
  227|    160|               return stash(*scalar);
  228|    160|            }
  229|    161|         }
  230|       |
  231|      1|         return {};
  232|    161|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEE15point_to_affineERKNS0_15PrimeOrderCurve15ProjectivePointE:
  192|    130|      AffinePoint point_to_affine(const ProjectivePoint& pt) const override {
  193|    130|         auto affine = to_affine<C>(from_stash(pt));
  194|       |
  195|    130|         const auto y2 = affine.y().square();
  196|    130|         const auto x3_ax_b = C::x3_ax_b(affine.x());
  197|    130|         const auto valid_point = affine.is_identity() || (y2 == x3_ax_b);
  198|       |
  199|    130|         BOTAN_ASSERT(valid_point.as_bool(), "Computed point is on the curve");
  ------------------
  |  |   71|    130|   do {                                                                                 \
  |  |   72|    130|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   73|    130|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (73:10): [True: 0, False: 130]
  |  |  ------------------
  |  |   74|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   75|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   76|      0|      }                                                                                 \
  |  |   77|    130|   } while(0)
  |  |  ------------------
  |  |  |  Branch (77:12): [Folded, False: 130]
  |  |  ------------------
  ------------------
  200|       |
  201|    130|         return stash(affine);
  202|    130|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEE10from_stashERKNS0_15PrimeOrderCurve15ProjectivePointE:
  383|    130|      static typename C::ProjectivePoint from_stash(const ProjectivePoint& pt) {
  384|    130|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (384:13): [True: 0, False: 130]
  ------------------
  385|      0|            throw Invalid_Argument("Curve mismatch");
  386|      0|         }
  387|    130|         auto x = C::FieldElement::from_stash(pt._x());
  388|    130|         auto y = C::FieldElement::from_stash(pt._y());
  389|    130|         auto z = C::FieldElement::from_stash(pt._z());
  390|    130|         return typename C::ProjectivePoint(x, y, z);
  391|    130|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEE24affine_point_is_identityERKNS0_15PrimeOrderCurve11AffinePointE:
  210|    130|      bool affine_point_is_identity(const AffinePoint& pt) const override {
  211|    130|         return from_stash(pt).is_identity().as_bool();
  212|    130|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEE15serialize_pointENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve11AffinePointE:
  214|    130|      void serialize_point(std::span<uint8_t> bytes, const AffinePoint& pt) const override {
  215|    130|         BOTAN_ARG_CHECK(bytes.size() == C::AffinePoint::BYTES, "Invalid length for serialize_point");
  ------------------
  |  |   35|    130|   do {                                                          \
  |  |   36|    130|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    130|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 130]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    130|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 130]
  |  |  ------------------
  ------------------
  216|    130|         from_stash(pt).serialize_to(bytes.subspan<0, C::AffinePoint::BYTES>());
  217|    130|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEE16serialize_scalarENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve6ScalarE:
  219|    160|      void serialize_scalar(std::span<uint8_t> bytes, const Scalar& scalar) const override {
  220|    160|         BOTAN_ARG_CHECK(bytes.size() == C::Scalar::BYTES, "Invalid length to serialize_scalar");
  ------------------
  |  |   35|    160|   do {                                                          \
  |  |   36|    160|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    160|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 160]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    160|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 160]
  |  |  ------------------
  ------------------
  221|    160|         return from_stash(scalar).serialize_to(bytes.subspan<0, C::Scalar::BYTES>());
  222|    160|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEE14scalar_is_zeroERKNS0_15PrimeOrderCurve6ScalarE:
  332|    160|      bool scalar_is_zero(const Scalar& s) const override { return from_stash(s).is_zero().as_bool(); }
pcurves_brainpool384r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEE8instanceEv:
  344|  1.33k|      static std::shared_ptr<const PrimeOrderCurve> instance() {
  345|  1.33k|         static auto g_curve = std::make_shared<const PrimeOrderCurveImpl<C>>();
  346|  1.33k|         return g_curve;
  347|  1.33k|      }
pcurves_brainpool384r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEEC2Ev:
  342|      1|      PrimeOrderCurveImpl() : m_mul_by_g(C::G) {}
pcurves_brainpool384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEE19field_element_bytesEv:
   36|    252|      size_t field_element_bytes() const override { return C::FieldElement::BYTES; }
pcurves_brainpool384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEE8mul_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_brainpool384r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEE5stashERKNS_20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEESA_EE:
  376|    126|      static ProjectivePoint stash(const typename C::ProjectivePoint& pt) {
  377|    126|         auto x_w = pt.x().template stash_value<StorageWords>();
  378|    126|         auto y_w = pt.y().template stash_value<StorageWords>();
  379|    126|         auto z_w = pt.z().template stash_value<StorageWords>();
  380|    126|         return ProjectivePoint::_create(instance(), x_w, y_w, z_w);
  381|    126|      }
pcurves_brainpool384r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEE10from_stashERKNS0_15PrimeOrderCurve6ScalarE:
  354|    416|      static typename C::Scalar from_stash(const Scalar& s) {
  355|    416|         if(s._curve() != instance()) {
  ------------------
  |  Branch (355:13): [True: 0, False: 416]
  ------------------
  356|      0|            throw Invalid_Argument("Curve mismatch");
  357|      0|         }
  358|    416|         return C::Scalar::from_stash(s._value());
  359|    416|      }
pcurves_brainpool384r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEE5stashERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsES7_E12ScalarParamsEEEEE:
  350|    145|      static Scalar stash(const typename C::Scalar& s) {
  351|    145|         return Scalar::_create(instance(), s.template stash_value<StorageWords>());
  352|    145|      }
pcurves_brainpool384r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEE10from_stashERKNS0_15PrimeOrderCurve11AffinePointE:
  367|    252|      static typename C::AffinePoint from_stash(const AffinePoint& pt) {
  368|    252|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (368:13): [True: 0, False: 252]
  ------------------
  369|      0|            throw Invalid_Argument("Curve mismatch");
  370|      0|         }
  371|    252|         auto x = C::FieldElement::from_stash(pt._x());
  372|    252|         auto y = C::FieldElement::from_stash(pt._y());
  373|    252|         return typename C::AffinePoint(x, y);
  374|    252|      }
pcurves_brainpool384r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEE5stashERKNS_16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEEEE:
  361|    126|      static AffinePoint stash(const typename C::AffinePoint& pt) {
  362|    126|         auto x_w = pt.x().template stash_value<StorageWords>();
  363|    126|         auto y_w = pt.y().template stash_value<StorageWords>();
  364|    126|         return AffinePoint::_create(instance(), x_w, y_w);
  365|    126|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEE18deserialize_scalarENSt3__14spanIKhLm18446744073709551615EEE:
  224|    146|      std::optional<Scalar> deserialize_scalar(std::span<const uint8_t> bytes) const override {
  225|    146|         if(auto scalar = C::Scalar::deserialize(bytes)) {
  ------------------
  |  Branch (225:18): [True: 146, False: 0]
  ------------------
  226|    146|            if(!scalar->is_zero().as_bool()) {
  ------------------
  |  Branch (226:16): [True: 145, False: 1]
  ------------------
  227|    145|               return stash(*scalar);
  228|    145|            }
  229|    146|         }
  230|       |
  231|      1|         return {};
  232|    146|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEE15point_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");
  ------------------
  |  |   71|    126|   do {                                                                                 \
  |  |   72|    126|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   73|    126|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (73:10): [True: 0, False: 126]
  |  |  ------------------
  |  |   74|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   75|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   76|      0|      }                                                                                 \
  |  |   77|    126|   } while(0)
  |  |  ------------------
  |  |  |  Branch (77:12): [Folded, False: 126]
  |  |  ------------------
  ------------------
  200|       |
  201|    126|         return stash(affine);
  202|    126|      }
pcurves_brainpool384r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEE10from_stashERKNS0_15PrimeOrderCurve15ProjectivePointE:
  383|    126|      static typename C::ProjectivePoint from_stash(const ProjectivePoint& pt) {
  384|    126|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (384:13): [True: 0, False: 126]
  ------------------
  385|      0|            throw Invalid_Argument("Curve mismatch");
  386|      0|         }
  387|    126|         auto x = C::FieldElement::from_stash(pt._x());
  388|    126|         auto y = C::FieldElement::from_stash(pt._y());
  389|    126|         auto z = C::FieldElement::from_stash(pt._z());
  390|    126|         return typename C::ProjectivePoint(x, y, z);
  391|    126|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEE24affine_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_brainpool384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEE15serialize_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_brainpool384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEE16serialize_scalarENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve6ScalarE:
  219|    145|      void serialize_scalar(std::span<uint8_t> bytes, const Scalar& scalar) const override {
  220|    145|         BOTAN_ARG_CHECK(bytes.size() == C::Scalar::BYTES, "Invalid length to serialize_scalar");
  ------------------
  |  |   35|    145|   do {                                                          \
  |  |   36|    145|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    145|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 145]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    145|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 145]
  |  |  ------------------
  ------------------
  221|    145|         return from_stash(scalar).serialize_to(bytes.subspan<0, C::Scalar::BYTES>());
  222|    145|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEE14scalar_is_zeroERKNS0_15PrimeOrderCurve6ScalarE:
  332|    145|      bool scalar_is_zero(const Scalar& s) const override { return from_stash(s).is_zero().as_bool(); }
pcurves_brainpool512r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEE8instanceEv:
  344|  1.82k|      static std::shared_ptr<const PrimeOrderCurve> instance() {
  345|  1.82k|         static auto g_curve = std::make_shared<const PrimeOrderCurveImpl<C>>();
  346|  1.82k|         return g_curve;
  347|  1.82k|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEEC2Ev:
  342|      1|      PrimeOrderCurveImpl() : m_mul_by_g(C::G) {}
pcurves_brainpool512r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEE19field_element_bytesEv:
   36|    344|      size_t field_element_bytes() const override { return C::FieldElement::BYTES; }
pcurves_brainpool512r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEE8mul_by_gERKNS0_15PrimeOrderCurve6ScalarERNS_21RandomNumberGeneratorE:
   38|    172|      ProjectivePoint mul_by_g(const Scalar& scalar, RandomNumberGenerator& rng) const override {
   39|    172|         return stash(m_mul_by_g.mul(from_stash(scalar), rng));
   40|    172|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEE5stashERKNS_20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEESA_EE:
  376|    172|      static ProjectivePoint stash(const typename C::ProjectivePoint& pt) {
  377|    172|         auto x_w = pt.x().template stash_value<StorageWords>();
  378|    172|         auto y_w = pt.y().template stash_value<StorageWords>();
  379|    172|         auto z_w = pt.z().template stash_value<StorageWords>();
  380|    172|         return ProjectivePoint::_create(instance(), x_w, y_w, z_w);
  381|    172|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEE10from_stashERKNS0_15PrimeOrderCurve6ScalarE:
  354|    566|      static typename C::Scalar from_stash(const Scalar& s) {
  355|    566|         if(s._curve() != instance()) {
  ------------------
  |  Branch (355:13): [True: 0, False: 566]
  ------------------
  356|      0|            throw Invalid_Argument("Curve mismatch");
  357|      0|         }
  358|    566|         return C::Scalar::from_stash(s._value());
  359|    566|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEE5stashERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsES7_E12ScalarParamsEEEEE:
  350|    197|      static Scalar stash(const typename C::Scalar& s) {
  351|    197|         return Scalar::_create(instance(), s.template stash_value<StorageWords>());
  352|    197|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEE10from_stashERKNS0_15PrimeOrderCurve11AffinePointE:
  367|    344|      static typename C::AffinePoint from_stash(const AffinePoint& pt) {
  368|    344|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (368:13): [True: 0, False: 344]
  ------------------
  369|      0|            throw Invalid_Argument("Curve mismatch");
  370|      0|         }
  371|    344|         auto x = C::FieldElement::from_stash(pt._x());
  372|    344|         auto y = C::FieldElement::from_stash(pt._y());
  373|    344|         return typename C::AffinePoint(x, y);
  374|    344|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEE5stashERKNS_16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEEEE:
  361|    172|      static AffinePoint stash(const typename C::AffinePoint& pt) {
  362|    172|         auto x_w = pt.x().template stash_value<StorageWords>();
  363|    172|         auto y_w = pt.y().template stash_value<StorageWords>();
  364|    172|         return AffinePoint::_create(instance(), x_w, y_w);
  365|    172|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEE18deserialize_scalarENSt3__14spanIKhLm18446744073709551615EEE:
  224|    198|      std::optional<Scalar> deserialize_scalar(std::span<const uint8_t> bytes) const override {
  225|    198|         if(auto scalar = C::Scalar::deserialize(bytes)) {
  ------------------
  |  Branch (225:18): [True: 198, False: 0]
  ------------------
  226|    198|            if(!scalar->is_zero().as_bool()) {
  ------------------
  |  Branch (226:16): [True: 197, False: 1]
  ------------------
  227|    197|               return stash(*scalar);
  228|    197|            }
  229|    198|         }
  230|       |
  231|      1|         return {};
  232|    198|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEE15point_to_affineERKNS0_15PrimeOrderCurve15ProjectivePointE:
  192|    172|      AffinePoint point_to_affine(const ProjectivePoint& pt) const override {
  193|    172|         auto affine = to_affine<C>(from_stash(pt));
  194|       |
  195|    172|         const auto y2 = affine.y().square();
  196|    172|         const auto x3_ax_b = C::x3_ax_b(affine.x());
  197|    172|         const auto valid_point = affine.is_identity() || (y2 == x3_ax_b);
  198|       |
  199|    172|         BOTAN_ASSERT(valid_point.as_bool(), "Computed point is on the curve");
  ------------------
  |  |   71|    172|   do {                                                                                 \
  |  |   72|    172|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   73|    172|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (73:10): [True: 0, False: 172]
  |  |  ------------------
  |  |   74|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   75|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   76|      0|      }                                                                                 \
  |  |   77|    172|   } while(0)
  |  |  ------------------
  |  |  |  Branch (77:12): [Folded, False: 172]
  |  |  ------------------
  ------------------
  200|       |
  201|    172|         return stash(affine);
  202|    172|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEE10from_stashERKNS0_15PrimeOrderCurve15ProjectivePointE:
  383|    172|      static typename C::ProjectivePoint from_stash(const ProjectivePoint& pt) {
  384|    172|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (384:13): [True: 0, False: 172]
  ------------------
  385|      0|            throw Invalid_Argument("Curve mismatch");
  386|      0|         }
  387|    172|         auto x = C::FieldElement::from_stash(pt._x());
  388|    172|         auto y = C::FieldElement::from_stash(pt._y());
  389|    172|         auto z = C::FieldElement::from_stash(pt._z());
  390|    172|         return typename C::ProjectivePoint(x, y, z);
  391|    172|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEE24affine_point_is_identityERKNS0_15PrimeOrderCurve11AffinePointE:
  210|    172|      bool affine_point_is_identity(const AffinePoint& pt) const override {
  211|    172|         return from_stash(pt).is_identity().as_bool();
  212|    172|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEE15serialize_pointENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve11AffinePointE:
  214|    172|      void serialize_point(std::span<uint8_t> bytes, const AffinePoint& pt) const override {
  215|    172|         BOTAN_ARG_CHECK(bytes.size() == C::AffinePoint::BYTES, "Invalid length for serialize_point");
  ------------------
  |  |   35|    172|   do {                                                          \
  |  |   36|    172|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    172|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 172]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    172|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 172]
  |  |  ------------------
  ------------------
  216|    172|         from_stash(pt).serialize_to(bytes.subspan<0, C::AffinePoint::BYTES>());
  217|    172|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEE16serialize_scalarENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve6ScalarE:
  219|    197|      void serialize_scalar(std::span<uint8_t> bytes, const Scalar& scalar) const override {
  220|    197|         BOTAN_ARG_CHECK(bytes.size() == C::Scalar::BYTES, "Invalid length to serialize_scalar");
  ------------------
  |  |   35|    197|   do {                                                          \
  |  |   36|    197|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    197|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 197]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    197|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 197]
  |  |  ------------------
  ------------------
  221|    197|         return from_stash(scalar).serialize_to(bytes.subspan<0, C::Scalar::BYTES>());
  222|    197|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEE14scalar_is_zeroERKNS0_15PrimeOrderCurve6ScalarE:
  332|    197|      bool scalar_is_zero(const Scalar& s) const override { return from_stash(s).is_zero().as_bool(); }
pcurves_secp224r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEE8instanceEv:
  344|  2.49k|      static std::shared_ptr<const PrimeOrderCurve> instance() {
  345|  2.49k|         static auto g_curve = std::make_shared<const PrimeOrderCurveImpl<C>>();
  346|  2.49k|         return g_curve;
  347|  2.49k|      }
pcurves_secp224r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEEC2Ev:
  342|      1|      PrimeOrderCurveImpl() : m_mul_by_g(C::G) {}
pcurves_secp224r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEE19field_element_bytesEv:
   36|    444|      size_t field_element_bytes() const override { return C::FieldElement::BYTES; }
pcurves_secp224r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEE8mul_by_gERKNS0_15PrimeOrderCurve6ScalarERNS_21RandomNumberGeneratorE:
   38|    222|      ProjectivePoint mul_by_g(const Scalar& scalar, RandomNumberGenerator& rng) const override {
   39|    222|         return stash(m_mul_by_g.mul(from_stash(scalar), rng));
   40|    222|      }
pcurves_secp224r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEE5stashERKNS_20ProjectiveCurvePointINS_6IntModINS3_12Secp224r1RepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEESA_EE:
  376|    222|      static ProjectivePoint stash(const typename C::ProjectivePoint& pt) {
  377|    222|         auto x_w = pt.x().template stash_value<StorageWords>();
  378|    222|         auto y_w = pt.y().template stash_value<StorageWords>();
  379|    222|         auto z_w = pt.z().template stash_value<StorageWords>();
  380|    222|         return ProjectivePoint::_create(instance(), x_w, y_w, z_w);
  381|    222|      }
pcurves_secp224r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEE10from_stashERKNS0_15PrimeOrderCurve6ScalarE:
  354|    802|      static typename C::Scalar from_stash(const Scalar& s) {
  355|    802|         if(s._curve() != instance()) {
  ------------------
  |  Branch (355:13): [True: 0, False: 802]
  ------------------
  356|      0|            throw Invalid_Argument("Curve mismatch");
  357|      0|         }
  358|    802|         return C::Scalar::from_stash(s._value());
  359|    802|      }
pcurves_secp224r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEE5stashERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS3_12Secp224r1RepEE12ScalarParamsEEEEE:
  350|    290|      static Scalar stash(const typename C::Scalar& s) {
  351|    290|         return Scalar::_create(instance(), s.template stash_value<StorageWords>());
  352|    290|      }
pcurves_secp224r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEE10from_stashERKNS0_15PrimeOrderCurve11AffinePointE:
  367|    444|      static typename C::AffinePoint from_stash(const AffinePoint& pt) {
  368|    444|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (368:13): [True: 0, False: 444]
  ------------------
  369|      0|            throw Invalid_Argument("Curve mismatch");
  370|      0|         }
  371|    444|         auto x = C::FieldElement::from_stash(pt._x());
  372|    444|         auto y = C::FieldElement::from_stash(pt._y());
  373|    444|         return typename C::AffinePoint(x, y);
  374|    444|      }
pcurves_secp224r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEE5stashERKNS_16AffineCurvePointINS_6IntModINS3_12Secp224r1RepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEEEE:
  361|    222|      static AffinePoint stash(const typename C::AffinePoint& pt) {
  362|    222|         auto x_w = pt.x().template stash_value<StorageWords>();
  363|    222|         auto y_w = pt.y().template stash_value<StorageWords>();
  364|    222|         return AffinePoint::_create(instance(), x_w, y_w);
  365|    222|      }
pcurves_secp224r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEE30deserialize_point_uncompressedENSt3__14spanIKhLm18446744073709551615EEE:
  244|     60|      std::optional<AffinePoint> deserialize_point_uncompressed(std::span<const uint8_t> bytes) const override {
  245|     60|         constexpr size_t FieldElementBytes = C::FieldElement::BYTES;
  246|     60|         constexpr size_t UncompressedBytes = 2 * C::FieldElement::BYTES + 1;
  247|       |
  248|     60|         if(bytes.size() == UncompressedBytes && bytes[0] == 0x04) {
  ------------------
  |  Branch (248:13): [True: 60, False: 0]
  |  Branch (248:50): [True: 60, False: 0]
  ------------------
  249|     60|            const auto encoded_point = bytes.subspan(1);
  250|     60|            auto x = C::FieldElement::deserialize(encoded_point.first(FieldElementBytes));
  251|     60|            auto y = C::FieldElement::deserialize(encoded_point.last(FieldElementBytes));
  252|       |
  253|     60|            if(x && y) {
  ------------------
  |  Branch (253:16): [True: 58, False: 2]
  |  Branch (253:21): [True: 56, False: 2]
  ------------------
  254|       |               // Check that y^2 = x^3 + ax + b
  255|     56|               const auto lhs = (*y).square();
  256|     56|               const auto rhs = C::x3_ax_b(*x);
  257|     56|               const auto valid = (lhs == rhs);
  258|     56|               if(valid.as_bool()) {
  ------------------
  |  Branch (258:19): [True: 0, False: 56]
  ------------------
  259|      0|                  return stash(typename C::AffinePoint(*x, *y));
  260|      0|               }
  261|     56|            }
  262|     60|         }
  263|       |
  264|     60|         return {};
  265|     60|      }
pcurves_secp224r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEE18deserialize_scalarENSt3__14spanIKhLm18446744073709551615EEE:
  224|    292|      std::optional<Scalar> deserialize_scalar(std::span<const uint8_t> bytes) const override {
  225|    292|         if(auto scalar = C::Scalar::deserialize(bytes)) {
  ------------------
  |  Branch (225:18): [True: 291, False: 1]
  ------------------
  226|    291|            if(!scalar->is_zero().as_bool()) {
  ------------------
  |  Branch (226:16): [True: 290, False: 1]
  ------------------
  227|    290|               return stash(*scalar);
  228|    290|            }
  229|    291|         }
  230|       |
  231|      2|         return {};
  232|    292|      }
pcurves_secp224r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEE15point_to_affineERKNS0_15PrimeOrderCurve15ProjectivePointE:
  192|    222|      AffinePoint point_to_affine(const ProjectivePoint& pt) const override {
  193|    222|         auto affine = to_affine<C>(from_stash(pt));
  194|       |
  195|    222|         const auto y2 = affine.y().square();
  196|    222|         const auto x3_ax_b = C::x3_ax_b(affine.x());
  197|    222|         const auto valid_point = affine.is_identity() || (y2 == x3_ax_b);
  198|       |
  199|    222|         BOTAN_ASSERT(valid_point.as_bool(), "Computed point is on the curve");
  ------------------
  |  |   71|    222|   do {                                                                                 \
  |  |   72|    222|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   73|    222|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (73:10): [True: 0, False: 222]
  |  |  ------------------
  |  |   74|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   75|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   76|      0|      }                                                                                 \
  |  |   77|    222|   } while(0)
  |  |  ------------------
  |  |  |  Branch (77:12): [Folded, False: 222]
  |  |  ------------------
  ------------------
  200|       |
  201|    222|         return stash(affine);
  202|    222|      }
pcurves_secp224r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEE10from_stashERKNS0_15PrimeOrderCurve15ProjectivePointE:
  383|    222|      static typename C::ProjectivePoint from_stash(const ProjectivePoint& pt) {
  384|    222|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (384:13): [True: 0, False: 222]
  ------------------
  385|      0|            throw Invalid_Argument("Curve mismatch");
  386|      0|         }
  387|    222|         auto x = C::FieldElement::from_stash(pt._x());
  388|    222|         auto y = C::FieldElement::from_stash(pt._y());
  389|    222|         auto z = C::FieldElement::from_stash(pt._z());
  390|    222|         return typename C::ProjectivePoint(x, y, z);
  391|    222|      }
pcurves_secp224r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEE24affine_point_is_identityERKNS0_15PrimeOrderCurve11AffinePointE:
  210|    222|      bool affine_point_is_identity(const AffinePoint& pt) const override {
  211|    222|         return from_stash(pt).is_identity().as_bool();
  212|    222|      }
pcurves_secp224r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEE15serialize_pointENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve11AffinePointE:
  214|    222|      void serialize_point(std::span<uint8_t> bytes, const AffinePoint& pt) const override {
  215|    222|         BOTAN_ARG_CHECK(bytes.size() == C::AffinePoint::BYTES, "Invalid length for serialize_point");
  ------------------
  |  |   35|    222|   do {                                                          \
  |  |   36|    222|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    222|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 222]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    222|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 222]
  |  |  ------------------
  ------------------
  216|    222|         from_stash(pt).serialize_to(bytes.subspan<0, C::AffinePoint::BYTES>());
  217|    222|      }
pcurves_secp224r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEE16serialize_scalarENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve6ScalarE:
  219|    290|      void serialize_scalar(std::span<uint8_t> bytes, const Scalar& scalar) const override {
  220|    290|         BOTAN_ARG_CHECK(bytes.size() == C::Scalar::BYTES, "Invalid length to serialize_scalar");
  ------------------
  |  |   35|    290|   do {                                                          \
  |  |   36|    290|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    290|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 290]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    290|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 290]
  |  |  ------------------
  ------------------
  221|    290|         return from_stash(scalar).serialize_to(bytes.subspan<0, C::Scalar::BYTES>());
  222|    290|      }
pcurves_secp224r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEE14scalar_is_zeroERKNS0_15PrimeOrderCurve6ScalarE:
  332|    290|      bool scalar_is_zero(const Scalar& s) const override { return from_stash(s).is_zero().as_bool(); }
pcurves_secp256k1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE8instanceEv:
  344|  1.47k|      static std::shared_ptr<const PrimeOrderCurve> instance() {
  345|  1.47k|         static auto g_curve = std::make_shared<const PrimeOrderCurveImpl<C>>();
  346|  1.47k|         return g_curve;
  347|  1.47k|      }
pcurves_secp256k1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEEC2Ev:
  342|      1|      PrimeOrderCurveImpl() : m_mul_by_g(C::G) {}
pcurves_secp256k1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE19field_element_bytesEv:
   36|    276|      size_t field_element_bytes() const override { return C::FieldElement::BYTES; }
pcurves_secp256k1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE8mul_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_secp256k1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE5stashERKNS_20ProjectiveCurvePointINS_6IntModINS3_12Secp256k1RepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEESA_EE:
  376|    138|      static ProjectivePoint stash(const typename C::ProjectivePoint& pt) {
  377|    138|         auto x_w = pt.x().template stash_value<StorageWords>();
  378|    138|         auto y_w = pt.y().template stash_value<StorageWords>();
  379|    138|         auto z_w = pt.z().template stash_value<StorageWords>();
  380|    138|         return ProjectivePoint::_create(instance(), x_w, y_w, z_w);
  381|    138|      }
pcurves_secp256k1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE10from_stashERKNS0_15PrimeOrderCurve6ScalarE:
  354|    460|      static typename C::Scalar from_stash(const Scalar& s) {
  355|    460|         if(s._curve() != instance()) {
  ------------------
  |  Branch (355:13): [True: 0, False: 460]
  ------------------
  356|      0|            throw Invalid_Argument("Curve mismatch");
  357|      0|         }
  358|    460|         return C::Scalar::from_stash(s._value());
  359|    460|      }
pcurves_secp256k1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE5stashERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS3_12Secp256k1RepEE12ScalarParamsEEEEE:
  350|    161|      static Scalar stash(const typename C::Scalar& s) {
  351|    161|         return Scalar::_create(instance(), s.template stash_value<StorageWords>());
  352|    161|      }
pcurves_secp256k1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE10from_stashERKNS0_15PrimeOrderCurve11AffinePointE:
  367|    276|      static typename C::AffinePoint from_stash(const AffinePoint& pt) {
  368|    276|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (368:13): [True: 0, False: 276]
  ------------------
  369|      0|            throw Invalid_Argument("Curve mismatch");
  370|      0|         }
  371|    276|         auto x = C::FieldElement::from_stash(pt._x());
  372|    276|         auto y = C::FieldElement::from_stash(pt._y());
  373|    276|         return typename C::AffinePoint(x, y);
  374|    276|      }
pcurves_secp256k1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE5stashERKNS_16AffineCurvePointINS_6IntModINS3_12Secp256k1RepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEEEE:
  361|    138|      static AffinePoint stash(const typename C::AffinePoint& pt) {
  362|    138|         auto x_w = pt.x().template stash_value<StorageWords>();
  363|    138|         auto y_w = pt.y().template stash_value<StorageWords>();
  364|    138|         return AffinePoint::_create(instance(), x_w, y_w);
  365|    138|      }
pcurves_secp256k1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE18deserialize_scalarENSt3__14spanIKhLm18446744073709551615EEE:
  224|    163|      std::optional<Scalar> deserialize_scalar(std::span<const uint8_t> bytes) const override {
  225|    163|         if(auto scalar = C::Scalar::deserialize(bytes)) {
  ------------------
  |  Branch (225:18): [True: 163, False: 0]
  ------------------
  226|    163|            if(!scalar->is_zero().as_bool()) {
  ------------------
  |  Branch (226:16): [True: 161, False: 2]
  ------------------
  227|    161|               return stash(*scalar);
  228|    161|            }
  229|    163|         }
  230|       |
  231|      2|         return {};
  232|    163|      }
pcurves_secp256k1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE15point_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");
  ------------------
  |  |   71|    138|   do {                                                                                 \
  |  |   72|    138|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   73|    138|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (73:10): [True: 0, False: 138]
  |  |  ------------------
  |  |   74|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   75|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   76|      0|      }                                                                                 \
  |  |   77|    138|   } while(0)
  |  |  ------------------
  |  |  |  Branch (77:12): [Folded, False: 138]
  |  |  ------------------
  ------------------
  200|       |
  201|    138|         return stash(affine);
  202|    138|      }
pcurves_secp256k1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE10from_stashERKNS0_15PrimeOrderCurve15ProjectivePointE:
  383|    138|      static typename C::ProjectivePoint from_stash(const ProjectivePoint& pt) {
  384|    138|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (384:13): [True: 0, False: 138]
  ------------------
  385|      0|            throw Invalid_Argument("Curve mismatch");
  386|      0|         }
  387|    138|         auto x = C::FieldElement::from_stash(pt._x());
  388|    138|         auto y = C::FieldElement::from_stash(pt._y());
  389|    138|         auto z = C::FieldElement::from_stash(pt._z());
  390|    138|         return typename C::ProjectivePoint(x, y, z);
  391|    138|      }
pcurves_secp256k1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE24affine_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_secp256k1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE15serialize_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_secp256k1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE16serialize_scalarENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve6ScalarE:
  219|    161|      void serialize_scalar(std::span<uint8_t> bytes, const Scalar& scalar) const override {
  220|    161|         BOTAN_ARG_CHECK(bytes.size() == C::Scalar::BYTES, "Invalid length to serialize_scalar");
  ------------------
  |  |   35|    161|   do {                                                          \
  |  |   36|    161|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    161|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 161]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    161|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 161]
  |  |  ------------------
  ------------------
  221|    161|         return from_stash(scalar).serialize_to(bytes.subspan<0, C::Scalar::BYTES>());
  222|    161|      }
pcurves_secp256k1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE14scalar_is_zeroERKNS0_15PrimeOrderCurve6ScalarE:
  332|    161|      bool scalar_is_zero(const Scalar& s) const override { return from_stash(s).is_zero().as_bool(); }
pcurves_secp256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE8instanceEv:
  344|    899|      static std::shared_ptr<const PrimeOrderCurve> instance() {
  345|    899|         static auto g_curve = std::make_shared<const PrimeOrderCurveImpl<C>>();
  346|    899|         return g_curve;
  347|    899|      }
pcurves_secp256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEEC2Ev:
  342|      1|      PrimeOrderCurveImpl() : m_mul_by_g(C::G) {}
pcurves_secp256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE19field_element_bytesEv:
   36|    168|      size_t field_element_bytes() const override { return C::FieldElement::BYTES; }
pcurves_secp256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE8mul_by_gERKNS0_15PrimeOrderCurve6ScalarERNS_21RandomNumberGeneratorE:
   38|     84|      ProjectivePoint mul_by_g(const Scalar& scalar, RandomNumberGenerator& rng) const override {
   39|     84|         return stash(m_mul_by_g.mul(from_stash(scalar), rng));
   40|     84|      }
pcurves_secp256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE5stashERKNS_20ProjectiveCurvePointINS_6IntModINS2_12Secp256r1RepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEESA_EE:
  376|     84|      static ProjectivePoint stash(const typename C::ProjectivePoint& pt) {
  377|     84|         auto x_w = pt.x().template stash_value<StorageWords>();
  378|     84|         auto y_w = pt.y().template stash_value<StorageWords>();
  379|     84|         auto z_w = pt.z().template stash_value<StorageWords>();
  380|     84|         return ProjectivePoint::_create(instance(), x_w, y_w, z_w);
  381|     84|      }
pcurves_secp256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE10from_stashERKNS0_15PrimeOrderCurve6ScalarE:
  354|    252|      static typename C::Scalar from_stash(const Scalar& s) {
  355|    252|         if(s._curve() != instance()) {
  ------------------
  |  Branch (355:13): [True: 0, False: 252]
  ------------------
  356|      0|            throw Invalid_Argument("Curve mismatch");
  357|      0|         }
  358|    252|         return C::Scalar::from_stash(s._value());
  359|    252|      }
pcurves_secp256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE5stashERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS2_12Secp256r1RepEE12ScalarParamsEEEEE:
  350|     84|      static Scalar stash(const typename C::Scalar& s) {
  351|     84|         return Scalar::_create(instance(), s.template stash_value<StorageWords>());
  352|     84|      }
pcurves_secp256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE10from_stashERKNS0_15PrimeOrderCurve11AffinePointE:
  367|    168|      static typename C::AffinePoint from_stash(const AffinePoint& pt) {
  368|    168|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (368:13): [True: 0, False: 168]
  ------------------
  369|      0|            throw Invalid_Argument("Curve mismatch");
  370|      0|         }
  371|    168|         auto x = C::FieldElement::from_stash(pt._x());
  372|    168|         auto y = C::FieldElement::from_stash(pt._y());
  373|    168|         return typename C::AffinePoint(x, y);
  374|    168|      }
pcurves_secp256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE5stashERKNS_16AffineCurvePointINS_6IntModINS2_12Secp256r1RepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEEEE:
  361|     84|      static AffinePoint stash(const typename C::AffinePoint& pt) {
  362|     84|         auto x_w = pt.x().template stash_value<StorageWords>();
  363|     84|         auto y_w = pt.y().template stash_value<StorageWords>();
  364|     84|         return AffinePoint::_create(instance(), x_w, y_w);
  365|     84|      }
pcurves_secp256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE18deserialize_scalarENSt3__14spanIKhLm18446744073709551615EEE:
  224|     85|      std::optional<Scalar> deserialize_scalar(std::span<const uint8_t> bytes) const override {
  225|     85|         if(auto scalar = C::Scalar::deserialize(bytes)) {
  ------------------
  |  Branch (225:18): [True: 85, False: 0]
  ------------------
  226|     85|            if(!scalar->is_zero().as_bool()) {
  ------------------
  |  Branch (226:16): [True: 84, False: 1]
  ------------------
  227|     84|               return stash(*scalar);
  228|     84|            }
  229|     85|         }
  230|       |
  231|      1|         return {};
  232|     85|      }
pcurves_secp256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE15point_to_affineERKNS0_15PrimeOrderCurve15ProjectivePointE:
  192|     84|      AffinePoint point_to_affine(const ProjectivePoint& pt) const override {
  193|     84|         auto affine = to_affine<C>(from_stash(pt));
  194|       |
  195|     84|         const auto y2 = affine.y().square();
  196|     84|         const auto x3_ax_b = C::x3_ax_b(affine.x());
  197|     84|         const auto valid_point = affine.is_identity() || (y2 == x3_ax_b);
  198|       |
  199|     84|         BOTAN_ASSERT(valid_point.as_bool(), "Computed point is on the curve");
  ------------------
  |  |   71|     84|   do {                                                                                 \
  |  |   72|     84|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   73|     84|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (73:10): [True: 0, False: 84]
  |  |  ------------------
  |  |   74|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   75|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   76|      0|      }                                                                                 \
  |  |   77|     84|   } while(0)
  |  |  ------------------
  |  |  |  Branch (77:12): [Folded, False: 84]
  |  |  ------------------
  ------------------
  200|       |
  201|     84|         return stash(affine);
  202|     84|      }
pcurves_secp256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE10from_stashERKNS0_15PrimeOrderCurve15ProjectivePointE:
  383|     84|      static typename C::ProjectivePoint from_stash(const ProjectivePoint& pt) {
  384|     84|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (384:13): [True: 0, False: 84]
  ------------------
  385|      0|            throw Invalid_Argument("Curve mismatch");
  386|      0|         }
  387|     84|         auto x = C::FieldElement::from_stash(pt._x());
  388|     84|         auto y = C::FieldElement::from_stash(pt._y());
  389|     84|         auto z = C::FieldElement::from_stash(pt._z());
  390|     84|         return typename C::ProjectivePoint(x, y, z);
  391|     84|      }
pcurves_secp256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE24affine_point_is_identityERKNS0_15PrimeOrderCurve11AffinePointE:
  210|     84|      bool affine_point_is_identity(const AffinePoint& pt) const override {
  211|     84|         return from_stash(pt).is_identity().as_bool();
  212|     84|      }
pcurves_secp256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE15serialize_pointENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve11AffinePointE:
  214|     84|      void serialize_point(std::span<uint8_t> bytes, const AffinePoint& pt) const override {
  215|     84|         BOTAN_ARG_CHECK(bytes.size() == C::AffinePoint::BYTES, "Invalid length for serialize_point");
  ------------------
  |  |   35|     84|   do {                                                          \
  |  |   36|     84|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|     84|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 84]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|     84|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 84]
  |  |  ------------------
  ------------------
  216|     84|         from_stash(pt).serialize_to(bytes.subspan<0, C::AffinePoint::BYTES>());
  217|     84|      }
pcurves_secp256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE16serialize_scalarENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve6ScalarE:
  219|     84|      void serialize_scalar(std::span<uint8_t> bytes, const Scalar& scalar) const override {
  220|     84|         BOTAN_ARG_CHECK(bytes.size() == C::Scalar::BYTES, "Invalid length to serialize_scalar");
  ------------------
  |  |   35|     84|   do {                                                          \
  |  |   36|     84|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|     84|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 84]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|     84|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 84]
  |  |  ------------------
  ------------------
  221|     84|         return from_stash(scalar).serialize_to(bytes.subspan<0, C::Scalar::BYTES>());
  222|     84|      }
pcurves_secp256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE14scalar_is_zeroERKNS0_15PrimeOrderCurve6ScalarE:
  332|     84|      bool scalar_is_zero(const Scalar& s) const override { return from_stash(s).is_zero().as_bool(); }
pcurves_secp384r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEE8instanceEv:
  344|  1.69k|      static std::shared_ptr<const PrimeOrderCurve> instance() {
  345|  1.69k|         static auto g_curve = std::make_shared<const PrimeOrderCurveImpl<C>>();
  346|  1.69k|         return g_curve;
  347|  1.69k|      }
pcurves_secp384r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEEC2Ev:
  342|      1|      PrimeOrderCurveImpl() : m_mul_by_g(C::G) {}
pcurves_secp384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEE19field_element_bytesEv:
   36|    300|      size_t field_element_bytes() const override { return C::FieldElement::BYTES; }
pcurves_secp384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEE8mul_by_gERKNS0_15PrimeOrderCurve6ScalarERNS_21RandomNumberGeneratorE:
   38|    150|      ProjectivePoint mul_by_g(const Scalar& scalar, RandomNumberGenerator& rng) const override {
   39|    150|         return stash(m_mul_by_g.mul(from_stash(scalar), rng));
   40|    150|      }
pcurves_secp384r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEE5stashERKNS_20ProjectiveCurvePointINS_6IntModINS2_12Secp384r1RepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEESA_EE:
  376|    150|      static ProjectivePoint stash(const typename C::ProjectivePoint& pt) {
  377|    150|         auto x_w = pt.x().template stash_value<StorageWords>();
  378|    150|         auto y_w = pt.y().template stash_value<StorageWords>();
  379|    150|         auto z_w = pt.z().template stash_value<StorageWords>();
  380|    150|         return ProjectivePoint::_create(instance(), x_w, y_w, z_w);
  381|    150|      }
pcurves_secp384r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEE10from_stashERKNS0_15PrimeOrderCurve6ScalarE:
  354|    544|      static typename C::Scalar from_stash(const Scalar& s) {
  355|    544|         if(s._curve() != instance()) {
  ------------------
  |  Branch (355:13): [True: 0, False: 544]
  ------------------
  356|      0|            throw Invalid_Argument("Curve mismatch");
  357|      0|         }
  358|    544|         return C::Scalar::from_stash(s._value());
  359|    544|      }
pcurves_secp384r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEE5stashERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS2_12Secp384r1RepEE12ScalarParamsEEEEE:
  350|    197|      static Scalar stash(const typename C::Scalar& s) {
  351|    197|         return Scalar::_create(instance(), s.template stash_value<StorageWords>());
  352|    197|      }
pcurves_secp384r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEE10from_stashERKNS0_15PrimeOrderCurve11AffinePointE:
  367|    300|      static typename C::AffinePoint from_stash(const AffinePoint& pt) {
  368|    300|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (368:13): [True: 0, False: 300]
  ------------------
  369|      0|            throw Invalid_Argument("Curve mismatch");
  370|      0|         }
  371|    300|         auto x = C::FieldElement::from_stash(pt._x());
  372|    300|         auto y = C::FieldElement::from_stash(pt._y());
  373|    300|         return typename C::AffinePoint(x, y);
  374|    300|      }
pcurves_secp384r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEE5stashERKNS_16AffineCurvePointINS_6IntModINS2_12Secp384r1RepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEEEE:
  361|    150|      static AffinePoint stash(const typename C::AffinePoint& pt) {
  362|    150|         auto x_w = pt.x().template stash_value<StorageWords>();
  363|    150|         auto y_w = pt.y().template stash_value<StorageWords>();
  364|    150|         return AffinePoint::_create(instance(), x_w, y_w);
  365|    150|      }
pcurves_secp384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEE18deserialize_scalarENSt3__14spanIKhLm18446744073709551615EEE:
  224|    198|      std::optional<Scalar> deserialize_scalar(std::span<const uint8_t> bytes) const override {
  225|    198|         if(auto scalar = C::Scalar::deserialize(bytes)) {
  ------------------
  |  Branch (225:18): [True: 198, False: 0]
  ------------------
  226|    198|            if(!scalar->is_zero().as_bool()) {
  ------------------
  |  Branch (226:16): [True: 197, False: 1]
  ------------------
  227|    197|               return stash(*scalar);
  228|    197|            }
  229|    198|         }
  230|       |
  231|      1|         return {};
  232|    198|      }
pcurves_secp384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEE15point_to_affineERKNS0_15PrimeOrderCurve15ProjectivePointE:
  192|    150|      AffinePoint point_to_affine(const ProjectivePoint& pt) const override {
  193|    150|         auto affine = to_affine<C>(from_stash(pt));
  194|       |
  195|    150|         const auto y2 = affine.y().square();
  196|    150|         const auto x3_ax_b = C::x3_ax_b(affine.x());
  197|    150|         const auto valid_point = affine.is_identity() || (y2 == x3_ax_b);
  198|       |
  199|    150|         BOTAN_ASSERT(valid_point.as_bool(), "Computed point is on the curve");
  ------------------
  |  |   71|    150|   do {                                                                                 \
  |  |   72|    150|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   73|    150|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (73:10): [True: 0, False: 150]
  |  |  ------------------
  |  |   74|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   75|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   76|      0|      }                                                                                 \
  |  |   77|    150|   } while(0)
  |  |  ------------------
  |  |  |  Branch (77:12): [Folded, False: 150]
  |  |  ------------------
  ------------------
  200|       |
  201|    150|         return stash(affine);
  202|    150|      }
pcurves_secp384r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEE10from_stashERKNS0_15PrimeOrderCurve15ProjectivePointE:
  383|    150|      static typename C::ProjectivePoint from_stash(const ProjectivePoint& pt) {
  384|    150|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (384:13): [True: 0, False: 150]
  ------------------
  385|      0|            throw Invalid_Argument("Curve mismatch");
  386|      0|         }
  387|    150|         auto x = C::FieldElement::from_stash(pt._x());
  388|    150|         auto y = C::FieldElement::from_stash(pt._y());
  389|    150|         auto z = C::FieldElement::from_stash(pt._z());
  390|    150|         return typename C::ProjectivePoint(x, y, z);
  391|    150|      }
pcurves_secp384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEE24affine_point_is_identityERKNS0_15PrimeOrderCurve11AffinePointE:
  210|    150|      bool affine_point_is_identity(const AffinePoint& pt) const override {
  211|    150|         return from_stash(pt).is_identity().as_bool();
  212|    150|      }
pcurves_secp384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEE15serialize_pointENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve11AffinePointE:
  214|    150|      void serialize_point(std::span<uint8_t> bytes, const AffinePoint& pt) const override {
  215|    150|         BOTAN_ARG_CHECK(bytes.size() == C::AffinePoint::BYTES, "Invalid length for serialize_point");
  ------------------
  |  |   35|    150|   do {                                                          \
  |  |   36|    150|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    150|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 150]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    150|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 150]
  |  |  ------------------
  ------------------
  216|    150|         from_stash(pt).serialize_to(bytes.subspan<0, C::AffinePoint::BYTES>());
  217|    150|      }
pcurves_secp384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEE16serialize_scalarENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve6ScalarE:
  219|    197|      void serialize_scalar(std::span<uint8_t> bytes, const Scalar& scalar) const override {
  220|    197|         BOTAN_ARG_CHECK(bytes.size() == C::Scalar::BYTES, "Invalid length to serialize_scalar");
  ------------------
  |  |   35|    197|   do {                                                          \
  |  |   36|    197|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    197|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 197]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    197|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 197]
  |  |  ------------------
  ------------------
  221|    197|         return from_stash(scalar).serialize_to(bytes.subspan<0, C::Scalar::BYTES>());
  222|    197|      }
pcurves_secp384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEE14scalar_is_zeroERKNS0_15PrimeOrderCurve6ScalarE:
  332|    197|      bool scalar_is_zero(const Scalar& s) const override { return from_stash(s).is_zero().as_bool(); }
pcurves_secp521r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEE8instanceEv:
  344|  2.02k|      static std::shared_ptr<const PrimeOrderCurve> instance() {
  345|  2.02k|         static auto g_curve = std::make_shared<const PrimeOrderCurveImpl<C>>();
  346|  2.02k|         return g_curve;
  347|  2.02k|      }
pcurves_secp521r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEEC2Ev:
  342|      1|      PrimeOrderCurveImpl() : m_mul_by_g(C::G) {}
pcurves_secp521r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEE19field_element_bytesEv:
   36|    352|      size_t field_element_bytes() const override { return C::FieldElement::BYTES; }
pcurves_secp521r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEE8mul_by_gERKNS0_15PrimeOrderCurve6ScalarERNS_21RandomNumberGeneratorE:
   38|    175|      ProjectivePoint mul_by_g(const Scalar& scalar, RandomNumberGenerator& rng) const override {
   39|    175|         return stash(m_mul_by_g.mul(from_stash(scalar), rng));
   40|    175|      }
pcurves_secp521r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEE5stashERKNS_20ProjectiveCurvePointINS_6IntModINS3_7P521RepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEESA_EE:
  376|    175|      static ProjectivePoint stash(const typename C::ProjectivePoint& pt) {
  377|    175|         auto x_w = pt.x().template stash_value<StorageWords>();
  378|    175|         auto y_w = pt.y().template stash_value<StorageWords>();
  379|    175|         auto z_w = pt.z().template stash_value<StorageWords>();
  380|    175|         return ProjectivePoint::_create(instance(), x_w, y_w, z_w);
  381|    175|      }
pcurves_secp521r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEE10from_stashERKNS0_15PrimeOrderCurve6ScalarE:
  354|    651|      static typename C::Scalar from_stash(const Scalar& s) {
  355|    651|         if(s._curve() != instance()) {
  ------------------
  |  Branch (355:13): [True: 0, False: 651]
  ------------------
  356|      0|            throw Invalid_Argument("Curve mismatch");
  357|      0|         }
  358|    651|         return C::Scalar::from_stash(s._value());
  359|    651|      }
pcurves_secp521r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEE5stashERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS3_7P521RepEE12ScalarParamsEEEEE:
  350|    238|      static Scalar stash(const typename C::Scalar& s) {
  351|    238|         return Scalar::_create(instance(), s.template stash_value<StorageWords>());
  352|    238|      }
pcurves_secp521r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEE10from_stashERKNS0_15PrimeOrderCurve11AffinePointE:
  367|    352|      static typename C::AffinePoint from_stash(const AffinePoint& pt) {
  368|    352|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (368:13): [True: 0, False: 352]
  ------------------
  369|      0|            throw Invalid_Argument("Curve mismatch");
  370|      0|         }
  371|    352|         auto x = C::FieldElement::from_stash(pt._x());
  372|    352|         auto y = C::FieldElement::from_stash(pt._y());
  373|    352|         return typename C::AffinePoint(x, y);
  374|    352|      }
pcurves_secp521r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEE5stashERKNS_16AffineCurvePointINS_6IntModINS3_7P521RepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEEEE:
  361|    176|      static AffinePoint stash(const typename C::AffinePoint& pt) {
  362|    176|         auto x_w = pt.x().template stash_value<StorageWords>();
  363|    176|         auto y_w = pt.y().template stash_value<StorageWords>();
  364|    176|         return AffinePoint::_create(instance(), x_w, y_w);
  365|    176|      }
pcurves_secp521r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEE30deserialize_point_uncompressedENSt3__14spanIKhLm18446744073709551615EEE:
  244|     62|      std::optional<AffinePoint> deserialize_point_uncompressed(std::span<const uint8_t> bytes) const override {
  245|     62|         constexpr size_t FieldElementBytes = C::FieldElement::BYTES;
  246|     62|         constexpr size_t UncompressedBytes = 2 * C::FieldElement::BYTES + 1;
  247|       |
  248|     62|         if(bytes.size() == UncompressedBytes && bytes[0] == 0x04) {
  ------------------
  |  Branch (248:13): [True: 62, False: 0]
  |  Branch (248:50): [True: 62, False: 0]
  ------------------
  249|     62|            const auto encoded_point = bytes.subspan(1);
  250|     62|            auto x = C::FieldElement::deserialize(encoded_point.first(FieldElementBytes));
  251|     62|            auto y = C::FieldElement::deserialize(encoded_point.last(FieldElementBytes));
  252|       |
  253|     62|            if(x && y) {
  ------------------
  |  Branch (253:16): [True: 60, False: 2]
  |  Branch (253:21): [True: 59, False: 1]
  ------------------
  254|       |               // Check that y^2 = x^3 + ax + b
  255|     59|               const auto lhs = (*y).square();
  256|     59|               const auto rhs = C::x3_ax_b(*x);
  257|     59|               const auto valid = (lhs == rhs);
  258|     59|               if(valid.as_bool()) {
  ------------------
  |  Branch (258:19): [True: 1, False: 58]
  ------------------
  259|      1|                  return stash(typename C::AffinePoint(*x, *y));
  260|      1|               }
  261|     59|            }
  262|     62|         }
  263|       |
  264|     61|         return {};
  265|     62|      }
pcurves_secp521r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEE18deserialize_scalarENSt3__14spanIKhLm18446744073709551615EEE:
  224|    240|      std::optional<Scalar> deserialize_scalar(std::span<const uint8_t> bytes) const override {
  225|    240|         if(auto scalar = C::Scalar::deserialize(bytes)) {
  ------------------
  |  Branch (225:18): [True: 239, False: 1]
  ------------------
  226|    239|            if(!scalar->is_zero().as_bool()) {
  ------------------
  |  Branch (226:16): [True: 238, False: 1]
  ------------------
  227|    238|               return stash(*scalar);
  228|    238|            }
  229|    239|         }
  230|       |
  231|      2|         return {};
  232|    240|      }
pcurves_secp521r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEE15point_to_affineERKNS0_15PrimeOrderCurve15ProjectivePointE:
  192|    175|      AffinePoint point_to_affine(const ProjectivePoint& pt) const override {
  193|    175|         auto affine = to_affine<C>(from_stash(pt));
  194|       |
  195|    175|         const auto y2 = affine.y().square();
  196|    175|         const auto x3_ax_b = C::x3_ax_b(affine.x());
  197|    175|         const auto valid_point = affine.is_identity() || (y2 == x3_ax_b);
  198|       |
  199|    175|         BOTAN_ASSERT(valid_point.as_bool(), "Computed point is on the curve");
  ------------------
  |  |   71|    175|   do {                                                                                 \
  |  |   72|    175|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   73|    175|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (73:10): [True: 0, False: 175]
  |  |  ------------------
  |  |   74|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   75|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   76|      0|      }                                                                                 \
  |  |   77|    175|   } while(0)
  |  |  ------------------
  |  |  |  Branch (77:12): [Folded, False: 175]
  |  |  ------------------
  ------------------
  200|       |
  201|    175|         return stash(affine);
  202|    175|      }
pcurves_secp521r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEE10from_stashERKNS0_15PrimeOrderCurve15ProjectivePointE:
  383|    175|      static typename C::ProjectivePoint from_stash(const ProjectivePoint& pt) {
  384|    175|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (384:13): [True: 0, False: 175]
  ------------------
  385|      0|            throw Invalid_Argument("Curve mismatch");
  386|      0|         }
  387|    175|         auto x = C::FieldElement::from_stash(pt._x());
  388|    175|         auto y = C::FieldElement::from_stash(pt._y());
  389|    175|         auto z = C::FieldElement::from_stash(pt._z());
  390|    175|         return typename C::ProjectivePoint(x, y, z);
  391|    175|      }
pcurves_secp521r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEE24affine_point_is_identityERKNS0_15PrimeOrderCurve11AffinePointE:
  210|    176|      bool affine_point_is_identity(const AffinePoint& pt) const override {
  211|    176|         return from_stash(pt).is_identity().as_bool();
  212|    176|      }
pcurves_secp521r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEE15serialize_pointENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve11AffinePointE:
  214|    176|      void serialize_point(std::span<uint8_t> bytes, const AffinePoint& pt) const override {
  215|    176|         BOTAN_ARG_CHECK(bytes.size() == C::AffinePoint::BYTES, "Invalid length for serialize_point");
  ------------------
  |  |   35|    176|   do {                                                          \
  |  |   36|    176|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    176|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 176]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    176|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 176]
  |  |  ------------------
  ------------------
  216|    176|         from_stash(pt).serialize_to(bytes.subspan<0, C::AffinePoint::BYTES>());
  217|    176|      }
pcurves_secp521r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEE16serialize_scalarENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve6ScalarE:
  219|    238|      void serialize_scalar(std::span<uint8_t> bytes, const Scalar& scalar) const override {
  220|    238|         BOTAN_ARG_CHECK(bytes.size() == C::Scalar::BYTES, "Invalid length to serialize_scalar");
  ------------------
  |  |   35|    238|   do {                                                          \
  |  |   36|    238|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    238|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 238]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    238|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 238]
  |  |  ------------------
  ------------------
  221|    238|         return from_stash(scalar).serialize_to(bytes.subspan<0, C::Scalar::BYTES>());
  222|    238|      }
pcurves_secp521r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEE14scalar_is_zeroERKNS0_15PrimeOrderCurve6ScalarE:
  332|    238|      bool scalar_is_zero(const Scalar& s) const override { return from_stash(s).is_zero().as_bool(); }

_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EEC2EOS4_:
  409|    864|      PolynomialVector(ThisPolynomialVector&& other) noexcept = default;
_ZNK5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EE4sizeEv:
  414|    824|      size_t size() const { return m_vec.size(); }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EED2Ev:
  412|  1.29k|      ~PolynomialVector() = default;
_ZN5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE0EED2Ev:
  274|  8.12k|      ~Polynomial() = default;
_ZN5Botan8CRYSTALS3nttITkNS0_14crystals_traitENS_19DilithiumPolyTraitsEEENS0_16PolynomialVectorIT_LNS0_6DomainE1EEENS3_IS4_LS5_0EEE:
  574|     72|PolynomialVector<Trait, Domain::NTT> ntt(PolynomialVector<Trait, Domain::Normal> polyvec) {
  575|     72|   auto polyvec_ntt = detail::domain_cast<Domain::NTT>(std::move(polyvec));
  576|    401|   for(auto& poly : polyvec_ntt) {
  ------------------
  |  Branch (576:19): [True: 401, False: 72]
  ------------------
  577|    401|      Trait::ntt(poly.coefficients());
  578|    401|   }
  579|     72|   return polyvec_ntt;
  580|     72|}
_ZN5Botan8CRYSTALS6detail11domain_castILNS0_6DomainE1ETtTyTnS3_ENS0_16PolynomialVectorETkNS0_14crystals_traitENS_19DilithiumPolyTraitsELS3_0EQneT_T2_EET0_IT1_XT_EEOS6_IS7_XT2_EE:
  163|     72|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|     72|   return StructureT<Trait, To>::from_domain_cast(std::move(p));
  168|     72|}
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE1EE16from_domain_castILS3_0EQneT0_TL0__EES4_ONS1_IS2_XT_EEE:
  396|     72|      static PolynomialVector<Trait, D> from_domain_cast(PolynomialVector<Trait, OtherD>&& other) {
  397|     72|         return PolynomialVector<Trait, D>(std::move(other));
  398|     72|      }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE1EEC2ILS3_0EQneT0_TL0__EEONS1_IS2_XT_EEE:
  379|     72|            m_polys_storage(std::move(other.m_polys_storage)) {
  380|     72|         BOTAN_DEBUG_ASSERT(m_polys_storage.size() % Trait::N == 0);
  ------------------
  |  |  137|     72|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|     72|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 72]
  |  |  ------------------
  ------------------
  381|     72|         const size_t vecsize = m_polys_storage.size() / Trait::N;
  382|    473|         for(size_t i = 0; i < vecsize; ++i) {
  ------------------
  |  Branch (382:28): [True: 401, False: 72]
  ------------------
  383|    401|            m_vec.emplace_back(
  384|    401|               Polynomial<Trait, D>(std::span{m_polys_storage}.subspan(i * Trait::N).template first<Trait::N>()));
  385|    401|         }
  386|     72|      }
_ZN5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE1EEC2EOS4_:
  261|  7.58k|            m_coeffs_storage(std::move(other.m_coeffs_storage)), m_coeffs(other.m_coeffs) {}
_ZN5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE1EEC2ENSt3__14spanIiLm256EEE:
  256|  3.54k|      explicit Polynomial(std::span<T, Trait::N> coeffs) : m_coeffs(coeffs) { BOTAN_DEBUG_ASSERT(!owns_storage()); }
  ------------------
  |  |  137|  3.54k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|  3.54k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 3.54k]
  |  |  ------------------
  ------------------
_ZN5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE1EED2Ev:
  274|  11.1k|      ~Polynomial() = default;
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE1EE5beginEv:
  481|     72|      decltype(auto) begin() { return m_vec.begin(); }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE1EE3endEv:
  485|     72|      decltype(auto) end() { return m_vec.end(); }
_ZN5Botan8CRYSTALS10Trait_BaseINS_18DilithiumConstantsENS_19DilithiumPolyTraitsEE5fqmulEii:
   96|  1.69M|      static constexpr T fqmul(T a, T b) { return DerivedT::montgomery_reduce_coefficient(static_cast<T2>(a) * b); }
_ZN5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE1EE12coefficientsEv:
  302|  1.32k|      std::span<T, Trait::N> coefficients() { return m_coeffs; }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EEC2Em:
  401|    360|      explicit PolynomialVector(size_t vecsize) : m_polys_storage(vecsize * Trait::N) {
  402|  2.55k|         for(size_t i = 0; i < vecsize; ++i) {
  ------------------
  |  Branch (402:28): [True: 2.19k, False: 360]
  ------------------
  403|  2.19k|            m_vec.emplace_back(
  404|  2.19k|               Polynomial<Trait, D>(std::span{m_polys_storage}.subspan(i * Trait::N).template first<Trait::N>()));
  405|  2.19k|         }
  406|    360|      }
_ZN5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE0EEC2EOS4_:
  261|  5.46k|            m_coeffs_storage(std::move(other.m_coeffs_storage)), m_coeffs(other.m_coeffs) {}
_ZN5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE0EEC2ENSt3__14spanIiLm256EEE:
  256|  2.65k|      explicit Polynomial(std::span<T, Trait::N> coeffs) : m_coeffs(coeffs) { BOTAN_DEBUG_ASSERT(!owns_storage()); }
  ------------------
  |  |  137|  2.65k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|  2.65k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 2.65k]
  |  |  ------------------
  ------------------
_ZNK5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EEixEm:
  479|   238k|      const Polynomial<Trait, D>& operator[](size_t i) const { return m_vec[i]; }
_ZNK5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE0EEixEm:
  308|   237k|      T operator[](size_t i) const { return m_coeffs[i]; }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EEixEm:
  477|   237k|      Polynomial<Trait, D>& operator[](size_t i) { return m_vec[i]; }
_ZN5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE0EEixEm:
  306|   237k|      T& operator[](size_t i) { return m_coeffs[i]; }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE1EED2Ev:
  412|    680|      ~PolynomialVector() = default;
_ZN5Botan8CRYSTALS16PolynomialMatrixINS_19DilithiumPolyTraitsEED2Ev:
  509|     72|      ~PolynomialMatrix() = default;
_ZN5Botan8CRYSTALSmlITkNS0_14crystals_traitENS_19DilithiumPolyTraitsEEENS0_16PolynomialVectorIT_LNS0_6DomainE1EEERKNS0_16PolynomialMatrixIS4_EERKS6_:
  618|     72|                                               const PolynomialVector<Trait, Domain::NTT>& vec) {
  619|     72|   PolynomialVector<Trait, Domain::NTT> result(mat.size());
  620|    536|   for(size_t i = 0; i < mat.size(); ++i) {
  ------------------
  |  Branch (620:22): [True: 464, False: 72]
  ------------------
  621|    464|      Trait::polyvec_pointwise_acc_montgomery(result[i].coefficients(), mat[i].coefficients(), vec.coefficients());
  622|    464|   }
  623|     72|   return result;
  624|     72|}
_ZNK5Botan8CRYSTALS16PolynomialMatrixINS_19DilithiumPolyTraitsEE4sizeEv:
  511|    608|      size_t size() const { return m_mat.size(); }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE1EEC2Em:
  401|    536|      explicit PolynomialVector(size_t vecsize) : m_polys_storage(vecsize * Trait::N) {
  402|  3.68k|         for(size_t i = 0; i < vecsize; ++i) {
  ------------------
  |  Branch (402:28): [True: 3.14k, False: 536]
  ------------------
  403|  3.14k|            m_vec.emplace_back(
  404|  3.14k|               Polynomial<Trait, D>(std::span{m_polys_storage}.subspan(i * Trait::N).template first<Trait::N>()));
  405|  3.14k|         }
  406|    536|      }
_ZN5Botan8CRYSTALS10Trait_BaseINS_18DilithiumConstantsENS_19DilithiumPolyTraitsEE32polyvec_pointwise_acc_montgomeryENSt3__14spanIiLm256EEENS6_IKiLm18446744073709551615EEES9_:
  131|    464|                                                             std::span<const T> v) {
  132|    464|         clear_mem(w);
  133|    464|         std::array<T, N> t{};
  134|  3.14k|         for(size_t i = 0; i < polys_in_polyvec(u); ++i) {
  ------------------
  |  Branch (134:28): [True: 2.68k, False: 464]
  ------------------
  135|  2.68k|            DerivedT::poly_pointwise_montgomery(t, poly_in_polyvec(u, i), poly_in_polyvec(v, i));
  136|  2.68k|            poly_add(w, w, t);
  137|  2.68k|         }
  138|    464|         barrett_reduce(w);
  139|    464|      }
_ZN5Botan8CRYSTALS10Trait_BaseINS_18DilithiumConstantsENS_19DilithiumPolyTraitsEE16polys_in_polyvecENSt3__14spanIKiLm18446744073709551615EEE:
   81|  3.14k|      static constexpr size_t polys_in_polyvec(std::span<const T> polyvec) {
   82|  3.14k|         BOTAN_DEBUG_ASSERT(polyvec.size() % N == 0);
  ------------------
  |  |  137|  3.14k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|  3.14k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 3.14k]
  |  |  ------------------
  ------------------
   83|  3.14k|         return polyvec.size() / N;
   84|  3.14k|      }
_ZN5Botan8CRYSTALS10Trait_BaseINS_18DilithiumConstantsENS_19DilithiumPolyTraitsEE15poly_in_polyvecIKiQoosr3stdE7same_asINT_1TETL0__Esr3stdE7same_asIKS8_S9_EEENSt3__14spanIS7_Lm256EEENSC_IS7_Lm18446744073709551615EEEm:
   89|  5.36k|      static constexpr std::span<U, N> poly_in_polyvec(std::span<U> polyvec, size_t index) {
   90|  5.36k|         BOTAN_DEBUG_ASSERT(polyvec.size() % N == 0);
  ------------------
  |  |  137|  5.36k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|  5.36k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 5.36k]
  |  |  ------------------
  ------------------
   91|  5.36k|         BOTAN_DEBUG_ASSERT(polyvec.size() / N > index);
  ------------------
  |  |  137|  5.36k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|  5.36k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 5.36k]
  |  |  ------------------
  ------------------
   92|  5.36k|         auto polyspan = polyvec.subspan(index * N, N);
   93|  5.36k|         return std::span<U, N>{polyspan.data(), polyspan.size()};
   94|  5.36k|      }
_ZN5Botan8CRYSTALS10Trait_BaseINS_18DilithiumConstantsENS_19DilithiumPolyTraitsEE8poly_addENSt3__14spanIiLm256EEENS6_IKiLm256EEES9_:
   99|  3.14k|      static constexpr void poly_add(std::span<T, N> result, std::span<const T, N> lhs, std::span<const T, N> rhs) {
  100|   809k|         for(size_t i = 0; i < N; ++i) {
  ------------------
  |  Branch (100:28): [True: 805k, False: 3.14k]
  ------------------
  101|   805k|            result[i] = lhs[i] + rhs[i];
  102|   805k|         }
  103|  3.14k|      }
_ZN5Botan8CRYSTALS10Trait_BaseINS_18DilithiumConstantsENS_19DilithiumPolyTraitsEE14barrett_reduceENSt3__14spanIiLm256EEE:
  122|    928|      constexpr static void barrett_reduce(std::span<T, N> poly) {
  123|   237k|         for(auto& coeff : poly) {
  ------------------
  |  Branch (123:26): [True: 237k, False: 928]
  ------------------
  124|   237k|            coeff = DerivedT::barrett_reduce_coefficient(coeff);
  125|   237k|         }
  126|    928|      }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE1EEixEm:
  477|  3.14k|      Polynomial<Trait, D>& operator[](size_t i) { return m_vec[i]; }
_ZNK5Botan8CRYSTALS16PolynomialMatrixINS_19DilithiumPolyTraitsEEixEm:
  522|    464|      const PolynomialVector<Trait, Domain::NTT>& operator[](size_t i) const { return m_mat[i]; }
_ZNK5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE1EE12coefficientsEv:
  445|    928|      std::span<const T> coefficients() const { return m_polys_storage; }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE1EE6reduceEv:
  463|     72|      ThisPolynomialVector& reduce() {
  464|    464|         for(auto& p : m_vec) {
  ------------------
  |  Branch (464:22): [True: 464, False: 72]
  ------------------
  465|    464|            Trait::barrett_reduce(p.coefficients());
  466|    464|         }
  467|     72|         return *this;
  468|     72|      }
_ZN5Botan8CRYSTALS11inverse_nttITkNS0_14crystals_traitENS_19DilithiumPolyTraitsEEENS0_16PolynomialVectorIT_LNS0_6DomainE0EEENS3_IS4_LS5_1EEE:
  583|     72|PolynomialVector<Trait, Domain::Normal> inverse_ntt(PolynomialVector<Trait, Domain::NTT> polyvec_ntt) {
  584|     72|   auto polyvec = detail::domain_cast<Domain::Normal>(std::move(polyvec_ntt));
  585|    464|   for(auto& poly : polyvec) {
  ------------------
  |  Branch (585:19): [True: 464, False: 72]
  ------------------
  586|    464|      Trait::inverse_ntt(poly.coefficients());
  587|    464|   }
  588|     72|   return polyvec;
  589|     72|}
_ZN5Botan8CRYSTALS6detail11domain_castILNS0_6DomainE0ETtTyTnS3_ENS0_16PolynomialVectorETkNS0_14crystals_traitENS_19DilithiumPolyTraitsELS3_1EQneT_T2_EET0_IT1_XT_EEOS6_IS7_XT2_EE:
  163|     72|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|     72|   return StructureT<Trait, To>::from_domain_cast(std::move(p));
  168|     72|}
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EE16from_domain_castILS3_1EQneT0_TL0__EES4_ONS1_IS2_XT_EEE:
  396|     72|      static PolynomialVector<Trait, D> from_domain_cast(PolynomialVector<Trait, OtherD>&& other) {
  397|     72|         return PolynomialVector<Trait, D>(std::move(other));
  398|     72|      }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EEC2ILS3_1EQneT0_TL0__EEONS1_IS2_XT_EEE:
  379|     72|            m_polys_storage(std::move(other.m_polys_storage)) {
  380|     72|         BOTAN_DEBUG_ASSERT(m_polys_storage.size() % Trait::N == 0);
  ------------------
  |  |  137|     72|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|     72|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 72]
  |  |  ------------------
  ------------------
  381|     72|         const size_t vecsize = m_polys_storage.size() / Trait::N;
  382|    536|         for(size_t i = 0; i < vecsize; ++i) {
  ------------------
  |  Branch (382:28): [True: 464, False: 72]
  ------------------
  383|    464|            m_vec.emplace_back(
  384|    464|               Polynomial<Trait, D>(std::span{m_polys_storage}.subspan(i * Trait::N).template first<Trait::N>()));
  385|    464|         }
  386|     72|      }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EE5beginEv:
  481|    216|      decltype(auto) begin() { return m_vec.begin(); }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EE3endEv:
  485|    216|      decltype(auto) end() { return m_vec.end(); }
_ZN5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE0EE12coefficientsEv:
  302|  1.85k|      std::span<T, Trait::N> coefficients() { return m_coeffs; }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE1EEC2EOS4_:
  409|     72|      PolynomialVector(ThisPolynomialVector&& other) noexcept = default;
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EE17conditional_add_qEv:
  470|     72|      ThisPolynomialVector& conditional_add_q() {
  471|    464|         for(auto& v : m_vec) {
  ------------------
  |  Branch (471:22): [True: 464, False: 72]
  ------------------
  472|    464|            Trait::poly_cadd_q(v.coefficients());
  473|    464|         }
  474|     72|         return *this;
  475|     72|      }
_ZN5Botan8CRYSTALS10Trait_BaseINS_18DilithiumConstantsENS_19DilithiumPolyTraitsEE11poly_cadd_qENSt3__14spanIiLm256EEE:
  112|    464|      static constexpr void poly_cadd_q(std::span<T, N> coeffs) {
  113|   118k|         for(auto& coeff : coeffs) {
  ------------------
  |  Branch (113:26): [True: 118k, False: 464]
  ------------------
  114|   118k|            using unsigned_T = std::make_unsigned_t<T>;
  115|   118k|            const auto is_negative = CT::Mask<unsigned_T>::expand_top_bit(static_cast<unsigned_T>(coeff));
  116|   118k|            coeff += is_negative.if_set_return(Q);
  117|   118k|         }
  118|    464|      }
_ZNK5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EE5cloneEv:
  418|     72|      ThisPolynomialVector clone() const {
  419|     72|         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|     72|         copy_mem(res.m_polys_storage, m_polys_storage);
  425|       |
  426|     72|         return res;
  427|     72|      }
_ZNK5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE0EE18_const_time_poisonEv:
  330|    865|      void _const_time_poison() const { CT::poison(m_coeffs); }
_ZNK5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE0EE12coefficientsEv:
  304|    464|      std::span<const T, Trait::N> coefficients() const { return m_coeffs; }
_ZNK5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EE20_const_time_unpoisonEv:
  491|    288|      void _const_time_unpoison() const { CT::unpoison_range(m_vec); }
_ZNK5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE0EE20_const_time_unpoisonEv:
  332|  1.79k|      void _const_time_unpoison() const { CT::unpoison(m_coeffs); }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EEpLERKS4_:
  447|     72|      ThisPolynomialVector& operator+=(const ThisPolynomialVector& other) {
  448|     72|         BOTAN_ASSERT(m_vec.size() == other.m_vec.size(), "cannot add polynomial vectors of differing lengths");
  ------------------
  |  |   71|     72|   do {                                                                                 \
  |  |   72|     72|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   73|     72|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (73:10): [True: 0, False: 72]
  |  |  ------------------
  |  |   74|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   75|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   76|      0|      }                                                                                 \
  |  |   77|     72|   } while(0)
  |  |  ------------------
  |  |  |  Branch (77:12): [Folded, False: 72]
  |  |  ------------------
  ------------------
  449|    536|         for(size_t i = 0; i < m_vec.size(); ++i) {
  ------------------
  |  Branch (449:28): [True: 464, False: 72]
  ------------------
  450|    464|            Trait::poly_add(m_vec[i].coefficients(), m_vec[i].coefficients(), other.m_vec[i].coefficients());
  451|    464|         }
  452|     72|         return *this;
  453|     72|      }
_ZN5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE0EE5beginEv:
  310|    865|      decltype(auto) begin() { return m_coeffs.begin(); }
_ZN5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE0EE3endEv:
  314|    865|      decltype(auto) end() { return m_coeffs.end(); }
_ZNK5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE0EE4sizeEv:
  276|   149k|      constexpr size_t size() const { return m_coeffs.size(); }
_ZNK5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EE5beginEv:
  483|     72|      decltype(auto) begin() const { return m_vec.begin(); }
_ZNK5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EE3endEv:
  487|     72|      decltype(auto) end() const { return m_vec.end(); }
_ZN5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE1EE5beginEv:
  310|  2.68k|      decltype(auto) begin() { return m_coeffs.begin(); }
_ZN5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE1EE3endEv:
  314|  2.68k|      decltype(auto) end() { return m_coeffs.end(); }
_ZN5Botan8CRYSTALS16PolynomialMatrixINS_19DilithiumPolyTraitsEEC2Emm:
  513|     72|      PolynomialMatrix(size_t rows, size_t cols) {
  514|     72|         m_mat.reserve(rows);
  515|    536|         for(size_t i = 0; i < rows; ++i) {
  ------------------
  |  Branch (515:28): [True: 464, False: 72]
  ------------------
  516|    464|            m_mat.emplace_back(cols);
  517|    464|         }
  518|     72|      }
_ZN5Botan8CRYSTALS16PolynomialMatrixINS_19DilithiumPolyTraitsEEixEm:
  520|  2.68k|      PolynomialVector<Trait, Domain::NTT>& operator[](size_t i) { return m_mat[i]; }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE1EED2Ev:
  412|    313|      ~PolynomialVector() = default;
_ZN5Botan8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS0_6DomainE1EED2Ev:
  274|  1.59k|      ~Polynomial() = default;
_ZN5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE1EEC2Em:
  401|    117|      explicit PolynomialVector(size_t vecsize) : m_polys_storage(vecsize * Trait::N) {
  402|    505|         for(size_t i = 0; i < vecsize; ++i) {
  ------------------
  |  Branch (402:28): [True: 388, False: 117]
  ------------------
  403|    388|            m_vec.emplace_back(
  404|    388|               Polynomial<Trait, D>(std::span{m_polys_storage}.subspan(i * Trait::N).template first<Trait::N>()));
  405|    388|         }
  406|    117|      }
_ZN5Botan8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS0_6DomainE1EEC2EOS4_:
  261|  1.02k|            m_coeffs_storage(std::move(other.m_coeffs_storage)), m_coeffs(other.m_coeffs) {}
_ZN5Botan8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS0_6DomainE1EEC2ENSt3__14spanIsLm256EEE:
  256|    566|      explicit Polynomial(std::span<T, Trait::N> coeffs) : m_coeffs(coeffs) { BOTAN_DEBUG_ASSERT(!owns_storage()); }
  ------------------
  |  |  137|    566|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|    566|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 566]
  |  |  ------------------
  ------------------
_ZN5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE1EEC2EOS4_:
  409|    140|      PolynomialVector(ThisPolynomialVector&& other) noexcept = default;
_ZN5Botan8CRYSTALS16PolynomialMatrixINS_15KyberPolyTraitsEED2Ev:
  509|     28|      ~PolynomialMatrix() = default;
_ZN5Botan8CRYSTALS10Trait_BaseINS_14KyberConstantsENS_15KyberPolyTraitsEE5fqmulEss:
   96|   373k|      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|    445|      constexpr static void barrett_reduce(std::span<T, N> poly) {
  123|   113k|         for(auto& coeff : poly) {
  ------------------
  |  Branch (123:26): [True: 113k, False: 445]
  ------------------
  124|   113k|            coeff = DerivedT::barrett_reduce_coefficient(coeff);
  125|   113k|         }
  126|    445|      }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE0EE5beginEv:
  481|     56|      decltype(auto) begin() { return m_vec.begin(); }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE0EE3endEv:
  485|     56|      decltype(auto) end() { return m_vec.end(); }
_ZNK5Botan8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS0_6DomainE0EE4sizeEv:
  276|  6.82k|      constexpr size_t size() const { return m_coeffs.size(); }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE1EE5beginEv:
  481|     84|      decltype(auto) begin() { return m_vec.begin(); }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE1EE3endEv:
  485|     84|      decltype(auto) end() { return m_vec.end(); }
_ZN5Botan8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS0_6DomainE1EE5beginEv:
  310|    388|      decltype(auto) begin() { return m_coeffs.begin(); }
_ZN5Botan8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS0_6DomainE1EE3endEv:
  314|    388|      decltype(auto) end() { return m_coeffs.end(); }
_ZNK5Botan8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS0_6DomainE1EE4sizeEv:
  276|  5.78k|      constexpr size_t size() const { return m_coeffs.size(); }
_ZNK5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE1EE20_const_time_unpoisonEv:
  491|     56|      void _const_time_unpoison() const { CT::unpoison_range(m_vec); }
_ZNK5Botan8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS0_6DomainE1EE20_const_time_unpoisonEv:
  332|    178|      void _const_time_unpoison() const { CT::unpoison(m_coeffs); }
_ZNK5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE1EE5beginEv:
  483|     28|      decltype(auto) begin() const { return m_vec.begin(); }
_ZNK5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE1EE3endEv:
  487|     28|      decltype(auto) end() const { return m_vec.end(); }
_ZNK5Botan8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS0_6DomainE1EEixEm:
  308|  22.7k|      T operator[](size_t i) const { return m_coeffs[i]; }
_ZNK5Botan8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS0_6DomainE1EE12coefficientsEv:
  304|     89|      std::span<const T, Trait::N> coefficients() const { return m_coeffs; }
_ZN5Botan8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS0_6DomainE0EED2Ev:
  274|    500|      ~Polynomial() = default;
_ZN5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE0EED2Ev:
  412|     56|      ~PolynomialVector() = default;
_ZN5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE0EEC2Em:
  401|     56|      explicit PolynomialVector(size_t vecsize) : m_polys_storage(vecsize * Trait::N) {
  402|    234|         for(size_t i = 0; i < vecsize; ++i) {
  ------------------
  |  Branch (402:28): [True: 178, False: 56]
  ------------------
  403|    178|            m_vec.emplace_back(
  404|    178|               Polynomial<Trait, D>(std::span{m_polys_storage}.subspan(i * Trait::N).template first<Trait::N>()));
  405|    178|         }
  406|     56|      }
_ZN5Botan8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS0_6DomainE0EEC2EOS4_:
  261|    322|            m_coeffs_storage(std::move(other.m_coeffs_storage)), m_coeffs(other.m_coeffs) {}
_ZN5Botan8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS0_6DomainE0EEC2ENSt3__14spanIsLm256EEE:
  256|    178|      explicit Polynomial(std::span<T, Trait::N> coeffs) : m_coeffs(coeffs) { BOTAN_DEBUG_ASSERT(!owns_storage()); }
  ------------------
  |  |  137|    178|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|    178|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 178]
  |  |  ------------------
  ------------------
_ZN5Botan8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS0_6DomainE0EEixEm:
  306|  45.5k|      T& operator[](size_t i) { return m_coeffs[i]; }
_ZN5Botan8CRYSTALS3nttITkNS0_14crystals_traitENS_15KyberPolyTraitsEEENS0_16PolynomialVectorIT_LNS0_6DomainE1EEENS3_IS4_LS5_0EEE:
  574|     56|PolynomialVector<Trait, Domain::NTT> ntt(PolynomialVector<Trait, Domain::Normal> polyvec) {
  575|     56|   auto polyvec_ntt = detail::domain_cast<Domain::NTT>(std::move(polyvec));
  576|    178|   for(auto& poly : polyvec_ntt) {
  ------------------
  |  Branch (576:19): [True: 178, False: 56]
  ------------------
  577|    178|      Trait::ntt(poly.coefficients());
  578|    178|   }
  579|     56|   return polyvec_ntt;
  580|     56|}
_ZN5Botan8CRYSTALS6detail11domain_castILNS0_6DomainE1ETtTyTnS3_ENS0_16PolynomialVectorETkNS0_14crystals_traitENS_15KyberPolyTraitsELS3_0EQneT_T2_EET0_IT1_XT_EEOS6_IS7_XT2_EE:
  163|     56|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|     56|   return StructureT<Trait, To>::from_domain_cast(std::move(p));
  168|     56|}
_ZN5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE1EE16from_domain_castILS3_0EQneT0_TL0__EES4_ONS1_IS2_XT_EEE:
  396|     56|      static PolynomialVector<Trait, D> from_domain_cast(PolynomialVector<Trait, OtherD>&& other) {
  397|     56|         return PolynomialVector<Trait, D>(std::move(other));
  398|     56|      }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE1EEC2ILS3_0EQneT0_TL0__EEONS1_IS2_XT_EEE:
  379|     56|            m_polys_storage(std::move(other.m_polys_storage)) {
  380|     56|         BOTAN_DEBUG_ASSERT(m_polys_storage.size() % Trait::N == 0);
  ------------------
  |  |  137|     56|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|     56|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 56]
  |  |  ------------------
  ------------------
  381|     56|         const size_t vecsize = m_polys_storage.size() / Trait::N;
  382|    234|         for(size_t i = 0; i < vecsize; ++i) {
  ------------------
  |  Branch (382:28): [True: 178, False: 56]
  ------------------
  383|    178|            m_vec.emplace_back(
  384|    178|               Polynomial<Trait, D>(std::span{m_polys_storage}.subspan(i * Trait::N).template first<Trait::N>()));
  385|    178|         }
  386|     56|      }
_ZN5Botan8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS0_6DomainE1EE12coefficientsEv:
  302|    623|      std::span<T, Trait::N> coefficients() { return m_coeffs; }
_ZN5Botan8CRYSTALSmlITkNS0_14crystals_traitENS_15KyberPolyTraitsEEENS0_16PolynomialVectorIT_LNS0_6DomainE1EEERKNS0_16PolynomialMatrixIS4_EERKS6_:
  618|     28|                                               const PolynomialVector<Trait, Domain::NTT>& vec) {
  619|     28|   PolynomialVector<Trait, Domain::NTT> result(mat.size());
  620|    117|   for(size_t i = 0; i < mat.size(); ++i) {
  ------------------
  |  Branch (620:22): [True: 89, False: 28]
  ------------------
  621|     89|      Trait::polyvec_pointwise_acc_montgomery(result[i].coefficients(), mat[i].coefficients(), vec.coefficients());
  622|     89|   }
  623|     28|   return result;
  624|     28|}
_ZNK5Botan8CRYSTALS16PolynomialMatrixINS_15KyberPolyTraitsEE4sizeEv:
  511|    145|      size_t size() const { return m_mat.size(); }
_ZN5Botan8CRYSTALS10Trait_BaseINS_14KyberConstantsENS_15KyberPolyTraitsEE32polyvec_pointwise_acc_montgomeryENSt3__14spanIsLm256EEENS6_IKsLm18446744073709551615EEES9_:
  131|     89|                                                             std::span<const T> v) {
  132|     89|         clear_mem(w);
  133|     89|         std::array<T, N> t{};
  134|    388|         for(size_t i = 0; i < polys_in_polyvec(u); ++i) {
  ------------------
  |  Branch (134:28): [True: 299, False: 89]
  ------------------
  135|    299|            DerivedT::poly_pointwise_montgomery(t, poly_in_polyvec(u, i), poly_in_polyvec(v, i));
  136|    299|            poly_add(w, w, t);
  137|    299|         }
  138|     89|         barrett_reduce(w);
  139|     89|      }
_ZN5Botan8CRYSTALS10Trait_BaseINS_14KyberConstantsENS_15KyberPolyTraitsEE16polys_in_polyvecENSt3__14spanIKsLm18446744073709551615EEE:
   81|    388|      static constexpr size_t polys_in_polyvec(std::span<const T> polyvec) {
   82|    388|         BOTAN_DEBUG_ASSERT(polyvec.size() % N == 0);
  ------------------
  |  |  137|    388|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|    388|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 388]
  |  |  ------------------
  ------------------
   83|    388|         return polyvec.size() / N;
   84|    388|      }
_ZN5Botan8CRYSTALS10Trait_BaseINS_14KyberConstantsENS_15KyberPolyTraitsEE15poly_in_polyvecIKsQoosr3stdE7same_asINT_1TETL0__Esr3stdE7same_asIKS8_S9_EEENSt3__14spanIS7_Lm256EEENSC_IS7_Lm18446744073709551615EEEm:
   89|    598|      static constexpr std::span<U, N> poly_in_polyvec(std::span<U> polyvec, size_t index) {
   90|    598|         BOTAN_DEBUG_ASSERT(polyvec.size() % N == 0);
  ------------------
  |  |  137|    598|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|    598|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 598]
  |  |  ------------------
  ------------------
   91|    598|         BOTAN_DEBUG_ASSERT(polyvec.size() / N > index);
  ------------------
  |  |  137|    598|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|    598|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 598]
  |  |  ------------------
  ------------------
   92|    598|         auto polyspan = polyvec.subspan(index * N, N);
   93|    598|         return std::span<U, N>{polyspan.data(), polyspan.size()};
   94|    598|      }
_ZN5Botan8CRYSTALS10Trait_BaseINS_14KyberConstantsENS_15KyberPolyTraitsEE8poly_addENSt3__14spanIsLm256EEENS6_IKsLm256EEES9_:
   99|    388|      static constexpr void poly_add(std::span<T, N> result, std::span<const T, N> lhs, std::span<const T, N> rhs) {
  100|  99.7k|         for(size_t i = 0; i < N; ++i) {
  ------------------
  |  Branch (100:28): [True: 99.3k, False: 388]
  ------------------
  101|  99.3k|            result[i] = lhs[i] + rhs[i];
  102|  99.3k|         }
  103|    388|      }
_ZNK5Botan8CRYSTALS16PolynomialMatrixINS_15KyberPolyTraitsEEixEm:
  522|     89|      const PolynomialVector<Trait, Domain::NTT>& operator[](size_t i) const { return m_mat[i]; }
_ZNK5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE1EE12coefficientsEv:
  445|    178|      std::span<const T> coefficients() const { return m_polys_storage; }
_ZN5Botan8CRYSTALS10montgomeryITkNS0_14crystals_traitENS_15KyberPolyTraitsELNS0_6DomainE1EEENS0_16PolynomialVectorIT_XT0_EEES6_:
  598|     28|PolynomialVector<Trait, D> montgomery(PolynomialVector<Trait, D> polyvec) {
  599|     89|   for(auto& p : polyvec) {
  ------------------
  |  Branch (599:16): [True: 89, False: 28]
  ------------------
  600|     89|      detail::montgomery(p);
  601|     89|   }
  602|     28|   return polyvec;
  603|     28|}
_ZN5Botan8CRYSTALS6detail10montgomeryITkNS0_14crystals_traitENS_15KyberPolyTraitsELNS0_6DomainE1EEEvRNS0_10PolynomialIT_XT0_EEE:
  540|     89|void montgomery(Polynomial<Trait, D>& p) {
  541|  22.7k|   for(auto& c : p) {
  ------------------
  |  Branch (541:16): [True: 22.7k, False: 89]
  ------------------
  542|  22.7k|      c = Trait::to_montgomery(c);
  543|  22.7k|   }
  544|     89|}
_ZN5Botan8CRYSTALS10Trait_BaseINS_14KyberConstantsENS_15KyberPolyTraitsEE13to_montgomeryEs:
  120|  22.7k|      static constexpr T to_montgomery(T a) { return fqmul(a, MONTY_SQUARED); }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE1EEpLERKS4_:
  447|     28|      ThisPolynomialVector& operator+=(const ThisPolynomialVector& other) {
  448|     28|         BOTAN_ASSERT(m_vec.size() == other.m_vec.size(), "cannot add polynomial vectors of differing lengths");
  ------------------
  |  |   71|     28|   do {                                                                                 \
  |  |   72|     28|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   73|     28|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (73:10): [True: 0, False: 28]
  |  |  ------------------
  |  |   74|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   75|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   76|      0|      }                                                                                 \
  |  |   77|     28|   } while(0)
  |  |  ------------------
  |  |  |  Branch (77:12): [Folded, False: 28]
  |  |  ------------------
  ------------------
  449|    117|         for(size_t i = 0; i < m_vec.size(); ++i) {
  ------------------
  |  Branch (449:28): [True: 89, False: 28]
  ------------------
  450|     89|            Trait::poly_add(m_vec[i].coefficients(), m_vec[i].coefficients(), other.m_vec[i].coefficients());
  451|     89|         }
  452|     28|         return *this;
  453|     28|      }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE1EE6reduceEv:
  463|     56|      ThisPolynomialVector& reduce() {
  464|    178|         for(auto& p : m_vec) {
  ------------------
  |  Branch (464:22): [True: 178, False: 56]
  ------------------
  465|    178|            Trait::barrett_reduce(p.coefficients());
  466|    178|         }
  467|     56|         return *this;
  468|     56|      }
_ZN5Botan8CRYSTALS16PolynomialMatrixINS_15KyberPolyTraitsEEC2Emm:
  513|     28|      PolynomialMatrix(size_t rows, size_t cols) {
  514|     28|         m_mat.reserve(rows);
  515|    117|         for(size_t i = 0; i < rows; ++i) {
  ------------------
  |  Branch (515:28): [True: 89, False: 28]
  ------------------
  516|     89|            m_mat.emplace_back(cols);
  517|     89|         }
  518|     28|      }
_ZN5Botan8CRYSTALS16PolynomialMatrixINS_15KyberPolyTraitsEEixEm:
  520|    299|      PolynomialVector<Trait, Domain::NTT>& operator[](size_t i) { return m_mat[i]; }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE1EEixEm:
  477|    388|      Polynomial<Trait, D>& operator[](size_t i) { return m_vec[i]; }

_ZN5Botan8CRYSTALS4packILi1023ETkNS0_14crystals_traitENS_19DilithiumPolyTraitsELNS0_6DomainE0EEEvRKNS0_10PolynomialIT0_XT1_EEERNS_13BufferStufferE:
  223|    464|constexpr void pack(const Polynomial<PolyTrait, D>& p, BufferStuffer& stuffer) {
  224|    464|   using unsigned_T = std::make_unsigned_t<typename PolyTrait::T>;
  225|    464|   pack<range>(p, stuffer, [](typename PolyTrait::T x) { return static_cast<unsigned_T>(x); });
  226|    464|}
_ZN5Botan8CRYSTALS4packILi1023ETkNS0_14crystals_traitENS_19DilithiumPolyTraitsELNS0_6DomainE0ETkNS0_12coeff_map_fnINT0_1TEEEZNS0_4packILi1023ETkNS0_14crystals_traitES2_LS3_0EEEvRKNS0_10PolynomialIS5_XT1_EEERNS_13BufferStufferEEUliE_EEvSB_SD_T2_:
  117|    464|constexpr void pack(const Polynomial<PolyTrait, D>& p, BufferStuffer& stuffer, MapFnT map) {
  118|    464|   using trait = BitPackingTrait<range, PolyTrait>;
  119|       |
  120|    464|   BOTAN_DEBUG_ASSERT(stuffer.remaining_capacity() >= p.size() * trait::bits_per_coeff / 8);
  ------------------
  |  |  137|    464|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|    464|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 464]
  |  |  ------------------
  ------------------
  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|  30.1k|   for(size_t i = 0; i < p.size(); i += trait::coeffs_per_pack) {
  ------------------
  |  Branch (134:22): [True: 29.6k, False: 464]
  ------------------
  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|  29.6k|      typename trait::collector_array collectors = {0};
  139|   148k|      for(size_t j = 0, bit_offset = 0, c = 0; j < trait::coeffs_per_pack; ++j) {
  ------------------
  |  Branch (139:48): [True: 118k, False: 29.6k]
  ------------------
  140|       |         // Transform p[i] via a custom map function (that may be a NOOP).
  141|   118k|         const typename trait::unsigned_T mapped_coeff = map(p[i + j]);
  142|   118k|         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|   118k|         BOTAN_DEBUG_ASSERT(coeff_value <= range);
  ------------------
  |  |  137|   118k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|   118k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 118k]
  |  |  ------------------
  ------------------
  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|   118k|         collectors[c] |= coeff_value << bit_offset;
  152|   118k|         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|   118k|         if(bit_offset > trait::bits_in_collector) {
  ------------------
  |  Branch (157:13): [True: 0, False: 118k]
  ------------------
  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|   118k|      }
  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|  29.6k|      const auto bytes = store_le(collectors);
  167|  29.6k|      stuffer.append(std::span{bytes}.template first<trait::bytes_per_pack>());
  168|  29.6k|   }
  169|    464|}
_ZZN5Botan8CRYSTALS4packILi1023ETkNS0_14crystals_traitENS_19DilithiumPolyTraitsELNS0_6DomainE0EEEvRKNS0_10PolynomialIT0_XT1_EEERNS_13BufferStufferEENKUliE_clEi:
  225|   118k|   pack<range>(p, stuffer, [](typename PolyTrait::T x) { return static_cast<unsigned_T>(x); });
_ZN5Botan8CRYSTALS4packILi3328ETkNS0_14crystals_traitENS_15KyberPolyTraitsELNS0_6DomainE1EEEvRKNS0_10PolynomialIT0_XT1_EEERNS_13BufferStufferE:
  223|     89|constexpr void pack(const Polynomial<PolyTrait, D>& p, BufferStuffer& stuffer) {
  224|     89|   using unsigned_T = std::make_unsigned_t<typename PolyTrait::T>;
  225|     89|   pack<range>(p, stuffer, [](typename PolyTrait::T x) { return static_cast<unsigned_T>(x); });
  226|     89|}
_ZN5Botan8CRYSTALS4packILi3328ETkNS0_14crystals_traitENS_15KyberPolyTraitsELNS0_6DomainE1ETkNS0_12coeff_map_fnINT0_1TEEEZNS0_4packILi3328ETkNS0_14crystals_traitES2_LS3_1EEEvRKNS0_10PolynomialIS5_XT1_EEERNS_13BufferStufferEEUlsE_EEvSB_SD_T2_:
  117|     89|constexpr void pack(const Polynomial<PolyTrait, D>& p, BufferStuffer& stuffer, MapFnT map) {
  118|     89|   using trait = BitPackingTrait<range, PolyTrait>;
  119|       |
  120|     89|   BOTAN_DEBUG_ASSERT(stuffer.remaining_capacity() >= p.size() * trait::bits_per_coeff / 8);
  ------------------
  |  |  137|     89|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|     89|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 89]
  |  |  ------------------
  ------------------
  121|       |
  122|       |   // Bit-packing example that shows a coefficients' bit-pack that spills across
  123|       |   // more than one 64-bit collectors. This illustrates the algorithm below.
  124|       |   //
  125|       |   //                         0                                       64                                       128
  126|       |   // Collectors   (64 bits): |               collectors[0]            |               collectors[1]            |
  127|       |   //                         |                                        |                                        |
  128|       |   // Coefficients (11 bits): | c[0] | c[1] | c[2] | c[3] | c[4] | c[5] | c[6] | c[7] |      |      |      |      | ...
  129|       |   //                         |                                                       |                         |
  130|       |   //                         |         < byte-aligned coefficient pack >             |  < byte-aligned pad. >  |
  131|       |   //                         |             (one inner loop iteration)                |
  132|       |   //                         0                                                      88 (divisible by 8)
  133|       |
  134|  5.78k|   for(size_t i = 0; i < p.size(); i += trait::coeffs_per_pack) {
  ------------------
  |  Branch (134:22): [True: 5.69k, False: 89]
  ------------------
  135|       |      // The collectors array is filled with bit-packed coefficients to produce
  136|       |      // a byte-aligned pack of coefficients. When coefficients fall onto the
  137|       |      // boundary of two collectors, their bits must be split.
  138|  5.69k|      typename trait::collector_array collectors = {0};
  139|  28.4k|      for(size_t j = 0, bit_offset = 0, c = 0; j < trait::coeffs_per_pack; ++j) {
  ------------------
  |  Branch (139:48): [True: 22.7k, False: 5.69k]
  ------------------
  140|       |         // Transform p[i] via a custom map function (that may be a NOOP).
  141|  22.7k|         const typename trait::unsigned_T mapped_coeff = map(p[i + j]);
  142|  22.7k|         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|  22.7k|         BOTAN_DEBUG_ASSERT(coeff_value <= range);
  ------------------
  |  |  137|  22.7k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|  22.7k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 22.7k]
  |  |  ------------------
  ------------------
  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|  22.7k|         collectors[c] |= coeff_value << bit_offset;
  152|  22.7k|         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|  22.7k|         if(bit_offset > trait::bits_in_collector) {
  ------------------
  |  Branch (157:13): [True: 0, False: 22.7k]
  ------------------
  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|  22.7k|      }
  162|       |
  163|       |      // One byte-aligned pack of bit-packed coefficients is now stored in the
  164|       |      // collectors and can be written to an output buffer. Note that we might
  165|       |      // have to remove some padding bytes of unused collector space.
  166|  5.69k|      const auto bytes = store_le(collectors);
  167|  5.69k|      stuffer.append(std::span{bytes}.template first<trait::bytes_per_pack>());
  168|  5.69k|   }
  169|     89|}
_ZZN5Botan8CRYSTALS4packILi3328ETkNS0_14crystals_traitENS_15KyberPolyTraitsELNS0_6DomainE1EEEvRKNS0_10PolynomialIT0_XT1_EEERNS_13BufferStufferEENKUlsE_clEs:
  225|  22.7k|   pack<range>(p, stuffer, [](typename PolyTrait::T x) { return static_cast<unsigned_T>(x); });

_ZN5Botan6bitlenEm:
  101|    819|constexpr auto bitlen(size_t x) {
  102|    819|   return ceil_log2(x + 1);
  103|    819|}
_ZN5Botan6detail11Bounded_XOFIRNS_3XOFELm894EEC2ES3_:
  173|  2.68k|      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|   687k|                          const PredicateFnT& predicate = default_predicate<bytes, MappedValueT<bytes, MapFnT>>) {
  196|   687k|         while(true) {
  ------------------
  |  Branch (196:16): [True: 687k, Folded]
  ------------------
  197|   687k|            auto output = transformer(take<bytes>());
  198|   687k|            if(predicate(output)) {
  ------------------
  |  Branch (198:16): [True: 687k, False: 667]
  ------------------
  199|   687k|               return output;
  200|   687k|            }
  201|   687k|         }
  202|   687k|      }
_ZN5Botan6detail11Bounded_XOFIRNS_3XOFELm894EE4takeILm3EEENSt3__15arrayIhXT_EEEv:
  206|   687k|      constexpr std::array<uint8_t, bytes> take() {
  207|   687k|         m_bytes_consumed += bytes;
  208|   687k|         if(m_bytes_consumed > bound) {
  ------------------
  |  Branch (208:13): [True: 0, False: 687k]
  ------------------
  209|      0|            throw Internal_Error("XOF consumed more bytes than allowed");
  210|      0|         }
  211|   687k|         return m_xof.template output<bytes>();
  212|   687k|      }
_ZN5Botan6detail11Bounded_XOFIRNS_3XOFELm481EEC2ES3_:
  173|    865|      explicit Bounded_XOF(XofT xof) : m_xof(xof), m_bytes_consumed(0) {}
_ZN5Botan6detail11Bounded_XOFIRNS_3XOFELm481EE9next_byteIFbhEQsr3stdE9invocableITL0__hEEEDaOT_:
  180|   156k|      constexpr auto next_byte(PredicateFnT&& predicate = default_predicate<1, uint8_t>) {
  181|   156k|         return next<1>([](const auto bytes) { return bytes[0]; }, std::forward<PredicateFnT>(predicate));
  182|   156k|      }
_ZN5Botan6detail11Bounded_XOFIRNS_3XOFELm481EE4nextILm1EZNS4_9next_byteIFbhEQsr3stdE9invocableITL0__hEEEDaOT_EUlS9_E_S7_Qaasr3stdE9invocableITL0_0_NSt3__15arrayIhXTL0__EEEEsr3stdE9invocableITL0_1_NSD_20__invoke_result_implIvJSC_SF_EE4typeEEEEDaRKT0_RKT1_:
  195|   156k|                          const PredicateFnT& predicate = default_predicate<bytes, MappedValueT<bytes, MapFnT>>) {
  196|   156k|         while(true) {
  ------------------
  |  Branch (196:16): [True: 156k, Folded]
  ------------------
  197|   156k|            auto output = transformer(take<bytes>());
  198|   156k|            if(predicate(output)) {
  ------------------
  |  Branch (198:16): [True: 156k, False: 0]
  ------------------
  199|   156k|               return output;
  200|   156k|            }
  201|   156k|         }
  202|   156k|      }
_ZZN5Botan6detail11Bounded_XOFIRNS_3XOFELm481EE9next_byteIFbhEQsr3stdE9invocableITL0__hEEEDaOT_ENKUlS8_E_clINSt3__15arrayIhLm1EEEEEDaS8_:
  181|   156k|         return next<1>([](const auto bytes) { return bytes[0]; }, std::forward<PredicateFnT>(predicate));
_ZN5Botan6detail11Bounded_XOFIRNS_3XOFELm481EE4takeILm1EEENSt3__15arrayIhXT_EEEv:
  206|   156k|      constexpr std::array<uint8_t, bytes> take() {
  207|   156k|         m_bytes_consumed += bytes;
  208|   156k|         if(m_bytes_consumed > bound) {
  ------------------
  |  Branch (208:13): [True: 0, False: 156k]
  ------------------
  209|      0|            throw Internal_Error("XOF consumed more bytes than allowed");
  210|      0|         }
  211|   156k|         return m_xof.template output<bytes>();
  212|   156k|      }
_ZN5Botan6detail11Bounded_XOFIRNS_3XOFELm481EE17default_predicateILm1EhEEbT0_:
  164|   156k|      constexpr static bool default_predicate(T /*v*/) {
  165|   156k|         return true;
  166|   156k|      }
_ZN5Botan6detail11Bounded_XOFIRNS_3XOFELm840EEC2ES3_:
  173|    299|      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|  47.4k|                          const PredicateFnT& predicate = default_predicate<bytes, MappedValueT<bytes, MapFnT>>) {
  196|  47.4k|         while(true) {
  ------------------
  |  Branch (196:16): [True: 47.4k, Folded]
  ------------------
  197|  47.4k|            auto output = transformer(take<bytes>());
  198|  47.4k|            if(predicate(output)) {
  ------------------
  |  Branch (198:16): [True: 47.4k, False: 0]
  ------------------
  199|  47.4k|               return output;
  200|  47.4k|            }
  201|  47.4k|         }
  202|  47.4k|      }
_ZN5Botan6detail11Bounded_XOFIRNS_3XOFELm840EE4takeILm3EEENSt3__15arrayIhXT_EEEv:
  206|  47.4k|      constexpr std::array<uint8_t, bytes> take() {
  207|  47.4k|         m_bytes_consumed += bytes;
  208|  47.4k|         if(m_bytes_consumed > bound) {
  ------------------
  |  Branch (208:13): [True: 0, False: 47.4k]
  ------------------
  209|      0|            throw Internal_Error("XOF consumed more bytes than allowed");
  210|      0|         }
  211|  47.4k|         return m_xof.template output<bytes>();
  212|  47.4k|      }
_ZN5Botan6detail11Bounded_XOFIRNS_3XOFELm840EE17default_predicateILm3ENSt3__14pairINS6_8optionalItEES9_EEEEbT0_:
  164|  47.4k|      constexpr static bool default_predicate(T /*v*/) {
  165|  47.4k|         return true;
  166|  47.4k|      }

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

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

_ZNK5Botan9SCAN_Name9arg_countEv:
   43|  3.80k|      size_t arg_count() const { return m_args.size(); }
_ZNK5Botan9SCAN_Name9algo_nameEv:
   38|  5.18k|      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:
   64|    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) {
   65|    160|   H += rho<14, 18, 41>(E) + choose(E, F, G) + M;
   66|    160|   D += H;
   67|    160|   H += rho<28, 34, 39>(A) + majority(A, B, C);
   68|    160|}

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

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

_ZN5Botan9SIMD_2x64C2Ev:
   55|     16|            m_simd(_mm_setzero_si128())
   56|       |#elif defined(BOTAN_SIMD_USE_NEON)
   57|       |            m_simd(vdupq_n_u64(0))
   58|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
   59|       |            m_simd(wasm_u64x2_const_splat(0))
   60|       |#endif
   61|     16|      {
   62|     16|      }
_ZN5Botan9SIMD_2x647load_beEPKv:
  105|     16|      static SIMD_2x64 BOTAN_FN_ISA_SIMD_2X64 load_be(const void* in) { return SIMD_2x64::load_le(in).bswap(); }
_ZNK5Botan9SIMD_2x645bswapEv:
  115|     16|      SIMD_2x64 BOTAN_FN_ISA_SIMD_2X64 bswap() const {
  116|     16|#if defined(BOTAN_SIMD_USE_SSSE3)
  117|     16|         const auto idx = _mm_set_epi8(8, 9, 10, 11, 12, 13, 14, 15, 0, 1, 2, 3, 4, 5, 6, 7);
  118|     16|         return SIMD_2x64(_mm_shuffle_epi8(m_simd, idx));
  119|       |#elif defined(BOTAN_SIMD_USE_NEON)
  120|       |         return SIMD_2x64(vreinterpretq_u64_u8(vrev64q_u8(vreinterpretq_u8_u64(m_simd))));
  121|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  122|       |         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));
  123|       |#endif
  124|     16|      }
_ZN5Botan9SIMD_2x64C2EDv2_x:
  399|    624|      explicit BOTAN_FN_ISA_SIMD_2X64 SIMD_2x64(native_simd_type x) : m_simd(x) {}
_ZNK5Botan9SIMD_2x64plERKS0_:
  167|    272|      SIMD_2x64 BOTAN_FN_ISA_SIMD_2X64 operator+(const SIMD_2x64& other) const {
  168|    272|         SIMD_2x64 retval(*this);
  169|    272|         retval += other;
  170|    272|         return retval;
  171|    272|      }
_ZN5Botan9SIMD_2x64pLERKS0_:
  195|    272|      void BOTAN_FN_ISA_SIMD_2X64 operator+=(const SIMD_2x64& other) {
  196|    272|#if defined(BOTAN_SIMD_USE_SSSE3)
  197|    272|         m_simd = _mm_add_epi64(m_simd, other.m_simd);
  198|       |#elif defined(BOTAN_SIMD_USE_NEON)
  199|       |         m_simd = vaddq_u64(m_simd, other.m_simd);
  200|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  201|       |         m_simd = wasm_i64x2_add(m_simd, other.m_simd);
  202|       |#endif
  203|    272|      }
_ZN5Botan9SIMD_2x647load_leEPKv:
   95|     96|      static SIMD_2x64 BOTAN_FN_ISA_SIMD_2X64 load_le(const void* in) {
   96|     96|#if defined(BOTAN_SIMD_USE_SSSE3)
   97|     96|         return SIMD_2x64(_mm_loadu_si128(reinterpret_cast<const __m128i*>(in)));
   98|       |#elif defined(BOTAN_SIMD_USE_NEON)
   99|       |         return SIMD_2x64(vreinterpretq_u64_u8(vld1q_u8(reinterpret_cast<const uint8_t*>(in))));
  100|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  101|       |         return SIMD_2x64(wasm_v128_load(in));
  102|       |#endif
  103|     96|      }
_ZNK5Botan9SIMD_2x648store_leEPm:
  147|     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:
  149|     80|      void BOTAN_FN_ISA_SIMD_2X64 store_le(uint8_t out[]) const {
  150|     80|#if defined(BOTAN_SIMD_USE_SSSE3)
  151|     80|         _mm_storeu_si128(reinterpret_cast<__m128i*>(out), m_simd);
  152|       |#elif defined(BOTAN_SIMD_USE_NEON)
  153|       |         vst1q_u8(out, vreinterpretq_u8_u64(m_simd));
  154|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  155|       |         wasm_v128_store(out, m_simd);
  156|       |#endif
  157|     80|      }
_ZN5Botan9SIMD_2x647alignr8ERKS0_S2_:
  314|    128|      static SIMD_2x64 BOTAN_FN_ISA_SIMD_2X64 alignr8(const SIMD_2x64& a, const SIMD_2x64& b) {
  315|    128|#if defined(BOTAN_SIMD_USE_SSSE3)
  316|    128|         return SIMD_2x64(_mm_alignr_epi8(a.m_simd, b.m_simd, 8));
  317|       |#elif defined(BOTAN_SIMD_USE_NEON)
  318|       |         return SIMD_2x64(vextq_u64(b.m_simd, a.m_simd, 1));
  319|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  320|       |         return SIMD_2x64(
  321|       |            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));
  322|       |#endif
  323|    128|      }
_ZNK5Botan9SIMD_2x644rotrILm1EEES0_vQaagtT_Li0EltT_Li64E:
  230|     64|      {
  231|     64|#if defined(BOTAN_SIMD_USE_SSSE3)
  232|       |         if constexpr(ROT == 8) {
  233|       |            auto tab = _mm_setr_epi8(1, 2, 3, 4, 5, 6, 7, 0, 9, 10, 11, 12, 13, 14, 15, 8);
  234|       |            return SIMD_2x64(_mm_shuffle_epi8(m_simd, tab));
  235|       |         } else if constexpr(ROT == 16) {
  236|       |            auto tab = _mm_setr_epi8(2, 3, 4, 5, 6, 7, 0, 1, 10, 11, 12, 13, 14, 15, 8, 9);
  237|       |            return SIMD_2x64(_mm_shuffle_epi8(m_simd, tab));
  238|       |         } else if constexpr(ROT == 24) {
  239|       |            auto tab = _mm_setr_epi8(3, 4, 5, 6, 7, 0, 1, 2, 11, 12, 13, 14, 15, 8, 9, 10);
  240|       |            return SIMD_2x64(_mm_shuffle_epi8(m_simd, tab));
  241|       |         } else if constexpr(ROT == 32) {
  242|       |            auto tab = _mm_setr_epi8(4, 5, 6, 7, 0, 1, 2, 3, 12, 13, 14, 15, 8, 9, 10, 11);
  243|       |            return SIMD_2x64(_mm_shuffle_epi8(m_simd, tab));
  244|     64|         } else {
  245|     64|            return SIMD_2x64(_mm_or_si128(_mm_srli_epi64(m_simd, static_cast<int>(ROT)),
  246|     64|                                          _mm_slli_epi64(m_simd, static_cast<int>(64 - ROT))));
  247|     64|         }
  248|       |#elif defined(BOTAN_SIMD_USE_NEON)
  249|       |         return SIMD_2x64(vsriq_n_u64(vshlq_n_u64(m_simd, 64 - ROT), m_simd, ROT));
  250|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  251|       |         if constexpr(ROT == 8) {
  252|       |            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));
  253|       |         } else if constexpr(ROT == 16) {
  254|       |            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));
  255|       |         } else if constexpr(ROT == 24) {
  256|       |            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));
  257|       |         } else if constexpr(ROT == 32) {
  258|       |            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));
  259|       |         } else {
  260|       |            return SIMD_2x64(wasm_v128_or(wasm_u64x2_shr(m_simd, ROT), wasm_i64x2_shl(m_simd, 64 - ROT)));
  261|       |         }
  262|       |#endif
  263|     64|      }
_ZNK5Botan9SIMD_2x64eoERKS0_:
  173|    256|      SIMD_2x64 BOTAN_FN_ISA_SIMD_2X64 operator^(const SIMD_2x64& other) const {
  174|    256|         SIMD_2x64 retval(*this);
  175|    256|         retval ^= other;
  176|    256|         return retval;
  177|    256|      }
_ZN5Botan9SIMD_2x64eOERKS0_:
  205|    256|      void BOTAN_FN_ISA_SIMD_2X64 operator^=(const SIMD_2x64& other) {
  206|    256|#if defined(BOTAN_SIMD_USE_SSSE3)
  207|    256|         m_simd = _mm_xor_si128(m_simd, other.m_simd);
  208|       |#elif defined(BOTAN_SIMD_USE_NEON)
  209|       |         m_simd = veorq_u64(m_simd, other.m_simd);
  210|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  211|       |         m_simd = wasm_v128_xor(m_simd, other.m_simd);
  212|       |#endif
  213|    256|      }
_ZNK5Botan9SIMD_2x644rotrILm8EEES0_vQaagtT_Li0EltT_Li64E:
  230|     64|      {
  231|     64|#if defined(BOTAN_SIMD_USE_SSSE3)
  232|     64|         if constexpr(ROT == 8) {
  233|     64|            auto tab = _mm_setr_epi8(1, 2, 3, 4, 5, 6, 7, 0, 9, 10, 11, 12, 13, 14, 15, 8);
  234|     64|            return SIMD_2x64(_mm_shuffle_epi8(m_simd, tab));
  235|       |         } else if constexpr(ROT == 16) {
  236|       |            auto tab = _mm_setr_epi8(2, 3, 4, 5, 6, 7, 0, 1, 10, 11, 12, 13, 14, 15, 8, 9);
  237|       |            return SIMD_2x64(_mm_shuffle_epi8(m_simd, tab));
  238|       |         } else if constexpr(ROT == 24) {
  239|       |            auto tab = _mm_setr_epi8(3, 4, 5, 6, 7, 0, 1, 2, 11, 12, 13, 14, 15, 8, 9, 10);
  240|       |            return SIMD_2x64(_mm_shuffle_epi8(m_simd, tab));
  241|       |         } else if constexpr(ROT == 32) {
  242|       |            auto tab = _mm_setr_epi8(4, 5, 6, 7, 0, 1, 2, 3, 12, 13, 14, 15, 8, 9, 10, 11);
  243|       |            return SIMD_2x64(_mm_shuffle_epi8(m_simd, tab));
  244|       |         } else {
  245|       |            return SIMD_2x64(_mm_or_si128(_mm_srli_epi64(m_simd, static_cast<int>(ROT)),
  246|       |                                          _mm_slli_epi64(m_simd, static_cast<int>(64 - ROT))));
  247|       |         }
  248|       |#elif defined(BOTAN_SIMD_USE_NEON)
  249|       |         return SIMD_2x64(vsriq_n_u64(vshlq_n_u64(m_simd, 64 - ROT), m_simd, ROT));
  250|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  251|       |         if constexpr(ROT == 8) {
  252|       |            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));
  253|       |         } else if constexpr(ROT == 16) {
  254|       |            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));
  255|       |         } else if constexpr(ROT == 24) {
  256|       |            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));
  257|       |         } else if constexpr(ROT == 32) {
  258|       |            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));
  259|       |         } else {
  260|       |            return SIMD_2x64(wasm_v128_or(wasm_u64x2_shr(m_simd, ROT), wasm_i64x2_shl(m_simd, 64 - ROT)));
  261|       |         }
  262|       |#endif
  263|     64|      }
_ZNK5Botan9SIMD_2x643shrILi7EEES0_v:
  293|     64|      SIMD_2x64 BOTAN_FN_ISA_SIMD_2X64 shr() const noexcept {
  294|     64|#if defined(BOTAN_SIMD_USE_SSSE3)
  295|     64|         return SIMD_2x64(_mm_srli_epi64(m_simd, SHIFT));
  296|       |#elif defined(BOTAN_SIMD_USE_NEON)
  297|       |         return SIMD_2x64(vshrq_n_u64(m_simd, SHIFT));
  298|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  299|       |         return SIMD_2x64(wasm_u64x2_shr(m_simd, SHIFT));
  300|       |#endif
  301|     64|      }
_ZNK5Botan9SIMD_2x644rotrILm19EEES0_vQaagtT_Li0EltT_Li64E:
  230|     64|      {
  231|     64|#if defined(BOTAN_SIMD_USE_SSSE3)
  232|       |         if constexpr(ROT == 8) {
  233|       |            auto tab = _mm_setr_epi8(1, 2, 3, 4, 5, 6, 7, 0, 9, 10, 11, 12, 13, 14, 15, 8);
  234|       |            return SIMD_2x64(_mm_shuffle_epi8(m_simd, tab));
  235|       |         } else if constexpr(ROT == 16) {
  236|       |            auto tab = _mm_setr_epi8(2, 3, 4, 5, 6, 7, 0, 1, 10, 11, 12, 13, 14, 15, 8, 9);
  237|       |            return SIMD_2x64(_mm_shuffle_epi8(m_simd, tab));
  238|       |         } else if constexpr(ROT == 24) {
  239|       |            auto tab = _mm_setr_epi8(3, 4, 5, 6, 7, 0, 1, 2, 11, 12, 13, 14, 15, 8, 9, 10);
  240|       |            return SIMD_2x64(_mm_shuffle_epi8(m_simd, tab));
  241|       |         } else if constexpr(ROT == 32) {
  242|       |            auto tab = _mm_setr_epi8(4, 5, 6, 7, 0, 1, 2, 3, 12, 13, 14, 15, 8, 9, 10, 11);
  243|       |            return SIMD_2x64(_mm_shuffle_epi8(m_simd, tab));
  244|     64|         } else {
  245|     64|            return SIMD_2x64(_mm_or_si128(_mm_srli_epi64(m_simd, static_cast<int>(ROT)),
  246|     64|                                          _mm_slli_epi64(m_simd, static_cast<int>(64 - ROT))));
  247|     64|         }
  248|       |#elif defined(BOTAN_SIMD_USE_NEON)
  249|       |         return SIMD_2x64(vsriq_n_u64(vshlq_n_u64(m_simd, 64 - ROT), m_simd, ROT));
  250|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  251|       |         if constexpr(ROT == 8) {
  252|       |            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));
  253|       |         } else if constexpr(ROT == 16) {
  254|       |            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));
  255|       |         } else if constexpr(ROT == 24) {
  256|       |            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));
  257|       |         } else if constexpr(ROT == 32) {
  258|       |            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));
  259|       |         } else {
  260|       |            return SIMD_2x64(wasm_v128_or(wasm_u64x2_shr(m_simd, ROT), wasm_i64x2_shl(m_simd, 64 - ROT)));
  261|       |         }
  262|       |#endif
  263|     64|      }
_ZNK5Botan9SIMD_2x644rotrILm61EEES0_vQaagtT_Li0EltT_Li64E:
  230|     64|      {
  231|     64|#if defined(BOTAN_SIMD_USE_SSSE3)
  232|       |         if constexpr(ROT == 8) {
  233|       |            auto tab = _mm_setr_epi8(1, 2, 3, 4, 5, 6, 7, 0, 9, 10, 11, 12, 13, 14, 15, 8);
  234|       |            return SIMD_2x64(_mm_shuffle_epi8(m_simd, tab));
  235|       |         } else if constexpr(ROT == 16) {
  236|       |            auto tab = _mm_setr_epi8(2, 3, 4, 5, 6, 7, 0, 1, 10, 11, 12, 13, 14, 15, 8, 9);
  237|       |            return SIMD_2x64(_mm_shuffle_epi8(m_simd, tab));
  238|       |         } else if constexpr(ROT == 24) {
  239|       |            auto tab = _mm_setr_epi8(3, 4, 5, 6, 7, 0, 1, 2, 11, 12, 13, 14, 15, 8, 9, 10);
  240|       |            return SIMD_2x64(_mm_shuffle_epi8(m_simd, tab));
  241|       |         } else if constexpr(ROT == 32) {
  242|       |            auto tab = _mm_setr_epi8(4, 5, 6, 7, 0, 1, 2, 3, 12, 13, 14, 15, 8, 9, 10, 11);
  243|       |            return SIMD_2x64(_mm_shuffle_epi8(m_simd, tab));
  244|     64|         } else {
  245|     64|            return SIMD_2x64(_mm_or_si128(_mm_srli_epi64(m_simd, static_cast<int>(ROT)),
  246|     64|                                          _mm_slli_epi64(m_simd, static_cast<int>(64 - ROT))));
  247|     64|         }
  248|       |#elif defined(BOTAN_SIMD_USE_NEON)
  249|       |         return SIMD_2x64(vsriq_n_u64(vshlq_n_u64(m_simd, 64 - ROT), m_simd, ROT));
  250|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  251|       |         if constexpr(ROT == 8) {
  252|       |            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));
  253|       |         } else if constexpr(ROT == 16) {
  254|       |            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));
  255|       |         } else if constexpr(ROT == 24) {
  256|       |            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));
  257|       |         } else if constexpr(ROT == 32) {
  258|       |            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));
  259|       |         } else {
  260|       |            return SIMD_2x64(wasm_v128_or(wasm_u64x2_shr(m_simd, ROT), wasm_i64x2_shl(m_simd, 64 - ROT)));
  261|       |         }
  262|       |#endif
  263|     64|      }
_ZNK5Botan9SIMD_2x643shrILi6EEES0_v:
  293|     64|      SIMD_2x64 BOTAN_FN_ISA_SIMD_2X64 shr() const noexcept {
  294|     64|#if defined(BOTAN_SIMD_USE_SSSE3)
  295|     64|         return SIMD_2x64(_mm_srli_epi64(m_simd, SHIFT));
  296|       |#elif defined(BOTAN_SIMD_USE_NEON)
  297|       |         return SIMD_2x64(vshrq_n_u64(m_simd, SHIFT));
  298|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  299|       |         return SIMD_2x64(wasm_u64x2_shr(m_simd, SHIFT));
  300|       |#endif
  301|     64|      }

_ZN5Botan6SpongeILm25EmE11state_bytesEv:
   43|  3.80k|      constexpr static size_t state_bytes() { return sizeof(state_t); }
_ZN5Botan6SpongeILm25EmE10state_bitsEv:
   45|  3.80k|      constexpr static size_t state_bits() { return state_bytes() * 8; }
_ZNK5Botan6SpongeILm25EmE9byte_rateEv:
   49|   904k|      constexpr size_t byte_rate() const { return m_bit_rate / 8; }
_ZN5Botan6SpongeILm25EmEC2ENS1_6ConfigE:
   39|  3.80k|      constexpr explicit Sponge(Config config) : m_S(config.initial_state), m_S_cursor(0), m_bit_rate(config.bit_rate) {
   40|  3.80k|         BOTAN_ARG_CHECK(m_bit_rate % word_bits == 0 && m_bit_rate < words * word_bits, "Invalid sponge bit rate");
  ------------------
  |  |   35|  3.80k|   do {                                                          \
  |  |   36|  3.80k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  7.61k|      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]
  |  |  ------------------
  ------------------
   41|  3.80k|      }
_ZN5Botan6SpongeILm25EmE5stateEv:
   55|  1.32M|      constexpr auto& state() { return m_S; }
_ZN5Botan6SpongeILm25EmE12reset_cursorEv:
   62|  4.76k|      void reset_cursor() { m_S_cursor = 0; }
_ZN5Botan6SpongeILm25EmE7_cursorEv:
   59|   900k|      size_t& _cursor() { return m_S_cursor; }
_ZNK5Botan6SpongeILm25EmE6cursorEv:
   57|  8.45k|      size_t cursor() const { return m_S_cursor; }

_ZN5Botan18absorb_into_spongeITkNS_6detail28SpongeLikeWithTrivialPermuteENS_18Keccak_PermutationEEEvRT_NSt3__14spanIKhLm18446744073709551615EEE:
  233|  8.35k|inline void absorb_into_sponge(detail::SpongeLikeWithTrivialPermute auto& sponge, std::span<const uint8_t> input) {
  234|  8.35k|   absorb_into_sponge(sponge, input, [&sponge] { sponge.permute(); });
  235|  8.35k|}
_ZN5Botan18absorb_into_spongeITkNS_6detail10SpongeLikeENS_18Keccak_PermutationETkNS1_13PermutationFnEZNS_18absorb_into_spongeITkNS1_28SpongeLikeWithTrivialPermuteES2_EEvRT_NSt3__14spanIKhLm18446744073709551615EEEEUlvE_EEvS5_S9_RKT0_:
  223|  8.35k|                               const detail::PermutationFn auto& permutation_fn) {
  224|  8.35k|   using word_t = typename SpongeT::word_t;
  225|       |
  226|  8.35k|   BufferSlicer input_slicer(input);
  227|  8.35k|   process_bytes_in_sponge(sponge, input.size(), permutation_fn, [&](word_t state_word, auto bounds) {
  228|  8.35k|      return state_word ^ bounds.read_from(input_slicer);
  229|  8.35k|   });
  230|  8.35k|   BOTAN_ASSERT_NOMSG(input_slicer.empty());
  ------------------
  |  |   84|  8.35k|   do {                                                                     \
  |  |   85|  8.35k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   86|  8.35k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 8.35k]
  |  |  ------------------
  |  |   87|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   88|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   89|      0|      }                                                                     \
  |  |   90|  8.35k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (90:12): [Folded, False: 8.35k]
  |  |  ------------------
  ------------------
  231|  8.35k|}
_ZN5Botan23process_bytes_in_spongeITkNS_6detail10SpongeLikeENS_18Keccak_PermutationETkNS1_13PermutationFnEZNS_18absorb_into_spongeITkNS1_28SpongeLikeWithTrivialPermuteES2_EEvRT_NSt3__14spanIKhLm18446744073709551615EEEEUlvE_TkNS1_10ModifierFnIS4_EEZNS_18absorb_into_spongeITkNS1_10SpongeLikeES2_TkNS1_13PermutationFnESA_EEvS5_S9_RKT0_EUlmS4_E_EEvS5_mSF_RKT1_:
  139|  8.35k|                                                const detail::ModifierFn<SpongeT> auto& modifier_fn) {
  140|  8.35k|   if(bytes_to_process == 0) {
  ------------------
  |  Branch (140:7): [True: 0, False: 8.35k]
  ------------------
  141|      0|      return;
  142|      0|   }
  143|       |
  144|  8.35k|   constexpr auto word_bytes = SpongeT::word_bytes;
  145|  8.35k|   const auto byte_rate = sponge.byte_rate();
  146|  8.35k|   auto& S = sponge.state();
  147|  8.35k|   auto& cursor = sponge._cursor();
  148|       |
  149|       |   // If necessary, try to get aligned with the sponge state's words array
  150|  8.35k|   const auto bytes_out_of_word_alignment = static_cast<size_t>(cursor % word_bytes);
  151|  8.35k|   if(bytes_out_of_word_alignment > 0) {
  ------------------
  |  Branch (151:7): [True: 0, False: 8.35k]
  ------------------
  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);
  ------------------
  |  |  137|      0|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|      0|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 0]
  |  |  ------------------
  ------------------
  155|       |
  156|      0|      S[cursor / word_bytes] = modifier_fn(S[cursor / word_bytes],
  157|      0|                                           detail::PartialWordBounds<SpongeT>{
  158|      0|                                              .offset = bytes_out_of_word_alignment,
  159|      0|                                              .length = bytes_from_input,
  160|      0|                                           });
  161|      0|      cursor += bytes_from_input;
  162|      0|      bytes_to_process -= bytes_from_input;
  163|       |
  164|      0|      if(cursor == byte_rate) {
  ------------------
  |  Branch (164:10): [True: 0, False: 0]
  ------------------
  165|      0|         permutation_fn();
  166|      0|         cursor = 0;
  167|      0|      }
  168|      0|   }
  169|       |
  170|       |   // If we didn't exhaust the bytes to process for this invocation, we should
  171|       |   // be word-aligned with the sponge state now
  172|  8.35k|   BOTAN_DEBUG_ASSERT(bytes_to_process == 0 || cursor % word_bytes == 0);
  ------------------
  |  |  137|  8.35k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|  8.35k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 8.35k]
  |  |  ------------------
  ------------------
  173|       |
  174|       |   // Block-wise incorporation of the input data into the sponge state until
  175|       |   // all input bytes are processed
  176|  13.9k|   while(bytes_to_process >= word_bytes) {
  ------------------
  |  Branch (176:10): [True: 5.55k, False: 8.35k]
  ------------------
  177|       |      // Process full words until we either run out of data or reach the
  178|       |      // end of the current sponge state block
  179|  48.7k|      while(bytes_to_process >= word_bytes && cursor < byte_rate) {
  ------------------
  |  Branch (179:13): [True: 44.5k, False: 4.22k]
  |  Branch (179:47): [True: 43.2k, False: 1.32k]
  ------------------
  180|  43.2k|         S[cursor / word_bytes] = modifier_fn(S[cursor / word_bytes], detail::FullWordBounds<SpongeT>{});
  181|  43.2k|         cursor += word_bytes;
  182|  43.2k|         bytes_to_process -= word_bytes;
  183|  43.2k|      }
  184|       |
  185|  5.55k|      if(cursor == byte_rate) {
  ------------------
  |  Branch (185:10): [True: 1.32k, False: 4.22k]
  ------------------
  186|  1.32k|         permutation_fn();
  187|  1.32k|         cursor = 0;
  188|  1.32k|      }
  189|  5.55k|   }
  190|       |
  191|       |   // Process the remaining bytes that don't fill an entire word.
  192|       |   // Therefore, leaving the sponge state in an unaligned state that won't
  193|       |   // need another permutation until the next call to process().
  194|  8.35k|   BOTAN_DEBUG_ASSERT(bytes_to_process < word_bytes && cursor < byte_rate);
  ------------------
  |  |  137|  8.35k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|  8.35k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 8.35k]
  |  |  ------------------
  ------------------
  195|  8.35k|   if(bytes_to_process > 0) {
  ------------------
  |  Branch (195:7): [True: 4.12k, False: 4.22k]
  ------------------
  196|  4.12k|      S[cursor / word_bytes] = modifier_fn(S[cursor / word_bytes],
  197|  4.12k|                                           detail::PartialWordBounds<SpongeT>{
  198|  4.12k|                                              .offset = 0,
  199|  4.12k|                                              .length = bytes_to_process,
  200|  4.12k|                                           });
  201|  4.12k|      cursor += bytes_to_process;
  202|  4.12k|   }
  203|  8.35k|}
_ZZN5Botan18absorb_into_spongeITkNS_6detail10SpongeLikeENS_18Keccak_PermutationETkNS1_13PermutationFnEZNS_18absorb_into_spongeITkNS1_28SpongeLikeWithTrivialPermuteES2_EEvRT_NSt3__14spanIKhLm18446744073709551615EEEEUlvE_EEvS5_S9_RKT0_ENKUlmS4_E_clINS1_17PartialWordBoundsIS2_EEEEDamS4_:
  227|  4.12k|   process_bytes_in_sponge(sponge, input.size(), permutation_fn, [&](word_t state_word, auto bounds) {
  228|  4.12k|      return state_word ^ bounds.read_from(input_slicer);
  229|  4.12k|   });
_ZNK5Botan6detail17PartialWordBoundsINS_18Keccak_PermutationEE9read_fromERNS_12BufferSlicerE:
   59|  4.12k|      word_t read_from(BufferSlicer& slicer) const {
   60|  4.12k|         std::array<uint8_t, word_bytes> partial_word_bytes{};
   61|  4.12k|         slicer.copy_into(std::span{partial_word_bytes}.subspan(offset, length));
   62|  4.12k|         return load_le(partial_word_bytes);
   63|  4.12k|      }
_ZZN5Botan18absorb_into_spongeITkNS_6detail28SpongeLikeWithTrivialPermuteENS_18Keccak_PermutationEEEvRT_NSt3__14spanIKhLm18446744073709551615EEEENKUlvE_clEv:
  234|  1.32k|   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|  43.2k|   process_bytes_in_sponge(sponge, input.size(), permutation_fn, [&](word_t state_word, auto bounds) {
  228|  43.2k|      return state_word ^ bounds.read_from(input_slicer);
  229|  43.2k|   });
_ZNK5Botan6detail14FullWordBoundsINS_18Keccak_PermutationEE9read_fromERNS_12BufferSlicerE:
   97|  43.2k|      word_t read_from(BufferSlicer& slicer) const { return load_le(slicer.take<word_bytes>()); }
_ZN5Botan19squeeze_from_spongeITkNS_6detail28SpongeLikeWithTrivialPermuteENS_18Keccak_PermutationEEEvRT_NSt3__14spanIhLm18446744073709551615EEE:
  258|   892k|inline void squeeze_from_sponge(detail::SpongeLikeWithTrivialPermute auto& sponge, std::span<uint8_t> output) {
  259|   892k|   squeeze_from_sponge(sponge, output, [&sponge] { sponge.permute(); });
  260|   892k|}
_ZN5Botan19squeeze_from_spongeITkNS_6detail10SpongeLikeENS_18Keccak_PermutationETkNS1_13PermutationFnEZNS_19squeeze_from_spongeITkNS1_28SpongeLikeWithTrivialPermuteES2_EEvRT_NSt3__14spanIhLm18446744073709551615EEEEUlvE_EEvS5_S8_RKT0_:
  247|   892k|                                const detail::PermutationFn auto& permutation_fn) {
  248|   892k|   using word_t = typename SpongeT::word_t;
  249|       |
  250|   892k|   BufferStuffer output_stuffer(output);
  251|   892k|   process_bytes_in_sponge(sponge, output.size(), permutation_fn, [&](word_t state_word, auto bounds) {
  252|   892k|      bounds.write_into(output_stuffer, state_word);
  253|   892k|      return state_word;
  254|   892k|   });
  255|   892k|   BOTAN_ASSERT_NOMSG(output_stuffer.full());
  ------------------
  |  |   84|   892k|   do {                                                                     \
  |  |   85|   892k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   86|   892k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 892k]
  |  |  ------------------
  |  |   87|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   88|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   89|      0|      }                                                                     \
  |  |   90|   892k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (90:12): [Folded, False: 892k]
  |  |  ------------------
  ------------------
  256|   892k|}
_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|   892k|                                                const detail::ModifierFn<SpongeT> auto& modifier_fn) {
  140|   892k|   if(bytes_to_process == 0) {
  ------------------
  |  Branch (140:7): [True: 0, False: 892k]
  ------------------
  141|      0|      return;
  142|      0|   }
  143|       |
  144|   892k|   constexpr auto word_bytes = SpongeT::word_bytes;
  145|   892k|   const auto byte_rate = sponge.byte_rate();
  146|   892k|   auto& S = sponge.state();
  147|   892k|   auto& cursor = sponge._cursor();
  148|       |
  149|       |   // If necessary, try to get aligned with the sponge state's words array
  150|   892k|   const auto bytes_out_of_word_alignment = static_cast<size_t>(cursor % word_bytes);
  151|   892k|   if(bytes_out_of_word_alignment > 0) {
  ------------------
  |  Branch (151:7): [True: 779k, False: 112k]
  ------------------
  152|   779k|      const auto bytes_until_word_alignment = word_bytes - bytes_out_of_word_alignment;
  153|   779k|      const auto bytes_from_input = std::min(bytes_to_process, bytes_until_word_alignment);
  154|   779k|      BOTAN_DEBUG_ASSERT(bytes_from_input < word_bytes);
  ------------------
  |  |  137|   779k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|   779k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 779k]
  |  |  ------------------
  ------------------
  155|       |
  156|   779k|      S[cursor / word_bytes] = modifier_fn(S[cursor / word_bytes],
  157|   779k|                                           detail::PartialWordBounds<SpongeT>{
  158|   779k|                                              .offset = bytes_out_of_word_alignment,
  159|   779k|                                              .length = bytes_from_input,
  160|   779k|                                           });
  161|   779k|      cursor += bytes_from_input;
  162|   779k|      bytes_to_process -= bytes_from_input;
  163|       |
  164|   779k|      if(cursor == byte_rate) {
  ------------------
  |  Branch (164:10): [True: 12.0k, False: 767k]
  ------------------
  165|  12.0k|         permutation_fn();
  166|  12.0k|         cursor = 0;
  167|  12.0k|      }
  168|   779k|   }
  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|   892k|   BOTAN_DEBUG_ASSERT(bytes_to_process == 0 || cursor % word_bytes == 0);
  ------------------
  |  |  137|   892k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|   892k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 892k]
  |  |  ------------------
  ------------------
  173|       |
  174|       |   // Block-wise incorporation of the input data into the sponge state until
  175|       |   // all input bytes are processed
  176|   892k|   while(bytes_to_process >= word_bytes) {
  ------------------
  |  Branch (176:10): [True: 548, False: 892k]
  ------------------
  177|       |      // Process full words until we either run out of data or reach the
  178|       |      // end of the current sponge state block
  179|  5.66k|      while(bytes_to_process >= word_bytes && cursor < byte_rate) {
  ------------------
  |  Branch (179:13): [True: 5.14k, False: 524]
  |  Branch (179:47): [True: 5.11k, False: 24]
  ------------------
  180|  5.11k|         S[cursor / word_bytes] = modifier_fn(S[cursor / word_bytes], detail::FullWordBounds<SpongeT>{});
  181|  5.11k|         cursor += word_bytes;
  182|  5.11k|         bytes_to_process -= word_bytes;
  183|  5.11k|      }
  184|       |
  185|    548|      if(cursor == byte_rate) {
  ------------------
  |  Branch (185:10): [True: 24, False: 524]
  ------------------
  186|     24|         permutation_fn();
  187|     24|         cursor = 0;
  188|     24|      }
  189|    548|   }
  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|   892k|   BOTAN_DEBUG_ASSERT(bytes_to_process < word_bytes && cursor < byte_rate);
  ------------------
  |  |  137|   892k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|   892k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 892k]
  |  |  ------------------
  ------------------
  195|   892k|   if(bytes_to_process > 0) {
  ------------------
  |  Branch (195:7): [True: 296k, False: 596k]
  ------------------
  196|   296k|      S[cursor / word_bytes] = modifier_fn(S[cursor / word_bytes],
  197|   296k|                                           detail::PartialWordBounds<SpongeT>{
  198|   296k|                                              .offset = 0,
  199|   296k|                                              .length = bytes_to_process,
  200|   296k|                                           });
  201|   296k|      cursor += bytes_to_process;
  202|   296k|   }
  203|   892k|}
_ZZN5Botan19squeeze_from_spongeITkNS_6detail10SpongeLikeENS_18Keccak_PermutationETkNS1_13PermutationFnEZNS_19squeeze_from_spongeITkNS1_28SpongeLikeWithTrivialPermuteES2_EEvRT_NSt3__14spanIhLm18446744073709551615EEEEUlvE_EEvS5_S8_RKT0_ENKUlmS4_E_clINS1_17PartialWordBoundsIS2_EEEEDamS4_:
  251|  1.07M|   process_bytes_in_sponge(sponge, output.size(), permutation_fn, [&](word_t state_word, auto bounds) {
  252|  1.07M|      bounds.write_into(output_stuffer, state_word);
  253|  1.07M|      return state_word;
  254|  1.07M|   });
_ZNK5Botan6detail17PartialWordBoundsINS_18Keccak_PermutationEE10write_intoERNS_13BufferStufferEm:
   69|  1.07M|      void write_into(BufferStuffer& stuffer, word_t partial_word) const {
   70|  1.07M|         const auto partial_word_bytes = store_le(partial_word);
   71|  1.07M|         stuffer.append(std::span{partial_word_bytes}.subspan(offset, length));
   72|  1.07M|      }
_ZZN5Botan19squeeze_from_spongeITkNS_6detail28SpongeLikeWithTrivialPermuteENS_18Keccak_PermutationEEEvRT_NSt3__14spanIhLm18446744073709551615EEEENKUlvE_clEv:
  259|  12.1k|   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.11k|   process_bytes_in_sponge(sponge, output.size(), permutation_fn, [&](word_t state_word, auto bounds) {
  252|  5.11k|      bounds.write_into(output_stuffer, state_word);
  253|  5.11k|      return state_word;
  254|  5.11k|   });
_ZNK5Botan6detail14FullWordBoundsINS_18Keccak_PermutationEE10write_intoERNS_13BufferStufferEm:
   99|  5.11k|      void write_into(BufferStuffer& stuffer, word_t full_word) const { stuffer.append(store_le(full_word)); }

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

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

_ZNK5Botan14ASN1_BitString5bytesEv:
  206|  1.23k|      std::span<const uint8_t> bytes() const { return std::span{m_bytes}; }
_ZNK5Botan14ASN1_BitString11unused_bitsEv:
  211|    619|      size_t unused_bits() const { return m_unused_bits; }
_ZNK5Botan10BER_Object6is_setEv:
  267|   155k|      bool is_set() const { return m_type_tag != ASN1_Type::NoObject; }
_ZNK5Botan10BER_Object7taggingEv:
  272|  60.4k|      uint32_t tagging() const { return type_tag() | class_tag(); }
_ZNK5Botan10BER_Object8type_tagEv:
  277|  63.3k|      ASN1_Type type_tag() const { return m_type_tag; }
_ZNK5Botan10BER_Object9class_tagEv:
  282|  73.3k|      ASN1_Class class_tag() const { return m_class_tag; }
_ZNK5Botan10BER_Object4bitsEv:
  298|   601k|      const uint8_t* bits() const { return m_value.data(); }
_ZNK5Botan10BER_Object6lengthEv:
  303|  1.28M|      size_t length() const { return m_value.size(); }
_ZNK5Botan10BER_Object4dataEv:
  308|  22.0k|      std::span<const uint8_t> data() const { return std::span{m_value}; }
_ZN5Botan10BER_Object12mutable_bitsEm:
  344|  52.0k|      uint8_t* mutable_bits(size_t length) {
  345|  52.0k|         m_value.resize(length);
  346|  52.0k|         return m_value.data();
  347|  52.0k|      }
_ZNK5Botan3OID5emptyEv:
  468|  11.0k|      bool empty() const { return m_id.empty(); }
_ZNK5Botan3OID9has_valueEv:
  474|  5.08k|      bool has_value() const { return !empty(); }
_ZNK5Botan3OIDeqERKS0_:
  510|  31.7k|      bool operator==(const OID& other) const { return m_id == other.m_id; }
_ZNK5Botan19AlgorithmIdentifier3oidEv:
  688|  12.7k|      const OID& oid() const { return m_oid; }
_ZNK5Botan19AlgorithmIdentifier10parametersEv:
  693|  3.16k|      const std::vector<uint8_t>& parameters() const { return m_parameters; }
_ZNK5Botan19AlgorithmIdentifier20parameters_are_emptyEv:
  715|  8.45k|      bool parameters_are_empty() const { return m_parameters.empty(); }
_ZNK5Botan19AlgorithmIdentifier28parameters_are_null_or_emptyEv:
  720|  5.43k|      bool parameters_are_null_or_empty() const { return parameters_are_empty() || parameters_are_null(); }
  ------------------
  |  Branch (720:58): [True: 1.95k, False: 3.47k]
  |  Branch (720:84): [True: 3, False: 3.47k]
  ------------------
_ZN5BotanorENS_10ASN1_ClassES0_:
   91|  20.9k|inline ASN1_Class operator|(ASN1_Class x, ASN1_Class y) {
   92|  20.9k|   return static_cast<ASN1_Class>(static_cast<uint32_t>(x) | static_cast<uint32_t>(y));
   93|  20.9k|}
_ZN5BotanorENS_9ASN1_TypeENS_10ASN1_ClassE:
   98|  60.4k|inline uint32_t operator|(ASN1_Type x, ASN1_Class y) {
   99|  60.4k|   return static_cast<uint32_t>(x) | static_cast<uint32_t>(y);
  100|  60.4k|}
_ZN5BotanorENS_10ASN1_ClassENS_9ASN1_TypeE:
  105|  8.40k|inline uint32_t operator|(ASN1_Class x, ASN1_Type y) {
  106|  8.40k|   return static_cast<uint32_t>(x) | static_cast<uint32_t>(y);
  107|  8.40k|}
_ZN5BotanneERKNS_3OIDES2_:
  561|  4.90k|inline bool operator!=(const OID& a, const OID& b) {
  562|  4.90k|   return !(a == b);
  563|  4.90k|}
_ZNKSt3__14hashIN5Botan3OIDEEclERKS2_:
  761|  1.67k|      size_t operator()(const Botan::OID& oid) const noexcept { return static_cast<size_t>(oid.hash_code()); }
_ZN5Botan3OIDC2Ev:
  423|  22.3k|      explicit OID() = default;
_ZN5Botan11ASN1_ObjectC2Ev:
  146|  65.3k|      ASN1_Object() = default;
_ZN5Botan11ASN1_ObjectD2Ev:
  168|  74.0k|      virtual ~ASN1_Object() = default;
_ZN5Botan11ASN1_ObjectC2ERKS0_:
  151|  2.22k|      ASN1_Object(const ASN1_Object&) = default;
_ZN5Botan11ASN1_ObjectaSERKS0_:
  156|  2.95k|      ASN1_Object& operator=(const ASN1_Object&) = default;
_ZN5Botan19AlgorithmIdentifierC2Ev:
  655|  12.8k|      AlgorithmIdentifier() = default;
_ZN5Botan11ASN1_ObjectC2EOS0_:
  161|  6.53k|      ASN1_Object(ASN1_Object&&) = default;
_ZN5Botan10BER_ObjectC2Ev:
  239|  97.6k|      BER_Object() = default;
_ZN5Botan10BER_ObjectaSEOS0_:
  259|  23.2k|      BER_Object& operator=(BER_Object&& other) = default;
_ZN5Botan10BER_ObjectC2EOS0_:
  249|  21.8k|      BER_Object(BER_Object&& other) = default;
_ZN5Botan14ASN1_BitStringC2Ev:
  179|    625|      ASN1_BitString() = default;

_ZN5Botan13ignore_paramsIJPKmmEEEvDpRKT_:
  149|  32.9M|constexpr void ignore_params([[maybe_unused]] const T&... args) {}
_ZN5Botan13ignore_paramsIJmEEEvDpRKT_:
  149|  53.5k|constexpr void ignore_params([[maybe_unused]] const T&... args) {}
_ZN5Botan13ignore_paramsIJNSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEEEEvDpRKT_:
  149|    543|constexpr void ignore_params([[maybe_unused]] const T&... args) {}
_ZN5Botan13ignore_paramsIJPKhmEEEvDpRKT_:
  149|  2.78k|constexpr void ignore_params([[maybe_unused]] const T&... args) {}
_ZN5Botan13ignore_paramsIJPKbmEEEvDpRKT_:
  149|   312k|constexpr void ignore_params([[maybe_unused]] const T&... args) {}
_ZN5Botan13ignore_paramsIJPKimEEEvDpRKT_:
  149|  2.65k|constexpr void ignore_params([[maybe_unused]] const T&... args) {}
_ZN5Botan13ignore_paramsIJPKsmEEEvDpRKT_:
  149|    178|constexpr void ignore_params([[maybe_unused]] const T&... args) {}
_ZN5Botan13ignore_paramsIJNSt3__14spanIKhLm18446744073709551615EEES4_EEEvDpRKT_:
  149|  4.17k|constexpr void ignore_params([[maybe_unused]] const T&... args) {}

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

_ZN5Botan6BigInt4zeroEv:
   50|  1.58k|      static BigInt zero() { return BigInt(); }
_ZN5Botan6BigInt3oneEv:
   55|  1.40k|      static BigInt one() { return BigInt::from_u64(1); }
_ZN5Botan6BigIntC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   98|  12.9k|      explicit BigInt(std::string_view str) { *this = BigInt::from_string(str); }
_ZN5Botan6BigIntC2ENSt3__14spanIKhLm18446744073709551615EEE:
  139|    286|      explicit BigInt(std::span<const uint8_t> bytes) { assign_from_bytes(bytes); }
_ZN5Botan6BigIntC2EOS0_:
  183|  24.2k|      BigInt(BigInt&& other) noexcept { this->swap(other); }
_ZN5Botan6BigIntD2Ev:
  185|  5.11M|      ~BigInt() { _const_time_unpoison(); }
_ZN5Botan6BigIntaSEOS0_:
  190|  1.94M|      BigInt& operator=(BigInt&& other) noexcept {
  191|  1.94M|         if(this != &other) {
  ------------------
  |  Branch (191:13): [True: 1.94M, False: 0]
  ------------------
  192|  1.94M|            this->swap(other);
  193|  1.94M|         }
  194|       |
  195|  1.94M|         return (*this);
  196|  1.94M|      }
_ZN5Botan6BigInt4swapERS0_:
  207|  2.95M|      void swap(BigInt& other) noexcept {
  208|  2.95M|         m_data.swap(other.m_data);
  209|  2.95M|         std::swap(m_signedness, other.m_signedness);
  210|  2.95M|      }
_ZN5Botan6BigInt8swap_regERNSt3__16vectorImNS_16secure_allocatorImEEEE:
  218|   692k|      BOTAN_DEPRECATED("Deprecated no replacement") void swap_reg(secure_vector<word>& reg) {
  219|   692k|         m_data.swap(reg);
  220|       |         // sign left unchanged
  221|   692k|      }
_ZN5Botan6BigIntpLEm:
  233|  2.31k|      BigInt& operator+=(word y) { return add(&y, 1, Positive); }
_ZN5Botan6BigIntmIEm:
  245|  1.41k|      BigInt& operator-=(word y) { return sub(&y, 1, Positive); }
_ZN5Botan6BigInt3subEPKmmNS0_4SignE:
  358|  1.41k|      BigInt& sub(const word y[], size_t y_words, Sign sign) {
  359|  1.41k|         return add(y, y_words, sign == Positive ? Negative : Positive);
  ------------------
  |  Branch (359:33): [True: 1.41k, False: 0]
  ------------------
  360|  1.41k|      }
_ZN5Botan6BigInt5clearEv:
  441|  33.6k|      void clear() {
  442|  33.6k|         m_data.set_to_zero();
  443|  33.6k|         m_signedness = Positive;
  444|  33.6k|      }
_ZNK5Botan6BigInt7is_evenEv:
  481|  7.44k|      bool is_even() const { return !get_bit(0); }
_ZNK5Botan6BigInt6is_oddEv:
  487|   664k|      bool is_odd() const { return get_bit(0); }
_ZNK5Botan6BigInt6signumEv:
  493|  10.2M|      int signum() const {
  494|  10.2M|         if(sig_words() == 0) {
  ------------------
  |  Branch (494:13): [True: 13.2k, False: 10.2M]
  ------------------
  495|  13.2k|            return 0;
  496|  13.2k|         }
  497|  10.2M|         return (sign() == Negative) ? -1 : 1;
  ------------------
  |  Branch (497:17): [True: 7.14k, False: 10.2M]
  ------------------
  498|  10.2M|      }
_ZNK5Botan6BigInt7is_zeroEv:
  510|   779k|      bool is_zero() const { return sig_words() == 0; }
_ZN5Botan6BigInt7set_bitEm:
  516|  13.6k|      void set_bit(size_t n) { conditionally_set_bit(n, true); }
_ZN5Botan6BigInt21conditionally_set_bitEmb:
  526|  13.6k|      void conditionally_set_bit(size_t n, bool set_it) {
  527|  13.6k|         const size_t which = n / (sizeof(word) * 8);
  528|  13.6k|         const word mask = static_cast<word>(set_it) << (n % (sizeof(word) * 8));
  529|  13.6k|         m_data.set_word_at(which, word_at(which) | mask);
  530|  13.6k|      }
_ZNK5Botan6BigInt7get_bitEm:
  549|   890k|      bool get_bit(size_t n) const { return ((word_at(n / (sizeof(word) * 8)) >> (n % (sizeof(word) * 8))) & 1) == 1; }
_ZNK5Botan6BigInt7word_atEm:
  601|  17.6M|      word word_at(size_t n) const { return m_data.get_word_at(n); }
_ZN5Botan6BigInt11set_word_atEmm:
  608|  8.65M|      BOTAN_DEPRECATED("Deprecated no replacement") void set_word_at(size_t i, word w) { m_data.set_word_at(i, w); }
_ZN5Botan6BigInt9set_wordsEPKmm:
  615|  53.8k|      BOTAN_DEPRECATED("Deprecated no replacement") void set_words(const word w[], size_t len) {
  616|  53.8k|         m_data.set_words(w, len);
  617|  53.8k|      }
_ZNK5Botan6BigInt4signEv:
  641|  13.6M|      Sign sign() const { return (m_signedness); }
_ZNK5Botan6BigInt12reverse_signEv:
  647|  3.73k|      Sign reverse_sign() const {
  648|  3.73k|         if(sign() == Positive) {
  ------------------
  |  Branch (648:13): [True: 2.82k, False: 906]
  ------------------
  649|  2.82k|            return Negative;
  650|  2.82k|         }
  651|    906|         return Positive;
  652|  3.73k|      }
_ZN5Botan6BigInt9flip_signEv:
  657|  2.31k|      BOTAN_DEPRECATED("Deprecated no replacement") void flip_sign() { set_sign(reverse_sign()); }
_ZN5Botan6BigInt8set_signENS0_4SignE:
  663|  1.13M|      void set_sign(Sign sign) {
  664|  1.13M|         if(sign == Negative && is_zero()) {
  ------------------
  |  Branch (664:13): [True: 4.36k, False: 1.12M]
  |  Branch (664:33): [True: 1.41k, False: 2.95k]
  ------------------
  665|  1.41k|            sign = Positive;
  666|  1.41k|         }
  667|       |
  668|  1.13M|         m_signedness = sign;
  669|  1.13M|      }
_ZNK5Botan6BigInt4sizeEv:
  681|  50.1M|      size_t size() const { return m_data.size(); }
_ZNK5Botan6BigInt9sig_wordsEv:
  687|  23.0M|      size_t sig_words() const { return m_data.sig_words(); }
_ZN5Botan6BigInt12mutable_dataEv:
  712|  15.2M|      BOTAN_DEPRECATED("Deprecated no replacement") word* mutable_data() { return m_data.mutable_data(); }
_ZNK5Botan6BigInt4dataEv:
  718|  10.9k|      BOTAN_DEPRECATED("Deprecated no replacement") const word* data() const { return m_data.const_data(); }
_ZN5Botan6BigInt15get_word_vectorEv:
  723|   514k|      BOTAN_DEPRECATED("Deprecated no replacement") secure_vector<word>& get_word_vector() {
  724|   514k|         return m_data.mutable_vector();
  725|   514k|      }
_ZNK5Botan6BigInt7grow_toEm:
  738|  6.87M|      BOTAN_DEPRECATED("Deprecated no replacement") void grow_to(size_t n) const { m_data.grow_to(n); }
_ZN5Botan6BigInt10power_of_2Em:
  906|  13.6k|      static BigInt power_of_2(size_t n) {
  907|  13.6k|         BigInt b;
  908|  13.6k|         b.set_bit(n);
  909|  13.6k|         return b;
  910|  13.6k|      }
_ZN5Botan6BigInt6decodeEPKhm:
  943|    286|      BOTAN_DEPRECATED("Use BigInt::from_bytes") static BigInt decode(const uint8_t buf[], size_t length) {
  944|    286|         return BigInt::from_bytes(std::span{buf, length});
  945|    286|      }
_ZN5Botan6BigInt11encode_1363EPhmRKS0_:
 1001|    270|      static void encode_1363(uint8_t out[], size_t bytes, const BigInt& n) {
 1002|    270|         n.serialize_to(std::span{out, bytes});
 1003|    270|      }
_ZNK5Botan6BigInt8_as_spanEv:
 1023|   888k|      std::span<const word> _as_span() const { return m_data.const_span(); }
_ZNK5Botan6BigInt5_dataEv:
 1033|  37.3M|      const word* _data() const { return m_data.const_data(); }
_ZN5Botan6BigInt18_assign_from_bytesENSt3__14spanIKhLm18446744073709551615EEE:
 1044|  13.0k|      void _assign_from_bytes(std::span<const uint8_t> bytes) { assign_from_bytes(bytes); }
_ZN5Botan6BigInt11_from_wordsERNSt3__16vectorImNS_16secure_allocatorImEEEE:
 1052|  2.02M|      static BigInt _from_words(secure_vector<word>& words) {
 1053|  2.02M|         BigInt bn;
 1054|  2.02M|         bn.m_data.swap(words);
 1055|  2.02M|         return bn;
 1056|  2.02M|      }
_ZN5Botan6BigInt4Data12mutable_dataEv:
 1083|  15.9M|            word* mutable_data() {
 1084|  15.9M|               invalidate_sig_words();
 1085|  15.9M|               return m_reg.data();
 1086|  15.9M|            }
_ZNK5Botan6BigInt4Data10const_dataEv:
 1088|  42.4M|            const word* const_data() const { return m_reg.data(); }
_ZNK5Botan6BigInt4Data10const_spanEv:
 1090|   888k|            std::span<const word> const_span() const { return std::span{m_reg}; }
_ZN5Botan6BigInt4Data14mutable_vectorEv:
 1092|   514k|            secure_vector<word>& mutable_vector() {
 1093|   514k|               invalidate_sig_words();
 1094|   514k|               return m_reg;
 1095|   514k|            }
_ZNK5Botan6BigInt4Data11get_word_atEm:
 1099|  17.6M|            word get_word_at(size_t n) const {
 1100|  17.6M|               if(n < m_reg.size()) {
  ------------------
  |  Branch (1100:19): [True: 17.6M, False: 13.7k]
  ------------------
 1101|  17.6M|                  return m_reg[n];
 1102|  17.6M|               }
 1103|  13.7k|               return 0;
 1104|  17.6M|            }
_ZN5Botan6BigInt4Data11set_word_atEmm:
 1106|  8.67M|            void set_word_at(size_t i, word w) {
 1107|  8.67M|               invalidate_sig_words();
 1108|  8.67M|               if(i >= m_reg.size()) {
  ------------------
  |  Branch (1108:19): [True: 450k, False: 8.22M]
  ------------------
 1109|   450k|                  if(w == 0) {
  ------------------
  |  Branch (1109:22): [True: 427k, False: 23.4k]
  ------------------
 1110|   427k|                     return;
 1111|   427k|                  }
 1112|  23.4k|                  grow_to(i + 1);
 1113|  23.4k|               }
 1114|  8.24M|               m_reg[i] = w;
 1115|  8.24M|            }
_ZN5Botan6BigInt4Data9set_wordsEPKmm:
 1117|  53.8k|            void set_words(const word w[], size_t len) {
 1118|  53.8k|               invalidate_sig_words();
 1119|  53.8k|               m_reg.assign(w, w + len);
 1120|  53.8k|            }
_ZNK5Botan6BigInt4Data7grow_toEm:
 1126|  6.90M|            void grow_to(size_t n) const {
 1127|  6.90M|               if(n > size()) {
  ------------------
  |  Branch (1127:19): [True: 3.25M, False: 3.64M]
  ------------------
 1128|  3.25M|                  if(n <= m_reg.capacity()) {
  ------------------
  |  Branch (1128:22): [True: 488k, False: 2.76M]
  ------------------
 1129|   488k|                     m_reg.resize(n);
 1130|  2.76M|                  } else {
 1131|  2.76M|                     m_reg.resize(n + (8 - (n % 8)));
 1132|  2.76M|                  }
 1133|  3.25M|               }
 1134|  6.90M|            }
_ZNK5Botan6BigInt4Data4sizeEv:
 1136|  62.7M|            size_t size() const { return m_reg.size(); }
_ZN5Botan6BigInt4Data4swapERS1_:
 1151|  2.95M|            void swap(Data& other) noexcept {
 1152|  2.95M|               m_reg.swap(other.m_reg);
 1153|  2.95M|               std::swap(m_sig_words, other.m_sig_words);
 1154|  2.95M|            }
_ZN5Botan6BigInt4Data4swapERNSt3__16vectorImNS_16secure_allocatorImEEEE:
 1156|  2.75M|            void swap(secure_vector<word>& reg) noexcept {
 1157|  2.75M|               m_reg.swap(reg);
 1158|  2.75M|               invalidate_sig_words();
 1159|  2.75M|            }
_ZNK5Botan6BigInt4Data20invalidate_sig_wordsEv:
 1161|  27.9M|            void invalidate_sig_words() const noexcept { m_sig_words = sig_words_npos; }
_ZNK5Botan6BigInt4Data9sig_wordsEv:
 1163|  23.0M|            size_t sig_words() const {
 1164|  23.0M|               if(m_sig_words == sig_words_npos) {
  ------------------
  |  Branch (1164:19): [True: 8.20M, False: 14.8M]
  ------------------
 1165|  8.20M|                  m_sig_words = calc_sig_words();
 1166|  8.20M|               }
 1167|  23.0M|               return m_sig_words;
 1168|  23.0M|            }
_ZN5BotanplERKNS_6BigIntES2_:
 1189|   661k|inline BigInt operator+(const BigInt& x, const BigInt& y) {
 1190|   661k|   return BigInt::add2(x, y._data(), y.sig_words(), y.sign());
 1191|   661k|}
_ZN5BotanplERKNS_6BigIntEm:
 1199|  2.08k|inline BigInt operator+(const BigInt& x, word y) {
 1200|  2.08k|   return BigInt::add2(x, &y, 1, BigInt::Positive);
 1201|  2.08k|}
_ZN5BotanmiERKNS_6BigIntES2_:
 1219|  1.41k|inline BigInt operator-(const BigInt& x, const BigInt& y) {
 1220|  1.41k|   return BigInt::add2(x, y._data(), y.sig_words(), y.reverse_sign());
 1221|  1.41k|}
_ZN5BotanmiERKNS_6BigIntEm:
 1229|  4.07k|inline BigInt operator-(const BigInt& x, word y) {
 1230|  4.07k|   return BigInt::add2(x, &y, 1, BigInt::Negative);
 1231|  4.07k|}
_ZN5BotanmlEmRKNS_6BigIntE:
 1255|  1.65k|inline BigInt operator*(word x, const BigInt& y) {
 1256|  1.65k|   return y * x;
 1257|  1.65k|}
_ZN5BotaneqERKNS_6BigIntES2_:
 1313|  18.2k|inline bool operator==(const BigInt& a, const BigInt& b) {
 1314|  18.2k|   return a.is_equal(b);
 1315|  18.2k|}
_ZN5BotanneERKNS_6BigIntES2_:
 1323|  3.92k|inline bool operator!=(const BigInt& a, const BigInt& b) {
 1324|  3.92k|   return !a.is_equal(b);
 1325|  3.92k|}
_ZN5BotangeERKNS_6BigIntES2_:
 1343|  12.5k|inline bool operator>=(const BigInt& a, const BigInt& b) {
 1344|  12.5k|   return (a.cmp(b) >= 0);
 1345|  12.5k|}
_ZN5BotanltERKNS_6BigIntES2_:
 1353|  16.6k|inline bool operator<(const BigInt& a, const BigInt& b) {
 1354|  16.6k|   return a.is_less_than(b);
 1355|  16.6k|}
_ZN5BotangtERKNS_6BigIntES2_:
 1363|     86|inline bool operator>(const BigInt& a, const BigInt& b) {
 1364|     86|   return b.is_less_than(a);
 1365|     86|}
_ZN5BotaneqERKNS_6BigIntEm:
 1373|  44.6k|inline bool operator==(const BigInt& a, word b) {
 1374|  44.6k|   return (a.cmp_word(b) == 0);
 1375|  44.6k|}
_ZN5BotanneERKNS_6BigIntEm:
 1383|  2.20k|inline bool operator!=(const BigInt& a, word b) {
 1384|  2.20k|   return (a.cmp_word(b) != 0);
 1385|  2.20k|}
_ZN5BotanleERKNS_6BigIntEm:
 1393|  2.75k|inline bool operator<=(const BigInt& a, word b) {
 1394|  2.75k|   return (a.cmp_word(b) <= 0);
 1395|  2.75k|}
_ZN5BotangeERKNS_6BigIntEm:
 1403|  6.02k|inline bool operator>=(const BigInt& a, word b) {
 1404|  6.02k|   return (a.cmp_word(b) >= 0);
 1405|  6.02k|}
_ZN5BotanltERKNS_6BigIntEm:
 1413|  16.1k|inline bool operator<(const BigInt& a, word b) {
 1414|  16.1k|   return (a.cmp_word(b) < 0);
 1415|  16.1k|}
_ZN5BotangtERKNS_6BigIntEm:
 1423|  2.18k|inline bool operator>(const BigInt& a, word b) {
 1424|  2.18k|   return (a.cmp_word(b) > 0);
 1425|  2.18k|}
_ZNK5Botan6BigInt9serializeINSt3__16vectorIhNS2_9allocatorIhEEEEEET_m:
  790|    406|      T serialize(size_t len) const {
  791|       |         // TODO this supports std::vector and secure_vector
  792|       |         // it would be nice if this also could work with std::array as in
  793|       |         //   bn.serialize_to<std::array<uint8_t, 32>>(32);
  794|    406|         T out(len);
  795|    406|         this->serialize_to(out);
  796|    406|         return out;
  797|    406|      }
_ZN5Botan6BigIntC2Ev:
   45|  4.60M|      BigInt() = default;
_ZN5Botan6BigIntC2ERKS0_:
   88|   472k|      BigInt(const BigInt& other) = default;
_ZN5Botan6BigIntaSERKS0_:
  201|  1.17M|      BigInt& operator=(const BigInt&) = default;

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

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

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

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

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

_ZNK5Botan13DilithiumMode19is_dilithium_round3Ev:
   49|    151|      bool is_dilithium_round3() const { return !is_ml_dsa(); }
_ZNK5Botan13DilithiumMode4modeEv:
   53|    453|      Mode mode() const { return m_mode; }
_ZN5Botan19Dilithium_PublicKeyC2Ev:
  100|     79|      Dilithium_PublicKey() = default;

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

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

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

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

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

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

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

_ZN5Botan16ECDSA_PrivateKeyC1ERKNS_19AlgorithmIdentifierENSt3__14spanIKhLm18446744073709551615EEE:
   97|  2.14k|            EC_PrivateKey(assert_algorithm_identifier(alg_id, "ECDSA"), key_bits) {}
_ZN5Botan15ECDSA_PublicKeyC2Ev:
   78|  2.14k|      ECDSA_PublicKey() = default;

_ZN5Botan17Ed25519_PublicKeyC2Ev:
   62|      6|      Ed25519_PublicKey() = default;

_ZN5Botan15Ed448_PublicKeyC2Ev:
   69|      7|      Ed448_PublicKey() = default;

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

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

_ZN5Botan15Kyber_PublicKeyD2Ev:
  105|     36|      ~Kyber_PublicKey() override = default;
_ZNK5Botan9KyberMode4modeEv:
   60|     64|      Mode mode() const { return m_mode; }
_ZN5Botan15Kyber_PublicKeyC2Ev:
  135|     36|      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.09k|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|  1.09k|   ranges::assert_equal_byte_lengths(out, in);
  162|  1.09k|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 1.09k]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|  1.09k|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 1.09k, False: 0]
  ------------------
  165|  1.09k|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|  1.09k|   }
  167|  1.09k|}
_ZN5Botan11clear_bytesEPvm:
  101|  15.2M|inline constexpr void clear_bytes(void* ptr, size_t bytes) {
  102|  15.2M|   if(bytes > 0) {
  ------------------
  |  Branch (102:7): [True: 15.2M, False: 33.6k]
  ------------------
  103|  15.2M|      std::memset(ptr, 0, bytes);
  104|  15.2M|   }
  105|  15.2M|}
_ZN5Botan9clear_memImEEvPT_m:
  118|  3.04M|inline constexpr void clear_mem(T* ptr, size_t n) {
  119|  3.04M|   clear_bytes(ptr, sizeof(T) * n);
  120|  3.04M|}
_ZN5Botan8copy_memIhQsr3stdE12is_trivial_vIu7__decayIT_EEEEvPS1_PKS1_m:
  144|  1.46M|inline constexpr void copy_mem(T* out, const T* in, size_t n) {
  145|  1.46M|   BOTAN_ASSERT_IMPLICATION(n > 0, in != nullptr && out != nullptr, "If n > 0 then args are not null");
  ------------------
  |  |  110|  1.46M|   do {                                                                                          \
  |  |  111|  1.46M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                              \
  |  |  112|  2.88M|      if((expr1) && !(expr2)) {                                                                  \
  |  |  ------------------
  |  |  |  Branch (112:10): [True: 1.44M, False: 23.9k]
  |  |  |  Branch (112:23): [True: 1.44M, False: 0]
  |  |  |  Branch (112:23): [True: 1.44M, False: 0]
  |  |  ------------------
  |  |  113|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                                     \
  |  |  114|      0|         Botan::assertion_failure(#expr1 " implies " #expr2, msg, __func__, __FILE__, __LINE__); \
  |  |  115|      0|      }                                                                                          \
  |  |  116|  1.46M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (116:12): [Folded, False: 1.46M]
  |  |  ------------------
  ------------------
  146|       |
  147|  1.46M|   if(in != nullptr && out != nullptr && n > 0) {
  ------------------
  |  Branch (147:7): [True: 1.46M, False: 44]
  |  Branch (147:24): [True: 1.46M, False: 2.02k]
  |  Branch (147:42): [True: 1.44M, False: 21.9k]
  ------------------
  148|  1.44M|      std::memmove(out, in, sizeof(T) * n);
  149|  1.44M|   }
  150|  1.46M|}
_ZN5Botan19secure_scrub_memoryITkNS_6ranges23contiguous_output_rangeERNSt3__16vectorIhNS2_9allocatorIhEEEEEEvOT_:
   59|   119k|void secure_scrub_memory(ranges::contiguous_output_range auto&& data) {
   60|   119k|   secure_scrub_memory(std::ranges::data(data), ranges::size_bytes(data));
   61|   119k|}
_ZN5Botan9clear_memIhEEvPT_m:
  118|  14.6k|inline constexpr void clear_mem(T* ptr, size_t n) {
  119|  14.6k|   clear_bytes(ptr, sizeof(T) * n);
  120|  14.6k|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeERKNSt3__14spanIhLm8EEEmQaaaasr3stdE23is_trivially_copyable_vIT0_Entsr3std6rangesE5rangeIS7_Esr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISF_EESG_E4type10value_typeEEEEvOSC_RKS7_:
  199|  43.3k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromT& in) {
  200|  43.3k|   typecast_copy(out, std::span<const FromT, 1>(&in, 1));
  201|  43.3k|}
_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|  43.3k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  43.3k|   ranges::assert_equal_byte_lengths(out, in);
  178|  43.3k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  43.3k|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeENSt3__14spanIjLm1EEETkNS1_16contiguous_rangeENS3_IKhLm4EEEQaasr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISE_EESF_E4type10value_typeEEsr3stdE23is_trivially_copyable_vINS7_IXsr21__is_primary_templateINS8_Iu14__remove_cvrefIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENSG_ISO_EESP_E4type10value_typeEEEEvOSL_RKSB_:
  176|  4.92k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  4.92k|   ranges::assert_equal_byte_lengths(out, in);
  178|  4.92k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  4.92k|}
_ZN5Botan13typecast_copyIjTkNS_6ranges16contiguous_rangeENSt3__14spanIKhLm4EEEQaaaasr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISD_EESE_E4type10value_typeEEsr3stdE23is_trivially_copyable_vIT_Entsr3std6rangesE5rangeISK_EEEvRSK_RKSA_:
  188|  4.92k|inline constexpr void typecast_copy(ToT& out, const FromR& in) {
  189|  4.92k|   typecast_copy(std::span<ToT, 1>(&out, 1), in);
  190|  4.92k|}
_ZN5Botan13typecast_copyIjTkNS_6ranges16contiguous_rangeENSt3__14spanIKhLm4EEEQaaaasr3stdE26is_default_constructible_vIT_Esr3stdE23is_trivially_copyable_vIS6_Esr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISE_EESF_E4type10value_typeEEEES6_RKSB_:
  210|  4.92k|inline constexpr ToT typecast_copy(const FromR& src) {
  211|  4.92k|   ToT dst;  // NOLINT(*-member-init)
  212|  4.92k|   typecast_copy(dst, src);
  213|  4.92k|   return dst;
  214|  4.92k|}
_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|   167k|inline constexpr ToT typecast_copy(const FromR& src) {
  211|   167k|   ToT dst;  // NOLINT(*-member-init)
  212|   167k|   typecast_copy(dst, src);
  213|   167k|   return dst;
  214|   167k|}
_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|   167k|inline constexpr void typecast_copy(ToT& out, const FromR& in) {
  189|   167k|   typecast_copy(std::span<ToT, 1>(&out, 1), in);
  190|   167k|}
_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|   167k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|   167k|   ranges::assert_equal_byte_lengths(out, in);
  178|   167k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|   167k|}
_ZN5Botan8copy_memImQsr3stdE12is_trivial_vIu7__decayIT_EEEEvPS1_PKS1_m:
  144|  2.51M|inline constexpr void copy_mem(T* out, const T* in, size_t n) {
  145|  2.51M|   BOTAN_ASSERT_IMPLICATION(n > 0, in != nullptr && out != nullptr, "If n > 0 then args are not null");
  ------------------
  |  |  110|  2.51M|   do {                                                                                          \
  |  |  111|  2.51M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                              \
  |  |  112|  5.02M|      if((expr1) && !(expr2)) {                                                                  \
  |  |  ------------------
  |  |  |  Branch (112:10): [True: 2.51M, False: 0]
  |  |  |  Branch (112:23): [True: 2.51M, False: 0]
  |  |  |  Branch (112:23): [True: 2.51M, False: 0]
  |  |  ------------------
  |  |  113|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                                     \
  |  |  114|      0|         Botan::assertion_failure(#expr1 " implies " #expr2, msg, __func__, __FILE__, __LINE__); \
  |  |  115|      0|      }                                                                                          \
  |  |  116|  2.51M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (116:12): [Folded, False: 2.51M]
  |  |  ------------------
  ------------------
  146|       |
  147|  2.51M|   if(in != nullptr && out != nullptr && n > 0) {
  ------------------
  |  Branch (147:7): [True: 2.51M, False: 0]
  |  Branch (147:24): [True: 2.51M, False: 0]
  |  Branch (147:42): [True: 2.51M, False: 0]
  ------------------
  148|  2.51M|      std::memmove(out, in, sizeof(T) * n);
  149|  2.51M|   }
  150|  2.51M|}
_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|  23.9k|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|  23.9k|   ranges::assert_equal_byte_lengths(out, in);
  162|  23.9k|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 23.9k]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|  23.9k|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 23.9k, False: 1]
  ------------------
  165|  23.9k|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|  23.9k|   }
  167|  23.9k|}
_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|  26.1k|inline constexpr ToT typecast_copy(const FromR& src) {
  211|  26.1k|   ToT dst;  // NOLINT(*-member-init)
  212|  26.1k|   typecast_copy(dst, src);
  213|  26.1k|   return dst;
  214|  26.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|  26.1k|inline constexpr void typecast_copy(ToT& out, const FromR& in) {
  189|  26.1k|   typecast_copy(std::span<ToT, 1>(&out, 1), in);
  190|  26.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|  26.1k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  26.1k|   ranges::assert_equal_byte_lengths(out, in);
  178|  26.1k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  26.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.00M|{
  133|  2.00M|   clear_bytes(std::ranges::data(mem), ranges::size_bytes(mem));
  134|  2.00M|}
_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|  7.98k|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|  7.98k|   ranges::assert_equal_byte_lengths(out, in);
  162|  7.98k|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 7.98k]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|  7.98k|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 7.91k, False: 73]
  ------------------
  165|  7.91k|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|  7.91k|   }
  167|  7.98k|}
_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|   392k|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|   392k|   ranges::assert_equal_byte_lengths(out, in);
  162|   392k|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 392k]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|   392k|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 392k, False: 0]
  ------------------
  165|   392k|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|   392k|   }
  167|   392k|}
_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.53k|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|  1.53k|   ranges::assert_equal_byte_lengths(out, in);
  162|  1.53k|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 1.53k]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|  1.53k|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 1.53k, False: 0]
  ------------------
  165|  1.53k|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|  1.53k|   }
  167|  1.53k|}
_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|    871|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|    871|   ranges::assert_equal_byte_lengths(out, in);
  162|    871|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 871]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|    871|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 871, False: 0]
  ------------------
  165|    871|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|    871|   }
  167|    871|}
_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|    714|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|    714|   ranges::assert_equal_byte_lengths(out, in);
  162|    714|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 714]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|    714|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 714, False: 0]
  ------------------
  165|    714|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|    714|   }
  167|    714|}
_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.51k|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|  1.51k|   ranges::assert_equal_byte_lengths(out, in);
  162|  1.51k|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 1.51k]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|  1.51k|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 1.51k, False: 0]
  ------------------
  165|  1.51k|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|  1.51k|   }
  167|  1.51k|}
_ZN5Botan9clear_memITkNS_6ranges23contiguous_output_rangeERNSt3__15arrayImLm18EEEEEvOT_Qsr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRS6_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISE_EESF_E4type10value_typeEE:
  132|  10.1M|{
  133|  10.1M|   clear_bytes(std::ranges::data(mem), ranges::size_bytes(mem));
  134|  10.1M|}
_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|    956|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|    956|   ranges::assert_equal_byte_lengths(out, in);
  162|    956|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 956]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|    956|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 956, False: 0]
  ------------------
  165|    956|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|    956|   }
  167|    956|}
_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|    765|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|    765|   ranges::assert_equal_byte_lengths(out, in);
  162|    765|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 765]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|    765|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 765, False: 0]
  ------------------
  165|    765|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|    765|   }
  167|    765|}
_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.11M|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  1.11M|   ranges::assert_equal_byte_lengths(out, in);
  178|  1.11M|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  1.11M|}
_ZN5Botan9clear_memIjEEvPT_m:
  118|      6|inline constexpr void clear_mem(T* ptr, size_t n) {
  119|      6|   clear_bytes(ptr, sizeof(T) * n);
  120|      6|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeERKNSt3__14spanIhLm2EEEtQaaaasr3stdE23is_trivially_copyable_vIT0_Entsr3std6rangesE5rangeIS7_Esr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISF_EESG_E4type10value_typeEEEEvOSC_RKS7_:
  199|    299|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromT& in) {
  200|    299|   typecast_copy(out, std::span<const FromT, 1>(&in, 1));
  201|    299|}
_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|    299|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|    299|   ranges::assert_equal_byte_lengths(out, in);
  178|    299|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|    299|}
_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|  49.0k|inline constexpr ToT typecast_copy(const FromR& src) {
  211|  49.0k|   ToT dst;  // NOLINT(*-member-init)
  212|  49.0k|   typecast_copy(dst, src);
  213|  49.0k|   return dst;
  214|  49.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|  49.0k|inline constexpr void typecast_copy(ToT& out, const FromR& in) {
  189|  49.0k|   typecast_copy(std::span<ToT, 1>(&out, 1), in);
  190|  49.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|  49.0k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  49.0k|   ranges::assert_equal_byte_lengths(out, in);
  178|  49.0k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  49.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.68k|inline constexpr ToT typecast_copy(const FromR& src) {
  211|  2.68k|   ToT dst;  // NOLINT(*-member-init)
  212|  2.68k|   typecast_copy(dst, src);
  213|  2.68k|   return dst;
  214|  2.68k|}
_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.68k|inline constexpr void typecast_copy(ToT& out, const FromR& in) {
  189|  2.68k|   typecast_copy(std::span<ToT, 1>(&out, 1), in);
  190|  2.68k|}
_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.68k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  2.68k|   ranges::assert_equal_byte_lengths(out, in);
  178|  2.68k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  2.68k|}
_ZN5Botan8copy_memITkNS_6ranges23contiguous_output_rangeERNSt3__15arrayImLm7EEETkNS1_16contiguous_rangeENS2_4spanIKmLm7EEEQaasr3stdE9is_same_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISG_EESH_E4type10value_typeENS9_IXsr21__is_primary_templateINSA_Iu14__remove_cvrefIDTclL_ZNSC_5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENSI_ISQ_EESR_E4type10value_typeEEsr3stdE23is_trivially_copyable_vISV_EEEvOSD_RKSN_:
  160|     16|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|     16|   ranges::assert_equal_byte_lengths(out, in);
  162|     16|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 16]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|     16|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 16, False: 0]
  ------------------
  165|     16|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|     16|   }
  167|     16|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeERNSt3__14spanIhLm56EEETkNS1_16contiguous_rangeENS2_5arrayImLm7EEEQaasr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISF_EESG_E4type10value_typeEEsr3stdE23is_trivially_copyable_vINS8_IXsr21__is_primary_templateINS9_Iu14__remove_cvrefIDTclL_ZNSB_5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENSH_ISP_EESQ_E4type10value_typeEEEEvOSM_RKSC_:
  176|      3|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|      3|   ranges::assert_equal_byte_lengths(out, in);
  178|      3|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|      3|}
_ZN5Botan8copy_memITkNS_6ranges23contiguous_output_rangeERNSt3__14spanIhLm56EEETkNS1_16contiguous_rangeENS2_6vectorIhNS_16secure_allocatorIhEEEEQaasr3stdE9is_same_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISH_EESI_E4type10value_typeENSA_IXsr21__is_primary_templateINSB_Iu14__remove_cvrefIDTclL_ZNSD_5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENSJ_ISR_EESS_E4type10value_typeEEsr3stdE23is_trivially_copyable_vISW_EEEvOSE_RKSO_:
  160|      1|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|      1|   ranges::assert_equal_byte_lengths(out, in);
  162|      1|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 1]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|      1|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 1, False: 0]
  ------------------
  165|      1|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|      1|   }
  167|      1|}
_ZN5Botan13typecast_copyINS_6StrongINSt3__15arrayIhLm56EEENS_11ScalarX448_EJEEETkNS_6ranges16contiguous_rangeENS2_4spanIKhLm18446744073709551615EEEQaaaasr3stdE26is_default_constructible_vIT_Esr3stdE23is_trivially_copyable_vISB_Esr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISJ_EESK_E4type10value_typeEEEESB_RKSG_:
  210|      1|inline constexpr ToT typecast_copy(const FromR& src) {
  211|      1|   ToT dst;  // NOLINT(*-member-init)
  212|      1|   typecast_copy(dst, src);
  213|      1|   return dst;
  214|      1|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeERNS_6StrongINSt3__15arrayIhLm56EEENS_11ScalarX448_EJEEETkNS1_16contiguous_rangeENS3_4spanIKhLm18446744073709551615EEEQaasr3stdE23is_trivially_copyable_vINS3_11conditionalIXsr21__is_primary_templateINS3_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS3_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS3_26indirectly_readable_traitsISJ_EESK_E4type10value_typeEEsr3stdE23is_trivially_copyable_vINSC_IXsr21__is_primary_templateINSD_Iu14__remove_cvrefIDTclL_ZNSF_5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENSL_IST_EESU_E4type10value_typeEEEEvOSQ_RKSG_:
  176|      1|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|      1|   ranges::assert_equal_byte_lengths(out, in);
  178|      1|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|      1|}
_ZN5Botan9clear_memITkNS_6ranges23contiguous_output_rangeERNSt3__14spanIiLm256EEEEEvOT_Qsr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRS6_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISE_EESF_E4type10value_typeEE:
  132|    464|{
  133|    464|   clear_bytes(std::ranges::data(mem), ranges::size_bytes(mem));
  134|    464|}
_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|     72|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|     72|   ranges::assert_equal_byte_lengths(out, in);
  162|     72|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 72]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|     72|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 72, False: 0]
  ------------------
  165|     72|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|     72|   }
  167|     72|}
_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|     89|{
  133|     89|   clear_bytes(std::ranges::data(mem), ranges::size_bytes(mem));
  134|     89|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeERNSt3__15arrayImLm7EEETkNS1_16contiguous_rangeENS2_4spanIKhLm56EEEQaasr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISG_EESH_E4type10value_typeEEsr3stdE23is_trivially_copyable_vINS9_IXsr21__is_primary_templateINSA_Iu14__remove_cvrefIDTclL_ZNSC_5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENSI_ISQ_EESR_E4type10value_typeEEEEvOSN_RKSD_:
  176|      2|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|      2|   ranges::assert_equal_byte_lengths(out, in);
  178|      2|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|      2|}
_ZN5Botan9clear_memITkNS_6ranges23contiguous_output_rangeERNSt3__15arrayImLm7EEEEEvOT_Qsr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRS6_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISE_EESF_E4type10value_typeEE:
  132|  40.5k|{
  133|  40.5k|   clear_bytes(std::ranges::data(mem), ranges::size_bytes(mem));
  134|  40.5k|}
_ZN5Botan8copy_memITkNS_6ranges23contiguous_output_rangeERNSt3__15arrayImLm7EEETkNS1_16contiguous_rangeENS2_4spanImLm7EEEQaasr3stdE9is_same_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISF_EESG_E4type10value_typeENS8_IXsr21__is_primary_templateINS9_Iu14__remove_cvrefIDTclL_ZNSB_5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENSH_ISP_EESQ_E4type10value_typeEEsr3stdE23is_trivially_copyable_vISU_EEEvOSC_RKSM_:
  160|      8|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|      8|   ranges::assert_equal_byte_lengths(out, in);
  162|      8|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 8]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|      8|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 8, False: 0]
  ------------------
  165|      8|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|      8|   }
  167|      8|}
_ZN5Botan8copy_memITkNS_6ranges23contiguous_output_rangeENSt3__14spanIhLm114EEETkNS1_16contiguous_rangeENS3_IKhLm114EEEQaasr3stdE9is_same_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISE_EESF_E4type10value_typeENS7_IXsr21__is_primary_templateINS8_Iu14__remove_cvrefIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENSG_ISO_EESP_E4type10value_typeEEsr3stdE23is_trivially_copyable_vIST_EEEvOSB_RKSL_:
  160|      2|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|      2|   ranges::assert_equal_byte_lengths(out, in);
  162|      2|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 2]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|      2|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 2, False: 0]
  ------------------
  165|      2|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|      2|   }
  167|      2|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeERNSt3__15arrayImLm15EEETkNS1_16contiguous_rangeENS3_IhLm120EEEQaasr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISE_EESF_E4type10value_typeEEsr3stdE23is_trivially_copyable_vINS7_IXsr21__is_primary_templateINS8_Iu14__remove_cvrefIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENSG_ISO_EESP_E4type10value_typeEEEEvOSL_RKSB_:
  176|      2|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|      2|   ranges::assert_equal_byte_lengths(out, in);
  178|      2|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|      2|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeERNSt3__15arrayIhLm2EEETkNS1_16contiguous_rangeENS3_ItLm1EEEQaasr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISE_EESF_E4type10value_typeEEsr3stdE23is_trivially_copyable_vINS7_IXsr21__is_primary_templateINS8_Iu14__remove_cvrefIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENSG_ISO_EESP_E4type10value_typeEEEEvOSL_RKSB_:
  176|  3.54k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  3.54k|   ranges::assert_equal_byte_lengths(out, in);
  178|  3.54k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  3.54k|}

_ZN5Botan14Asymmetric_KeyD2Ev:
   63|  3.44k|      virtual ~Asymmetric_Key() = default;

_ZN5Botan15PKCS8_ExceptionC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   30|  1.73k|      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|  25.0k|{
  101|  25.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|  25.0k|   } else {
  107|  25.0k|      const size_t expected_size = s0.size_bytes();
  108|  25.0k|      const bool correct_size =
  109|  25.0k|         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|  25.0k|      if(!correct_size) {
  ------------------
  |  Branch (111:10): [True: 0, False: 25.0k]
  ------------------
  112|      0|         memory_region_size_violation();
  113|      0|      }
  114|  25.0k|   }
  115|  25.0k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIhLm18446744073709551615EEEEEmRKT_:
   59|  50.0k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  50.0k|   return std::span{r}.size_bytes();
   61|  50.0k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm32ETkNS0_14spanable_rangeENSt3__14spanIhLm32EEEEEvRKT0_:
   77|      1|inline constexpr void assert_exact_byte_length(const R& r) {
   78|      1|   const std::span s{r};
   79|      1|   if constexpr(statically_spanable_range<R>) {
   80|      1|      static_assert(s.size_bytes() == expected, "memory region does not have expected byte lengths");
   81|       |   } else {
   82|       |      if(s.size_bytes() != expected) {
   83|       |         memory_region_size_violation();
   84|       |      }
   85|       |   }
   86|      1|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm32ETkNS0_14spanable_rangeENSt3__15arrayImLm4EEEEEvRKT0_:
   77|  3.94k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  3.94k|   const std::span s{r};
   79|  3.94k|   if constexpr(statically_spanable_range<R>) {
   80|  3.94k|      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.94k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm32EEETpTkNS0_14spanable_rangeEJNS2_5arrayImLm4EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  1.46k|{
  101|  1.46k|   const std::span s0{r0};
  102|       |
  103|  1.46k|   if constexpr(statically_spanable_range<R0>) {
  104|  1.46k|      constexpr size_t expected_size = s0.size_bytes();
  105|  1.46k|      (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.46k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__16vectorIhNS2_9allocatorIhEEEEEEmRKT_:
   59|   119k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|   119k|   return std::span{r}.size_bytes();
   61|   119k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm8ETkNS0_14spanable_rangeENSt3__14spanIhLm8EEEEEvRKT0_:
   77|   108k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|   108k|   const std::span s{r};
   79|   108k|   if constexpr(statically_spanable_range<R>) {
   80|   108k|      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|   108k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm8EEETpTkNS0_14spanable_rangeEJNS3_IKmLm1EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  43.3k|{
  101|  43.3k|   const std::span s0{r0};
  102|       |
  103|  43.3k|   if constexpr(statically_spanable_range<R0>) {
  104|  43.3k|      constexpr size_t expected_size = s0.size_bytes();
  105|  43.3k|      (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|  43.3k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm8ETkNS0_14spanable_rangeENSt3__14spanIKmLm1EEEEEvRKT0_:
   77|  43.3k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  43.3k|   const std::span s{r};
   79|  43.3k|   if constexpr(statically_spanable_range<R>) {
   80|  43.3k|      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|  43.3k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIhLm8EEEEEmRKT_:
   59|  43.3k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  43.3k|   return std::span{r}.size_bytes();
   61|  43.3k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm4ETkNS0_14spanable_rangeENSt3__14spanIKhLm4EEEEEvRKT0_:
   77|  9.85k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  9.85k|   const std::span s{r};
   79|  9.85k|   if constexpr(statically_spanable_range<R>) {
   80|  9.85k|      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|  9.85k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIjLm1EEETpTkNS0_14spanable_rangeEJNS3_IKhLm4EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  4.92k|{
  101|  4.92k|   const std::span s0{r0};
  102|       |
  103|  4.92k|   if constexpr(statically_spanable_range<R0>) {
  104|  4.92k|      constexpr size_t expected_size = s0.size_bytes();
  105|  4.92k|      (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.92k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIjLm1EEEEEmRKT_:
   59|  53.9k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  53.9k|   return std::span{r}.size_bytes();
   61|  53.9k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm4ETkNS0_14spanable_rangeENSt3__14spanIhLm4EEEEEvRKT0_:
   77|  49.0k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  49.0k|   const std::span s{r};
   79|  49.0k|   if constexpr(statically_spanable_range<R>) {
   80|  49.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|  49.0k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm8ETkNS0_14spanable_rangeENSt3__14spanIKhLm8EEEEEvRKT0_:
   77|   334k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|   334k|   const std::span s{r};
   79|   334k|   if constexpr(statically_spanable_range<R>) {
   80|   334k|      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|   334k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanImLm1EEETpTkNS0_14spanable_rangeEJNS3_IKhLm8EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|   167k|{
  101|   167k|   const std::span s0{r0};
  102|       |
  103|   167k|   if constexpr(statically_spanable_range<R0>) {
  104|   167k|      constexpr size_t expected_size = s0.size_bytes();
  105|   167k|      (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|   167k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanImLm1EEEEEmRKT_:
   59|   193k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|   193k|   return std::span{r}.size_bytes();
   61|   193k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm18446744073709551615EEETpTkNS0_14spanable_rangeEJNS3_IKmLm18446744073709551615EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|      2|{
  101|      2|   const std::span s0{r0};
  102|       |
  103|       |   if constexpr(statically_spanable_range<R0>) {
  104|       |      constexpr size_t expected_size = s0.size_bytes();
  105|       |      (assert_exact_byte_length<expected_size>(rs), ...);
  106|      2|   } else {
  107|      2|      const size_t expected_size = s0.size_bytes();
  108|      2|      const bool correct_size =
  109|      2|         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|      2|      if(!correct_size) {
  ------------------
  |  Branch (111:10): [True: 0, False: 2]
  ------------------
  112|      0|         memory_region_size_violation();
  113|      0|      }
  114|      2|   }
  115|      2|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanImLm18446744073709551615EEEEEmRKT_:
   59|  2.02M|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  2.02M|   return std::span{r}.size_bytes();
   61|  2.02M|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm8ETkNS0_14spanable_rangeENSt3__15arrayIhLm8EEEEEvRKT0_:
   77|  26.1k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  26.1k|   const std::span s{r};
   79|  26.1k|   if constexpr(statically_spanable_range<R>) {
   80|  26.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|  26.1k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanImLm1EEETpTkNS0_14spanable_rangeEJNS3_IhLm8EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  26.1k|{
  101|  26.1k|   const std::span s0{r0};
  102|       |
  103|  26.1k|   if constexpr(statically_spanable_range<R0>) {
  104|  26.1k|      constexpr size_t expected_size = s0.size_bytes();
  105|  26.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|  26.1k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanImLm18446744073709551615EEETpTkNS0_14spanable_rangeEJNS3_IKmLm18446744073709551615EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  7.98k|{
  101|  7.98k|   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|  7.98k|   } else {
  107|  7.98k|      const size_t expected_size = s0.size_bytes();
  108|  7.98k|      const bool correct_size =
  109|  7.98k|         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|  7.98k|      if(!correct_size) {
  ------------------
  |  Branch (111:10): [True: 0, False: 7.98k]
  ------------------
  112|      0|         memory_region_size_violation();
  113|      0|      }
  114|  7.98k|   }
  115|  7.98k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__16vectorImNS_16secure_allocatorImEEEETpTkNS0_14spanable_rangeEJNS2_4spanImLm18446744073709551615EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|   392k|{
  101|   392k|   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|   392k|   } else {
  107|   392k|      const size_t expected_size = s0.size_bytes();
  108|   392k|      const bool correct_size =
  109|   392k|         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|   392k|      if(!correct_size) {
  ------------------
  |  Branch (111:10): [True: 0, False: 392k]
  ------------------
  112|      0|         memory_region_size_violation();
  113|      0|      }
  114|   392k|   }
  115|   392k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__16vectorImNS_16secure_allocatorImEEEEEEmRKT_:
   59|   785k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|   785k|   return std::span{r}.size_bytes();
   61|   785k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanImLm4EEETpTkNS0_14spanable_rangeEJNS2_5arrayImLm4EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  1.53k|{
  101|  1.53k|   const std::span s0{r0};
  102|       |
  103|  1.53k|   if constexpr(statically_spanable_range<R0>) {
  104|  1.53k|      constexpr size_t expected_size = s0.size_bytes();
  105|  1.53k|      (assert_exact_byte_length<expected_size>(rs), ...);
  106|       |   } else {
  107|       |      const size_t expected_size = s0.size_bytes();
  108|       |      const bool correct_size =
  109|       |         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|       |      if(!correct_size) {
  112|       |         memory_region_size_violation();
  113|       |      }
  114|       |   }
  115|  1.53k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanImLm4EEEEEmRKT_:
   59|  3.06k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  3.06k|   return std::span{r}.size_bytes();
   61|  3.06k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm8ETkNS0_14spanable_rangeENSt3__15arrayImLm1EEEEEvRKT0_:
   77|  2.23M|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  2.23M|   const std::span s{r};
   79|  2.23M|   if constexpr(statically_spanable_range<R>) {
   80|  2.23M|      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.23M|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanImLm6EEETpTkNS0_14spanable_rangeEJNS2_5arrayImLm6EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|    871|{
  101|    871|   const std::span s0{r0};
  102|       |
  103|    871|   if constexpr(statically_spanable_range<R0>) {
  104|    871|      constexpr size_t expected_size = s0.size_bytes();
  105|    871|      (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|    871|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm48ETkNS0_14spanable_rangeENSt3__15arrayImLm6EEEEEvRKT0_:
   77|  2.04k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  2.04k|   const std::span s{r};
   79|  2.04k|   if constexpr(statically_spanable_range<R>) {
   80|  2.04k|      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.04k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanImLm6EEEEEmRKT_:
   59|  1.74k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  1.74k|   return std::span{r}.size_bytes();
   61|  1.74k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm48EEETpTkNS0_14spanable_rangeEJNS2_5arrayImLm6EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  1.17k|{
  101|  1.17k|   const std::span s0{r0};
  102|       |
  103|  1.17k|   if constexpr(statically_spanable_range<R0>) {
  104|  1.17k|      constexpr size_t expected_size = s0.size_bytes();
  105|  1.17k|      (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.17k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanImLm8EEETpTkNS0_14spanable_rangeEJNS2_5arrayImLm8EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|    714|{
  101|    714|   const std::span s0{r0};
  102|       |
  103|    714|   if constexpr(statically_spanable_range<R0>) {
  104|    714|      constexpr size_t expected_size = s0.size_bytes();
  105|    714|      (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|    714|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm64ETkNS0_14spanable_rangeENSt3__15arrayImLm8EEEEEvRKT0_:
   77|  1.42k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  1.42k|   const std::span s{r};
   79|  1.42k|   if constexpr(statically_spanable_range<R>) {
   80|  1.42k|      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.42k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanImLm8EEEEEmRKT_:
   59|  1.42k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  1.42k|   return std::span{r}.size_bytes();
   61|  1.42k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm64EEETpTkNS0_14spanable_rangeEJNS2_5arrayImLm8EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|    713|{
  101|    713|   const std::span s0{r0};
  102|       |
  103|    713|   if constexpr(statically_spanable_range<R0>) {
  104|    713|      constexpr size_t expected_size = s0.size_bytes();
  105|    713|      (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|    713|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanImLm9EEETpTkNS0_14spanable_rangeEJNS2_5arrayImLm9EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  1.51k|{
  101|  1.51k|   const std::span s0{r0};
  102|       |
  103|  1.51k|   if constexpr(statically_spanable_range<R0>) {
  104|  1.51k|      constexpr size_t expected_size = s0.size_bytes();
  105|  1.51k|      (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.51k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm72ETkNS0_14spanable_rangeENSt3__15arrayImLm9EEEEEvRKT0_:
   77|  3.37k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  3.37k|   const std::span s{r};
   79|  3.37k|   if constexpr(statically_spanable_range<R>) {
   80|  3.37k|      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.37k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanImLm9EEEEEmRKT_:
   59|  3.02k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  3.02k|   return std::span{r}.size_bytes();
   61|  3.02k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__15arrayImLm18EEEEEmRKT_:
   59|  10.1M|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  10.1M|   return std::span{r}.size_bytes();
   61|  10.1M|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__15arrayIhLm72EEETpTkNS0_14spanable_rangeEJNS3_ImLm9EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  1.86k|{
  101|  1.86k|   const std::span s0{r0};
  102|       |
  103|  1.86k|   if constexpr(statically_spanable_range<R0>) {
  104|  1.86k|      constexpr size_t expected_size = s0.size_bytes();
  105|  1.86k|      (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.86k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__15arrayIhLm32EEETpTkNS0_14spanable_rangeEJNS3_ImLm4EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|    956|{
  101|    956|   const std::span s0{r0};
  102|       |
  103|    956|   if constexpr(statically_spanable_range<R0>) {
  104|    956|      constexpr size_t expected_size = s0.size_bytes();
  105|    956|      (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|    956|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm28EEETpTkNS0_14spanable_rangeEJNS3_IKhLm28EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|    956|{
  101|    956|   const std::span s0{r0};
  102|       |
  103|    956|   if constexpr(statically_spanable_range<R0>) {
  104|    956|      constexpr size_t expected_size = s0.size_bytes();
  105|    956|      (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|    956|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm28ETkNS0_14spanable_rangeENSt3__14spanIKhLm28EEEEEvRKT0_:
   77|    956|inline constexpr void assert_exact_byte_length(const R& r) {
   78|    956|   const std::span s{r};
   79|    956|   if constexpr(statically_spanable_range<R>) {
   80|    956|      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|    956|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIhLm28EEEEEmRKT_:
   59|  1.91k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  1.91k|   return std::span{r}.size_bytes();
   61|  1.91k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm66EEETpTkNS0_14spanable_rangeEJNS3_IKhLm66EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|    765|{
  101|    765|   const std::span s0{r0};
  102|       |
  103|    765|   if constexpr(statically_spanable_range<R0>) {
  104|    765|      constexpr size_t expected_size = s0.size_bytes();
  105|    765|      (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|    765|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm66ETkNS0_14spanable_rangeENSt3__14spanIKhLm66EEEEEvRKT0_:
   77|    765|inline constexpr void assert_exact_byte_length(const R& r) {
   78|    765|   const std::span s{r};
   79|    765|   if constexpr(statically_spanable_range<R>) {
   80|    765|      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|    765|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIhLm66EEEEEmRKT_:
   59|  1.53k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  1.53k|   return std::span{r}.size_bytes();
   61|  1.53k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__15arrayIhLm8EEETpTkNS0_14spanable_rangeEJNS3_ImLm1EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  2.23M|{
  101|  2.23M|   const std::span s0{r0};
  102|       |
  103|  2.23M|   if constexpr(statically_spanable_range<R0>) {
  104|  2.23M|      constexpr size_t expected_size = s0.size_bytes();
  105|  2.23M|      (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.23M|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__15arrayIhLm8EEEEEmRKT_:
   59|  1.11M|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  1.11M|   return std::span{r}.size_bytes();
   61|  1.11M|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__15arrayIhLm1EEETpTkNS0_14spanable_rangeEJS4_EEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|    178|{
  101|    178|   const std::span s0{r0};
  102|       |
  103|    178|   if constexpr(statically_spanable_range<R0>) {
  104|    178|      constexpr size_t expected_size = s0.size_bytes();
  105|    178|      (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|    178|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm1ETkNS0_14spanable_rangeENSt3__15arrayIhLm1EEEEEvRKT0_:
   77|    178|inline constexpr void assert_exact_byte_length(const R& r) {
   78|    178|   const std::span s{r};
   79|    178|   if constexpr(statically_spanable_range<R>) {
   80|    178|      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|    178|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm1ETkNS0_14spanable_rangeENSt3__14spanIhLm1EEEEEvRKT0_:
   77|    356|inline constexpr void assert_exact_byte_length(const R& r) {
   78|    356|   const std::span s{r};
   79|    356|   if constexpr(statically_spanable_range<R>) {
   80|    356|      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|    356|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanItLm1EEEEEmRKT_:
   59|  2.68k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  2.68k|   return std::span{r}.size_bytes();
   61|  2.68k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm2ETkNS0_14spanable_rangeENSt3__14spanIhLm2EEEEEvRKT0_:
   77|  3.28k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  3.28k|   const std::span s{r};
   79|  3.28k|   if constexpr(statically_spanable_range<R>) {
   80|  3.28k|      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.28k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm2EEETpTkNS0_14spanable_rangeEJNS3_IKtLm1EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|    299|{
  101|    299|   const std::span s0{r0};
  102|       |
  103|    299|   if constexpr(statically_spanable_range<R0>) {
  104|    299|      constexpr size_t expected_size = s0.size_bytes();
  105|    299|      (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|    299|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm2ETkNS0_14spanable_rangeENSt3__14spanIKtLm1EEEEEvRKT0_:
   77|    299|inline constexpr void assert_exact_byte_length(const R& r) {
   78|    299|   const std::span s{r};
   79|    299|   if constexpr(statically_spanable_range<R>) {
   80|    299|      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|    299|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIhLm2EEEEEmRKT_:
   59|    299|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|    299|   return std::span{r}.size_bytes();
   61|    299|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIjLm1EEETpTkNS0_14spanable_rangeEJNS3_IhLm4EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  49.0k|{
  101|  49.0k|   const std::span s0{r0};
  102|       |
  103|  49.0k|   if constexpr(statically_spanable_range<R0>) {
  104|  49.0k|      constexpr size_t expected_size = s0.size_bytes();
  105|  49.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|  49.0k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanItLm1EEETpTkNS0_14spanable_rangeEJNS3_IhLm2EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  2.68k|{
  101|  2.68k|   const std::span s0{r0};
  102|       |
  103|  2.68k|   if constexpr(statically_spanable_range<R0>) {
  104|  2.68k|      constexpr size_t expected_size = s0.size_bytes();
  105|  2.68k|      (assert_exact_byte_length<expected_size>(rs), ...);
  106|       |   } else {
  107|       |      const size_t expected_size = s0.size_bytes();
  108|       |      const bool correct_size =
  109|       |         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|       |      if(!correct_size) {
  112|       |         memory_region_size_violation();
  113|       |      }
  114|       |   }
  115|  2.68k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm56ETkNS0_14spanable_rangeENSt3__14spanIKmLm7EEEEEvRKT0_:
   77|     16|inline constexpr void assert_exact_byte_length(const R& r) {
   78|     16|   const std::span s{r};
   79|     16|   if constexpr(statically_spanable_range<R>) {
   80|     16|      static_assert(s.size_bytes() == expected, "memory region does not have expected byte lengths");
   81|       |   } else {
   82|       |      if(s.size_bytes() != expected) {
   83|       |         memory_region_size_violation();
   84|       |      }
   85|       |   }
   86|     16|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__15arrayImLm7EEETpTkNS0_14spanable_rangeEJNS2_4spanIKmLm7EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|     16|{
  101|     16|   const std::span s0{r0};
  102|       |
  103|     16|   if constexpr(statically_spanable_range<R0>) {
  104|     16|      constexpr size_t expected_size = s0.size_bytes();
  105|     16|      (assert_exact_byte_length<expected_size>(rs), ...);
  106|       |   } else {
  107|       |      const size_t expected_size = s0.size_bytes();
  108|       |      const bool correct_size =
  109|       |         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|       |      if(!correct_size) {
  112|       |         memory_region_size_violation();
  113|       |      }
  114|       |   }
  115|     16|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__15arrayImLm7EEEEEmRKT_:
   59|  40.6k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  40.6k|   return std::span{r}.size_bytes();
   61|  40.6k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm56EEETpTkNS0_14spanable_rangeEJNS2_5arrayImLm7EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|      6|{
  101|      6|   const std::span s0{r0};
  102|       |
  103|      6|   if constexpr(statically_spanable_range<R0>) {
  104|      6|      constexpr size_t expected_size = s0.size_bytes();
  105|      6|      (assert_exact_byte_length<expected_size>(rs), ...);
  106|       |   } else {
  107|       |      const size_t expected_size = s0.size_bytes();
  108|       |      const bool correct_size =
  109|       |         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|       |      if(!correct_size) {
  112|       |         memory_region_size_violation();
  113|       |      }
  114|       |   }
  115|      6|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm56ETkNS0_14spanable_rangeENSt3__15arrayImLm7EEEEEvRKT0_:
   77|      6|inline constexpr void assert_exact_byte_length(const R& r) {
   78|      6|   const std::span s{r};
   79|      6|   if constexpr(statically_spanable_range<R>) {
   80|      6|      static_assert(s.size_bytes() == expected, "memory region does not have expected byte lengths");
   81|       |   } else {
   82|       |      if(s.size_bytes() != expected) {
   83|       |         memory_region_size_violation();
   84|       |      }
   85|       |   }
   86|      6|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIhLm56EEEEEmRKT_:
   59|      5|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|      5|   return std::span{r}.size_bytes();
   61|      5|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm56EEETpTkNS0_14spanable_rangeEJNS2_6vectorIhNS_16secure_allocatorIhEEEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|      1|{
  101|      1|   const std::span s0{r0};
  102|       |
  103|      1|   if constexpr(statically_spanable_range<R0>) {
  104|      1|      constexpr size_t expected_size = s0.size_bytes();
  105|      1|      (assert_exact_byte_length<expected_size>(rs), ...);
  106|       |   } else {
  107|       |      const size_t expected_size = s0.size_bytes();
  108|       |      const bool correct_size =
  109|       |         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|       |      if(!correct_size) {
  112|       |         memory_region_size_violation();
  113|       |      }
  114|       |   }
  115|      1|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm56ETkNS0_14spanable_rangeENSt3__16vectorIhNS_16secure_allocatorIhEEEEEEvRKT0_:
   77|      1|inline constexpr void assert_exact_byte_length(const R& r) {
   78|      1|   const std::span s{r};
   79|       |   if constexpr(statically_spanable_range<R>) {
   80|       |      static_assert(s.size_bytes() == expected, "memory region does not have expected byte lengths");
   81|      1|   } else {
   82|      1|      if(s.size_bytes() != expected) {
  ------------------
  |  Branch (82:10): [True: 0, False: 1]
  ------------------
   83|      0|         memory_region_size_violation();
   84|      0|      }
   85|      1|   }
   86|      1|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENS_6StrongINSt3__15arrayIhLm56EEENS_11ScalarX448_EJEEETpTkNS0_14spanable_rangeEJNS3_4spanIKhLm18446744073709551615EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|      1|{
  101|      1|   const std::span s0{r0};
  102|       |
  103|       |   if constexpr(statically_spanable_range<R0>) {
  104|       |      constexpr size_t expected_size = s0.size_bytes();
  105|       |      (assert_exact_byte_length<expected_size>(rs), ...);
  106|      1|   } else {
  107|      1|      const size_t expected_size = s0.size_bytes();
  108|      1|      const bool correct_size =
  109|      1|         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|      1|      if(!correct_size) {
  ------------------
  |  Branch (111:10): [True: 0, False: 1]
  ------------------
  112|      0|         memory_region_size_violation();
  113|      0|      }
  114|      1|   }
  115|      1|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENS_6StrongINSt3__15arrayIhLm56EEENS_11ScalarX448_EJEEEEEmRKT_:
   59|      1|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|      1|   return std::span{r}.size_bytes();
   61|      1|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIiLm256EEEEEmRKT_:
   59|    464|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|    464|   return std::span{r}.size_bytes();
   61|    464|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__16vectorIiNS2_9allocatorIiEEEETpTkNS0_14spanable_rangeEJS6_EEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|     72|{
  101|     72|   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|     72|   } else {
  107|     72|      const size_t expected_size = s0.size_bytes();
  108|     72|      const bool correct_size =
  109|     72|         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|     72|      if(!correct_size) {
  ------------------
  |  Branch (111:10): [True: 0, False: 72]
  ------------------
  112|      0|         memory_region_size_violation();
  113|      0|      }
  114|     72|   }
  115|     72|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__16vectorIiNS2_9allocatorIiEEEEEEmRKT_:
   59|    144|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|    144|   return std::span{r}.size_bytes();
   61|    144|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm2ETkNS0_14spanable_rangeENSt3__15arrayIhLm2EEEEEvRKT0_:
   77|  2.68k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  2.68k|   const std::span s{r};
   79|  2.68k|   if constexpr(statically_spanable_range<R>) {
   80|  2.68k|      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.68k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm2ETkNS0_14spanable_rangeENSt3__15arrayItLm1EEEEEvRKT0_:
   77|  7.39k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  7.39k|   const std::span s{r};
   79|  7.39k|   if constexpr(statically_spanable_range<R>) {
   80|  7.39k|      static_assert(s.size_bytes() == expected, "memory region does not have expected byte lengths");
   81|       |   } else {
   82|       |      if(s.size_bytes() != expected) {
   83|       |         memory_region_size_violation();
   84|       |      }
   85|       |   }
   86|  7.39k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__15arrayIhLm2EEETpTkNS0_14spanable_rangeEJNS3_ItLm1EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  7.39k|{
  101|  7.39k|   const std::span s0{r0};
  102|       |
  103|  7.39k|   if constexpr(statically_spanable_range<R0>) {
  104|  7.39k|      constexpr size_t expected_size = s0.size_bytes();
  105|  7.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|  7.39k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm4ETkNS0_14spanable_rangeENSt3__15arrayIhLm4EEEEEvRKT0_:
   77|  49.0k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  49.0k|   const std::span s{r};
   79|  49.0k|   if constexpr(statically_spanable_range<R>) {
   80|  49.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|  49.0k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIsLm256EEEEEmRKT_:
   59|     89|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|     89|   return std::span{r}.size_bytes();
   61|     89|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__15arrayImLm7EEETpTkNS0_14spanable_rangeEJNS2_4spanIKhLm56EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|      4|{
  101|      4|   const std::span s0{r0};
  102|       |
  103|      4|   if constexpr(statically_spanable_range<R0>) {
  104|      4|      constexpr size_t expected_size = s0.size_bytes();
  105|      4|      (assert_exact_byte_length<expected_size>(rs), ...);
  106|       |   } else {
  107|       |      const size_t expected_size = s0.size_bytes();
  108|       |      const bool correct_size =
  109|       |         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|       |      if(!correct_size) {
  112|       |         memory_region_size_violation();
  113|       |      }
  114|       |   }
  115|      4|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm56ETkNS0_14spanable_rangeENSt3__14spanIKhLm56EEEEEvRKT0_:
   77|      4|inline constexpr void assert_exact_byte_length(const R& r) {
   78|      4|   const std::span s{r};
   79|      4|   if constexpr(statically_spanable_range<R>) {
   80|      4|      static_assert(s.size_bytes() == expected, "memory region does not have expected byte lengths");
   81|       |   } else {
   82|       |      if(s.size_bytes() != expected) {
   83|       |         memory_region_size_violation();
   84|       |      }
   85|       |   }
   86|      4|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__15arrayImLm7EEETpTkNS0_14spanable_rangeEJNS2_4spanImLm7EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|      8|{
  101|      8|   const std::span s0{r0};
  102|       |
  103|      8|   if constexpr(statically_spanable_range<R0>) {
  104|      8|      constexpr size_t expected_size = s0.size_bytes();
  105|      8|      (assert_exact_byte_length<expected_size>(rs), ...);
  106|       |   } else {
  107|       |      const size_t expected_size = s0.size_bytes();
  108|       |      const bool correct_size =
  109|       |         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|       |      if(!correct_size) {
  112|       |         memory_region_size_violation();
  113|       |      }
  114|       |   }
  115|      8|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm56ETkNS0_14spanable_rangeENSt3__14spanImLm7EEEEEvRKT0_:
   77|      8|inline constexpr void assert_exact_byte_length(const R& r) {
   78|      8|   const std::span s{r};
   79|      8|   if constexpr(statically_spanable_range<R>) {
   80|      8|      static_assert(s.size_bytes() == expected, "memory region does not have expected byte lengths");
   81|       |   } else {
   82|       |      if(s.size_bytes() != expected) {
   83|       |         memory_region_size_violation();
   84|       |      }
   85|       |   }
   86|      8|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm114EEETpTkNS0_14spanable_rangeEJNS3_IKhLm114EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|      2|{
  101|      2|   const std::span s0{r0};
  102|       |
  103|      2|   if constexpr(statically_spanable_range<R0>) {
  104|      2|      constexpr size_t expected_size = s0.size_bytes();
  105|      2|      (assert_exact_byte_length<expected_size>(rs), ...);
  106|       |   } else {
  107|       |      const size_t expected_size = s0.size_bytes();
  108|       |      const bool correct_size =
  109|       |         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|       |      if(!correct_size) {
  112|       |         memory_region_size_violation();
  113|       |      }
  114|       |   }
  115|      2|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm114ETkNS0_14spanable_rangeENSt3__14spanIKhLm114EEEEEvRKT0_:
   77|      2|inline constexpr void assert_exact_byte_length(const R& r) {
   78|      2|   const std::span s{r};
   79|      2|   if constexpr(statically_spanable_range<R>) {
   80|      2|      static_assert(s.size_bytes() == expected, "memory region does not have expected byte lengths");
   81|       |   } else {
   82|       |      if(s.size_bytes() != expected) {
   83|       |         memory_region_size_violation();
   84|       |      }
   85|       |   }
   86|      2|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIhLm114EEEEEmRKT_:
   59|      4|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|      4|   return std::span{r}.size_bytes();
   61|      4|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__15arrayImLm15EEETpTkNS0_14spanable_rangeEJNS3_IhLm120EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|      4|{
  101|      4|   const std::span s0{r0};
  102|       |
  103|      4|   if constexpr(statically_spanable_range<R0>) {
  104|      4|      constexpr size_t expected_size = s0.size_bytes();
  105|      4|      (assert_exact_byte_length<expected_size>(rs), ...);
  106|       |   } else {
  107|       |      const size_t expected_size = s0.size_bytes();
  108|       |      const bool correct_size =
  109|       |         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|       |      if(!correct_size) {
  112|       |         memory_region_size_violation();
  113|       |      }
  114|       |   }
  115|      4|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm120ETkNS0_14spanable_rangeENSt3__15arrayIhLm120EEEEEvRKT0_:
   77|      4|inline constexpr void assert_exact_byte_length(const R& r) {
   78|      4|   const std::span s{r};
   79|      4|   if constexpr(statically_spanable_range<R>) {
   80|      4|      static_assert(s.size_bytes() == expected, "memory region does not have expected byte lengths");
   81|       |   } else {
   82|       |      if(s.size_bytes() != expected) {
   83|       |         memory_region_size_violation();
   84|       |      }
   85|       |   }
   86|      4|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__15arrayImLm15EEEEEmRKT_:
   59|      2|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|      2|   return std::span{r}.size_bytes();
   61|      2|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__15arrayIhLm2EEEEEmRKT_:
   59|  3.54k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  3.54k|   return std::span{r}.size_bytes();
   61|  3.54k|}

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

_ZN5Botan13RSA_PublicKeyC2Ev:
   86|     28|      RSA_PublicKey() = default;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

_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], SHA512_K[ 0]);
  100|      0|      SHA2_64_F(H, A, B, C, D, E, F, G, W[ 1], W[15], W[10], W[ 2], SHA512_K[ 1]);
  101|      0|      SHA2_64_F(G, H, A, B, C, D, E, F, W[ 2], W[ 0], W[11], W[ 3], SHA512_K[ 2]);
  102|      0|      SHA2_64_F(F, G, H, A, B, C, D, E, W[ 3], W[ 1], W[12], W[ 4], SHA512_K[ 3]);
  103|      0|      SHA2_64_F(E, F, G, H, A, B, C, D, W[ 4], W[ 2], W[13], W[ 5], SHA512_K[ 4]);
  104|      0|      SHA2_64_F(D, E, F, G, H, A, B, C, W[ 5], W[ 3], W[14], W[ 6], SHA512_K[ 5]);
  105|      0|      SHA2_64_F(C, D, E, F, G, H, A, B, W[ 6], W[ 4], W[15], W[ 7], SHA512_K[ 6]);
  106|      0|      SHA2_64_F(B, C, D, E, F, G, H, A, W[ 7], W[ 5], W[ 0], W[ 8], SHA512_K[ 7]);
  107|      0|      SHA2_64_F(A, B, C, D, E, F, G, H, W[ 8], W[ 6], W[ 1], W[ 9], SHA512_K[ 8]);
  108|      0|      SHA2_64_F(H, A, B, C, D, E, F, G, W[ 9], W[ 7], W[ 2], W[10], SHA512_K[ 9]);
  109|      0|      SHA2_64_F(G, H, A, B, C, D, E, F, W[10], W[ 8], W[ 3], W[11], SHA512_K[10]);
  110|      0|      SHA2_64_F(F, G, H, A, B, C, D, E, W[11], W[ 9], W[ 4], W[12], SHA512_K[11]);
  111|      0|      SHA2_64_F(E, F, G, H, A, B, C, D, W[12], W[10], W[ 5], W[13], SHA512_K[12]);
  112|      0|      SHA2_64_F(D, E, F, G, H, A, B, C, W[13], W[11], W[ 6], W[14], SHA512_K[13]);
  113|      0|      SHA2_64_F(C, D, E, F, G, H, A, B, W[14], W[12], W[ 7], W[15], SHA512_K[14]);
  114|      0|      SHA2_64_F(B, C, D, E, F, G, H, A, W[15], W[13], W[ 8], W[ 0], SHA512_K[15]);
  115|      0|      SHA2_64_F(A, B, C, D, E, F, G, H, W[ 0], W[14], W[ 9], W[ 1], SHA512_K[16]);
  116|      0|      SHA2_64_F(H, A, B, C, D, E, F, G, W[ 1], W[15], W[10], W[ 2], SHA512_K[17]);
  117|      0|      SHA2_64_F(G, H, A, B, C, D, E, F, W[ 2], W[ 0], W[11], W[ 3], SHA512_K[18]);
  118|      0|      SHA2_64_F(F, G, H, A, B, C, D, E, W[ 3], W[ 1], W[12], W[ 4], SHA512_K[19]);
  119|      0|      SHA2_64_F(E, F, G, H, A, B, C, D, W[ 4], W[ 2], W[13], W[ 5], SHA512_K[20]);
  120|      0|      SHA2_64_F(D, E, F, G, H, A, B, C, W[ 5], W[ 3], W[14], W[ 6], SHA512_K[21]);
  121|      0|      SHA2_64_F(C, D, E, F, G, H, A, B, W[ 6], W[ 4], W[15], W[ 7], SHA512_K[22]);
  122|      0|      SHA2_64_F(B, C, D, E, F, G, H, A, W[ 7], W[ 5], W[ 0], W[ 8], SHA512_K[23]);
  123|      0|      SHA2_64_F(A, B, C, D, E, F, G, H, W[ 8], W[ 6], W[ 1], W[ 9], SHA512_K[24]);
  124|      0|      SHA2_64_F(H, A, B, C, D, E, F, G, W[ 9], W[ 7], W[ 2], W[10], SHA512_K[25]);
  125|      0|      SHA2_64_F(G, H, A, B, C, D, E, F, W[10], W[ 8], W[ 3], W[11], SHA512_K[26]);
  126|      0|      SHA2_64_F(F, G, H, A, B, C, D, E, W[11], W[ 9], W[ 4], W[12], SHA512_K[27]);
  127|      0|      SHA2_64_F(E, F, G, H, A, B, C, D, W[12], W[10], W[ 5], W[13], SHA512_K[28]);
  128|      0|      SHA2_64_F(D, E, F, G, H, A, B, C, W[13], W[11], W[ 6], W[14], SHA512_K[29]);
  129|      0|      SHA2_64_F(C, D, E, F, G, H, A, B, W[14], W[12], W[ 7], W[15], SHA512_K[30]);
  130|      0|      SHA2_64_F(B, C, D, E, F, G, H, A, W[15], W[13], W[ 8], W[ 0], SHA512_K[31]);
  131|      0|      SHA2_64_F(A, B, C, D, E, F, G, H, W[ 0], W[14], W[ 9], W[ 1], SHA512_K[32]);
  132|      0|      SHA2_64_F(H, A, B, C, D, E, F, G, W[ 1], W[15], W[10], W[ 2], SHA512_K[33]);
  133|      0|      SHA2_64_F(G, H, A, B, C, D, E, F, W[ 2], W[ 0], W[11], W[ 3], SHA512_K[34]);
  134|      0|      SHA2_64_F(F, G, H, A, B, C, D, E, W[ 3], W[ 1], W[12], W[ 4], SHA512_K[35]);
  135|      0|      SHA2_64_F(E, F, G, H, A, B, C, D, W[ 4], W[ 2], W[13], W[ 5], SHA512_K[36]);
  136|      0|      SHA2_64_F(D, E, F, G, H, A, B, C, W[ 5], W[ 3], W[14], W[ 6], SHA512_K[37]);
  137|      0|      SHA2_64_F(C, D, E, F, G, H, A, B, W[ 6], W[ 4], W[15], W[ 7], SHA512_K[38]);
  138|      0|      SHA2_64_F(B, C, D, E, F, G, H, A, W[ 7], W[ 5], W[ 0], W[ 8], SHA512_K[39]);
  139|      0|      SHA2_64_F(A, B, C, D, E, F, G, H, W[ 8], W[ 6], W[ 1], W[ 9], SHA512_K[40]);
  140|      0|      SHA2_64_F(H, A, B, C, D, E, F, G, W[ 9], W[ 7], W[ 2], W[10], SHA512_K[41]);
  141|      0|      SHA2_64_F(G, H, A, B, C, D, E, F, W[10], W[ 8], W[ 3], W[11], SHA512_K[42]);
  142|      0|      SHA2_64_F(F, G, H, A, B, C, D, E, W[11], W[ 9], W[ 4], W[12], SHA512_K[43]);
  143|      0|      SHA2_64_F(E, F, G, H, A, B, C, D, W[12], W[10], W[ 5], W[13], SHA512_K[44]);
  144|      0|      SHA2_64_F(D, E, F, G, H, A, B, C, W[13], W[11], W[ 6], W[14], SHA512_K[45]);
  145|      0|      SHA2_64_F(C, D, E, F, G, H, A, B, W[14], W[12], W[ 7], W[15], SHA512_K[46]);
  146|      0|      SHA2_64_F(B, C, D, E, F, G, H, A, W[15], W[13], W[ 8], W[ 0], SHA512_K[47]);
  147|      0|      SHA2_64_F(A, B, C, D, E, F, G, H, W[ 0], W[14], W[ 9], W[ 1], SHA512_K[48]);
  148|      0|      SHA2_64_F(H, A, B, C, D, E, F, G, W[ 1], W[15], W[10], W[ 2], SHA512_K[49]);
  149|      0|      SHA2_64_F(G, H, A, B, C, D, E, F, W[ 2], W[ 0], W[11], W[ 3], SHA512_K[50]);
  150|      0|      SHA2_64_F(F, G, H, A, B, C, D, E, W[ 3], W[ 1], W[12], W[ 4], SHA512_K[51]);
  151|      0|      SHA2_64_F(E, F, G, H, A, B, C, D, W[ 4], W[ 2], W[13], W[ 5], SHA512_K[52]);
  152|      0|      SHA2_64_F(D, E, F, G, H, A, B, C, W[ 5], W[ 3], W[14], W[ 6], SHA512_K[53]);
  153|      0|      SHA2_64_F(C, D, E, F, G, H, A, B, W[ 6], W[ 4], W[15], W[ 7], SHA512_K[54]);
  154|      0|      SHA2_64_F(B, C, D, E, F, G, H, A, W[ 7], W[ 5], W[ 0], W[ 8], SHA512_K[55]);
  155|      0|      SHA2_64_F(A, B, C, D, E, F, G, H, W[ 8], W[ 6], W[ 1], W[ 9], SHA512_K[56]);
  156|      0|      SHA2_64_F(H, A, B, C, D, E, F, G, W[ 9], W[ 7], W[ 2], W[10], SHA512_K[57]);
  157|      0|      SHA2_64_F(G, H, A, B, C, D, E, F, W[10], W[ 8], W[ 3], W[11], SHA512_K[58]);
  158|      0|      SHA2_64_F(F, G, H, A, B, C, D, E, W[11], W[ 9], W[ 4], W[12], SHA512_K[59]);
  159|      0|      SHA2_64_F(E, F, G, H, A, B, C, D, W[12], W[10], W[ 5], W[13], SHA512_K[60]);
  160|      0|      SHA2_64_F(D, E, F, G, H, A, B, C, W[13], W[11], W[ 6], W[14], SHA512_K[61]);
  161|      0|      SHA2_64_F(C, D, E, F, G, H, A, B, W[14], W[12], W[ 7], W[15], SHA512_K[62]);
  162|      0|      SHA2_64_F(B, C, D, E, F, G, H, A, W[15], W[13], W[ 8], W[ 0], SHA512_K[63]);
  163|      0|      SHA2_64_F(A, B, C, D, E, F, G, H, W[ 0], W[14], W[ 9], W[ 1], SHA512_K[64]);
  164|      0|      SHA2_64_F(H, A, B, C, D, E, F, G, W[ 1], W[15], W[10], W[ 2], SHA512_K[65]);
  165|      0|      SHA2_64_F(G, H, A, B, C, D, E, F, W[ 2], W[ 0], W[11], W[ 3], SHA512_K[66]);
  166|      0|      SHA2_64_F(F, G, H, A, B, C, D, E, W[ 3], W[ 1], W[12], W[ 4], SHA512_K[67]);
  167|      0|      SHA2_64_F(E, F, G, H, A, B, C, D, W[ 4], W[ 2], W[13], W[ 5], SHA512_K[68]);
  168|      0|      SHA2_64_F(D, E, F, G, H, A, B, C, W[ 5], W[ 3], W[14], W[ 6], SHA512_K[69]);
  169|      0|      SHA2_64_F(C, D, E, F, G, H, A, B, W[ 6], W[ 4], W[15], W[ 7], SHA512_K[70]);
  170|      0|      SHA2_64_F(B, C, D, E, F, G, H, A, W[ 7], W[ 5], W[ 0], W[ 8], SHA512_K[71]);
  171|      0|      SHA2_64_F(A, B, C, D, E, F, G, H, W[ 8], W[ 6], W[ 1], W[ 9], SHA512_K[72]);
  172|      0|      SHA2_64_F(H, A, B, C, D, E, F, G, W[ 9], W[ 7], W[ 2], W[10], SHA512_K[73]);
  173|      0|      SHA2_64_F(G, H, A, B, C, D, E, F, W[10], W[ 8], W[ 3], W[11], SHA512_K[74]);
  174|      0|      SHA2_64_F(F, G, H, A, B, C, D, E, W[11], W[ 9], W[ 4], W[12], SHA512_K[75]);
  175|      0|      SHA2_64_F(E, F, G, H, A, B, C, D, W[12], W[10], W[ 5], W[13], SHA512_K[76]);
  176|      0|      SHA2_64_F(D, E, F, G, H, A, B, C, W[13], W[11], W[ 6], W[14], SHA512_K[77]);
  177|      0|      SHA2_64_F(C, D, E, F, G, H, A, B, W[14], W[12], W[ 7], W[15], SHA512_K[78]);
  178|      0|      SHA2_64_F(B, C, D, E, F, G, H, A, W[15], W[13], W[ 8], W[ 0], SHA512_K[79]);
  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|      2|   alignas(64) uint64_t W[16] = {0};
   46|      2|   alignas(64) uint64_t W2[80];
   47|       |
   48|      2|   uint64_t A = digest[0];
   49|      2|   uint64_t B = digest[1];
   50|      2|   uint64_t C = digest[2];
   51|      2|   uint64_t D = digest[3];
   52|      2|   uint64_t E = digest[4];
   53|      2|   uint64_t F = digest[5];
   54|      2|   uint64_t G = digest[6];
   55|      2|   uint64_t H = digest[7];
   56|       |
   57|      2|   const uint8_t* data = input.data();
   58|       |
   59|      2|   while(blocks >= 2) {
  ------------------
  |  Branch (59:10): [True: 0, False: 2]
  ------------------
   60|      0|      SIMD_4x64 WS[8];
   61|       |
   62|      0|      for(size_t i = 0; i < 8; i++) {
  ------------------
  |  Branch (62:25): [True: 0, False: 0]
  ------------------
   63|      0|         WS[i] = SIMD_4x64::load_be2(&data[16 * i], &data[128 + 16 * i]);
   64|      0|         auto WK = WS[i] + SIMD_4x64::broadcast_2x64(&SHA512_K[2 * i]);
   65|      0|         WK.store_le2(&W[2 * i], &W2[2 * i]);
   66|      0|      }
   67|       |
   68|      0|      data += 2 * 128;
   69|      0|      blocks -= 2;
   70|       |
   71|       |      // First 64 rounds of SHA-512
   72|      0|      for(size_t r = 0; r != 64; r += 16) {
  ------------------
  |  Branch (72:25): [True: 0, False: 0]
  ------------------
   73|      0|         auto w = sha512_next_w(WS) + SIMD_4x64::broadcast_2x64(&SHA512_K[r + 16]);
   74|      0|         SHA2_64_F(A, B, C, D, E, F, G, H, W[0]);
   75|      0|         SHA2_64_F(H, A, B, C, D, E, F, G, W[1]);
   76|      0|         w.store_le2(&W[0], &W2[r + 16]);
   77|       |
   78|      0|         w = sha512_next_w(WS) + SIMD_4x64::broadcast_2x64(&SHA512_K[r + 18]);
   79|      0|         SHA2_64_F(G, H, A, B, C, D, E, F, W[2]);
   80|      0|         SHA2_64_F(F, G, H, A, B, C, D, E, W[3]);
   81|      0|         w.store_le2(&W[2], &W2[r + 18]);
   82|       |
   83|      0|         w = sha512_next_w(WS) + SIMD_4x64::broadcast_2x64(&SHA512_K[r + 20]);
   84|      0|         SHA2_64_F(E, F, G, H, A, B, C, D, W[4]);
   85|      0|         SHA2_64_F(D, E, F, G, H, A, B, C, W[5]);
   86|      0|         w.store_le2(&W[4], &W2[r + 20]);
   87|       |
   88|      0|         w = sha512_next_w(WS) + SIMD_4x64::broadcast_2x64(&SHA512_K[r + 22]);
   89|      0|         SHA2_64_F(C, D, E, F, G, H, A, B, W[6]);
   90|      0|         SHA2_64_F(B, C, D, E, F, G, H, A, W[7]);
   91|      0|         w.store_le2(&W[6], &W2[r + 22]);
   92|       |
   93|      0|         w = sha512_next_w(WS) + SIMD_4x64::broadcast_2x64(&SHA512_K[r + 24]);
   94|      0|         SHA2_64_F(A, B, C, D, E, F, G, H, W[8]);
   95|      0|         SHA2_64_F(H, A, B, C, D, E, F, G, W[9]);
   96|      0|         w.store_le2(&W[8], &W2[r + 24]);
   97|       |
   98|      0|         w = sha512_next_w(WS) + SIMD_4x64::broadcast_2x64(&SHA512_K[r + 26]);
   99|      0|         SHA2_64_F(G, H, A, B, C, D, E, F, W[10]);
  100|      0|         SHA2_64_F(F, G, H, A, B, C, D, E, W[11]);
  101|      0|         w.store_le2(&W[10], &W2[r + 26]);
  102|       |
  103|      0|         w = sha512_next_w(WS) + SIMD_4x64::broadcast_2x64(&SHA512_K[r + 28]);
  104|      0|         SHA2_64_F(E, F, G, H, A, B, C, D, W[12]);
  105|      0|         SHA2_64_F(D, E, F, G, H, A, B, C, W[13]);
  106|      0|         w.store_le2(&W[12], &W2[r + 28]);
  107|       |
  108|      0|         w = sha512_next_w(WS) + SIMD_4x64::broadcast_2x64(&SHA512_K[r + 30]);
  109|      0|         SHA2_64_F(C, D, E, F, G, H, A, B, W[14]);
  110|      0|         SHA2_64_F(B, C, D, E, F, G, H, A, W[15]);
  111|      0|         w.store_le2(&W[14], &W2[r + 30]);
  112|      0|      }
  113|       |
  114|       |      // Final 16 rounds of SHA-512
  115|      0|      SHA2_64_F(A, B, C, D, E, F, G, H, W[0]);
  116|      0|      SHA2_64_F(H, A, B, C, D, E, F, G, W[1]);
  117|      0|      SHA2_64_F(G, H, A, B, C, D, E, F, W[2]);
  118|      0|      SHA2_64_F(F, G, H, A, B, C, D, E, W[3]);
  119|      0|      SHA2_64_F(E, F, G, H, A, B, C, D, W[4]);
  120|      0|      SHA2_64_F(D, E, F, G, H, A, B, C, W[5]);
  121|      0|      SHA2_64_F(C, D, E, F, G, H, A, B, W[6]);
  122|      0|      SHA2_64_F(B, C, D, E, F, G, H, A, W[7]);
  123|      0|      SHA2_64_F(A, B, C, D, E, F, G, H, W[8]);
  124|      0|      SHA2_64_F(H, A, B, C, D, E, F, G, W[9]);
  125|      0|      SHA2_64_F(G, H, A, B, C, D, E, F, W[10]);
  126|      0|      SHA2_64_F(F, G, H, A, B, C, D, E, W[11]);
  127|      0|      SHA2_64_F(E, F, G, H, A, B, C, D, W[12]);
  128|      0|      SHA2_64_F(D, E, F, G, H, A, B, C, W[13]);
  129|      0|      SHA2_64_F(C, D, E, F, G, H, A, B, W[14]);
  130|      0|      SHA2_64_F(B, C, D, E, F, G, H, A, W[15]);
  131|       |
  132|      0|      A = (digest[0] += A);
  133|      0|      B = (digest[1] += B);
  134|      0|      C = (digest[2] += C);
  135|      0|      D = (digest[3] += D);
  136|      0|      E = (digest[4] += E);
  137|      0|      F = (digest[5] += F);
  138|      0|      G = (digest[6] += G);
  139|      0|      H = (digest[7] += H);
  140|       |
  141|       |      // Second block of SHA-512 compression, with pre-expanded message
  142|      0|      SHA2_64_F(A, B, C, D, E, F, G, H, W2[0]);
  143|      0|      SHA2_64_F(H, A, B, C, D, E, F, G, W2[1]);
  144|      0|      SHA2_64_F(G, H, A, B, C, D, E, F, W2[2]);
  145|      0|      SHA2_64_F(F, G, H, A, B, C, D, E, W2[3]);
  146|      0|      SHA2_64_F(E, F, G, H, A, B, C, D, W2[4]);
  147|      0|      SHA2_64_F(D, E, F, G, H, A, B, C, W2[5]);
  148|      0|      SHA2_64_F(C, D, E, F, G, H, A, B, W2[6]);
  149|      0|      SHA2_64_F(B, C, D, E, F, G, H, A, W2[7]);
  150|      0|      SHA2_64_F(A, B, C, D, E, F, G, H, W2[8]);
  151|      0|      SHA2_64_F(H, A, B, C, D, E, F, G, W2[9]);
  152|      0|      SHA2_64_F(G, H, A, B, C, D, E, F, W2[10]);
  153|      0|      SHA2_64_F(F, G, H, A, B, C, D, E, W2[11]);
  154|      0|      SHA2_64_F(E, F, G, H, A, B, C, D, W2[12]);
  155|      0|      SHA2_64_F(D, E, F, G, H, A, B, C, W2[13]);
  156|      0|      SHA2_64_F(C, D, E, F, G, H, A, B, W2[14]);
  157|      0|      SHA2_64_F(B, C, D, E, F, G, H, A, W2[15]);
  158|       |
  159|      0|      SHA2_64_F(A, B, C, D, E, F, G, H, W2[16]);
  160|      0|      SHA2_64_F(H, A, B, C, D, E, F, G, W2[17]);
  161|      0|      SHA2_64_F(G, H, A, B, C, D, E, F, W2[18]);
  162|      0|      SHA2_64_F(F, G, H, A, B, C, D, E, W2[19]);
  163|      0|      SHA2_64_F(E, F, G, H, A, B, C, D, W2[20]);
  164|      0|      SHA2_64_F(D, E, F, G, H, A, B, C, W2[21]);
  165|      0|      SHA2_64_F(C, D, E, F, G, H, A, B, W2[22]);
  166|      0|      SHA2_64_F(B, C, D, E, F, G, H, A, W2[23]);
  167|      0|      SHA2_64_F(A, B, C, D, E, F, G, H, W2[24]);
  168|      0|      SHA2_64_F(H, A, B, C, D, E, F, G, W2[25]);
  169|      0|      SHA2_64_F(G, H, A, B, C, D, E, F, W2[26]);
  170|      0|      SHA2_64_F(F, G, H, A, B, C, D, E, W2[27]);
  171|      0|      SHA2_64_F(E, F, G, H, A, B, C, D, W2[28]);
  172|      0|      SHA2_64_F(D, E, F, G, H, A, B, C, W2[29]);
  173|      0|      SHA2_64_F(C, D, E, F, G, H, A, B, W2[30]);
  174|      0|      SHA2_64_F(B, C, D, E, F, G, H, A, W2[31]);
  175|       |
  176|      0|      SHA2_64_F(A, B, C, D, E, F, G, H, W2[32]);
  177|      0|      SHA2_64_F(H, A, B, C, D, E, F, G, W2[33]);
  178|      0|      SHA2_64_F(G, H, A, B, C, D, E, F, W2[34]);
  179|      0|      SHA2_64_F(F, G, H, A, B, C, D, E, W2[35]);
  180|      0|      SHA2_64_F(E, F, G, H, A, B, C, D, W2[36]);
  181|      0|      SHA2_64_F(D, E, F, G, H, A, B, C, W2[37]);
  182|      0|      SHA2_64_F(C, D, E, F, G, H, A, B, W2[38]);
  183|      0|      SHA2_64_F(B, C, D, E, F, G, H, A, W2[39]);
  184|      0|      SHA2_64_F(A, B, C, D, E, F, G, H, W2[40]);
  185|      0|      SHA2_64_F(H, A, B, C, D, E, F, G, W2[41]);
  186|      0|      SHA2_64_F(G, H, A, B, C, D, E, F, W2[42]);
  187|      0|      SHA2_64_F(F, G, H, A, B, C, D, E, W2[43]);
  188|      0|      SHA2_64_F(E, F, G, H, A, B, C, D, W2[44]);
  189|      0|      SHA2_64_F(D, E, F, G, H, A, B, C, W2[45]);
  190|      0|      SHA2_64_F(C, D, E, F, G, H, A, B, W2[46]);
  191|      0|      SHA2_64_F(B, C, D, E, F, G, H, A, W2[47]);
  192|       |
  193|      0|      SHA2_64_F(A, B, C, D, E, F, G, H, W2[48]);
  194|      0|      SHA2_64_F(H, A, B, C, D, E, F, G, W2[49]);
  195|      0|      SHA2_64_F(G, H, A, B, C, D, E, F, W2[50]);
  196|      0|      SHA2_64_F(F, G, H, A, B, C, D, E, W2[51]);
  197|      0|      SHA2_64_F(E, F, G, H, A, B, C, D, W2[52]);
  198|      0|      SHA2_64_F(D, E, F, G, H, A, B, C, W2[53]);
  199|      0|      SHA2_64_F(C, D, E, F, G, H, A, B, W2[54]);
  200|      0|      SHA2_64_F(B, C, D, E, F, G, H, A, W2[55]);
  201|      0|      SHA2_64_F(A, B, C, D, E, F, G, H, W2[56]);
  202|      0|      SHA2_64_F(H, A, B, C, D, E, F, G, W2[57]);
  203|      0|      SHA2_64_F(G, H, A, B, C, D, E, F, W2[58]);
  204|      0|      SHA2_64_F(F, G, H, A, B, C, D, E, W2[59]);
  205|      0|      SHA2_64_F(E, F, G, H, A, B, C, D, W2[60]);
  206|      0|      SHA2_64_F(D, E, F, G, H, A, B, C, W2[61]);
  207|      0|      SHA2_64_F(C, D, E, F, G, H, A, B, W2[62]);
  208|      0|      SHA2_64_F(B, C, D, E, F, G, H, A, W2[63]);
  209|       |
  210|      0|      SHA2_64_F(A, B, C, D, E, F, G, H, W2[64]);
  211|      0|      SHA2_64_F(H, A, B, C, D, E, F, G, W2[65]);
  212|      0|      SHA2_64_F(G, H, A, B, C, D, E, F, W2[66]);
  213|      0|      SHA2_64_F(F, G, H, A, B, C, D, E, W2[67]);
  214|      0|      SHA2_64_F(E, F, G, H, A, B, C, D, W2[68]);
  215|      0|      SHA2_64_F(D, E, F, G, H, A, B, C, W2[69]);
  216|      0|      SHA2_64_F(C, D, E, F, G, H, A, B, W2[70]);
  217|      0|      SHA2_64_F(B, C, D, E, F, G, H, A, W2[71]);
  218|      0|      SHA2_64_F(A, B, C, D, E, F, G, H, W2[72]);
  219|      0|      SHA2_64_F(H, A, B, C, D, E, F, G, W2[73]);
  220|      0|      SHA2_64_F(G, H, A, B, C, D, E, F, W2[74]);
  221|      0|      SHA2_64_F(F, G, H, A, B, C, D, E, W2[75]);
  222|      0|      SHA2_64_F(E, F, G, H, A, B, C, D, W2[76]);
  223|      0|      SHA2_64_F(D, E, F, G, H, A, B, C, W2[77]);
  224|      0|      SHA2_64_F(C, D, E, F, G, H, A, B, W2[78]);
  225|      0|      SHA2_64_F(B, C, D, E, F, G, H, A, W2[79]);
  226|       |
  227|      0|      A = (digest[0] += A);
  228|      0|      B = (digest[1] += B);
  229|      0|      C = (digest[2] += C);
  230|      0|      D = (digest[3] += D);
  231|      0|      E = (digest[4] += E);
  232|      0|      F = (digest[5] += F);
  233|      0|      G = (digest[6] += G);
  234|      0|      H = (digest[7] += H);
  235|      0|   }
  236|       |
  237|      4|   while(blocks > 0) {
  ------------------
  |  Branch (237:10): [True: 2, False: 2]
  ------------------
  238|      2|      SIMD_2x64 WS[8];
  239|       |
  240|     18|      for(size_t i = 0; i < 8; i++) {
  ------------------
  |  Branch (240:25): [True: 16, False: 2]
  ------------------
  241|     16|         WS[i] = SIMD_2x64::load_be(&data[16 * i]);
  242|     16|         auto WK = WS[i] + SIMD_2x64::load_le(&SHA512_K[2 * i]);
  243|     16|         WK.store_le(&W[2 * i]);
  244|     16|      }
  245|       |
  246|      2|      data += 128;
  247|      2|      blocks -= 1;
  248|       |
  249|       |      // First 64 rounds of SHA-512
  250|     10|      for(size_t r = 0; r != 64; r += 16) {
  ------------------
  |  Branch (250:25): [True: 8, False: 2]
  ------------------
  251|      8|         auto w = sha512_next_w(WS) + SIMD_2x64::load_le(&SHA512_K[r + 16]);
  252|      8|         SHA2_64_F(A, B, C, D, E, F, G, H, W[0]);
  253|      8|         SHA2_64_F(H, A, B, C, D, E, F, G, W[1]);
  254|      8|         w.store_le(&W[0]);
  255|       |
  256|      8|         w = sha512_next_w(WS) + SIMD_2x64::load_le(&SHA512_K[r + 18]);
  257|      8|         SHA2_64_F(G, H, A, B, C, D, E, F, W[2]);
  258|      8|         SHA2_64_F(F, G, H, A, B, C, D, E, W[3]);
  259|      8|         w.store_le(&W[2]);
  260|       |
  261|      8|         w = sha512_next_w(WS) + SIMD_2x64::load_le(&SHA512_K[r + 20]);
  262|      8|         SHA2_64_F(E, F, G, H, A, B, C, D, W[4]);
  263|      8|         SHA2_64_F(D, E, F, G, H, A, B, C, W[5]);
  264|      8|         w.store_le(&W[4]);
  265|       |
  266|      8|         w = sha512_next_w(WS) + SIMD_2x64::load_le(&SHA512_K[r + 22]);
  267|      8|         SHA2_64_F(C, D, E, F, G, H, A, B, W[6]);
  268|      8|         SHA2_64_F(B, C, D, E, F, G, H, A, W[7]);
  269|      8|         w.store_le(&W[6]);
  270|       |
  271|      8|         w = sha512_next_w(WS) + SIMD_2x64::load_le(&SHA512_K[r + 24]);
  272|      8|         SHA2_64_F(A, B, C, D, E, F, G, H, W[8]);
  273|      8|         SHA2_64_F(H, A, B, C, D, E, F, G, W[9]);
  274|      8|         w.store_le(&W[8]);
  275|       |
  276|      8|         w = sha512_next_w(WS) + SIMD_2x64::load_le(&SHA512_K[r + 26]);
  277|      8|         SHA2_64_F(G, H, A, B, C, D, E, F, W[10]);
  278|      8|         SHA2_64_F(F, G, H, A, B, C, D, E, W[11]);
  279|      8|         w.store_le(&W[10]);
  280|       |
  281|      8|         w = sha512_next_w(WS) + SIMD_2x64::load_le(&SHA512_K[r + 28]);
  282|      8|         SHA2_64_F(E, F, G, H, A, B, C, D, W[12]);
  283|      8|         SHA2_64_F(D, E, F, G, H, A, B, C, W[13]);
  284|      8|         w.store_le(&W[12]);
  285|       |
  286|      8|         w = sha512_next_w(WS) + SIMD_2x64::load_le(&SHA512_K[r + 30]);
  287|      8|         SHA2_64_F(C, D, E, F, G, H, A, B, W[14]);
  288|      8|         SHA2_64_F(B, C, D, E, F, G, H, A, W[15]);
  289|      8|         w.store_le(&W[14]);
  290|      8|      }
  291|       |
  292|       |      // Final 16 rounds of SHA-512
  293|      2|      SHA2_64_F(A, B, C, D, E, F, G, H, W[0]);
  294|      2|      SHA2_64_F(H, A, B, C, D, E, F, G, W[1]);
  295|      2|      SHA2_64_F(G, H, A, B, C, D, E, F, W[2]);
  296|      2|      SHA2_64_F(F, G, H, A, B, C, D, E, W[3]);
  297|      2|      SHA2_64_F(E, F, G, H, A, B, C, D, W[4]);
  298|      2|      SHA2_64_F(D, E, F, G, H, A, B, C, W[5]);
  299|      2|      SHA2_64_F(C, D, E, F, G, H, A, B, W[6]);
  300|      2|      SHA2_64_F(B, C, D, E, F, G, H, A, W[7]);
  301|      2|      SHA2_64_F(A, B, C, D, E, F, G, H, W[8]);
  302|      2|      SHA2_64_F(H, A, B, C, D, E, F, G, W[9]);
  303|      2|      SHA2_64_F(G, H, A, B, C, D, E, F, W[10]);
  304|      2|      SHA2_64_F(F, G, H, A, B, C, D, E, W[11]);
  305|      2|      SHA2_64_F(E, F, G, H, A, B, C, D, W[12]);
  306|      2|      SHA2_64_F(D, E, F, G, H, A, B, C, W[13]);
  307|      2|      SHA2_64_F(C, D, E, F, G, H, A, B, W[14]);
  308|      2|      SHA2_64_F(B, C, D, E, F, G, H, A, W[15]);
  309|       |
  310|      2|      A = (digest[0] += A);
  311|      2|      B = (digest[1] += B);
  312|      2|      C = (digest[2] += C);
  313|      2|      D = (digest[3] += D);
  314|      2|      E = (digest[4] += E);
  315|      2|      F = (digest[5] += F);
  316|      2|      G = (digest[6] += G);
  317|      2|      H = (digest[7] += H);
  318|      2|   }
  319|      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|     56|      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|     56|   if(output_bits != 224 && output_bits != 256 && output_bits != 384 && output_bits != 512) {
  ------------------
  |  Branch (20:7): [True: 56, False: 0]
  |  Branch (20:29): [True: 28, False: 28]
  |  Branch (20:51): [True: 28, False: 0]
  |  Branch (20:73): [True: 0, False: 28]
  ------------------
   21|      0|      throw Invalid_Argument(fmt("SHA_3: Invalid output length {}", output_bits));
   22|      0|   }
   23|     56|}
_ZN5Botan5SHA_38add_dataENSt3__14spanIKhLm18446744073709551615EEE:
   45|     84|void SHA_3::add_data(std::span<const uint8_t> input) {
   46|     84|   m_keccak.absorb(input);
   47|     84|}
_ZN5Botan5SHA_312final_resultENSt3__14spanIhLm18446744073709551615EEE:
   49|     56|void SHA_3::final_result(std::span<uint8_t> output) {
   50|     56|   m_keccak.finish();
   51|     56|   m_keccak.squeeze(output);
   52|     56|   m_keccak.clear();
   53|     56|}

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

_ZN5Botan6BigIntpLERKS0_:
   16|    767|BigInt& BigInt::operator+=(const BigInt& y) {
   17|    767|   if(&y == this) {
  ------------------
  |  Branch (17:7): [True: 0, False: 767]
  ------------------
   18|      0|      return *this <<= 1;
   19|      0|   }
   20|    767|   return add(y._data(), y.sig_words(), y.sign());
   21|    767|}
_ZN5Botan6BigInt3addEPKmmNS0_4SignE:
   32|  4.49k|BigInt& BigInt::add(const word y[], size_t y_words, Sign y_sign) {
   33|  4.49k|   const size_t x_sw = sig_words();
   34|       |
   35|  4.49k|   grow_to(std::max(x_sw, y_words) + 1);
   36|       |
   37|  4.49k|   if(sign() == y_sign) {
  ------------------
  |  Branch (37:7): [True: 2.57k, False: 1.91k]
  ------------------
   38|  2.57k|      const word carry = bigint_add2(mutable_data(), size() - 1, y, y_words);
   39|  2.57k|      mutable_data()[size() - 1] += carry;
   40|  2.57k|   } else {
   41|  1.91k|      const int32_t relative_size = bigint_cmp(_data(), x_sw, y, y_words);
   42|       |
   43|  1.91k|      if(relative_size >= 0) {
  ------------------
  |  Branch (43:10): [True: 0, False: 1.91k]
  ------------------
   44|       |         // *this >= y
   45|      0|         bigint_sub2(mutable_data(), x_sw, y, y_words);
   46|  1.91k|      } else {
   47|       |         // *this < y: compute *this = y - *this
   48|  1.91k|         bigint_sub2_rev(mutable_data(), y, y_words);
   49|  1.91k|      }
   50|       |
   51|  1.91k|      if(relative_size < 0) {
  ------------------
  |  Branch (51:10): [True: 1.91k, False: 0]
  ------------------
   52|  1.91k|         set_sign(y_sign);
   53|  1.91k|      } else if(relative_size == 0) {
  ------------------
  |  Branch (53:17): [True: 0, False: 0]
  ------------------
   54|      0|         set_sign(Positive);
   55|      0|      }
   56|  1.91k|   }
   57|       |
   58|  4.49k|   return (*this);
   59|  4.49k|}
_ZN5Botan6BigInt7mod_addERKS0_S2_RNSt3__16vectorImNS_16secure_allocatorImEEEE:
   61|  53.5k|BigInt& BigInt::mod_add(const BigInt& s, const BigInt& mod, secure_vector<word>& ws) {
   62|  53.5k|   if(this->signum() < 0 || s.signum() < 0 || mod.signum() < 0) {
  ------------------
  |  Branch (62:7): [True: 0, False: 53.5k]
  |  Branch (62:29): [True: 0, False: 53.5k]
  |  Branch (62:47): [True: 0, False: 53.5k]
  ------------------
   63|      0|      throw Invalid_Argument("BigInt::mod_add expects all arguments are positive");
   64|      0|   }
   65|       |
   66|  53.5k|   BOTAN_DEBUG_ASSERT(*this < mod);
  ------------------
  |  |  137|  53.5k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|  53.5k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 53.5k]
  |  |  ------------------
  ------------------
   67|  53.5k|   BOTAN_DEBUG_ASSERT(s < mod);
  ------------------
  |  |  137|  53.5k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|  53.5k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 53.5k]
  |  |  ------------------
  ------------------
   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|  53.5k|   const size_t mod_sw = mod.sig_words();
   80|  53.5k|   BOTAN_ARG_CHECK(mod_sw > 0, "BigInt::mod_add modulus must be positive");
  ------------------
  |  |   35|  53.5k|   do {                                                          \
  |  |   36|  53.5k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  53.5k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 53.5k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  53.5k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 53.5k]
  |  |  ------------------
  ------------------
   81|       |
   82|  53.5k|   this->grow_to(mod_sw);
   83|  53.5k|   s.grow_to(mod_sw);
   84|       |
   85|       |   // First mod_sw for p - s, 2*mod_sw for bigint_addsub workspace
   86|  53.5k|   if(ws.size() < 3 * mod_sw) {
  ------------------
  |  Branch (86:7): [True: 39.3k, False: 14.1k]
  ------------------
   87|  39.3k|      ws.resize(3 * mod_sw);
   88|  39.3k|   }
   89|       |
   90|       |   // NOLINTBEGIN(readability-container-data-pointer)
   91|       |
   92|  53.5k|   word borrow = bigint_sub3(&ws[0], mod._data(), mod_sw, s._data(), mod_sw);
   93|  53.5k|   BOTAN_DEBUG_ASSERT(borrow == 0);
  ------------------
  |  |  137|  53.5k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|  53.5k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 53.5k]
  |  |  ------------------
  ------------------
   94|  53.5k|   BOTAN_UNUSED(borrow);
  ------------------
  |  |  151|  53.5k|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
   95|       |
   96|       |   // Compute t - ws
   97|  53.5k|   borrow = bigint_sub3(&ws[mod_sw], this->_data(), mod_sw, &ws[0], mod_sw);
   98|       |
   99|       |   // Compute t + s
  100|  53.5k|   bigint_add3(&ws[mod_sw * 2], this->_data(), mod_sw, s._data(), mod_sw);
  101|       |
  102|  53.5k|   CT::conditional_copy_mem(borrow, &ws[0], &ws[mod_sw * 2], &ws[mod_sw], mod_sw);
  103|  53.5k|   set_words(&ws[0], mod_sw);
  104|       |
  105|       |   // NOLINTEND(readability-container-data-pointer)
  106|       |
  107|  53.5k|   return (*this);
  108|  53.5k|}
_ZN5Botan6BigInt7mod_subERKS0_S2_RNSt3__16vectorImNS_16secure_allocatorImEEEE:
  110|  1.52M|BigInt& BigInt::mod_sub(const BigInt& s, const BigInt& mod, secure_vector<word>& ws) {
  111|  1.52M|   if(this->signum() < 0 || s.signum() < 0 || mod.signum() < 0) {
  ------------------
  |  Branch (111:7): [True: 0, False: 1.52M]
  |  Branch (111:29): [True: 0, False: 1.52M]
  |  Branch (111:47): [True: 0, False: 1.52M]
  ------------------
  112|      0|      throw Invalid_Argument("BigInt::mod_sub expects all arguments are positive");
  113|      0|   }
  114|       |
  115|       |   // We are assuming in this function that *this and s are no more than mod_sw words long
  116|  1.52M|   BOTAN_DEBUG_ASSERT(*this < mod);
  ------------------
  |  |  137|  1.52M|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|  1.52M|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 1.52M]
  |  |  ------------------
  ------------------
  117|  1.52M|   BOTAN_DEBUG_ASSERT(s < mod);
  ------------------
  |  |  137|  1.52M|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|  1.52M|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 1.52M]
  |  |  ------------------
  ------------------
  118|       |
  119|  1.52M|   const size_t mod_sw = mod.sig_words();
  120|       |
  121|  1.52M|   this->grow_to(mod_sw);
  122|  1.52M|   s.grow_to(mod_sw);
  123|       |
  124|  1.52M|   if(ws.size() < mod_sw) {
  ------------------
  |  Branch (124:7): [True: 0, False: 1.52M]
  ------------------
  125|      0|      ws.resize(mod_sw);
  126|      0|   }
  127|       |
  128|  1.52M|   const word borrow = bigint_sub3(ws.data(), mutable_data(), mod_sw, s._data(), mod_sw);
  129|       |
  130|       |   // Conditionally add back the modulus
  131|  1.52M|   bigint_cnd_add(borrow, ws.data(), mod._data(), mod_sw);
  132|       |
  133|  1.52M|   unchecked_copy_memory(mutable_data(), ws.data(), mod_sw);
  134|       |
  135|  1.52M|   return (*this);
  136|  1.52M|}
_ZN5Botan6BigInt7mod_mulEhRKS0_RNSt3__16vectorImNS_16secure_allocatorImEEEE:
  138|   427k|BigInt& BigInt::mod_mul(uint8_t y, const BigInt& mod, secure_vector<word>& ws) {
  139|   427k|   BOTAN_ARG_CHECK(this->signum() >= 0, "*this must be positive");
  ------------------
  |  |   35|   427k|   do {                                                          \
  |  |   36|   427k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|   427k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 427k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|   427k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 427k]
  |  |  ------------------
  ------------------
  140|   427k|   BOTAN_ARG_CHECK(y < 16, "y too large");
  ------------------
  |  |   35|   427k|   do {                                                          \
  |  |   36|   427k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|   427k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 427k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|   427k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 427k]
  |  |  ------------------
  ------------------
  141|       |
  142|   427k|   BOTAN_DEBUG_ASSERT(*this < mod);
  ------------------
  |  |  137|   427k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|   427k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 427k]
  |  |  ------------------
  ------------------
  143|       |
  144|   427k|   *this *= static_cast<word>(y);
  145|   427k|   this->reduce_below(mod, ws);
  146|   427k|   return (*this);
  147|   427k|}
_ZN5Botan6BigIntmLEm:
  205|   427k|BigInt& BigInt::operator*=(word y) {
  206|   427k|   if(y == 0) {
  ------------------
  |  Branch (206:7): [True: 0, False: 427k]
  ------------------
  207|      0|      clear();
  208|      0|      set_sign(Positive);
  209|      0|   }
  210|       |
  211|   427k|   const word carry = bigint_linmul2(mutable_data(), size(), y);
  212|   427k|   set_word_at(size(), carry);
  213|       |
  214|   427k|   return (*this);
  215|   427k|}
_ZN5Botan6BigIntrMERKS0_:
  232|  7.31k|BigInt& BigInt::operator%=(const BigInt& mod) {
  233|  7.31k|   return (*this = (*this) % mod);
  234|  7.31k|}
_ZN5Botan6BigIntrSEm:
  287|   663k|BigInt& BigInt::operator>>=(size_t shift) {
  288|   663k|   bigint_shr1(m_data.mutable_data(), m_data.size(), shift);
  289|       |
  290|   663k|   if(sig_words() == 0 && m_signedness == Negative) {
  ------------------
  |  Branch (290:7): [True: 699, False: 662k]
  |  Branch (290:27): [True: 0, False: 699]
  ------------------
  291|      0|      m_signedness = Positive;
  292|      0|   }
  293|       |
  294|   663k|   return (*this);
  295|   663k|}

_ZN5Botan6BigInt4add2ERKS0_PKmmNS0_4SignE:
   20|   668k|BigInt BigInt::add2(const BigInt& x, const word y[], size_t y_size, BigInt::Sign y_sign) {
   21|   668k|   const size_t x_sw = x.sig_words();
   22|       |
   23|   668k|   BigInt z = BigInt::with_capacity(std::max(x_sw, y_size) + 1);
   24|       |
   25|   668k|   if(x.sign() == y_sign) {
  ------------------
  |  Branch (25:7): [True: 663k, False: 5.48k]
  ------------------
   26|   663k|      const word carry = bigint_add3(z.mutable_data(), x._data(), x_sw, y, y_size);
   27|   663k|      z.mutable_data()[std::max(x_sw, y_size)] += carry;
   28|   663k|      z.set_sign(x.sign());
   29|   663k|   } else {
   30|  5.48k|      const int32_t relative_size = bigint_cmp(x.data(), x_sw, y, y_size);
   31|       |
   32|  5.48k|      if(relative_size < 0) {
  ------------------
  |  Branch (32:10): [True: 0, False: 5.48k]
  ------------------
   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|  5.48k|      } else if(relative_size == 0) {
  ------------------
  |  Branch (37:17): [True: 0, False: 5.48k]
  ------------------
   38|       |         // Positive zero (nothing to do in this case)
   39|  5.48k|      } 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|  5.48k|         y_size = std::min(x_sw, y_size);
   46|  5.48k|         bigint_sub3(z.mutable_data(), x.data(), x_sw, y, y_size);
   47|  5.48k|         z.set_sign(x.sign());
   48|  5.48k|      }
   49|  5.48k|   }
   50|       |
   51|   668k|   return z;
   52|   668k|}
_ZN5BotanmlERKNS_6BigIntES2_:
   57|  1.01k|BigInt operator*(const BigInt& x, const BigInt& y) {
   58|  1.01k|   const size_t x_sw = x.sig_words();
   59|  1.01k|   const size_t y_sw = y.sig_words();
   60|       |
   61|  1.01k|   BigInt z = BigInt::with_capacity(x.size() + y.size());
   62|       |
   63|  1.01k|   if(x_sw == 1 && y_sw > 0) {
  ------------------
  |  Branch (63:7): [True: 0, False: 1.01k]
  |  Branch (63:20): [True: 0, False: 0]
  ------------------
   64|      0|      bigint_linmul3(z.mutable_data(), y._data(), y_sw, x.word_at(0));
   65|  1.01k|   } else if(y_sw == 1 && x_sw > 0) {
  ------------------
  |  Branch (65:14): [True: 0, False: 1.01k]
  |  Branch (65:27): [True: 0, False: 0]
  ------------------
   66|      0|      bigint_linmul3(z.mutable_data(), x._data(), x_sw, y.word_at(0));
   67|  1.01k|   } else if(x_sw > 0 && y_sw > 0) {
  ------------------
  |  Branch (67:14): [True: 1.01k, False: 0]
  |  Branch (67:26): [True: 1.01k, False: 0]
  ------------------
   68|  1.01k|      secure_vector<word> workspace(z.size());
   69|       |
   70|  1.01k|      bigint_mul(z.mutable_data(),
   71|  1.01k|                 z.size(),
   72|  1.01k|                 x._data(),
   73|  1.01k|                 x.size(),
   74|  1.01k|                 x_sw,
   75|  1.01k|                 y._data(),
   76|  1.01k|                 y.size(),
   77|  1.01k|                 y_sw,
   78|  1.01k|                 workspace.data(),
   79|  1.01k|                 workspace.size());
   80|  1.01k|   }
   81|       |
   82|  1.01k|   z.cond_flip_sign(x_sw > 0 && y_sw > 0 && x.sign() != y.sign());
  ------------------
  |  Branch (82:21): [True: 1.01k, False: 0]
  |  Branch (82:33): [True: 1.01k, False: 0]
  |  Branch (82:45): [True: 0, False: 1.01k]
  ------------------
   83|       |
   84|  1.01k|   return z;
   85|  1.01k|}
_ZN5BotanmlERKNS_6BigIntEm:
   90|  1.65k|BigInt operator*(const BigInt& x, word y) {
   91|  1.65k|   const size_t x_sw = x.sig_words();
   92|       |
   93|  1.65k|   BigInt z = BigInt::with_capacity(x_sw + 1);
   94|       |
   95|  1.65k|   if(x_sw > 0 && y > 0) {
  ------------------
  |  Branch (95:7): [True: 1.65k, False: 0]
  |  Branch (95:19): [True: 1.65k, False: 0]
  ------------------
   96|  1.65k|      bigint_linmul3(z.mutable_data(), x._data(), x_sw, y);
   97|  1.65k|      z.set_sign(x.sign());
   98|  1.65k|   }
   99|       |
  100|  1.65k|   return z;
  101|  1.65k|}
_ZN5BotandvERKNS_6BigIntES2_:
  106|    848|BigInt operator/(const BigInt& x, const BigInt& y) {
  107|    848|   if(y.sig_words() == 1 && y.signum() >= 0) {
  ------------------
  |  Branch (107:7): [True: 0, False: 848]
  |  Branch (107:29): [True: 0, False: 0]
  ------------------
  108|      0|      return x / y.word_at(0);
  109|      0|   }
  110|       |
  111|    848|   BigInt q;
  112|    848|   BigInt r;
  113|    848|   ct_divide(x, y, q, r);
  114|    848|   return q;
  115|    848|}
_ZN5BotandvERKNS_6BigIntEm:
  120|  1.03k|BigInt operator/(const BigInt& x, word y) {
  121|  1.03k|   if(y == 0) {
  ------------------
  |  Branch (121:7): [True: 0, False: 1.03k]
  ------------------
  122|      0|      throw Invalid_Argument("BigInt::operator/ divide by zero");
  123|      0|   }
  124|       |
  125|  1.03k|   BigInt q;
  126|  1.03k|   word r = 0;
  127|  1.03k|   ct_divide_word(x, y, q, r);
  128|  1.03k|   return q;
  129|  1.03k|}
_ZN5BotanrmERKNS_6BigIntES2_:
  134|  7.31k|BigInt operator%(const BigInt& n, const BigInt& mod) {
  135|  7.31k|   if(mod.is_zero()) {
  ------------------
  |  Branch (135:7): [True: 0, False: 7.31k]
  ------------------
  136|      0|      throw Invalid_Argument("BigInt::operator% divide by zero");
  137|      0|   }
  138|  7.31k|   if(mod.signum() < 0) {
  ------------------
  |  Branch (138:7): [True: 0, False: 7.31k]
  ------------------
  139|      0|      throw Invalid_Argument("BigInt::operator% modulus must be > 0");
  140|      0|   }
  141|  7.31k|   if(n.signum() >= 0 && mod.signum() >= 0 && n < mod) {
  ------------------
  |  Branch (141:7): [True: 5.90k, False: 1.41k]
  |  Branch (141:26): [True: 5.90k, False: 0]
  |  Branch (141:47): [True: 0, False: 5.90k]
  ------------------
  142|      0|      return n;
  143|      0|   }
  144|       |
  145|  7.31k|   if(mod.sig_words() == 1) {
  ------------------
  |  Branch (145:7): [True: 4.48k, False: 2.82k]
  ------------------
  146|  4.48k|      return BigInt::from_word(n % mod.word_at(0));
  147|  4.48k|   }
  148|       |
  149|  2.82k|   BigInt q;
  150|  2.82k|   BigInt r;
  151|  2.82k|   ct_divide(n, mod, q, r);
  152|  2.82k|   return r;
  153|  7.31k|}
_ZN5BotanrmERKNS_6BigIntEm:
  158|  9.77k|word operator%(const BigInt& n, word mod) {
  159|  9.77k|   if(mod == 0) {
  ------------------
  |  Branch (159:7): [True: 0, False: 9.77k]
  ------------------
  160|      0|      throw Invalid_Argument("BigInt::operator% divide by zero");
  161|      0|   }
  162|       |
  163|  9.77k|   if(mod == 1) {
  ------------------
  |  Branch (163:7): [True: 0, False: 9.77k]
  ------------------
  164|      0|      return 0;
  165|      0|   }
  166|       |
  167|  9.77k|   word remainder = 0;
  168|       |
  169|  9.77k|   if(n.signum() >= 0 && is_power_of_2(mod)) {
  ------------------
  |  Branch (169:7): [True: 9.77k, False: 0]
  |  Branch (169:26): [True: 5.28k, False: 4.48k]
  ------------------
  170|  5.28k|      remainder = (n.word_at(0) & (mod - 1));
  171|  5.28k|   } else {
  172|  4.48k|      const auto redc_mod = divide_precomp<word>::setup_vartime(mod);
  173|  4.48k|      const size_t sw = n.sig_words();
  174|  21.9k|      for(size_t i = sw; i > 0; --i) {
  ------------------
  |  Branch (174:26): [True: 17.4k, False: 4.48k]
  ------------------
  175|  17.4k|         remainder = redc_mod.mod_2to1(remainder, n.word_at(i - 1));
  176|  17.4k|      }
  177|  4.48k|   }
  178|       |
  179|  9.77k|   if(remainder != 0 && n.sign() == BigInt::Negative) {
  ------------------
  |  Branch (179:7): [True: 9.77k, False: 0]
  |  Branch (179:25): [True: 0, False: 9.77k]
  ------------------
  180|      0|      return mod - remainder;
  181|      0|   }
  182|  9.77k|   return remainder;
  183|  9.77k|}
_ZN5BotanrsERKNS_6BigIntEm:
  209|  1.01k|BigInt operator>>(const BigInt& x, size_t shift) {
  210|  1.01k|   const size_t shift_words = shift / WordInfo<word>::bits;
  211|  1.01k|   const size_t x_sw = x.sig_words();
  212|       |
  213|  1.01k|   if(shift_words >= x_sw) {
  ------------------
  |  Branch (213:7): [True: 0, False: 1.01k]
  ------------------
  214|      0|      return BigInt::zero();
  215|      0|   }
  216|       |
  217|  1.01k|   const size_t new_size = x_sw - shift_words;
  218|  1.01k|   BigInt y = BigInt::with_capacity(new_size);
  219|  1.01k|   bigint_shr2(y.mutable_data(), new_size, x._data(), x_sw, shift);
  220|       |
  221|  1.01k|   if(x.signum() < 0 && y.is_zero()) {
  ------------------
  |  Branch (221:7): [True: 0, False: 1.01k]
  |  Branch (221:25): [True: 0, False: 0]
  ------------------
  222|      0|      y.set_sign(BigInt::Positive);
  223|  1.01k|   } else {
  224|  1.01k|      y.set_sign(x.sign());
  225|  1.01k|   }
  226|       |
  227|  1.01k|   return y;
  228|  1.01k|}

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

_ZN5Botan9ct_divideERKNS_6BigIntES2_RS0_S3_:
  180|  3.67k|void ct_divide(const BigInt& x, const BigInt& y, BigInt& q_out, BigInt& r_out) {
  181|  3.67k|   if(y.is_zero()) {
  ------------------
  |  Branch (181:7): [True: 0, False: 3.67k]
  ------------------
  182|      0|      throw Invalid_Argument("ct_divide: cannot divide by zero");
  183|      0|   }
  184|       |
  185|  3.67k|   BigInt q;
  186|  3.67k|   BigInt r;
  187|  3.67k|   ct_divide_impl(q, r, x, y);
  188|       |
  189|  3.67k|   sign_fixup(x, y, q, r);
  190|  3.67k|   r_out = r;
  191|  3.67k|   q_out = q;
  192|  3.67k|}
_ZN5Botan15ct_divide_pow2kEmRKNS_6BigIntE:
  194|  9.21k|BigInt ct_divide_pow2k(size_t k, const BigInt& y) {
  195|  9.21k|   BOTAN_ARG_CHECK(y.signum() != 0, "Cannot divide by zero");
  ------------------
  |  |   35|  9.21k|   do {                                                          \
  |  |   36|  9.21k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  9.21k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 9.21k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  9.21k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 9.21k]
  |  |  ------------------
  ------------------
  196|  9.21k|   BOTAN_ARG_CHECK(y.signum() >= 0, "Negative divisor not supported");
  ------------------
  |  |   35|  9.21k|   do {                                                          \
  |  |   36|  9.21k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  9.21k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 9.21k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  9.21k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 9.21k]
  |  |  ------------------
  ------------------
  197|  9.21k|   BOTAN_ARG_CHECK(k > 1, "Invalid k");
  ------------------
  |  |   35|  9.21k|   do {                                                          \
  |  |   36|  9.21k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  9.21k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 9.21k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  9.21k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 9.21k]
  |  |  ------------------
  ------------------
  198|       |
  199|  9.21k|   BigInt q;
  200|  9.21k|   BigInt r;
  201|  9.21k|   ct_divide_impl(q, r, BigInt::power_of_2(k), y);
  202|  9.21k|   return q;
  203|  9.21k|}
_ZN5Botan14ct_divide_wordERKNS_6BigIntEmRS0_Rm:
  205|  1.03k|void ct_divide_word(const BigInt& x, word y, BigInt& q_out, word& r_out) {
  206|  1.03k|   if(y == 0) {
  ------------------
  |  Branch (206:7): [True: 0, False: 1.03k]
  ------------------
  207|      0|      throw Invalid_Argument("ct_divide_word: cannot divide by zero");
  208|      0|   }
  209|       |
  210|  1.03k|   const size_t x_words = x.sig_words();
  211|       |
  212|       |   // The divisor is public here; setup is variable time in it
  213|  1.03k|   const auto div_y = divide_precomp<word>::setup_vartime(y);
  214|       |
  215|  1.03k|   secure_vector<word> qw(x_words);
  216|  1.03k|   word r = 0;
  217|       |
  218|       |   // Each step depends on r < y, which holds since r is a remainder mod y
  219|  5.16k|   for(size_t i = x_words; i > 0; --i) {
  ------------------
  |  Branch (219:28): [True: 4.12k, False: 1.03k]
  ------------------
  220|  4.12k|      const auto [qi, ri] = div_y.divmod_2to1_vartime(r, x._data()[i - 1]);
  221|  4.12k|      qw[i - 1] = qi;
  222|  4.12k|      r = ri;
  223|  4.12k|   }
  224|       |
  225|  1.03k|   BigInt q = BigInt::_from_words(qw);
  226|       |
  227|  1.03k|   if(x.signum() < 0) {
  ------------------
  |  Branch (227:7): [True: 0, False: 1.03k]
  ------------------
  228|      0|      q.flip_sign();
  229|      0|      if(r != 0) {
  ------------------
  |  Branch (229:10): [True: 0, False: 0]
  ------------------
  230|      0|         --q;
  231|      0|         r = y - r;
  232|      0|      }
  233|      0|   }
  234|       |
  235|  1.03k|   r_out = r;
  236|  1.03k|   q_out = q;
  237|  1.03k|}
divide.cpp:_ZN5Botan12_GLOBAL__N_114ct_divide_implERNS_6BigIntES2_RKS1_S4_:
   66|  12.8k|void ct_divide_impl(BigInt& q_out, BigInt& r_out, const BigInt& x, const BigInt& y) {
   67|  12.8k|   constexpr size_t WB = WordInfo<word>::bits;
   68|       |
   69|  12.8k|   const size_t x_words = x.sig_words();
   70|  12.8k|   const size_t y_words = y.sig_words();
   71|  12.8k|   BOTAN_ASSERT_NOMSG(y_words > 0);
  ------------------
  |  |   84|  12.8k|   do {                                                                     \
  |  |   85|  12.8k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   86|  12.8k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 12.8k]
  |  |  ------------------
  |  |   87|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   88|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   89|      0|      }                                                                     \
  |  |   90|  12.8k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (90:12): [Folded, False: 12.8k]
  |  |  ------------------
  ------------------
   72|       |
   73|  12.8k|   if(x_words < y_words) {
  ------------------
  |  Branch (73:7): [True: 1.41k, False: 11.4k]
  ------------------
   74|       |      // Here |x| < |y| so q = 0 and r = |x|
   75|  1.41k|      r_out = x.abs();
   76|  1.41k|      q_out = BigInt::zero();
   77|  1.41k|      return;
   78|  1.41k|   }
   79|       |
   80|  11.4k|   const size_t r_words = x_words + 1;
   81|  11.4k|   const size_t q_words = x_words - y_words + 1;
   82|       |
   83|       |   // The number of leading zero bits of y, in [0,WB)
   84|  11.4k|   const word s = static_cast<word>(WB) - static_cast<word>(high_bit(CT::value_barrier(y._data()[y_words - 1])));
   85|  11.4k|   const auto s_mask = CT::Mask<word>::expand(s);
   86|  11.4k|   const word s_comp = s_mask.if_set_return(static_cast<word>(WB) - s);
   87|       |
   88|  11.4k|   secure_vector<word> yn(y_words);
   89|  11.4k|   secure_vector<word> rw(r_words);
   90|  11.4k|   secure_vector<word> qw(q_words);
   91|       |
   92|       |   // Normalize: yn = |y| << s (which sets the top bit of yn) and rw = |x| << s;
   93|       |   // shifting y stays within y_words words, shifting x adds at most one word
   94|  11.4k|   word carry = 0;
   95|  70.6k|   for(size_t i = 0; i != y_words; ++i) {
  ------------------
  |  Branch (95:22): [True: 59.1k, False: 11.4k]
  ------------------
   96|  59.1k|      const word w = y._data()[i];
   97|  59.1k|      yn[i] = (w << s) | carry;
   98|  59.1k|      carry = s_mask.if_set_return(w >> s_comp);
   99|  59.1k|   }
  100|       |
  101|  11.4k|   carry = 0;
  102|   131k|   for(size_t i = 0; i != x_words; ++i) {
  ------------------
  |  Branch (102:22): [True: 119k, False: 11.4k]
  ------------------
  103|   119k|      const word w = x._data()[i];
  104|   119k|      rw[i] = (w << s) | carry;
  105|   119k|      carry = s_mask.if_set_return(w >> s_comp);
  106|   119k|   }
  107|  11.4k|   rw[x_words] = carry;
  108|       |
  109|  11.4k|   const auto div_by_yn = divide_precomp<word>::setup(CT::value_barrier(yn[y_words - 1]));
  110|       |
  111|  11.4k|   if(y_words == 1) {
  ------------------
  |  Branch (111:7): [True: 26, False: 11.4k]
  ------------------
  112|       |      /*
  113|       |      * 2/1 word-serial division. The initial remainder is the shift-out
  114|       |      * carry, which is less than 2^s and so less than the divisor.
  115|       |      */
  116|     26|      word r = rw[x_words];
  117|    104|      for(size_t i = x_words; i > 0; --i) {
  ------------------
  |  Branch (117:31): [True: 78, False: 26]
  ------------------
  118|     78|         const auto [qi, ri] = div_by_yn.divmod_2to1_ct(r, rw[i - 1]);
  119|     78|         qw[i - 1] = qi;
  120|     78|         r = ri;
  121|     78|      }
  122|       |
  123|     26|      rw[0] = r >> s;
  124|  11.4k|   } else {
  125|  11.4k|      const word yn1 = yn[y_words - 1];
  126|  11.4k|      const word yn2 = yn[y_words - 2];
  127|       |
  128|  83.2k|      for(size_t i = q_words; i > 0; --i) {
  ------------------
  |  Branch (128:31): [True: 71.7k, False: 11.4k]
  ------------------
  129|  71.7k|         const size_t j = i - 1;  // current window is rw[j ... j + y_words]
  130|       |
  131|  71.7k|         const word u2 = rw[j + y_words];
  132|  71.7k|         const word u1 = rw[j + y_words - 1];
  133|  71.7k|         const word u0 = rw[j + y_words - 2];
  134|       |
  135|       |         /*
  136|       |         * Estimate the quotient digit from the top two words of the window.
  137|       |         * The window invariant gives u2 <= yn1; if u2 == yn1 the 2/1
  138|       |         * division precondition does not hold, and instead the digit
  139|       |         * estimate is the maximum word value.
  140|       |         */
  141|  71.7k|         const auto top_eq = CT::Mask<word>::is_equal(u2, yn1);
  142|  71.7k|         const word q_est = div_by_yn.divmod_2to1_ct(u2, u1).first;
  143|  71.7k|         word qhat = top_eq.select(WordInfo<word>::max, q_est);
  144|       |
  145|       |         // Per HAC 14.23, this correction is required at most twice
  146|  71.7k|         qhat -= division_check_ct(qhat, yn1, yn2, u2, u1, u0).if_set_return(1);
  147|  71.7k|         qhat -= division_check_ct(qhat, yn1, yn2, u2, u1, u0).if_set_return(1);
  148|       |
  149|       |         // Subtract qhat * yn from the window
  150|  71.7k|         const word bw = bigint_submul(&rw[j], yn.data(), y_words, qhat);
  151|  71.7k|         word borrow = 0;
  152|  71.7k|         rw[j + y_words] = word_sub(u2, bw, &borrow);
  153|       |
  154|       |         // If the digit was still one too large, the subtraction
  155|       |         // underflowed; add back and decrement the digit
  156|  71.7k|         const word cb = bigint_cnd_add(borrow, &rw[j], yn.data(), y_words);
  157|  71.7k|         rw[j + y_words] += cb;
  158|  71.7k|         qhat -= borrow;
  159|       |
  160|  71.7k|         qw[j] = qhat;
  161|  71.7k|      }
  162|       |
  163|       |      // The remainder is in rw[0:y_words], still shifted left by s, and
  164|       |      // rw[y_words] is zero
  165|  70.5k|      for(size_t i = 0; i != y_words; ++i) {
  ------------------
  |  Branch (165:25): [True: 59.1k, False: 11.4k]
  ------------------
  166|  59.1k|         rw[i] = (rw[i] >> s) | s_mask.if_set_return(CT::value_barrier(rw[i + 1]) << s_comp);
  167|  59.1k|      }
  168|  11.4k|   }
  169|       |
  170|  11.4k|   BigInt q = BigInt::_from_words(qw);
  171|  11.4k|   rw.resize(y_words);
  172|  11.4k|   BigInt r = BigInt::_from_words(rw);
  173|       |
  174|  11.4k|   r_out = std::move(r);
  175|  11.4k|   q_out = std::move(q);
  176|  11.4k|}
divide.cpp:_ZN5Botan12_GLOBAL__N_117division_check_ctEmmmmmm:
   39|   143k|inline CT::Mask<word> division_check_ct(word q, word y2, word y1, word x3, word x2, word x1) {
   40|   143k|   word y3 = 0;
   41|   143k|   y1 = word_madd2(q, y1, &y3);
   42|   143k|   y2 = word_madd2(q, y2, &y3);
   43|       |
   44|   143k|   const auto gt3 = CT::Mask<word>::is_gt(y3, x3);
   45|   143k|   const auto eq3 = CT::Mask<word>::is_equal(y3, x3);
   46|   143k|   const auto gt2 = CT::Mask<word>::is_gt(y2, x2);
   47|   143k|   const auto eq2 = CT::Mask<word>::is_equal(y2, x2);
   48|   143k|   const auto gt1 = CT::Mask<word>::is_gt(y1, x1);
   49|       |
   50|   143k|   return gt3 | (eq3 & (gt2 | (eq2 & gt1)));
   51|   143k|}
divide.cpp:_ZN5Botan12_GLOBAL__N_110sign_fixupERKNS_6BigIntES3_RS1_S4_:
   22|  3.67k|void sign_fixup(const BigInt& x, const BigInt& y, BigInt& q, BigInt& r) {
   23|  3.67k|   q.cond_flip_sign(x.sign() != y.sign());
   24|       |
   25|  3.67k|   if(x.signum() < 0 && r.signum() != 0) {
  ------------------
  |  Branch (25:7): [True: 1.41k, False: 2.26k]
  |  Branch (25:25): [True: 1.41k, False: 0]
  ------------------
   26|  1.41k|      if(y.signum() > 0) {
  ------------------
  |  Branch (26:10): [True: 1.41k, False: 0]
  ------------------
   27|  1.41k|         q -= 1;
   28|  1.41k|      } else {
   29|      0|         q += 1;
   30|      0|      }
   31|  1.41k|      r = y.abs() - r;
   32|  1.41k|   }
   33|  3.67k|}

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

_ZN5Botan12basecase_mulEPmmPKmmS2_m:
   20|  6.49M|void basecase_mul(word z[], size_t z_size, const word x[], size_t x_size, const word y[], size_t y_size) {
   21|  6.49M|   if(z_size < x_size + y_size) {
  ------------------
  |  Branch (21:7): [True: 0, False: 6.49M]
  ------------------
   22|      0|      throw Invalid_Argument("basecase_mul z_size too small");
   23|      0|   }
   24|       |
   25|  6.49M|   const size_t x_size_8 = x_size - (x_size % 8);
   26|       |
   27|  6.49M|   zeroize_buffer(z, z_size);
   28|       |
   29|  40.4M|   for(size_t i = 0; i != y_size; ++i) {
  ------------------
  |  Branch (29:22): [True: 33.9M, False: 6.49M]
  ------------------
   30|  33.9M|      const word y_i = y[i];
   31|       |
   32|  33.9M|      word carry = 0;
   33|       |
   34|  47.6M|      for(size_t j = 0; j != x_size_8; j += 8) {
  ------------------
  |  Branch (34:25): [True: 13.6M, False: 33.9M]
  ------------------
   35|  13.6M|         carry = word8_madd3(z + i + j, x + j, y_i, carry);
   36|  13.6M|      }
   37|       |
   38|   147M|      for(size_t j = x_size_8; j != x_size; ++j) {
  ------------------
  |  Branch (38:32): [True: 113M, False: 33.9M]
  ------------------
   39|   113M|         z[i + j] = word_madd3(x[j], y_i, z[i + j], &carry);
   40|   113M|      }
   41|       |
   42|  33.9M|      z[x_size + i] = carry;
   43|  33.9M|   }
   44|  6.49M|}
_ZN5Botan12basecase_sqrEPmmPKmm:
   46|  2.37M|void basecase_sqr(word z[], size_t z_size, const word x[], size_t x_size) {
   47|  2.37M|   if(z_size < 2 * x_size) {
  ------------------
  |  Branch (47:7): [True: 0, False: 2.37M]
  ------------------
   48|      0|      throw Invalid_Argument("basecase_sqr z_size too small");
   49|      0|   }
   50|       |
   51|  2.37M|   const size_t x_size_8 = x_size - (x_size % 8);
   52|       |
   53|  2.37M|   zeroize_buffer(z, z_size);
   54|       |
   55|  12.1M|   for(size_t i = 0; i != x_size; ++i) {
  ------------------
  |  Branch (55:22): [True: 9.75M, False: 2.37M]
  ------------------
   56|  9.75M|      const word x_i = x[i];
   57|       |
   58|  9.75M|      word carry = 0;
   59|       |
   60|  9.77M|      for(size_t j = 0; j != x_size_8; j += 8) {
  ------------------
  |  Branch (60:25): [True: 19.6k, False: 9.75M]
  ------------------
   61|  19.6k|         carry = word8_madd3(z + i + j, x + j, x_i, carry);
   62|  19.6k|      }
   63|       |
   64|  52.1M|      for(size_t j = x_size_8; j != x_size; ++j) {
  ------------------
  |  Branch (64:32): [True: 42.3M, False: 9.75M]
  ------------------
   65|  42.3M|         z[i + j] = word_madd3(x[j], x_i, z[i + j], &carry);
   66|  42.3M|      }
   67|       |
   68|  9.75M|      z[x_size + i] = carry;
   69|  9.75M|   }
   70|  2.37M|}
_ZN5Botan10bigint_mulEPmmPKmmmS2_mmS0_m:
  292|  13.0M|                size_t ws_size) {
  293|  13.0M|   zeroize_buffer(z, z_size);
  294|       |
  295|  13.0M|   if(x_sw == 1) {
  ------------------
  |  Branch (295:7): [True: 27, False: 13.0M]
  ------------------
  296|     27|      bigint_linmul3(z, y, y_sw, x[0]);
  297|  13.0M|   } else if(y_sw == 1) {
  ------------------
  |  Branch (297:14): [True: 9, False: 13.0M]
  ------------------
  298|      9|      bigint_linmul3(z, x, x_sw, y[0]);
  299|  13.0M|   } else if(sized_for_comba_mul<4>(x_sw, x_size, y_sw, y_size, z_size)) {
  ------------------
  |  Branch (299:14): [True: 2.88M, False: 10.1M]
  ------------------
  300|  2.88M|      bigint_comba_mul4(z, x, y);
  301|  10.1M|   } else if(sized_for_comba_mul<6>(x_sw, x_size, y_sw, y_size, z_size)) {
  ------------------
  |  Branch (301:14): [True: 2.58M, False: 7.58M]
  ------------------
  302|  2.58M|      bigint_comba_mul6(z, x, y);
  303|  7.58M|   } else if(sized_for_comba_mul<8>(x_sw, x_size, y_sw, y_size, z_size)) {
  ------------------
  |  Branch (303:14): [True: 8.43k, False: 7.57M]
  ------------------
  304|  8.43k|      bigint_comba_mul8(z, x, y);
  305|  7.57M|   } else if(sized_for_comba_mul<9>(x_sw, x_size, y_sw, y_size, z_size)) {
  ------------------
  |  Branch (305:14): [True: 1.07M, False: 6.49M]
  ------------------
  306|  1.07M|      bigint_comba_mul9(z, x, y);
  307|  6.49M|   } else if(sized_for_comba_mul<16>(x_sw, x_size, y_sw, y_size, z_size)) {
  ------------------
  |  Branch (307:14): [True: 787, False: 6.49M]
  ------------------
  308|    787|      bigint_comba_mul16(z, x, y);
  309|  6.49M|   } else if(sized_for_comba_mul<24>(x_sw, x_size, y_sw, y_size, z_size)) {
  ------------------
  |  Branch (309:14): [True: 0, False: 6.49M]
  ------------------
  310|      0|      bigint_comba_mul24(z, x, y);
  311|  6.49M|   } else if(x_sw < KARATSUBA_MULTIPLY_THRESHOLD || y_sw < KARATSUBA_MULTIPLY_THRESHOLD || workspace == nullptr) {
  ------------------
  |  Branch (311:14): [True: 6.49M, False: 0]
  |  Branch (311:53): [True: 0, False: 0]
  |  Branch (311:92): [True: 0, False: 0]
  ------------------
  312|  6.49M|      basecase_mul(z, z_size, x, x_sw, y, y_sw);
  313|  6.49M|   } else {
  314|      0|      const size_t N = karatsuba_size(z_size, x_size, x_sw, y_size, y_sw);
  315|       |
  316|      0|      if(N > 0 && z_size >= 2 * N && ws_size >= 2 * N) {
  ------------------
  |  Branch (316:10): [True: 0, False: 0]
  |  Branch (316:19): [True: 0, False: 0]
  |  Branch (316:38): [True: 0, False: 0]
  ------------------
  317|      0|         karatsuba_mul(z, x, y, N, workspace);
  318|      0|      } else {
  319|      0|         basecase_mul(z, z_size, x, x_sw, y, y_sw);
  320|      0|      }
  321|      0|   }
  322|  13.0M|}
_ZN5Botan10bigint_sqrEPmmPKmmmS0_m:
  327|  4.11M|void bigint_sqr(word z[], size_t z_size, const word x[], size_t x_size, size_t x_sw, word workspace[], size_t ws_size) {
  328|  4.11M|   zeroize_buffer(z, z_size);
  329|       |
  330|  4.11M|   BOTAN_ASSERT(z_size / 2 >= x_sw, "Output size is sufficient");
  ------------------
  |  |   71|  4.11M|   do {                                                                                 \
  |  |   72|  4.11M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   73|  4.11M|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (73:10): [True: 0, False: 4.11M]
  |  |  ------------------
  |  |   74|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   75|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   76|      0|      }                                                                                 \
  |  |   77|  4.11M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (77:12): [Folded, False: 4.11M]
  |  |  ------------------
  ------------------
  331|       |
  332|  4.11M|   if(x_sw == 1) {
  ------------------
  |  Branch (332:7): [True: 24, False: 4.11M]
  ------------------
  333|     24|      bigint_linmul3(z, x, x_sw, x[0]);
  334|  4.11M|   } else if(sized_for_comba_sqr<4>(x_sw, x_size, z_size)) {
  ------------------
  |  Branch (334:14): [True: 1.19M, False: 2.92M]
  ------------------
  335|  1.19M|      bigint_comba_sqr4(z, x);
  336|  2.92M|   } else if(sized_for_comba_sqr<6>(x_sw, x_size, z_size)) {
  ------------------
  |  Branch (336:14): [True: 1.13k, False: 2.92M]
  ------------------
  337|  1.13k|      bigint_comba_sqr6(z, x);
  338|  2.92M|   } else if(sized_for_comba_sqr<8>(x_sw, x_size, z_size)) {
  ------------------
  |  Branch (338:14): [True: 1.87k, False: 2.91M]
  ------------------
  339|  1.87k|      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: 544k, False: 2.37M]
  ------------------
  341|   544k|      bigint_comba_sqr9(z, x);
  342|  2.37M|   } else if(sized_for_comba_sqr<16>(x_sw, x_size, z_size)) {
  ------------------
  |  Branch (342:14): [True: 1.06k, False: 2.37M]
  ------------------
  343|  1.06k|      bigint_comba_sqr16(z, x);
  344|  2.37M|   } else if(sized_for_comba_sqr<24>(x_sw, x_size, z_size)) {
  ------------------
  |  Branch (344:14): [True: 0, False: 2.37M]
  ------------------
  345|      0|      bigint_comba_sqr24(z, x);
  346|  2.37M|   } else if(x_size < KARATSUBA_SQUARE_THRESHOLD || workspace == nullptr) {
  ------------------
  |  Branch (346:14): [True: 2.37M, False: 32]
  |  Branch (346:53): [True: 0, False: 32]
  ------------------
  347|  2.37M|      basecase_sqr(z, z_size, x, x_sw);
  348|  2.37M|   } else {
  349|     32|      const size_t N = karatsuba_size(z_size, x_size, x_sw);
  350|       |
  351|     32|      if(N > 0 && z_size >= 2 * N && ws_size >= 2 * N) {
  ------------------
  |  Branch (351:10): [True: 30, False: 2]
  |  Branch (351:19): [True: 30, False: 0]
  |  Branch (351:38): [True: 30, False: 0]
  ------------------
  352|     30|         karatsuba_sqr(z, x, N, workspace);
  353|     30|      } else {
  354|      2|         basecase_sqr(z, z_size, x, x_sw);
  355|      2|      }
  356|     32|   }
  357|  4.11M|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_114karatsuba_sizeEmmm:
  245|     32|size_t karatsuba_size(size_t z_size, size_t x_size, size_t x_sw) {
  246|     32|   if(x_sw == x_size) {
  ------------------
  |  Branch (246:7): [True: 0, False: 32]
  ------------------
  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|     34|   for(size_t j = x_sw; j <= x_size; ++j) {
  ------------------
  |  Branch (253:25): [True: 34, False: 0]
  ------------------
  254|     34|      if(j % 2 != 0) {
  ------------------
  |  Branch (254:10): [True: 2, False: 32]
  ------------------
  255|      2|         continue;
  256|      2|      }
  257|       |
  258|     32|      if(2 * j > z_size) {
  ------------------
  |  Branch (258:10): [True: 2, False: 30]
  ------------------
  259|      2|         return 0;
  260|      2|      }
  261|       |
  262|     30|      if(j % 4 == 2 && (j + 2) <= x_size && 2 * (j + 2) <= z_size) {
  ------------------
  |  Branch (262:10): [True: 30, False: 0]
  |  Branch (262:24): [True: 30, False: 0]
  |  Branch (262:45): [True: 0, False: 30]
  ------------------
  263|      0|         return j + 2;
  264|      0|      }
  265|     30|      return j;
  266|     30|   }
  267|       |
  268|      0|   return 0;
  269|     32|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_113karatsuba_sqrEPmPKmmS1_:
  149|     30|void karatsuba_sqr(word z[], const word x[], size_t N, word workspace[]) {
  150|     30|   if(N < KARATSUBA_SQUARE_THRESHOLD || N % 2 != 0) {
  ------------------
  |  Branch (150:7): [True: 30, False: 0]
  |  Branch (150:41): [True: 0, False: 0]
  ------------------
  151|     30|      switch(N) {
  152|      0|         case 6:
  ------------------
  |  Branch (152:10): [True: 0, False: 30]
  ------------------
  153|      0|            return bigint_comba_sqr6(z, x);
  154|      0|         case 8:
  ------------------
  |  Branch (154:10): [True: 0, False: 30]
  ------------------
  155|      0|            return bigint_comba_sqr8(z, x);
  156|      0|         case 9:
  ------------------
  |  Branch (156:10): [True: 0, False: 30]
  ------------------
  157|      0|            return bigint_comba_sqr9(z, x);
  158|      0|         case 16:
  ------------------
  |  Branch (158:10): [True: 0, False: 30]
  ------------------
  159|      0|            return bigint_comba_sqr16(z, x);
  160|      0|         case 24:
  ------------------
  |  Branch (160:10): [True: 0, False: 30]
  ------------------
  161|      0|            return bigint_comba_sqr24(z, x);
  162|     30|         default:
  ------------------
  |  Branch (162:10): [True: 30, False: 0]
  ------------------
  163|     30|            return basecase_sqr(z, 2 * N, x, N);
  164|     30|      }
  165|     30|   }
  166|       |
  167|      0|   const size_t N2 = N / 2;
  168|       |
  169|      0|   const word* x0 = x;
  170|      0|   const word* x1 = x + N2;
  171|      0|   word* z0 = z;
  172|      0|   word* z1 = z + N;
  173|       |
  174|      0|   word* ws0 = workspace;
  175|      0|   word* ws1 = workspace + N;
  176|       |
  177|      0|   zeroize_buffer(workspace, 2 * N);
  178|       |
  179|       |   // See comment in karatsuba_mul
  180|      0|   bigint_sub_abs(z0, x0, x1, N2, workspace);
  181|      0|   karatsuba_sqr(ws0, z0, N2, ws1);
  182|       |
  183|      0|   karatsuba_sqr(z0, x0, N2, ws1);
  184|      0|   karatsuba_sqr(z1, x1, N2, ws1);
  185|       |
  186|      0|   const word ws_carry = bigint_add3(ws1, z0, N, z1, N);
  187|      0|   word z_carry = bigint_add2(z + N2, N, ws1, N);
  188|       |
  189|      0|   z_carry += bigint_add2(z + N + N2, N2, &ws_carry, 1);
  190|      0|   bigint_add2(z + N + N2, N2, &z_carry, 1);
  191|       |
  192|       |   /*
  193|       |   * This is only actually required if cmp (result of bigint_sub_abs) is != 0,
  194|       |   * however if cmp==0 then ws0[0:N] == 0 and avoiding the jump hides a
  195|       |   * timing channel.
  196|       |   */
  197|      0|   bigint_sub2(z + N2, 2 * N - N2, ws0, N);
  198|      0|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_mulILm4EEEbmmmmm:
  272|  13.0M|inline bool sized_for_comba_mul(size_t x_sw, size_t x_size, size_t y_sw, size_t y_size, size_t z_size) {
  273|  13.0M|   return (x_sw <= SZ && x_size >= SZ && y_sw <= SZ && y_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (273:12): [True: 5.36M, False: 7.70M]
  |  Branch (273:26): [True: 3.11M, False: 2.24M]
  |  Branch (273:42): [True: 3.11M, False: 0]
  |  Branch (273:56): [True: 3.00M, False: 109k]
  |  Branch (273:72): [True: 2.88M, False: 114k]
  ------------------
  274|  13.0M|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_mulILm6EEEbmmmmm:
  272|  10.1M|inline bool sized_for_comba_mul(size_t x_sw, size_t x_size, size_t y_sw, size_t y_size, size_t z_size) {
  273|  10.1M|   return (x_sw <= SZ && x_size >= SZ && y_sw <= SZ && y_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (273:12): [True: 7.64M, False: 2.52M]
  |  Branch (273:26): [True: 2.96M, False: 4.68M]
  |  Branch (273:42): [True: 2.96M, False: 0]
  |  Branch (273:56): [True: 2.85M, False: 109k]
  |  Branch (273:72): [True: 2.58M, False: 264k]
  ------------------
  274|  10.1M|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_mulILm8EEEbmmmmm:
  272|  7.58M|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.58M|   return (x_sw <= SZ && x_size >= SZ && y_sw <= SZ && y_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (273:12): [True: 5.08M, False: 2.50M]
  |  Branch (273:26): [True: 300k, False: 4.78M]
  |  Branch (273:42): [True: 286k, False: 14.5k]
  |  Branch (273:56): [True: 194k, False: 92.3k]
  |  Branch (273:72): [True: 8.43k, False: 185k]
  ------------------
  274|  7.58M|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_mulILm9EEEbmmmmm:
  272|  7.57M|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.57M|   return (x_sw <= SZ && x_size >= SZ && y_sw <= SZ && y_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (273:12): [True: 6.16M, False: 1.40M]
  |  Branch (273:26): [True: 1.23M, False: 4.93M]
  |  Branch (273:42): [True: 1.23M, False: 0]
  |  Branch (273:56): [True: 1.13M, False: 99.5k]
  |  Branch (273:72): [True: 1.07M, False: 57.2k]
  ------------------
  274|  7.57M|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_mulILm16EEEbmmmmm:
  272|  6.49M|inline bool sized_for_comba_mul(size_t x_sw, size_t x_size, size_t y_sw, size_t y_size, size_t z_size) {
  273|  6.49M|   return (x_sw <= SZ && x_size >= SZ && y_sw <= SZ && y_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (273:12): [True: 6.49M, False: 282]
  |  Branch (273:26): [True: 768k, False: 5.72M]
  |  Branch (273:42): [True: 768k, False: 0]
  |  Branch (273:56): [True: 753k, False: 14.5k]
  |  Branch (273:72): [True: 787, False: 753k]
  ------------------
  274|  6.49M|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_mulILm24EEEbmmmmm:
  272|  6.49M|inline bool sized_for_comba_mul(size_t x_sw, size_t x_size, size_t y_sw, size_t y_size, size_t z_size) {
  273|  6.49M|   return (x_sw <= SZ && x_size >= SZ && y_sw <= SZ && y_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (273:12): [True: 6.49M, False: 0]
  |  Branch (273:26): [True: 481, False: 6.49M]
  |  Branch (273:42): [True: 481, False: 0]
  |  Branch (273:56): [True: 481, False: 0]
  |  Branch (273:72): [True: 0, False: 481]
  ------------------
  274|  6.49M|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_sqrILm4EEEbmmm:
  277|  4.11M|inline bool sized_for_comba_sqr(size_t x_sw, size_t x_size, size_t z_size) {
  278|  4.11M|   return (x_sw <= SZ && x_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (278:12): [True: 2.25M, False: 1.85M]
  |  Branch (278:26): [True: 1.27M, False: 987k]
  |  Branch (278:42): [True: 1.19M, False: 77.3k]
  ------------------
  279|  4.11M|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_sqrILm6EEEbmmm:
  277|  2.92M|inline bool sized_for_comba_sqr(size_t x_sw, size_t x_size, size_t z_size) {
  278|  2.92M|   return (x_sw <= SZ && x_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (278:12): [True: 2.37M, False: 548k]
  |  Branch (278:26): [True: 188k, False: 2.18M]
  |  Branch (278:42): [True: 1.13k, False: 187k]
  ------------------
  279|  2.92M|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_sqrILm8EEEbmmm:
  277|  2.92M|inline bool sized_for_comba_sqr(size_t x_sw, size_t x_size, size_t z_size) {
  278|  2.92M|   return (x_sw <= SZ && x_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (278:12): [True: 2.37M, False: 546k]
  |  Branch (278:26): [True: 170k, False: 2.20M]
  |  Branch (278:42): [True: 1.87k, False: 169k]
  ------------------
  279|  2.92M|}
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: 2.63k]
  |  Branch (278:26): [True: 684k, False: 2.23M]
  |  Branch (278:42): [True: 544k, False: 139k]
  ------------------
  279|  2.91M|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_sqrILm16EEEbmmm:
  277|  2.37M|inline bool sized_for_comba_sqr(size_t x_sw, size_t x_size, size_t z_size) {
  278|  2.37M|   return (x_sw <= SZ && x_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (278:12): [True: 2.37M, False: 0]
  |  Branch (278:26): [True: 100k, False: 2.27M]
  |  Branch (278:42): [True: 1.06k, False: 98.9k]
  ------------------
  279|  2.37M|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_sqrILm24EEEbmmm:
  277|  2.37M|inline bool sized_for_comba_sqr(size_t x_sw, size_t x_size, size_t z_size) {
  278|  2.37M|   return (x_sw <= SZ && x_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (278:12): [True: 2.37M, False: 0]
  |  Branch (278:26): [True: 445, False: 2.37M]
  |  Branch (278:42): [True: 0, False: 445]
  ------------------
  279|  2.37M|}

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

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

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

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

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

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

_ZN5Botan6jacobiENS_6BigIntES0_:
  119|  3.01k|int32_t jacobi(BigInt a, BigInt n) {
  120|  3.01k|   BOTAN_ARG_CHECK(n.is_odd() && n >= 3, "Argument n must be an odd integer >= 3");
  ------------------
  |  |   35|  3.01k|   do {                                                          \
  |  |   36|  3.01k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  6.03k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 3.01k, False: 0]
  |  |  |  Branch (37:12): [True: 3.01k, False: 0]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  3.01k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 3.01k]
  |  |  ------------------
  ------------------
  121|       |
  122|  3.01k|   if(a < 0 || a >= n) {
  ------------------
  |  Branch (122:7): [True: 1.41k, False: 1.60k]
  |  Branch (122:16): [True: 0, False: 1.60k]
  ------------------
  123|  1.41k|      a %= n;
  124|  1.41k|   }
  125|       |
  126|  3.01k|   if(a == 0) {
  ------------------
  |  Branch (126:7): [True: 0, False: 3.01k]
  ------------------
  127|      0|      return 0;
  128|      0|   }
  129|  3.01k|   if(a == 1) {
  ------------------
  |  Branch (129:7): [True: 0, False: 3.01k]
  ------------------
  130|      0|      return 1;
  131|      0|   }
  132|       |
  133|  3.01k|   int32_t s = 1;
  134|       |
  135|  8.92k|   for(;;) {
  136|  8.92k|      const size_t e = low_zero_bits(a);
  137|  8.92k|      a >>= e;
  138|  8.92k|      const word n_mod_8 = n.word_at(0) % 8;
  139|  8.92k|      const word n_mod_4 = n_mod_8 % 4;
  140|       |
  141|  8.92k|      if(e % 2 == 1 && (n_mod_8 == 3 || n_mod_8 == 5)) {
  ------------------
  |  Branch (141:10): [True: 2.53k, False: 6.38k]
  |  Branch (141:25): [True: 442, False: 2.09k]
  |  Branch (141:41): [True: 389, False: 1.70k]
  ------------------
  142|    831|         s = -s;
  143|    831|      }
  144|       |
  145|  8.92k|      if(n_mod_4 == 3 && a % 4 == 3) {
  ------------------
  |  Branch (145:10): [True: 4.70k, False: 4.21k]
  |  Branch (145:26): [True: 1.88k, False: 2.82k]
  ------------------
  146|  1.88k|         s = -s;
  147|  1.88k|      }
  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|  8.92k|      if(a == 1) {
  ------------------
  |  Branch (165:10): [True: 3.01k, False: 5.90k]
  ------------------
  166|  3.01k|         return s;
  167|  3.01k|      }
  168|       |
  169|  5.90k|      std::swap(a, n);
  170|       |
  171|  5.90k|      BOTAN_ASSERT_NOMSG(n.is_odd());
  ------------------
  |  |   84|  5.90k|   do {                                                                     \
  |  |   85|  5.90k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   86|  5.90k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 5.90k]
  |  |  ------------------
  |  |   87|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   88|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   89|      0|      }                                                                     \
  |  |   90|  5.90k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (90:12): [Folded, False: 5.90k]
  |  |  ------------------
  ------------------
  172|       |
  173|  5.90k|      a %= n;
  174|       |
  175|  5.90k|      if(a == 0) {
  ------------------
  |  Branch (175:10): [True: 0, False: 5.90k]
  ------------------
  176|      0|         return 0;
  177|      0|      }
  178|  5.90k|   }
  179|  3.01k|}
_ZN5Botan13low_zero_bitsERKNS_6BigIntE:
  194|  9.93k|size_t low_zero_bits(const BigInt& n) {
  195|  9.93k|   size_t low_zero = 0;
  196|       |
  197|  9.93k|   auto seen_nonempty_word = CT::Mask<word>::cleared();
  198|       |
  199|  89.2k|   for(size_t i = 0; i != n.size(); ++i) {
  ------------------
  |  Branch (199:22): [True: 79.3k, False: 9.93k]
  ------------------
  200|  79.3k|      const word x = n.word_at(i);
  201|       |
  202|       |      // ctz(0) will return sizeof(word)
  203|  79.3k|      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|  79.3k|      low_zero += seen_nonempty_word.if_not_set_return(tz_x);
  208|       |
  209|  79.3k|      seen_nonempty_word |= CT::Mask<word>::expand(x);
  210|  79.3k|   }
  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|  9.93k|   return static_cast<size_t>(seen_nonempty_word.if_set_return(low_zero));
  215|  9.93k|}
_ZN5Botan17is_perfect_squareERKNS_6BigIntE:
  347|    170|BigInt is_perfect_square(const BigInt& C) {
  348|    170|   if(C < 1) {
  ------------------
  |  Branch (348:7): [True: 0, False: 170]
  ------------------
  349|      0|      throw Invalid_Argument("is_perfect_square requires C >= 1");
  350|      0|   }
  351|    170|   if(C == 1) {
  ------------------
  |  Branch (351:7): [True: 0, False: 170]
  ------------------
  352|      0|      return BigInt::one();
  353|      0|   }
  354|       |
  355|    170|   const size_t n = C.bits();
  356|    170|   const size_t m = (n + 1) / 2;
  357|    170|   const BigInt B = C + BigInt::power_of_2(m);
  358|       |
  359|    170|   BigInt X = BigInt::power_of_2(m) - 1;
  360|    170|   BigInt X2 = (X * X);
  361|       |
  362|    848|   for(;;) {
  363|    848|      X = (X2 + C) / (2 * X);
  364|    848|      X2 = (X * X);
  365|       |
  366|    848|      if(X2 < B) {
  ------------------
  |  Branch (366:10): [True: 170, False: 678]
  ------------------
  367|    170|         break;
  368|    170|      }
  369|    848|   }
  370|       |
  371|    170|   if(X2 == C) {
  ------------------
  |  Branch (371:7): [True: 0, False: 170]
  ------------------
  372|      0|      return X;
  373|    170|   } else {
  374|    170|      return BigInt::zero();
  375|    170|   }
  376|    170|}

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

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

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

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

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

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

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

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

_ZN5Botan18Keccak_Permutation5clearEv:
   37|    533|void Keccak_Permutation::clear() {
   38|    533|   state() = {};
   39|    533|   reset_cursor();
   40|    533|}
_ZN5Botan18Keccak_Permutation6absorbENSt3__14spanIKhLm18446744073709551615EEE:
   42|  8.35k|void Keccak_Permutation::absorb(std::span<const uint8_t> input) {
   43|  8.35k|   absorb_into_sponge(*this, input);
   44|  8.35k|}
_ZN5Botan18Keccak_Permutation7squeezeENSt3__14spanIhLm18446744073709551615EEE:
   46|   892k|void Keccak_Permutation::squeeze(std::span<uint8_t> output) {
   47|   892k|   squeeze_from_sponge(*this, output);
   48|   892k|}
_ZN5Botan18Keccak_Permutation6finishEv:
   50|  4.22k|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.22k|   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.22k|   const uint64_t start_of_padding = (m_padding.padding | uint64_t(1) << m_padding.bit_len);
   63|  4.22k|   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.22k|   BOTAN_DEBUG_ASSERT(m_padding.bit_len % 8 != 7);
  ------------------
  |  |  137|  4.22k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|  4.22k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 4.22k]
  |  |  ------------------
  ------------------
   73|       |
   74|       |   // Append the final bit of "pad10*1" into the last word of the input range
   75|  4.22k|   S[(byte_rate() / word_bytes) - 1] ^= uint64_t(0x8000000000000000);
   76|       |
   77|       |   // Perform the final permutation and reset the state cursor
   78|  4.22k|   permute();
   79|  4.22k|   reset_cursor();
   80|       |
   81|  4.22k|   BOTAN_DEBUG_ASSERT(cursor() == 0);
  ------------------
  |  |  137|  4.22k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|  4.22k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 4.22k]
  |  |  ------------------
  ------------------
   82|  4.22k|}
_ZN5Botan18Keccak_Permutation7permuteEv:
   84|  17.6k|void Keccak_Permutation::permute() {
   85|  17.6k|#if defined(BOTAN_HAS_KECCAK_PERM_AVX512)
   86|  17.6k|   if(CPUID::has(CPUID::Feature::AVX512)) {
  ------------------
  |  Branch (86:7): [True: 0, False: 17.6k]
  ------------------
   87|      0|      return permute_avx512();
   88|      0|   }
   89|  17.6k|#endif
   90|       |
   91|  17.6k|#if defined(BOTAN_HAS_KECCAK_PERM_BMI2)
   92|  17.6k|   if(CPUID::has(CPUID::Feature::BMI)) {
  ------------------
  |  Branch (92:7): [True: 17.6k, False: 0]
  ------------------
   93|  17.6k|      return permute_bmi2();
   94|  17.6k|   }
   95|      0|#endif
   96|       |
   97|      0|   uint64_t T[25];
   98|       |
   99|      0|   for(size_t i = 0; i != 24; i += 2) {
  ------------------
  |  Branch (99:22): [True: 0, False: 0]
  ------------------
  100|      0|      Keccak_Permutation_round(T, state().data(), KECCAK_RC[i + 0]);
  101|      0|      Keccak_Permutation_round(state().data(), T, KECCAK_RC[i + 1]);
  102|      0|   }
  103|      0|}

_ZN5Botan18Keccak_Permutation12permute_bmi2Ev:
   15|  17.6k|void BOTAN_FN_ISA_BMI2 Keccak_Permutation::permute_bmi2() {
   16|  17.6k|   uint64_t T[25];
   17|       |
   18|   229k|   for(size_t i = 0; i != 24; i += 2) {
  ------------------
  |  Branch (18:22): [True: 211k, False: 17.6k]
  ------------------
   19|   211k|      Keccak_Permutation_round(T, state().data(), KECCAK_RC[i + 0]);
   20|   211k|      Keccak_Permutation_round(state().data(), T, KECCAK_RC[i + 1]);
   21|   211k|   }
   22|  17.6k|}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

_ZN5Botan8EC_Group13ec_group_dataEv:
  231|  9.23k|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|  9.23k|   static const Allocator_Initializer g_init_allocator;
  238|  9.23k|   static EC_Group_Data_Map g_ec_data;
  239|  9.23k|   return g_ec_data;
  240|  9.23k|}
_ZN5Botan8EC_Group27clear_registered_curve_dataEv:
  243|  6.41k|size_t EC_Group::clear_registered_curve_data() {
  244|  6.41k|   return ec_group_data().clear();
  245|  6.41k|}
_ZN5Botan8EC_Group18load_EC_group_infoEPKcS2_S2_S2_S2_S2_RKNS_3OIDE:
  254|  2.11k|                                                            const OID& oid) {
  255|  2.11k|   BOTAN_ARG_CHECK(oid.has_value(), "EC_Group::load_EC_group_info OID must be set");
  ------------------
  |  |   35|  2.11k|   do {                                                          \
  |  |   36|  2.11k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  2.11k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 2.11k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  2.11k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 2.11k]
  |  |  ------------------
  ------------------
  256|       |
  257|  2.11k|   const BigInt p(p_str);
  258|  2.11k|   const BigInt a(a_str);
  259|  2.11k|   const BigInt b(b_str);
  260|  2.11k|   const BigInt g_x(g_x_str);
  261|  2.11k|   const BigInt g_y(g_y_str);
  262|  2.11k|   const BigInt order(order_str);
  263|  2.11k|   const BigInt cofactor(1);  // implicit
  264|       |
  265|  2.11k|   return EC_Group_Data::create(p, a, b, g_x, g_y, order, cofactor, oid, EC_Group_Source::Builtin);
  266|  2.11k|}
_ZN5Botan8EC_Group19DER_decode_EC_groupENSt3__14spanIKhLm18446744073709551615EEENS_15EC_Group_SourceE:
  270|  2.89k|                                                                              EC_Group_Source source) {
  271|  2.89k|   BER_Decoder dec(der, BER_Decoder::Limits::DER());
  272|       |
  273|  2.89k|   auto next_obj_type = dec.peek_next_object().type_tag();
  274|       |
  275|  2.89k|   if(next_obj_type == ASN1_Type::ObjectId) {
  ------------------
  |  Branch (275:7): [True: 1.99k, False: 893]
  ------------------
  276|  1.99k|      OID oid;
  277|  1.99k|      dec.decode(oid).verify_end();
  278|       |
  279|  1.99k|      auto data = ec_group_data().lookup(oid);
  280|  1.99k|      if(!data) {
  ------------------
  |  Branch (280:10): [True: 106, False: 1.89k]
  ------------------
  281|    106|         throw Decoding_Error(fmt("Unknown namedCurve OID '{}'", oid.to_string()));
  282|    106|      }
  283|       |
  284|  1.89k|      return std::make_pair(data, false);
  285|  1.99k|   } else if(next_obj_type == ASN1_Type::Sequence) {
  ------------------
  |  Branch (285:14): [True: 892, False: 1]
  ------------------
  286|    892|      BigInt p;
  287|    892|      BigInt a;
  288|    892|      BigInt b;
  289|    892|      BigInt order;
  290|    892|      BigInt cofactor;
  291|    892|      std::vector<uint8_t> base_pt;
  292|    892|      std::vector<uint8_t> seed;
  293|       |
  294|    892|      dec.start_sequence()
  295|    892|         .decode_and_check<size_t>(1, "Unknown ECC param version code")
  296|    892|         .start_sequence()
  297|    892|         .decode_and_check(OID({1, 2, 840, 10045, 1, 1}), "Only prime ECC fields supported")
  298|    892|         .decode(p)
  299|    892|         .end_cons()
  300|    892|         .start_sequence()
  301|    892|         .decode_octet_string_bigint(a)
  302|    892|         .decode_octet_string_bigint(b)
  303|    892|         .decode_optional_string(seed, ASN1_Type::BitString, ASN1_Type::BitString, ASN1_Class::Universal)
  304|    892|         .end_cons()
  305|    892|         .decode(base_pt, ASN1_Type::OctetString)
  306|    892|         .decode(order)
  307|    892|         .decode(cofactor)
  308|    892|         .end_cons()
  309|    892|         .verify_end();
  310|       |
  311|       |      // TODO(Botan4) Require cofactor == 1
  312|    892|      if(cofactor <= 0 || cofactor >= 16) {
  ------------------
  |  Branch (312:10): [True: 49, False: 843]
  |  Branch (312:27): [True: 2, False: 841]
  ------------------
  313|      3|         throw Decoding_Error("Invalid ECC cofactor parameter");
  314|      3|      }
  315|       |
  316|    889|      if(p.bits() < 112 || p.bits() > 521 || p.signum() < 0) {
  ------------------
  |  Branch (316:10): [True: 48, False: 841]
  |  Branch (316:28): [True: 2, False: 839]
  |  Branch (316:46): [True: 1, False: 838]
  ------------------
  317|      3|         throw Decoding_Error("ECC p parameter is invalid size");
  318|      3|      }
  319|       |
  320|       |      // A can be zero
  321|    886|      if(a.signum() < 0 || a >= p) {
  ------------------
  |  Branch (321:10): [True: 48, False: 838]
  |  Branch (321:28): [True: 2, False: 836]
  ------------------
  322|      2|         throw Decoding_Error("Invalid ECC a parameter");
  323|      2|      }
  324|       |
  325|       |      // B must be > 0
  326|    884|      if(b.signum() <= 0 || b >= p) {
  ------------------
  |  Branch (326:10): [True: 49, False: 835]
  |  Branch (326:29): [True: 24, False: 811]
  ------------------
  327|     25|         throw Decoding_Error("Invalid ECC b parameter");
  328|     25|      }
  329|       |
  330|    859|      if(order.signum() <= 0 || order >= 2 * p) {
  ------------------
  |  Branch (330:10): [True: 49, False: 810]
  |  Branch (330:10): [True: 2, False: 857]
  |  Branch (330:33): [True: 1, False: 809]
  ------------------
  331|      2|         throw Decoding_Error("Invalid ECC group order");
  332|      2|      }
  333|       |
  334|    857|      if(auto data = ec_group_data().lookup_from_params(p, a, b, base_pt, order, cofactor)) {
  ------------------
  |  Branch (334:15): [True: 148, False: 709]
  ------------------
  335|    148|         return std::make_pair(data, true);
  336|    148|      }
  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|    709|      auto mod_p = Barrett_Reduction::for_public_modulus(p);
  345|    709|      if(!is_bailie_psw_probable_prime(p, mod_p)) {
  ------------------
  |  Branch (345:10): [True: 196, False: 513]
  ------------------
  346|    196|         throw Decoding_Error("ECC p parameter is not a prime");
  347|    196|      }
  348|       |
  349|    513|      auto mod_order = Barrett_Reduction::for_public_modulus(order);
  350|    513|      if(!is_bailie_psw_probable_prime(order, mod_order)) {
  ------------------
  |  Branch (350:10): [True: 229, False: 284]
  ------------------
  351|    229|         throw Decoding_Error("Invalid ECC order parameter");
  352|    229|      }
  353|       |
  354|    284|      const size_t p_bytes = p.bytes();
  355|    284|      if(base_pt.size() != 1 + p_bytes && base_pt.size() != 1 + 2 * p_bytes) {
  ------------------
  |  Branch (355:10): [True: 235, False: 49]
  |  Branch (355:43): [True: 37, False: 198]
  ------------------
  356|     37|         throw Decoding_Error("Invalid ECC base point encoding");
  357|     37|      }
  358|       |
  359|    247|      auto [g_x, g_y] = [&]() {
  360|    247|         const uint8_t hdr = base_pt[0];
  361|       |
  362|    247|         if(hdr == 0x04 && base_pt.size() == 1 + 2 * p_bytes) {
  363|    247|            const BigInt x = BigInt::from_bytes(std::span{base_pt}.subspan(1, p_bytes));
  364|    247|            const BigInt y = BigInt::from_bytes(std::span{base_pt}.subspan(1 + p_bytes, p_bytes));
  365|       |
  366|    247|            if(x < p && y < p) {
  367|    247|               return std::make_pair(x, y);
  368|    247|            }
  369|    247|         } 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|    247|            const BigInt x = BigInt::from_bytes(std::span{base_pt}.subspan(1, p_bytes));
  372|    247|            BigInt y = sqrt_modulo_prime(((x * x + a) * x + b) % p, p);
  373|       |
  374|    247|            if(x < p && y >= 0) {
  375|    247|               const bool y_mod_2 = (hdr & 0x01) == 1;
  376|    247|               if(y.get_bit(0) != y_mod_2) {
  377|    247|                  y = p - y;
  378|    247|               }
  379|       |
  380|    247|               return std::make_pair(x, y);
  381|    247|            }
  382|    247|         }
  383|       |
  384|    247|         throw Decoding_Error("Invalid ECC base point encoding");
  385|    247|      }();
  386|       |
  387|       |      // TODO(Botan4) we can remove this check since we'll only accept pre-registered groups
  388|    247|      auto y2 = mod_p.square(g_y);
  389|    247|      auto x3_ax_b = mod_p.reduce(mod_p.cube(g_x) + mod_p.multiply(a, g_x) + b);
  390|    247|      if(y2 != x3_ax_b) {
  ------------------
  |  Branch (390:10): [True: 79, False: 168]
  ------------------
  391|     79|         throw Decoding_Error("Invalid ECC base point");
  392|     79|      }
  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|    168|      auto data = EC_Group_Data::create(p, a, b, g_x, g_y, order, cofactor, OID(), source);
  401|    168|      return std::make_pair(data, true);
  402|    247|   } else if(next_obj_type == ASN1_Type::Null) {
  ------------------
  |  Branch (402:14): [True: 0, False: 1]
  ------------------
  403|      0|      throw Decoding_Error("Decoding ImplicitCA ECC parameters is not supported");
  404|      1|   } else {
  405|      1|      throw Decoding_Error(
  406|      1|         fmt("Unexpected tag {} while decoding ECC domain params", asn1_tag_to_string(next_obj_type)));
  407|      1|   }
  408|  2.89k|}
_ZN5Botan8EC_GroupD2Ev:
  412|  10.0k|EC_Group::~EC_Group() = default;
_ZN5Botan8EC_GroupC2ERKS0_:
  414|  4.20k|EC_Group::EC_Group(const EC_Group&) = default;
_ZN5Botan8EC_Group8from_OIDERKNS_3OIDE:
  467|     12|EC_Group EC_Group::from_OID(const OID& oid) {
  468|     12|   auto data = ec_group_data().lookup(oid);
  469|       |
  470|     12|   if(!data) {
  ------------------
  |  Branch (470:7): [True: 12, False: 0]
  ------------------
  471|     12|      throw Invalid_Argument(fmt("No EC_Group associated with OID '{}'", oid.to_string()));
  472|     12|   }
  473|       |
  474|      0|   return EC_Group(std::move(data));
  475|     12|}
_ZN5Botan8EC_GroupC2ENSt3__14spanIKhLm18446744073709551615EEE:
  636|  2.89k|EC_Group::EC_Group(std::span<const uint8_t> der) {
  637|  2.89k|   auto data = DER_decode_EC_group(der, EC_Group_Source::ExternalSource);
  638|  2.89k|   m_data = data.first;
  639|  2.89k|   m_explicit_encoding = data.second;
  640|  2.89k|}
_ZNK5Botan8EC_Group4dataEv:
  647|  5.59k|const EC_Group_Data& EC_Group::data() const {
  648|  5.59k|   if(m_data == nullptr) {
  ------------------
  |  Branch (648:7): [True: 0, False: 5.59k]
  ------------------
  649|      0|      throw Invalid_State("EC_Group uninitialized");
  650|      0|   }
  651|  5.59k|   return *m_data;
  652|  5.59k|}
_ZNK5Botan8EC_Group15get_order_bytesEv:
  666|  4.00k|size_t EC_Group::get_order_bytes() const {
  667|  4.00k|   return data().order_bytes();
  668|  4.00k|}
_ZNK5Botan8EC_Group13get_curve_oidEv:
  738|  1.58k|const OID& EC_Group::get_curve_oid() const {
  739|  1.58k|   return data().oid();
  740|  1.58k|}
_ZN5Botan17EC_Group_Data_Map5clearEv:
   31|  6.41k|      size_t clear() {
   32|  6.41k|         const lock_guard_type<mutex_type> lock(m_mutex);
   33|  6.41k|         const size_t count = m_registered_curves.size();
   34|  6.41k|         m_registered_curves.clear();
   35|  6.41k|         return count;
   36|  6.41k|      }
_ZN5Botan17EC_Group_Data_Map6lookupERKNS_3OIDE:
   54|  2.00k|      std::shared_ptr<EC_Group_Data> lookup(const OID& oid) {
   55|  2.00k|         const lock_guard_type<mutex_type> lock(m_mutex);
   56|       |
   57|  2.00k|         for(auto i : m_registered_curves) {
  ------------------
  |  Branch (57:21): [True: 12, False: 2.00k]
  ------------------
   58|     12|            if(i->oid() == oid) {
  ------------------
  |  Branch (58:16): [True: 0, False: 12]
  ------------------
   59|      0|               return i;
   60|      0|            }
   61|     12|         }
   62|       |
   63|       |         // Not found, check hardcoded data
   64|  2.00k|         std::shared_ptr<EC_Group_Data> data = EC_Group::EC_group_info(oid);
   65|       |
   66|  2.00k|         if(data) {
  ------------------
  |  Branch (66:13): [True: 1.89k, False: 118]
  ------------------
   67|       |            // The requested OID may be an alias for a curve whose canonical OID differs
   68|       |            // TODO(Botan4) remove this once we require exactly one canonical OID per curve
   69|  1.89k|            if(data->oid() != oid) {
  ------------------
  |  Branch (69:16): [True: 0, False: 1.89k]
  ------------------
   70|      0|               for(const auto& i : m_registered_curves) {
  ------------------
  |  Branch (70:34): [True: 0, False: 0]
  ------------------
   71|      0|                  if(i->oid() == data->oid()) {
  ------------------
  |  Branch (71:22): [True: 0, False: 0]
  ------------------
   72|      0|                     return i;
   73|      0|                  }
   74|      0|               }
   75|      0|            }
   76|       |
   77|  1.89k|            m_registered_curves.push_back(data);
   78|  1.89k|            return data;
   79|  1.89k|         }
   80|       |
   81|       |         // Nope, unknown curve
   82|    118|         return std::shared_ptr<EC_Group_Data>();
   83|  2.00k|      }
_ZN5Botan17EC_Group_Data_Map18lookup_from_paramsERKNS_6BigIntES3_S3_NSt3__14spanIKhLm18446744073709551615EEES3_S3_:
  159|    809|                                                        const BigInt& cofactor) {
  160|    809|         const lock_guard_type<mutex_type> lock(m_mutex);
  161|       |
  162|    809|         for(auto i : m_registered_curves) {
  ------------------
  |  Branch (162:21): [True: 0, False: 809]
  ------------------
  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|    809|         const OID oid_from_order = EC_Group::EC_group_identity_from_order(order);
  170|    809|         if(oid_from_order.has_value()) {
  ------------------
  |  Branch (170:13): [True: 222, False: 587]
  ------------------
  171|    222|            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|    222|            if(new_group && new_group->params_match(p, a, b, base_pt, order, cofactor)) {
  ------------------
  |  Branch (174:16): [True: 222, False: 0]
  |  Branch (174:29): [True: 148, False: 74]
  ------------------
  175|    148|               m_registered_curves.push_back(new_group);
  176|    148|               return new_group;
  177|    148|            }
  178|    222|         }
  179|       |
  180|    661|         return {};
  181|    809|      }
ec_group.cpp:_ZZN5Botan8EC_Group19DER_decode_EC_groupENSt3__14spanIKhLm18446744073709551615EEENS_15EC_Group_SourceEENK3$_0clEv:
  359|    198|      auto [g_x, g_y] = [&]() {
  360|    198|         const uint8_t hdr = base_pt[0];
  361|       |
  362|    198|         if(hdr == 0x04 && base_pt.size() == 1 + 2 * p_bytes) {
  ------------------
  |  Branch (362:13): [True: 180, False: 18]
  |  Branch (362:28): [True: 180, False: 0]
  ------------------
  363|    180|            const BigInt x = BigInt::from_bytes(std::span{base_pt}.subspan(1, p_bytes));
  364|    180|            const BigInt y = BigInt::from_bytes(std::span{base_pt}.subspan(1 + p_bytes, p_bytes));
  365|       |
  366|    180|            if(x < p && y < p) {
  ------------------
  |  Branch (366:16): [True: 176, False: 4]
  |  Branch (366:25): [True: 171, False: 5]
  ------------------
  367|    171|               return std::make_pair(x, y);
  368|    171|            }
  369|    180|         } else if((hdr == 0x02 || hdr == 0x03) && base_pt.size() == 1 + p_bytes) {
  ------------------
  |  Branch (369:21): [True: 2, False: 16]
  |  Branch (369:36): [True: 2, False: 14]
  |  Branch (369:52): [True: 0, False: 4]
  ------------------
  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|     27|         throw Decoding_Error("Invalid ECC base point encoding");
  385|    198|      }();

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

_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|  6.87k|const std::shared_ptr<const EC_Group_Data>& EC_Scalar_Data_PC::group() const {
   23|  6.87k|   return m_group;
   24|  6.87k|}
_ZNK5Botan17EC_Scalar_Data_PC5bytesEv:
   26|  1.80k|size_t EC_Scalar_Data_PC::bytes() const {
   27|  1.80k|   return this->group()->order_bytes();
   28|  1.80k|}
_ZNK5Botan17EC_Scalar_Data_PC5cloneEv:
   30|  1.80k|std::unique_ptr<EC_Scalar_Data> EC_Scalar_Data_PC::clone() const {
   31|  1.80k|   return std::make_unique<EC_Scalar_Data_PC>(this->group(), this->value());
   32|  1.80k|}
_ZNK5Botan17EC_Scalar_Data_PC7is_zeroEv:
   34|  1.80k|bool EC_Scalar_Data_PC::is_zero() const {
   35|  1.80k|   const auto& pcurve = this->group()->pcurve();
   36|  1.80k|   return pcurve.scalar_is_zero(m_v);
   37|  1.80k|}
_ZN5Botan17EC_Scalar_Data_PC7zeroizeEv:
   49|  1.80k|void EC_Scalar_Data_PC::zeroize() {
   50|  1.80k|   m_v._zeroize();
   51|  1.80k|}
_ZNK5Botan17EC_Scalar_Data_PC12serialize_toENSt3__14spanIhLm18446744073709551615EEE:
   82|  1.80k|void EC_Scalar_Data_PC::serialize_to(std::span<uint8_t> bytes) const {
   83|  1.80k|   BOTAN_ARG_CHECK(bytes.size() == m_group->order_bytes(), "Invalid output length");
  ------------------
  |  |   35|  1.80k|   do {                                                          \
  |  |   36|  1.80k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  1.80k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 1.80k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  1.80k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 1.80k]
  |  |  ------------------
  ------------------
   84|  1.80k|   m_group->pcurve().serialize_scalar(bytes, m_v);
   85|  1.80k|}
_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.23k|std::shared_ptr<EC_Group_Data> EC_Group::EC_group_info(const OID& oid) {
   17|       |   // secp256r1
   18|  2.23k|   if(oid == OID{1, 2, 840, 10045, 3, 1, 7}) {
  ------------------
  |  Branch (18:7): [True: 143, False: 2.08k]
  ------------------
   19|    143|      return load_EC_group_info(
   20|    143|         "0xFFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF",
   21|    143|         "0xFFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFC",
   22|    143|         "0x5AC635D8AA3A93E7B3EBBD55769886BC651D06B0CC53B0F63BCE3C3E27D2604B",
   23|    143|         "0x6B17D1F2E12C4247F8BCE6E563A440F277037D812DEB33A0F4A13945D898C296",
   24|    143|         "0x4FE342E2FE1A7F9B8EE7EB4A7C0F9E162BCE33576B315ECECBB6406837BF51F5",
   25|    143|         "0xFFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551",
   26|    143|         oid);
   27|    143|   }
   28|       |
   29|       |   // secp384r1
   30|  2.08k|   if(oid == OID{1, 3, 132, 0, 34}) {
  ------------------
  |  Branch (30:7): [True: 201, False: 1.88k]
  ------------------
   31|    201|      return load_EC_group_info(
   32|    201|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFF0000000000000000FFFFFFFF",
   33|    201|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFF0000000000000000FFFFFFFC",
   34|    201|         "0xB3312FA7E23EE7E4988E056BE3F82D19181D9C6EFE8141120314088F5013875AC656398D8A2ED19D2A85C8EDD3EC2AEF",
   35|    201|         "0xAA87CA22BE8B05378EB1C71EF320AD746E1D3B628BA79B9859F741E082542A385502F25DBF55296C3A545E3872760AB7",
   36|    201|         "0x3617DE4A96262C6F5D9E98BF9292DC29F8F41DBD289A147CE9DA3113B5F0B8C00A60B1CE1D7E819D7A431D7C90EA0E5F",
   37|    201|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC7634D81F4372DDF581A0DB248B0A77AECEC196ACCC52973",
   38|    201|         oid);
   39|    201|   }
   40|       |
   41|       |   // secp521r1
   42|  1.88k|   if(oid == OID{1, 3, 132, 0, 35}) {
  ------------------
  |  Branch (42:7): [True: 259, False: 1.62k]
  ------------------
   43|    259|      return load_EC_group_info(
   44|    259|         "0x1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF",
   45|    259|         "0x1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC",
   46|    259|         "0x51953EB9618E1C9A1F929A21A0B68540EEA2DA725B99B315F3B8B489918EF109E156193951EC7E937B1652C0BD3BB1BF073573DF883D2C34F1EF451FD46B503F00",
   47|    259|         "0xC6858E06B70404E9CD9E3ECB662395B4429C648139053FB521F828AF606B4D3DBAA14B5E77EFE75928FE1DC127A2FFA8DE3348B3C1856A429BF97E7E31C2E5BD66",
   48|    259|         "0x11839296A789A3BC0045C8A5FB42C7D1BD998F54449579B446817AFBD17273E662C97EE72995EF42640C550B9013FAD0761353C7086A272C24088BE94769FD16650",
   49|    259|         "0x1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA51868783BF2F966B7FCC0148F709A5D03BB5C9B8899C47AEBB6FB71E91386409",
   50|    259|         oid);
   51|    259|   }
   52|       |
   53|       |   // brainpool160r1
   54|  1.62k|   if(oid == OID{1, 3, 36, 3, 3, 2, 8, 1, 1, 1}) {
  ------------------
  |  Branch (54:7): [True: 56, False: 1.57k]
  ------------------
   55|     56|      return load_EC_group_info(
   56|     56|         "0xE95E4A5F737059DC60DFC7AD95B3D8139515620F",
   57|     56|         "0x340E7BE2A280EB74E2BE61BADA745D97E8F7C300",
   58|     56|         "0x1E589A8595423412134FAA2DBDEC95C8D8675E58",
   59|     56|         "0xBED5AF16EA3F6A4F62938C4631EB5AF7BDBCDBC3",
   60|     56|         "0x1667CB477A1A8EC338F94741669C976316DA6321",
   61|     56|         "0xE95E4A5F737059DC60DF5991D45029409E60FC09",
   62|     56|         oid);
   63|     56|   }
   64|       |
   65|       |   // brainpool192r1
   66|  1.57k|   if(oid == OID{1, 3, 36, 3, 3, 2, 8, 1, 1, 3}) {
  ------------------
  |  Branch (66:7): [True: 18, False: 1.55k]
  ------------------
   67|     18|      return load_EC_group_info(
   68|     18|         "0xC302F41D932A36CDA7A3463093D18DB78FCE476DE1A86297",
   69|     18|         "0x6A91174076B1E0E19C39C031FE8685C1CAE040E5C69A28EF",
   70|     18|         "0x469A28EF7C28CCA3DC721D044F4496BCCA7EF4146FBF25C9",
   71|     18|         "0xC0A0647EAAB6A48753B033C56CB0F0900A2F5C4853375FD6",
   72|     18|         "0x14B690866ABD5BB88B5F4828C1490002E6773FA2FA299B8F",
   73|     18|         "0xC302F41D932A36CDA7A3462F9E9E916B5BE8F1029AC4ACC1",
   74|     18|         oid);
   75|     18|   }
   76|       |
   77|       |   // brainpool224r1
   78|  1.55k|   if(oid == OID{1, 3, 36, 3, 3, 2, 8, 1, 1, 5}) {
  ------------------
  |  Branch (78:7): [True: 87, False: 1.46k]
  ------------------
   79|     87|      return load_EC_group_info(
   80|     87|         "0xD7C134AA264366862A18302575D1D787B09F075797DA89F57EC8C0FF",
   81|     87|         "0x68A5E62CA9CE6C1C299803A6C1530B514E182AD8B0042A59CAD29F43",
   82|     87|         "0x2580F63CCFE44138870713B1A92369E33E2135D266DBB372386C400B",
   83|     87|         "0xD9029AD2C7E5CF4340823B2A87DC68C9E4CE3174C1E6EFDEE12C07D",
   84|     87|         "0x58AA56F772C0726F24C6B89E4ECDAC24354B9E99CAA3F6D3761402CD",
   85|     87|         "0xD7C134AA264366862A18302575D0FB98D116BC4B6DDEBCA3A5A7939F",
   86|     87|         oid);
   87|     87|   }
   88|       |
   89|       |   // brainpool256r1
   90|  1.46k|   if(oid == OID{1, 3, 36, 3, 3, 2, 8, 1, 1, 7}) {
  ------------------
  |  Branch (90:7): [True: 161, False: 1.30k]
  ------------------
   91|    161|      return load_EC_group_info(
   92|    161|         "0xA9FB57DBA1EEA9BC3E660A909D838D726E3BF623D52620282013481D1F6E5377",
   93|    161|         "0x7D5A0975FC2C3057EEF67530417AFFE7FB8055C126DC5C6CE94A4B44F330B5D9",
   94|    161|         "0x26DC5C6CE94A4B44F330B5D9BBD77CBF958416295CF7E1CE6BCCDC18FF8C07B6",
   95|    161|         "0x8BD2AEB9CB7E57CB2C4B482FFC81B7AFB9DE27E1E3BD23C23A4453BD9ACE3262",
   96|    161|         "0x547EF835C3DAC4FD97F8461A14611DC9C27745132DED8E545C1D54C72F046997",
   97|    161|         "0xA9FB57DBA1EEA9BC3E660A909D838D718C397AA3B561A6F7901E0E82974856A7",
   98|    161|         oid);
   99|    161|   }
  100|       |
  101|       |   // brainpool320r1
  102|  1.30k|   if(oid == OID{1, 3, 36, 3, 3, 2, 8, 1, 1, 9}) {
  ------------------
  |  Branch (102:7): [True: 88, False: 1.21k]
  ------------------
  103|     88|      return load_EC_group_info(
  104|     88|         "0xD35E472036BC4FB7E13C785ED201E065F98FCFA6F6F40DEF4F92B9EC7893EC28FCD412B1F1B32E27",
  105|     88|         "0x3EE30B568FBAB0F883CCEBD46D3F3BB8A2A73513F5EB79DA66190EB085FFA9F492F375A97D860EB4",
  106|     88|         "0x520883949DFDBC42D3AD198640688A6FE13F41349554B49ACC31DCCD884539816F5EB4AC8FB1F1A6",
  107|     88|         "0x43BD7E9AFB53D8B85289BCC48EE5BFE6F20137D10A087EB6E7871E2A10A599C710AF8D0D39E20611",
  108|     88|         "0x14FDD05545EC1CC8AB4093247F77275E0743FFED117182EAA9C77877AAAC6AC7D35245D1692E8EE1",
  109|     88|         "0xD35E472036BC4FB7E13C785ED201E065F98FCFA5B68F12A32D482EC7EE8658E98691555B44C59311",
  110|     88|         oid);
  111|     88|   }
  112|       |
  113|       |   // brainpool384r1
  114|  1.21k|   if(oid == OID{1, 3, 36, 3, 3, 2, 8, 1, 1, 11}) {
  ------------------
  |  Branch (114:7): [True: 148, False: 1.06k]
  ------------------
  115|    148|      return load_EC_group_info(
  116|    148|         "0x8CB91E82A3386D280F5D6F7E50E641DF152F7109ED5456B412B1DA197FB71123ACD3A729901D1A71874700133107EC53",
  117|    148|         "0x7BC382C63D8C150C3C72080ACE05AFA0C2BEA28E4FB22787139165EFBA91F90F8AA5814A503AD4EB04A8C7DD22CE2826",
  118|    148|         "0x4A8C7DD22CE28268B39B55416F0447C2FB77DE107DCD2A62E880EA53EEB62D57CB4390295DBC9943AB78696FA504C11",
  119|    148|         "0x1D1C64F068CF45FFA2A63A81B7C13F6B8847A3E77EF14FE3DB7FCAFE0CBD10E8E826E03436D646AAEF87B2E247D4AF1E",
  120|    148|         "0x8ABE1D7520F9C2A45CB1EB8E95CFD55262B70B29FEEC5864E19C054FF99129280E4646217791811142820341263C5315",
  121|    148|         "0x8CB91E82A3386D280F5D6F7E50E641DF152F7109ED5456B31F166E6CAC0425A7CF3AB6AF6B7FC3103B883202E9046565",
  122|    148|         oid);
  123|    148|   }
  124|       |
  125|       |   // brainpool512r1
  126|  1.06k|   if(oid == OID{1, 3, 36, 3, 3, 2, 8, 1, 1, 13}) {
  ------------------
  |  Branch (126:7): [True: 199, False: 870]
  ------------------
  127|    199|      return load_EC_group_info(
  128|    199|         "0xAADD9DB8DBE9C48B3FD4E6AE33C9FC07CB308DB3B3C9D20ED6639CCA703308717D4D9B009BC66842AECDA12AE6A380E62881FF2F2D82C68528AA6056583A48F3",
  129|    199|         "0x7830A3318B603B89E2327145AC234CC594CBDD8D3DF91610A83441CAEA9863BC2DED5D5AA8253AA10A2EF1C98B9AC8B57F1117A72BF2C7B9E7C1AC4D77FC94CA",
  130|    199|         "0x3DF91610A83441CAEA9863BC2DED5D5AA8253AA10A2EF1C98B9AC8B57F1117A72BF2C7B9E7C1AC4D77FC94CADC083E67984050B75EBAE5DD2809BD638016F723",
  131|    199|         "0x81AEE4BDD82ED9645A21322E9C4C6A9385ED9F70B5D916C1B43B62EEF4D0098EFF3B1F78E2D0D48D50D1687B93B97D5F7C6D5047406A5E688B352209BCB9F822",
  132|    199|         "0x7DDE385D566332ECC0EABFA9CF7822FDF209F70024A57B1AA000C55B881F8111B2DCDE494A5F485E5BCA4BD88A2763AED1CA2B2FA8F0540678CD1E0F3AD80892",
  133|    199|         "0xAADD9DB8DBE9C48B3FD4E6AE33C9FC07CB308DB3B3C9D20ED6639CCA70330870553E5C414CA92619418661197FAC10471DB1D381085DDADDB58796829CA90069",
  134|    199|         oid);
  135|    199|   }
  136|       |
  137|       |   // frp256v1
  138|    870|   if(oid == OID{1, 2, 250, 1, 223, 101, 256, 1}) {
  ------------------
  |  Branch (138:7): [True: 0, False: 870]
  ------------------
  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|    870|   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: 870]
  |  Branch (150:7): [True: 0, False: 870]
  |  Branch (150:50): [True: 0, False: 870]
  |  Branch (150:88): [True: 0, False: 870]
  ------------------
  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|    870|   if(oid == OID{1, 2, 643, 7, 1, 2, 1, 2, 1}) {
  ------------------
  |  Branch (162:7): [True: 0, False: 870]
  ------------------
  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|    870|   if(oid == OID{1, 3, 132, 0, 9}) {
  ------------------
  |  Branch (174:7): [True: 10, False: 860]
  ------------------
  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|    860|   if(oid == OID{1, 3, 132, 0, 8}) {
  ------------------
  |  Branch (186:7): [True: 10, False: 850]
  ------------------
  187|     10|      return load_EC_group_info(
  188|     10|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFF",
  189|     10|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFC",
  190|     10|         "0x1C97BEFC54BD7A8B65ACF89F81D4D4ADC565FA45",
  191|     10|         "0x4A96B5688EF573284664698968C38BB913CBFC82",
  192|     10|         "0x23A628553168947D59DCC912042351377AC5FB32",
  193|     10|         "0x100000000000000000001F4C8F927AED3CA752257",
  194|     10|         oid);
  195|     10|   }
  196|       |
  197|       |   // secp160r2
  198|    850|   if(oid == OID{1, 3, 132, 0, 30}) {
  ------------------
  |  Branch (198:7): [True: 51, False: 799]
  ------------------
  199|     51|      return load_EC_group_info(
  200|     51|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC73",
  201|     51|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC70",
  202|     51|         "0xB4E134D3FB59EB8BAB57274904664D5AF50388BA",
  203|     51|         "0x52DCB034293A117E1F4FF11B30F7199D3144CE6D",
  204|     51|         "0xFEAFFEF2E331F296E071FA0DF9982CFEA7D43F2E",
  205|     51|         "0x100000000000000000000351EE786A818F3A1A16B",
  206|     51|         oid);
  207|     51|   }
  208|       |
  209|       |   // secp192k1
  210|    799|   if(oid == OID{1, 3, 132, 0, 31}) {
  ------------------
  |  Branch (210:7): [True: 73, False: 726]
  ------------------
  211|     73|      return load_EC_group_info(
  212|     73|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFEE37",
  213|     73|         "0x0",
  214|     73|         "0x3",
  215|     73|         "0xDB4FF10EC057E9AE26B07D0280B7F4341DA5D1B1EAE06C7D",
  216|     73|         "0x9B2F2F6D9C5628A7844163D015BE86344082AA88D95E2F9D",
  217|     73|         "0xFFFFFFFFFFFFFFFFFFFFFFFE26F2FC170F69466A74DEFD8D",
  218|     73|         oid);
  219|     73|   }
  220|       |
  221|       |   // secp192r1
  222|    726|   if(oid == OID{1, 2, 840, 10045, 3, 1, 1}) {
  ------------------
  |  Branch (222:7): [True: 0, False: 726]
  ------------------
  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|    726|   if(oid == OID{1, 3, 132, 0, 32}) {
  ------------------
  |  Branch (234:7): [True: 150, False: 576]
  ------------------
  235|    150|      return load_EC_group_info(
  236|    150|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFE56D",
  237|    150|         "0x0",
  238|    150|         "0x5",
  239|    150|         "0xA1455B334DF099DF30FC28A169A467E9E47075A90F7E650EB6B7A45C",
  240|    150|         "0x7E089FED7FBA344282CAFBD6F7E319F7C0B0BD59E2CA4BDB556D61A5",
  241|    150|         "0x10000000000000000000000000001DCE8D2EC6184CAF0A971769FB1F7",
  242|    150|         oid);
  243|    150|   }
  244|       |
  245|       |   // secp224r1
  246|    576|   if(oid == OID{1, 3, 132, 0, 33}) {
  ------------------
  |  Branch (246:7): [True: 294, False: 282]
  ------------------
  247|    294|      return load_EC_group_info(
  248|    294|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000001",
  249|    294|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFE",
  250|    294|         "0xB4050A850C04B3ABF54132565044B0B7D7BFD8BA270B39432355FFB4",
  251|    294|         "0xB70E0CBD6BB4BF7F321390B94A03C1D356C21122343280D6115C1D21",
  252|    294|         "0xBD376388B5F723FB4C22DFE6CD4375A05A07476444D5819985007E34",
  253|    294|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFF16A2E0B8F03E13DD29455C5C2A3D",
  254|    294|         oid);
  255|    294|   }
  256|       |
  257|       |   // secp256k1
  258|    282|   if(oid == OID{1, 3, 132, 0, 10}) {
  ------------------
  |  Branch (258:7): [True: 164, False: 118]
  ------------------
  259|    164|      return load_EC_group_info(
  260|    164|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F",
  261|    164|         "0x0",
  262|    164|         "0x7",
  263|    164|         "0x79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798",
  264|    164|         "0x483ADA7726A3C4655DA4FBFC0E1108A8FD17B448A68554199C47D08FFB10D4B8",
  265|    164|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141",
  266|    164|         oid);
  267|    164|   }
  268|       |
  269|       |   // sm2p256v1
  270|    118|   if(oid == OID{1, 2, 156, 10197, 1, 301}) {
  ------------------
  |  Branch (270:7): [True: 0, False: 118]
  ------------------
  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|    118|   if(oid == OID{1, 2, 840, 10045, 3, 1, 2}) {
  ------------------
  |  Branch (282:7): [True: 0, False: 118]
  ------------------
  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|    118|   if(oid == OID{1, 2, 840, 10045, 3, 1, 3}) {
  ------------------
  |  Branch (294:7): [True: 0, False: 118]
  ------------------
  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|    118|   if(oid == OID{1, 2, 840, 10045, 3, 1, 4}) {
  ------------------
  |  Branch (306:7): [True: 0, False: 118]
  ------------------
  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|    118|   if(oid == OID{1, 2, 840, 10045, 3, 1, 5}) {
  ------------------
  |  Branch (318:7): [True: 0, False: 118]
  ------------------
  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|    118|   if(oid == OID{1, 2, 840, 10045, 3, 1, 6}) {
  ------------------
  |  Branch (330:7): [True: 0, False: 118]
  ------------------
  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|    118|   if(oid == OID{1, 3, 6, 1, 4, 1, 25258, 4, 3}) {
  ------------------
  |  Branch (342:7): [True: 0, False: 118]
  ------------------
  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|    118|   return std::shared_ptr<EC_Group_Data>();
  354|    118|}
_ZN5Botan8EC_Group28EC_group_identity_from_orderERKNS_6BigIntE:
  358|    809|   {
  359|    809|   const uint32_t low_bits = static_cast<uint32_t>(order.word_at(0));
  360|       |
  361|    809|   if(low_bits == 0xFC632551 && order == BigInt("0xFFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551")) {
  ------------------
  |  Branch (361:7): [True: 174, False: 635]
  |  Branch (361:7): [True: 143, False: 666]
  |  Branch (361:33): [True: 143, False: 31]
  ------------------
  362|    143|      return OID{1, 2, 840, 10045, 3, 1, 7};
  363|    143|   }
  364|       |
  365|    666|   if(low_bits == 0xCCC52973 && order == BigInt("0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC7634D81F4372DDF581A0DB248B0A77AECEC196ACCC52973")) {
  ------------------
  |  Branch (365:7): [True: 1, False: 665]
  |  Branch (365:7): [True: 0, False: 666]
  |  Branch (365:33): [True: 0, False: 1]
  ------------------
  366|      0|      return OID{1, 3, 132, 0, 34};
  367|      0|   }
  368|       |
  369|    666|   if(low_bits == 0x91386409 && order == BigInt("0x1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA51868783BF2F966B7FCC0148F709A5D03BB5C9B8899C47AEBB6FB71E91386409")) {
  ------------------
  |  Branch (369:7): [True: 88, False: 578]
  |  Branch (369:7): [True: 79, False: 587]
  |  Branch (369:33): [True: 79, False: 9]
  ------------------
  370|     79|      return OID{1, 3, 132, 0, 35};
  371|     79|   }
  372|       |
  373|    587|   if(low_bits == 0x9E60FC09 && order == BigInt("0xE95E4A5F737059DC60DF5991D45029409E60FC09")) {
  ------------------
  |  Branch (373:7): [True: 0, False: 587]
  |  Branch (373:7): [True: 0, False: 587]
  |  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|    587|   if(low_bits == 0x9AC4ACC1 && order == BigInt("0xC302F41D932A36CDA7A3462F9E9E916B5BE8F1029AC4ACC1")) {
  ------------------
  |  Branch (377:7): [True: 0, False: 587]
  |  Branch (377:7): [True: 0, False: 587]
  |  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|    587|   if(low_bits == 0xA5A7939F && order == BigInt("0xD7C134AA264366862A18302575D0FB98D116BC4B6DDEBCA3A5A7939F")) {
  ------------------
  |  Branch (381:7): [True: 1, False: 586]
  |  Branch (381:7): [True: 0, False: 587]
  |  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|    587|   if(low_bits == 0x974856A7 && order == BigInt("0xA9FB57DBA1EEA9BC3E660A909D838D718C397AA3B561A6F7901E0E82974856A7")) {
  ------------------
  |  Branch (385:7): [True: 3, False: 584]
  |  Branch (385:7): [True: 0, False: 587]
  |  Branch (385:33): [True: 0, False: 3]
  ------------------
  386|      0|      return OID{1, 3, 36, 3, 3, 2, 8, 1, 1, 7};
  387|      0|   }
  388|       |
  389|    587|   if(low_bits == 0x44C59311 && order == BigInt("0xD35E472036BC4FB7E13C785ED201E065F98FCFA5B68F12A32D482EC7EE8658E98691555B44C59311")) {
  ------------------
  |  Branch (389:7): [True: 1, False: 586]
  |  Branch (389:7): [True: 0, False: 587]
  |  Branch (389:33): [True: 0, False: 1]
  ------------------
  390|      0|      return OID{1, 3, 36, 3, 3, 2, 8, 1, 1, 9};
  391|      0|   }
  392|       |
  393|    587|   if(low_bits == 0xE9046565 && order == BigInt("0x8CB91E82A3386D280F5D6F7E50E641DF152F7109ED5456B31F166E6CAC0425A7CF3AB6AF6B7FC3103B883202E9046565")) {
  ------------------
  |  Branch (393:7): [True: 3, False: 584]
  |  Branch (393:7): [True: 0, False: 587]
  |  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|    587|   if(low_bits == 0x9CA90069 && order == BigInt("0xAADD9DB8DBE9C48B3FD4E6AE33C9FC07CB308DB3B3C9D20ED6639CCA70330870553E5C414CA92619418661197FAC10471DB1D381085DDADDB58796829CA90069")) {
  ------------------
  |  Branch (397:7): [True: 2, False: 585]
  |  Branch (397:7): [True: 0, False: 587]
  |  Branch (397:33): [True: 0, False: 2]
  ------------------
  398|      0|      return OID{1, 3, 36, 3, 3, 2, 8, 1, 1, 13};
  399|      0|   }
  400|       |
  401|    587|   if(low_bits == 0xC6D655E1 && order == BigInt("0xF1FD178C0B3AD58F10126DE8CE42435B53DC67E140D2BF941FFDD459C6D655E1")) {
  ------------------
  |  Branch (401:7): [True: 1, False: 586]
  |  Branch (401:7): [True: 0, False: 587]
  |  Branch (401:33): [True: 0, False: 1]
  ------------------
  402|      0|      return OID{1, 2, 250, 1, 223, 101, 256, 1};
  403|      0|   }
  404|       |
  405|    587|   if(low_bits == 0xB761B893 && order == BigInt("0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF6C611070995AD10045841B09B761B893")) {
  ------------------
  |  Branch (405:7): [True: 0, False: 587]
  |  Branch (405:7): [True: 0, False: 587]
  |  Branch (405:33): [True: 0, False: 0]
  ------------------
  406|      0|      return OID{1, 2, 643, 7, 1, 2, 1, 1, 1};
  407|      0|   }
  408|       |
  409|    587|   if(low_bits == 0x1F10B275 && order == BigInt("0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF27E69532F48D89116FF22B8D4E0560609B4B38ABFAD2B85DCACDB1411F10B275")) {
  ------------------
  |  Branch (409:7): [True: 2, False: 585]
  |  Branch (409:7): [True: 0, False: 587]
  |  Branch (409:33): [True: 0, False: 2]
  ------------------
  410|      0|      return OID{1, 2, 643, 7, 1, 2, 1, 2, 1};
  411|      0|   }
  412|       |
  413|    587|   if(low_bits == 0xCA16B6B3 && order == BigInt("0x100000000000000000001B8FA16DFAB9ACA16B6B3")) {
  ------------------
  |  Branch (413:7): [True: 0, False: 587]
  |  Branch (413:7): [True: 0, False: 587]
  |  Branch (413:33): [True: 0, False: 0]
  ------------------
  414|      0|      return OID{1, 3, 132, 0, 9};
  415|      0|   }
  416|       |
  417|    587|   if(low_bits == 0xCA752257 && order == BigInt("0x100000000000000000001F4C8F927AED3CA752257")) {
  ------------------
  |  Branch (417:7): [True: 0, False: 587]
  |  Branch (417:7): [True: 0, False: 587]
  |  Branch (417:33): [True: 0, False: 0]
  ------------------
  418|      0|      return OID{1, 3, 132, 0, 8};
  419|      0|   }
  420|       |
  421|    587|   if(low_bits == 0xF3A1A16B && order == BigInt("0x100000000000000000000351EE786A818F3A1A16B")) {
  ------------------
  |  Branch (421:7): [True: 1, False: 586]
  |  Branch (421:7): [True: 0, False: 587]
  |  Branch (421:33): [True: 0, False: 1]
  ------------------
  422|      0|      return OID{1, 3, 132, 0, 30};
  423|      0|   }
  424|       |
  425|    587|   if(low_bits == 0x74DEFD8D && order == BigInt("0xFFFFFFFFFFFFFFFFFFFFFFFE26F2FC170F69466A74DEFD8D")) {
  ------------------
  |  Branch (425:7): [True: 2, False: 585]
  |  Branch (425:7): [True: 0, False: 587]
  |  Branch (425:33): [True: 0, False: 2]
  ------------------
  426|      0|      return OID{1, 3, 132, 0, 31};
  427|      0|   }
  428|       |
  429|    587|   if(low_bits == 0xB4D22831 && order == BigInt("0xFFFFFFFFFFFFFFFFFFFFFFFF99DEF836146BC9B1B4D22831")) {
  ------------------
  |  Branch (429:7): [True: 0, False: 587]
  |  Branch (429:7): [True: 0, False: 587]
  |  Branch (429:33): [True: 0, False: 0]
  ------------------
  430|      0|      return OID{1, 2, 840, 10045, 3, 1, 1};
  431|      0|   }
  432|       |
  433|    587|   if(low_bits == 0x769FB1F7 && order == BigInt("0x10000000000000000000000000001DCE8D2EC6184CAF0A971769FB1F7")) {
  ------------------
  |  Branch (433:7): [True: 2, False: 585]
  |  Branch (433:7): [True: 0, False: 587]
  |  Branch (433:33): [True: 0, False: 2]
  ------------------
  434|      0|      return OID{1, 3, 132, 0, 32};
  435|      0|   }
  436|       |
  437|    587|   if(low_bits == 0x5C5C2A3D && order == BigInt("0xFFFFFFFFFFFFFFFFFFFFFFFFFFFF16A2E0B8F03E13DD29455C5C2A3D")) {
  ------------------
  |  Branch (437:7): [True: 2, False: 585]
  |  Branch (437:7): [True: 0, False: 587]
  |  Branch (437:33): [True: 0, False: 2]
  ------------------
  438|      0|      return OID{1, 3, 132, 0, 33};
  439|      0|   }
  440|       |
  441|    587|   if(low_bits == 0xD0364141 && order == BigInt("0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141")) {
  ------------------
  |  Branch (441:7): [True: 1, False: 586]
  |  Branch (441:7): [True: 0, False: 587]
  |  Branch (441:33): [True: 0, False: 1]
  ------------------
  442|      0|      return OID{1, 3, 132, 0, 10};
  443|      0|   }
  444|       |
  445|    587|   if(low_bits == 0x39D54123 && order == BigInt("0xFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123")) {
  ------------------
  |  Branch (445:7): [True: 0, False: 587]
  |  Branch (445:7): [True: 0, False: 587]
  |  Branch (445:33): [True: 0, False: 0]
  ------------------
  446|      0|      return OID{1, 2, 156, 10197, 1, 301};
  447|      0|   }
  448|       |
  449|    587|   if(low_bits == 0x48D8DD31 && order == BigInt("0xFFFFFFFFFFFFFFFFFFFFFFFE5FB1A724DC80418648D8DD31")) {
  ------------------
  |  Branch (449:7): [True: 0, False: 587]
  |  Branch (449:7): [True: 0, False: 587]
  |  Branch (449:33): [True: 0, False: 0]
  ------------------
  450|      0|      return OID{1, 2, 840, 10045, 3, 1, 2};
  451|      0|   }
  452|       |
  453|    587|   if(low_bits == 0xF640EC13 && order == BigInt("0xFFFFFFFFFFFFFFFFFFFFFFFF7A62D031C83F4294F640EC13")) {
  ------------------
  |  Branch (453:7): [True: 1, False: 586]
  |  Branch (453:7): [True: 0, False: 587]
  |  Branch (453:33): [True: 0, False: 1]
  ------------------
  454|      0|      return OID{1, 2, 840, 10045, 3, 1, 3};
  455|      0|   }
  456|       |
  457|    587|   if(low_bits == 0x88909D0B && order == BigInt("0x7FFFFFFFFFFFFFFFFFFFFFFF7FFFFF9E5E9A9F5D9071FBD1522688909D0B")) {
  ------------------
  |  Branch (457:7): [True: 1, False: 586]
  |  Branch (457:7): [True: 0, False: 587]
  |  Branch (457:33): [True: 0, False: 1]
  ------------------
  458|      0|      return OID{1, 2, 840, 10045, 3, 1, 4};
  459|      0|   }
  460|       |
  461|    587|   if(low_bits == 0xBC582063 && order == BigInt("0x7FFFFFFFFFFFFFFFFFFFFFFF800000CFA7E8594377D414C03821BC582063")) {
  ------------------
  |  Branch (461:7): [True: 1, False: 586]
  |  Branch (461:7): [True: 0, False: 587]
  |  Branch (461:33): [True: 0, False: 1]
  ------------------
  462|      0|      return OID{1, 2, 840, 10045, 3, 1, 5};
  463|      0|   }
  464|       |
  465|    587|   if(low_bits == 0x46526551 && order == BigInt("0x7FFFFFFFFFFFFFFFFFFFFFFF7FFFFF975DEB41B3A6057C3C432146526551")) {
  ------------------
  |  Branch (465:7): [True: 1, False: 586]
  |  Branch (465:7): [True: 0, False: 587]
  |  Branch (465:33): [True: 0, False: 1]
  ------------------
  466|      0|      return OID{1, 2, 840, 10045, 3, 1, 6};
  467|      0|   }
  468|       |
  469|    587|   if(low_bits == 0x0433555D && order == BigInt("0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5B3CA4FB94E7831B4FC258ED97D0BDC63B568B36607CD243CE153F390433555D")) {
  ------------------
  |  Branch (469:7): [True: 2, False: 585]
  |  Branch (469:7): [True: 0, False: 587]
  |  Branch (469:33): [True: 0, False: 2]
  ------------------
  470|      0|      return OID{1, 3, 6, 1, 4, 1, 25258, 4, 3};
  471|      0|   }
  472|       |
  473|    587|   return OID();
  474|    587|}

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

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

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

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

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

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

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

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

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

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

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

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

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

_ZN5Botan8PEM_Code6decodeERNS_10DataSourceERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE:
   62|    268|secure_vector<uint8_t> decode(DataSource& source, std::string& label) {
   63|    268|   const size_t RANDOM_CHAR_LIMIT = 8;
   64|       |
   65|    268|   label.clear();
   66|       |
   67|    268|   const std::string PEM_HEADER1 = "-----BEGIN ";
   68|    268|   const std::string PEM_HEADER2 = "-----";
   69|    268|   size_t position = 0;
   70|       |
   71|  7.80k|   while(position != PEM_HEADER1.length()) {
  ------------------
  |  Branch (71:10): [True: 7.57k, False: 227]
  ------------------
   72|  7.57k|      auto b = source.read_byte();
   73|       |
   74|  7.57k|      if(!b) {
  ------------------
  |  Branch (74:10): [True: 40, False: 7.53k]
  ------------------
   75|     40|         throw Decoding_Error("PEM: No PEM header found");
   76|     40|      }
   77|  7.53k|      if(static_cast<char>(*b) == PEM_HEADER1[position]) {
  ------------------
  |  Branch (77:10): [True: 2.82k, False: 4.70k]
  ------------------
   78|  2.82k|         ++position;
   79|  4.70k|      } else if(position >= RANDOM_CHAR_LIMIT) {
  ------------------
  |  Branch (79:17): [True: 1, False: 4.70k]
  ------------------
   80|      1|         throw Decoding_Error("PEM: Malformed PEM header");
   81|  4.70k|      } else {
   82|  4.70k|         position = 0;
   83|  4.70k|      }
   84|  7.53k|   }
   85|    227|   position = 0;
   86|  2.83k|   while(position != PEM_HEADER2.length()) {
  ------------------
  |  Branch (86:10): [True: 2.64k, False: 191]
  ------------------
   87|  2.64k|      auto b = source.read_byte();
   88|       |
   89|  2.64k|      if(!b) {
  ------------------
  |  Branch (89:10): [True: 33, False: 2.61k]
  ------------------
   90|     33|         throw Decoding_Error("PEM: No PEM header found");
   91|     33|      }
   92|  2.61k|      if(static_cast<char>(*b) == PEM_HEADER2[position]) {
  ------------------
  |  Branch (92:10): [True: 969, False: 1.64k]
  ------------------
   93|    969|         ++position;
   94|  1.64k|      } else if(position > 0) {
  ------------------
  |  Branch (94:17): [True: 2, False: 1.64k]
  ------------------
   95|      2|         throw Decoding_Error("PEM: Malformed PEM header");
   96|      2|      }
   97|       |
   98|  2.61k|      if(position == 0) {
  ------------------
  |  Branch (98:10): [True: 1.64k, False: 969]
  ------------------
   99|  1.64k|         if(label.size() >= 128) {
  ------------------
  |  Branch (99:13): [True: 1, False: 1.64k]
  ------------------
  100|      1|            throw Decoding_Error("PEM: Label too long");
  101|      1|         }
  102|  1.64k|         label += static_cast<char>(*b);
  103|  1.64k|      }
  104|  2.61k|   }
  105|       |
  106|    191|   std::vector<char> b64;
  107|       |
  108|    191|   const std::string PEM_TRAILER = fmt("-----END {}-----", label);
  109|    191|   position = 0;
  110|  70.1k|   while(position != PEM_TRAILER.length()) {
  ------------------
  |  Branch (110:10): [True: 70.0k, False: 129]
  ------------------
  111|  70.0k|      auto b = source.read_byte();
  112|       |
  113|  70.0k|      if(!b) {
  ------------------
  |  Branch (113:10): [True: 55, False: 69.9k]
  ------------------
  114|     55|         throw Decoding_Error("PEM: No PEM trailer found");
  115|     55|      }
  116|  69.9k|      if(static_cast<char>(*b) == PEM_TRAILER[position]) {
  ------------------
  |  Branch (116:10): [True: 2.55k, False: 67.4k]
  ------------------
  117|  2.55k|         ++position;
  118|  67.4k|      } else if(position > 0) {
  ------------------
  |  Branch (118:17): [True: 7, False: 67.4k]
  ------------------
  119|      7|         throw Decoding_Error("PEM: Malformed PEM trailer");
  120|      7|      }
  121|       |
  122|  69.9k|      if(position == 0) {
  ------------------
  |  Branch (122:10): [True: 67.4k, False: 2.55k]
  ------------------
  123|  67.4k|         b64.push_back(*b);
  124|  67.4k|      }
  125|  69.9k|   }
  126|       |
  127|    129|   return base64_decode(b64.data(), b64.size());
  128|    191|}
_ZN5Botan8PEM_Code7matchesERNS_10DataSourceENSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEm:
  143|  6.14k|bool matches(DataSource& source, std::string_view extra, size_t search_range) {
  144|  6.14k|   const std::string PEM_HEADER = fmt("-----BEGIN {}", extra);
  145|       |
  146|  6.14k|   secure_vector<uint8_t> search_buf(search_range);
  147|  6.14k|   const size_t got = source.peek(search_buf.data(), search_buf.size(), 0);
  148|       |
  149|  6.14k|   if(got < PEM_HEADER.length()) {
  ------------------
  |  Branch (149:7): [True: 486, False: 5.66k]
  ------------------
  150|    486|      return false;
  151|    486|   }
  152|       |
  153|  5.66k|   size_t index = 0;
  154|       |
  155|   724k|   for(size_t j = 0; j != got; ++j) {
  ------------------
  |  Branch (155:22): [True: 718k, False: 5.65k]
  ------------------
  156|   718k|      if(static_cast<char>(search_buf[j]) == PEM_HEADER[index]) {
  ------------------
  |  Branch (156:10): [True: 2.90k, False: 715k]
  ------------------
  157|  2.90k|         ++index;
  158|   715k|      } else {
  159|   715k|         index = 0;
  160|   715k|      }
  161|       |
  162|   718k|      if(index == PEM_HEADER.size()) {
  ------------------
  |  Branch (162:10): [True: 4, False: 718k]
  ------------------
  163|      4|         return true;
  164|      4|      }
  165|   718k|   }
  166|       |
  167|  5.65k|   return false;
  168|  5.66k|}

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

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

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

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

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

_ZN5Botan14if_work_factorEm:
   37|    223|size_t if_work_factor(size_t bits) {
   38|    223|   if(bits < 512) {
  ------------------
  |  Branch (38:7): [True: 110, False: 113]
  ------------------
   39|    110|      return 0;
   40|    110|   }
   41|       |
   42|       |   // RFC 3766 estimates k at .02 and o(1) to be effectively zero for sizes of interest
   43|       |
   44|    113|   const double log2_k = -5.6438;  // log2(.02)
   45|    113|   return nfs_workfactor(bits, log2_k);
   46|    223|}
_ZN5Botan14dl_work_factorEm:
   48|    223|size_t dl_work_factor(size_t bits) {
   49|       |   // Lacking better estimates...
   50|    223|   return if_work_factor(bits);
   51|    223|}
_ZN5Botan16dl_exponent_sizeEm:
   53|    223|size_t dl_exponent_size(size_t p_bits) {
   54|    223|   BOTAN_ARG_CHECK(p_bits > 1, "Invalid prime length");
  ------------------
  |  |   35|    223|   do {                                                          \
  |  |   36|    223|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    223|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 223]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    223|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 223]
  |  |  ------------------
  ------------------
   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|    223|   if(p_bits <= 256) {
  ------------------
  |  Branch (69:7): [True: 7, False: 216]
  ------------------
   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|    216|   } else if(p_bits <= 1024) {
  ------------------
  |  Branch (77:14): [True: 216, 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|    216|      return 192;
   84|    216|   } 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|    223|}
workfactor.cpp:_ZN5Botan12_GLOBAL__N_114nfs_workfactorEmd:
   22|    113|size_t nfs_workfactor(size_t bits, double log2_k) {
   23|       |   // approximates natural logarithm of an integer of given bitsize
   24|    113|   const double log_p = static_cast<double>(bits) / std::numbers::log2e;
   25|       |
   26|    113|   const double log_log_p = std::log(log_p);
   27|       |
   28|       |   // RFC 3766: k * e^((1.92 + o(1)) * cubrt(ln(n) * (ln(ln(n)))^2))
   29|    113|   const double est = 1.92 * std::pow(log_p * log_log_p * log_log_p, 1.0 / 3.0);
   30|       |
   31|       |   // return log2 of the workfactor
   32|    113|   return static_cast<size_t>(log2_k + std::numbers::log2e * est);
   33|    113|}

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

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

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

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

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

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

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

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

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

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

_ZN5Botan9SHAKE_XOFC2Em:
   17|  3.75k|      m_keccak({.capacity_bits = capacity, .padding = KeccakPadding::shake()}), m_output_generated(false) {
   18|  3.75k|   BOTAN_ASSERT_NOMSG(capacity == 256 || capacity == 512);
  ------------------
  |  |   84|  3.75k|   do {                                                                     \
  |  |   85|  3.75k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   86|  4.79k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (86:12): [True: 2.71k, False: 1.03k]
  |  |  |  Branch (86:12): [True: 1.03k, False: 0]
  |  |  ------------------
  |  |   87|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   88|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   89|      0|      }                                                                     \
  |  |   90|  3.75k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (90:12): [Folded, False: 3.75k]
  |  |  ------------------
  ------------------
   19|  3.75k|}
_ZN5Botan9SHAKE_XOF5resetEv:
   21|    477|void SHAKE_XOF::reset() {
   22|    477|   m_keccak.clear();
   23|    477|   m_output_generated = false;
   24|    477|}
_ZN5Botan9SHAKE_XOF8add_dataENSt3__14spanIKhLm18446744073709551615EEE:
   26|  8.27k|void SHAKE_XOF::add_data(std::span<const uint8_t> input) {
   27|  8.27k|   BOTAN_STATE_CHECK(!m_output_generated);
  ------------------
  |  |   51|  8.27k|   do {                                                         \
  |  |   52|  8.27k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|  8.27k|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 8.27k]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|  8.27k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 8.27k]
  |  |  ------------------
  ------------------
   28|  8.27k|   m_keccak.absorb(input);
   29|  8.27k|}
_ZN5Botan9SHAKE_XOF14generate_bytesENSt3__14spanIhLm18446744073709551615EEE:
   31|   892k|void SHAKE_XOF::generate_bytes(std::span<uint8_t> output) {
   32|   892k|   if(!m_output_generated) {
  ------------------
  |  Branch (32:7): [True: 4.17k, False: 887k]
  ------------------
   33|  4.17k|      m_output_generated = true;
   34|  4.17k|      m_keccak.finish();
   35|  4.17k|   }
   36|       |
   37|   892k|   m_keccak.squeeze(output);
   38|   892k|}

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

