_ZNK5Botan7AES_1284nameEv:
   28|      3|      std::string name() const override { return "AES-128"; }
_ZNK5Botan7AES_12810new_objectEv:
   30|     38|      std::unique_ptr<BlockCipher> new_object() const override { return std::make_unique<AES_128>(); }
_ZNK5Botan7AES_1924nameEv:
   74|     42|      std::string name() const override { return "AES-192"; }
_ZNK5Botan7AES_19210new_objectEv:
   76|     30|      std::unique_ptr<BlockCipher> new_object() const override { return std::make_unique<AES_192>(); }
_ZNK5Botan7AES_2564nameEv:
  119|      4|      std::string name() const override { return "AES-256"; }
_ZNK5Botan7AES_25610new_objectEv:
  121|     46|      std::unique_ptr<BlockCipher> new_object() const override { return std::make_unique<AES_256>(); }

_ZN5Botan15AlignmentBufferIhLm128ELNS_25AlignmentBufferFinalBlockE1EEC2Ev:
   62|  1.15k|      AlignmentBuffer() = default;
_ZN5Botan15AlignmentBufferIhLm128ELNS_25AlignmentBufferFinalBlockE1EED2Ev:
   64|  1.15k|      ~AlignmentBuffer() { secure_zeroize_buffer(m_buffer.data(), sizeof(T) * m_buffer.size()); }
_ZN5Botan15AlignmentBufferIhLm128ELNS_25AlignmentBufferFinalBlockE1EE5clearEv:
   71|   551k|      void clear() {
   72|   551k|         zeroize_buffer(m_buffer.data(), m_buffer.size());
   73|   551k|         m_position = 0;
   74|   551k|      }
_ZN5Botan15AlignmentBufferIhLm128ELNS_25AlignmentBufferFinalBlockE1EE6appendENSt3__14spanIKhLm18446744073709551615EEE:
   90|   687k|      void append(std::span<const T> elements) {
   91|   687k|         BOTAN_ASSERT_NOMSG(elements.size() <= elements_until_alignment());
  ------------------
  |  |   77|   687k|   do {                                                                     \
  |  |   78|   687k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|   687k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 687k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|   687k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 687k]
  |  |  ------------------
  ------------------
   92|   687k|         std::copy(elements.begin(), elements.end(), m_buffer.begin() + m_position);
   93|   687k|         m_position += elements.size();
   94|   687k|      }
_ZNK5Botan15AlignmentBufferIhLm128ELNS_25AlignmentBufferFinalBlockE1EE24elements_until_alignmentEv:
  221|  1.23M|      size_t elements_until_alignment() const { return m_buffer.size() - m_position; }
_ZN5Botan15AlignmentBufferIhLm128ELNS_25AlignmentBufferFinalBlockE1EE21handle_unaligned_dataERNS_12BufferSlicerE:
  166|   687k|      [[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|   687k|         const size_t defer = (defers_final_block()) ? 1 : 0;
  ------------------
  |  Branch (170:31): [True: 687k, False: 0]
  ------------------
  171|       |
  172|   687k|         if(in_alignment() && slicer.remaining() >= m_buffer.size() + defer) {
  ------------------
  |  Branch (172:13): [True: 554k, False: 133k]
  |  Branch (172:31): [True: 0, False: 554k]
  ------------------
  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|   687k|         const auto elements_to_consume = std::min(m_buffer.size() - m_position, slicer.remaining());
  182|   687k|         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|   687k|         if(ready_to_consume() && (!defers_final_block() || !slicer.empty())) {
  ------------------
  |  Branch (188:13): [True: 4.60k, False: 683k]
  |  Branch (188:36): [True: 0, False: 4.60k]
  |  Branch (188:61): [True: 4.60k, False: 0]
  ------------------
  189|  4.60k|            return consume();
  190|   683k|         } else {
  191|   683k|            return std::nullopt;
  192|   683k|         }
  193|   687k|      }
_ZNK5Botan15AlignmentBufferIhLm128ELNS_25AlignmentBufferFinalBlockE1EE18defers_final_blockEv:
  233|   697k|      constexpr bool defers_final_block() const {
  234|   697k|         return FINAL_BLOCK_STRATEGY == AlignmentBufferFinalBlock::must_be_deferred;
  235|   697k|      }
_ZNK5Botan15AlignmentBufferIhLm128ELNS_25AlignmentBufferFinalBlockE1EE16ready_to_consumeEv:
  231|  1.79M|      bool ready_to_consume() const { return m_position == m_buffer.size(); }
_ZNK5Botan15AlignmentBufferIhLm128ELNS_25AlignmentBufferFinalBlockE1EE12in_alignmentEv:
  226|  1.38M|      bool in_alignment() const { return m_position == 0; }
_ZNK5Botan15AlignmentBufferIhLm128ELNS_25AlignmentBufferFinalBlockE1EE23aligned_data_to_processERNS_12BufferSlicerE:
  126|  4.60k|      [[nodiscard]] std::tuple<std::span<const uint8_t>, size_t> aligned_data_to_process(BufferSlicer& slicer) const {
  127|  4.60k|         BOTAN_ASSERT_NOMSG(in_alignment());
  ------------------
  |  |   77|  4.60k|   do {                                                                     \
  |  |   78|  4.60k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  4.60k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 4.60k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  4.60k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 4.60k]
  |  |  ------------------
  ------------------
  128|       |
  129|       |         // When the final block is to be deferred, the last block must not be
  130|       |         // selected for processing if there is no (unaligned) extra input data.
  131|  4.60k|         const size_t defer = (defers_final_block()) ? 1 : 0;
  ------------------
  |  Branch (131:31): [True: 4.60k, False: 0]
  ------------------
  132|  4.60k|         const size_t full_blocks_to_process = (slicer.remaining() - defer) / m_buffer.size();
  133|  4.60k|         return {slicer.take(full_blocks_to_process * m_buffer.size()), full_blocks_to_process};
  134|  4.60k|      }
_ZNK5Botan15AlignmentBufferIhLm128ELNS_25AlignmentBufferFinalBlockE1EE18elements_in_bufferEv:
  219|   550k|      size_t elements_in_buffer() const { return m_position; }
_ZN5Botan15AlignmentBufferIhLm128ELNS_25AlignmentBufferFinalBlockE1EE18fill_up_with_zerosEv:
   79|   550k|      void fill_up_with_zeros() {
   80|   550k|         if(!ready_to_consume()) {
  ------------------
  |  Branch (80:13): [True: 550k, False: 0]
  ------------------
   81|   550k|            zeroize_buffer(&m_buffer[m_position], elements_until_alignment());
   82|   550k|            m_position = m_buffer.size();
   83|   550k|         }
   84|   550k|      }
_ZN5Botan15AlignmentBufferIhLm128ELNS_25AlignmentBufferFinalBlockE1EE7consumeEv:
  200|   554k|      [[nodiscard]] std::span<const T> consume() {
  201|   554k|         BOTAN_ASSERT_NOMSG(ready_to_consume());
  ------------------
  |  |   77|   554k|   do {                                                                     \
  |  |   78|   554k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|   554k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 554k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|   554k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 554k]
  |  |  ------------------
  ------------------
  202|   554k|         m_position = 0;
  203|   554k|         return m_buffer;
  204|   554k|      }
_ZN5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EEC2Ev:
   62|   126k|      AlignmentBuffer() = default;
_ZN5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE5clearEv:
   71|   219k|      void clear() {
   72|   219k|         zeroize_buffer(m_buffer.data(), m_buffer.size());
   73|   219k|         m_position = 0;
   74|   219k|      }
_ZN5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EED2Ev:
   64|   126k|      ~AlignmentBuffer() { secure_zeroize_buffer(m_buffer.data(), sizeof(T) * m_buffer.size()); }
_ZN5Botan15AlignmentBufferIhLm128ELNS_25AlignmentBufferFinalBlockE0EEC2Ev:
   62|  77.3k|      AlignmentBuffer() = default;
_ZN5Botan15AlignmentBufferIhLm128ELNS_25AlignmentBufferFinalBlockE0EE5clearEv:
   71|   390k|      void clear() {
   72|   390k|         zeroize_buffer(m_buffer.data(), m_buffer.size());
   73|   390k|         m_position = 0;
   74|   390k|      }
_ZN5Botan15AlignmentBufferIhLm128ELNS_25AlignmentBufferFinalBlockE0EED2Ev:
   64|  77.3k|      ~AlignmentBuffer() { secure_zeroize_buffer(m_buffer.data(), sizeof(T) * m_buffer.size()); }
_ZN5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE21handle_unaligned_dataERNS_12BufferSlicerE:
  166|   329M|      [[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|   329M|         const size_t defer = (defers_final_block()) ? 1 : 0;
  ------------------
  |  Branch (170:31): [True: 0, False: 329M]
  ------------------
  171|       |
  172|   329M|         if(in_alignment() && slicer.remaining() >= m_buffer.size() + defer) {
  ------------------
  |  Branch (172:13): [True: 48.6M, False: 280M]
  |  Branch (172:31): [True: 922k, False: 47.7M]
  ------------------
  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|   922k|            return std::nullopt;
  177|   922k|         }
  178|       |
  179|       |         // Fill the buffer with as much input data as needed to reach alignment
  180|       |         // or until the input source is depleted.
  181|   328M|         const auto elements_to_consume = std::min(m_buffer.size() - m_position, slicer.remaining());
  182|   328M|         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|   328M|         if(ready_to_consume() && (!defers_final_block() || !slicer.empty())) {
  ------------------
  |  Branch (188:13): [True: 47.6M, False: 281M]
  |  Branch (188:36): [True: 47.6M, False: 0]
  |  Branch (188:61): [True: 0, False: 0]
  ------------------
  189|  47.6M|            return consume();
  190|   281M|         } else {
  191|   281M|            return std::nullopt;
  192|   281M|         }
  193|   328M|      }
_ZNK5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE18defers_final_blockEv:
  233|   425M|      constexpr bool defers_final_block() const {
  234|   425M|         return FINAL_BLOCK_STRATEGY == AlignmentBufferFinalBlock::must_be_deferred;
  235|   425M|      }
_ZN5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE6appendENSt3__14spanIKhLm18446744073709551615EEE:
   90|   328M|      void append(std::span<const T> elements) {
   91|   328M|         BOTAN_ASSERT_NOMSG(elements.size() <= elements_until_alignment());
  ------------------
  |  |   77|   328M|   do {                                                                     \
  |  |   78|   328M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|   328M|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 328M]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|   328M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 328M]
  |  |  ------------------
  ------------------
   92|   328M|         std::copy(elements.begin(), elements.end(), m_buffer.begin() + m_position);
   93|   328M|         m_position += elements.size();
   94|   328M|      }
_ZNK5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE24elements_until_alignmentEv:
  221|   329M|      size_t elements_until_alignment() const { return m_buffer.size() - m_position; }
_ZNK5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE16ready_to_consumeEv:
  231|   376M|      bool ready_to_consume() const { return m_position == m_buffer.size(); }
_ZN5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE7consumeEv:
  200|  47.7M|      [[nodiscard]] std::span<const T> consume() {
  201|  47.7M|         BOTAN_ASSERT_NOMSG(ready_to_consume());
  ------------------
  |  |   77|  47.7M|   do {                                                                     \
  |  |   78|  47.7M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  47.7M|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 47.7M]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  47.7M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 47.7M]
  |  |  ------------------
  ------------------
  202|  47.7M|         m_position = 0;
  203|  47.7M|         return m_buffer;
  204|  47.7M|      }
_ZNK5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE12in_alignmentEv:
  226|   707M|      bool in_alignment() const { return m_position == 0; }
_ZNK5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE23aligned_data_to_processERNS_12BufferSlicerE:
  126|  48.6M|      [[nodiscard]] std::tuple<std::span<const uint8_t>, size_t> aligned_data_to_process(BufferSlicer& slicer) const {
  127|  48.6M|         BOTAN_ASSERT_NOMSG(in_alignment());
  ------------------
  |  |   77|  48.6M|   do {                                                                     \
  |  |   78|  48.6M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  48.6M|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 48.6M]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  48.6M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 48.6M]
  |  |  ------------------
  ------------------
  128|       |
  129|       |         // When the final block is to be deferred, the last block must not be
  130|       |         // selected for processing if there is no (unaligned) extra input data.
  131|  48.6M|         const size_t defer = (defers_final_block()) ? 1 : 0;
  ------------------
  |  Branch (131:31): [True: 0, False: 48.6M]
  ------------------
  132|  48.6M|         const size_t full_blocks_to_process = (slicer.remaining() - defer) / m_buffer.size();
  133|  48.6M|         return {slicer.take(full_blocks_to_process * m_buffer.size()), full_blocks_to_process};
  134|  48.6M|      }
_ZN5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE18fill_up_with_zerosEv:
   79|   107k|      void fill_up_with_zeros() {
   80|   107k|         if(!ready_to_consume()) {
  ------------------
  |  Branch (80:13): [True: 99.6k, False: 8.16k]
  ------------------
   81|  99.6k|            zeroize_buffer(&m_buffer[m_position], elements_until_alignment());
   82|  99.6k|            m_position = m_buffer.size();
   83|  99.6k|         }
   84|   107k|      }
_ZN5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE20directly_modify_lastEm:
  113|  92.6k|      std::span<T> directly_modify_last(size_t elements) {
  114|  92.6k|         BOTAN_ASSERT_NOMSG(size() >= elements);
  ------------------
  |  |   77|  92.6k|   do {                                                                     \
  |  |   78|  92.6k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  92.6k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 92.6k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  92.6k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 92.6k]
  |  |  ------------------
  ------------------
  115|  92.6k|         return std::span(m_buffer).last(elements);
  116|  92.6k|      }
_ZNK5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE4sizeEv:
  217|  92.6k|      constexpr size_t size() const { return m_buffer.size(); }
_ZN5Botan15AlignmentBufferIhLm128ELNS_25AlignmentBufferFinalBlockE0EE21handle_unaligned_dataERNS_12BufferSlicerE:
  166|  65.3M|      [[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|  65.3M|         const size_t defer = (defers_final_block()) ? 1 : 0;
  ------------------
  |  Branch (170:31): [True: 0, False: 65.3M]
  ------------------
  171|       |
  172|  65.3M|         if(in_alignment() && slicer.remaining() >= m_buffer.size() + defer) {
  ------------------
  |  Branch (172:13): [True: 4.53M, False: 60.7M]
  |  Branch (172:31): [True: 285k, False: 4.25M]
  ------------------
  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|   285k|            return std::nullopt;
  177|   285k|         }
  178|       |
  179|       |         // Fill the buffer with as much input data as needed to reach alignment
  180|       |         // or until the input source is depleted.
  181|  65.0M|         const auto elements_to_consume = std::min(m_buffer.size() - m_position, slicer.remaining());
  182|  65.0M|         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|  65.0M|         if(ready_to_consume() && (!defers_final_block() || !slicer.empty())) {
  ------------------
  |  Branch (188:13): [True: 4.00M, False: 61.0M]
  |  Branch (188:36): [True: 4.00M, False: 0]
  |  Branch (188:61): [True: 0, False: 0]
  ------------------
  189|  4.00M|            return consume();
  190|  61.0M|         } else {
  191|  61.0M|            return std::nullopt;
  192|  61.0M|         }
  193|  65.0M|      }
_ZNK5Botan15AlignmentBufferIhLm128ELNS_25AlignmentBufferFinalBlockE0EE18defers_final_blockEv:
  233|  73.6M|      constexpr bool defers_final_block() const {
  234|  73.6M|         return FINAL_BLOCK_STRATEGY == AlignmentBufferFinalBlock::must_be_deferred;
  235|  73.6M|      }
_ZN5Botan15AlignmentBufferIhLm128ELNS_25AlignmentBufferFinalBlockE0EE6appendENSt3__14spanIKhLm18446744073709551615EEE:
   90|  65.2M|      void append(std::span<const T> elements) {
   91|  65.2M|         BOTAN_ASSERT_NOMSG(elements.size() <= elements_until_alignment());
  ------------------
  |  |   77|  65.2M|   do {                                                                     \
  |  |   78|  65.2M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  65.2M|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 65.2M]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  65.2M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 65.2M]
  |  |  ------------------
  ------------------
   92|  65.2M|         std::copy(elements.begin(), elements.end(), m_buffer.begin() + m_position);
   93|  65.2M|         m_position += elements.size();
   94|  65.2M|      }
_ZNK5Botan15AlignmentBufferIhLm128ELNS_25AlignmentBufferFinalBlockE0EE24elements_until_alignmentEv:
  221|  66.0M|      size_t elements_until_alignment() const { return m_buffer.size() - m_position; }
_ZNK5Botan15AlignmentBufferIhLm128ELNS_25AlignmentBufferFinalBlockE0EE16ready_to_consumeEv:
  231|  69.7M|      bool ready_to_consume() const { return m_position == m_buffer.size(); }
_ZN5Botan15AlignmentBufferIhLm128ELNS_25AlignmentBufferFinalBlockE0EE7consumeEv:
  200|  4.25M|      [[nodiscard]] std::span<const T> consume() {
  201|  4.25M|         BOTAN_ASSERT_NOMSG(ready_to_consume());
  ------------------
  |  |   77|  4.25M|   do {                                                                     \
  |  |   78|  4.25M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  4.25M|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 4.25M]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  4.25M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 4.25M]
  |  |  ------------------
  ------------------
  202|  4.25M|         m_position = 0;
  203|  4.25M|         return m_buffer;
  204|  4.25M|      }
_ZNK5Botan15AlignmentBufferIhLm128ELNS_25AlignmentBufferFinalBlockE0EE12in_alignmentEv:
  226|   134M|      bool in_alignment() const { return m_position == 0; }
_ZNK5Botan15AlignmentBufferIhLm128ELNS_25AlignmentBufferFinalBlockE0EE23aligned_data_to_processERNS_12BufferSlicerE:
  126|  4.28M|      [[nodiscard]] std::tuple<std::span<const uint8_t>, size_t> aligned_data_to_process(BufferSlicer& slicer) const {
  127|  4.28M|         BOTAN_ASSERT_NOMSG(in_alignment());
  ------------------
  |  |   77|  4.28M|   do {                                                                     \
  |  |   78|  4.28M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  4.28M|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 4.28M]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  4.28M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 4.28M]
  |  |  ------------------
  ------------------
  128|       |
  129|       |         // When the final block is to be deferred, the last block must not be
  130|       |         // selected for processing if there is no (unaligned) extra input data.
  131|  4.28M|         const size_t defer = (defers_final_block()) ? 1 : 0;
  ------------------
  |  Branch (131:31): [True: 0, False: 4.28M]
  ------------------
  132|  4.28M|         const size_t full_blocks_to_process = (slicer.remaining() - defer) / m_buffer.size();
  133|  4.28M|         return {slicer.take(full_blocks_to_process * m_buffer.size()), full_blocks_to_process};
  134|  4.28M|      }
_ZN5Botan15AlignmentBufferIhLm128ELNS_25AlignmentBufferFinalBlockE0EE18fill_up_with_zerosEv:
   79|   250k|      void fill_up_with_zeros() {
   80|   250k|         if(!ready_to_consume()) {
  ------------------
  |  Branch (80:13): [True: 250k, False: 1]
  ------------------
   81|   250k|            zeroize_buffer(&m_buffer[m_position], elements_until_alignment());
   82|   250k|            m_position = m_buffer.size();
   83|   250k|         }
   84|   250k|      }
_ZN5Botan15AlignmentBufferIhLm128ELNS_25AlignmentBufferFinalBlockE0EE20directly_modify_lastEm:
  113|   250k|      std::span<T> directly_modify_last(size_t elements) {
  114|   250k|         BOTAN_ASSERT_NOMSG(size() >= elements);
  ------------------
  |  |   77|   250k|   do {                                                                     \
  |  |   78|   250k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|   250k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 250k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|   250k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 250k]
  |  |  ------------------
  ------------------
  115|   250k|         return std::span(m_buffer).last(elements);
  116|   250k|      }
_ZNK5Botan15AlignmentBufferIhLm128ELNS_25AlignmentBufferFinalBlockE0EE4sizeEv:
  217|   250k|      constexpr size_t size() const { return m_buffer.size(); }
_ZN5Botan15AlignmentBufferIhLm16ELNS_25AlignmentBufferFinalBlockE0EED2Ev:
   64|    136|      ~AlignmentBuffer() { secure_zeroize_buffer(m_buffer.data(), sizeof(T) * m_buffer.size()); }
_ZN5Botan15AlignmentBufferIhLm16ELNS_25AlignmentBufferFinalBlockE0EEC2Ev:
   62|    136|      AlignmentBuffer() = default;
_ZN5Botan15AlignmentBufferIhLm16ELNS_25AlignmentBufferFinalBlockE0EE5clearEv:
   71|    278|      void clear() {
   72|    278|         zeroize_buffer(m_buffer.data(), m_buffer.size());
   73|    278|         m_position = 0;
   74|    278|      }
_ZN5Botan15AlignmentBufferIhLm16ELNS_25AlignmentBufferFinalBlockE0EE21handle_unaligned_dataERNS_12BufferSlicerE:
  166|  10.5k|      [[nodiscard]] std::optional<std::span<const T>> handle_unaligned_data(BufferSlicer& slicer) {
  167|       |         // When the final block is to be deferred, we would need to store and
  168|       |         // hold a buffer that contains exactly one block until more data is
  169|       |         // passed or it is explicitly consumed.
  170|  10.5k|         const size_t defer = (defers_final_block()) ? 1 : 0;
  ------------------
  |  Branch (170:31): [True: 0, False: 10.5k]
  ------------------
  171|       |
  172|  10.5k|         if(in_alignment() && slicer.remaining() >= m_buffer.size() + defer) {
  ------------------
  |  Branch (172:13): [True: 10.5k, False: 0]
  |  Branch (172:31): [True: 10.3k, False: 237]
  ------------------
  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|  10.3k|            return std::nullopt;
  177|  10.3k|         }
  178|       |
  179|       |         // Fill the buffer with as much input data as needed to reach alignment
  180|       |         // or until the input source is depleted.
  181|    237|         const auto elements_to_consume = std::min(m_buffer.size() - m_position, slicer.remaining());
  182|    237|         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|    237|         if(ready_to_consume() && (!defers_final_block() || !slicer.empty())) {
  ------------------
  |  Branch (188:13): [True: 0, False: 237]
  |  Branch (188:36): [True: 0, False: 0]
  |  Branch (188:61): [True: 0, False: 0]
  ------------------
  189|      0|            return consume();
  190|    237|         } else {
  191|    237|            return std::nullopt;
  192|    237|         }
  193|    237|      }
_ZNK5Botan15AlignmentBufferIhLm16ELNS_25AlignmentBufferFinalBlockE0EE18defers_final_blockEv:
  233|  20.9k|      constexpr bool defers_final_block() const {
  234|  20.9k|         return FINAL_BLOCK_STRATEGY == AlignmentBufferFinalBlock::must_be_deferred;
  235|  20.9k|      }
_ZN5Botan15AlignmentBufferIhLm16ELNS_25AlignmentBufferFinalBlockE0EE6appendENSt3__14spanIKhLm18446744073709551615EEE:
   90|    237|      void append(std::span<const T> elements) {
   91|    237|         BOTAN_ASSERT_NOMSG(elements.size() <= elements_until_alignment());
  ------------------
  |  |   77|    237|   do {                                                                     \
  |  |   78|    237|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|    237|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 237]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|    237|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 237]
  |  |  ------------------
  ------------------
   92|    237|         std::copy(elements.begin(), elements.end(), m_buffer.begin() + m_position);
   93|    237|         m_position += elements.size();
   94|    237|      }
_ZNK5Botan15AlignmentBufferIhLm16ELNS_25AlignmentBufferFinalBlockE0EE24elements_until_alignmentEv:
  221|    474|      size_t elements_until_alignment() const { return m_buffer.size() - m_position; }
_ZNK5Botan15AlignmentBufferIhLm16ELNS_25AlignmentBufferFinalBlockE0EE16ready_to_consumeEv:
  231|    711|      bool ready_to_consume() const { return m_position == m_buffer.size(); }
_ZNK5Botan15AlignmentBufferIhLm16ELNS_25AlignmentBufferFinalBlockE0EE12in_alignmentEv:
  226|  31.9k|      bool in_alignment() const { return m_position == 0; }
_ZNK5Botan15AlignmentBufferIhLm16ELNS_25AlignmentBufferFinalBlockE0EE23aligned_data_to_processERNS_12BufferSlicerE:
  126|  10.3k|      [[nodiscard]] std::tuple<std::span<const uint8_t>, size_t> aligned_data_to_process(BufferSlicer& slicer) const {
  127|  10.3k|         BOTAN_ASSERT_NOMSG(in_alignment());
  ------------------
  |  |   77|  10.3k|   do {                                                                     \
  |  |   78|  10.3k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  10.3k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 10.3k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  10.3k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 10.3k]
  |  |  ------------------
  ------------------
  128|       |
  129|       |         // When the final block is to be deferred, the last block must not be
  130|       |         // selected for processing if there is no (unaligned) extra input data.
  131|  10.3k|         const size_t defer = (defers_final_block()) ? 1 : 0;
  ------------------
  |  Branch (131:31): [True: 0, False: 10.3k]
  ------------------
  132|  10.3k|         const size_t full_blocks_to_process = (slicer.remaining() - defer) / m_buffer.size();
  133|  10.3k|         return {slicer.take(full_blocks_to_process * m_buffer.size()), full_blocks_to_process};
  134|  10.3k|      }
_ZN5Botan15AlignmentBufferIhLm16ELNS_25AlignmentBufferFinalBlockE0EE18fill_up_with_zerosEv:
   79|    237|      void fill_up_with_zeros() {
   80|    237|         if(!ready_to_consume()) {
  ------------------
  |  Branch (80:13): [True: 237, False: 0]
  ------------------
   81|    237|            zeroize_buffer(&m_buffer[m_position], elements_until_alignment());
   82|    237|            m_position = m_buffer.size();
   83|    237|         }
   84|    237|      }
_ZN5Botan15AlignmentBufferIhLm16ELNS_25AlignmentBufferFinalBlockE0EE7consumeEv:
  200|    237|      [[nodiscard]] std::span<const T> consume() {
  201|    237|         BOTAN_ASSERT_NOMSG(ready_to_consume());
  ------------------
  |  |   77|    237|   do {                                                                     \
  |  |   78|    237|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|    237|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 237]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|    237|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 237]
  |  |  ------------------
  ------------------
  202|    237|         m_position = 0;
  203|    237|         return m_buffer;
  204|    237|      }

_ZNK5Botan17Barrett_Reduction4cubeERKNS_6BigIntE:
   66|      3|      BigInt cube(const BigInt& x) const { return this->multiply(x, this->square(x)); }

_ZN5Botan8high_bitITkNSt3__117unsigned_integralEjEEmT_:
   73|      6|BOTAN_FORCE_INLINE constexpr size_t high_bit(T n) {
   74|      6|   size_t hb = 0;
   75|       |
   76|     36|   for(size_t s = 8 * sizeof(T) / 2; s > 0; s /= 2) {
  ------------------
  |  Branch (76:38): [True: 30, False: 6]
  ------------------
   77|       |      // Equivalent to: ((n >> s) == 0) ? 0 : s;
   78|     30|      const size_t z = s - ct_if_is_zero_ret<T>(n >> s, s);
   79|     30|      hb += z;
   80|     30|      n >>= z;
   81|     30|   }
   82|       |
   83|      6|   hb += n;
   84|       |
   85|      6|   return hb;
   86|      6|}
_ZN5Botan17ct_if_is_zero_retITkNSt3__117unsigned_integralEjEEmT_m:
   45|     30|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|     30|   const T a = ~x & (x - 1);
   51|     30|   const size_t a_top = static_cast<size_t>(CT::value_barrier<T>(a >> (sizeof(T) * 8 - 1)));
   52|     30|   const size_t mask = static_cast<size_t>(0) - a_top;
   53|     30|   return mask & s;
   54|     30|}
_ZN5Botan9var_ctz64Em:
  180|  86.4k|BOTAN_FORCE_INLINE constexpr size_t var_ctz64(uint64_t n) {
  181|  86.4k|#if BOTAN_COMPILER_HAS_BUILTIN(__builtin_ctzll)
  182|  86.4k|   if(n == 0) {
  ------------------
  |  Branch (182:7): [True: 0, False: 86.4k]
  ------------------
  183|      0|      return 64;
  184|      0|   }
  185|  86.4k|   return __builtin_ctzll(n);
  186|       |#else
  187|       |   return ctz<uint64_t>(n);
  188|       |#endif
  189|  86.4k|}
_ZN5Botan17ct_if_is_zero_retITkNSt3__117unsigned_integralEmEEmT_m:
   45|   588k|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|   588k|   const T a = ~x & (x - 1);
   51|   588k|   const size_t a_top = static_cast<size_t>(CT::value_barrier<T>(a >> (sizeof(T) * 8 - 1)));
   52|   588k|   const size_t mask = static_cast<size_t>(0) - a_top;
   53|   588k|   return mask & s;
   54|   588k|}
_ZN5Botan9swap_bitsITkNSt3__117unsigned_integralEjEEvRT_S3_S2_m:
  202|  26.8M|BOTAN_FORCE_INLINE constexpr void swap_bits(T& x, T& y, T mask, size_t shift) {
  203|  26.8M|   const T swap = ((x >> shift) ^ y) & mask;
  204|  26.8M|   x ^= swap << shift;
  205|  26.8M|   y ^= swap;
  206|  26.8M|}
_ZN5Botan16bit_permute_stepITkNSt3__117unsigned_integralEmEET_S2_S2_m:
  192|  31.9M|BOTAN_FORCE_INLINE constexpr T bit_permute_step(T x, T mask, size_t shift) {
  193|       |   /*
  194|       |   See https://reflectionsonsecurity.wordpress.com/2014/05/11/efficient-bit-permutation-using-delta-swaps/
  195|       |   and http://programming.sirrida.de/bit_perm.html
  196|       |   */
  197|  31.9M|   const T swap = ((x >> shift) ^ x) & mask;
  198|  31.9M|   return (x ^ swap) ^ (swap << shift);
  199|  31.9M|}
_ZN5Botan17ct_expand_top_bitITkNSt3__117unsigned_integralEmEET_S2_:
   28|   106M|BOTAN_FORCE_INLINE constexpr T ct_expand_top_bit(T a) {
   29|   106M|   const T top = CT::value_barrier<T>(a >> (sizeof(T) * 8 - 1));
   30|   106M|   return static_cast<T>(0) - top;
   31|   106M|}
_ZN5Botan10ct_is_zeroITkNSt3__117unsigned_integralEmEET_S2_:
   37|  91.7M|BOTAN_FORCE_INLINE constexpr T ct_is_zero(T x) {
   38|  91.7M|   return ct_expand_top_bit<T>(~x & (x - 1));
   39|  91.7M|}
_ZN5Botan6chooseITkNSt3__117unsigned_integralEmEET_S2_S2_S2_:
  216|  1.13G|BOTAN_FORCE_INLINE constexpr T choose(T mask, T a, T b) {
  217|       |   //return (mask & a) | (~mask & b);
  218|  1.13G|   return (b ^ (mask & (a ^ b)));
  219|  1.13G|}
_ZN5Botan9swap_bitsITkNSt3__117unsigned_integralEmEEvRT_S3_S2_m:
  202|  33.2M|BOTAN_FORCE_INLINE constexpr void swap_bits(T& x, T& y, T mask, size_t shift) {
  203|  33.2M|   const T swap = ((x >> shift) ^ y) & mask;
  204|  33.2M|   x ^= swap << shift;
  205|  33.2M|   y ^= swap;
  206|  33.2M|}
_ZN5Botan10ct_is_zeroITkNSt3__117unsigned_integralEjEET_S2_:
   37|  5.69M|BOTAN_FORCE_INLINE constexpr T ct_is_zero(T x) {
   38|  5.69M|   return ct_expand_top_bit<T>(~x & (x - 1));
   39|  5.69M|}
_ZN5Botan17ct_expand_top_bitITkNSt3__117unsigned_integralEjEET_S2_:
   28|  5.69M|BOTAN_FORCE_INLINE constexpr T ct_expand_top_bit(T a) {
   29|  5.69M|   const T top = CT::value_barrier<T>(a >> (sizeof(T) * 8 - 1));
   30|  5.69M|   return static_cast<T>(0) - top;
   31|  5.69M|}
_ZN5Botan6chooseITkNSt3__117unsigned_integralEtEET_S2_S2_S2_:
  216|  4.36M|BOTAN_FORCE_INLINE constexpr T choose(T mask, T a, T b) {
  217|       |   //return (mask & a) | (~mask & b);
  218|  4.36M|   return (b ^ (mask & (a ^ b)));
  219|  4.36M|}
_ZN5Botan10ct_is_zeroITkNSt3__117unsigned_integralEhEET_S2_:
   37|  29.3M|BOTAN_FORCE_INLINE constexpr T ct_is_zero(T x) {
   38|  29.3M|   return ct_expand_top_bit<T>(~x & (x - 1));
   39|  29.3M|}
_ZN5Botan17ct_expand_top_bitITkNSt3__117unsigned_integralEhEET_S2_:
   28|  29.3M|BOTAN_FORCE_INLINE constexpr T ct_expand_top_bit(T a) {
   29|  29.3M|   const T top = CT::value_barrier<T>(a >> (sizeof(T) * 8 - 1));
   30|  29.3M|   return static_cast<T>(0) - top;
   31|  29.3M|}
_ZN5Botan6chooseITkNSt3__117unsigned_integralEhEET_S2_S2_S2_:
  216|    493|BOTAN_FORCE_INLINE constexpr T choose(T mask, T a, T b) {
  217|       |   //return (mask & a) | (~mask & b);
  218|    493|   return (b ^ (mask & (a ^ b)));
  219|    493|}
_ZN5Botan13is_power_of_2ITkNSt3__117unsigned_integralEmEEbT_:
   62|  86.6M|BOTAN_FORCE_INLINE constexpr bool is_power_of_2(T arg) {
   63|  86.6M|   return (arg != 0) && (arg != 1) && ((arg & static_cast<T>(arg - 1)) == 0);
  ------------------
  |  Branch (63:11): [True: 86.6M, False: 0]
  |  Branch (63:25): [True: 83.7M, False: 2.90M]
  |  Branch (63:39): [True: 9.54M, False: 74.1M]
  ------------------
   64|  86.6M|}
_ZN5Botan6chooseITkNSt3__117unsigned_integralEjEET_S2_S2_S2_:
  216|  3.96G|BOTAN_FORCE_INLINE constexpr T choose(T mask, T a, T b) {
  217|       |   //return (mask & a) | (~mask & b);
  218|  3.96G|   return (b ^ (mask & (a ^ b)));
  219|  3.96G|}
_ZN5Botan8majorityITkNSt3__117unsigned_integralEjEET_S2_S2_S2_:
  222|  1.08G|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|  1.08G|   return choose(a ^ b, c, b);
  233|  1.08G|}
_ZN5Botan8majorityITkNSt3__117unsigned_integralEmEET_S2_S2_S2_:
  222|   465M|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|   465M|   return choose(a ^ b, c, b);
  233|   465M|}
_ZN5Botan8high_bitITkNSt3__117unsigned_integralEmEEmT_:
   73|  98.1k|BOTAN_FORCE_INLINE constexpr size_t high_bit(T n) {
   74|  98.1k|   size_t hb = 0;
   75|       |
   76|   687k|   for(size_t s = 8 * sizeof(T) / 2; s > 0; s /= 2) {
  ------------------
  |  Branch (76:38): [True: 588k, False: 98.1k]
  ------------------
   77|       |      // Equivalent to: ((n >> s) == 0) ? 0 : s;
   78|   588k|      const size_t z = s - ct_if_is_zero_ret<T>(n >> s, s);
   79|   588k|      hb += z;
   80|   588k|      n >>= z;
   81|   588k|   }
   82|       |
   83|  98.1k|   hb += n;
   84|       |
   85|  98.1k|   return hb;
   86|  98.1k|}
_ZN5Botan9ceil_log2ITkNSt3__117unsigned_integralEjEEhT_QltstS2_Li32E:
  142|    128|{
  143|    128|   if(x >> (sizeof(T) * 8 - 1)) {
  ------------------
  |  Branch (143:7): [True: 0, False: 128]
  ------------------
  144|      0|      return sizeof(T) * 8;
  145|      0|   }
  146|       |
  147|    128|   uint8_t result = 0;
  148|    128|   T compare = 1;
  149|       |
  150|    972|   while(compare < x) {
  ------------------
  |  Branch (150:10): [True: 844, False: 128]
  ------------------
  151|    844|      compare <<= 1;
  152|    844|      result++;
  153|    844|   }
  154|       |
  155|    128|   return result;
  156|    128|}
_ZN5Botan12ceil_tobytesITkNSt3__117unsigned_integralEjEET_S2_:
  175|    256|BOTAN_FORCE_INLINE constexpr T ceil_tobytes(T bits) {
  176|    256|   return (bits + 7) / 8;
  177|    256|}

_ZNK5Botan7BLAKE2b13output_lengthEv:
   33|  1.65M|      size_t output_length() const override { return m_output_bits / 8; }

_ZNK5Botan8Blowfish4nameEv:
   36|     63|      std::string name() const override { return "Blowfish"; }
_ZNK5Botan8Blowfish10new_objectEv:
   38|     68|      std::unique_ptr<BlockCipher> new_object() const override { return std::make_unique<Blowfish>(); }

_ZN5Botan13reverse_bytesITkNSt3__117unsigned_integralEtQooooooeqstT_Li1EeqstS2_Li2EeqstS2_Li4EeqstS2_Li8EEES2_S2_:
   27|   449k|inline constexpr T reverse_bytes(T x) {
   28|       |   if constexpr(sizeof(T) == 1) {
   29|       |      return x;
   30|   449k|   } else if constexpr(sizeof(T) == 2) {
   31|   449k|#if BOTAN_COMPILER_HAS_BUILTIN(__builtin_bswap16)
   32|   449k|      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|   449k|}
_ZN5Botan13reverse_bytesITkNSt3__117unsigned_integralEjQooooooeqstT_Li1EeqstS2_Li2EeqstS2_Li4EeqstS2_Li8EEES2_S2_:
   27|   335M|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|   335M|   } else if constexpr(sizeof(T) == 4) {
   37|   335M|#if BOTAN_COMPILER_HAS_BUILTIN(__builtin_bswap32)
   38|   335M|      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|   335M|}
_ZN5Botan13reverse_bytesITkNSt3__117unsigned_integralEmQooooooeqstT_Li1EeqstS2_Li2EeqstS2_Li4EeqstS2_Li8EEES2_S2_:
   27|   102M|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|   102M|   } else if constexpr(sizeof(T) == 8) {
   45|   102M|#if BOTAN_COMPILER_HAS_BUILTIN(__builtin_bswap64)
   46|   102M|      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|   102M|   }
   57|   102M|}

_ZN5Botan12BufferSlicerC2ENSt3__14spanIKhLm18446744073709551615EEE:
   25|   445M|      explicit BufferSlicer(std::span<const uint8_t> buffer) : m_remaining(buffer) {}
_ZNK5Botan12BufferSlicer5emptyEv:
   68|   786M|      bool empty() const { return m_remaining.empty(); }
_ZN5Botan12BufferSlicer4takeEm:
   37|   482M|      std::span<const uint8_t> take(const size_t count) {
   38|   482M|         BOTAN_STATE_CHECK(remaining() >= count);
  ------------------
  |  |   51|   482M|   do {                                                         \
  |  |   52|   482M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|   482M|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 482M]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|   482M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 482M]
  |  |  ------------------
  ------------------
   39|   482M|         auto result = m_remaining.first(count);
   40|   482M|         m_remaining = m_remaining.subspan(count);
   41|   482M|         return result;
   42|   482M|      }
_ZNK5Botan12BufferSlicer9remainingEv:
   66|  1.04G|      size_t remaining() const { return m_remaining.size(); }
_ZN5Botan12BufferSlicer9copy_intoENSt3__14spanIhLm18446744073709551615EEE:
   59|  34.1M|      void copy_into(std::span<uint8_t> sink) {
   60|  34.1M|         const auto data = take(sink.size());
   61|  34.1M|         std::copy(data.begin(), data.end(), sink.begin());
   62|  34.1M|      }
_ZN5Botan12BufferSlicer4skipEm:
   64|   134k|      void skip(const size_t count) { take(count); }
_ZN5Botan12BufferSlicer4takeILm64EEENSt3__14spanIKhXT_EEEv:
   45|  50.2M|      std::span<const uint8_t, count> take() {
   46|  50.2M|         BOTAN_STATE_CHECK(remaining() >= count);
  ------------------
  |  |   51|  50.2M|   do {                                                         \
  |  |   52|  50.2M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|  50.2M|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 50.2M]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|  50.2M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 50.2M]
  |  |  ------------------
  ------------------
   47|  50.2M|         auto result = m_remaining.first<count>();
   48|  50.2M|         m_remaining = m_remaining.subspan(count);
   49|  50.2M|         return result;
   50|  50.2M|      }
_ZN5Botan12BufferSlicer4takeILm128EEENSt3__14spanIKhXT_EEEv:
   45|  5.81M|      std::span<const uint8_t, count> take() {
   46|  5.81M|         BOTAN_STATE_CHECK(remaining() >= count);
  ------------------
  |  |   51|  5.81M|   do {                                                         \
  |  |   52|  5.81M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|  5.81M|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 5.81M]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|  5.81M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 5.81M]
  |  |  ------------------
  ------------------
   47|  5.81M|         auto result = m_remaining.first<count>();
   48|  5.81M|         m_remaining = m_remaining.subspan(count);
   49|  5.81M|         return result;
   50|  5.81M|      }
_ZN5Botan12BufferSlicer4takeILm8EEENSt3__14spanIKhXT_EEEv:
   45|  8.16M|      std::span<const uint8_t, count> take() {
   46|  8.16M|         BOTAN_STATE_CHECK(remaining() >= count);
  ------------------
  |  |   51|  8.16M|   do {                                                         \
  |  |   52|  8.16M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|  8.16M|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 8.16M]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|  8.16M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 8.16M]
  |  |  ------------------
  ------------------
   47|  8.16M|         auto result = m_remaining.first<count>();
   48|  8.16M|         m_remaining = m_remaining.subspan(count);
   49|  8.16M|         return result;
   50|  8.16M|      }
_ZN5Botan12BufferSlicer4takeITkNS_8concepts22contiguous_strong_typeENS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_15ForsLeafSecret_EJEEEEENS_10StrongSpanIKT_EEm:
   53|    992|      StrongSpan<const T> take(const size_t count) {
   54|    992|         return StrongSpan<const T>(take(count));
   55|    992|      }
_ZN5Botan12BufferSlicer4takeITkNS_8concepts22contiguous_strong_typeENS_6StrongINSt3__16vectorIhNS4_9allocatorIhEEEENS_26SphincsAuthenticationPath_EJEEEEENS_10StrongSpanIKT_EEm:
   53|  1.45k|      StrongSpan<const T> take(const size_t count) {
   54|  1.45k|         return StrongSpan<const T>(take(count));
   55|  1.45k|      }
_ZN5Botan12BufferSlicer4copyITkNS_8concepts20contiguous_containerENS_6StrongINSt3__16vectorIhNS4_9allocatorIhEEEENS_21SphincsHashedMessage_EJEEEEEDam:
   28|     64|      auto copy(const size_t count) {
   29|     64|         const auto result = take(count);
   30|     64|         return ContainerT(result.begin(), result.end());
   31|     64|      }
_ZN5Botan12BufferSlicer4takeITkNS_8concepts22contiguous_strong_typeENS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_14WotsSignature_EJEEEEENS_10StrongSpanIKT_EEm:
   53|    460|      StrongSpan<const T> take(const size_t count) {
   54|    460|         return StrongSpan<const T>(take(count));
   55|    460|      }
_ZN5Botan12BufferSlicer4takeITkNS_8concepts22contiguous_strong_typeENS_6StrongINSt3__16vectorIhNS4_9allocatorIhEEEENS_16SphincsTreeNode_EJEEEEENS_10StrongSpanIKT_EEm:
   53|  16.4k|      StrongSpan<const T> take(const size_t count) {
   54|  16.4k|         return StrongSpan<const T>(take(count));
   55|  16.4k|      }
_ZN5Botan12BufferSlicer4takeITkNS_8concepts22contiguous_strong_typeENS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_9WotsNode_EJEEEEENS_10StrongSpanIKT_EEm:
   53|  19.1k|      StrongSpan<const T> take(const size_t count) {
   54|  19.1k|         return StrongSpan<const T>(take(count));
   55|  19.1k|      }
_ZN5Botan12BufferSlicer4copyITkNS_8concepts20contiguous_containerENS_6StrongINSt3__16vectorIhNS4_9allocatorIhEEEENS_18SphincsPublicSeed_EJEEEEEDam:
   28|     64|      auto copy(const size_t count) {
   29|     64|         const auto result = take(count);
   30|     64|         return ContainerT(result.begin(), result.end());
   31|     64|      }
_ZN5Botan12BufferSlicer4copyITkNS_8concepts20contiguous_containerENS_6StrongINSt3__16vectorIhNS4_9allocatorIhEEEENS_16SphincsTreeNode_EJEEEEEDam:
   28|     64|      auto copy(const size_t count) {
   29|     64|         const auto result = take(count);
   30|     64|         return ContainerT(result.begin(), result.end());
   31|     64|      }
_ZN5Botan12BufferSlicer4takeITkNS_8concepts22contiguous_strong_typeENS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_25SphincsMessageRandomness_EJEEEEENS_10StrongSpanIKT_EEm:
   53|     64|      StrongSpan<const T> take(const size_t count) {
   54|     64|         return StrongSpan<const T>(take(count));
   55|     64|      }
_ZN5Botan12BufferSlicer4takeITkNS_8concepts22contiguous_strong_typeENS_6StrongINSt3__16vectorIhNS4_9allocatorIhEEEENS_14ForsSignature_EJEEEEENS_10StrongSpanIKT_EEm:
   53|     64|      StrongSpan<const T> take(const size_t count) {
   54|     64|         return StrongSpan<const T>(take(count));
   55|     64|      }
_ZN5Botan12BufferSlicer4takeITkNS_8concepts22contiguous_strong_typeENS_6StrongINSt3__16vectorIhNS4_9allocatorIhEEEENS_21SphincsXmssSignature_EJEEEEENS_10StrongSpanIKT_EEm:
   53|     64|      StrongSpan<const T> take(const size_t count) {
   54|     64|         return StrongSpan<const T>(take(count));
   55|     64|      }
_ZN5Botan12BufferSlicer4takeILm16EEENSt3__14spanIKhXT_EEEv:
   45|  80.6k|      std::span<const uint8_t, count> take() {
   46|  80.6k|         BOTAN_STATE_CHECK(remaining() >= count);
  ------------------
  |  |   51|  80.6k|   do {                                                         \
  |  |   52|  80.6k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|  80.6k|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 80.6k]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|  80.6k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 80.6k]
  |  |  ------------------
  ------------------
   47|  80.6k|         auto result = m_remaining.first<count>();
   48|  80.6k|         m_remaining = m_remaining.subspan(count);
   49|  80.6k|         return result;
   50|  80.6k|      }

_ZN5Botan13BufferStufferC2ENSt3__14spanIhLm18446744073709551615EEE:
   26|   205k|      constexpr explicit BufferStuffer(std::span<uint8_t> buffer) : m_buffer(buffer) {}
_ZN5Botan13BufferStuffer4nextEm:
   32|   709k|      constexpr std::span<uint8_t> next(size_t bytes) {
   33|   709k|         BOTAN_STATE_CHECK(m_buffer.size() >= bytes);
  ------------------
  |  |   51|   709k|   do {                                                         \
  |  |   52|   709k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|   709k|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 709k]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|   709k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 709k]
  |  |  ------------------
  ------------------
   34|       |
   35|   709k|         auto result = m_buffer.first(bytes);
   36|   709k|         m_buffer = m_buffer.subspan(bytes);
   37|   709k|         return result;
   38|   709k|      }
_ZNK5Botan13BufferStuffer18remaining_capacityEv:
   71|   199k|      constexpr size_t remaining_capacity() const { return m_buffer.size(); }
_ZN5Botan13BufferStuffer6appendENSt3__14spanIKhLm18446744073709551615EEE:
   59|   450k|      constexpr void append(std::span<const uint8_t> buffer) {
   60|   450k|         auto sink = next(buffer.size());
   61|   450k|         std::copy(buffer.begin(), buffer.end(), sink.begin());
   62|   450k|      }
_ZN5Botan13BufferStuffer6appendEhm:
   64|  41.9k|      constexpr void append(uint8_t b, size_t repeat = 1) {
   65|  41.9k|         auto sink = next(repeat);
   66|  41.9k|         std::fill(sink.begin(), sink.end(), b);
   67|  41.9k|      }
_ZNK5Botan13BufferStuffer4fullEv:
   69|   168k|      constexpr bool full() const { return m_buffer.empty(); }
_ZN5Botan13BufferStuffer4nextILm32EEENSt3__14spanIhXT_EEEv:
   41|  73.6k|      constexpr std::span<uint8_t, bytes> next() {
   42|  73.6k|         BOTAN_STATE_CHECK(m_buffer.size() >= bytes);
  ------------------
  |  |   51|  73.6k|   do {                                                         \
  |  |   52|  73.6k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|  73.6k|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 73.6k]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|  73.6k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 73.6k]
  |  |  ------------------
  ------------------
   43|       |
   44|  73.6k|         auto result = m_buffer.first<bytes>();
   45|  73.6k|         m_buffer = m_buffer.subspan(bytes);
   46|  73.6k|         return result;
   47|  73.6k|      }
_ZN5Botan13BufferStuffer4nextITkNS_8concepts22contiguous_strong_typeENS_6StrongINSt3__16vectorIhNS4_9allocatorIhEEEENS_16SphincsTreeNode_EJEEEEENS_10StrongSpanIT_EEm:
   50|    992|      StrongSpan<StrongT> next(size_t bytes) {
   51|    992|         return StrongSpan<StrongT>(next(bytes));
   52|    992|      }
_ZN5Botan13BufferStuffer4nextITkNS_8concepts22contiguous_strong_typeENS_6StrongINSt3__16vectorIhNS4_9allocatorIhEEEENS_18WotsPublicKeyNode_EJEEEEENS_10StrongSpanIT_EEm:
   50|  19.1k|      StrongSpan<StrongT> next(size_t bytes) {
   51|  19.1k|         return StrongSpan<StrongT>(next(bytes));
   52|  19.1k|      }

_ZNK5Botan12Camellia_1284nameEv:
   26|      7|      std::string name() const override { return "Camellia-128"; }
_ZNK5Botan12Camellia_12810new_objectEv:
   31|     40|      std::unique_ptr<BlockCipher> new_object() const override { return std::make_unique<Camellia_128>(); }
_ZNK5Botan12Camellia_1924nameEv:
   66|      4|      std::string name() const override { return "Camellia-192"; }
_ZNK5Botan12Camellia_19210new_objectEv:
   71|     36|      std::unique_ptr<BlockCipher> new_object() const override { return std::make_unique<Camellia_192>(); }
_ZNK5Botan12Camellia_2564nameEv:
  106|     48|      std::string name() const override { return "Camellia-256"; }
_ZNK5Botan12Camellia_25610new_objectEv:
  111|     32|      std::unique_ptr<BlockCipher> new_object() const override { return std::make_unique<Camellia_256>(); }

_ZNK5Botan8CAST_1284nameEv:
   26|     30|      std::string name() const override { return "CAST-128"; }
_ZNK5Botan8CAST_12810new_objectEv:
   28|    362|      std::unique_ptr<BlockCipher> new_object() const override { return std::make_unique<CAST_128>(); }

_ZNK5Botan4CMAC13output_lengthEv:
   23|   164k|      size_t output_length() const override { return m_block_size; }
_ZNK5Botan4CMAC8key_specEv:
   30|    571|      Key_Length_Specification key_spec() const override { return m_cipher->key_spec(); }

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

_ZN5Botan5CRC245clearEv:
   33|  23.4k|      void clear() override { m_crc = 0xCE04B7; }
_ZNK5Botan5CRC2413output_lengthEv:
   25|  50.5k|      size_t output_length() const override { return 3; }

_ZN5Botan2CT6poisonIjEEvPKT_m:
   56|   335k|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|   335k|   BOTAN_UNUSED(p, n);
  ------------------
  |  |  144|   335k|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
   64|   335k|}
_ZN5Botan2CT8unpoisonIjEEvPKT_m:
   67|   366k|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|   366k|   BOTAN_UNUSED(p, n);
  ------------------
  |  |  144|   366k|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
   75|   366k|}
_ZN5Botan2CT6poisonIhEEvPKT_m:
   56|   123k|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|   123k|   BOTAN_UNUSED(p, n);
  ------------------
  |  |  144|   123k|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
   64|   123k|}
_ZN5Botan2CT8unpoisonIhEEvPKT_m:
   67|   144k|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|   144k|   BOTAN_UNUSED(p, n);
  ------------------
  |  |  144|   144k|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
   75|   144k|}
_ZN5Botan2CT6Choice9from_maskEm:
  303|  9.95M|      constexpr static Choice from_mask(underlying_type v) { return Choice(v); }
_ZN5Botan2CT6Choice2noEv:
  307|  14.0k|      constexpr static Choice no() { return Choice(0); }
_ZNK5Botan2CT6ChoicentEv:
  309|  1.82M|      constexpr Choice operator!() const { return Choice(~value()); }
_ZNK5Botan2CT6ChoiceaaERKS1_:
  311|  6.98M|      constexpr Choice operator&&(const Choice& other) const { return Choice(value() & other.value()); }
_ZNK5Botan2CT6ChoiceooERKS1_:
  313|   888k|      constexpr Choice operator||(const Choice& other) const { return Choice(value() | other.value()); }
_ZNK5Botan2CT6Choice7as_boolEv:
  329|  2.07M|      constexpr bool as_bool() const { return m_value != 0; }
_ZNK5Botan2CT6Choice5valueEv:
  332|  21.2M|      constexpr underlying_type value() const { return value_barrier(m_value); }
_ZN5Botan2CT6ChoiceC2Em:
  341|  19.6M|      constexpr explicit Choice(underlying_type v) : m_value(CT::value_barrier<underlying_type>(v)) {}
_ZN5Botan2CT4MaskImE7is_zeroEm:
  437|  75.5M|      static constexpr Mask<T> is_zero(T x) { return Mask<T>(ct_is_zero<T>(value_barrier<T>(x))); }
_ZNK5Botan2CT4MaskImE5valueEv:
  630|   168M|      constexpr T value() const { return value_barrier<T>(m_mask); }
_ZNK5Botan2CT4MaskImEcoEv:
  533|  61.1M|      constexpr Mask<T> operator~() const { return Mask<T>(~value()); }
_ZN5Botan2CT4MaskImE6expandEm:
  392|  61.1M|      static constexpr Mask<T> expand(T v) { return ~Mask<T>::is_zero(value_barrier<T>(v)); }
_ZNK5Botan2CT4MaskImE6selectEmm:
  548|  30.0M|      constexpr T select(T x, T y) const { return choose(value(), x, y); }
_ZN5Botan2CT6poisonItEEvPKT_m:
   56|  55.5k|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|  55.5k|   BOTAN_UNUSED(p, n);
  ------------------
  |  |  144|  55.5k|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
   64|  55.5k|}
_ZN5Botan2CT8unpoisonItEEvPKT_m:
   67|  55.5k|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|  55.5k|   BOTAN_UNUSED(p, n);
  ------------------
  |  |  144|  55.5k|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
   75|  55.5k|}
_ZN5Botan2CT4MaskIhE8is_equalEhh:
  442|  29.2M|      static constexpr Mask<T> is_equal(T x, T y) {
  443|  29.2M|         const T diff = value_barrier(x) ^ value_barrier(y);
  444|  29.2M|         return Mask<T>::is_zero(diff);
  445|  29.2M|      }
_ZN5Botan2CT4MaskIhE7is_zeroEh:
  437|  29.3M|      static constexpr Mask<T> is_zero(T x) { return Mask<T>(ct_is_zero<T>(value_barrier<T>(x))); }
_ZN5Botan2CT4MaskIhEC2Eh:
  637|  29.3M|      constexpr explicit Mask(T m) : m_mask(m) {}
_ZNK5Botan2CT4MaskIhE13if_set_returnEh:
  538|  29.2M|      constexpr T if_set_return(T x) const { return value() & x; }
_ZNK5Botan2CT4MaskIhE5valueEv:
  630|  29.3M|      constexpr T value() const { return value_barrier<T>(m_mask); }
_ZN5Botan2CT4MaskIjE6expandEj:
  392|  1.33M|      static constexpr Mask<T> expand(T v) { return ~Mask<T>::is_zero(value_barrier<T>(v)); }
_ZN5Botan2CT4MaskIjE7is_zeroEj:
  437|  1.33M|      static constexpr Mask<T> is_zero(T x) { return Mask<T>(ct_is_zero<T>(value_barrier<T>(x))); }
_ZN5Botan2CT4MaskIjEC2Ej:
  637|  2.66M|      constexpr explicit Mask(T m) : m_mask(m) {}
_ZNK5Botan2CT4MaskIjEcoEv:
  533|  1.33M|      constexpr Mask<T> operator~() const { return Mask<T>(~value()); }
_ZNK5Botan2CT4MaskIjE5valueEv:
  630|  2.66M|      constexpr T value() const { return value_barrier<T>(m_mask); }
_ZNK5Botan2CT4MaskIjE13if_set_returnEj:
  538|  1.33M|      constexpr T if_set_return(T x) const { return value() & x; }
_ZN5Botan2CT8is_equalIhEENS0_4MaskIT_EEPKS3_S6_m:
  798|  10.6k|constexpr inline CT::Mask<T> is_equal(const T x[], const T y[], size_t len) {
  799|  10.6k|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (799:7): [Folded, False: 10.6k]
  ------------------
  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|  10.6k|   } else {
  808|  10.6k|      volatile T difference = 0;
  809|       |
  810|   538k|      for(size_t i = 0; i != len; ++i) {
  ------------------
  |  Branch (810:25): [True: 527k, False: 10.6k]
  ------------------
  811|   527k|         difference = difference | (x[i] ^ y[i]);
  812|   527k|      }
  813|       |
  814|  10.6k|      return CT::Mask<T>::is_zero(difference);
  815|  10.6k|   }
  816|  10.6k|}
_ZNK5Botan2CT4MaskIhE6selectEhh:
  548|    493|      constexpr T select(T x, T y) const { return choose(value(), x, y); }
_ZN5Botan2CT4MaskImE6is_lteEmm:
  463|  1.69k|      static constexpr Mask<T> is_lte(T x, T y) { return ~Mask<T>::is_gt(x, y); }
_ZN5Botan2CT4MaskImE5is_gtEmm:
  458|  1.69k|      static constexpr Mask<T> is_gt(T x, T y) { return Mask<T>::is_lt(y, x); }
_ZN5Botan2CT4MaskImEC2Em:
  637|   152M|      constexpr explicit Mask(T m) : m_mask(m) {}
_ZN5Botan2CT4MaskImE5is_ltEmm:
  450|  4.36M|      static constexpr Mask<T> is_lt(T x, T y) {
  451|  4.36M|         T u = x ^ ((x ^ y) | ((x - y) ^ x));
  452|  4.36M|         return Mask<T>::expand_top_bit(u);
  453|  4.36M|      }
_ZN5Botan2CT4MaskImE14expand_top_bitEm:
  415|  14.6M|      static constexpr Mask<T> expand_top_bit(T v) { return Mask<T>(ct_expand_top_bit<T>(v)); }
_ZNK5Botan2CT4MaskImE13if_set_returnEm:
  538|  5.83M|      constexpr T if_set_return(T x) const { return value() & x; }
_ZNK5Botan2CT4MaskIhE7as_boolEv:
  614|  20.6k|      constexpr bool as_bool() const { return unpoisoned_value() != 0; }
_ZNK5Botan2CT4MaskIhE16unpoisoned_valueEv:
  598|  20.6k|      constexpr T unpoisoned_value() const {
  599|  20.6k|         T r = value();
  600|  20.6k|         CT::unpoison(r);
  601|  20.6k|         return r;
  602|  20.6k|      }
_ZN5Botan2CT8unpoisonITkNSt3__18integralEhEEvRKT_:
  112|  20.6k|constexpr void unpoison(const T& p) {
  113|  20.6k|   unpoison(&p, 1);
  114|  20.6k|}
_ZN5Botan2CT4MaskImE8is_equalEmm:
  442|  4.37M|      static constexpr Mask<T> is_equal(T x, T y) {
  443|  4.37M|         const T diff = value_barrier(x) ^ value_barrier(y);
  444|  4.37M|         return Mask<T>::is_zero(diff);
  445|  4.37M|      }
_ZN5Botan2CT8unpoisonITkNSt3__18integralEmEEvRKT_:
  112|  10.7M|constexpr void unpoison(const T& p) {
  113|  10.7M|   unpoison(&p, 1);
  114|  10.7M|}
_ZN5Botan2CT8unpoisonImEEvPKT_m:
   67|  11.2M|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|  11.2M|   BOTAN_UNUSED(p, n);
  ------------------
  |  |  144|  11.2M|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
   75|  11.2M|}
_ZN5Botan2CT20conditional_copy_memImEENS0_4MaskIT_EES3_PS3_PKS3_S7_m:
  738|  27.7k|constexpr inline Mask<T> conditional_copy_mem(T cnd, T* dest, const T* if_set, const T* if_unset, size_t elems) {
  739|  27.7k|   const auto mask = CT::Mask<T>::expand(cnd);
  740|  27.7k|   return CT::conditional_copy_mem(mask, dest, if_set, if_unset, elems);
  741|  27.7k|}
_ZN5Botan2CT20conditional_copy_memImEENS0_4MaskIT_EES4_PS3_PKS3_S7_m:
  732|  27.7k|constexpr inline Mask<T> conditional_copy_mem(Mask<T> mask, T* dest, const T* if_set, const T* if_unset, size_t elems) {
  733|  27.7k|   mask.select_n(dest, if_set, if_unset, elems);
  734|  27.7k|   return mask;
  735|  27.7k|}
_ZNK5Botan2CT4MaskImE8select_nEPmPKmS5_m:
  565|  33.0M|      constexpr void select_n(T output[], const T x[], const T y[], size_t len) const {
  566|  33.0M|         const T mask = value();
  567|   168M|         for(size_t i = 0; i != len; ++i) {
  ------------------
  |  Branch (567:28): [True: 135M, False: 33.0M]
  ------------------
  568|   135M|            output[i] = choose(mask, x[i], y[i]);
  569|   135M|         }
  570|  33.0M|      }
_ZNK5Botan2CT4MaskImE7as_boolEv:
  614|   104k|      constexpr bool as_bool() const { return unpoisoned_value() != 0; }
_ZNK5Botan2CT4MaskImE16unpoisoned_valueEv:
  598|  10.0M|      constexpr T unpoisoned_value() const {
  599|  10.0M|         T r = value();
  600|  10.0M|         CT::unpoison(r);
  601|  10.0M|         return r;
  602|  10.0M|      }
_ZNK5Botan2CT4MaskImE11select_maskES2_S2_:
  559|   781k|      Mask<T> select_mask(Mask<T> x, Mask<T> y) const { return Mask<T>(select(x.value(), y.value())); }
_ZN5Botan2CT4MaskImEaNES2_:
  494|  20.8k|      Mask<T>& operator&=(Mask<T> o) {
  495|  20.8k|         m_mask &= o.value();
  496|  20.8k|         return (*this);
  497|  20.8k|      }
_ZN5Botan2CT4MaskIhE11expand_boolEb:
  397|    493|      static constexpr Mask<T> expand_bool(bool v) { return Mask<T>::expand(static_cast<T>(v)); }
_ZN5Botan2CT4MaskIhE6expandEh:
  392|    493|      static constexpr Mask<T> expand(T v) { return ~Mask<T>::is_zero(value_barrier<T>(v)); }
_ZNK5Botan2CT4MaskIhEcoEv:
  533|    493|      constexpr Mask<T> operator~() const { return Mask<T>(~value()); }
_ZNK5Botan2CT4MaskImE9as_choiceEv:
  619|  9.95M|      constexpr CT::Choice as_choice() const {
  620|  9.95M|         if constexpr(sizeof(T) >= sizeof(Choice::underlying_type)) {
  621|  9.95M|            return CT::Choice::from_mask(static_cast<Choice::underlying_type>(unpoisoned_value()));
  622|       |         } else {
  623|       |            return CT::Choice::from_int(unpoisoned_value());
  624|       |         }
  625|  9.95M|      }
_ZN5Botan2CT6poisonImEEvPKT_m:
   56|  24.5k|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|  24.5k|   BOTAN_UNUSED(p, n);
  ------------------
  |  |  144|  24.5k|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
   64|  24.5k|}
_ZN5Botan2CTeoENS0_4MaskImEES2_:
  523|  2.17k|      friend Mask<T> operator^(Mask<T> x, Mask<T> y) { return Mask<T>(x.value() ^ y.value()); }
_ZN5Botan2CT22conditional_assign_memImEENS0_4MaskIT_EES3_PS3_PKS3_m:
  749|  33.0M|constexpr inline Mask<T> conditional_assign_mem(T cnd, T* dest, const T* src, size_t elems) {
  750|  33.0M|   const auto mask = CT::Mask<T>::expand(cnd);
  751|  33.0M|   mask.select_n(dest, src, dest, elems);
  752|  33.0M|   return mask;
  753|  33.0M|}
_ZN5Botan2CT6Choice8from_intIjQaasr3stdE17unsigned_integralIT_Entsr3stdE7same_asIbS3_EEES1_S3_:
  268|  16.6k|      constexpr static Choice from_int(T v) {
  269|  16.6k|         if constexpr(sizeof(T) <= sizeof(underlying_type)) {
  270|  16.6k|            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|  16.6k|      }
_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|  15.6k|constexpr void poison(const R& r) {
  122|  15.6k|   const std::span s{r};
  123|  15.6k|   poison(s.data(), s.size());
  124|  15.6k|}
_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|  48.5k|constexpr void unpoison(const R& r) {
  129|  48.5k|   const std::span s{r};
  130|  48.5k|   unpoison(s.data(), s.size());
  131|  48.5k|}
_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|  15.6k|constexpr void unpoison(const R& r) {
  129|  15.6k|   const std::span s{r};
  130|  15.6k|   unpoison(s.data(), s.size());
  131|  15.6k|}
_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|  8.48k|constexpr void poison(const R& r) {
  122|  8.48k|   const std::span s{r};
  123|  8.48k|   poison(s.data(), s.size());
  124|  8.48k|}
_ZN5Botan2CT9all_zerosImEENS0_4MaskIT_EEPKS3_m:
  785|  9.96M|constexpr inline CT::Mask<T> all_zeros(const T elem[], size_t len) {
  786|  9.96M|   T sum = 0;
  787|  49.8M|   for(size_t i = 0; i != len; ++i) {
  ------------------
  |  Branch (787:22): [True: 39.8M, False: 9.96M]
  ------------------
  788|  39.8M|      sum |= elem[i];
  789|  39.8M|   }
  790|  9.96M|   return CT::Mask<T>::is_zero(sum);
  791|  9.96M|}
_ZN5Botan2CT4MaskImE15if_set_zero_outEPmm:
  575|    496|      constexpr void if_set_zero_out(T buf[], size_t elems) {
  576|  1.98k|         for(size_t i = 0; i != elems; ++i) {
  ------------------
  |  Branch (576:28): [True: 1.48k, False: 496]
  ------------------
  577|  1.48k|            buf[i] = this->if_not_set_return(buf[i]);
  578|  1.48k|         }
  579|    496|      }
_ZNK5Botan2CT4MaskImE17if_not_set_returnEm:
  543|  1.48k|      constexpr T if_not_set_return(T x) const { return ~value() & x; }
_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|    530|constexpr void poison_range(const R& r) {
  182|  8.48k|   for(const auto& v : r) {
  ------------------
  |  Branch (182:22): [True: 8.48k, False: 530]
  ------------------
  183|  8.48k|      poison(v);
  184|  8.48k|   }
  185|    530|}
_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_14Montgomery_IntEEEvRKT_:
  138|  8.48k|constexpr void poison(const T& x) {
  139|  8.48k|   x._const_time_poison();
  140|  8.48k|}
_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_14Montgomery_IntEEEvRKT_:
  143|  1.69k|constexpr void unpoison(const T& x) {
  144|  1.69k|   x._const_time_unpoison();
  145|  1.69k|}
_ZN5Botan2CTanENS0_4MaskImEES2_:
  518|  1.69k|      friend Mask<T> operator&(Mask<T> x, Mask<T> y) { return Mask<T>(x.value() & y.value()); }
_ZNK5Botan2CT6Choice12into_bitmaskImQaasr3stdE17unsigned_integralIT_Entsr3stdE7same_asIbS3_EEES3_v:
  291|  3.65M|      constexpr T into_bitmask() const {
  292|  3.65M|         if constexpr(sizeof(T) <= sizeof(underlying_type)) {
  293|       |            // The inner mask is already |0| or |1| so just truncate
  294|  3.65M|            return static_cast<T>(value());
  295|       |         } else {
  296|       |            return ~ct_is_zero<T>(value());
  297|       |         }
  298|  3.65M|      }
_ZN5Botan2CT8is_equalImEENS0_4MaskIT_EEPKS3_S6_m:
  798|  32.8k|constexpr inline CT::Mask<T> is_equal(const T x[], const T y[], size_t len) {
  799|  32.8k|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (799:7): [Folded, False: 32.8k]
  ------------------
  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|  32.8k|   } else {
  808|  32.8k|      volatile T difference = 0;
  809|       |
  810|   164k|      for(size_t i = 0; i != len; ++i) {
  ------------------
  |  Branch (810:25): [True: 131k, False: 32.8k]
  ------------------
  811|   131k|         difference = difference | (x[i] ^ y[i]);
  812|   131k|      }
  813|       |
  814|  32.8k|      return CT::Mask<T>::is_zero(difference);
  815|  32.8k|   }
  816|  32.8k|}
_ZN5Botan2CT4MaskImE6expandIhEES2_NS1_IT_EE:
  429|  1.69k|      static constexpr Mask<T> expand(Mask<U> m) {
  430|  1.69k|         static_assert(sizeof(U) < sizeof(T), "sizes ok");
  431|  1.69k|         return ~Mask<T>::is_zero(m.value());
  432|  1.69k|      }
_ZN5Botan2CT9all_zerosIhEENS0_4MaskIT_EEPKS3_m:
  785|  11.7k|constexpr inline CT::Mask<T> all_zeros(const T elem[], size_t len) {
  786|  11.7k|   T sum = 0;
  787|   388k|   for(size_t i = 0; i != len; ++i) {
  ------------------
  |  Branch (787:22): [True: 376k, False: 11.7k]
  ------------------
  788|   376k|      sum |= elem[i];
  789|   376k|   }
  790|  11.7k|   return CT::Mask<T>::is_zero(sum);
  791|  11.7k|}
_ZN5Botan2CT13scoped_poisonIJNSt3__14spanIhLm16EEEEQaaaagtsZT_Li0Efraa10poisonableIT_Efraa12unpoisonableIS5_EEEDaDpRKS5_:
  222|  10.7k|[[nodiscard]] constexpr auto scoped_poison(const Ts&... xs) {
  223|  10.7k|   auto scope = scoped_cleanup([&] { unpoison_all(xs...); });
  224|  10.7k|   poison_all(xs...);
  225|  10.7k|   return scope;
  226|  10.7k|}
_ZN5Botan2CT10poison_allITpTkNS0_10poisonableEJNSt3__14spanIhLm16EEEEQgtsZT_Li0EEEvDpRKT_:
  201|  10.7k|constexpr void poison_all(const Ts&... ts) {
  202|  10.7k|   (poison(ts), ...);
  203|  10.7k|}
_ZN5Botan2CT6poisonITkNS_6ranges14spanable_rangeENSt3__14spanIhLm16EEEQaasr3stdE23is_trivially_copyable_vINS3_11conditionalIXsr21__is_primary_templateINS3_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS3_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS3_26indirectly_readable_traitsISD_EESE_E4type10value_typeEEnt17custom_poisonableISA_EEEvRKSA_:
  121|  10.7k|constexpr void poison(const R& r) {
  122|  10.7k|   const std::span s{r};
  123|  10.7k|   poison(s.data(), s.size());
  124|  10.7k|}
_ZZN5Botan2CT13scoped_poisonIJNSt3__14spanIhLm16EEEEQaaaagtsZT_Li0Efraa10poisonableIT_Efraa12unpoisonableIS5_EEEDaDpRKS5_ENKUlvE_clEv:
  223|  10.7k|   auto scope = scoped_cleanup([&] { unpoison_all(xs...); });
_ZN5Botan2CT12unpoison_allITpTkNS0_12unpoisonableEJNSt3__14spanIhLm16EEEEQgtsZT_Li0EEEvDpRKT_:
  207|  10.7k|constexpr void unpoison_all(const Ts&... ts) {
  208|  10.7k|   (unpoison(ts), ...);
  209|  10.7k|}
_ZN5Botan2CT8unpoisonITkNS_6ranges14spanable_rangeENSt3__14spanIhLm16EEEQaasr3stdE23is_trivially_copyable_vINS3_11conditionalIXsr21__is_primary_templateINS3_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS3_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS3_26indirectly_readable_traitsISD_EESE_E4type10value_typeEEnt19custom_unpoisonableISA_EEEvRKSA_:
  128|  10.7k|constexpr void unpoison(const R& r) {
  129|  10.7k|   const std::span s{r};
  130|  10.7k|   unpoison(s.data(), s.size());
  131|  10.7k|}

_ZNK5Botan9TripleDES4nameEv:
   50|      9|      std::string name() const override { return "TripleDES"; }
_ZNK5Botan9TripleDES10new_objectEv:
   52|    176|      std::unique_ptr<BlockCipher> new_object() const override { return std::make_unique<TripleDES>(); }
_ZNK5Botan9TripleDES11parallelismEv:
   54|  1.49k|      size_t parallelism() const override { return 32; }

_ZNK5Botan12DL_PublicKey5groupEv:
   29|  1.57k|      const DL_Group& group() const { return m_group; }
_ZNK5Botan12DL_PublicKey10public_keyEv:
   31|    493|      const BigInt& public_key() const { return m_public_key; }

_ZN5Botan14EAX_DecryptionC2ENSt3__110unique_ptrINS_11BlockCipherENS1_14default_deleteIS3_EEEEm:
  103|    571|            EAX_Mode(std::move(cipher), tag_size) {}
_ZNK5Botan8EAX_Mode18valid_nonce_lengthEm:
   37|    594|      bool valid_nonce_length(size_t /*length*/) const final { return true; }
_ZNK5Botan8EAX_Mode8tag_sizeEv:
   39|  1.97k|      size_t tag_size() const final { return m_tag_size; }
_ZNK5Botan8EAX_Mode10block_sizeEv:
   54|  7.30k|      size_t block_size() const { return m_cipher->block_size(); }
_ZNK5Botan14EAX_Decryption18minimum_final_sizeEv:
  107|    571|      size_t minimum_final_size() const override { return tag_size(); }

_ZNK5Botan13EC_Group_Data3oidEv:
  166|  61.7k|      const OID& oid() const { return m_oid; }
_ZNK5Botan13EC_Group_Data1pEv:
  170|  73.8k|      const BigInt& p() const { return m_p; }
_ZNK5Botan13EC_Group_Data1aEv:
  172|  4.39k|      const BigInt& a() const { return m_a; }
_ZNK5Botan13EC_Group_Data1bEv:
  174|  4.39k|      const BigInt& b() const { return m_b; }
_ZNK5Botan13EC_Group_Data5curveEv:
  181|  18.4k|      const CurveGFp& curve() const { return m_curve; }
_ZNK5Botan13EC_Group_Data5montyEv:
  185|  92.0k|      const Montgomery_Params& monty() const { return m_monty; }
_ZNK5Botan13EC_Group_Data3g_xEv:
  198|  4.39k|      const BigInt& g_x() const { return m_g_x; }
_ZNK5Botan13EC_Group_Data3g_yEv:
  200|  4.39k|      const BigInt& g_y() const { return m_g_y; }
_ZNK5Botan13EC_Group_Data7p_wordsEv:
  202|  18.4k|      size_t p_words() const { return m_p_words; }
_ZNK5Botan13EC_Group_Data7p_bytesEv:
  206|  41.3k|      size_t p_bytes() const { return (m_p_bits + 7) / 8; }
_ZNK5Botan13EC_Group_Data10order_bitsEv:
  208|  18.3k|      size_t order_bits() const { return m_order_bits; }
_ZNK5Botan13EC_Group_Data11order_bytesEv:
  210|  28.0k|      size_t order_bytes() const { return m_order_bytes; }
_ZNK5Botan13EC_Group_Data6pcurveEv:
  297|   198k|      const PCurve::PrimeOrderCurve& pcurve() const {
  298|   198k|         BOTAN_ASSERT_NONNULL(m_pcurve);
  ------------------
  |  |  116|   198k|   do {                                                                                   \
  |  |  117|   198k|      if((ptr) == nullptr) {                                                              \
  |  |  ------------------
  |  |  |  Branch (117:10): [True: 0, False: 198k]
  |  |  ------------------
  |  |  118|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                              \
  |  |  119|      0|         Botan::assertion_failure(#ptr " is not null", "", __func__, __FILE__, __LINE__); \
  |  |  120|      0|      }                                                                                   \
  |  |  121|   198k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (121:12): [Folded, False: 198k]
  |  |  ------------------
  ------------------
  299|   198k|         return *m_pcurve;
  300|   198k|      }
_ZN5Botan19EC_AffinePoint_DataD2Ev:
   74|  36.8k|      virtual ~EC_AffinePoint_Data() = default;
_ZN5Botan14EC_Scalar_DataD2Ev:
   39|   107k|      virtual ~EC_Scalar_Data() = default;
_ZN5Botan17EC_Mul2Table_DataD2Ev:
  113|  14.0k|      virtual ~EC_Mul2Table_Data() = default;

_ZNK5Botan17EC_Scalar_Data_PC5valueEv:
   53|  69.8k|      const auto& value() const { return m_v; }
_ZNK5Botan22EC_AffinePoint_Data_PC5valueEv:
   88|  14.0k|      const PCurve::PrimeOrderCurve::AffinePoint& value() const { return m_pt; }
_ZN5Botan17EC_Scalar_Data_PCC2ENSt3__110shared_ptrIKNS_13EC_Group_DataEEENS_6PCurve15PrimeOrderCurve6ScalarE:
   19|   107k|            m_group(std::move(group)), m_v(std::move(v)) {}

_ZNK5Botan17EC_PublicKey_Data5groupEv:
   30|  50.8k|      const EC_Group& group() const { return m_group; }
_ZNK5Botan17EC_PublicKey_Data10public_keyEv:
   32|  18.4k|      const EC_AffinePoint& public_key() const { return m_point; }

_ZNK5Botan20Ed25519_FieldElement3sqrEv:
  122|  3.07M|      Ed25519_FieldElement sqr() const { return sqr_iter(1); }
_ZN5BotanmlERKNS_20Ed25519_FieldElementES2_:
  148|  5.94M|inline Ed25519_FieldElement operator*(const Ed25519_FieldElement& x, const Ed25519_FieldElement& y) {
  149|  5.94M|   return Ed25519_FieldElement::mul(x, y);
  150|  5.94M|}
_ZN5Botan20Ed25519_FieldElementC2Ellllllllll:
   60|  10.1M|                                     int64_t h9) {
   61|  10.1M|         m_fe[0] = static_cast<int32_t>(h0);
   62|  10.1M|         m_fe[1] = static_cast<int32_t>(h1);
   63|  10.1M|         m_fe[2] = static_cast<int32_t>(h2);
   64|  10.1M|         m_fe[3] = static_cast<int32_t>(h3);
   65|  10.1M|         m_fe[4] = static_cast<int32_t>(h4);
   66|  10.1M|         m_fe[5] = static_cast<int32_t>(h5);
   67|  10.1M|         m_fe[6] = static_cast<int32_t>(h6);
   68|  10.1M|         m_fe[7] = static_cast<int32_t>(h7);
   69|  10.1M|         m_fe[8] = static_cast<int32_t>(h8);
   70|  10.1M|         m_fe[9] = static_cast<int32_t>(h9);
   71|  10.1M|      }
_ZN5Botan20Ed25519_FieldElementC2Ev:
   33|  18.0M|      constexpr Ed25519_FieldElement() : m_fe{} {}
_ZN5Botan20Ed25519_FieldElement4zeroEv:
   35|  12.0k|      constexpr static Ed25519_FieldElement zero() { return Ed25519_FieldElement(); }
_ZN5Botan20Ed25519_FieldElement3oneEv:
   37|  20.1k|      constexpr static Ed25519_FieldElement one() {
   38|  20.1k|         auto o = Ed25519_FieldElement();
   39|  20.1k|         o.m_fe[0] = 1;
   40|  20.1k|         return o;
   41|  20.1k|      }
_ZNK5Botan20Ed25519_FieldElement7is_zeroEv:
   77|  11.7k|      bool is_zero() const {
   78|  11.7k|         std::array<uint8_t, 32> value = {};
   79|  11.7k|         this->serialize_to(value);
   80|  11.7k|         return CT::all_zeros(value.data(), value.size()).as_bool();
   81|  11.7k|      }
_ZNK5Botan20Ed25519_FieldElement11is_negativeEv:
   87|  8.04k|      bool is_negative() const {
   88|       |         // TODO could avoid most of the serialize computation here
   89|  8.04k|         std::array<uint8_t, 32> s = {};
   90|  8.04k|         this->serialize_to(s);
   91|  8.04k|         return (s[0] & 0x01) == 0x01;
   92|  8.04k|      }
_ZN5Botan20Ed25519_FieldElement3addERKS0_S2_:
   94|  3.51M|      static Ed25519_FieldElement add(const Ed25519_FieldElement& a, const Ed25519_FieldElement& b) {
   95|  3.51M|         Ed25519_FieldElement z;
   96|  38.6M|         for(size_t i = 0; i != 10; ++i) {
  ------------------
  |  Branch (96:28): [True: 35.1M, False: 3.51M]
  ------------------
   97|  35.1M|            z.m_fe[i] = a.m_fe[i] + b.m_fe[i];
   98|  35.1M|         }
   99|  3.51M|         return z;
  100|  3.51M|      }
_ZN5Botan20Ed25519_FieldElement3subERKS0_S2_:
  102|  4.16M|      static Ed25519_FieldElement sub(const Ed25519_FieldElement& a, const Ed25519_FieldElement& b) {
  103|  4.16M|         Ed25519_FieldElement z;
  104|  45.8M|         for(size_t i = 0; i != 10; ++i) {
  ------------------
  |  Branch (104:28): [True: 41.6M, False: 4.16M]
  ------------------
  105|  41.6M|            z.m_fe[i] = a.m_fe[i] - b.m_fe[i];
  106|  41.6M|         }
  107|  4.16M|         return z;
  108|  4.16M|      }
_ZN5Botan20Ed25519_FieldElement6negateERKS0_:
  110|  1.43k|      static Ed25519_FieldElement negate(const Ed25519_FieldElement& a) {
  111|  1.43k|         Ed25519_FieldElement z;
  112|  15.7k|         for(size_t i = 0; i != 10; ++i) {
  ------------------
  |  Branch (112:28): [True: 14.3k, False: 1.43k]
  ------------------
  113|  14.3k|            z.m_fe[i] = -a.m_fe[i];
  114|  14.3k|         }
  115|  1.43k|         return z;
  116|  1.43k|      }
_ZN5BotanplERKNS_20Ed25519_FieldElementES2_:
  140|  3.51M|inline Ed25519_FieldElement operator+(const Ed25519_FieldElement& x, const Ed25519_FieldElement& y) {
  141|  3.51M|   return Ed25519_FieldElement::add(x, y);
  142|  3.51M|}
_ZN5BotanmiERKNS_20Ed25519_FieldElementES2_:
  144|  4.16M|inline Ed25519_FieldElement operator-(const Ed25519_FieldElement& x, const Ed25519_FieldElement& y) {
  145|  4.16M|   return Ed25519_FieldElement::sub(x, y);
  146|  4.16M|}
_ZN5BotanngERKNS_20Ed25519_FieldElementE:
  152|  1.43k|inline Ed25519_FieldElement operator-(const Ed25519_FieldElement& x) {
  153|  1.43k|   return Ed25519_FieldElement::negate(x);
  154|  1.43k|}

_ZN5Botan6load_3EPKh:
   18|  76.4k|inline uint32_t load_3(const uint8_t in[3]) {
   19|  76.4k|   return static_cast<uint32_t>(in[0]) | (static_cast<uint32_t>(in[1]) << 8) | (static_cast<uint32_t>(in[2]) << 16);
   20|  76.4k|}
_ZN5Botan6load_4EPKh:
   22|  60.3k|inline uint32_t load_4(const uint8_t* in) {
   23|  60.3k|   return load_le<uint32_t>(in, 0);
   24|  60.3k|}
_ZN5Botan8redc_mulERlS0_S0_S0_S0_S0_S0_:
   57|  56.3k|inline void redc_mul(int64_t& s1, int64_t& s2, int64_t& s3, int64_t& s4, int64_t& s5, int64_t& s6, int64_t& X) {
   58|  56.3k|   s1 += X * 666643;
   59|  56.3k|   s2 += X * 470296;
   60|  56.3k|   s3 += X * 654183;
   61|  56.3k|   s4 -= X * 997805;
   62|  56.3k|   s5 += X * 136657;
   63|  56.3k|   s6 -= X * 683901;
   64|  56.3k|   X = 0;
   65|  56.3k|}
_ZN5Botan5carryILm26ELl1EEEvRlS1_QaagtT_Li0EltT_Li64E:
   29|  84.3M|{
   30|  84.3M|   const int64_t X1 = (static_cast<int64_t>(1) << S);
   31|  84.3M|   const int64_t X2 = (static_cast<int64_t>(1) << (S - 1));
   32|  84.3M|   const int64_t c = (h0 + X2) >> S;
   33|  84.3M|   h1 += c * MUL;
   34|  84.3M|   h0 -= c * X1;
   35|  84.3M|}
_ZN5Botan5carryILm25ELl1EEEvRlS1_QaagtT_Li0EltT_Li64E:
   29|  48.1M|{
   30|  48.1M|   const int64_t X1 = (static_cast<int64_t>(1) << S);
   31|  48.1M|   const int64_t X2 = (static_cast<int64_t>(1) << (S - 1));
   32|  48.1M|   const int64_t c = (h0 + X2) >> S;
   33|  48.1M|   h1 += c * MUL;
   34|  48.1M|   h0 -= c * X1;
   35|  48.1M|}
_ZN5Botan5carryILm25ELl19EEEvRlS1_QaagtT_Li0EltT_Li64E:
   29|  12.0M|{
   30|  12.0M|   const int64_t X1 = (static_cast<int64_t>(1) << S);
   31|  12.0M|   const int64_t X2 = (static_cast<int64_t>(1) << (S - 1));
   32|  12.0M|   const int64_t c = (h0 + X2) >> S;
   33|  12.0M|   h1 += c * MUL;
   34|  12.0M|   h0 -= c * X1;
   35|  12.0M|}
_ZN5Botan6carry0ILm26EEEvRiS1_QaagtT_Li0EltT_Li32E:
   50|   119k|{
   51|   119k|   const int32_t X1 = (static_cast<int64_t>(1) << S);
   52|   119k|   const int32_t c = h0 >> S;
   53|   119k|   h1 += c;
   54|   119k|   h0 -= c * X1;
   55|   119k|}
_ZN5Botan6carry0ILm25EEEvRiS1_QaagtT_Li0EltT_Li32E:
   50|  95.2k|{
   51|  95.2k|   const int32_t X1 = (static_cast<int64_t>(1) << S);
   52|  95.2k|   const int32_t c = h0 >> S;
   53|  95.2k|   h1 += c;
   54|  95.2k|   h0 -= c * X1;
   55|  95.2k|}
_ZN5Botan5carryILm21ELl1EEEvRlS1_QaagtT_Li0EltT_Li64E:
   29|  92.5k|{
   30|  92.5k|   const int64_t X1 = (static_cast<int64_t>(1) << S);
   31|  92.5k|   const int64_t X2 = (static_cast<int64_t>(1) << (S - 1));
   32|  92.5k|   const int64_t c = (h0 + X2) >> S;
   33|  92.5k|   h1 += c * MUL;
   34|  92.5k|   h0 -= c * X1;
   35|  92.5k|}
_ZN5Botan6carry0ILm21EEEvRlS1_QaagtT_Li0EltT_Li64E:
   40|  96.5k|{
   41|  96.5k|   const int64_t X1 = (static_cast<int64_t>(1) << S);
   42|  96.5k|   const int64_t c = h0 >> S;
   43|  96.5k|   h1 += c;
   44|  96.5k|   h0 -= c * X1;
   45|  96.5k|}

ffi.cpp:_ZN9Botan_FFI15ffi_guard_thunkITkNSt3__19invocableEZ16botan_hex_encodeE3$_0EEiPKcT_:
   95|  31.7k|int ffi_guard_thunk(const char* func_name, T thunk) {
   96|  31.7k|   ffi_clear_last_exception();
   97|       |
   98|  31.7k|   try {
   99|  31.7k|      return thunk();
  100|  31.7k|   } catch(std::bad_alloc&) {
  101|      0|      return ffi_error_exception_thrown(func_name, "bad_alloc", BOTAN_FFI_ERROR_OUT_OF_MEMORY);
  102|      0|   } catch(Botan_FFI::FFI_Error& e) {
  103|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_code());
  104|      0|   } catch(Botan::Exception& e) {
  105|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_type());
  106|      0|   } catch(std::exception& e) {
  107|      0|      return ffi_error_exception_thrown(func_name, e.what(), BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  108|      0|   } catch(...) {
  109|      0|      return ffi_error_exception_thrown(func_name, "unknown exception", BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  110|      0|   }
  111|  31.7k|}
ffi.cpp:_ZN9Botan_FFI15ffi_guard_thunkITkNSt3__19invocableEZ16botan_hex_decodeE3$_0EEiPKcT_:
   95|   252k|int ffi_guard_thunk(const char* func_name, T thunk) {
   96|   252k|   ffi_clear_last_exception();
   97|       |
   98|   252k|   try {
   99|   252k|      return thunk();
  100|   252k|   } catch(std::bad_alloc&) {
  101|      0|      return ffi_error_exception_thrown(func_name, "bad_alloc", BOTAN_FFI_ERROR_OUT_OF_MEMORY);
  102|      0|   } catch(Botan_FFI::FFI_Error& e) {
  103|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_code());
  104|      0|   } catch(Botan::Exception& e) {
  105|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_type());
  106|      0|   } catch(std::exception& e) {
  107|      0|      return ffi_error_exception_thrown(func_name, e.what(), BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  108|      0|   } catch(...) {
  109|      0|      return ffi_error_exception_thrown(func_name, "unknown exception", BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  110|      0|   }
  111|   252k|}
_ZN9Botan_FFI16write_vec_outputEPhPmNSt3__14spanIKhLm18446744073709551615EEE:
  267|   256k|inline int write_vec_output(uint8_t out[], size_t* out_len, std::span<const uint8_t> buf) {
  268|   256k|   return write_output<uint8_t>(out, out_len, buf.data(), buf.size());
  269|   256k|}
_ZN9Botan_FFI12write_outputITkNSt3__18integralEhEEiPT_PmPKS2_m:
  252|   256k|inline int write_output(T out[], size_t* out_len, const T buf[], size_t buf_len) {
  253|   256k|   static_assert(sizeof(T) == 1, "T should be either uint8_t or char");
  254|       |
  255|   256k|   const auto rc = check_and_prepare_output_space(out, out_len, buf_len);
  256|   256k|   if(rc != BOTAN_FFI_SUCCESS) {
  ------------------
  |  Branch (256:7): [True: 0, False: 256k]
  ------------------
  257|      0|      return rc;
  258|      0|   }
  259|       |
  260|   256k|   if(out != nullptr) {
  ------------------
  |  Branch (260:7): [True: 256k, False: 0]
  ------------------
  261|   256k|      std::memcpy(out, buf, sizeof(T) * buf_len);
  262|   256k|   }
  263|       |
  264|   256k|   return BOTAN_FFI_SUCCESS;
  265|   256k|}
_ZN9Botan_FFI30check_and_prepare_output_spaceITkNSt3__18integralEhQeqstT_Li1EEEiPS2_Pmm:
  233|   256k|inline int check_and_prepare_output_space(T out[], size_t* out_len, size_t required_len) {
  234|   256k|   if(out_len == nullptr) {
  ------------------
  |  Branch (234:7): [True: 0, False: 256k]
  ------------------
  235|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
  236|      0|   }
  237|       |
  238|   256k|   const size_t avail = *out_len;
  239|   256k|   *out_len = required_len;
  240|       |
  241|   256k|   if(avail < required_len || out == nullptr) {
  ------------------
  |  Branch (241:7): [True: 0, False: 256k]
  |  Branch (241:31): [True: 0, False: 256k]
  ------------------
  242|      0|      if(out != nullptr) {
  ------------------
  |  Branch (242:10): [True: 0, False: 0]
  ------------------
  243|      0|         std::memset(out, 0, sizeof(T) * avail);
  244|      0|      }
  245|      0|      return BOTAN_FFI_ERROR_INSUFFICIENT_BUFFER_SPACE;
  246|   256k|   } else {
  247|   256k|      return BOTAN_FFI_SUCCESS;
  248|   256k|   }
  249|   256k|}
ffi_block.cpp:_ZN9Botan_FFI15ffi_guard_thunkITkNSt3__19invocableEZ23botan_block_cipher_initE3$_0EEiPKcT_:
   95|  53.7k|int ffi_guard_thunk(const char* func_name, T thunk) {
   96|  53.7k|   ffi_clear_last_exception();
   97|       |
   98|  53.7k|   try {
   99|  53.7k|      return thunk();
  100|  53.7k|   } catch(std::bad_alloc&) {
  101|      0|      return ffi_error_exception_thrown(func_name, "bad_alloc", BOTAN_FFI_ERROR_OUT_OF_MEMORY);
  102|      0|   } catch(Botan_FFI::FFI_Error& e) {
  103|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_code());
  104|      0|   } catch(Botan::Exception& e) {
  105|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_type());
  106|      0|   } catch(std::exception& e) {
  107|      0|      return ffi_error_exception_thrown(func_name, e.what(), BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  108|      0|   } catch(...) {
  109|      0|      return ffi_error_exception_thrown(func_name, "unknown exception", BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  110|      0|   }
  111|  53.7k|}
_ZN9Botan_FFI14ffi_new_objectIP25botan_block_cipher_structJNSt3__110unique_ptrIN5Botan11BlockCipherENS3_14default_deleteIS6_EEEEEEE15BOTAN_FFI_ERRORPT_DpOT0_:
  178|  53.7k|BOTAN_FFI_ERROR ffi_new_object(T* obj, Args&&... args) {
  179|  53.7k|   if(obj == nullptr) {
  ------------------
  |  Branch (179:7): [True: 0, False: 53.7k]
  ------------------
  180|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
  181|      0|   }
  182|       |   // NOLINTNEXTLINE(*-owning-memory)
  183|  53.7k|   *obj = new std::remove_pointer_t<T>(std::forward<Args>(args)...);
  184|  53.7k|   return BOTAN_FFI_SUCCESS;
  185|  53.7k|}
_ZN25botan_block_cipher_structC2ENSt3__110unique_ptrIN5Botan11BlockCipherENS0_14default_deleteIS3_EEEE:
   63|  53.7k|         explicit NAME(std::unique_ptr<TYPE> x) : botan_struct(std::move(x)) {} \
_ZN9Botan_FFI12botan_structIN5Botan11BlockCipherELj1690474262EEC2ENSt3__110unique_ptrIS2_NS4_14default_deleteIS2_EEEE:
   38|  53.7k|      explicit botan_struct(std::unique_ptr<T> obj) : m_magic(MAGIC), m_obj(std::move(obj)) {}
_ZN9Botan_FFI12botan_structIN5Botan11BlockCipherELj1690474262EED2Ev:
   40|  53.7k|      virtual ~botan_struct() {
   41|  53.7k|         m_magic = 0;
   42|  53.7k|         m_obj.reset();  // NOLINT(*-ambiguous-smartptr-reset-call)
   43|  53.7k|      }
_ZN9Botan_FFI17ffi_delete_objectIN5Botan11BlockCipherELj1690474262EEEiPNS_12botan_structIT_XT0_EEEPKc:
  161|  53.7k|int ffi_delete_object(botan_struct<T, M>* obj, const char* func_name) {
  162|  53.7k|   return ffi_guard_thunk(func_name, [=]() -> int {
  163|       |      // ignore delete of null objects
  164|  53.7k|      if(obj == nullptr) {
  165|  53.7k|         return BOTAN_FFI_SUCCESS;
  166|  53.7k|      }
  167|       |
  168|  53.7k|      if(!obj->magic_ok()) {
  169|  53.7k|         return BOTAN_FFI_ERROR_INVALID_OBJECT;
  170|  53.7k|      }
  171|       |
  172|  53.7k|      delete obj;  // NOLINT(*-owning-memory)
  173|  53.7k|      return BOTAN_FFI_SUCCESS;
  174|  53.7k|   });
  175|  53.7k|}
_ZN9Botan_FFI15ffi_guard_thunkITkNSt3__19invocableEZNS_17ffi_delete_objectIN5Botan11BlockCipherELj1690474262EEEiPNS_12botan_structIT_XT0_EEEPKcEUlvE_EEiSA_S6_:
   95|  53.7k|int ffi_guard_thunk(const char* func_name, T thunk) {
   96|  53.7k|   ffi_clear_last_exception();
   97|       |
   98|  53.7k|   try {
   99|  53.7k|      return thunk();
  100|  53.7k|   } catch(std::bad_alloc&) {
  101|      0|      return ffi_error_exception_thrown(func_name, "bad_alloc", BOTAN_FFI_ERROR_OUT_OF_MEMORY);
  102|      0|   } catch(Botan_FFI::FFI_Error& e) {
  103|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_code());
  104|      0|   } catch(Botan::Exception& e) {
  105|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_type());
  106|      0|   } catch(std::exception& e) {
  107|      0|      return ffi_error_exception_thrown(func_name, e.what(), BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  108|      0|   } catch(...) {
  109|      0|      return ffi_error_exception_thrown(func_name, "unknown exception", BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  110|      0|   }
  111|  53.7k|}
_ZZN9Botan_FFI17ffi_delete_objectIN5Botan11BlockCipherELj1690474262EEEiPNS_12botan_structIT_XT0_EEEPKcENKUlvE_clEv:
  162|  53.7k|   return ffi_guard_thunk(func_name, [=]() -> int {
  163|       |      // ignore delete of null objects
  164|  53.7k|      if(obj == nullptr) {
  ------------------
  |  Branch (164:10): [True: 0, False: 53.7k]
  ------------------
  165|      0|         return BOTAN_FFI_SUCCESS;
  166|      0|      }
  167|       |
  168|  53.7k|      if(!obj->magic_ok()) {
  ------------------
  |  Branch (168:10): [True: 0, False: 53.7k]
  ------------------
  169|      0|         return BOTAN_FFI_ERROR_INVALID_OBJECT;
  170|      0|      }
  171|       |
  172|  53.7k|      delete obj;  // NOLINT(*-owning-memory)
  173|  53.7k|      return BOTAN_FFI_SUCCESS;
  174|  53.7k|   });
_ZNK9Botan_FFI12botan_structIN5Botan11BlockCipherELj1690474262EE8magic_okEv:
   50|   871k|      bool magic_ok() const { return (m_magic == MAGIC); }
_ZNK9Botan_FFI12botan_structIN5Botan11BlockCipherELj1690474262EE10unsafe_getEv:
   52|   817k|      T* unsafe_get() const { return m_obj.get(); }
ffi_block.cpp:_ZN9Botan_FFI15botan_ffi_visitIN5Botan11BlockCipherELj1690474262EZ26botan_block_cipher_set_keyE3$_0EEiPNS_12botan_structIT_XT0_EEET1_PKc:
  114|  53.7k|int botan_ffi_visit(botan_struct<T, M>* o, F func, const char* func_name) {
  115|  53.7k|   using RetT = std::invoke_result_t<F, T&>;
  116|  53.7k|   static_assert(std::is_void_v<RetT> || std::is_same_v<RetT, BOTAN_FFI_ERROR> || std::is_same_v<RetT, int>,
  117|  53.7k|                 "BOTAN_FFI_DO must be used with a block that returns either nothing, int or BOTAN_FFI_ERROR");
  118|       |
  119|  53.7k|   if(!o) {
  ------------------
  |  Branch (119:7): [True: 0, False: 53.7k]
  ------------------
  120|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
  121|      0|   }
  122|       |
  123|  53.7k|   if(!o->magic_ok()) {
  ------------------
  |  Branch (123:7): [True: 0, False: 53.7k]
  ------------------
  124|      0|      return BOTAN_FFI_ERROR_INVALID_OBJECT;
  125|      0|   }
  126|       |
  127|  53.7k|   T* p = o->unsafe_get();
  128|  53.7k|   if(p == nullptr) {
  ------------------
  |  Branch (128:7): [True: 0, False: 53.7k]
  ------------------
  129|      0|      return BOTAN_FFI_ERROR_INVALID_OBJECT;
  130|      0|   }
  131|       |
  132|  53.7k|   if constexpr(std::is_void_v<RetT>) {
  133|  53.7k|      return ffi_guard_thunk(func_name, [&] {
  134|  53.7k|         func(*p);
  135|  53.7k|         return BOTAN_FFI_SUCCESS;
  136|  53.7k|      });
  137|       |   } else {
  138|       |      return ffi_guard_thunk(func_name, [&] { return func(*p); });
  139|       |   }
  140|  53.7k|}
ffi_block.cpp:_ZN9Botan_FFI15ffi_guard_thunkITkNSt3__19invocableEZNS_15botan_ffi_visitIN5Botan11BlockCipherELj1690474262EZ26botan_block_cipher_set_keyE3$_0EEiPNS_12botan_structIT_XT0_EEET1_PKcEUlvE_EEiSC_S7_:
   95|  53.7k|int ffi_guard_thunk(const char* func_name, T thunk) {
   96|  53.7k|   ffi_clear_last_exception();
   97|       |
   98|  53.7k|   try {
   99|  53.7k|      return thunk();
  100|  53.7k|   } catch(std::bad_alloc&) {
  101|      0|      return ffi_error_exception_thrown(func_name, "bad_alloc", BOTAN_FFI_ERROR_OUT_OF_MEMORY);
  102|      0|   } catch(Botan_FFI::FFI_Error& e) {
  103|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_code());
  104|      0|   } catch(Botan::Exception& e) {
  105|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_type());
  106|      0|   } catch(std::exception& e) {
  107|      0|      return ffi_error_exception_thrown(func_name, e.what(), BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  108|      0|   } catch(...) {
  109|      0|      return ffi_error_exception_thrown(func_name, "unknown exception", BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  110|      0|   }
  111|  53.7k|}
ffi_block.cpp:_ZZN9Botan_FFI15botan_ffi_visitIN5Botan11BlockCipherELj1690474262EZ26botan_block_cipher_set_keyE3$_0EEiPNS_12botan_structIT_XT0_EEET1_PKcENKUlvE_clEv:
  133|  53.7k|      return ffi_guard_thunk(func_name, [&] {
  134|  53.7k|         func(*p);
  135|  53.7k|         return BOTAN_FFI_SUCCESS;
  136|  53.7k|      });
ffi_block.cpp:_ZZ26botan_block_cipher_set_keyENK3$_0clIN5Botan11BlockCipherEEEDaRT_:
  158|  53.7k|#define BOTAN_FFI_VISIT(obj, lambda) botan_ffi_visit(obj, lambda, __func__)
ffi_block.cpp:_ZN9Botan_FFI15botan_ffi_visitIN5Botan11BlockCipherELj1690474262EZ33botan_block_cipher_encrypt_blocksE3$_0EEiPNS_12botan_structIT_XT0_EEET1_PKc:
  114|   763k|int botan_ffi_visit(botan_struct<T, M>* o, F func, const char* func_name) {
  115|   763k|   using RetT = std::invoke_result_t<F, T&>;
  116|   763k|   static_assert(std::is_void_v<RetT> || std::is_same_v<RetT, BOTAN_FFI_ERROR> || std::is_same_v<RetT, int>,
  117|   763k|                 "BOTAN_FFI_DO must be used with a block that returns either nothing, int or BOTAN_FFI_ERROR");
  118|       |
  119|   763k|   if(!o) {
  ------------------
  |  Branch (119:7): [True: 0, False: 763k]
  ------------------
  120|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
  121|      0|   }
  122|       |
  123|   763k|   if(!o->magic_ok()) {
  ------------------
  |  Branch (123:7): [True: 0, False: 763k]
  ------------------
  124|      0|      return BOTAN_FFI_ERROR_INVALID_OBJECT;
  125|      0|   }
  126|       |
  127|   763k|   T* p = o->unsafe_get();
  128|   763k|   if(p == nullptr) {
  ------------------
  |  Branch (128:7): [True: 0, False: 763k]
  ------------------
  129|      0|      return BOTAN_FFI_ERROR_INVALID_OBJECT;
  130|      0|   }
  131|       |
  132|   763k|   if constexpr(std::is_void_v<RetT>) {
  133|   763k|      return ffi_guard_thunk(func_name, [&] {
  134|   763k|         func(*p);
  135|   763k|         return BOTAN_FFI_SUCCESS;
  136|   763k|      });
  137|       |   } else {
  138|       |      return ffi_guard_thunk(func_name, [&] { return func(*p); });
  139|       |   }
  140|   763k|}
ffi_block.cpp:_ZN9Botan_FFI15ffi_guard_thunkITkNSt3__19invocableEZNS_15botan_ffi_visitIN5Botan11BlockCipherELj1690474262EZ33botan_block_cipher_encrypt_blocksE3$_0EEiPNS_12botan_structIT_XT0_EEET1_PKcEUlvE_EEiSC_S7_:
   95|   763k|int ffi_guard_thunk(const char* func_name, T thunk) {
   96|   763k|   ffi_clear_last_exception();
   97|       |
   98|   763k|   try {
   99|   763k|      return thunk();
  100|   763k|   } catch(std::bad_alloc&) {
  101|      0|      return ffi_error_exception_thrown(func_name, "bad_alloc", BOTAN_FFI_ERROR_OUT_OF_MEMORY);
  102|      0|   } catch(Botan_FFI::FFI_Error& e) {
  103|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_code());
  104|      0|   } catch(Botan::Exception& e) {
  105|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_type());
  106|      0|   } catch(std::exception& e) {
  107|      0|      return ffi_error_exception_thrown(func_name, e.what(), BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  108|      0|   } catch(...) {
  109|      0|      return ffi_error_exception_thrown(func_name, "unknown exception", BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  110|      0|   }
  111|   763k|}
ffi_block.cpp:_ZZN9Botan_FFI15botan_ffi_visitIN5Botan11BlockCipherELj1690474262EZ33botan_block_cipher_encrypt_blocksE3$_0EEiPNS_12botan_structIT_XT0_EEET1_PKcENKUlvE_clEv:
  133|   763k|      return ffi_guard_thunk(func_name, [&] {
  134|   763k|         func(*p);
  135|   763k|         return BOTAN_FFI_SUCCESS;
  136|   763k|      });
ffi_block.cpp:_ZZ33botan_block_cipher_encrypt_blocksENK3$_0clIN5Botan11BlockCipherEEEDaRKT_:
  158|   763k|#define BOTAN_FFI_VISIT(obj, lambda) botan_ffi_visit(obj, lambda, __func__)
_ZN19botan_pubkey_structC2ENSt3__110unique_ptrIN5Botan10Public_KeyENS0_14default_deleteIS3_EEEE:
   63|  27.4k|         explicit NAME(std::unique_ptr<TYPE> x) : botan_struct(std::move(x)) {} \
_ZN16botan_rng_structC2ENSt3__110unique_ptrIN5Botan21RandomNumberGeneratorENS0_14default_deleteIS3_EEEE:
   63|  15.6k|         explicit NAME(std::unique_ptr<TYPE> x) : botan_struct(std::move(x)) {} \
ffi_cipher.cpp:_ZN9Botan_FFI15ffi_guard_thunkITkNSt3__19invocableEZ17botan_cipher_initE3$_0EEiPKcT_:
   95|  3.29k|int ffi_guard_thunk(const char* func_name, T thunk) {
   96|  3.29k|   ffi_clear_last_exception();
   97|       |
   98|  3.29k|   try {
   99|  3.29k|      return thunk();
  100|  3.29k|   } catch(std::bad_alloc&) {
  101|      0|      return ffi_error_exception_thrown(func_name, "bad_alloc", BOTAN_FFI_ERROR_OUT_OF_MEMORY);
  102|      0|   } catch(Botan_FFI::FFI_Error& e) {
  103|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_code());
  104|  2.30k|   } catch(Botan::Exception& e) {
  105|  2.30k|      return ffi_error_exception_thrown(func_name, e.what(), e.error_type());
  106|  2.30k|   } catch(std::exception& e) {
  107|      0|      return ffi_error_exception_thrown(func_name, e.what(), BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  108|      0|   } catch(...) {
  109|      0|      return ffi_error_exception_thrown(func_name, "unknown exception", BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  110|      0|   }
  111|  3.29k|}
_ZN9Botan_FFI14ffi_new_objectIP19botan_cipher_structJNSt3__110unique_ptrIN5Botan11Cipher_ModeENS3_14default_deleteIS6_EEEERKmSB_EEE15BOTAN_FFI_ERRORPT_DpOT0_:
  178|    984|BOTAN_FFI_ERROR ffi_new_object(T* obj, Args&&... args) {
  179|    984|   if(obj == nullptr) {
  ------------------
  |  Branch (179:7): [True: 0, False: 984]
  ------------------
  180|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
  181|      0|   }
  182|       |   // NOLINTNEXTLINE(*-owning-memory)
  183|    984|   *obj = new std::remove_pointer_t<T>(std::forward<Args>(args)...);
  184|    984|   return BOTAN_FFI_SUCCESS;
  185|    984|}
_ZN9Botan_FFI12botan_structIN5Botan11Cipher_ModeELj3030564764EEC2ENSt3__110unique_ptrIS2_NS4_14default_deleteIS2_EEEE:
   38|    984|      explicit botan_struct(std::unique_ptr<T> obj) : m_magic(MAGIC), m_obj(std::move(obj)) {}
_ZN9Botan_FFI12botan_structIN5Botan11Cipher_ModeELj3030564764EED2Ev:
   40|    984|      virtual ~botan_struct() {
   41|    984|         m_magic = 0;
   42|    984|         m_obj.reset();  // NOLINT(*-ambiguous-smartptr-reset-call)
   43|    984|      }
_ZN9Botan_FFI17ffi_delete_objectIN5Botan11Cipher_ModeELj3030564764EEEiPNS_12botan_structIT_XT0_EEEPKc:
  161|    984|int ffi_delete_object(botan_struct<T, M>* obj, const char* func_name) {
  162|    984|   return ffi_guard_thunk(func_name, [=]() -> int {
  163|       |      // ignore delete of null objects
  164|    984|      if(obj == nullptr) {
  165|    984|         return BOTAN_FFI_SUCCESS;
  166|    984|      }
  167|       |
  168|    984|      if(!obj->magic_ok()) {
  169|    984|         return BOTAN_FFI_ERROR_INVALID_OBJECT;
  170|    984|      }
  171|       |
  172|    984|      delete obj;  // NOLINT(*-owning-memory)
  173|    984|      return BOTAN_FFI_SUCCESS;
  174|    984|   });
  175|    984|}
_ZN9Botan_FFI15ffi_guard_thunkITkNSt3__19invocableEZNS_17ffi_delete_objectIN5Botan11Cipher_ModeELj3030564764EEEiPNS_12botan_structIT_XT0_EEEPKcEUlvE_EEiSA_S6_:
   95|    984|int ffi_guard_thunk(const char* func_name, T thunk) {
   96|    984|   ffi_clear_last_exception();
   97|       |
   98|    984|   try {
   99|    984|      return thunk();
  100|    984|   } catch(std::bad_alloc&) {
  101|      0|      return ffi_error_exception_thrown(func_name, "bad_alloc", BOTAN_FFI_ERROR_OUT_OF_MEMORY);
  102|      0|   } catch(Botan_FFI::FFI_Error& e) {
  103|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_code());
  104|      0|   } catch(Botan::Exception& e) {
  105|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_type());
  106|      0|   } catch(std::exception& e) {
  107|      0|      return ffi_error_exception_thrown(func_name, e.what(), BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  108|      0|   } catch(...) {
  109|      0|      return ffi_error_exception_thrown(func_name, "unknown exception", BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  110|      0|   }
  111|    984|}
_ZZN9Botan_FFI17ffi_delete_objectIN5Botan11Cipher_ModeELj3030564764EEEiPNS_12botan_structIT_XT0_EEEPKcENKUlvE_clEv:
  162|    984|   return ffi_guard_thunk(func_name, [=]() -> int {
  163|       |      // ignore delete of null objects
  164|    984|      if(obj == nullptr) {
  ------------------
  |  Branch (164:10): [True: 0, False: 984]
  ------------------
  165|      0|         return BOTAN_FFI_SUCCESS;
  166|      0|      }
  167|       |
  168|    984|      if(!obj->magic_ok()) {
  ------------------
  |  Branch (168:10): [True: 0, False: 984]
  ------------------
  169|      0|         return BOTAN_FFI_ERROR_INVALID_OBJECT;
  170|      0|      }
  171|       |
  172|    984|      delete obj;  // NOLINT(*-owning-memory)
  173|    984|      return BOTAN_FFI_SUCCESS;
  174|    984|   });
_ZNK9Botan_FFI12botan_structIN5Botan11Cipher_ModeELj3030564764EE8magic_okEv:
   50|  6.28k|      bool magic_ok() const { return (m_magic == MAGIC); }
_ZNK9Botan_FFI12botan_structIN5Botan11Cipher_ModeELj3030564764EE10unsafe_getEv:
   52|  5.30k|      T* unsafe_get() const { return m_obj.get(); }
ffi_cipher.cpp:_ZN9Botan_FFI15botan_ffi_visitIN5Botan11Cipher_ModeELj3030564764EZ18botan_cipher_resetE3$_0EEiPNS_12botan_structIT_XT0_EEET1_PKc:
  114|     34|int botan_ffi_visit(botan_struct<T, M>* o, F func, const char* func_name) {
  115|     34|   using RetT = std::invoke_result_t<F, T&>;
  116|     34|   static_assert(std::is_void_v<RetT> || std::is_same_v<RetT, BOTAN_FFI_ERROR> || std::is_same_v<RetT, int>,
  117|     34|                 "BOTAN_FFI_DO must be used with a block that returns either nothing, int or BOTAN_FFI_ERROR");
  118|       |
  119|     34|   if(!o) {
  ------------------
  |  Branch (119:7): [True: 0, False: 34]
  ------------------
  120|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
  121|      0|   }
  122|       |
  123|     34|   if(!o->magic_ok()) {
  ------------------
  |  Branch (123:7): [True: 0, False: 34]
  ------------------
  124|      0|      return BOTAN_FFI_ERROR_INVALID_OBJECT;
  125|      0|   }
  126|       |
  127|     34|   T* p = o->unsafe_get();
  128|     34|   if(p == nullptr) {
  ------------------
  |  Branch (128:7): [True: 0, False: 34]
  ------------------
  129|      0|      return BOTAN_FFI_ERROR_INVALID_OBJECT;
  130|      0|   }
  131|       |
  132|     34|   if constexpr(std::is_void_v<RetT>) {
  133|     34|      return ffi_guard_thunk(func_name, [&] {
  134|     34|         func(*p);
  135|     34|         return BOTAN_FFI_SUCCESS;
  136|     34|      });
  137|       |   } else {
  138|       |      return ffi_guard_thunk(func_name, [&] { return func(*p); });
  139|       |   }
  140|     34|}
ffi_cipher.cpp:_ZN9Botan_FFI15ffi_guard_thunkITkNSt3__19invocableEZNS_15botan_ffi_visitIN5Botan11Cipher_ModeELj3030564764EZ18botan_cipher_resetE3$_0EEiPNS_12botan_structIT_XT0_EEET1_PKcEUlvE_EEiSC_S7_:
   95|     34|int ffi_guard_thunk(const char* func_name, T thunk) {
   96|     34|   ffi_clear_last_exception();
   97|       |
   98|     34|   try {
   99|     34|      return thunk();
  100|     34|   } catch(std::bad_alloc&) {
  101|      0|      return ffi_error_exception_thrown(func_name, "bad_alloc", BOTAN_FFI_ERROR_OUT_OF_MEMORY);
  102|      0|   } catch(Botan_FFI::FFI_Error& e) {
  103|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_code());
  104|      0|   } catch(Botan::Exception& e) {
  105|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_type());
  106|      0|   } catch(std::exception& e) {
  107|      0|      return ffi_error_exception_thrown(func_name, e.what(), BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  108|      0|   } catch(...) {
  109|      0|      return ffi_error_exception_thrown(func_name, "unknown exception", BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  110|      0|   }
  111|     34|}
ffi_cipher.cpp:_ZZN9Botan_FFI15botan_ffi_visitIN5Botan11Cipher_ModeELj3030564764EZ18botan_cipher_resetE3$_0EEiPNS_12botan_structIT_XT0_EEET1_PKcENKUlvE_clEv:
  133|     34|      return ffi_guard_thunk(func_name, [&] {
  134|     34|         func(*p);
  135|     34|         return BOTAN_FFI_SUCCESS;
  136|     34|      });
ffi_cipher.cpp:_ZZ18botan_cipher_resetENK3$_0clIN5Botan11Cipher_ModeEEEDaRT_:
  158|     34|#define BOTAN_FFI_VISIT(obj, lambda) botan_ffi_visit(obj, lambda, __func__)
ffi_cipher.cpp:_ZN9Botan_FFI15botan_ffi_visitIN5Botan11Cipher_ModeELj3030564764EZ20botan_cipher_set_keyE3$_0EEiPNS_12botan_structIT_XT0_EEET1_PKc:
  114|    984|int botan_ffi_visit(botan_struct<T, M>* o, F func, const char* func_name) {
  115|    984|   using RetT = std::invoke_result_t<F, T&>;
  116|    984|   static_assert(std::is_void_v<RetT> || std::is_same_v<RetT, BOTAN_FFI_ERROR> || std::is_same_v<RetT, int>,
  117|    984|                 "BOTAN_FFI_DO must be used with a block that returns either nothing, int or BOTAN_FFI_ERROR");
  118|       |
  119|    984|   if(!o) {
  ------------------
  |  Branch (119:7): [True: 0, False: 984]
  ------------------
  120|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
  121|      0|   }
  122|       |
  123|    984|   if(!o->magic_ok()) {
  ------------------
  |  Branch (123:7): [True: 0, False: 984]
  ------------------
  124|      0|      return BOTAN_FFI_ERROR_INVALID_OBJECT;
  125|      0|   }
  126|       |
  127|    984|   T* p = o->unsafe_get();
  128|    984|   if(p == nullptr) {
  ------------------
  |  Branch (128:7): [True: 0, False: 984]
  ------------------
  129|      0|      return BOTAN_FFI_ERROR_INVALID_OBJECT;
  130|      0|   }
  131|       |
  132|    984|   if constexpr(std::is_void_v<RetT>) {
  133|    984|      return ffi_guard_thunk(func_name, [&] {
  134|    984|         func(*p);
  135|    984|         return BOTAN_FFI_SUCCESS;
  136|    984|      });
  137|       |   } else {
  138|       |      return ffi_guard_thunk(func_name, [&] { return func(*p); });
  139|       |   }
  140|    984|}
ffi_cipher.cpp:_ZN9Botan_FFI15ffi_guard_thunkITkNSt3__19invocableEZNS_15botan_ffi_visitIN5Botan11Cipher_ModeELj3030564764EZ20botan_cipher_set_keyE3$_0EEiPNS_12botan_structIT_XT0_EEET1_PKcEUlvE_EEiSC_S7_:
   95|    984|int ffi_guard_thunk(const char* func_name, T thunk) {
   96|    984|   ffi_clear_last_exception();
   97|       |
   98|    984|   try {
   99|    984|      return thunk();
  100|    984|   } catch(std::bad_alloc&) {
  101|      0|      return ffi_error_exception_thrown(func_name, "bad_alloc", BOTAN_FFI_ERROR_OUT_OF_MEMORY);
  102|      0|   } catch(Botan_FFI::FFI_Error& e) {
  103|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_code());
  104|      0|   } catch(Botan::Exception& e) {
  105|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_type());
  106|      0|   } catch(std::exception& e) {
  107|      0|      return ffi_error_exception_thrown(func_name, e.what(), BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  108|      0|   } catch(...) {
  109|      0|      return ffi_error_exception_thrown(func_name, "unknown exception", BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  110|      0|   }
  111|    984|}
ffi_cipher.cpp:_ZZN9Botan_FFI15botan_ffi_visitIN5Botan11Cipher_ModeELj3030564764EZ20botan_cipher_set_keyE3$_0EEiPNS_12botan_structIT_XT0_EEET1_PKcENKUlvE_clEv:
  133|    984|      return ffi_guard_thunk(func_name, [&] {
  134|    984|         func(*p);
  135|    984|         return BOTAN_FFI_SUCCESS;
  136|    984|      });
ffi_cipher.cpp:_ZZ20botan_cipher_set_keyENK3$_0clIN5Botan11Cipher_ModeEEEDaRT_:
  158|    984|#define BOTAN_FFI_VISIT(obj, lambda) botan_ffi_visit(obj, lambda, __func__)
ffi_cipher.cpp:_ZN9Botan_FFI15ffi_guard_thunkITkNSt3__19invocableEZ18botan_cipher_startE3$_0EEiPKcT_:
   95|  1.01k|int ffi_guard_thunk(const char* func_name, T thunk) {
   96|  1.01k|   ffi_clear_last_exception();
   97|       |
   98|  1.01k|   try {
   99|  1.01k|      return thunk();
  100|  1.01k|   } catch(std::bad_alloc&) {
  101|      0|      return ffi_error_exception_thrown(func_name, "bad_alloc", BOTAN_FFI_ERROR_OUT_OF_MEMORY);
  102|      0|   } catch(Botan_FFI::FFI_Error& e) {
  103|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_code());
  104|      0|   } catch(Botan::Exception& e) {
  105|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_type());
  106|      0|   } catch(std::exception& e) {
  107|      0|      return ffi_error_exception_thrown(func_name, e.what(), BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  108|      0|   } catch(...) {
  109|      0|      return ffi_error_exception_thrown(func_name, "unknown exception", BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  110|      0|   }
  111|  1.01k|}
_ZN9Botan_FFI8safe_getIN5Botan11Cipher_ModeELj3030564764EEERT_PNS_12botan_structIS3_XT0_EEE:
   79|  2.28k|T& safe_get(botan_struct<T, M>* p) {
   80|  2.28k|   if(!p) {
  ------------------
  |  Branch (80:7): [True: 0, False: 2.28k]
  ------------------
   81|      0|      throw FFI_Error("Null pointer argument", BOTAN_FFI_ERROR_NULL_POINTER);
   82|      0|   }
   83|  2.28k|   if(!p->magic_ok()) {
  ------------------
  |  Branch (83:7): [True: 0, False: 2.28k]
  ------------------
   84|      0|      throw FFI_Error("Bad magic in ffi object", BOTAN_FFI_ERROR_INVALID_OBJECT);
   85|      0|   }
   86|       |
   87|  2.28k|   if(T* t = p->unsafe_get()) {
  ------------------
  |  Branch (87:10): [True: 2.28k, False: 0]
  ------------------
   88|  2.28k|      return *t;
   89|  2.28k|   }
   90|       |
   91|      0|   throw FFI_Error("Invalid object pointer", BOTAN_FFI_ERROR_INVALID_OBJECT);
   92|  2.28k|}
ffi_cipher.cpp:_ZN9Botan_FFI15ffi_guard_thunkITkNSt3__19invocableEZ19botan_cipher_updateE3$_0EEiPKcT_:
   95|  1.26k|int ffi_guard_thunk(const char* func_name, T thunk) {
   96|  1.26k|   ffi_clear_last_exception();
   97|       |
   98|  1.26k|   try {
   99|  1.26k|      return thunk();
  100|  1.26k|   } catch(std::bad_alloc&) {
  101|      0|      return ffi_error_exception_thrown(func_name, "bad_alloc", BOTAN_FFI_ERROR_OUT_OF_MEMORY);
  102|      0|   } catch(Botan_FFI::FFI_Error& e) {
  103|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_code());
  104|      0|   } catch(Botan::Exception& e) {
  105|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_type());
  106|      0|   } catch(std::exception& e) {
  107|      0|      return ffi_error_exception_thrown(func_name, e.what(), BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  108|      0|   } catch(...) {
  109|      0|      return ffi_error_exception_thrown(func_name, "unknown exception", BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  110|      0|   }
  111|  1.26k|}
ffi_cipher.cpp:_ZN9Botan_FFI15botan_ffi_visitIN5Botan11Cipher_ModeELj3030564764EZ32botan_cipher_set_associated_dataE3$_0EEiPNS_12botan_structIT_XT0_EEET1_PKc:
  114|  1.01k|int botan_ffi_visit(botan_struct<T, M>* o, F func, const char* func_name) {
  115|  1.01k|   using RetT = std::invoke_result_t<F, T&>;
  116|  1.01k|   static_assert(std::is_void_v<RetT> || std::is_same_v<RetT, BOTAN_FFI_ERROR> || std::is_same_v<RetT, int>,
  117|  1.01k|                 "BOTAN_FFI_DO must be used with a block that returns either nothing, int or BOTAN_FFI_ERROR");
  118|       |
  119|  1.01k|   if(!o) {
  ------------------
  |  Branch (119:7): [True: 0, False: 1.01k]
  ------------------
  120|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
  121|      0|   }
  122|       |
  123|  1.01k|   if(!o->magic_ok()) {
  ------------------
  |  Branch (123:7): [True: 0, False: 1.01k]
  ------------------
  124|      0|      return BOTAN_FFI_ERROR_INVALID_OBJECT;
  125|      0|   }
  126|       |
  127|  1.01k|   T* p = o->unsafe_get();
  128|  1.01k|   if(p == nullptr) {
  ------------------
  |  Branch (128:7): [True: 0, False: 1.01k]
  ------------------
  129|      0|      return BOTAN_FFI_ERROR_INVALID_OBJECT;
  130|      0|   }
  131|       |
  132|       |   if constexpr(std::is_void_v<RetT>) {
  133|       |      return ffi_guard_thunk(func_name, [&] {
  134|       |         func(*p);
  135|       |         return BOTAN_FFI_SUCCESS;
  136|       |      });
  137|  1.01k|   } else {
  138|  1.01k|      return ffi_guard_thunk(func_name, [&] { return func(*p); });
  139|  1.01k|   }
  140|  1.01k|}
ffi_cipher.cpp:_ZN9Botan_FFI15ffi_guard_thunkITkNSt3__19invocableEZNS_15botan_ffi_visitIN5Botan11Cipher_ModeELj3030564764EZ32botan_cipher_set_associated_dataE3$_0EEiPNS_12botan_structIT_XT0_EEET1_PKcEUlvE_EEiSC_S7_:
   95|  1.01k|int ffi_guard_thunk(const char* func_name, T thunk) {
   96|  1.01k|   ffi_clear_last_exception();
   97|       |
   98|  1.01k|   try {
   99|  1.01k|      return thunk();
  100|  1.01k|   } catch(std::bad_alloc&) {
  101|      0|      return ffi_error_exception_thrown(func_name, "bad_alloc", BOTAN_FFI_ERROR_OUT_OF_MEMORY);
  102|      0|   } catch(Botan_FFI::FFI_Error& e) {
  103|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_code());
  104|      0|   } catch(Botan::Exception& e) {
  105|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_type());
  106|      0|   } catch(std::exception& e) {
  107|      0|      return ffi_error_exception_thrown(func_name, e.what(), BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  108|      0|   } catch(...) {
  109|      0|      return ffi_error_exception_thrown(func_name, "unknown exception", BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  110|      0|   }
  111|  1.01k|}
ffi_cipher.cpp:_ZZN9Botan_FFI15botan_ffi_visitIN5Botan11Cipher_ModeELj3030564764EZ32botan_cipher_set_associated_dataE3$_0EEiPNS_12botan_structIT_XT0_EEET1_PKcENKUlvE_clEv:
  138|  1.01k|      return ffi_guard_thunk(func_name, [&] { return func(*p); });
ffi_cipher.cpp:_ZZ32botan_cipher_set_associated_dataENK3$_0clIN5Botan11Cipher_ModeEEEDaRT_:
  158|  3.05k|#define BOTAN_FFI_VISIT(obj, lambda) botan_ffi_visit(obj, lambda, __func__)
  ------------------
  |  Branch (158:59): [True: 1.01k, False: 0]
  ------------------
ffi_cipher.cpp:_ZN9Botan_FFI15botan_ffi_visitIN5Botan11Cipher_ModeELj3030564764EZ35botan_cipher_get_update_granularityE3$_0EEiPNS_12botan_structIT_XT0_EEET1_PKc:
  114|    984|int botan_ffi_visit(botan_struct<T, M>* o, F func, const char* func_name) {
  115|    984|   using RetT = std::invoke_result_t<F, T&>;
  116|    984|   static_assert(std::is_void_v<RetT> || std::is_same_v<RetT, BOTAN_FFI_ERROR> || std::is_same_v<RetT, int>,
  117|    984|                 "BOTAN_FFI_DO must be used with a block that returns either nothing, int or BOTAN_FFI_ERROR");
  118|       |
  119|    984|   if(!o) {
  ------------------
  |  Branch (119:7): [True: 0, False: 984]
  ------------------
  120|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
  121|      0|   }
  122|       |
  123|    984|   if(!o->magic_ok()) {
  ------------------
  |  Branch (123:7): [True: 0, False: 984]
  ------------------
  124|      0|      return BOTAN_FFI_ERROR_INVALID_OBJECT;
  125|      0|   }
  126|       |
  127|    984|   T* p = o->unsafe_get();
  128|    984|   if(p == nullptr) {
  ------------------
  |  Branch (128:7): [True: 0, False: 984]
  ------------------
  129|      0|      return BOTAN_FFI_ERROR_INVALID_OBJECT;
  130|      0|   }
  131|       |
  132|    984|   if constexpr(std::is_void_v<RetT>) {
  133|    984|      return ffi_guard_thunk(func_name, [&] {
  134|    984|         func(*p);
  135|    984|         return BOTAN_FFI_SUCCESS;
  136|    984|      });
  137|       |   } else {
  138|       |      return ffi_guard_thunk(func_name, [&] { return func(*p); });
  139|       |   }
  140|    984|}
ffi_cipher.cpp:_ZN9Botan_FFI15ffi_guard_thunkITkNSt3__19invocableEZNS_15botan_ffi_visitIN5Botan11Cipher_ModeELj3030564764EZ35botan_cipher_get_update_granularityE3$_0EEiPNS_12botan_structIT_XT0_EEET1_PKcEUlvE_EEiSC_S7_:
   95|    984|int ffi_guard_thunk(const char* func_name, T thunk) {
   96|    984|   ffi_clear_last_exception();
   97|       |
   98|    984|   try {
   99|    984|      return thunk();
  100|    984|   } catch(std::bad_alloc&) {
  101|      0|      return ffi_error_exception_thrown(func_name, "bad_alloc", BOTAN_FFI_ERROR_OUT_OF_MEMORY);
  102|      0|   } catch(Botan_FFI::FFI_Error& e) {
  103|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_code());
  104|      0|   } catch(Botan::Exception& e) {
  105|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_type());
  106|      0|   } catch(std::exception& e) {
  107|      0|      return ffi_error_exception_thrown(func_name, e.what(), BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  108|      0|   } catch(...) {
  109|      0|      return ffi_error_exception_thrown(func_name, "unknown exception", BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  110|      0|   }
  111|    984|}
ffi_cipher.cpp:_ZZN9Botan_FFI15botan_ffi_visitIN5Botan11Cipher_ModeELj3030564764EZ35botan_cipher_get_update_granularityE3$_0EEiPNS_12botan_structIT_XT0_EEET1_PKcENKUlvE_clEv:
  133|    984|      return ffi_guard_thunk(func_name, [&] {
  134|    984|         func(*p);
  135|    984|         return BOTAN_FFI_SUCCESS;
  136|    984|      });
ffi_cipher.cpp:_ZZ35botan_cipher_get_update_granularityENK3$_0clIN5Botan11Cipher_ModeEEEDaRKT_:
  158|    984|#define BOTAN_FFI_VISIT(obj, lambda) botan_ffi_visit(obj, lambda, __func__)
_ZN9Botan_FFI8safe_getIN5Botan6BigIntELj3358112210EEERT_PNS_12botan_structIS3_XT0_EEE:
   79|  48.1k|T& safe_get(botan_struct<T, M>* p) {
   80|  48.1k|   if(!p) {
  ------------------
  |  Branch (80:7): [True: 0, False: 48.1k]
  ------------------
   81|      0|      throw FFI_Error("Null pointer argument", BOTAN_FFI_ERROR_NULL_POINTER);
   82|      0|   }
   83|  48.1k|   if(!p->magic_ok()) {
  ------------------
  |  Branch (83:7): [True: 0, False: 48.1k]
  ------------------
   84|      0|      throw FFI_Error("Bad magic in ffi object", BOTAN_FFI_ERROR_INVALID_OBJECT);
   85|      0|   }
   86|       |
   87|  48.1k|   if(T* t = p->unsafe_get()) {
  ------------------
  |  Branch (87:10): [True: 48.1k, False: 0]
  ------------------
   88|  48.1k|      return *t;
   89|  48.1k|   }
   90|       |
   91|      0|   throw FFI_Error("Invalid object pointer", BOTAN_FFI_ERROR_INVALID_OBJECT);
   92|  48.1k|}
_ZNK9Botan_FFI12botan_structIN5Botan6BigIntELj3358112210EE8magic_okEv:
   50|   144k|      bool magic_ok() const { return (m_magic == MAGIC); }
_ZNK9Botan_FFI12botan_structIN5Botan6BigIntELj3358112210EE10unsafe_getEv:
   52|  96.3k|      T* unsafe_get() const { return m_obj.get(); }
_ZN9Botan_FFI14ffi_new_objectIP15botan_mp_structJNSt3__110unique_ptrIN5Botan6BigIntENS3_14default_deleteIS6_EEEEEEE15BOTAN_FFI_ERRORPT_DpOT0_:
  178|  48.1k|BOTAN_FFI_ERROR ffi_new_object(T* obj, Args&&... args) {
  179|  48.1k|   if(obj == nullptr) {
  ------------------
  |  Branch (179:7): [True: 0, False: 48.1k]
  ------------------
  180|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
  181|      0|   }
  182|       |   // NOLINTNEXTLINE(*-owning-memory)
  183|  48.1k|   *obj = new std::remove_pointer_t<T>(std::forward<Args>(args)...);
  184|  48.1k|   return BOTAN_FFI_SUCCESS;
  185|  48.1k|}
_ZN15botan_mp_structC2ENSt3__110unique_ptrIN5Botan6BigIntENS0_14default_deleteIS3_EEEE:
   63|  48.1k|         explicit NAME(std::unique_ptr<TYPE> x) : botan_struct(std::move(x)) {} \
_ZN9Botan_FFI12botan_structIN5Botan6BigIntELj3358112210EEC2ENSt3__110unique_ptrIS2_NS4_14default_deleteIS2_EEEE:
   38|  48.1k|      explicit botan_struct(std::unique_ptr<T> obj) : m_magic(MAGIC), m_obj(std::move(obj)) {}
_ZN9Botan_FFI12botan_structIN5Botan6BigIntELj3358112210EED2Ev:
   40|  48.1k|      virtual ~botan_struct() {
   41|  48.1k|         m_magic = 0;
   42|  48.1k|         m_obj.reset();  // NOLINT(*-ambiguous-smartptr-reset-call)
   43|  48.1k|      }
_ZNK9Botan_FFI12botan_structIN5Botan21RandomNumberGeneratorELj1224866241EE8magic_okEv:
   50|  15.6k|      bool magic_ok() const { return (m_magic == MAGIC); }
ffi_hash.cpp:_ZN9Botan_FFI15ffi_guard_thunkITkNSt3__19invocableEZ15botan_hash_initE3$_0EEiPKcT_:
   95|  79.3k|int ffi_guard_thunk(const char* func_name, T thunk) {
   96|  79.3k|   ffi_clear_last_exception();
   97|       |
   98|  79.3k|   try {
   99|  79.3k|      return thunk();
  100|  79.3k|   } catch(std::bad_alloc&) {
  101|      0|      return ffi_error_exception_thrown(func_name, "bad_alloc", BOTAN_FFI_ERROR_OUT_OF_MEMORY);
  102|      0|   } catch(Botan_FFI::FFI_Error& e) {
  103|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_code());
  104|      0|   } catch(Botan::Exception& e) {
  105|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_type());
  106|      0|   } catch(std::exception& e) {
  107|      0|      return ffi_error_exception_thrown(func_name, e.what(), BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  108|      0|   } catch(...) {
  109|      0|      return ffi_error_exception_thrown(func_name, "unknown exception", BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  110|      0|   }
  111|  79.3k|}
_ZN9Botan_FFI14ffi_new_objectIP17botan_hash_structJNSt3__110unique_ptrIN5Botan12HashFunctionENS3_14default_deleteIS6_EEEEEEE15BOTAN_FFI_ERRORPT_DpOT0_:
  178|  79.2k|BOTAN_FFI_ERROR ffi_new_object(T* obj, Args&&... args) {
  179|  79.2k|   if(obj == nullptr) {
  ------------------
  |  Branch (179:7): [True: 0, False: 79.2k]
  ------------------
  180|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
  181|      0|   }
  182|       |   // NOLINTNEXTLINE(*-owning-memory)
  183|  79.2k|   *obj = new std::remove_pointer_t<T>(std::forward<Args>(args)...);
  184|  79.2k|   return BOTAN_FFI_SUCCESS;
  185|  79.2k|}
_ZN17botan_hash_structC2ENSt3__110unique_ptrIN5Botan12HashFunctionENS0_14default_deleteIS3_EEEE:
   63|  79.2k|         explicit NAME(std::unique_ptr<TYPE> x) : botan_struct(std::move(x)) {} \
_ZN9Botan_FFI12botan_structIN5Botan12HashFunctionELj520769412EEC2ENSt3__110unique_ptrIS2_NS4_14default_deleteIS2_EEEE:
   38|  79.2k|      explicit botan_struct(std::unique_ptr<T> obj) : m_magic(MAGIC), m_obj(std::move(obj)) {}
_ZN9Botan_FFI12botan_structIN5Botan12HashFunctionELj520769412EED2Ev:
   40|  79.2k|      virtual ~botan_struct() {
   41|  79.2k|         m_magic = 0;
   42|  79.2k|         m_obj.reset();  // NOLINT(*-ambiguous-smartptr-reset-call)
   43|  79.2k|      }
_ZN9Botan_FFI17ffi_delete_objectIN5Botan12HashFunctionELj520769412EEEiPNS_12botan_structIT_XT0_EEEPKc:
  161|  79.2k|int ffi_delete_object(botan_struct<T, M>* obj, const char* func_name) {
  162|  79.2k|   return ffi_guard_thunk(func_name, [=]() -> int {
  163|       |      // ignore delete of null objects
  164|  79.2k|      if(obj == nullptr) {
  165|  79.2k|         return BOTAN_FFI_SUCCESS;
  166|  79.2k|      }
  167|       |
  168|  79.2k|      if(!obj->magic_ok()) {
  169|  79.2k|         return BOTAN_FFI_ERROR_INVALID_OBJECT;
  170|  79.2k|      }
  171|       |
  172|  79.2k|      delete obj;  // NOLINT(*-owning-memory)
  173|  79.2k|      return BOTAN_FFI_SUCCESS;
  174|  79.2k|   });
  175|  79.2k|}
_ZN9Botan_FFI15ffi_guard_thunkITkNSt3__19invocableEZNS_17ffi_delete_objectIN5Botan12HashFunctionELj520769412EEEiPNS_12botan_structIT_XT0_EEEPKcEUlvE_EEiSA_S6_:
   95|  79.2k|int ffi_guard_thunk(const char* func_name, T thunk) {
   96|  79.2k|   ffi_clear_last_exception();
   97|       |
   98|  79.2k|   try {
   99|  79.2k|      return thunk();
  100|  79.2k|   } catch(std::bad_alloc&) {
  101|      0|      return ffi_error_exception_thrown(func_name, "bad_alloc", BOTAN_FFI_ERROR_OUT_OF_MEMORY);
  102|      0|   } catch(Botan_FFI::FFI_Error& e) {
  103|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_code());
  104|      0|   } catch(Botan::Exception& e) {
  105|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_type());
  106|      0|   } catch(std::exception& e) {
  107|      0|      return ffi_error_exception_thrown(func_name, e.what(), BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  108|      0|   } catch(...) {
  109|      0|      return ffi_error_exception_thrown(func_name, "unknown exception", BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  110|      0|   }
  111|  79.2k|}
_ZZN9Botan_FFI17ffi_delete_objectIN5Botan12HashFunctionELj520769412EEEiPNS_12botan_structIT_XT0_EEEPKcENKUlvE_clEv:
  162|  79.2k|   return ffi_guard_thunk(func_name, [=]() -> int {
  163|       |      // ignore delete of null objects
  164|  79.2k|      if(obj == nullptr) {
  ------------------
  |  Branch (164:10): [True: 0, False: 79.2k]
  ------------------
  165|      0|         return BOTAN_FFI_SUCCESS;
  166|      0|      }
  167|       |
  168|  79.2k|      if(!obj->magic_ok()) {
  ------------------
  |  Branch (168:10): [True: 0, False: 79.2k]
  ------------------
  169|      0|         return BOTAN_FFI_ERROR_INVALID_OBJECT;
  170|      0|      }
  171|       |
  172|  79.2k|      delete obj;  // NOLINT(*-owning-memory)
  173|  79.2k|      return BOTAN_FFI_SUCCESS;
  174|  79.2k|   });
_ZNK9Botan_FFI12botan_structIN5Botan12HashFunctionELj520769412EE8magic_okEv:
   50|  13.5M|      bool magic_ok() const { return (m_magic == MAGIC); }
ffi_hash.cpp:_ZN9Botan_FFI15botan_ffi_visitIN5Botan12HashFunctionELj520769412EZ24botan_hash_output_lengthE3$_0EEiPNS_12botan_structIT_XT0_EEET1_PKc:
  114|  79.2k|int botan_ffi_visit(botan_struct<T, M>* o, F func, const char* func_name) {
  115|  79.2k|   using RetT = std::invoke_result_t<F, T&>;
  116|  79.2k|   static_assert(std::is_void_v<RetT> || std::is_same_v<RetT, BOTAN_FFI_ERROR> || std::is_same_v<RetT, int>,
  117|  79.2k|                 "BOTAN_FFI_DO must be used with a block that returns either nothing, int or BOTAN_FFI_ERROR");
  118|       |
  119|  79.2k|   if(!o) {
  ------------------
  |  Branch (119:7): [True: 0, False: 79.2k]
  ------------------
  120|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
  121|      0|   }
  122|       |
  123|  79.2k|   if(!o->magic_ok()) {
  ------------------
  |  Branch (123:7): [True: 0, False: 79.2k]
  ------------------
  124|      0|      return BOTAN_FFI_ERROR_INVALID_OBJECT;
  125|      0|   }
  126|       |
  127|  79.2k|   T* p = o->unsafe_get();
  128|  79.2k|   if(p == nullptr) {
  ------------------
  |  Branch (128:7): [True: 0, False: 79.2k]
  ------------------
  129|      0|      return BOTAN_FFI_ERROR_INVALID_OBJECT;
  130|      0|   }
  131|       |
  132|  79.2k|   if constexpr(std::is_void_v<RetT>) {
  133|  79.2k|      return ffi_guard_thunk(func_name, [&] {
  134|  79.2k|         func(*p);
  135|  79.2k|         return BOTAN_FFI_SUCCESS;
  136|  79.2k|      });
  137|       |   } else {
  138|       |      return ffi_guard_thunk(func_name, [&] { return func(*p); });
  139|       |   }
  140|  79.2k|}
_ZNK9Botan_FFI12botan_structIN5Botan12HashFunctionELj520769412EE10unsafe_getEv:
   52|  13.4M|      T* unsafe_get() const { return m_obj.get(); }
ffi_hash.cpp:_ZN9Botan_FFI15ffi_guard_thunkITkNSt3__19invocableEZNS_15botan_ffi_visitIN5Botan12HashFunctionELj520769412EZ24botan_hash_output_lengthE3$_0EEiPNS_12botan_structIT_XT0_EEET1_PKcEUlvE_EEiSC_S7_:
   95|  79.2k|int ffi_guard_thunk(const char* func_name, T thunk) {
   96|  79.2k|   ffi_clear_last_exception();
   97|       |
   98|  79.2k|   try {
   99|  79.2k|      return thunk();
  100|  79.2k|   } catch(std::bad_alloc&) {
  101|      0|      return ffi_error_exception_thrown(func_name, "bad_alloc", BOTAN_FFI_ERROR_OUT_OF_MEMORY);
  102|      0|   } catch(Botan_FFI::FFI_Error& e) {
  103|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_code());
  104|      0|   } catch(Botan::Exception& e) {
  105|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_type());
  106|      0|   } catch(std::exception& e) {
  107|      0|      return ffi_error_exception_thrown(func_name, e.what(), BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  108|      0|   } catch(...) {
  109|      0|      return ffi_error_exception_thrown(func_name, "unknown exception", BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  110|      0|   }
  111|  79.2k|}
ffi_hash.cpp:_ZZN9Botan_FFI15botan_ffi_visitIN5Botan12HashFunctionELj520769412EZ24botan_hash_output_lengthE3$_0EEiPNS_12botan_structIT_XT0_EEET1_PKcENKUlvE_clEv:
  133|  79.2k|      return ffi_guard_thunk(func_name, [&] {
  134|  79.2k|         func(*p);
  135|  79.2k|         return BOTAN_FFI_SUCCESS;
  136|  79.2k|      });
ffi_hash.cpp:_ZZ24botan_hash_output_lengthENK3$_0clIN5Botan12HashFunctionEEEDaRKT_:
  158|  79.2k|#define BOTAN_FFI_VISIT(obj, lambda) botan_ffi_visit(obj, lambda, __func__)
ffi_hash.cpp:_ZN9Botan_FFI15botan_ffi_visitIN5Botan12HashFunctionELj520769412EZ17botan_hash_updateE3$_0EEiPNS_12botan_structIT_XT0_EEET1_PKc:
  114|  13.3M|int botan_ffi_visit(botan_struct<T, M>* o, F func, const char* func_name) {
  115|  13.3M|   using RetT = std::invoke_result_t<F, T&>;
  116|  13.3M|   static_assert(std::is_void_v<RetT> || std::is_same_v<RetT, BOTAN_FFI_ERROR> || std::is_same_v<RetT, int>,
  117|  13.3M|                 "BOTAN_FFI_DO must be used with a block that returns either nothing, int or BOTAN_FFI_ERROR");
  118|       |
  119|  13.3M|   if(!o) {
  ------------------
  |  Branch (119:7): [True: 0, False: 13.3M]
  ------------------
  120|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
  121|      0|   }
  122|       |
  123|  13.3M|   if(!o->magic_ok()) {
  ------------------
  |  Branch (123:7): [True: 0, False: 13.3M]
  ------------------
  124|      0|      return BOTAN_FFI_ERROR_INVALID_OBJECT;
  125|      0|   }
  126|       |
  127|  13.3M|   T* p = o->unsafe_get();
  128|  13.3M|   if(p == nullptr) {
  ------------------
  |  Branch (128:7): [True: 0, False: 13.3M]
  ------------------
  129|      0|      return BOTAN_FFI_ERROR_INVALID_OBJECT;
  130|      0|   }
  131|       |
  132|  13.3M|   if constexpr(std::is_void_v<RetT>) {
  133|  13.3M|      return ffi_guard_thunk(func_name, [&] {
  134|  13.3M|         func(*p);
  135|  13.3M|         return BOTAN_FFI_SUCCESS;
  136|  13.3M|      });
  137|       |   } else {
  138|       |      return ffi_guard_thunk(func_name, [&] { return func(*p); });
  139|       |   }
  140|  13.3M|}
ffi_hash.cpp:_ZN9Botan_FFI15ffi_guard_thunkITkNSt3__19invocableEZNS_15botan_ffi_visitIN5Botan12HashFunctionELj520769412EZ17botan_hash_updateE3$_0EEiPNS_12botan_structIT_XT0_EEET1_PKcEUlvE_EEiSC_S7_:
   95|  13.3M|int ffi_guard_thunk(const char* func_name, T thunk) {
   96|  13.3M|   ffi_clear_last_exception();
   97|       |
   98|  13.3M|   try {
   99|  13.3M|      return thunk();
  100|  13.3M|   } catch(std::bad_alloc&) {
  101|      0|      return ffi_error_exception_thrown(func_name, "bad_alloc", BOTAN_FFI_ERROR_OUT_OF_MEMORY);
  102|      0|   } catch(Botan_FFI::FFI_Error& e) {
  103|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_code());
  104|      0|   } catch(Botan::Exception& e) {
  105|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_type());
  106|      0|   } catch(std::exception& e) {
  107|      0|      return ffi_error_exception_thrown(func_name, e.what(), BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  108|      0|   } catch(...) {
  109|      0|      return ffi_error_exception_thrown(func_name, "unknown exception", BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  110|      0|   }
  111|  13.3M|}
ffi_hash.cpp:_ZZN9Botan_FFI15botan_ffi_visitIN5Botan12HashFunctionELj520769412EZ17botan_hash_updateE3$_0EEiPNS_12botan_structIT_XT0_EEET1_PKcENKUlvE_clEv:
  133|  13.3M|      return ffi_guard_thunk(func_name, [&] {
  134|  13.3M|         func(*p);
  135|  13.3M|         return BOTAN_FFI_SUCCESS;
  136|  13.3M|      });
ffi_hash.cpp:_ZZ17botan_hash_updateENK3$_0clIN5Botan12HashFunctionEEEDaRT_:
  158|  13.3M|#define BOTAN_FFI_VISIT(obj, lambda) botan_ffi_visit(obj, lambda, __func__)
ffi_hash.cpp:_ZN9Botan_FFI15botan_ffi_visitIN5Botan12HashFunctionELj520769412EZ16botan_hash_finalE3$_0EEiPNS_12botan_structIT_XT0_EEET1_PKc:
  114|  67.5k|int botan_ffi_visit(botan_struct<T, M>* o, F func, const char* func_name) {
  115|  67.5k|   using RetT = std::invoke_result_t<F, T&>;
  116|  67.5k|   static_assert(std::is_void_v<RetT> || std::is_same_v<RetT, BOTAN_FFI_ERROR> || std::is_same_v<RetT, int>,
  117|  67.5k|                 "BOTAN_FFI_DO must be used with a block that returns either nothing, int or BOTAN_FFI_ERROR");
  118|       |
  119|  67.5k|   if(!o) {
  ------------------
  |  Branch (119:7): [True: 0, False: 67.5k]
  ------------------
  120|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
  121|      0|   }
  122|       |
  123|  67.5k|   if(!o->magic_ok()) {
  ------------------
  |  Branch (123:7): [True: 0, False: 67.5k]
  ------------------
  124|      0|      return BOTAN_FFI_ERROR_INVALID_OBJECT;
  125|      0|   }
  126|       |
  127|  67.5k|   T* p = o->unsafe_get();
  128|  67.5k|   if(p == nullptr) {
  ------------------
  |  Branch (128:7): [True: 0, False: 67.5k]
  ------------------
  129|      0|      return BOTAN_FFI_ERROR_INVALID_OBJECT;
  130|      0|   }
  131|       |
  132|  67.5k|   if constexpr(std::is_void_v<RetT>) {
  133|  67.5k|      return ffi_guard_thunk(func_name, [&] {
  134|  67.5k|         func(*p);
  135|  67.5k|         return BOTAN_FFI_SUCCESS;
  136|  67.5k|      });
  137|       |   } else {
  138|       |      return ffi_guard_thunk(func_name, [&] { return func(*p); });
  139|       |   }
  140|  67.5k|}
ffi_hash.cpp:_ZN9Botan_FFI15ffi_guard_thunkITkNSt3__19invocableEZNS_15botan_ffi_visitIN5Botan12HashFunctionELj520769412EZ16botan_hash_finalE3$_0EEiPNS_12botan_structIT_XT0_EEET1_PKcEUlvE_EEiSC_S7_:
   95|  67.5k|int ffi_guard_thunk(const char* func_name, T thunk) {
   96|  67.5k|   ffi_clear_last_exception();
   97|       |
   98|  67.5k|   try {
   99|  67.5k|      return thunk();
  100|  67.5k|   } catch(std::bad_alloc&) {
  101|      0|      return ffi_error_exception_thrown(func_name, "bad_alloc", BOTAN_FFI_ERROR_OUT_OF_MEMORY);
  102|      0|   } catch(Botan_FFI::FFI_Error& e) {
  103|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_code());
  104|      0|   } catch(Botan::Exception& e) {
  105|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_type());
  106|      0|   } catch(std::exception& e) {
  107|      0|      return ffi_error_exception_thrown(func_name, e.what(), BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  108|      0|   } catch(...) {
  109|      0|      return ffi_error_exception_thrown(func_name, "unknown exception", BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  110|      0|   }
  111|  67.5k|}
ffi_hash.cpp:_ZZN9Botan_FFI15botan_ffi_visitIN5Botan12HashFunctionELj520769412EZ16botan_hash_finalE3$_0EEiPNS_12botan_structIT_XT0_EEET1_PKcENKUlvE_clEv:
  133|  67.5k|      return ffi_guard_thunk(func_name, [&] {
  134|  67.5k|         func(*p);
  135|  67.5k|         return BOTAN_FFI_SUCCESS;
  136|  67.5k|      });
ffi_hash.cpp:_ZZ16botan_hash_finalENK3$_0clIN5Botan12HashFunctionEEEDaRT_:
  158|  67.5k|#define BOTAN_FFI_VISIT(obj, lambda) botan_ffi_visit(obj, lambda, __func__)
ffi_kdf.cpp:_ZN9Botan_FFI15ffi_guard_thunkITkNSt3__19invocableEZ13botan_pwdhashE3$_0EEiPKcT_:
   95|  65.6k|int ffi_guard_thunk(const char* func_name, T thunk) {
   96|  65.6k|   ffi_clear_last_exception();
   97|       |
   98|  65.6k|   try {
   99|  65.6k|      return thunk();
  100|  65.6k|   } catch(std::bad_alloc&) {
  101|      0|      return ffi_error_exception_thrown(func_name, "bad_alloc", BOTAN_FFI_ERROR_OUT_OF_MEMORY);
  102|      0|   } catch(Botan_FFI::FFI_Error& e) {
  103|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_code());
  104|    161|   } catch(Botan::Exception& e) {
  105|    161|      return ffi_error_exception_thrown(func_name, e.what(), e.error_type());
  106|    161|   } catch(std::exception& e) {
  107|      0|      return ffi_error_exception_thrown(func_name, e.what(), BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  108|      0|   } catch(...) {
  109|      0|      return ffi_error_exception_thrown(func_name, "unknown exception", BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  110|      0|   }
  111|  65.6k|}
ffi_mp.cpp:_ZN9Botan_FFI15ffi_guard_thunkITkNSt3__19invocableEZ13botan_mp_initE3$_0EEiPKcT_:
   95|  48.1k|int ffi_guard_thunk(const char* func_name, T thunk) {
   96|  48.1k|   ffi_clear_last_exception();
   97|       |
   98|  48.1k|   try {
   99|  48.1k|      return thunk();
  100|  48.1k|   } catch(std::bad_alloc&) {
  101|      0|      return ffi_error_exception_thrown(func_name, "bad_alloc", BOTAN_FFI_ERROR_OUT_OF_MEMORY);
  102|      0|   } catch(Botan_FFI::FFI_Error& e) {
  103|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_code());
  104|      0|   } catch(Botan::Exception& e) {
  105|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_type());
  106|      0|   } catch(std::exception& e) {
  107|      0|      return ffi_error_exception_thrown(func_name, e.what(), BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  108|      0|   } catch(...) {
  109|      0|      return ffi_error_exception_thrown(func_name, "unknown exception", BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  110|      0|   }
  111|  48.1k|}
ffi_mp.cpp:_ZN9Botan_FFI15botan_ffi_visitIN5Botan6BigIntELj3358112210EZ17botan_mp_from_binE3$_0EEiPNS_12botan_structIT_XT0_EEET1_PKc:
  114|  48.1k|int botan_ffi_visit(botan_struct<T, M>* o, F func, const char* func_name) {
  115|  48.1k|   using RetT = std::invoke_result_t<F, T&>;
  116|  48.1k|   static_assert(std::is_void_v<RetT> || std::is_same_v<RetT, BOTAN_FFI_ERROR> || std::is_same_v<RetT, int>,
  117|  48.1k|                 "BOTAN_FFI_DO must be used with a block that returns either nothing, int or BOTAN_FFI_ERROR");
  118|       |
  119|  48.1k|   if(!o) {
  ------------------
  |  Branch (119:7): [True: 0, False: 48.1k]
  ------------------
  120|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
  121|      0|   }
  122|       |
  123|  48.1k|   if(!o->magic_ok()) {
  ------------------
  |  Branch (123:7): [True: 0, False: 48.1k]
  ------------------
  124|      0|      return BOTAN_FFI_ERROR_INVALID_OBJECT;
  125|      0|   }
  126|       |
  127|  48.1k|   T* p = o->unsafe_get();
  128|  48.1k|   if(p == nullptr) {
  ------------------
  |  Branch (128:7): [True: 0, False: 48.1k]
  ------------------
  129|      0|      return BOTAN_FFI_ERROR_INVALID_OBJECT;
  130|      0|   }
  131|       |
  132|  48.1k|   if constexpr(std::is_void_v<RetT>) {
  133|  48.1k|      return ffi_guard_thunk(func_name, [&] {
  134|  48.1k|         func(*p);
  135|  48.1k|         return BOTAN_FFI_SUCCESS;
  136|  48.1k|      });
  137|       |   } else {
  138|       |      return ffi_guard_thunk(func_name, [&] { return func(*p); });
  139|       |   }
  140|  48.1k|}
ffi_mp.cpp:_ZN9Botan_FFI15ffi_guard_thunkITkNSt3__19invocableEZNS_15botan_ffi_visitIN5Botan6BigIntELj3358112210EZ17botan_mp_from_binE3$_0EEiPNS_12botan_structIT_XT0_EEET1_PKcEUlvE_EEiSC_S7_:
   95|  48.1k|int ffi_guard_thunk(const char* func_name, T thunk) {
   96|  48.1k|   ffi_clear_last_exception();
   97|       |
   98|  48.1k|   try {
   99|  48.1k|      return thunk();
  100|  48.1k|   } catch(std::bad_alloc&) {
  101|      0|      return ffi_error_exception_thrown(func_name, "bad_alloc", BOTAN_FFI_ERROR_OUT_OF_MEMORY);
  102|      0|   } catch(Botan_FFI::FFI_Error& e) {
  103|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_code());
  104|      0|   } catch(Botan::Exception& e) {
  105|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_type());
  106|      0|   } catch(std::exception& e) {
  107|      0|      return ffi_error_exception_thrown(func_name, e.what(), BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  108|      0|   } catch(...) {
  109|      0|      return ffi_error_exception_thrown(func_name, "unknown exception", BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  110|      0|   }
  111|  48.1k|}
ffi_mp.cpp:_ZZN9Botan_FFI15botan_ffi_visitIN5Botan6BigIntELj3358112210EZ17botan_mp_from_binE3$_0EEiPNS_12botan_structIT_XT0_EEET1_PKcENKUlvE_clEv:
  133|  48.1k|      return ffi_guard_thunk(func_name, [&] {
  134|  48.1k|         func(*p);
  135|  48.1k|         return BOTAN_FFI_SUCCESS;
  136|  48.1k|      });
ffi_mp.cpp:_ZZ17botan_mp_from_binENK3$_0clIN5Botan6BigIntEEEDaRT_:
  158|  48.1k|#define BOTAN_FFI_VISIT(obj, lambda) botan_ffi_visit(obj, lambda, __func__)
_ZN9Botan_FFI17ffi_delete_objectIN5Botan6BigIntELj3358112210EEEiPNS_12botan_structIT_XT0_EEEPKc:
  161|  48.1k|int ffi_delete_object(botan_struct<T, M>* obj, const char* func_name) {
  162|  48.1k|   return ffi_guard_thunk(func_name, [=]() -> int {
  163|       |      // ignore delete of null objects
  164|  48.1k|      if(obj == nullptr) {
  165|  48.1k|         return BOTAN_FFI_SUCCESS;
  166|  48.1k|      }
  167|       |
  168|  48.1k|      if(!obj->magic_ok()) {
  169|  48.1k|         return BOTAN_FFI_ERROR_INVALID_OBJECT;
  170|  48.1k|      }
  171|       |
  172|  48.1k|      delete obj;  // NOLINT(*-owning-memory)
  173|  48.1k|      return BOTAN_FFI_SUCCESS;
  174|  48.1k|   });
  175|  48.1k|}
_ZN9Botan_FFI15ffi_guard_thunkITkNSt3__19invocableEZNS_17ffi_delete_objectIN5Botan6BigIntELj3358112210EEEiPNS_12botan_structIT_XT0_EEEPKcEUlvE_EEiSA_S6_:
   95|  48.1k|int ffi_guard_thunk(const char* func_name, T thunk) {
   96|  48.1k|   ffi_clear_last_exception();
   97|       |
   98|  48.1k|   try {
   99|  48.1k|      return thunk();
  100|  48.1k|   } catch(std::bad_alloc&) {
  101|      0|      return ffi_error_exception_thrown(func_name, "bad_alloc", BOTAN_FFI_ERROR_OUT_OF_MEMORY);
  102|      0|   } catch(Botan_FFI::FFI_Error& e) {
  103|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_code());
  104|      0|   } catch(Botan::Exception& e) {
  105|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_type());
  106|      0|   } catch(std::exception& e) {
  107|      0|      return ffi_error_exception_thrown(func_name, e.what(), BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  108|      0|   } catch(...) {
  109|      0|      return ffi_error_exception_thrown(func_name, "unknown exception", BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  110|      0|   }
  111|  48.1k|}
_ZZN9Botan_FFI17ffi_delete_objectIN5Botan6BigIntELj3358112210EEEiPNS_12botan_structIT_XT0_EEEPKcENKUlvE_clEv:
  162|  48.1k|   return ffi_guard_thunk(func_name, [=]() -> int {
  163|       |      // ignore delete of null objects
  164|  48.1k|      if(obj == nullptr) {
  ------------------
  |  Branch (164:10): [True: 0, False: 48.1k]
  ------------------
  165|      0|         return BOTAN_FFI_SUCCESS;
  166|      0|      }
  167|       |
  168|  48.1k|      if(!obj->magic_ok()) {
  ------------------
  |  Branch (168:10): [True: 0, False: 48.1k]
  ------------------
  169|      0|         return BOTAN_FFI_ERROR_INVALID_OBJECT;
  170|      0|      }
  171|       |
  172|  48.1k|      delete obj;  // NOLINT(*-owning-memory)
  173|  48.1k|      return BOTAN_FFI_SUCCESS;
  174|  48.1k|   });
_ZN9Botan_FFI8safe_getIN5Botan10Public_KeyELj740844825EEERT_PNS_12botan_structIS3_XT0_EEE:
   79|  27.4k|T& safe_get(botan_struct<T, M>* p) {
   80|  27.4k|   if(!p) {
  ------------------
  |  Branch (80:7): [True: 0, False: 27.4k]
  ------------------
   81|      0|      throw FFI_Error("Null pointer argument", BOTAN_FFI_ERROR_NULL_POINTER);
   82|      0|   }
   83|  27.4k|   if(!p->magic_ok()) {
  ------------------
  |  Branch (83:7): [True: 0, False: 27.4k]
  ------------------
   84|      0|      throw FFI_Error("Bad magic in ffi object", BOTAN_FFI_ERROR_INVALID_OBJECT);
   85|      0|   }
   86|       |
   87|  27.4k|   if(T* t = p->unsafe_get()) {
  ------------------
  |  Branch (87:10): [True: 27.4k, False: 0]
  ------------------
   88|  27.4k|      return *t;
   89|  27.4k|   }
   90|       |
   91|      0|   throw FFI_Error("Invalid object pointer", BOTAN_FFI_ERROR_INVALID_OBJECT);
   92|  27.4k|}
_ZNK9Botan_FFI12botan_structIN5Botan10Public_KeyELj740844825EE8magic_okEv:
   50|  54.8k|      bool magic_ok() const { return (m_magic == MAGIC); }
_ZNK9Botan_FFI12botan_structIN5Botan10Public_KeyELj740844825EE10unsafe_getEv:
   52|  27.4k|      T* unsafe_get() const { return m_obj.get(); }
ffi_pk_op.cpp:_ZN9Botan_FFI15ffi_guard_thunkITkNSt3__19invocableEZ25botan_pk_op_verify_createE3$_0EEiPKcT_:
   95|  23.0k|int ffi_guard_thunk(const char* func_name, T thunk) {
   96|  23.0k|   ffi_clear_last_exception();
   97|       |
   98|  23.0k|   try {
   99|  23.0k|      return thunk();
  100|  23.0k|   } catch(std::bad_alloc&) {
  101|      0|      return ffi_error_exception_thrown(func_name, "bad_alloc", BOTAN_FFI_ERROR_OUT_OF_MEMORY);
  102|      0|   } catch(Botan_FFI::FFI_Error& e) {
  103|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_code());
  104|      0|   } catch(Botan::Exception& e) {
  105|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_type());
  106|      0|   } catch(std::exception& e) {
  107|      0|      return ffi_error_exception_thrown(func_name, e.what(), BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  108|      0|   } catch(...) {
  109|      0|      return ffi_error_exception_thrown(func_name, "unknown exception", BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  110|      0|   }
  111|  23.0k|}
_ZN9Botan_FFI14ffi_new_objectIP25botan_pk_op_verify_structJNSt3__110unique_ptrIN5Botan11PK_VerifierENS3_14default_deleteIS6_EEEEEEE15BOTAN_FFI_ERRORPT_DpOT0_:
  178|  23.0k|BOTAN_FFI_ERROR ffi_new_object(T* obj, Args&&... args) {
  179|  23.0k|   if(obj == nullptr) {
  ------------------
  |  Branch (179:7): [True: 0, False: 23.0k]
  ------------------
  180|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
  181|      0|   }
  182|       |   // NOLINTNEXTLINE(*-owning-memory)
  183|  23.0k|   *obj = new std::remove_pointer_t<T>(std::forward<Args>(args)...);
  184|  23.0k|   return BOTAN_FFI_SUCCESS;
  185|  23.0k|}
_ZN25botan_pk_op_verify_structC2ENSt3__110unique_ptrIN5Botan11PK_VerifierENS0_14default_deleteIS3_EEEE:
   63|  23.0k|         explicit NAME(std::unique_ptr<TYPE> x) : botan_struct(std::move(x)) {} \
_ZN9Botan_FFI12botan_structIN5Botan11PK_VerifierELj730986806EEC2ENSt3__110unique_ptrIS2_NS4_14default_deleteIS2_EEEE:
   38|  23.0k|      explicit botan_struct(std::unique_ptr<T> obj) : m_magic(MAGIC), m_obj(std::move(obj)) {}
_ZN9Botan_FFI12botan_structIN5Botan11PK_VerifierELj730986806EED2Ev:
   40|  23.0k|      virtual ~botan_struct() {
   41|  23.0k|         m_magic = 0;
   42|  23.0k|         m_obj.reset();  // NOLINT(*-ambiguous-smartptr-reset-call)
   43|  23.0k|      }
_ZN9Botan_FFI17ffi_delete_objectIN5Botan11PK_VerifierELj730986806EEEiPNS_12botan_structIT_XT0_EEEPKc:
  161|  23.0k|int ffi_delete_object(botan_struct<T, M>* obj, const char* func_name) {
  162|  23.0k|   return ffi_guard_thunk(func_name, [=]() -> int {
  163|       |      // ignore delete of null objects
  164|  23.0k|      if(obj == nullptr) {
  165|  23.0k|         return BOTAN_FFI_SUCCESS;
  166|  23.0k|      }
  167|       |
  168|  23.0k|      if(!obj->magic_ok()) {
  169|  23.0k|         return BOTAN_FFI_ERROR_INVALID_OBJECT;
  170|  23.0k|      }
  171|       |
  172|  23.0k|      delete obj;  // NOLINT(*-owning-memory)
  173|  23.0k|      return BOTAN_FFI_SUCCESS;
  174|  23.0k|   });
  175|  23.0k|}
_ZN9Botan_FFI15ffi_guard_thunkITkNSt3__19invocableEZNS_17ffi_delete_objectIN5Botan11PK_VerifierELj730986806EEEiPNS_12botan_structIT_XT0_EEEPKcEUlvE_EEiSA_S6_:
   95|  23.0k|int ffi_guard_thunk(const char* func_name, T thunk) {
   96|  23.0k|   ffi_clear_last_exception();
   97|       |
   98|  23.0k|   try {
   99|  23.0k|      return thunk();
  100|  23.0k|   } catch(std::bad_alloc&) {
  101|      0|      return ffi_error_exception_thrown(func_name, "bad_alloc", BOTAN_FFI_ERROR_OUT_OF_MEMORY);
  102|      0|   } catch(Botan_FFI::FFI_Error& e) {
  103|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_code());
  104|      0|   } catch(Botan::Exception& e) {
  105|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_type());
  106|      0|   } catch(std::exception& e) {
  107|      0|      return ffi_error_exception_thrown(func_name, e.what(), BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  108|      0|   } catch(...) {
  109|      0|      return ffi_error_exception_thrown(func_name, "unknown exception", BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  110|      0|   }
  111|  23.0k|}
_ZZN9Botan_FFI17ffi_delete_objectIN5Botan11PK_VerifierELj730986806EEEiPNS_12botan_structIT_XT0_EEEPKcENKUlvE_clEv:
  162|  23.0k|   return ffi_guard_thunk(func_name, [=]() -> int {
  163|       |      // ignore delete of null objects
  164|  23.0k|      if(obj == nullptr) {
  ------------------
  |  Branch (164:10): [True: 0, False: 23.0k]
  ------------------
  165|      0|         return BOTAN_FFI_SUCCESS;
  166|      0|      }
  167|       |
  168|  23.0k|      if(!obj->magic_ok()) {
  ------------------
  |  Branch (168:10): [True: 0, False: 23.0k]
  ------------------
  169|      0|         return BOTAN_FFI_ERROR_INVALID_OBJECT;
  170|      0|      }
  171|       |
  172|  23.0k|      delete obj;  // NOLINT(*-owning-memory)
  173|  23.0k|      return BOTAN_FFI_SUCCESS;
  174|  23.0k|   });
_ZNK9Botan_FFI12botan_structIN5Botan11PK_VerifierELj730986806EE8magic_okEv:
   50|  69.1k|      bool magic_ok() const { return (m_magic == MAGIC); }
ffi_pk_op.cpp:_ZN9Botan_FFI15botan_ffi_visitIN5Botan11PK_VerifierELj730986806EZ25botan_pk_op_verify_updateE3$_0EEiPNS_12botan_structIT_XT0_EEET1_PKc:
  114|  23.0k|int botan_ffi_visit(botan_struct<T, M>* o, F func, const char* func_name) {
  115|  23.0k|   using RetT = std::invoke_result_t<F, T&>;
  116|  23.0k|   static_assert(std::is_void_v<RetT> || std::is_same_v<RetT, BOTAN_FFI_ERROR> || std::is_same_v<RetT, int>,
  117|  23.0k|                 "BOTAN_FFI_DO must be used with a block that returns either nothing, int or BOTAN_FFI_ERROR");
  118|       |
  119|  23.0k|   if(!o) {
  ------------------
  |  Branch (119:7): [True: 0, False: 23.0k]
  ------------------
  120|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
  121|      0|   }
  122|       |
  123|  23.0k|   if(!o->magic_ok()) {
  ------------------
  |  Branch (123:7): [True: 0, False: 23.0k]
  ------------------
  124|      0|      return BOTAN_FFI_ERROR_INVALID_OBJECT;
  125|      0|   }
  126|       |
  127|  23.0k|   T* p = o->unsafe_get();
  128|  23.0k|   if(p == nullptr) {
  ------------------
  |  Branch (128:7): [True: 0, False: 23.0k]
  ------------------
  129|      0|      return BOTAN_FFI_ERROR_INVALID_OBJECT;
  130|      0|   }
  131|       |
  132|  23.0k|   if constexpr(std::is_void_v<RetT>) {
  133|  23.0k|      return ffi_guard_thunk(func_name, [&] {
  134|  23.0k|         func(*p);
  135|  23.0k|         return BOTAN_FFI_SUCCESS;
  136|  23.0k|      });
  137|       |   } else {
  138|       |      return ffi_guard_thunk(func_name, [&] { return func(*p); });
  139|       |   }
  140|  23.0k|}
_ZNK9Botan_FFI12botan_structIN5Botan11PK_VerifierELj730986806EE10unsafe_getEv:
   52|  46.0k|      T* unsafe_get() const { return m_obj.get(); }
ffi_pk_op.cpp:_ZN9Botan_FFI15ffi_guard_thunkITkNSt3__19invocableEZNS_15botan_ffi_visitIN5Botan11PK_VerifierELj730986806EZ25botan_pk_op_verify_updateE3$_0EEiPNS_12botan_structIT_XT0_EEET1_PKcEUlvE_EEiSC_S7_:
   95|  23.0k|int ffi_guard_thunk(const char* func_name, T thunk) {
   96|  23.0k|   ffi_clear_last_exception();
   97|       |
   98|  23.0k|   try {
   99|  23.0k|      return thunk();
  100|  23.0k|   } catch(std::bad_alloc&) {
  101|      0|      return ffi_error_exception_thrown(func_name, "bad_alloc", BOTAN_FFI_ERROR_OUT_OF_MEMORY);
  102|      0|   } catch(Botan_FFI::FFI_Error& e) {
  103|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_code());
  104|      0|   } catch(Botan::Exception& e) {
  105|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_type());
  106|      0|   } catch(std::exception& e) {
  107|      0|      return ffi_error_exception_thrown(func_name, e.what(), BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  108|      0|   } catch(...) {
  109|      0|      return ffi_error_exception_thrown(func_name, "unknown exception", BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  110|      0|   }
  111|  23.0k|}
ffi_pk_op.cpp:_ZZN9Botan_FFI15botan_ffi_visitIN5Botan11PK_VerifierELj730986806EZ25botan_pk_op_verify_updateE3$_0EEiPNS_12botan_structIT_XT0_EEET1_PKcENKUlvE_clEv:
  133|  23.0k|      return ffi_guard_thunk(func_name, [&] {
  134|  23.0k|         func(*p);
  135|  23.0k|         return BOTAN_FFI_SUCCESS;
  136|  23.0k|      });
ffi_pk_op.cpp:_ZZ25botan_pk_op_verify_updateENK3$_0clIN5Botan11PK_VerifierEEEDaRT_:
  158|  23.0k|#define BOTAN_FFI_VISIT(obj, lambda) botan_ffi_visit(obj, lambda, __func__)
ffi_pk_op.cpp:_ZN9Botan_FFI15botan_ffi_visitIN5Botan11PK_VerifierELj730986806EZ25botan_pk_op_verify_finishE3$_0EEiPNS_12botan_structIT_XT0_EEET1_PKc:
  114|  23.0k|int botan_ffi_visit(botan_struct<T, M>* o, F func, const char* func_name) {
  115|  23.0k|   using RetT = std::invoke_result_t<F, T&>;
  116|  23.0k|   static_assert(std::is_void_v<RetT> || std::is_same_v<RetT, BOTAN_FFI_ERROR> || std::is_same_v<RetT, int>,
  117|  23.0k|                 "BOTAN_FFI_DO must be used with a block that returns either nothing, int or BOTAN_FFI_ERROR");
  118|       |
  119|  23.0k|   if(!o) {
  ------------------
  |  Branch (119:7): [True: 0, False: 23.0k]
  ------------------
  120|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
  121|      0|   }
  122|       |
  123|  23.0k|   if(!o->magic_ok()) {
  ------------------
  |  Branch (123:7): [True: 0, False: 23.0k]
  ------------------
  124|      0|      return BOTAN_FFI_ERROR_INVALID_OBJECT;
  125|      0|   }
  126|       |
  127|  23.0k|   T* p = o->unsafe_get();
  128|  23.0k|   if(p == nullptr) {
  ------------------
  |  Branch (128:7): [True: 0, False: 23.0k]
  ------------------
  129|      0|      return BOTAN_FFI_ERROR_INVALID_OBJECT;
  130|      0|   }
  131|       |
  132|       |   if constexpr(std::is_void_v<RetT>) {
  133|       |      return ffi_guard_thunk(func_name, [&] {
  134|       |         func(*p);
  135|       |         return BOTAN_FFI_SUCCESS;
  136|       |      });
  137|  23.0k|   } else {
  138|  23.0k|      return ffi_guard_thunk(func_name, [&] { return func(*p); });
  139|  23.0k|   }
  140|  23.0k|}
ffi_pk_op.cpp:_ZN9Botan_FFI15ffi_guard_thunkITkNSt3__19invocableEZNS_15botan_ffi_visitIN5Botan11PK_VerifierELj730986806EZ25botan_pk_op_verify_finishE3$_0EEiPNS_12botan_structIT_XT0_EEET1_PKcEUlvE_EEiSC_S7_:
   95|  23.0k|int ffi_guard_thunk(const char* func_name, T thunk) {
   96|  23.0k|   ffi_clear_last_exception();
   97|       |
   98|  23.0k|   try {
   99|  23.0k|      return thunk();
  100|  23.0k|   } catch(std::bad_alloc&) {
  101|      0|      return ffi_error_exception_thrown(func_name, "bad_alloc", BOTAN_FFI_ERROR_OUT_OF_MEMORY);
  102|      0|   } catch(Botan_FFI::FFI_Error& e) {
  103|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_code());
  104|      0|   } catch(Botan::Exception& e) {
  105|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_type());
  106|      0|   } catch(std::exception& e) {
  107|      0|      return ffi_error_exception_thrown(func_name, e.what(), BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  108|      0|   } catch(...) {
  109|      0|      return ffi_error_exception_thrown(func_name, "unknown exception", BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  110|      0|   }
  111|  23.0k|}
ffi_pk_op.cpp:_ZZN9Botan_FFI15botan_ffi_visitIN5Botan11PK_VerifierELj730986806EZ25botan_pk_op_verify_finishE3$_0EEiPNS_12botan_structIT_XT0_EEET1_PKcENKUlvE_clEv:
  138|  23.0k|      return ffi_guard_thunk(func_name, [&] { return func(*p); });
ffi_pk_op.cpp:_ZZ25botan_pk_op_verify_finishENK3$_0clIN5Botan11PK_VerifierEEEDaRT_:
  158|  69.1k|#define BOTAN_FFI_VISIT(obj, lambda) botan_ffi_visit(obj, lambda, __func__)
  ------------------
  |  Branch (158:59): [True: 2.01k, False: 21.0k]
  ------------------
_ZN9Botan_FFI12botan_structIN5Botan10Public_KeyELj740844825EEC2ENSt3__110unique_ptrIS2_NS4_14default_deleteIS2_EEEE:
   38|  27.4k|      explicit botan_struct(std::unique_ptr<T> obj) : m_magic(MAGIC), m_obj(std::move(obj)) {}
_ZN9Botan_FFI12botan_structIN5Botan10Public_KeyELj740844825EED2Ev:
   40|  27.4k|      virtual ~botan_struct() {
   41|  27.4k|         m_magic = 0;
   42|  27.4k|         m_obj.reset();  // NOLINT(*-ambiguous-smartptr-reset-call)
   43|  27.4k|      }
_ZN9Botan_FFI17ffi_delete_objectIN5Botan10Public_KeyELj740844825EEEiPNS_12botan_structIT_XT0_EEEPKc:
  161|  27.7k|int ffi_delete_object(botan_struct<T, M>* obj, const char* func_name) {
  162|  27.7k|   return ffi_guard_thunk(func_name, [=]() -> int {
  163|       |      // ignore delete of null objects
  164|  27.7k|      if(obj == nullptr) {
  165|  27.7k|         return BOTAN_FFI_SUCCESS;
  166|  27.7k|      }
  167|       |
  168|  27.7k|      if(!obj->magic_ok()) {
  169|  27.7k|         return BOTAN_FFI_ERROR_INVALID_OBJECT;
  170|  27.7k|      }
  171|       |
  172|  27.7k|      delete obj;  // NOLINT(*-owning-memory)
  173|  27.7k|      return BOTAN_FFI_SUCCESS;
  174|  27.7k|   });
  175|  27.7k|}
_ZN9Botan_FFI15ffi_guard_thunkITkNSt3__19invocableEZNS_17ffi_delete_objectIN5Botan10Public_KeyELj740844825EEEiPNS_12botan_structIT_XT0_EEEPKcEUlvE_EEiSA_S6_:
   95|  27.7k|int ffi_guard_thunk(const char* func_name, T thunk) {
   96|  27.7k|   ffi_clear_last_exception();
   97|       |
   98|  27.7k|   try {
   99|  27.7k|      return thunk();
  100|  27.7k|   } catch(std::bad_alloc&) {
  101|      0|      return ffi_error_exception_thrown(func_name, "bad_alloc", BOTAN_FFI_ERROR_OUT_OF_MEMORY);
  102|      0|   } catch(Botan_FFI::FFI_Error& e) {
  103|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_code());
  104|      0|   } catch(Botan::Exception& e) {
  105|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_type());
  106|      0|   } catch(std::exception& e) {
  107|      0|      return ffi_error_exception_thrown(func_name, e.what(), BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  108|      0|   } catch(...) {
  109|      0|      return ffi_error_exception_thrown(func_name, "unknown exception", BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  110|      0|   }
  111|  27.7k|}
_ZZN9Botan_FFI17ffi_delete_objectIN5Botan10Public_KeyELj740844825EEEiPNS_12botan_structIT_XT0_EEEPKcENKUlvE_clEv:
  162|  27.7k|   return ffi_guard_thunk(func_name, [=]() -> int {
  163|       |      // ignore delete of null objects
  164|  27.7k|      if(obj == nullptr) {
  ------------------
  |  Branch (164:10): [True: 319, False: 27.4k]
  ------------------
  165|    319|         return BOTAN_FFI_SUCCESS;
  166|    319|      }
  167|       |
  168|  27.4k|      if(!obj->magic_ok()) {
  ------------------
  |  Branch (168:10): [True: 0, False: 27.4k]
  ------------------
  169|      0|         return BOTAN_FFI_ERROR_INVALID_OBJECT;
  170|      0|      }
  171|       |
  172|  27.4k|      delete obj;  // NOLINT(*-owning-memory)
  173|  27.4k|      return BOTAN_FFI_SUCCESS;
  174|  27.4k|   });
ffi_pkey_algs.cpp:_ZN9Botan_FFI15ffi_guard_thunkITkNSt3__19invocableEZ21botan_pubkey_load_rsaE3$_0EEiPKcT_:
   95|  4.53k|int ffi_guard_thunk(const char* func_name, T thunk) {
   96|  4.53k|   ffi_clear_last_exception();
   97|       |
   98|  4.53k|   try {
   99|  4.53k|      return thunk();
  100|  4.53k|   } catch(std::bad_alloc&) {
  101|      0|      return ffi_error_exception_thrown(func_name, "bad_alloc", BOTAN_FFI_ERROR_OUT_OF_MEMORY);
  102|      0|   } catch(Botan_FFI::FFI_Error& e) {
  103|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_code());
  104|    194|   } catch(Botan::Exception& e) {
  105|    194|      return ffi_error_exception_thrown(func_name, e.what(), e.error_type());
  106|    194|   } catch(std::exception& e) {
  107|      0|      return ffi_error_exception_thrown(func_name, e.what(), BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  108|      0|   } catch(...) {
  109|      0|      return ffi_error_exception_thrown(func_name, "unknown exception", BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  110|      0|   }
  111|  4.53k|}
_ZN9Botan_FFI14ffi_new_objectIP19botan_pubkey_structJNSt3__110unique_ptrIN5Botan13RSA_PublicKeyENS3_14default_deleteIS6_EEEEEEE15BOTAN_FFI_ERRORPT_DpOT0_:
  178|  4.33k|BOTAN_FFI_ERROR ffi_new_object(T* obj, Args&&... args) {
  179|  4.33k|   if(obj == nullptr) {
  ------------------
  |  Branch (179:7): [True: 0, False: 4.33k]
  ------------------
  180|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
  181|      0|   }
  182|       |   // NOLINTNEXTLINE(*-owning-memory)
  183|  4.33k|   *obj = new std::remove_pointer_t<T>(std::forward<Args>(args)...);
  184|  4.33k|   return BOTAN_FFI_SUCCESS;
  185|  4.33k|}
ffi_pkey_algs.cpp:_ZN9Botan_FFI15ffi_guard_thunkITkNSt3__19invocableEZ21botan_pubkey_load_dsaE3$_0EEiPKcT_:
   95|    536|int ffi_guard_thunk(const char* func_name, T thunk) {
   96|    536|   ffi_clear_last_exception();
   97|       |
   98|    536|   try {
   99|    536|      return thunk();
  100|    536|   } catch(std::bad_alloc&) {
  101|      0|      return ffi_error_exception_thrown(func_name, "bad_alloc", BOTAN_FFI_ERROR_OUT_OF_MEMORY);
  102|      0|   } catch(Botan_FFI::FFI_Error& e) {
  103|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_code());
  104|     10|   } catch(Botan::Exception& e) {
  105|     10|      return ffi_error_exception_thrown(func_name, e.what(), e.error_type());
  106|     10|   } catch(std::exception& e) {
  107|      0|      return ffi_error_exception_thrown(func_name, e.what(), BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  108|      0|   } catch(...) {
  109|      0|      return ffi_error_exception_thrown(func_name, "unknown exception", BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  110|      0|   }
  111|    536|}
_ZN9Botan_FFI14ffi_new_objectIP19botan_pubkey_structJNSt3__110unique_ptrIN5Botan13DSA_PublicKeyENS3_14default_deleteIS6_EEEEEEE15BOTAN_FFI_ERRORPT_DpOT0_:
  178|    526|BOTAN_FFI_ERROR ffi_new_object(T* obj, Args&&... args) {
  179|    526|   if(obj == nullptr) {
  ------------------
  |  Branch (179:7): [True: 0, False: 526]
  ------------------
  180|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
  181|      0|   }
  182|       |   // NOLINTNEXTLINE(*-owning-memory)
  183|    526|   *obj = new std::remove_pointer_t<T>(std::forward<Args>(args)...);
  184|    526|   return BOTAN_FFI_SUCCESS;
  185|    526|}
ffi_pkey_algs.cpp:_ZN9Botan_FFI15ffi_guard_thunkITkNSt3__19invocableEZ23botan_pubkey_load_ecdsaE3$_0EEiPKcT_:
   95|  9.71k|int ffi_guard_thunk(const char* func_name, T thunk) {
   96|  9.71k|   ffi_clear_last_exception();
   97|       |
   98|  9.71k|   try {
   99|  9.71k|      return thunk();
  100|  9.71k|   } catch(std::bad_alloc&) {
  101|      0|      return ffi_error_exception_thrown(func_name, "bad_alloc", BOTAN_FFI_ERROR_OUT_OF_MEMORY);
  102|      0|   } catch(Botan_FFI::FFI_Error& e) {
  103|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_code());
  104|      0|   } catch(Botan::Exception& e) {
  105|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_type());
  106|      0|   } catch(std::exception& e) {
  107|      0|      return ffi_error_exception_thrown(func_name, e.what(), BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  108|      0|   } catch(...) {
  109|      0|      return ffi_error_exception_thrown(func_name, "unknown exception", BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  110|      0|   }
  111|  9.71k|}
_ZN9Botan_FFI14ffi_new_objectIP19botan_pubkey_structJNSt3__110unique_ptrIN5Botan15ECDSA_PublicKeyENS3_14default_deleteIS6_EEEEEEE15BOTAN_FFI_ERRORPT_DpOT0_:
  178|  9.63k|BOTAN_FFI_ERROR ffi_new_object(T* obj, Args&&... args) {
  179|  9.63k|   if(obj == nullptr) {
  ------------------
  |  Branch (179:7): [True: 0, False: 9.63k]
  ------------------
  180|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
  181|      0|   }
  182|       |   // NOLINTNEXTLINE(*-owning-memory)
  183|  9.63k|   *obj = new std::remove_pointer_t<T>(std::forward<Args>(args)...);
  184|  9.63k|   return BOTAN_FFI_SUCCESS;
  185|  9.63k|}
ffi_pkey_algs.cpp:_ZN9Botan_FFI15ffi_guard_thunkITkNSt3__19invocableEZ27botan_pubkey_sm2_compute_zaE3$_0EEiPKcT_:
   95|  4.39k|int ffi_guard_thunk(const char* func_name, T thunk) {
   96|  4.39k|   ffi_clear_last_exception();
   97|       |
   98|  4.39k|   try {
   99|  4.39k|      return thunk();
  100|  4.39k|   } catch(std::bad_alloc&) {
  101|      0|      return ffi_error_exception_thrown(func_name, "bad_alloc", BOTAN_FFI_ERROR_OUT_OF_MEMORY);
  102|      0|   } catch(Botan_FFI::FFI_Error& e) {
  103|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_code());
  104|      0|   } catch(Botan::Exception& e) {
  105|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_type());
  106|      0|   } catch(std::exception& e) {
  107|      0|      return ffi_error_exception_thrown(func_name, e.what(), BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  108|      0|   } catch(...) {
  109|      0|      return ffi_error_exception_thrown(func_name, "unknown exception", BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  110|      0|   }
  111|  4.39k|}
ffi_pkey_algs.cpp:_ZN9Botan_FFI15ffi_guard_thunkITkNSt3__19invocableEZ21botan_pubkey_load_sm2E3$_0EEiPKcT_:
   95|  8.77k|int ffi_guard_thunk(const char* func_name, T thunk) {
   96|  8.77k|   ffi_clear_last_exception();
   97|       |
   98|  8.77k|   try {
   99|  8.77k|      return thunk();
  100|  8.77k|   } catch(std::bad_alloc&) {
  101|      0|      return ffi_error_exception_thrown(func_name, "bad_alloc", BOTAN_FFI_ERROR_OUT_OF_MEMORY);
  102|      0|   } catch(Botan_FFI::FFI_Error& e) {
  103|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_code());
  104|      0|   } catch(Botan::Exception& e) {
  105|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_type());
  106|      0|   } catch(std::exception& e) {
  107|      0|      return ffi_error_exception_thrown(func_name, e.what(), BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  108|      0|   } catch(...) {
  109|      0|      return ffi_error_exception_thrown(func_name, "unknown exception", BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  110|      0|   }
  111|  8.77k|}
_ZN9Botan_FFI14ffi_new_objectIP19botan_pubkey_structJNSt3__110unique_ptrIN5Botan13SM2_PublicKeyENS3_14default_deleteIS6_EEEEEEE15BOTAN_FFI_ERRORPT_DpOT0_:
  178|  8.77k|BOTAN_FFI_ERROR ffi_new_object(T* obj, Args&&... args) {
  179|  8.77k|   if(obj == nullptr) {
  ------------------
  |  Branch (179:7): [True: 0, False: 8.77k]
  ------------------
  180|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
  181|      0|   }
  182|       |   // NOLINTNEXTLINE(*-owning-memory)
  183|  8.77k|   *obj = new std::remove_pointer_t<T>(std::forward<Args>(args)...);
  184|  8.77k|   return BOTAN_FFI_SUCCESS;
  185|  8.77k|}
ffi_pkey_algs.cpp:_ZN9Botan_FFI15ffi_guard_thunkITkNSt3__19invocableEZ25botan_pubkey_load_ed25519E3$_0EEiPKcT_:
   95|  4.09k|int ffi_guard_thunk(const char* func_name, T thunk) {
   96|  4.09k|   ffi_clear_last_exception();
   97|       |
   98|  4.09k|   try {
   99|  4.09k|      return thunk();
  100|  4.09k|   } catch(std::bad_alloc&) {
  101|      0|      return ffi_error_exception_thrown(func_name, "bad_alloc", BOTAN_FFI_ERROR_OUT_OF_MEMORY);
  102|      0|   } catch(Botan_FFI::FFI_Error& e) {
  103|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_code());
  104|      0|   } catch(Botan::Exception& e) {
  105|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_type());
  106|      0|   } catch(std::exception& e) {
  107|      0|      return ffi_error_exception_thrown(func_name, e.what(), BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  108|      0|   } catch(...) {
  109|      0|      return ffi_error_exception_thrown(func_name, "unknown exception", BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  110|      0|   }
  111|  4.09k|}
_ZN9Botan_FFI14ffi_new_objectIP19botan_pubkey_structJNSt3__110unique_ptrIN5Botan17Ed25519_PublicKeyENS3_14default_deleteIS6_EEEEEEE15BOTAN_FFI_ERRORPT_DpOT0_:
  178|  4.09k|BOTAN_FFI_ERROR ffi_new_object(T* obj, Args&&... args) {
  179|  4.09k|   if(obj == nullptr) {
  ------------------
  |  Branch (179:7): [True: 0, False: 4.09k]
  ------------------
  180|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
  181|      0|   }
  182|       |   // NOLINTNEXTLINE(*-owning-memory)
  183|  4.09k|   *obj = new std::remove_pointer_t<T>(std::forward<Args>(args)...);
  184|  4.09k|   return BOTAN_FFI_SUCCESS;
  185|  4.09k|}
ffi_pkey_algs.cpp:_ZN9Botan_FFI15ffi_guard_thunkITkNSt3__19invocableEZ25botan_pubkey_load_slh_dsaE3$_0EEiPKcT_:
   95|     64|int ffi_guard_thunk(const char* func_name, T thunk) {
   96|     64|   ffi_clear_last_exception();
   97|       |
   98|     64|   try {
   99|     64|      return thunk();
  100|     64|   } catch(std::bad_alloc&) {
  101|      0|      return ffi_error_exception_thrown(func_name, "bad_alloc", BOTAN_FFI_ERROR_OUT_OF_MEMORY);
  102|      0|   } catch(Botan_FFI::FFI_Error& e) {
  103|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_code());
  104|      0|   } catch(Botan::Exception& e) {
  105|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_type());
  106|      0|   } catch(std::exception& e) {
  107|      0|      return ffi_error_exception_thrown(func_name, e.what(), BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  108|      0|   } catch(...) {
  109|      0|      return ffi_error_exception_thrown(func_name, "unknown exception", BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  110|      0|   }
  111|     64|}
_ZN9Botan_FFI14ffi_new_objectIP19botan_pubkey_structJNSt3__110unique_ptrIN5Botan21SphincsPlus_PublicKeyENS3_14default_deleteIS6_EEEEEEE15BOTAN_FFI_ERRORPT_DpOT0_:
  178|     64|BOTAN_FFI_ERROR ffi_new_object(T* obj, Args&&... args) {
  179|     64|   if(obj == nullptr) {
  ------------------
  |  Branch (179:7): [True: 0, False: 64]
  ------------------
  180|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
  181|      0|   }
  182|       |   // NOLINTNEXTLINE(*-owning-memory)
  183|     64|   *obj = new std::remove_pointer_t<T>(std::forward<Args>(args)...);
  184|     64|   return BOTAN_FFI_SUCCESS;
  185|     64|}
ffi_rng.cpp:_ZN9Botan_FFI15ffi_guard_thunkITkNSt3__19invocableEZ14botan_rng_initE3$_0EEiPKcT_:
   95|  15.6k|int ffi_guard_thunk(const char* func_name, T thunk) {
   96|  15.6k|   ffi_clear_last_exception();
   97|       |
   98|  15.6k|   try {
   99|  15.6k|      return thunk();
  100|  15.6k|   } catch(std::bad_alloc&) {
  101|      0|      return ffi_error_exception_thrown(func_name, "bad_alloc", BOTAN_FFI_ERROR_OUT_OF_MEMORY);
  102|      0|   } catch(Botan_FFI::FFI_Error& e) {
  103|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_code());
  104|      0|   } catch(Botan::Exception& e) {
  105|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_type());
  106|      0|   } catch(std::exception& e) {
  107|      0|      return ffi_error_exception_thrown(func_name, e.what(), BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  108|      0|   } catch(...) {
  109|      0|      return ffi_error_exception_thrown(func_name, "unknown exception", BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  110|      0|   }
  111|  15.6k|}
_ZN9Botan_FFI14ffi_new_objectIP16botan_rng_structJNSt3__110unique_ptrIN5Botan21RandomNumberGeneratorENS3_14default_deleteIS6_EEEEEEE15BOTAN_FFI_ERRORPT_DpOT0_:
  178|  15.6k|BOTAN_FFI_ERROR ffi_new_object(T* obj, Args&&... args) {
  179|  15.6k|   if(obj == nullptr) {
  ------------------
  |  Branch (179:7): [True: 0, False: 15.6k]
  ------------------
  180|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
  181|      0|   }
  182|       |   // NOLINTNEXTLINE(*-owning-memory)
  183|  15.6k|   *obj = new std::remove_pointer_t<T>(std::forward<Args>(args)...);
  184|  15.6k|   return BOTAN_FFI_SUCCESS;
  185|  15.6k|}
_ZN9Botan_FFI12botan_structIN5Botan21RandomNumberGeneratorELj1224866241EEC2ENSt3__110unique_ptrIS2_NS4_14default_deleteIS2_EEEE:
   38|  15.6k|      explicit botan_struct(std::unique_ptr<T> obj) : m_magic(MAGIC), m_obj(std::move(obj)) {}
_ZN9Botan_FFI12botan_structIN5Botan21RandomNumberGeneratorELj1224866241EED2Ev:
   40|  15.6k|      virtual ~botan_struct() {
   41|  15.6k|         m_magic = 0;
   42|  15.6k|         m_obj.reset();  // NOLINT(*-ambiguous-smartptr-reset-call)
   43|  15.6k|      }
_ZN9Botan_FFI17ffi_delete_objectIN5Botan21RandomNumberGeneratorELj1224866241EEEiPNS_12botan_structIT_XT0_EEEPKc:
  161|  15.6k|int ffi_delete_object(botan_struct<T, M>* obj, const char* func_name) {
  162|  15.6k|   return ffi_guard_thunk(func_name, [=]() -> int {
  163|       |      // ignore delete of null objects
  164|  15.6k|      if(obj == nullptr) {
  165|  15.6k|         return BOTAN_FFI_SUCCESS;
  166|  15.6k|      }
  167|       |
  168|  15.6k|      if(!obj->magic_ok()) {
  169|  15.6k|         return BOTAN_FFI_ERROR_INVALID_OBJECT;
  170|  15.6k|      }
  171|       |
  172|  15.6k|      delete obj;  // NOLINT(*-owning-memory)
  173|  15.6k|      return BOTAN_FFI_SUCCESS;
  174|  15.6k|   });
  175|  15.6k|}
_ZN9Botan_FFI15ffi_guard_thunkITkNSt3__19invocableEZNS_17ffi_delete_objectIN5Botan21RandomNumberGeneratorELj1224866241EEEiPNS_12botan_structIT_XT0_EEEPKcEUlvE_EEiSA_S6_:
   95|  15.6k|int ffi_guard_thunk(const char* func_name, T thunk) {
   96|  15.6k|   ffi_clear_last_exception();
   97|       |
   98|  15.6k|   try {
   99|  15.6k|      return thunk();
  100|  15.6k|   } catch(std::bad_alloc&) {
  101|      0|      return ffi_error_exception_thrown(func_name, "bad_alloc", BOTAN_FFI_ERROR_OUT_OF_MEMORY);
  102|      0|   } catch(Botan_FFI::FFI_Error& e) {
  103|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_code());
  104|      0|   } catch(Botan::Exception& e) {
  105|      0|      return ffi_error_exception_thrown(func_name, e.what(), e.error_type());
  106|      0|   } catch(std::exception& e) {
  107|      0|      return ffi_error_exception_thrown(func_name, e.what(), BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  108|      0|   } catch(...) {
  109|      0|      return ffi_error_exception_thrown(func_name, "unknown exception", BOTAN_FFI_ERROR_EXCEPTION_THROWN);
  110|      0|   }
  111|  15.6k|}
_ZZN9Botan_FFI17ffi_delete_objectIN5Botan21RandomNumberGeneratorELj1224866241EEEiPNS_12botan_structIT_XT0_EEEPKcENKUlvE_clEv:
  162|  15.6k|   return ffi_guard_thunk(func_name, [=]() -> int {
  163|       |      // ignore delete of null objects
  164|  15.6k|      if(obj == nullptr) {
  ------------------
  |  Branch (164:10): [True: 0, False: 15.6k]
  ------------------
  165|      0|         return BOTAN_FFI_SUCCESS;
  166|      0|      }
  167|       |
  168|  15.6k|      if(!obj->magic_ok()) {
  ------------------
  |  Branch (168:10): [True: 0, False: 15.6k]
  ------------------
  169|      0|         return BOTAN_FFI_ERROR_INVALID_OBJECT;
  170|      0|      }
  171|       |
  172|  15.6k|      delete obj;  // NOLINT(*-owning-memory)
  173|  15.6k|      return BOTAN_FFI_SUCCESS;
  174|  15.6k|   });

_ZN5Botan10fmt_detail6do_fmtINSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEJEEEvRNS2_19basic_ostringstreamIcS5_NS2_9allocatorIcEEEES6_RKT_DpRKT0_:
   25|    859|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|    859|   size_t i = 0;
   27|       |
   28|  1.71k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 1.71k, False: 0]
  ------------------
   29|  1.71k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 859, False: 859]
  |  Branch (29:30): [True: 859, False: 0]
  |  Branch (29:59): [True: 859, False: 0]
  ------------------
   30|    859|         oss << val;
   31|    859|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|    859|      } else {
   33|    859|         oss << format[i];
   34|    859|      }
   35|       |
   36|    859|      i += 1;
   37|    859|   }
   38|    859|}
_ZN5Botan10fmt_detail6do_fmtERNSt3__119basic_ostringstreamIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_17basic_string_viewIcS4_EE:
   20|  3.94k|inline void do_fmt(std::ostringstream& oss, std::string_view format) {
   21|  3.94k|   oss << format;
   22|  3.94k|}
_ZN5Botan10fmt_detail6do_fmtIPKcJEEEvRNSt3__119basic_ostringstreamIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_17basic_string_viewIcS7_EERKT_DpRKT0_:
   25|  2.36k|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|  2.36k|   size_t i = 0;
   27|       |
   28|  4.72k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 4.72k, False: 0]
  ------------------
   29|  4.72k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 2.36k, False: 2.36k]
  |  Branch (29:30): [True: 2.36k, False: 0]
  |  Branch (29:59): [True: 2.36k, False: 0]
  ------------------
   30|  2.36k|         oss << val;
   31|  2.36k|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  2.36k|      } else {
   33|  2.36k|         oss << format[i];
   34|  2.36k|      }
   35|       |
   36|  2.36k|      i += 1;
   37|  2.36k|   }
   38|  2.36k|}
_ZN5Botan3fmtIJmEEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_17basic_string_viewIcS4_EEDpRKT_:
   53|    720|std::string fmt(std::string_view format, const T&... args) {
   54|    720|   std::ostringstream oss;
   55|    720|   oss.imbue(std::locale::classic());
   56|    720|   fmt_detail::do_fmt(oss, format, args...);
   57|    720|   return oss.str();
   58|    720|}
_ZN5Botan10fmt_detail6do_fmtImJEEEvRNSt3__119basic_ostringstreamIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS2_17basic_string_viewIcS5_EERKT_DpRKT0_:
   25|    720|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|    720|   size_t i = 0;
   27|       |
   28|  6.19k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 6.19k, False: 0]
  ------------------
   29|  6.19k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 720, False: 5.47k]
  |  Branch (29:30): [True: 720, False: 0]
  |  Branch (29:59): [True: 720, False: 0]
  ------------------
   30|    720|         oss << val;
   31|    720|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  5.47k|      } else {
   33|  5.47k|         oss << format[i];
   34|  5.47k|      }
   35|       |
   36|  5.47k|      i += 1;
   37|  5.47k|   }
   38|    720|}
_ZN5Botan3fmtIJPKcS2_S2_EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS3_17basic_string_viewIcS6_EEDpRKT_:
   53|  2.36k|std::string fmt(std::string_view format, const T&... args) {
   54|  2.36k|   std::ostringstream oss;
   55|  2.36k|   oss.imbue(std::locale::classic());
   56|  2.36k|   fmt_detail::do_fmt(oss, format, args...);
   57|  2.36k|   return oss.str();
   58|  2.36k|}
_ZN5Botan10fmt_detail6do_fmtIPKcJS3_S3_EEEvRNSt3__119basic_ostringstreamIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_17basic_string_viewIcS7_EERKT_DpRKT0_:
   25|  2.36k|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|  2.36k|   size_t i = 0;
   27|       |
   28|  2.36k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 2.36k, False: 0]
  ------------------
   29|  2.36k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 2.36k, False: 0]
  |  Branch (29:30): [True: 2.36k, False: 0]
  |  Branch (29:59): [True: 2.36k, False: 0]
  ------------------
   30|  2.36k|         oss << val;
   31|  2.36k|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  2.36k|      } else {
   33|      0|         oss << format[i];
   34|      0|      }
   35|       |
   36|      0|      i += 1;
   37|      0|   }
   38|  2.36k|}
_ZN5Botan10fmt_detail6do_fmtIPKcJS3_EEEvRNSt3__119basic_ostringstreamIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_17basic_string_viewIcS7_EERKT_DpRKT0_:
   25|  2.36k|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|  2.36k|   size_t i = 0;
   27|       |
   28|  11.8k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 11.8k, False: 0]
  ------------------
   29|  11.8k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 2.36k, False: 9.45k]
  |  Branch (29:30): [True: 2.36k, False: 0]
  |  Branch (29:59): [True: 2.36k, False: 0]
  ------------------
   30|  2.36k|         oss << val;
   31|  2.36k|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  9.45k|      } else {
   33|  9.45k|         oss << format[i];
   34|  9.45k|      }
   35|       |
   36|  9.45k|      i += 1;
   37|  9.45k|   }
   38|  2.36k|}
_ZN5Botan3fmtIJPKcNSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEEEENS3_12basic_stringIcS6_NS3_9allocatorIcEEEES7_DpRKT_:
   53|    859|std::string fmt(std::string_view format, const T&... args) {
   54|    859|   std::ostringstream oss;
   55|    859|   oss.imbue(std::locale::classic());
   56|    859|   fmt_detail::do_fmt(oss, format, args...);
   57|    859|   return oss.str();
   58|    859|}
_ZN5Botan10fmt_detail6do_fmtIPKcJNSt3__117basic_string_viewIcNS4_11char_traitsIcEEEEEEEvRNS4_19basic_ostringstreamIcS7_NS4_9allocatorIcEEEES8_RKT_DpRKT0_:
   25|    859|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|    859|   size_t i = 0;
   27|       |
   28|    859|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 859, False: 0]
  ------------------
   29|    859|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 859, False: 0]
  |  Branch (29:30): [True: 859, False: 0]
  |  Branch (29:59): [True: 859, False: 0]
  ------------------
   30|    859|         oss << val;
   31|    859|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|    859|      } else {
   33|      0|         oss << format[i];
   34|      0|      }
   35|       |
   36|      0|      i += 1;
   37|      0|   }
   38|    859|}

_ZN5Botan14GCM_DecryptionC2ENSt3__110unique_ptrINS_11BlockCipherENS1_14default_deleteIS3_EEEEm:
  101|    247|            GCM_Mode(std::move(cipher), tag_size) {}
_ZNK5Botan8GCM_Mode8tag_sizeEv:
   40|    640|      size_t tag_size() const final { return m_tag_size; }
_ZNK5Botan14GCM_Decryption18minimum_final_sizeEv:
  105|    136|      size_t minimum_final_size() const override { return tag_size(); }

_ZNK5Botan5GHASH8key_specEv:
   42|    136|      Key_Length_Specification key_spec() const override { return Key_Length_Specification(16); }

_ZNK5Botan4IDEA4nameEv:
   28|      9|      std::string name() const override { return "IDEA"; }
_ZNK5Botan4IDEA10new_objectEv:
   30|    210|      std::unique_ptr<BlockCipher> new_object() const override { return std::make_unique<IDEA>(); }

_ZN5Botan11checked_addITkNSt3__117unsigned_integralEjEENS1_8optionalIT_EES3_S3_:
   19|      3|constexpr inline std::optional<T> checked_add(T a, T b) {
   20|      3|   const T r = a + b;
   21|      3|   if(r < a || r < b) {
  ------------------
  |  Branch (21:7): [True: 0, False: 3]
  |  Branch (21:16): [True: 0, False: 3]
  ------------------
   22|      0|      return {};
   23|      0|   }
   24|      3|   return r;
   25|      3|}
_ZN5Botan11checked_addITkNSt3__117unsigned_integralEmEENS1_8optionalIT_EES3_S3_:
   19|  59.3k|constexpr inline std::optional<T> checked_add(T a, T b) {
   20|  59.3k|   const T r = a + b;
   21|  59.3k|   if(r < a || r < b) {
  ------------------
  |  Branch (21:7): [True: 0, False: 59.3k]
  |  Branch (21:16): [True: 0, False: 59.3k]
  ------------------
   22|      0|      return {};
   23|      0|   }
   24|  59.3k|   return r;
   25|  59.3k|}
_ZN5Botan11checked_mulITkNSt3__117unsigned_integralEmEENS1_8optionalIT_EES3_S3_:
   46|  1.06M|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|  1.06M|   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|  1.06M|   if(a != 0 && r / a != b) {
  ------------------
  |  Branch (53:7): [True: 1.06M, False: 0]
  |  Branch (53:17): [True: 0, False: 1.06M]
  ------------------
   54|      0|      return {};
   55|      0|   }
   56|  1.06M|   return r;
   57|  1.06M|}
_ZN5Botan13swar_in_rangeITkNSt3__117unsigned_integralEmEET_S2_S2_S2_:
  144|  15.0M|constexpr T swar_in_range(T v, T lower, T upper) {
  145|       |   // The constant 0x808080... as a T
  146|  15.0M|   constexpr T hi1 = (static_cast<T>(-1) / 255) << 7;
  147|       |   // The constant 0x7F7F7F... as a T
  148|  15.0M|   constexpr T lo7 = ~hi1;
  149|       |
  150|  15.0M|   const T sub = ((v | hi1) - (lower & lo7)) ^ ((v ^ (~lower)) & hi1);
  151|  15.0M|   const T a_lo = sub & lo7;
  152|  15.0M|   const T a_hi = sub & hi1;
  153|  15.0M|   return (lo7 - a_lo + upper) & hi1 & ~a_hi;
  154|  15.0M|}
_ZN5Botan7swar_ltITkNSt3__117unsigned_integralEtEET_S2_S2_:
  121|   588k|constexpr T swar_lt(T a, T b) {
  122|       |   // The constant 0x808080... as a T
  123|   588k|   constexpr T hi1 = (static_cast<T>(-1) / 255) << 7;
  124|       |   // The constant 0x7F7F7F... as a T
  125|   588k|   constexpr T lo7 = static_cast<T>(~hi1);
  126|   588k|   T r = (lo7 - a + b) & hi1;
  127|       |   // Currently the mask is 80 if lt, otherwise 00. Convert to FF/00
  128|   588k|   return (r << 1) - (r >> 7);
  129|   588k|}
_ZN5Botan23index_of_first_set_byteITkNSt3__117unsigned_integralEmEEmT_:
  160|  15.0M|constexpr size_t index_of_first_set_byte(T v) {
  161|       |   // The constant 0x010101... as a T
  162|  15.0M|   constexpr T lo1 = (static_cast<T>(-1) / 255);
  163|       |   // The constant 0x808080... as a T
  164|  15.0M|   constexpr T hi1 = lo1 << 7;
  165|       |   // How many bits to shift in order to get the top byte
  166|  15.0M|   constexpr size_t bits = (sizeof(T) * 8) - 8;
  167|       |
  168|  15.0M|   return static_cast<size_t>((((((v & hi1) - 1) & lo1) * lo1) >> bits) - 1);
  169|  15.0M|}
_ZN5Botan12add_or_throwITkNSt3__117unsigned_integralEmEET_S2_S2_NS1_17basic_string_viewIcNS1_11char_traitsIcEEEE:
   66|  59.3k|constexpr T add_or_throw(T a, T b, std::string_view msg) {
   67|  59.3k|   if(auto r = checked_add(a, b)) {
  ------------------
  |  Branch (67:12): [True: 59.3k, False: 0]
  ------------------
   68|  59.3k|      return r.value();
   69|  59.3k|   } else {
   70|      0|      throw Invalid_Argument(msg);
   71|      0|   }
   72|  59.3k|}
_ZN5Botan24checked_cast_to_or_throwIhNS_14Internal_ErrorEmQaasr3stdE8integralINS_6detail19wrapped_type_helperIu14__remove_cvrefIT_EE4typeEEsr3stdE8integralINS3_Iu14__remove_cvrefIT1_EE4typeEEEES4_S8_NSt3__117basic_string_viewIcNSC_11char_traitsIcEEEE:
   91|     64|constexpr RT checked_cast_to_or_throw(AT i, std::string_view error_msg_on_fail) {
   92|     64|   const auto unwrapped_input = unwrap_strong_type(i);
   93|       |
   94|     64|   const auto unwrapped_result = static_cast<strong_type_wrapped_type<RT>>(unwrapped_input);
   95|     64|   if(unwrapped_input != static_cast<strong_type_wrapped_type<AT>>(unwrapped_result)) [[unlikely]] {
  ------------------
  |  Branch (95:7): [True: 0, False: 64]
  ------------------
   96|      0|      throw ExceptionType(error_msg_on_fail);
   97|      0|   }
   98|       |
   99|     64|   return wrap_strong_type<RT>(unwrapped_result);
  100|     64|}
_ZN5Botan15checked_cast_toIhmQaasr3stdE8integralINS_6detail19wrapped_type_helperIu14__remove_cvrefIT_EE4typeEEsr3stdE8integralINS2_Iu14__remove_cvrefIT0_EE4typeEEEES3_S7_:
  104|     64|constexpr RT checked_cast_to(AT i) {
  105|     64|   return checked_cast_to_or_throw<RT, Internal_Error>(i, "Error during integer conversion");
  106|     64|}

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

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

_ZN5Botan8get_byteILm0EmEEhT0_QltT_stS1_:
   81|  16.4M|{
   82|  16.4M|   const size_t shift = ((~B) & (sizeof(T) - 1)) << 3;
   83|  16.4M|   return static_cast<uint8_t>((input >> shift) & 0xFF);
   84|  16.4M|}
_ZN5Botan11make_uint32Ehhhh:
  104|  6.30M|inline constexpr uint32_t make_uint32(uint8_t i0, uint8_t i1, uint8_t i2, uint8_t i3) {
  105|  6.30M|   return ((static_cast<uint32_t>(i0) << 24) | (static_cast<uint32_t>(i1) << 16) | (static_cast<uint32_t>(i2) << 8) |
  106|  6.30M|           (static_cast<uint32_t>(i3)));
  107|  6.30M|}
_ZN5Botan12get_byte_varImEEhmT_:
   69|    791|inline constexpr uint8_t get_byte_var(size_t byte_num, T input) {
   70|    791|   return static_cast<uint8_t>(input >> (((~byte_num) & (sizeof(T) - 1)) << 3));
   71|    791|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEtTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm2EEEQnt15custom_storableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEEvS9_OT1_:
  525|   224k|inline constexpr void store_any(WrappedInT wrapped_in, OutR&& out_range) {
  526|   224k|   const auto in = detail::unwrap_strong_type_or_enum(wrapped_in);
  527|   224k|   using InT = decltype(in);
  528|   224k|   ranges::assert_exact_byte_length<sizeof(in)>(out_range);
  529|   224k|   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|   224k|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (534:7): [Folded, False: 224k]
  ------------------
  535|      0|      return fallback_store_any<endianness, InT>(in, std::forward<OutR>(out_range));
  536|   224k|   } 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|   224k|      } else {
  542|   224k|         static_assert(opposite(endianness) == std::endian::native);
  543|   224k|         typecast_copy(out, reverse_bytes(in));
  544|   224k|      }
  545|   224k|   }
  546|   224k|}
_ZN5Botan6detail26unwrap_strong_type_or_enumITkNS0_20unsigned_integralishEtEEDaT_:
  190|   224k|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|   224k|   } else {
  195|   224k|      return Botan::unwrap_strong_type(t);
  196|   224k|   }
  197|   224k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS0_20unsigned_integralishEjQoosr3stdE7same_asIS4_T0_Esr3stdE7same_asIT1_S5_EEEvS6_Ph:
  711|  1.39M|inline constexpr void store_any(T in, uint8_t out[]) {
  712|       |   // asserts that *out points to enough bytes to write into
  713|  1.39M|   store_any<endianness, InT>(in, std::span<uint8_t, sizeof(T)>(out, sizeof(T)));
  714|  1.39M|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS0_20unsigned_integralishEjTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm4EEEQsr3stdE7same_asIS4_T0_EEEvT1_OT2_:
  646|  1.39M|inline constexpr void store_any(T in, OutR&& out_range) {
  647|  1.39M|   store_any<endianness, T>(in, std::forward<OutR>(out_range));
  648|  1.39M|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEjTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm4EEEQnt15custom_storableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEEvS9_OT1_:
  525|  5.48M|inline constexpr void store_any(WrappedInT wrapped_in, OutR&& out_range) {
  526|  5.48M|   const auto in = detail::unwrap_strong_type_or_enum(wrapped_in);
  527|  5.48M|   using InT = decltype(in);
  528|  5.48M|   ranges::assert_exact_byte_length<sizeof(in)>(out_range);
  529|  5.48M|   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|  5.48M|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (534:7): [Folded, False: 5.48M]
  ------------------
  535|      0|      return fallback_store_any<endianness, InT>(in, std::forward<OutR>(out_range));
  536|  5.48M|   } 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|  5.48M|      } else {
  542|  5.48M|         static_assert(opposite(endianness) == std::endian::native);
  543|  5.48M|         typecast_copy(out, reverse_bytes(in));
  544|  5.48M|      }
  545|  5.48M|   }
  546|  5.48M|}
_ZN5Botan6detail26unwrap_strong_type_or_enumITkNS0_20unsigned_integralishEjEEDaT_:
  190|  7.10M|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|  7.10M|   } else {
  195|  7.10M|      return Botan::unwrap_strong_type(t);
  196|  7.10M|   }
  197|  7.10M|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS0_20unsigned_integralishEmQoosr3stdE7same_asIS4_T0_Esr3stdE7same_asIT1_S5_EEEvS6_Ph:
  711|  1.77M|inline constexpr void store_any(T in, uint8_t out[]) {
  712|       |   // asserts that *out points to enough bytes to write into
  713|  1.77M|   store_any<endianness, InT>(in, std::span<uint8_t, sizeof(T)>(out, sizeof(T)));
  714|  1.77M|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS0_20unsigned_integralishEmTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm8EEEQsr3stdE7same_asIS4_T0_EEEvT1_OT2_:
  646|  1.77M|inline constexpr void store_any(T in, OutR&& out_range) {
  647|  1.77M|   store_any<endianness, T>(in, std::forward<OutR>(out_range));
  648|  1.77M|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEmTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm8EEEQnt15custom_storableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEEvS9_OT1_:
  525|  6.32M|inline constexpr void store_any(WrappedInT wrapped_in, OutR&& out_range) {
  526|  6.32M|   const auto in = detail::unwrap_strong_type_or_enum(wrapped_in);
  527|  6.32M|   using InT = decltype(in);
  528|  6.32M|   ranges::assert_exact_byte_length<sizeof(in)>(out_range);
  529|  6.32M|   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|  6.32M|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (534:7): [Folded, False: 6.32M]
  ------------------
  535|      0|      return fallback_store_any<endianness, InT>(in, std::forward<OutR>(out_range));
  536|  6.32M|   } 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|  6.32M|      } else {
  542|  6.32M|         static_assert(opposite(endianness) == std::endian::native);
  543|  6.32M|         typecast_copy(out, reverse_bytes(in));
  544|  6.32M|      }
  545|  6.32M|   }
  546|  6.32M|}
_ZN5Botan6detail26unwrap_strong_type_or_enumITkNS0_20unsigned_integralishEmEEDaT_:
  190|  6.42M|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|  6.42M|   } else {
  195|  6.42M|      return Botan::unwrap_strong_type(t);
  196|  6.42M|   }
  197|  6.42M|}
_ZN5Botan8store_leINS_6detail10AutoDetectEJRjRA4_hEEEDaDpOT0_:
  736|  59.4k|inline constexpr auto store_le(ParamTs&&... params) {
  737|  59.4k|   return detail::store_any<std::endian::little, ModifierT>(std::forward<ParamTs>(params)...);
  738|  59.4k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS0_20unsigned_integralishEjQoosr3stdE7same_asIS4_T0_Esr3stdE7same_asIT1_S5_EEEvS6_Ph:
  711|  59.4k|inline constexpr void store_any(T in, uint8_t out[]) {
  712|       |   // asserts that *out points to enough bytes to write into
  713|  59.4k|   store_any<endianness, InT>(in, std::span<uint8_t, sizeof(T)>(out, sizeof(T)));
  714|  59.4k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS0_20unsigned_integralishEjTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm4EEEQsr3stdE7same_asIS4_T0_EEEvT1_OT2_:
  646|  59.4k|inline constexpr void store_any(T in, OutR&& out_range) {
  647|  59.4k|   store_any<endianness, T>(in, std::forward<OutR>(out_range));
  648|  59.4k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE57005ETkNS0_20unsigned_integralishEjTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm4EEEQnt15custom_storableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEEvS9_OT1_:
  525|  1.62M|inline constexpr void store_any(WrappedInT wrapped_in, OutR&& out_range) {
  526|  1.62M|   const auto in = detail::unwrap_strong_type_or_enum(wrapped_in);
  527|  1.62M|   using InT = decltype(in);
  528|  1.62M|   ranges::assert_exact_byte_length<sizeof(in)>(out_range);
  529|  1.62M|   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|  1.62M|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (534:7): [Folded, False: 1.62M]
  ------------------
  535|      0|      return fallback_store_any<endianness, InT>(in, std::forward<OutR>(out_range));
  536|  1.62M|   } else {
  537|       |      if constexpr(sizeof(InT) == 1) {
  538|       |         out[0] = static_cast<uint8_t>(in);
  539|  1.62M|      } else if constexpr(endianness == std::endian::native) {
  540|  1.62M|         typecast_copy(out, in);
  541|       |      } else {
  542|       |         static_assert(opposite(endianness) == std::endian::native);
  543|       |         typecast_copy(out, reverse_bytes(in));
  544|       |      }
  545|  1.62M|   }
  546|  1.62M|}
_ZN5Botan8store_leINS_6detail10AutoDetectEJRmRA8_hEEEDaDpOT0_:
  736|  73.7k|inline constexpr auto store_le(ParamTs&&... params) {
  737|  73.7k|   return detail::store_any<std::endian::little, ModifierT>(std::forward<ParamTs>(params)...);
  738|  73.7k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS0_20unsigned_integralishEmQoosr3stdE7same_asIS4_T0_Esr3stdE7same_asIT1_S5_EEEvS6_Ph:
  711|  98.7k|inline constexpr void store_any(T in, uint8_t out[]) {
  712|       |   // asserts that *out points to enough bytes to write into
  713|  98.7k|   store_any<endianness, InT>(in, std::span<uint8_t, sizeof(T)>(out, sizeof(T)));
  714|  98.7k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS0_20unsigned_integralishEmTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm8EEEQsr3stdE7same_asIS4_T0_EEEvT1_OT2_:
  646|  98.7k|inline constexpr void store_any(T in, OutR&& out_range) {
  647|  98.7k|   store_any<endianness, T>(in, std::forward<OutR>(out_range));
  648|  98.7k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE57005ETkNS0_20unsigned_integralishEmTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm8EEEQnt15custom_storableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEEvS9_OT1_:
  525|  98.7k|inline constexpr void store_any(WrappedInT wrapped_in, OutR&& out_range) {
  526|  98.7k|   const auto in = detail::unwrap_strong_type_or_enum(wrapped_in);
  527|  98.7k|   using InT = decltype(in);
  528|  98.7k|   ranges::assert_exact_byte_length<sizeof(in)>(out_range);
  529|  98.7k|   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|  98.7k|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (534:7): [Folded, False: 98.7k]
  ------------------
  535|      0|      return fallback_store_any<endianness, InT>(in, std::forward<OutR>(out_range));
  536|  98.7k|   } else {
  537|       |      if constexpr(sizeof(InT) == 1) {
  538|       |         out[0] = static_cast<uint8_t>(in);
  539|  98.7k|      } else if constexpr(endianness == std::endian::native) {
  540|  98.7k|         typecast_copy(out, in);
  541|       |      } else {
  542|       |         static_assert(opposite(endianness) == std::endian::native);
  543|       |         typecast_copy(out, reverse_bytes(in));
  544|       |      }
  545|  98.7k|   }
  546|  98.7k|}
_ZN5Botan8get_byteILm1EtEEhT0_QltT_stS1_:
   81|   592k|{
   82|   592k|   const size_t shift = ((~B) & (sizeof(T) - 1)) << 3;
   83|   592k|   return static_cast<uint8_t>((input >> shift) & 0xFF);
   84|   592k|}
_ZN5Botan8get_byteILm0EtEEhT0_QltT_stS1_:
   81|   592k|{
   82|   592k|   const size_t shift = ((~B) & (sizeof(T) - 1)) << 3;
   83|   592k|   return static_cast<uint8_t>((input >> shift) & 0xFF);
   84|   592k|}
_ZN5Botan8get_byteILm3EjEEhT0_QltT_stS1_:
   81|  44.4M|{
   82|  44.4M|   const size_t shift = ((~B) & (sizeof(T) - 1)) << 3;
   83|  44.4M|   return static_cast<uint8_t>((input >> shift) & 0xFF);
   84|  44.4M|}
_ZN5Botan8get_byteILm2EjEEhT0_QltT_stS1_:
   81|  44.2M|{
   82|  44.2M|   const size_t shift = ((~B) & (sizeof(T) - 1)) << 3;
   83|  44.2M|   return static_cast<uint8_t>((input >> shift) & 0xFF);
   84|  44.2M|}
_ZN5Botan8get_byteILm1EjEEhT0_QltT_stS1_:
   81|  44.2M|{
   82|  44.2M|   const size_t shift = ((~B) & (sizeof(T) - 1)) << 3;
   83|  44.2M|   return static_cast<uint8_t>((input >> shift) & 0xFF);
   84|  44.2M|}
_ZN5Botan8get_byteILm0EjEEhT0_QltT_stS1_:
   81|  44.2M|{
   82|  44.2M|   const size_t shift = ((~B) & (sizeof(T) - 1)) << 3;
   83|  44.2M|   return static_cast<uint8_t>((input >> shift) & 0xFF);
   84|  44.2M|}
_ZN5Botan8get_byteILm7EmEEhT0_QltT_stS1_:
   81|  16.4M|{
   82|  16.4M|   const size_t shift = ((~B) & (sizeof(T) - 1)) << 3;
   83|  16.4M|   return static_cast<uint8_t>((input >> shift) & 0xFF);
   84|  16.4M|}
_ZN5Botan8get_byteILm6EmEEhT0_QltT_stS1_:
   81|  16.4M|{
   82|  16.4M|   const size_t shift = ((~B) & (sizeof(T) - 1)) << 3;
   83|  16.4M|   return static_cast<uint8_t>((input >> shift) & 0xFF);
   84|  16.4M|}
_ZN5Botan8get_byteILm5EmEEhT0_QltT_stS1_:
   81|  16.4M|{
   82|  16.4M|   const size_t shift = ((~B) & (sizeof(T) - 1)) << 3;
   83|  16.4M|   return static_cast<uint8_t>((input >> shift) & 0xFF);
   84|  16.4M|}
_ZN5Botan8get_byteILm4EmEEhT0_QltT_stS1_:
   81|  16.4M|{
   82|  16.4M|   const size_t shift = ((~B) & (sizeof(T) - 1)) << 3;
   83|  16.4M|   return static_cast<uint8_t>((input >> shift) & 0xFF);
   84|  16.4M|}
_ZN5Botan8get_byteILm3EmEEhT0_QltT_stS1_:
   81|  16.4M|{
   82|  16.4M|   const size_t shift = ((~B) & (sizeof(T) - 1)) << 3;
   83|  16.4M|   return static_cast<uint8_t>((input >> shift) & 0xFF);
   84|  16.4M|}
_ZN5Botan8get_byteILm2EmEEhT0_QltT_stS1_:
   81|  16.4M|{
   82|  16.4M|   const size_t shift = ((~B) & (sizeof(T) - 1)) << 3;
   83|  16.4M|   return static_cast<uint8_t>((input >> shift) & 0xFF);
   84|  16.4M|}
_ZN5Botan8get_byteILm1EmEEhT0_QltT_stS1_:
   81|  16.4M|{
   82|  16.4M|   const size_t shift = ((~B) & (sizeof(T) - 1)) << 3;
   83|  16.4M|   return static_cast<uint8_t>((input >> shift) & 0xFF);
   84|  16.4M|}
_ZN5Botan7load_beINS_6detail10AutoDetectEJRA8_jRPKhmEEEDaDpOT0_:
  504|   335k|inline constexpr auto load_be(ParamTs&&... params) {
  505|   335k|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|   335k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS0_20unsigned_integralishEjQoosr3stdE7same_asIS4_T0_Esr3stdE7same_asIT1_S5_EEEvPS6_PKhm:
  483|   335k|inline constexpr void load_any(T out[], const uint8_t in[], size_t count) {
  484|       |   // asserts that *in and *out point to the correct amount of memory
  485|   335k|   load_any<endianness, OutT>(std::span<T>(out, count), std::span<const uint8_t>(in, count * sizeof(T)));
  486|   335k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS_6ranges23contiguous_output_rangeENS2_4spanIjLm18446744073709551615EEETkNS5_16contiguous_rangeIhEENS6_IKhLm18446744073709551615EEEQaa20unsigned_integralishINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT1_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISI_EESJ_E4type10value_typeEEoosr3stdE7same_asIS4_T0_Esr3stdE7same_asISP_SO_EEEvOSF_RKT2_:
  355|   335k|inline constexpr void load_any(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  356|   335k|   ranges::assert_equal_byte_lengths(out, in);
  357|   335k|   using element_type = std::ranges::range_value_t<OutR>;
  358|       |
  359|   335k|   auto load_elementwise = [&] {
  360|   335k|      constexpr size_t bytes_per_element = sizeof(element_type);
  361|   335k|      std::span<const uint8_t> in_s(in);
  362|   335k|      for(auto& out_elem : out) {
  363|   335k|         out_elem = load_any<endianness, element_type>(in_s.template first<bytes_per_element>());
  364|   335k|         in_s = in_s.subspan(bytes_per_element);
  365|   335k|      }
  366|   335k|   };
  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|   335k|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (371:7): [Folded, False: 335k]
  ------------------
  372|      0|      load_elementwise();
  373|   335k|   } else {
  374|       |      if constexpr(endianness == std::endian::native && !custom_loadable<element_type>) {
  375|       |         typecast_copy(out, in);
  376|   335k|      } else {
  377|   335k|         load_elementwise();
  378|   335k|      }
  379|   335k|   }
  380|   335k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS_6ranges23contiguous_output_rangeENS2_4spanIjLm18446744073709551615EEETkNS5_16contiguous_rangeIhEENS6_IKhLm18446744073709551615EEEQaa20unsigned_integralishINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT1_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISI_EESJ_E4type10value_typeEEoosr3stdE7same_asIS4_T0_Esr3stdE7same_asISP_SO_EEEvOSF_RKT2_ENKUlvE_clEv:
  359|   335k|   auto load_elementwise = [&] {
  360|   335k|      constexpr size_t bytes_per_element = sizeof(element_type);
  361|   335k|      std::span<const uint8_t> in_s(in);
  362|  2.00M|      for(auto& out_elem : out) {
  ------------------
  |  Branch (362:26): [True: 2.00M, False: 335k]
  ------------------
  363|  2.00M|         out_elem = load_any<endianness, element_type>(in_s.template first<bytes_per_element>());
  364|  2.00M|         in_s = in_s.subspan(bytes_per_element);
  365|  2.00M|      }
  366|   335k|   };
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEjTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm4EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_:
  278|   330M|inline constexpr WrappedOutT load_any(InR&& in_range) {
  279|   330M|   using OutT = detail::wrapped_type<WrappedOutT>;
  280|   330M|   ranges::assert_exact_byte_length<sizeof(OutT)>(in_range);
  281|       |
  282|   330M|   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|   330M|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  287|   330M|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|   330M|      } else {
  289|   330M|         const std::span in{in_range};
  290|   330M|         if constexpr(sizeof(OutT) == 1) {
  291|   330M|            return static_cast<OutT>(in[0]);
  292|   330M|         } else if constexpr(endianness == std::endian::native) {
  293|   330M|            return typecast_copy<OutT>(in);
  294|   330M|         } else {
  295|   330M|            static_assert(opposite(endianness) == std::endian::native);
  296|   330M|            return reverse_bytes(typecast_copy<OutT>(in));
  297|   330M|         }
  298|   330M|      }
  299|   330M|   }());
  300|   330M|}
_ZN5Botan6detail24wrap_strong_type_or_enumITkNS0_20unsigned_integralishEjTkNSt3__117unsigned_integralEjEEDaT0_:
  200|   331M|constexpr auto wrap_strong_type_or_enum(T t) {
  201|       |   if constexpr(std::is_enum_v<OutT>) {
  202|       |      return static_cast<OutT>(t);
  203|   331M|   } else {
  204|   331M|      return Botan::wrap_strong_type<OutT>(t);
  205|   331M|   }
  206|   331M|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEjTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm4EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_ENKUlvE_clEv:
  282|   330M|   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|   330M|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (286:10): [Folded, False: 330M]
  ------------------
  287|      0|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|   330M|      } else {
  289|   330M|         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|   330M|         } else {
  295|   330M|            static_assert(opposite(endianness) == std::endian::native);
  296|   330M|            return reverse_bytes(typecast_copy<OutT>(in));
  297|   330M|         }
  298|   330M|      }
  299|   330M|   }());
_ZN5Botan11copy_out_beITkNS_6ranges14spanable_rangeEA8_jEEvNSt3__14spanIhLm18446744073709551615EEERKT_:
  773|   335k|inline void copy_out_be(std::span<uint8_t> out, const InR& in) {
  774|   335k|   using T = std::ranges::range_value_t<InR>;
  775|   335k|   std::span<const T> in_s{in};
  776|   335k|   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|   335k|   for(size_t i = 0; i < remaining_bytes; ++i) {
  ------------------
  |  Branch (779:22): [True: 0, False: 335k]
  ------------------
  780|      0|      out[i] = get_byte_var(i, in_s.front());
  781|      0|   }
  782|   335k|}
_ZN5Botan6detail33copy_out_any_word_aligned_portionILNSt3__16endianE64206ETkNS0_20unsigned_integralishEjEEmRNS2_4spanIhLm18446744073709551615EEERNS4_IKT0_Lm18446744073709551615EEE:
  752|   403k|inline size_t copy_out_any_word_aligned_portion(std::span<uint8_t>& out, std::span<const T>& in) {
  753|   403k|   const size_t full_words = out.size() / sizeof(T);
  754|   403k|   const size_t full_word_bytes = full_words * sizeof(T);
  755|   403k|   const size_t remaining_bytes = out.size() - full_word_bytes;
  756|   403k|   BOTAN_ASSERT_NOMSG(in.size_bytes() >= full_word_bytes + remaining_bytes);
  ------------------
  |  |   77|   403k|   do {                                                                     \
  |  |   78|   403k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|   403k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 403k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|   403k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 403k]
  |  |  ------------------
  ------------------
  757|       |
  758|       |   // copy full words
  759|   403k|   store_any<endianness, T>(out.first(full_word_bytes), in.first(full_words));
  760|   403k|   out = out.subspan(full_word_bytes);
  761|   403k|   in = in.subspan(full_words);
  762|       |
  763|   403k|   return remaining_bytes;
  764|   403k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206EjTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm18446744073709551615EEETkNS4_14spanable_rangeENS6_IKjLm18446744073709551615EEEQoosr3stdE7same_asINS0_10AutoDetectET0_Esr3stdE7same_asISB_NS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT2_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISJ_EESK_E4type10value_typeEEEEvOT1_RKSG_:
  603|   403k|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  604|   403k|   ranges::assert_equal_byte_lengths(out, in);
  605|   403k|   using element_type = std::ranges::range_value_t<InR>;
  606|       |
  607|   403k|   auto store_elementwise = [&] {
  608|   403k|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|   403k|      std::span<uint8_t> out_s(out);
  610|   403k|      for(auto in_elem : in) {
  611|   403k|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|   403k|         out_s = out_s.subspan(bytes_per_element);
  613|   403k|      }
  614|   403k|   };
  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|   403k|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (619:7): [Folded, False: 403k]
  ------------------
  620|      0|      store_elementwise();
  621|   403k|   } else {
  622|       |      if constexpr(endianness == std::endian::native && !custom_storable<element_type>) {
  623|       |         typecast_copy(out, in);
  624|   403k|      } else {
  625|   403k|         store_elementwise();
  626|   403k|      }
  627|   403k|   }
  628|   403k|}
_ZZN5Botan6detail9store_anyILNSt3__16endianE64206EjTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm18446744073709551615EEETkNS4_14spanable_rangeENS6_IKjLm18446744073709551615EEEQoosr3stdE7same_asINS0_10AutoDetectET0_Esr3stdE7same_asISB_NS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT2_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISJ_EESK_E4type10value_typeEEEEvOT1_RKSG_ENKUlvE_clEv:
  607|   403k|   auto store_elementwise = [&] {
  608|   403k|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|   403k|      std::span<uint8_t> out_s(out);
  610|  2.49M|      for(auto in_elem : in) {
  ------------------
  |  Branch (610:24): [True: 2.49M, False: 403k]
  ------------------
  611|  2.49M|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|  2.49M|         out_s = out_s.subspan(bytes_per_element);
  613|  2.49M|      }
  614|   403k|   };
_ZN5Botan6detail9store_anyILNSt3__16endianE64206EjTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm4EEETpTkNS0_20unsigned_integralishEJjEQaagtsZT2_Li0Eooaasr3stdE7same_asINS0_10AutoDetectET0_E10all_same_vIDpT2_Eaa20unsigned_integralishIS9_E10all_same_vIS9_SB_EEEvOT1_SB_:
  582|  2.49M|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, Ts... ins) {
  583|  2.49M|   ranges::assert_exact_byte_length<(sizeof(Ts) + ...)>(out);
  584|  2.49M|   auto store_one = [off = 0]<typename T>(auto o, T i) mutable {
  585|  2.49M|      store_any<endianness, T>(i, o.subspan(off).template first<sizeof(T)>());
  586|  2.49M|      off += sizeof(T);
  587|  2.49M|   };
  588|       |
  589|  2.49M|   (store_one(std::span{out}, ins), ...);
  590|  2.49M|}
_ZZN5Botan6detail9store_anyILNSt3__16endianE64206EjTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm4EEETpTkNS0_20unsigned_integralishEJjEQaagtsZT2_Li0Eooaasr3stdE7same_asINS0_10AutoDetectET0_E10all_same_vIDpT2_Eaa20unsigned_integralishIS9_E10all_same_vIS9_SB_EEEvOT1_SB_ENUlTyS9_T_E_clIjS7_EEDaS9_SE_:
  584|  2.49M|   auto store_one = [off = 0]<typename T>(auto o, T i) mutable {
  585|  2.49M|      store_any<endianness, T>(i, o.subspan(off).template first<sizeof(T)>());
  586|  2.49M|      off += sizeof(T);
  587|  2.49M|   };
_ZN5Botan7load_beIjJRPKhRmEEEDaDpOT0_:
  504|  88.9k|inline constexpr auto load_be(ParamTs&&... params) {
  505|  88.9k|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|  88.9k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEjEET0_PKhm:
  454|   801k|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|   801k|   constexpr size_t out_size = sizeof(OutT);
  457|   801k|   return load_any<endianness, OutT>(std::span<const uint8_t, out_size>(in + off * out_size, out_size));
  458|   801k|}
_ZN5Botan7load_beIjJRPKhiEEEDaDpOT0_:
  504|   620k|inline constexpr auto load_be(ParamTs&&... params) {
  505|   620k|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|   620k|}
_ZN5Botan8store_beINS_6detail10AutoDetectEJRPhRjS5_S5_S5_S5_S5_S5_S5_EEEDaDpOT0_:
  745|  39.0k|inline constexpr auto store_be(ParamTs&&... params) {
  746|  39.0k|   return detail::store_any<std::endian::big, ModifierT>(std::forward<ParamTs>(params)...);
  747|  39.0k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS0_20unsigned_integralishEjTpTkNS0_20unsigned_integralishEJjjjjjjjEQaaoosr3stdE7same_asIS4_T0_Esr3stdE7same_asIT1_S5_E10all_same_vIS6_DpT2_EEEvPhS6_S8_:
  723|  39.0k|inline constexpr void store_any(uint8_t out[], T0 in0, Ts... ins) {
  724|  39.0k|   constexpr auto bytes = sizeof(in0) + (sizeof(ins) + ... + 0);
  725|       |   // asserts that *out points to the correct amount of memory
  726|  39.0k|   store_any<endianness, T0>(std::span<uint8_t, bytes>(out, bytes), in0, ins...);
  727|  39.0k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206EjTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm32EEETpTkNS0_20unsigned_integralishEJjjjjjjjjEQaagtsZT2_Li0Eooaasr3stdE7same_asINS0_10AutoDetectET0_E10all_same_vIDpT2_Eaa20unsigned_integralishIS9_E10all_same_vIS9_SB_EEEvOT1_SB_:
  582|  39.0k|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, Ts... ins) {
  583|  39.0k|   ranges::assert_exact_byte_length<(sizeof(Ts) + ...)>(out);
  584|  39.0k|   auto store_one = [off = 0]<typename T>(auto o, T i) mutable {
  585|  39.0k|      store_any<endianness, T>(i, o.subspan(off).template first<sizeof(T)>());
  586|  39.0k|      off += sizeof(T);
  587|  39.0k|   };
  588|       |
  589|  39.0k|   (store_one(std::span{out}, ins), ...);
  590|  39.0k|}
_ZZN5Botan6detail9store_anyILNSt3__16endianE64206EjTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm32EEETpTkNS0_20unsigned_integralishEJjjjjjjjjEQaagtsZT2_Li0Eooaasr3stdE7same_asINS0_10AutoDetectET0_E10all_same_vIDpT2_Eaa20unsigned_integralishIS9_E10all_same_vIS9_SB_EEEvOT1_SB_ENUlTyS9_T_E_clIjS7_EEDaS9_SE_:
  584|   312k|   auto store_one = [off = 0]<typename T>(auto o, T i) mutable {
  585|   312k|      store_any<endianness, T>(i, o.subspan(off).template first<sizeof(T)>());
  586|   312k|      off += sizeof(T);
  587|   312k|   };
_ZN5Botan8store_beINS_6detail10AutoDetectEJRPhRjS5_EEEDaDpOT0_:
  745|   417k|inline constexpr auto store_be(ParamTs&&... params) {
  746|   417k|   return detail::store_any<std::endian::big, ModifierT>(std::forward<ParamTs>(params)...);
  747|   417k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS0_20unsigned_integralishEjTpTkNS0_20unsigned_integralishEJjEQaaoosr3stdE7same_asIS4_T0_Esr3stdE7same_asIT1_S5_E10all_same_vIS6_DpT2_EEEvPhS6_S8_:
  723|   417k|inline constexpr void store_any(uint8_t out[], T0 in0, Ts... ins) {
  724|   417k|   constexpr auto bytes = sizeof(in0) + (sizeof(ins) + ... + 0);
  725|       |   // asserts that *out points to the correct amount of memory
  726|   417k|   store_any<endianness, T0>(std::span<uint8_t, bytes>(out, bytes), in0, ins...);
  727|   417k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206EjTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm8EEETpTkNS0_20unsigned_integralishEJjjEQaagtsZT2_Li0Eooaasr3stdE7same_asINS0_10AutoDetectET0_E10all_same_vIDpT2_Eaa20unsigned_integralishIS9_E10all_same_vIS9_SB_EEEvOT1_SB_:
  582|   417k|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, Ts... ins) {
  583|   417k|   ranges::assert_exact_byte_length<(sizeof(Ts) + ...)>(out);
  584|   417k|   auto store_one = [off = 0]<typename T>(auto o, T i) mutable {
  585|   417k|      store_any<endianness, T>(i, o.subspan(off).template first<sizeof(T)>());
  586|   417k|      off += sizeof(T);
  587|   417k|   };
  588|       |
  589|   417k|   (store_one(std::span{out}, ins), ...);
  590|   417k|}
_ZZN5Botan6detail9store_anyILNSt3__16endianE64206EjTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm8EEETpTkNS0_20unsigned_integralishEJjjEQaagtsZT2_Li0Eooaasr3stdE7same_asINS0_10AutoDetectET0_E10all_same_vIDpT2_Eaa20unsigned_integralishIS9_E10all_same_vIS9_SB_EEEvOT1_SB_ENUlTyS9_T_E_clIjS7_EEDaS9_SE_:
  584|   835k|   auto store_one = [off = 0]<typename T>(auto o, T i) mutable {
  585|   835k|      store_any<endianness, T>(i, o.subspan(off).template first<sizeof(T)>());
  586|   835k|      off += sizeof(T);
  587|   835k|   };
_ZN5Botan7load_beImJRPKhmEEEDaDpOT0_:
  504|  1.69M|inline constexpr auto load_be(ParamTs&&... params) {
  505|  1.69M|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|  1.69M|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEmEET0_PKhm:
  454|  2.35M|inline constexpr OutT load_any(const uint8_t in[], size_t off) {
  455|       |   // asserts that *in points to enough bytes to read at offset off
  456|  2.35M|   constexpr size_t out_size = sizeof(OutT);
  457|  2.35M|   return load_any<endianness, OutT>(std::span<const uint8_t, out_size>(in + off * out_size, out_size));
  458|  2.35M|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEmTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm8EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_:
  278|  96.4M|inline constexpr WrappedOutT load_any(InR&& in_range) {
  279|  96.4M|   using OutT = detail::wrapped_type<WrappedOutT>;
  280|  96.4M|   ranges::assert_exact_byte_length<sizeof(OutT)>(in_range);
  281|       |
  282|  96.4M|   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|  96.4M|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  287|  96.4M|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  96.4M|      } else {
  289|  96.4M|         const std::span in{in_range};
  290|  96.4M|         if constexpr(sizeof(OutT) == 1) {
  291|  96.4M|            return static_cast<OutT>(in[0]);
  292|  96.4M|         } else if constexpr(endianness == std::endian::native) {
  293|  96.4M|            return typecast_copy<OutT>(in);
  294|  96.4M|         } else {
  295|  96.4M|            static_assert(opposite(endianness) == std::endian::native);
  296|  96.4M|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  96.4M|         }
  298|  96.4M|      }
  299|  96.4M|   }());
  300|  96.4M|}
_ZN5Botan6detail24wrap_strong_type_or_enumITkNS0_20unsigned_integralishEmTkNSt3__117unsigned_integralEmEEDaT0_:
  200|   138M|constexpr auto wrap_strong_type_or_enum(T t) {
  201|       |   if constexpr(std::is_enum_v<OutT>) {
  202|       |      return static_cast<OutT>(t);
  203|   138M|   } else {
  204|   138M|      return Botan::wrap_strong_type<OutT>(t);
  205|   138M|   }
  206|   138M|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEmTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm8EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_ENKUlvE_clEv:
  282|  96.4M|   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|  96.4M|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (286:10): [Folded, False: 96.4M]
  ------------------
  287|      0|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  96.4M|      } else {
  289|  96.4M|         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|  96.4M|         } else {
  295|  96.4M|            static_assert(opposite(endianness) == std::endian::native);
  296|  96.4M|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  96.4M|         }
  298|  96.4M|      }
  299|  96.4M|   }());
_ZN5Botan8store_beINS_6detail10AutoDetectEJPhRmS4_EEEDaDpOT0_:
  745|   845k|inline constexpr auto store_be(ParamTs&&... params) {
  746|   845k|   return detail::store_any<std::endian::big, ModifierT>(std::forward<ParamTs>(params)...);
  747|   845k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS0_20unsigned_integralishEmTpTkNS0_20unsigned_integralishEJmEQaaoosr3stdE7same_asIS4_T0_Esr3stdE7same_asIT1_S5_E10all_same_vIS6_DpT2_EEEvPhS6_S8_:
  723|   845k|inline constexpr void store_any(uint8_t out[], T0 in0, Ts... ins) {
  724|   845k|   constexpr auto bytes = sizeof(in0) + (sizeof(ins) + ... + 0);
  725|       |   // asserts that *out points to the correct amount of memory
  726|   845k|   store_any<endianness, T0>(std::span<uint8_t, bytes>(out, bytes), in0, ins...);
  727|   845k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206EmTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm16EEETpTkNS0_20unsigned_integralishEJmmEQaagtsZT2_Li0Eooaasr3stdE7same_asINS0_10AutoDetectET0_E10all_same_vIDpT2_Eaa20unsigned_integralishIS9_E10all_same_vIS9_SB_EEEvOT1_SB_:
  582|   845k|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, Ts... ins) {
  583|   845k|   ranges::assert_exact_byte_length<(sizeof(Ts) + ...)>(out);
  584|   845k|   auto store_one = [off = 0]<typename T>(auto o, T i) mutable {
  585|   845k|      store_any<endianness, T>(i, o.subspan(off).template first<sizeof(T)>());
  586|   845k|      off += sizeof(T);
  587|   845k|   };
  588|       |
  589|   845k|   (store_one(std::span{out}, ins), ...);
  590|   845k|}
_ZZN5Botan6detail9store_anyILNSt3__16endianE64206EmTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm16EEETpTkNS0_20unsigned_integralishEJmmEQaagtsZT2_Li0Eooaasr3stdE7same_asINS0_10AutoDetectET0_E10all_same_vIDpT2_Eaa20unsigned_integralishIS9_E10all_same_vIS9_SB_EEEvOT1_SB_ENUlTyS9_T_E_clImS7_EEDaS9_SE_:
  584|  1.69M|   auto store_one = [off = 0]<typename T>(auto o, T i) mutable {
  585|  1.69M|      store_any<endianness, T>(i, o.subspan(off).template first<sizeof(T)>());
  586|  1.69M|      off += sizeof(T);
  587|  1.69M|   };
_ZN5Botan7load_beImJPKhiEEEDaDpOT0_:
  504|  19.1k|inline constexpr auto load_be(ParamTs&&... params) {
  505|  19.1k|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|  19.1k|}
_ZN5Botan7load_beINS_6detail10AutoDetectEJRPKhRjS6_S6_S6_EEEDaDpOT0_:
  504|   106k|inline constexpr auto load_be(ParamTs&&... params) {
  505|   106k|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|   106k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ENS0_10AutoDetectETpTkNS0_20unsigned_integralishEJjjjjEQaaaagtsZT1_Li0E10all_same_vIDpT1_Eooaasr3stdE7same_asIS4_T0_E10all_same_vIS6_Eaa20unsigned_integralishIS7_E10all_same_vIS7_S6_EEEvPKhDpRS5_:
  469|   106k|inline constexpr void load_any(const uint8_t in[], Ts&... outs) {
  470|   106k|   constexpr auto bytes = (sizeof(outs) + ...);
  471|       |   // asserts that *in points to the correct amount of memory
  472|   106k|   load_any<endianness, OutT>(std::span<const uint8_t, bytes>(in, bytes), outs...);
  473|   106k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm16EEETpTkNS0_20unsigned_integralishEJjjjjEQaagtsZT2_Li0Eooaasr3stdE7same_asIS4_T0_E10all_same_vIDpT2_Eaa20unsigned_integralishISA_E10all_same_vISA_SC_EEEvRKT1_DpRSB_:
  332|   106k|inline constexpr void load_any(const InR& in, Ts&... outs) {
  333|   106k|   ranges::assert_exact_byte_length<(sizeof(Ts) + ...)>(in);
  334|   106k|   auto load_one = [off = 0]<typename T>(auto i, T& o) mutable {
  335|   106k|      o = load_any<endianness, T>(i.subspan(off).template first<sizeof(T)>());
  336|   106k|      off += sizeof(T);
  337|   106k|   };
  338|       |
  339|   106k|   (load_one(std::span{in}, outs), ...);
  340|   106k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm16EEETpTkNS0_20unsigned_integralishEJjjjjEQaagtsZT2_Li0Eooaasr3stdE7same_asIS4_T0_E10all_same_vIDpT2_Eaa20unsigned_integralishISA_E10all_same_vISA_SC_EEEvRKT1_DpRSB_ENUlTySA_RT_E_clIjS9_EEDaSA_SJ_:
  334|   425k|   auto load_one = [off = 0]<typename T>(auto i, T& o) mutable {
  335|   425k|      o = load_any<endianness, T>(i.subspan(off).template first<sizeof(T)>());
  336|   425k|      off += sizeof(T);
  337|   425k|   };
_ZN5Botan8store_beINS_6detail10AutoDetectEJRPhRjS5_S5_S5_EEEDaDpOT0_:
  745|   110k|inline constexpr auto store_be(ParamTs&&... params) {
  746|   110k|   return detail::store_any<std::endian::big, ModifierT>(std::forward<ParamTs>(params)...);
  747|   110k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS0_20unsigned_integralishEjTpTkNS0_20unsigned_integralishEJjjjEQaaoosr3stdE7same_asIS4_T0_Esr3stdE7same_asIT1_S5_E10all_same_vIS6_DpT2_EEEvPhS6_S8_:
  723|   110k|inline constexpr void store_any(uint8_t out[], T0 in0, Ts... ins) {
  724|   110k|   constexpr auto bytes = sizeof(in0) + (sizeof(ins) + ... + 0);
  725|       |   // asserts that *out points to the correct amount of memory
  726|   110k|   store_any<endianness, T0>(std::span<uint8_t, bytes>(out, bytes), in0, ins...);
  727|   110k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206EjTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm16EEETpTkNS0_20unsigned_integralishEJjjjjEQaagtsZT2_Li0Eooaasr3stdE7same_asINS0_10AutoDetectET0_E10all_same_vIDpT2_Eaa20unsigned_integralishIS9_E10all_same_vIS9_SB_EEEvOT1_SB_:
  582|   110k|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, Ts... ins) {
  583|   110k|   ranges::assert_exact_byte_length<(sizeof(Ts) + ...)>(out);
  584|   110k|   auto store_one = [off = 0]<typename T>(auto o, T i) mutable {
  585|   110k|      store_any<endianness, T>(i, o.subspan(off).template first<sizeof(T)>());
  586|   110k|      off += sizeof(T);
  587|   110k|   };
  588|       |
  589|   110k|   (store_one(std::span{out}, ins), ...);
  590|   110k|}
_ZZN5Botan6detail9store_anyILNSt3__16endianE64206EjTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm16EEETpTkNS0_20unsigned_integralishEJjjjjEQaagtsZT2_Li0Eooaasr3stdE7same_asINS0_10AutoDetectET0_E10all_same_vIDpT2_Eaa20unsigned_integralishIS9_E10all_same_vIS9_SB_EEEvOT1_SB_ENUlTyS9_T_E_clIjS7_EEDaS9_SE_:
  584|   440k|   auto store_one = [off = 0]<typename T>(auto o, T i) mutable {
  585|   440k|      store_any<endianness, T>(i, o.subspan(off).template first<sizeof(T)>());
  586|   440k|      off += sizeof(T);
  587|   440k|   };
_ZN5Botan7load_beINS_6detail10AutoDetectEJRPKhRjS6_EEEDaDpOT0_:
  504|   271k|inline constexpr auto load_be(ParamTs&&... params) {
  505|   271k|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|   271k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ENS0_10AutoDetectETpTkNS0_20unsigned_integralishEJjjEQaaaagtsZT1_Li0E10all_same_vIDpT1_Eooaasr3stdE7same_asIS4_T0_E10all_same_vIS6_Eaa20unsigned_integralishIS7_E10all_same_vIS7_S6_EEEvPKhDpRS5_:
  469|   271k|inline constexpr void load_any(const uint8_t in[], Ts&... outs) {
  470|   271k|   constexpr auto bytes = (sizeof(outs) + ...);
  471|       |   // asserts that *in points to the correct amount of memory
  472|   271k|   load_any<endianness, OutT>(std::span<const uint8_t, bytes>(in, bytes), outs...);
  473|   271k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm8EEETpTkNS0_20unsigned_integralishEJjjEQaagtsZT2_Li0Eooaasr3stdE7same_asIS4_T0_E10all_same_vIDpT2_Eaa20unsigned_integralishISA_E10all_same_vISA_SC_EEEvRKT1_DpRSB_:
  332|   271k|inline constexpr void load_any(const InR& in, Ts&... outs) {
  333|   271k|   ranges::assert_exact_byte_length<(sizeof(Ts) + ...)>(in);
  334|   271k|   auto load_one = [off = 0]<typename T>(auto i, T& o) mutable {
  335|   271k|      o = load_any<endianness, T>(i.subspan(off).template first<sizeof(T)>());
  336|   271k|      off += sizeof(T);
  337|   271k|   };
  338|       |
  339|   271k|   (load_one(std::span{in}, outs), ...);
  340|   271k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm8EEETpTkNS0_20unsigned_integralishEJjjEQaagtsZT2_Li0Eooaasr3stdE7same_asIS4_T0_E10all_same_vIDpT2_Eaa20unsigned_integralishISA_E10all_same_vISA_SC_EEEvRKT1_DpRSB_ENUlTySA_RT_E_clIjS9_EEDaSA_SJ_:
  334|   542k|   auto load_one = [off = 0]<typename T>(auto i, T& o) mutable {
  335|   542k|      o = load_any<endianness, T>(i.subspan(off).template first<sizeof(T)>());
  336|   542k|      off += sizeof(T);
  337|   542k|   };
_ZN5Botan7load_beIjJPhRmEEEDaDpOT0_:
  504|  69.5k|inline constexpr auto load_be(ParamTs&&... params) {
  505|  69.5k|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|  69.5k|}
_ZN5Botan7load_beImJRA32_mRPKhRmEEEDaDpOT0_:
  504|   208k|inline constexpr auto load_be(ParamTs&&... params) {
  505|   208k|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|   208k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206EmTkNS0_20unsigned_integralishEmQoosr3stdE7same_asINS0_10AutoDetectET0_Esr3stdE7same_asIT1_S5_EEEvPS6_PKhm:
  483|   208k|inline constexpr void load_any(T out[], const uint8_t in[], size_t count) {
  484|       |   // asserts that *in and *out point to the correct amount of memory
  485|   208k|   load_any<endianness, OutT>(std::span<T>(out, count), std::span<const uint8_t>(in, count * sizeof(T)));
  486|   208k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206EmTkNS_6ranges23contiguous_output_rangeENS2_4spanImLm18446744073709551615EEETkNS4_16contiguous_rangeIhEENS5_IKhLm18446744073709551615EEEQaa20unsigned_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|   208k|inline constexpr void load_any(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  356|   208k|   ranges::assert_equal_byte_lengths(out, in);
  357|   208k|   using element_type = std::ranges::range_value_t<OutR>;
  358|       |
  359|   208k|   auto load_elementwise = [&] {
  360|   208k|      constexpr size_t bytes_per_element = sizeof(element_type);
  361|   208k|      std::span<const uint8_t> in_s(in);
  362|   208k|      for(auto& out_elem : out) {
  363|   208k|         out_elem = load_any<endianness, element_type>(in_s.template first<bytes_per_element>());
  364|   208k|         in_s = in_s.subspan(bytes_per_element);
  365|   208k|      }
  366|   208k|   };
  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|   208k|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (371:7): [Folded, False: 208k]
  ------------------
  372|      0|      load_elementwise();
  373|   208k|   } else {
  374|       |      if constexpr(endianness == std::endian::native && !custom_loadable<element_type>) {
  375|       |         typecast_copy(out, in);
  376|   208k|      } else {
  377|   208k|         load_elementwise();
  378|   208k|      }
  379|   208k|   }
  380|   208k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE64206EmTkNS_6ranges23contiguous_output_rangeENS2_4spanImLm18446744073709551615EEETkNS4_16contiguous_rangeIhEENS5_IKhLm18446744073709551615EEEQaa20unsigned_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_ENKUlvE_clEv:
  359|   208k|   auto load_elementwise = [&] {
  360|   208k|      constexpr size_t bytes_per_element = sizeof(element_type);
  361|   208k|      std::span<const uint8_t> in_s(in);
  362|   410k|      for(auto& out_elem : out) {
  ------------------
  |  Branch (362:26): [True: 410k, False: 208k]
  ------------------
  363|   410k|         out_elem = load_any<endianness, element_type>(in_s.template first<bytes_per_element>());
  364|   410k|         in_s = in_s.subspan(bytes_per_element);
  365|   410k|      }
  366|   208k|   };
_ZN5Botan8store_beINS_6detail10AutoDetectEJPhRmEEEDaDpOT0_:
  745|   410k|inline constexpr auto store_be(ParamTs&&... params) {
  746|   410k|   return detail::store_any<std::endian::big, ModifierT>(std::forward<ParamTs>(params)...);
  747|   410k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS0_20unsigned_integralishEmTpTkNS0_20unsigned_integralishEJEQaaoosr3stdE7same_asIS4_T0_Esr3stdE7same_asIT1_S5_E10all_same_vIS6_DpT2_EEEvPhS6_S8_:
  723|   410k|inline constexpr void store_any(uint8_t out[], T0 in0, Ts... ins) {
  724|   410k|   constexpr auto bytes = sizeof(in0) + (sizeof(ins) + ... + 0);
  725|       |   // asserts that *out points to the correct amount of memory
  726|   410k|   store_any<endianness, T0>(std::span<uint8_t, bytes>(out, bytes), in0, ins...);
  727|   410k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206EmTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm8EEETpTkNS0_20unsigned_integralishEJmEQaagtsZT2_Li0Eooaasr3stdE7same_asINS0_10AutoDetectET0_E10all_same_vIDpT2_Eaa20unsigned_integralishIS9_E10all_same_vIS9_SB_EEEvOT1_SB_:
  582|  2.86M|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, Ts... ins) {
  583|  2.86M|   ranges::assert_exact_byte_length<(sizeof(Ts) + ...)>(out);
  584|  2.86M|   auto store_one = [off = 0]<typename T>(auto o, T i) mutable {
  585|  2.86M|      store_any<endianness, T>(i, o.subspan(off).template first<sizeof(T)>());
  586|  2.86M|      off += sizeof(T);
  587|  2.86M|   };
  588|       |
  589|  2.86M|   (store_one(std::span{out}, ins), ...);
  590|  2.86M|}
_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|  2.86M|   auto store_one = [off = 0]<typename T>(auto o, T i) mutable {
  585|  2.86M|      store_any<endianness, T>(i, o.subspan(off).template first<sizeof(T)>());
  586|  2.86M|      off += sizeof(T);
  587|  2.86M|   };
_ZN5Botan7load_beINS_6detail10AutoDetectEJPKhRtS5_S5_S5_EEEDaDpOT0_:
  504|  56.2k|inline constexpr auto load_be(ParamTs&&... params) {
  505|  56.2k|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|  56.2k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ENS0_10AutoDetectETpTkNS0_20unsigned_integralishEJttttEQaaaagtsZT1_Li0E10all_same_vIDpT1_Eooaasr3stdE7same_asIS4_T0_E10all_same_vIS6_Eaa20unsigned_integralishIS7_E10all_same_vIS7_S6_EEEvPKhDpRS5_:
  469|  56.2k|inline constexpr void load_any(const uint8_t in[], Ts&... outs) {
  470|  56.2k|   constexpr auto bytes = (sizeof(outs) + ...);
  471|       |   // asserts that *in points to the correct amount of memory
  472|  56.2k|   load_any<endianness, OutT>(std::span<const uint8_t, bytes>(in, bytes), outs...);
  473|  56.2k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm8EEETpTkNS0_20unsigned_integralishEJttttEQaagtsZT2_Li0Eooaasr3stdE7same_asIS4_T0_E10all_same_vIDpT2_Eaa20unsigned_integralishISA_E10all_same_vISA_SC_EEEvRKT1_DpRSB_:
  332|  56.2k|inline constexpr void load_any(const InR& in, Ts&... outs) {
  333|  56.2k|   ranges::assert_exact_byte_length<(sizeof(Ts) + ...)>(in);
  334|  56.2k|   auto load_one = [off = 0]<typename T>(auto i, T& o) mutable {
  335|  56.2k|      o = load_any<endianness, T>(i.subspan(off).template first<sizeof(T)>());
  336|  56.2k|      off += sizeof(T);
  337|  56.2k|   };
  338|       |
  339|  56.2k|   (load_one(std::span{in}, outs), ...);
  340|  56.2k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm8EEETpTkNS0_20unsigned_integralishEJttttEQaagtsZT2_Li0Eooaasr3stdE7same_asIS4_T0_E10all_same_vIDpT2_Eaa20unsigned_integralishISA_E10all_same_vISA_SC_EEEvRKT1_DpRSB_ENUlTySA_RT_E_clItS9_EEDaSA_SJ_:
  334|   224k|   auto load_one = [off = 0]<typename T>(auto i, T& o) mutable {
  335|   224k|      o = load_any<endianness, T>(i.subspan(off).template first<sizeof(T)>());
  336|   224k|      off += sizeof(T);
  337|   224k|   };
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEtTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm2EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_:
  278|   224k|inline constexpr WrappedOutT load_any(InR&& in_range) {
  279|   224k|   using OutT = detail::wrapped_type<WrappedOutT>;
  280|   224k|   ranges::assert_exact_byte_length<sizeof(OutT)>(in_range);
  281|       |
  282|   224k|   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|   224k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  287|   224k|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|   224k|      } else {
  289|   224k|         const std::span in{in_range};
  290|   224k|         if constexpr(sizeof(OutT) == 1) {
  291|   224k|            return static_cast<OutT>(in[0]);
  292|   224k|         } else if constexpr(endianness == std::endian::native) {
  293|   224k|            return typecast_copy<OutT>(in);
  294|   224k|         } else {
  295|   224k|            static_assert(opposite(endianness) == std::endian::native);
  296|   224k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|   224k|         }
  298|   224k|      }
  299|   224k|   }());
  300|   224k|}
_ZN5Botan6detail24wrap_strong_type_or_enumITkNS0_20unsigned_integralishEtTkNSt3__117unsigned_integralEtEEDaT0_:
  200|   224k|constexpr auto wrap_strong_type_or_enum(T t) {
  201|       |   if constexpr(std::is_enum_v<OutT>) {
  202|       |      return static_cast<OutT>(t);
  203|   224k|   } else {
  204|   224k|      return Botan::wrap_strong_type<OutT>(t);
  205|   224k|   }
  206|   224k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEtTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm2EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_ENKUlvE_clEv:
  282|   224k|   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|   224k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (286:10): [Folded, False: 224k]
  ------------------
  287|      0|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|   224k|      } else {
  289|   224k|         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|   224k|         } else {
  295|   224k|            static_assert(opposite(endianness) == std::endian::native);
  296|   224k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|   224k|         }
  298|   224k|      }
  299|   224k|   }());
_ZN5Botan8store_beINS_6detail10AutoDetectEJPhRtS4_S4_S4_EEEDaDpOT0_:
  745|  56.2k|inline constexpr auto store_be(ParamTs&&... params) {
  746|  56.2k|   return detail::store_any<std::endian::big, ModifierT>(std::forward<ParamTs>(params)...);
  747|  56.2k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS0_20unsigned_integralishEtTpTkNS0_20unsigned_integralishEJtttEQaaoosr3stdE7same_asIS4_T0_Esr3stdE7same_asIT1_S5_E10all_same_vIS6_DpT2_EEEvPhS6_S8_:
  723|  56.2k|inline constexpr void store_any(uint8_t out[], T0 in0, Ts... ins) {
  724|  56.2k|   constexpr auto bytes = sizeof(in0) + (sizeof(ins) + ... + 0);
  725|       |   // asserts that *out points to the correct amount of memory
  726|  56.2k|   store_any<endianness, T0>(std::span<uint8_t, bytes>(out, bytes), in0, ins...);
  727|  56.2k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206EtTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm8EEETpTkNS0_20unsigned_integralishEJttttEQaagtsZT2_Li0Eooaasr3stdE7same_asINS0_10AutoDetectET0_E10all_same_vIDpT2_Eaa20unsigned_integralishIS9_E10all_same_vIS9_SB_EEEvOT1_SB_:
  582|  56.2k|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, Ts... ins) {
  583|  56.2k|   ranges::assert_exact_byte_length<(sizeof(Ts) + ...)>(out);
  584|  56.2k|   auto store_one = [off = 0]<typename T>(auto o, T i) mutable {
  585|  56.2k|      store_any<endianness, T>(i, o.subspan(off).template first<sizeof(T)>());
  586|  56.2k|      off += sizeof(T);
  587|  56.2k|   };
  588|       |
  589|  56.2k|   (store_one(std::span{out}, ins), ...);
  590|  56.2k|}
_ZZN5Botan6detail9store_anyILNSt3__16endianE64206EtTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm8EEETpTkNS0_20unsigned_integralishEJttttEQaagtsZT2_Li0Eooaasr3stdE7same_asINS0_10AutoDetectET0_E10all_same_vIDpT2_Eaa20unsigned_integralishIS9_E10all_same_vIS9_SB_EEEvOT1_SB_ENUlTyS9_T_E_clItS7_EEDaS9_SE_:
  584|   224k|   auto store_one = [off = 0]<typename T>(auto o, T i) mutable {
  585|   224k|      store_any<endianness, T>(i, o.subspan(off).template first<sizeof(T)>());
  586|   224k|      off += sizeof(T);
  587|   224k|   };
_ZN5Botan7load_beIjJPKhiEEEDaDpOT0_:
  504|  3.57k|inline constexpr auto load_be(ParamTs&&... params) {
  505|  3.57k|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|  3.57k|}
_ZN5Botan7load_leINS_6detail10AutoDetectEJRPKhRjS6_S6_S6_S6_S6_S6_S6_EEEDaDpOT0_:
  495|   124k|inline constexpr auto load_le(ParamTs&&... params) {
  496|   124k|   return detail::load_any<std::endian::little, OutT>(std::forward<ParamTs>(params)...);
  497|   124k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE57005ENS0_10AutoDetectETpTkNS0_20unsigned_integralishEJjjjjjjjjEQaaaagtsZT1_Li0E10all_same_vIDpT1_Eooaasr3stdE7same_asIS4_T0_E10all_same_vIS6_Eaa20unsigned_integralishIS7_E10all_same_vIS7_S6_EEEvPKhDpRS5_:
  469|   124k|inline constexpr void load_any(const uint8_t in[], Ts&... outs) {
  470|   124k|   constexpr auto bytes = (sizeof(outs) + ...);
  471|       |   // asserts that *in points to the correct amount of memory
  472|   124k|   load_any<endianness, OutT>(std::span<const uint8_t, bytes>(in, bytes), outs...);
  473|   124k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm32EEETpTkNS0_20unsigned_integralishEJjjjjjjjjEQaagtsZT2_Li0Eooaasr3stdE7same_asIS4_T0_E10all_same_vIDpT2_Eaa20unsigned_integralishISA_E10all_same_vISA_SC_EEEvRKT1_DpRSB_:
  332|   124k|inline constexpr void load_any(const InR& in, Ts&... outs) {
  333|   124k|   ranges::assert_exact_byte_length<(sizeof(Ts) + ...)>(in);
  334|   124k|   auto load_one = [off = 0]<typename T>(auto i, T& o) mutable {
  335|   124k|      o = load_any<endianness, T>(i.subspan(off).template first<sizeof(T)>());
  336|   124k|      off += sizeof(T);
  337|   124k|   };
  338|       |
  339|   124k|   (load_one(std::span{in}, outs), ...);
  340|   124k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm32EEETpTkNS0_20unsigned_integralishEJjjjjjjjjEQaagtsZT2_Li0Eooaasr3stdE7same_asIS4_T0_E10all_same_vIDpT2_Eaa20unsigned_integralishISA_E10all_same_vISA_SC_EEEvRKT1_DpRSB_ENUlTySA_RT_E_clIjS9_EEDaSA_SJ_:
  334|   992k|   auto load_one = [off = 0]<typename T>(auto i, T& o) mutable {
  335|   992k|      o = load_any<endianness, T>(i.subspan(off).template first<sizeof(T)>());
  336|   992k|      off += sizeof(T);
  337|   992k|   };
_ZN5Botan6detail8load_anyILNSt3__16endianE57005ETkNS0_20unsigned_integralishEjTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm4EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_:
  278|  1.62M|inline constexpr WrappedOutT load_any(InR&& in_range) {
  279|  1.62M|   using OutT = detail::wrapped_type<WrappedOutT>;
  280|  1.62M|   ranges::assert_exact_byte_length<sizeof(OutT)>(in_range);
  281|       |
  282|  1.62M|   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|  1.62M|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  287|  1.62M|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  1.62M|      } else {
  289|  1.62M|         const std::span in{in_range};
  290|  1.62M|         if constexpr(sizeof(OutT) == 1) {
  291|  1.62M|            return static_cast<OutT>(in[0]);
  292|  1.62M|         } else if constexpr(endianness == std::endian::native) {
  293|  1.62M|            return typecast_copy<OutT>(in);
  294|  1.62M|         } else {
  295|  1.62M|            static_assert(opposite(endianness) == std::endian::native);
  296|  1.62M|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  1.62M|         }
  298|  1.62M|      }
  299|  1.62M|   }());
  300|  1.62M|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE57005ETkNS0_20unsigned_integralishEjTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm4EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_ENKUlvE_clEv:
  282|  1.62M|   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|  1.62M|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (286:10): [Folded, False: 1.62M]
  ------------------
  287|      0|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  1.62M|      } else {
  289|  1.62M|         const std::span in{in_range};
  290|       |         if constexpr(sizeof(OutT) == 1) {
  291|       |            return static_cast<OutT>(in[0]);
  292|  1.62M|         } else if constexpr(endianness == std::endian::native) {
  293|  1.62M|            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|  1.62M|      }
  299|  1.62M|   }());
_ZN5Botan8store_leINS_6detail10AutoDetectEJRPhRjS5_S5_S5_S5_S5_S5_S5_EEEDaDpOT0_:
  736|   124k|inline constexpr auto store_le(ParamTs&&... params) {
  737|   124k|   return detail::store_any<std::endian::little, ModifierT>(std::forward<ParamTs>(params)...);
  738|   124k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS0_20unsigned_integralishEjTpTkNS0_20unsigned_integralishEJjjjjjjjEQaaoosr3stdE7same_asIS4_T0_Esr3stdE7same_asIT1_S5_E10all_same_vIS6_DpT2_EEEvPhS6_S8_:
  723|   124k|inline constexpr void store_any(uint8_t out[], T0 in0, Ts... ins) {
  724|   124k|   constexpr auto bytes = sizeof(in0) + (sizeof(ins) + ... + 0);
  725|       |   // asserts that *out points to the correct amount of memory
  726|   124k|   store_any<endianness, T0>(std::span<uint8_t, bytes>(out, bytes), in0, ins...);
  727|   124k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE57005EjTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm32EEETpTkNS0_20unsigned_integralishEJjjjjjjjjEQaagtsZT2_Li0Eooaasr3stdE7same_asINS0_10AutoDetectET0_E10all_same_vIDpT2_Eaa20unsigned_integralishIS9_E10all_same_vIS9_SB_EEEvOT1_SB_:
  582|   124k|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, Ts... ins) {
  583|   124k|   ranges::assert_exact_byte_length<(sizeof(Ts) + ...)>(out);
  584|   124k|   auto store_one = [off = 0]<typename T>(auto o, T i) mutable {
  585|   124k|      store_any<endianness, T>(i, o.subspan(off).template first<sizeof(T)>());
  586|   124k|      off += sizeof(T);
  587|   124k|   };
  588|       |
  589|   124k|   (store_one(std::span{out}, ins), ...);
  590|   124k|}
_ZZN5Botan6detail9store_anyILNSt3__16endianE57005EjTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm32EEETpTkNS0_20unsigned_integralishEJjjjjjjjjEQaagtsZT2_Li0Eooaasr3stdE7same_asINS0_10AutoDetectET0_E10all_same_vIDpT2_Eaa20unsigned_integralishIS9_E10all_same_vIS9_SB_EEEvOT1_SB_ENUlTyS9_T_E_clIjS7_EEDaS9_SE_:
  584|   992k|   auto store_one = [off = 0]<typename T>(auto o, T i) mutable {
  585|   992k|      store_any<endianness, T>(i, o.subspan(off).template first<sizeof(T)>());
  586|   992k|      off += sizeof(T);
  587|   992k|   };
_ZN5Botan7load_leINS_6detail10AutoDetectEJRPKhRjS6_S6_S6_EEEDaDpOT0_:
  495|   142k|inline constexpr auto load_le(ParamTs&&... params) {
  496|   142k|   return detail::load_any<std::endian::little, OutT>(std::forward<ParamTs>(params)...);
  497|   142k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE57005ENS0_10AutoDetectETpTkNS0_20unsigned_integralishEJjjjjEQaaaagtsZT1_Li0E10all_same_vIDpT1_Eooaasr3stdE7same_asIS4_T0_E10all_same_vIS6_Eaa20unsigned_integralishIS7_E10all_same_vIS7_S6_EEEvPKhDpRS5_:
  469|   142k|inline constexpr void load_any(const uint8_t in[], Ts&... outs) {
  470|   142k|   constexpr auto bytes = (sizeof(outs) + ...);
  471|       |   // asserts that *in points to the correct amount of memory
  472|   142k|   load_any<endianness, OutT>(std::span<const uint8_t, bytes>(in, bytes), outs...);
  473|   142k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm16EEETpTkNS0_20unsigned_integralishEJjjjjEQaagtsZT2_Li0Eooaasr3stdE7same_asIS4_T0_E10all_same_vIDpT2_Eaa20unsigned_integralishISA_E10all_same_vISA_SC_EEEvRKT1_DpRSB_:
  332|   142k|inline constexpr void load_any(const InR& in, Ts&... outs) {
  333|   142k|   ranges::assert_exact_byte_length<(sizeof(Ts) + ...)>(in);
  334|   142k|   auto load_one = [off = 0]<typename T>(auto i, T& o) mutable {
  335|   142k|      o = load_any<endianness, T>(i.subspan(off).template first<sizeof(T)>());
  336|   142k|      off += sizeof(T);
  337|   142k|   };
  338|       |
  339|   142k|   (load_one(std::span{in}, outs), ...);
  340|   142k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm16EEETpTkNS0_20unsigned_integralishEJjjjjEQaagtsZT2_Li0Eooaasr3stdE7same_asIS4_T0_E10all_same_vIDpT2_Eaa20unsigned_integralishISA_E10all_same_vISA_SC_EEEvRKT1_DpRSB_ENUlTySA_RT_E_clIjS9_EEDaSA_SJ_:
  334|   571k|   auto load_one = [off = 0]<typename T>(auto i, T& o) mutable {
  335|   571k|      o = load_any<endianness, T>(i.subspan(off).template first<sizeof(T)>());
  336|   571k|      off += sizeof(T);
  337|   571k|   };
_ZN5Botan8store_leINS_6detail10AutoDetectEJRPhRjS5_S5_S5_EEEDaDpOT0_:
  736|   142k|inline constexpr auto store_le(ParamTs&&... params) {
  737|   142k|   return detail::store_any<std::endian::little, ModifierT>(std::forward<ParamTs>(params)...);
  738|   142k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS0_20unsigned_integralishEjTpTkNS0_20unsigned_integralishEJjjjEQaaoosr3stdE7same_asIS4_T0_Esr3stdE7same_asIT1_S5_E10all_same_vIS6_DpT2_EEEvPhS6_S8_:
  723|   142k|inline constexpr void store_any(uint8_t out[], T0 in0, Ts... ins) {
  724|   142k|   constexpr auto bytes = sizeof(in0) + (sizeof(ins) + ... + 0);
  725|       |   // asserts that *out points to the correct amount of memory
  726|   142k|   store_any<endianness, T0>(std::span<uint8_t, bytes>(out, bytes), in0, ins...);
  727|   142k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE57005EjTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm16EEETpTkNS0_20unsigned_integralishEJjjjjEQaagtsZT2_Li0Eooaasr3stdE7same_asINS0_10AutoDetectET0_E10all_same_vIDpT2_Eaa20unsigned_integralishIS9_E10all_same_vIS9_SB_EEEvOT1_SB_:
  582|   142k|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, Ts... ins) {
  583|   142k|   ranges::assert_exact_byte_length<(sizeof(Ts) + ...)>(out);
  584|   142k|   auto store_one = [off = 0]<typename T>(auto o, T i) mutable {
  585|   142k|      store_any<endianness, T>(i, o.subspan(off).template first<sizeof(T)>());
  586|   142k|      off += sizeof(T);
  587|   142k|   };
  588|       |
  589|   142k|   (store_one(std::span{out}, ins), ...);
  590|   142k|}
_ZZN5Botan6detail9store_anyILNSt3__16endianE57005EjTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm16EEETpTkNS0_20unsigned_integralishEJjjjjEQaagtsZT2_Li0Eooaasr3stdE7same_asINS0_10AutoDetectET0_E10all_same_vIDpT2_Eaa20unsigned_integralishIS9_E10all_same_vIS9_SB_EEEvOT1_SB_ENUlTyS9_T_E_clIjS7_EEDaS9_SE_:
  584|   571k|   auto store_one = [off = 0]<typename T>(auto o, T i) mutable {
  585|   571k|      store_any<endianness, T>(i, o.subspan(off).template first<sizeof(T)>());
  586|   571k|      off += sizeof(T);
  587|   571k|   };
_ZN5Botan7load_leINS_6detail10AutoDetectEJRA16_mRPKhiEEEDaDpOT0_:
  495|   554k|inline constexpr auto load_le(ParamTs&&... params) {
  496|   554k|   return detail::load_any<std::endian::little, OutT>(std::forward<ParamTs>(params)...);
  497|   554k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS0_20unsigned_integralishEmQoosr3stdE7same_asIS4_T0_Esr3stdE7same_asIT1_S5_EEEvPS6_PKhm:
  483|  1.10M|inline constexpr void load_any(T out[], const uint8_t in[], size_t count) {
  484|       |   // asserts that *in and *out point to the correct amount of memory
  485|  1.10M|   load_any<endianness, OutT>(std::span<T>(out, count), std::span<const uint8_t>(in, count * sizeof(T)));
  486|  1.10M|}
_ZN5Botan6detail8load_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges23contiguous_output_rangeENS2_4spanImLm18446744073709551615EEETkNS5_16contiguous_rangeIhEENS6_IKhLm18446744073709551615EEEQaa20unsigned_integralishINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT1_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISI_EESJ_E4type10value_typeEEoosr3stdE7same_asIS4_T0_Esr3stdE7same_asISP_SO_EEEvOSF_RKT2_:
  355|  1.10M|inline constexpr void load_any(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  356|  1.10M|   ranges::assert_equal_byte_lengths(out, in);
  357|  1.10M|   using element_type = std::ranges::range_value_t<OutR>;
  358|       |
  359|  1.10M|   auto load_elementwise = [&] {
  360|  1.10M|      constexpr size_t bytes_per_element = sizeof(element_type);
  361|  1.10M|      std::span<const uint8_t> in_s(in);
  362|  1.10M|      for(auto& out_elem : out) {
  363|  1.10M|         out_elem = load_any<endianness, element_type>(in_s.template first<bytes_per_element>());
  364|  1.10M|         in_s = in_s.subspan(bytes_per_element);
  365|  1.10M|      }
  366|  1.10M|   };
  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|  1.10M|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (371:7): [Folded, False: 1.10M]
  ------------------
  372|      0|      load_elementwise();
  373|  1.10M|   } else {
  374|  1.10M|      if constexpr(endianness == std::endian::native && !custom_loadable<element_type>) {
  375|  1.10M|         typecast_copy(out, in);
  376|       |      } else {
  377|       |         load_elementwise();
  378|       |      }
  379|  1.10M|   }
  380|  1.10M|}
_ZN5Botan11copy_out_leITkNS_6ranges14spanable_rangeENSt3__16vectorImNS_16secure_allocatorImEEEEEEvNS2_4spanIhLm18446744073709551615EEERKT_:
  789|   550k|inline void copy_out_le(std::span<uint8_t> out, const InR& in) {
  790|   550k|   using T = std::ranges::range_value_t<InR>;
  791|   550k|   std::span<const T> in_s{in};
  792|   550k|   const auto remaining_bytes = detail::copy_out_any_word_aligned_portion<std::endian::little>(out, in_s);
  793|       |
  794|       |   // copy remaining bytes as a partial word
  795|   550k|   for(size_t i = 0; i < remaining_bytes; ++i) {
  ------------------
  |  Branch (795:22): [True: 0, False: 550k]
  ------------------
  796|      0|      out[i] = get_byte_var(sizeof(T) - 1 - i, in_s.front());
  797|      0|   }
  798|   550k|}
_ZN5Botan6detail33copy_out_any_word_aligned_portionILNSt3__16endianE57005ETkNS0_20unsigned_integralishEmEEmRNS2_4spanIhLm18446744073709551615EEERNS4_IKT0_Lm18446744073709551615EEE:
  752|   550k|inline size_t copy_out_any_word_aligned_portion(std::span<uint8_t>& out, std::span<const T>& in) {
  753|   550k|   const size_t full_words = out.size() / sizeof(T);
  754|   550k|   const size_t full_word_bytes = full_words * sizeof(T);
  755|   550k|   const size_t remaining_bytes = out.size() - full_word_bytes;
  756|   550k|   BOTAN_ASSERT_NOMSG(in.size_bytes() >= full_word_bytes + remaining_bytes);
  ------------------
  |  |   77|   550k|   do {                                                                     \
  |  |   78|   550k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|   550k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 550k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|   550k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 550k]
  |  |  ------------------
  ------------------
  757|       |
  758|       |   // copy full words
  759|   550k|   store_any<endianness, T>(out.first(full_word_bytes), in.first(full_words));
  760|   550k|   out = out.subspan(full_word_bytes);
  761|   550k|   in = in.subspan(full_words);
  762|       |
  763|   550k|   return remaining_bytes;
  764|   550k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE57005EmTkNS_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|   550k|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  604|   550k|   ranges::assert_equal_byte_lengths(out, in);
  605|   550k|   using element_type = std::ranges::range_value_t<InR>;
  606|       |
  607|   550k|   auto store_elementwise = [&] {
  608|   550k|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|   550k|      std::span<uint8_t> out_s(out);
  610|   550k|      for(auto in_elem : in) {
  611|   550k|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|   550k|         out_s = out_s.subspan(bytes_per_element);
  613|   550k|      }
  614|   550k|   };
  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|   550k|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (619:7): [Folded, False: 550k]
  ------------------
  620|      0|      store_elementwise();
  621|   550k|   } else {
  622|   550k|      if constexpr(endianness == std::endian::native && !custom_storable<element_type>) {
  623|   550k|         typecast_copy(out, in);
  624|       |      } else {
  625|       |         store_elementwise();
  626|       |      }
  627|   550k|   }
  628|   550k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE57005ETkNS0_20unsigned_integralishEmTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm8EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_:
  278|  8.17M|inline constexpr WrappedOutT load_any(InR&& in_range) {
  279|  8.17M|   using OutT = detail::wrapped_type<WrappedOutT>;
  280|  8.17M|   ranges::assert_exact_byte_length<sizeof(OutT)>(in_range);
  281|       |
  282|  8.17M|   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|  8.17M|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  287|  8.17M|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  8.17M|      } else {
  289|  8.17M|         const std::span in{in_range};
  290|  8.17M|         if constexpr(sizeof(OutT) == 1) {
  291|  8.17M|            return static_cast<OutT>(in[0]);
  292|  8.17M|         } else if constexpr(endianness == std::endian::native) {
  293|  8.17M|            return typecast_copy<OutT>(in);
  294|  8.17M|         } else {
  295|  8.17M|            static_assert(opposite(endianness) == std::endian::native);
  296|  8.17M|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  8.17M|         }
  298|  8.17M|      }
  299|  8.17M|   }());
  300|  8.17M|}
_ZN5Botan7load_leINS_6detail10AutoDetectEJRA4_jPKhiEEEDaDpOT0_:
  495|  1.65M|inline constexpr auto load_le(ParamTs&&... params) {
  496|  1.65M|   return detail::load_any<std::endian::little, OutT>(std::forward<ParamTs>(params)...);
  497|  1.65M|}
_ZN5Botan6detail8load_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS0_20unsigned_integralishEjQoosr3stdE7same_asIS4_T0_Esr3stdE7same_asIT1_S5_EEEvPS6_PKhm:
  483|  1.65M|inline constexpr void load_any(T out[], const uint8_t in[], size_t count) {
  484|       |   // asserts that *in and *out point to the correct amount of memory
  485|  1.65M|   load_any<endianness, OutT>(std::span<T>(out, count), std::span<const uint8_t>(in, count * sizeof(T)));
  486|  1.65M|}
_ZN5Botan6detail8load_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges23contiguous_output_rangeENS2_4spanIjLm18446744073709551615EEETkNS5_16contiguous_rangeIhEENS6_IKhLm18446744073709551615EEEQaa20unsigned_integralishINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT1_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISI_EESJ_E4type10value_typeEEoosr3stdE7same_asIS4_T0_Esr3stdE7same_asISP_SO_EEEvOSF_RKT2_:
  355|  1.65M|inline constexpr void load_any(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  356|  1.65M|   ranges::assert_equal_byte_lengths(out, in);
  357|  1.65M|   using element_type = std::ranges::range_value_t<OutR>;
  358|       |
  359|  1.65M|   auto load_elementwise = [&] {
  360|  1.65M|      constexpr size_t bytes_per_element = sizeof(element_type);
  361|  1.65M|      std::span<const uint8_t> in_s(in);
  362|  1.65M|      for(auto& out_elem : out) {
  363|  1.65M|         out_elem = load_any<endianness, element_type>(in_s.template first<bytes_per_element>());
  364|  1.65M|         in_s = in_s.subspan(bytes_per_element);
  365|  1.65M|      }
  366|  1.65M|   };
  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|  1.65M|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (371:7): [Folded, False: 1.65M]
  ------------------
  372|      0|      load_elementwise();
  373|  1.65M|   } else {
  374|  1.65M|      if constexpr(endianness == std::endian::native && !custom_loadable<element_type>) {
  375|  1.65M|         typecast_copy(out, in);
  376|       |      } else {
  377|       |         load_elementwise();
  378|       |      }
  379|  1.65M|   }
  380|  1.65M|}
_ZN5Botan7load_leINS_6detail10AutoDetectEJRNSt3__15arrayIjLm16EEENS3_4spanIKhLm64EEEEEEDaDpOT0_:
  495|  29.8M|inline constexpr auto load_le(ParamTs&&... params) {
  496|  29.8M|   return detail::load_any<std::endian::little, OutT>(std::forward<ParamTs>(params)...);
  497|  29.8M|}
_ZN5Botan6detail8load_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges23contiguous_output_rangeERNS2_5arrayIjLm16EEETkNS5_16contiguous_rangeIhEENS2_4spanIKhLm64EEEQaa20unsigned_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|  29.8M|inline constexpr void load_any(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  356|  29.8M|   ranges::assert_equal_byte_lengths(out, in);
  357|  29.8M|   using element_type = std::ranges::range_value_t<OutR>;
  358|       |
  359|  29.8M|   auto load_elementwise = [&] {
  360|  29.8M|      constexpr size_t bytes_per_element = sizeof(element_type);
  361|  29.8M|      std::span<const uint8_t> in_s(in);
  362|  29.8M|      for(auto& out_elem : out) {
  363|  29.8M|         out_elem = load_any<endianness, element_type>(in_s.template first<bytes_per_element>());
  364|  29.8M|         in_s = in_s.subspan(bytes_per_element);
  365|  29.8M|      }
  366|  29.8M|   };
  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|  29.8M|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (371:7): [Folded, False: 29.8M]
  ------------------
  372|      0|      load_elementwise();
  373|  29.8M|   } else {
  374|  29.8M|      if constexpr(endianness == std::endian::native && !custom_loadable<element_type>) {
  375|  29.8M|         typecast_copy(out, in);
  376|       |      } else {
  377|       |         load_elementwise();
  378|       |      }
  379|  29.8M|   }
  380|  29.8M|}
_ZN5Botan8store_leINS_6detail10AutoDetectEJRKmPhEEEDaDpOT0_:
  736|  24.9k|inline constexpr auto store_le(ParamTs&&... params) {
  737|  24.9k|   return detail::store_any<std::endian::little, ModifierT>(std::forward<ParamTs>(params)...);
  738|  24.9k|}
_ZN5Botan11copy_out_leITkNS_6ranges14spanable_rangeENSt3__16vectorIjNS_16secure_allocatorIjEEEEEEvNS2_4spanIhLm18446744073709551615EEERKT_:
  789|  24.9k|inline void copy_out_le(std::span<uint8_t> out, const InR& in) {
  790|  24.9k|   using T = std::ranges::range_value_t<InR>;
  791|  24.9k|   std::span<const T> in_s{in};
  792|  24.9k|   const auto remaining_bytes = detail::copy_out_any_word_aligned_portion<std::endian::little>(out, in_s);
  793|       |
  794|       |   // copy remaining bytes as a partial word
  795|  24.9k|   for(size_t i = 0; i < remaining_bytes; ++i) {
  ------------------
  |  Branch (795:22): [True: 0, False: 24.9k]
  ------------------
  796|      0|      out[i] = get_byte_var(sizeof(T) - 1 - i, in_s.front());
  797|      0|   }
  798|  24.9k|}
_ZN5Botan6detail33copy_out_any_word_aligned_portionILNSt3__16endianE57005ETkNS0_20unsigned_integralishEjEEmRNS2_4spanIhLm18446744073709551615EEERNS4_IKT0_Lm18446744073709551615EEE:
  752|  24.9k|inline size_t copy_out_any_word_aligned_portion(std::span<uint8_t>& out, std::span<const T>& in) {
  753|  24.9k|   const size_t full_words = out.size() / sizeof(T);
  754|  24.9k|   const size_t full_word_bytes = full_words * sizeof(T);
  755|  24.9k|   const size_t remaining_bytes = out.size() - full_word_bytes;
  756|  24.9k|   BOTAN_ASSERT_NOMSG(in.size_bytes() >= full_word_bytes + remaining_bytes);
  ------------------
  |  |   77|  24.9k|   do {                                                                     \
  |  |   78|  24.9k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  24.9k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 24.9k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  24.9k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 24.9k]
  |  |  ------------------
  ------------------
  757|       |
  758|       |   // copy full words
  759|  24.9k|   store_any<endianness, T>(out.first(full_word_bytes), in.first(full_words));
  760|  24.9k|   out = out.subspan(full_word_bytes);
  761|  24.9k|   in = in.subspan(full_words);
  762|       |
  763|  24.9k|   return remaining_bytes;
  764|  24.9k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE57005EjTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm18446744073709551615EEETkNS4_14spanable_rangeENS6_IKjLm18446744073709551615EEEQoosr3stdE7same_asINS0_10AutoDetectET0_Esr3stdE7same_asISB_NS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT2_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISJ_EESK_E4type10value_typeEEEEvOT1_RKSG_:
  603|  24.9k|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  604|  24.9k|   ranges::assert_equal_byte_lengths(out, in);
  605|  24.9k|   using element_type = std::ranges::range_value_t<InR>;
  606|       |
  607|  24.9k|   auto store_elementwise = [&] {
  608|  24.9k|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|  24.9k|      std::span<uint8_t> out_s(out);
  610|  24.9k|      for(auto in_elem : in) {
  611|  24.9k|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|  24.9k|         out_s = out_s.subspan(bytes_per_element);
  613|  24.9k|      }
  614|  24.9k|   };
  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|  24.9k|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (619:7): [Folded, False: 24.9k]
  ------------------
  620|      0|      store_elementwise();
  621|  24.9k|   } else {
  622|  24.9k|      if constexpr(endianness == std::endian::native && !custom_storable<element_type>) {
  623|  24.9k|         typecast_copy(out, in);
  624|       |      } else {
  625|       |         store_elementwise();
  626|       |      }
  627|  24.9k|   }
  628|  24.9k|}
_ZN5Botan7load_beINS_6detail10AutoDetectEJRNSt3__14spanIjLm16EEENS4_IKhLm64EEEEEEDaDpOT0_:
  504|  3.87M|inline constexpr auto load_be(ParamTs&&... params) {
  505|  3.87M|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|  3.87M|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS_6ranges23contiguous_output_rangeERNS2_4spanIjLm16EEETkNS5_16contiguous_rangeIhEENS6_IKhLm64EEEQaa20unsigned_integralishINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT1_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISJ_EESK_E4type10value_typeEEoosr3stdE7same_asIS4_T0_Esr3stdE7same_asISQ_SP_EEEvOSG_RKT2_:
  355|  3.87M|inline constexpr void load_any(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  356|  3.87M|   ranges::assert_equal_byte_lengths(out, in);
  357|  3.87M|   using element_type = std::ranges::range_value_t<OutR>;
  358|       |
  359|  3.87M|   auto load_elementwise = [&] {
  360|  3.87M|      constexpr size_t bytes_per_element = sizeof(element_type);
  361|  3.87M|      std::span<const uint8_t> in_s(in);
  362|  3.87M|      for(auto& out_elem : out) {
  363|  3.87M|         out_elem = load_any<endianness, element_type>(in_s.template first<bytes_per_element>());
  364|  3.87M|         in_s = in_s.subspan(bytes_per_element);
  365|  3.87M|      }
  366|  3.87M|   };
  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|  3.87M|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (371:7): [Folded, False: 3.87M]
  ------------------
  372|      0|      load_elementwise();
  373|  3.87M|   } else {
  374|       |      if constexpr(endianness == std::endian::native && !custom_loadable<element_type>) {
  375|       |         typecast_copy(out, in);
  376|  3.87M|      } else {
  377|  3.87M|         load_elementwise();
  378|  3.87M|      }
  379|  3.87M|   }
  380|  3.87M|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS_6ranges23contiguous_output_rangeERNS2_4spanIjLm16EEETkNS5_16contiguous_rangeIhEENS6_IKhLm64EEEQaa20unsigned_integralishINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT1_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISJ_EESK_E4type10value_typeEEoosr3stdE7same_asIS4_T0_Esr3stdE7same_asISQ_SP_EEEvOSG_RKT2_ENKUlvE_clEv:
  359|  3.87M|   auto load_elementwise = [&] {
  360|  3.87M|      constexpr size_t bytes_per_element = sizeof(element_type);
  361|  3.87M|      std::span<const uint8_t> in_s(in);
  362|  62.0M|      for(auto& out_elem : out) {
  ------------------
  |  Branch (362:26): [True: 62.0M, False: 3.87M]
  ------------------
  363|  62.0M|         out_elem = load_any<endianness, element_type>(in_s.template first<bytes_per_element>());
  364|  62.0M|         in_s = in_s.subspan(bytes_per_element);
  365|  62.0M|      }
  366|  3.87M|   };
_ZN5Botan8store_beINS_6detail10AutoDetectEJRKmPhEEEDaDpOT0_:
  745|   568k|inline constexpr auto store_be(ParamTs&&... params) {
  746|   568k|   return detail::store_any<std::endian::big, ModifierT>(std::forward<ParamTs>(params)...);
  747|   568k|}
_ZN5Botan11copy_out_beITkNS_6ranges14spanable_rangeENSt3__16vectorIjNS_16secure_allocatorIjEEEEEEvNS2_4spanIhLm18446744073709551615EEERKT_:
  773|  67.6k|inline void copy_out_be(std::span<uint8_t> out, const InR& in) {
  774|  67.6k|   using T = std::ranges::range_value_t<InR>;
  775|  67.6k|   std::span<const T> in_s{in};
  776|  67.6k|   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|  67.6k|   for(size_t i = 0; i < remaining_bytes; ++i) {
  ------------------
  |  Branch (779:22): [True: 0, False: 67.6k]
  ------------------
  780|      0|      out[i] = get_byte_var(i, in_s.front());
  781|      0|   }
  782|  67.6k|}
_ZN5Botan7load_beINS_6detail10AutoDetectEJRNSt3__15arrayIjLm16EEENS3_4spanIKhLm64EEEEEEDaDpOT0_:
  504|  16.5M|inline constexpr auto load_be(ParamTs&&... params) {
  505|  16.5M|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|  16.5M|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS_6ranges23contiguous_output_rangeERNS2_5arrayIjLm16EEETkNS5_16contiguous_rangeIhEENS2_4spanIKhLm64EEEQaa20unsigned_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|  16.5M|inline constexpr void load_any(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  356|  16.5M|   ranges::assert_equal_byte_lengths(out, in);
  357|  16.5M|   using element_type = std::ranges::range_value_t<OutR>;
  358|       |
  359|  16.5M|   auto load_elementwise = [&] {
  360|  16.5M|      constexpr size_t bytes_per_element = sizeof(element_type);
  361|  16.5M|      std::span<const uint8_t> in_s(in);
  362|  16.5M|      for(auto& out_elem : out) {
  363|  16.5M|         out_elem = load_any<endianness, element_type>(in_s.template first<bytes_per_element>());
  364|  16.5M|         in_s = in_s.subspan(bytes_per_element);
  365|  16.5M|      }
  366|  16.5M|   };
  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|  16.5M|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (371:7): [Folded, False: 16.5M]
  ------------------
  372|      0|      load_elementwise();
  373|  16.5M|   } else {
  374|       |      if constexpr(endianness == std::endian::native && !custom_loadable<element_type>) {
  375|       |         typecast_copy(out, in);
  376|  16.5M|      } else {
  377|  16.5M|         load_elementwise();
  378|  16.5M|      }
  379|  16.5M|   }
  380|  16.5M|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS_6ranges23contiguous_output_rangeERNS2_5arrayIjLm16EEETkNS5_16contiguous_rangeIhEENS2_4spanIKhLm64EEEQaa20unsigned_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_ENKUlvE_clEv:
  359|  16.5M|   auto load_elementwise = [&] {
  360|  16.5M|      constexpr size_t bytes_per_element = sizeof(element_type);
  361|  16.5M|      std::span<const uint8_t> in_s(in);
  362|   264M|      for(auto& out_elem : out) {
  ------------------
  |  Branch (362:26): [True: 264M, False: 16.5M]
  ------------------
  363|   264M|         out_elem = load_any<endianness, element_type>(in_s.template first<bytes_per_element>());
  364|   264M|         in_s = in_s.subspan(bytes_per_element);
  365|   264M|      }
  366|  16.5M|   };
_ZN5Botan7load_beINS_6detail10AutoDetectEJRNSt3__15arrayImLm16EEENS3_4spanIKhLm128EEEEEEDaDpOT0_:
  504|  5.81M|inline constexpr auto load_be(ParamTs&&... params) {
  505|  5.81M|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|  5.81M|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS_6ranges23contiguous_output_rangeERNS2_5arrayImLm16EEETkNS5_16contiguous_rangeIhEENS2_4spanIKhLm128EEEQaa20unsigned_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|  5.81M|inline constexpr void load_any(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  356|  5.81M|   ranges::assert_equal_byte_lengths(out, in);
  357|  5.81M|   using element_type = std::ranges::range_value_t<OutR>;
  358|       |
  359|  5.81M|   auto load_elementwise = [&] {
  360|  5.81M|      constexpr size_t bytes_per_element = sizeof(element_type);
  361|  5.81M|      std::span<const uint8_t> in_s(in);
  362|  5.81M|      for(auto& out_elem : out) {
  363|  5.81M|         out_elem = load_any<endianness, element_type>(in_s.template first<bytes_per_element>());
  364|  5.81M|         in_s = in_s.subspan(bytes_per_element);
  365|  5.81M|      }
  366|  5.81M|   };
  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|  5.81M|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (371:7): [Folded, False: 5.81M]
  ------------------
  372|      0|      load_elementwise();
  373|  5.81M|   } else {
  374|       |      if constexpr(endianness == std::endian::native && !custom_loadable<element_type>) {
  375|       |         typecast_copy(out, in);
  376|  5.81M|      } else {
  377|  5.81M|         load_elementwise();
  378|  5.81M|      }
  379|  5.81M|   }
  380|  5.81M|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS_6ranges23contiguous_output_rangeERNS2_5arrayImLm16EEETkNS5_16contiguous_rangeIhEENS2_4spanIKhLm128EEEQaa20unsigned_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_ENKUlvE_clEv:
  359|  5.81M|   auto load_elementwise = [&] {
  360|  5.81M|      constexpr size_t bytes_per_element = sizeof(element_type);
  361|  5.81M|      std::span<const uint8_t> in_s(in);
  362|  93.0M|      for(auto& out_elem : out) {
  ------------------
  |  Branch (362:26): [True: 93.0M, False: 5.81M]
  ------------------
  363|  93.0M|         out_elem = load_any<endianness, element_type>(in_s.template first<bytes_per_element>());
  364|  93.0M|         in_s = in_s.subspan(bytes_per_element);
  365|  93.0M|      }
  366|  5.81M|   };
_ZN5Botan11copy_out_beITkNS_6ranges14spanable_rangeENSt3__16vectorImNS_16secure_allocatorImEEEEEEvNS2_4spanIhLm18446744073709551615EEERKT_:
  773|   250k|inline void copy_out_be(std::span<uint8_t> out, const InR& in) {
  774|   250k|   using T = std::ranges::range_value_t<InR>;
  775|   250k|   std::span<const T> in_s{in};
  776|   250k|   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|   250k|   for(size_t i = 0; i < remaining_bytes; ++i) {
  ------------------
  |  Branch (779:22): [True: 0, False: 250k]
  ------------------
  780|      0|      out[i] = get_byte_var(i, in_s.front());
  781|      0|   }
  782|   250k|}
_ZN5Botan6detail33copy_out_any_word_aligned_portionILNSt3__16endianE64206ETkNS0_20unsigned_integralishEmEEmRNS2_4spanIhLm18446744073709551615EEERNS4_IKT0_Lm18446744073709551615EEE:
  752|   254k|inline size_t copy_out_any_word_aligned_portion(std::span<uint8_t>& out, std::span<const T>& in) {
  753|   254k|   const size_t full_words = out.size() / sizeof(T);
  754|   254k|   const size_t full_word_bytes = full_words * sizeof(T);
  755|   254k|   const size_t remaining_bytes = out.size() - full_word_bytes;
  756|   254k|   BOTAN_ASSERT_NOMSG(in.size_bytes() >= full_word_bytes + remaining_bytes);
  ------------------
  |  |   77|   254k|   do {                                                                     \
  |  |   78|   254k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|   254k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 254k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|   254k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 254k]
  |  |  ------------------
  ------------------
  757|       |
  758|       |   // copy full words
  759|   254k|   store_any<endianness, T>(out.first(full_word_bytes), in.first(full_words));
  760|   254k|   out = out.subspan(full_word_bytes);
  761|   254k|   in = in.subspan(full_words);
  762|       |
  763|   254k|   return remaining_bytes;
  764|   254k|}
_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|   254k|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  604|   254k|   ranges::assert_equal_byte_lengths(out, in);
  605|   254k|   using element_type = std::ranges::range_value_t<InR>;
  606|       |
  607|   254k|   auto store_elementwise = [&] {
  608|   254k|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|   254k|      std::span<uint8_t> out_s(out);
  610|   254k|      for(auto in_elem : in) {
  611|   254k|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|   254k|         out_s = out_s.subspan(bytes_per_element);
  613|   254k|      }
  614|   254k|   };
  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|   254k|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (619:7): [Folded, False: 254k]
  ------------------
  620|      0|      store_elementwise();
  621|   254k|   } else {
  622|       |      if constexpr(endianness == std::endian::native && !custom_storable<element_type>) {
  623|       |         typecast_copy(out, in);
  624|   254k|      } else {
  625|   254k|         store_elementwise();
  626|   254k|      }
  627|   254k|   }
  628|   254k|}
_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|   254k|   auto store_elementwise = [&] {
  608|   254k|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|   254k|      std::span<uint8_t> out_s(out);
  610|  1.96M|      for(auto in_elem : in) {
  ------------------
  |  Branch (610:24): [True: 1.96M, False: 254k]
  ------------------
  611|  1.96M|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|  1.96M|         out_s = out_s.subspan(bytes_per_element);
  613|  1.96M|      }
  614|   254k|   };
_ZN5Botan8store_beINS_6detail10AutoDetectEJhEEEDaDpOT0_:
  745|     64|inline constexpr auto store_be(ParamTs&&... params) {
  746|     64|   return detail::store_any<std::endian::big, ModifierT>(std::forward<ParamTs>(params)...);
  747|     64|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETpTkNS0_20unsigned_integralishEJhEQ10all_same_vIDpT1_EEEDaS6_:
  696|    128|inline constexpr auto store_any(Ts... ins) {
  697|    128|   return store_any<endianness, OutR>(std::array{ins...});
  698|    128|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS_6ranges14spanable_rangeENS2_5arrayIhLm1EEEQoooosr3stdE7same_asIS4_T0_Eaasr6rangesE25statically_spanable_rangeIS8_Esr3stdE21default_initializableIS8_Esr8conceptsE21resizable_byte_bufferIS8_EEEDaOT1_:
  663|    128|inline constexpr auto store_any(InR&& in_range) {
  664|    128|   auto out = []([[maybe_unused]] const auto& in) {
  665|    128|      if constexpr(std::same_as<AutoDetect, OutR>) {
  666|    128|         if constexpr(ranges::statically_spanable_range<InR>) {
  667|    128|            constexpr size_t bytes = decltype(std::span{in})::extent * sizeof(std::ranges::range_value_t<InR>);
  668|    128|            return std::array<uint8_t, bytes>();
  669|    128|         } else {
  670|    128|            static_assert(
  671|    128|               !std::same_as<AutoDetect, OutR>,
  672|    128|               "cannot infer a suitable result container type from the given parameters at compile time, please specify it explicitly");
  673|    128|         }
  674|    128|      } else if constexpr(concepts::resizable_byte_buffer<OutR>) {
  675|    128|         return OutR(std::span{in}.size_bytes());
  676|    128|      } else {
  677|    128|         return OutR{};
  678|    128|      }
  679|    128|   }(in_range);
  680|       |
  681|    128|   store_any<endianness, std::ranges::range_value_t<InR>>(out, std::forward<InR>(in_range));
  682|    128|   return out;
  683|    128|}
_ZZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS_6ranges14spanable_rangeENS2_5arrayIhLm1EEEQoooosr3stdE7same_asIS4_T0_Eaasr6rangesE25statically_spanable_rangeIS8_Esr3stdE21default_initializableIS8_Esr8conceptsE21resizable_byte_bufferIS8_EEEDaOT1_ENKUlRKT_E_clIS7_EEDaSD_:
  664|    128|   auto out = []([[maybe_unused]] const auto& in) {
  665|    128|      if constexpr(std::same_as<AutoDetect, OutR>) {
  666|    128|         if constexpr(ranges::statically_spanable_range<InR>) {
  667|    128|            constexpr size_t bytes = decltype(std::span{in})::extent * sizeof(std::ranges::range_value_t<InR>);
  668|    128|            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|    128|   }(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|    128|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  604|    128|   ranges::assert_equal_byte_lengths(out, in);
  605|    128|   using element_type = std::ranges::range_value_t<InR>;
  606|       |
  607|    128|   auto store_elementwise = [&] {
  608|    128|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|    128|      std::span<uint8_t> out_s(out);
  610|    128|      for(auto in_elem : in) {
  611|    128|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|    128|         out_s = out_s.subspan(bytes_per_element);
  613|    128|      }
  614|    128|   };
  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|    128|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (619:7): [Folded, False: 128]
  ------------------
  620|      0|      store_elementwise();
  621|    128|   } else {
  622|       |      if constexpr(endianness == std::endian::native && !custom_storable<element_type>) {
  623|       |         typecast_copy(out, in);
  624|    128|      } else {
  625|    128|         store_elementwise();
  626|    128|      }
  627|    128|   }
  628|    128|}
_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|    128|   auto store_elementwise = [&] {
  608|    128|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|    128|      std::span<uint8_t> out_s(out);
  610|    128|      for(auto in_elem : in) {
  ------------------
  |  Branch (610:24): [True: 128, False: 128]
  ------------------
  611|    128|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|    128|         out_s = out_s.subspan(bytes_per_element);
  613|    128|      }
  614|    128|   };
_ZN5Botan6detail9store_anyILNSt3__16endianE64206EhTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm1EEETpTkNS0_20unsigned_integralishEJhEQaagtsZT2_Li0Eooaasr3stdE7same_asINS0_10AutoDetectET0_E10all_same_vIDpT2_Eaa20unsigned_integralishIS9_E10all_same_vIS9_SB_EEEvOT1_SB_:
  582|    128|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, Ts... ins) {
  583|    128|   ranges::assert_exact_byte_length<(sizeof(Ts) + ...)>(out);
  584|    128|   auto store_one = [off = 0]<typename T>(auto o, T i) mutable {
  585|    128|      store_any<endianness, T>(i, o.subspan(off).template first<sizeof(T)>());
  586|    128|      off += sizeof(T);
  587|    128|   };
  588|       |
  589|    128|   (store_one(std::span{out}, ins), ...);
  590|    128|}
_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|    128|   auto store_one = [off = 0]<typename T>(auto o, T i) mutable {
  585|    128|      store_any<endianness, T>(i, o.subspan(off).template first<sizeof(T)>());
  586|    128|      off += sizeof(T);
  587|    128|   };
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEhTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm1EEEQnt15custom_storableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEEvS9_OT1_:
  525|    128|inline constexpr void store_any(WrappedInT wrapped_in, OutR&& out_range) {
  526|    128|   const auto in = detail::unwrap_strong_type_or_enum(wrapped_in);
  527|    128|   using InT = decltype(in);
  528|    128|   ranges::assert_exact_byte_length<sizeof(in)>(out_range);
  529|    128|   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|    128|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (534:7): [Folded, False: 128]
  ------------------
  535|      0|      return fallback_store_any<endianness, InT>(in, std::forward<OutR>(out_range));
  536|    128|   } else {
  537|    128|      if constexpr(sizeof(InT) == 1) {
  538|    128|         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|    128|   }
  546|    128|}
_ZN5Botan6detail26unwrap_strong_type_or_enumITkNS0_20unsigned_integralishEhEEDaT_:
  190|    128|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|    128|   } else {
  195|    128|      return Botan::unwrap_strong_type(t);
  196|    128|   }
  197|    128|}
_ZN5Botan7load_beImJNSt3__14spanIKhLm8EEEEEEDaDpOT0_:
  504|   441k|inline constexpr auto load_be(ParamTs&&... params) {
  505|   441k|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|   441k|}
_ZN5Botan7load_beImJRNSt3__15arrayIhLm8EEEEEEDaDpOT0_:
  504|  6.81k|inline constexpr auto load_be(ParamTs&&... params) {
  505|  6.81k|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|  6.81k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEmTkNS_6ranges16contiguous_rangeIhEERNS2_5arrayIhLm8EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_:
  278|  6.81k|inline constexpr WrappedOutT load_any(InR&& in_range) {
  279|  6.81k|   using OutT = detail::wrapped_type<WrappedOutT>;
  280|  6.81k|   ranges::assert_exact_byte_length<sizeof(OutT)>(in_range);
  281|       |
  282|  6.81k|   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|  6.81k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  287|  6.81k|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  6.81k|      } else {
  289|  6.81k|         const std::span in{in_range};
  290|  6.81k|         if constexpr(sizeof(OutT) == 1) {
  291|  6.81k|            return static_cast<OutT>(in[0]);
  292|  6.81k|         } else if constexpr(endianness == std::endian::native) {
  293|  6.81k|            return typecast_copy<OutT>(in);
  294|  6.81k|         } else {
  295|  6.81k|            static_assert(opposite(endianness) == std::endian::native);
  296|  6.81k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  6.81k|         }
  298|  6.81k|      }
  299|  6.81k|   }());
  300|  6.81k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEmTkNS_6ranges16contiguous_rangeIhEERNS2_5arrayIhLm8EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_ENKUlvE_clEv:
  282|  6.81k|   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|  6.81k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (286:10): [Folded, False: 6.81k]
  ------------------
  287|      0|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  6.81k|      } else {
  289|  6.81k|         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|  6.81k|         } else {
  295|  6.81k|            static_assert(opposite(endianness) == std::endian::native);
  296|  6.81k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  6.81k|         }
  298|  6.81k|      }
  299|  6.81k|   }());
_ZN5Botan6detail8load_anyILNSt3__16endianE57005ETkNS0_20unsigned_integralishEjEET0_PKhm:
  454|  60.3k|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|  60.3k|   constexpr size_t out_size = sizeof(OutT);
  457|  60.3k|   return load_any<endianness, OutT>(std::span<const uint8_t, out_size>(in + off * out_size, out_size));
  458|  60.3k|}
_ZN5Botan7load_beImJPKhmEEEDaDpOT0_:
  504|   427k|inline constexpr auto load_be(ParamTs&&... params) {
  505|   427k|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|   427k|}
_ZN5Botan8store_beINS_6detail10AutoDetectEJRNSt3__14spanIhLm32EEERNS3_5arrayImLm4EEEEEEDaDpOT0_:
  745|   115k|inline constexpr auto store_be(ParamTs&&... params) {
  746|   115k|   return detail::store_any<std::endian::big, ModifierT>(std::forward<ParamTs>(params)...);
  747|   115k|}
_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|   115k|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  604|   115k|   ranges::assert_equal_byte_lengths(out, in);
  605|   115k|   using element_type = std::ranges::range_value_t<InR>;
  606|       |
  607|   115k|   auto store_elementwise = [&] {
  608|   115k|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|   115k|      std::span<uint8_t> out_s(out);
  610|   115k|      for(auto in_elem : in) {
  611|   115k|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|   115k|         out_s = out_s.subspan(bytes_per_element);
  613|   115k|      }
  614|   115k|   };
  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|   115k|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (619:7): [Folded, False: 115k]
  ------------------
  620|      0|      store_elementwise();
  621|   115k|   } else {
  622|       |      if constexpr(endianness == std::endian::native && !custom_storable<element_type>) {
  623|       |         typecast_copy(out, in);
  624|   115k|      } else {
  625|   115k|         store_elementwise();
  626|   115k|      }
  627|   115k|   }
  628|   115k|}
_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|   115k|   auto store_elementwise = [&] {
  608|   115k|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|   115k|      std::span<uint8_t> out_s(out);
  610|   462k|      for(auto in_elem : in) {
  ------------------
  |  Branch (610:24): [True: 462k, False: 115k]
  ------------------
  611|   462k|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|   462k|         out_s = out_s.subspan(bytes_per_element);
  613|   462k|      }
  614|   115k|   };
_ZN5Botan8store_beINS_6detail10AutoDetectEJRmPhEEEDaDpOT0_:
  745|   655k|inline constexpr auto store_be(ParamTs&&... params) {
  746|   655k|   return detail::store_any<std::endian::big, ModifierT>(std::forward<ParamTs>(params)...);
  747|   655k|}
_ZN5Botan7load_beImJPhiEEEDaDpOT0_:
  504|   219k|inline constexpr auto load_be(ParamTs&&... params) {
  505|   219k|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|   219k|}
_ZN5Botan7load_leINS_6detail10AutoDetectEJPmRA64_hiEEEDaDpOT0_:
  495|   549k|inline constexpr auto load_le(ParamTs&&... params) {
  496|   549k|   return detail::load_any<std::endian::little, OutT>(std::forward<ParamTs>(params)...);
  497|   549k|}
_ZN5Botan7load_leINS_6detail10AutoDetectEJRNSt3__15arrayIhLm8EEEEEEDaDpOT0_:
  495|  34.1M|inline constexpr auto load_le(ParamTs&&... params) {
  496|  34.1M|   return detail::load_any<std::endian::little, OutT>(std::forward<ParamTs>(params)...);
  497|  34.1M|}
_ZN5Botan6detail8load_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges16contiguous_rangeIhEERNS2_5arrayIhLm8EEEQoosr3stdE7same_asIS4_T0_Eaaoosr6rangesE25statically_spanable_rangeISA_Esr8conceptsE19resizable_containerISA_E20unsigned_integralishINSA_10value_typeEEEEDaOT1_:
  397|  34.1M|inline constexpr auto load_any(InR&& in_range) {
  398|  34.1M|   auto out = []([[maybe_unused]] const auto& in) {
  399|  34.1M|      if constexpr(std::same_as<AutoDetect, OutT>) {
  400|  34.1M|         if constexpr(ranges::statically_spanable_range<InR>) {
  401|  34.1M|            constexpr size_t extent = decltype(std::span{in})::extent;
  402|       |
  403|       |            // clang-format off
  404|  34.1M|            using type =
  405|  34.1M|               std::conditional_t<extent == 1, uint8_t,
  406|  34.1M|               std::conditional_t<extent == 2, uint16_t,
  407|  34.1M|               std::conditional_t<extent == 4, uint32_t,
  408|  34.1M|               std::conditional_t<extent == 8, uint64_t, void>>>>;
  409|       |            // clang-format on
  410|       |
  411|  34.1M|            static_assert(
  412|  34.1M|               !std::is_void_v<type>,
  413|  34.1M|               "Cannot determine the output type based on a statically sized bytearray with length other than those: 1, 2, 4, 8");
  414|       |
  415|  34.1M|            return type{};
  416|  34.1M|         } else {
  417|  34.1M|            static_assert(
  418|  34.1M|               !std::same_as<AutoDetect, OutT>,
  419|  34.1M|               "cannot infer return type from a dynamic range at compile time, please specify it explicitly");
  420|  34.1M|         }
  421|  34.1M|      } else if constexpr(concepts::resizable_container<OutT>) {
  422|  34.1M|         const size_t in_bytes = std::span{in}.size_bytes();
  423|  34.1M|         constexpr size_t out_elem_bytes = sizeof(typename OutT::value_type);
  424|  34.1M|         BOTAN_ARG_CHECK(in_bytes % out_elem_bytes == 0,
  425|  34.1M|                         "Input range is not word-aligned with the requested output range");
  426|  34.1M|         return OutT(in_bytes / out_elem_bytes);
  427|  34.1M|      } else {
  428|  34.1M|         return OutT{};
  429|  34.1M|      }
  430|  34.1M|   }(in_range);
  431|       |
  432|  34.1M|   using out_type = decltype(out);
  433|  34.1M|   if constexpr(unsigned_integralish<out_type>) {
  434|  34.1M|      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|  34.1M|   return out;
  441|  34.1M|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges16contiguous_rangeIhEERNS2_5arrayIhLm8EEEQoosr3stdE7same_asIS4_T0_Eaaoosr6rangesE25statically_spanable_rangeISA_Esr8conceptsE19resizable_containerISA_E20unsigned_integralishINSA_10value_typeEEEEDaOT1_ENKUlRKT_E_clIS8_EEDaSG_:
  398|  34.1M|   auto out = []([[maybe_unused]] const auto& in) {
  399|  34.1M|      if constexpr(std::same_as<AutoDetect, OutT>) {
  400|  34.1M|         if constexpr(ranges::statically_spanable_range<InR>) {
  401|  34.1M|            constexpr size_t extent = decltype(std::span{in})::extent;
  402|       |
  403|       |            // clang-format off
  404|  34.1M|            using type =
  405|  34.1M|               std::conditional_t<extent == 1, uint8_t,
  406|  34.1M|               std::conditional_t<extent == 2, uint16_t,
  407|  34.1M|               std::conditional_t<extent == 4, uint32_t,
  408|  34.1M|               std::conditional_t<extent == 8, uint64_t, void>>>>;
  409|       |            // clang-format on
  410|       |
  411|  34.1M|            static_assert(
  412|  34.1M|               !std::is_void_v<type>,
  413|  34.1M|               "Cannot determine the output type based on a statically sized bytearray with length other than those: 1, 2, 4, 8");
  414|       |
  415|  34.1M|            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|  34.1M|   }(in_range);
_ZN5Botan6detail8load_anyILNSt3__16endianE57005ETkNS0_20unsigned_integralishEmTkNS_6ranges16contiguous_rangeIhEERNS2_5arrayIhLm8EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_:
  278|  34.1M|inline constexpr WrappedOutT load_any(InR&& in_range) {
  279|  34.1M|   using OutT = detail::wrapped_type<WrappedOutT>;
  280|  34.1M|   ranges::assert_exact_byte_length<sizeof(OutT)>(in_range);
  281|       |
  282|  34.1M|   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|  34.1M|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  287|  34.1M|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  34.1M|      } else {
  289|  34.1M|         const std::span in{in_range};
  290|  34.1M|         if constexpr(sizeof(OutT) == 1) {
  291|  34.1M|            return static_cast<OutT>(in[0]);
  292|  34.1M|         } else if constexpr(endianness == std::endian::native) {
  293|  34.1M|            return typecast_copy<OutT>(in);
  294|  34.1M|         } else {
  295|  34.1M|            static_assert(opposite(endianness) == std::endian::native);
  296|  34.1M|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  34.1M|         }
  298|  34.1M|      }
  299|  34.1M|   }());
  300|  34.1M|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE57005ETkNS0_20unsigned_integralishEmTkNS_6ranges16contiguous_rangeIhEERNS2_5arrayIhLm8EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_ENKUlvE_clEv:
  282|  34.1M|   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|  34.1M|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (286:10): [Folded, False: 34.1M]
  ------------------
  287|      0|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  34.1M|      } else {
  289|  34.1M|         const std::span in{in_range};
  290|       |         if constexpr(sizeof(OutT) == 1) {
  291|       |            return static_cast<OutT>(in[0]);
  292|  34.1M|         } else if constexpr(endianness == std::endian::native) {
  293|  34.1M|            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|  34.1M|      }
  299|  34.1M|   }());
_ZN5Botan7load_leINS_6detail10AutoDetectEJNSt3__14spanIKhLm8EEEEEEDaDpOT0_:
  495|  8.16M|inline constexpr auto load_le(ParamTs&&... params) {
  496|  8.16M|   return detail::load_any<std::endian::little, OutT>(std::forward<ParamTs>(params)...);
  497|  8.16M|}
_ZN5Botan6detail8load_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm8EEEQoosr3stdE7same_asIS4_T0_Eaaoosr6rangesE25statically_spanable_rangeISA_Esr8conceptsE19resizable_containerISA_E20unsigned_integralishINSA_10value_typeEEEEDaOT1_:
  397|  8.16M|inline constexpr auto load_any(InR&& in_range) {
  398|  8.16M|   auto out = []([[maybe_unused]] const auto& in) {
  399|  8.16M|      if constexpr(std::same_as<AutoDetect, OutT>) {
  400|  8.16M|         if constexpr(ranges::statically_spanable_range<InR>) {
  401|  8.16M|            constexpr size_t extent = decltype(std::span{in})::extent;
  402|       |
  403|       |            // clang-format off
  404|  8.16M|            using type =
  405|  8.16M|               std::conditional_t<extent == 1, uint8_t,
  406|  8.16M|               std::conditional_t<extent == 2, uint16_t,
  407|  8.16M|               std::conditional_t<extent == 4, uint32_t,
  408|  8.16M|               std::conditional_t<extent == 8, uint64_t, void>>>>;
  409|       |            // clang-format on
  410|       |
  411|  8.16M|            static_assert(
  412|  8.16M|               !std::is_void_v<type>,
  413|  8.16M|               "Cannot determine the output type based on a statically sized bytearray with length other than those: 1, 2, 4, 8");
  414|       |
  415|  8.16M|            return type{};
  416|  8.16M|         } else {
  417|  8.16M|            static_assert(
  418|  8.16M|               !std::same_as<AutoDetect, OutT>,
  419|  8.16M|               "cannot infer return type from a dynamic range at compile time, please specify it explicitly");
  420|  8.16M|         }
  421|  8.16M|      } else if constexpr(concepts::resizable_container<OutT>) {
  422|  8.16M|         const size_t in_bytes = std::span{in}.size_bytes();
  423|  8.16M|         constexpr size_t out_elem_bytes = sizeof(typename OutT::value_type);
  424|  8.16M|         BOTAN_ARG_CHECK(in_bytes % out_elem_bytes == 0,
  425|  8.16M|                         "Input range is not word-aligned with the requested output range");
  426|  8.16M|         return OutT(in_bytes / out_elem_bytes);
  427|  8.16M|      } else {
  428|  8.16M|         return OutT{};
  429|  8.16M|      }
  430|  8.16M|   }(in_range);
  431|       |
  432|  8.16M|   using out_type = decltype(out);
  433|  8.16M|   if constexpr(unsigned_integralish<out_type>) {
  434|  8.16M|      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|  8.16M|   return out;
  441|  8.16M|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm8EEEQoosr3stdE7same_asIS4_T0_Eaaoosr6rangesE25statically_spanable_rangeISA_Esr8conceptsE19resizable_containerISA_E20unsigned_integralishINSA_10value_typeEEEEDaOT1_ENKUlRKT_E_clIS9_EEDaSG_:
  398|  8.16M|   auto out = []([[maybe_unused]] const auto& in) {
  399|  8.16M|      if constexpr(std::same_as<AutoDetect, OutT>) {
  400|  8.16M|         if constexpr(ranges::statically_spanable_range<InR>) {
  401|  8.16M|            constexpr size_t extent = decltype(std::span{in})::extent;
  402|       |
  403|       |            // clang-format off
  404|  8.16M|            using type =
  405|  8.16M|               std::conditional_t<extent == 1, uint8_t,
  406|  8.16M|               std::conditional_t<extent == 2, uint16_t,
  407|  8.16M|               std::conditional_t<extent == 4, uint32_t,
  408|  8.16M|               std::conditional_t<extent == 8, uint64_t, void>>>>;
  409|       |            // clang-format on
  410|       |
  411|  8.16M|            static_assert(
  412|  8.16M|               !std::is_void_v<type>,
  413|  8.16M|               "Cannot determine the output type based on a statically sized bytearray with length other than those: 1, 2, 4, 8");
  414|       |
  415|  8.16M|            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|  8.16M|   }(in_range);
_ZZN5Botan6detail8load_anyILNSt3__16endianE57005ETkNS0_20unsigned_integralishEmTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm8EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_ENKUlvE_clEv:
  282|  8.17M|   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|  8.17M|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (286:10): [Folded, False: 8.17M]
  ------------------
  287|      0|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  8.17M|      } else {
  289|  8.17M|         const std::span in{in_range};
  290|       |         if constexpr(sizeof(OutT) == 1) {
  291|       |            return static_cast<OutT>(in[0]);
  292|  8.17M|         } else if constexpr(endianness == std::endian::native) {
  293|  8.17M|            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|  8.17M|      }
  299|  8.17M|   }());
_ZN5Botan8store_leINS_6detail10AutoDetectEJRmEEEDaDpOT0_:
  736|   446k|inline constexpr auto store_le(ParamTs&&... params) {
  737|   446k|   return detail::store_any<std::endian::little, ModifierT>(std::forward<ParamTs>(params)...);
  738|   446k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE57005ENS0_10AutoDetectETpTkNS0_20unsigned_integralishEJmEQ10all_same_vIDpT1_EEEDaS6_:
  696|   446k|inline constexpr auto store_any(Ts... ins) {
  697|   446k|   return store_any<endianness, OutR>(std::array{ins...});
  698|   446k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges14spanable_rangeENS2_5arrayImLm1EEEQoooosr3stdE7same_asIS4_T0_Eaasr6rangesE25statically_spanable_rangeIS8_Esr3stdE21default_initializableIS8_Esr8conceptsE21resizable_byte_bufferIS8_EEEDaOT1_:
  663|   446k|inline constexpr auto store_any(InR&& in_range) {
  664|   446k|   auto out = []([[maybe_unused]] const auto& in) {
  665|   446k|      if constexpr(std::same_as<AutoDetect, OutR>) {
  666|   446k|         if constexpr(ranges::statically_spanable_range<InR>) {
  667|   446k|            constexpr size_t bytes = decltype(std::span{in})::extent * sizeof(std::ranges::range_value_t<InR>);
  668|   446k|            return std::array<uint8_t, bytes>();
  669|   446k|         } else {
  670|   446k|            static_assert(
  671|   446k|               !std::same_as<AutoDetect, OutR>,
  672|   446k|               "cannot infer a suitable result container type from the given parameters at compile time, please specify it explicitly");
  673|   446k|         }
  674|   446k|      } else if constexpr(concepts::resizable_byte_buffer<OutR>) {
  675|   446k|         return OutR(std::span{in}.size_bytes());
  676|   446k|      } else {
  677|   446k|         return OutR{};
  678|   446k|      }
  679|   446k|   }(in_range);
  680|       |
  681|   446k|   store_any<endianness, std::ranges::range_value_t<InR>>(out, std::forward<InR>(in_range));
  682|   446k|   return out;
  683|   446k|}
_ZZN5Botan6detail9store_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges14spanable_rangeENS2_5arrayImLm1EEEQoooosr3stdE7same_asIS4_T0_Eaasr6rangesE25statically_spanable_rangeIS8_Esr3stdE21default_initializableIS8_Esr8conceptsE21resizable_byte_bufferIS8_EEEDaOT1_ENKUlRKT_E_clIS7_EEDaSD_:
  664|   446k|   auto out = []([[maybe_unused]] const auto& in) {
  665|   446k|      if constexpr(std::same_as<AutoDetect, OutR>) {
  666|   446k|         if constexpr(ranges::statically_spanable_range<InR>) {
  667|   446k|            constexpr size_t bytes = decltype(std::span{in})::extent * sizeof(std::ranges::range_value_t<InR>);
  668|   446k|            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|   446k|   }(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|   446k|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  604|   446k|   ranges::assert_equal_byte_lengths(out, in);
  605|   446k|   using element_type = std::ranges::range_value_t<InR>;
  606|       |
  607|   446k|   auto store_elementwise = [&] {
  608|   446k|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|   446k|      std::span<uint8_t> out_s(out);
  610|   446k|      for(auto in_elem : in) {
  611|   446k|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|   446k|         out_s = out_s.subspan(bytes_per_element);
  613|   446k|      }
  614|   446k|   };
  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|   446k|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (619:7): [Folded, False: 446k]
  ------------------
  620|      0|      store_elementwise();
  621|   446k|   } else {
  622|   446k|      if constexpr(endianness == std::endian::native && !custom_storable<element_type>) {
  623|   446k|         typecast_copy(out, in);
  624|       |      } else {
  625|       |         store_elementwise();
  626|       |      }
  627|   446k|   }
  628|   446k|}
_ZN5Botan7load_leImJPKhiEEEDaDpOT0_:
  495|  16.1k|inline constexpr auto load_le(ParamTs&&... params) {
  496|  16.1k|   return detail::load_any<std::endian::little, OutT>(std::forward<ParamTs>(params)...);
  497|  16.1k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE57005ETkNS0_20unsigned_integralishEmEET0_PKhm:
  454|  16.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|  16.1k|   constexpr size_t out_size = sizeof(OutT);
  457|  16.1k|   return load_any<endianness, OutT>(std::span<const uint8_t, out_size>(in + off * out_size, out_size));
  458|  16.1k|}
_ZN5Botan7load_leIjJRPKhiEEEDaDpOT0_:
  495|  60.3k|inline constexpr auto load_le(ParamTs&&... params) {
  496|  60.3k|   return detail::load_any<std::endian::little, OutT>(std::forward<ParamTs>(params)...);
  497|  60.3k|}
_ZN5Botan8store_beINS_6detail10AutoDetectEJRKhEEEDaDpOT0_:
  745|     64|inline constexpr auto store_be(ParamTs&&... params) {
  746|     64|   return detail::store_any<std::endian::big, ModifierT>(std::forward<ParamTs>(params)...);
  747|     64|}
_ZN5Botan8store_beINS_6detail10AutoDetectEJRKjPhEEEDaDpOT0_:
  745|  1.31M|inline constexpr auto store_be(ParamTs&&... params) {
  746|  1.31M|   return detail::store_any<std::endian::big, ModifierT>(std::forward<ParamTs>(params)...);
  747|  1.31M|}
_ZN5Botan7load_beIjJPhiEEEDaDpOT0_:
  504|  18.7k|inline constexpr auto load_be(ParamTs&&... params) {
  505|  18.7k|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|  18.7k|}
_ZN5Botan8store_beINS_6detail10AutoDetectEJRjPhEEEDaDpOT0_:
  745|    460|inline constexpr auto store_be(ParamTs&&... params) {
  746|    460|   return detail::store_any<std::endian::big, ModifierT>(std::forward<ParamTs>(params)...);
  747|    460|}
_ZN5Botan8store_beINS_6detail10AutoDetectEJjPhEEEDaDpOT0_:
  745|  80.1k|inline constexpr auto store_be(ParamTs&&... params) {
  746|  80.1k|   return detail::store_any<std::endian::big, ModifierT>(std::forward<ParamTs>(params)...);
  747|  80.1k|}
_ZN5Botan8store_beINS_6detail10AutoDetectEJmPhEEEDaDpOT0_:
  745|   553k|inline constexpr auto store_be(ParamTs&&... params) {
  746|   553k|   return detail::store_any<std::endian::big, ModifierT>(std::forward<ParamTs>(params)...);
  747|   553k|}
_ZN5Botan7load_beINSt3__15arrayImLm2EEEJRNS1_4spanIhLm16EEEEEEDaDpOT0_:
  504|  10.7k|inline constexpr auto load_be(ParamTs&&... params) {
  505|  10.7k|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|  10.7k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ENS2_5arrayImLm2EEETkNS_6ranges16contiguous_rangeIhEERNS2_4spanIhLm16EEEQoosr3stdE7same_asINS0_10AutoDetectET0_Eaaoosr6rangesE25statically_spanable_rangeISC_Esr8conceptsE19resizable_containerISC_E20unsigned_integralishINSC_10value_typeEEEEDaOT1_:
  397|  10.7k|inline constexpr auto load_any(InR&& in_range) {
  398|  10.7k|   auto out = []([[maybe_unused]] const auto& in) {
  399|  10.7k|      if constexpr(std::same_as<AutoDetect, OutT>) {
  400|  10.7k|         if constexpr(ranges::statically_spanable_range<InR>) {
  401|  10.7k|            constexpr size_t extent = decltype(std::span{in})::extent;
  402|       |
  403|       |            // clang-format off
  404|  10.7k|            using type =
  405|  10.7k|               std::conditional_t<extent == 1, uint8_t,
  406|  10.7k|               std::conditional_t<extent == 2, uint16_t,
  407|  10.7k|               std::conditional_t<extent == 4, uint32_t,
  408|  10.7k|               std::conditional_t<extent == 8, uint64_t, void>>>>;
  409|       |            // clang-format on
  410|       |
  411|  10.7k|            static_assert(
  412|  10.7k|               !std::is_void_v<type>,
  413|  10.7k|               "Cannot determine the output type based on a statically sized bytearray with length other than those: 1, 2, 4, 8");
  414|       |
  415|  10.7k|            return type{};
  416|  10.7k|         } else {
  417|  10.7k|            static_assert(
  418|  10.7k|               !std::same_as<AutoDetect, OutT>,
  419|  10.7k|               "cannot infer return type from a dynamic range at compile time, please specify it explicitly");
  420|  10.7k|         }
  421|  10.7k|      } else if constexpr(concepts::resizable_container<OutT>) {
  422|  10.7k|         const size_t in_bytes = std::span{in}.size_bytes();
  423|  10.7k|         constexpr size_t out_elem_bytes = sizeof(typename OutT::value_type);
  424|  10.7k|         BOTAN_ARG_CHECK(in_bytes % out_elem_bytes == 0,
  425|  10.7k|                         "Input range is not word-aligned with the requested output range");
  426|  10.7k|         return OutT(in_bytes / out_elem_bytes);
  427|  10.7k|      } else {
  428|  10.7k|         return OutT{};
  429|  10.7k|      }
  430|  10.7k|   }(in_range);
  431|       |
  432|  10.7k|   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|  10.7k|   } else {
  436|  10.7k|      static_assert(ranges::contiguous_range<out_type>);
  437|  10.7k|      using out_range_type = std::ranges::range_value_t<out_type>;
  438|  10.7k|      load_any<endianness, out_range_type>(out, std::forward<InR>(in_range));
  439|  10.7k|   }
  440|  10.7k|   return out;
  441|  10.7k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE64206ENS2_5arrayImLm2EEETkNS_6ranges16contiguous_rangeIhEERNS2_4spanIhLm16EEEQoosr3stdE7same_asINS0_10AutoDetectET0_Eaaoosr6rangesE25statically_spanable_rangeISC_Esr8conceptsE19resizable_containerISC_E20unsigned_integralishINSC_10value_typeEEEEDaOT1_ENKUlRKT_E_clIS9_EEDaSI_:
  398|  10.7k|   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|  10.7k|      } else {
  428|  10.7k|         return OutT{};
  429|  10.7k|      }
  430|  10.7k|   }(in_range);
_ZN5Botan6detail8load_anyILNSt3__16endianE64206EmTkNS_6ranges23contiguous_output_rangeERNS2_5arrayImLm2EEETkNS4_16contiguous_rangeIhEENS2_4spanIhLm16EEEQaa20unsigned_integralishINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT1_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISI_EESJ_E4type10value_typeEEoosr3stdE7same_asINS0_10AutoDetectET0_Esr3stdE7same_asISQ_SO_EEEvOSF_RKT2_:
  355|  10.7k|inline constexpr void load_any(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  356|  10.7k|   ranges::assert_equal_byte_lengths(out, in);
  357|  10.7k|   using element_type = std::ranges::range_value_t<OutR>;
  358|       |
  359|  10.7k|   auto load_elementwise = [&] {
  360|  10.7k|      constexpr size_t bytes_per_element = sizeof(element_type);
  361|  10.7k|      std::span<const uint8_t> in_s(in);
  362|  10.7k|      for(auto& out_elem : out) {
  363|  10.7k|         out_elem = load_any<endianness, element_type>(in_s.template first<bytes_per_element>());
  364|  10.7k|         in_s = in_s.subspan(bytes_per_element);
  365|  10.7k|      }
  366|  10.7k|   };
  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|  10.7k|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (371:7): [Folded, False: 10.7k]
  ------------------
  372|      0|      load_elementwise();
  373|  10.7k|   } else {
  374|       |      if constexpr(endianness == std::endian::native && !custom_loadable<element_type>) {
  375|       |         typecast_copy(out, in);
  376|  10.7k|      } else {
  377|  10.7k|         load_elementwise();
  378|  10.7k|      }
  379|  10.7k|   }
  380|  10.7k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE64206EmTkNS_6ranges23contiguous_output_rangeERNS2_5arrayImLm2EEETkNS4_16contiguous_rangeIhEENS2_4spanIhLm16EEEQaa20unsigned_integralishINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT1_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISI_EESJ_E4type10value_typeEEoosr3stdE7same_asINS0_10AutoDetectET0_Esr3stdE7same_asISQ_SO_EEEvOSF_RKT2_ENKUlvE_clEv:
  359|  10.7k|   auto load_elementwise = [&] {
  360|  10.7k|      constexpr size_t bytes_per_element = sizeof(element_type);
  361|  10.7k|      std::span<const uint8_t> in_s(in);
  362|  21.4k|      for(auto& out_elem : out) {
  ------------------
  |  Branch (362:26): [True: 21.4k, False: 10.7k]
  ------------------
  363|  21.4k|         out_elem = load_any<endianness, element_type>(in_s.template first<bytes_per_element>());
  364|  21.4k|         in_s = in_s.subspan(bytes_per_element);
  365|  21.4k|      }
  366|  10.7k|   };
_ZN5Botan7load_beINSt3__15arrayImLm2EEEJNS1_4spanIKhLm16EEEEEEDaDpOT0_:
  504|  80.6k|inline constexpr auto load_be(ParamTs&&... params) {
  505|  80.6k|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|  80.6k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ENS2_5arrayImLm2EEETkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm16EEEQoosr3stdE7same_asINS0_10AutoDetectET0_Eaaoosr6rangesE25statically_spanable_rangeISC_Esr8conceptsE19resizable_containerISC_E20unsigned_integralishINSC_10value_typeEEEEDaOT1_:
  397|  80.6k|inline constexpr auto load_any(InR&& in_range) {
  398|  80.6k|   auto out = []([[maybe_unused]] const auto& in) {
  399|  80.6k|      if constexpr(std::same_as<AutoDetect, OutT>) {
  400|  80.6k|         if constexpr(ranges::statically_spanable_range<InR>) {
  401|  80.6k|            constexpr size_t extent = decltype(std::span{in})::extent;
  402|       |
  403|       |            // clang-format off
  404|  80.6k|            using type =
  405|  80.6k|               std::conditional_t<extent == 1, uint8_t,
  406|  80.6k|               std::conditional_t<extent == 2, uint16_t,
  407|  80.6k|               std::conditional_t<extent == 4, uint32_t,
  408|  80.6k|               std::conditional_t<extent == 8, uint64_t, void>>>>;
  409|       |            // clang-format on
  410|       |
  411|  80.6k|            static_assert(
  412|  80.6k|               !std::is_void_v<type>,
  413|  80.6k|               "Cannot determine the output type based on a statically sized bytearray with length other than those: 1, 2, 4, 8");
  414|       |
  415|  80.6k|            return type{};
  416|  80.6k|         } else {
  417|  80.6k|            static_assert(
  418|  80.6k|               !std::same_as<AutoDetect, OutT>,
  419|  80.6k|               "cannot infer return type from a dynamic range at compile time, please specify it explicitly");
  420|  80.6k|         }
  421|  80.6k|      } else if constexpr(concepts::resizable_container<OutT>) {
  422|  80.6k|         const size_t in_bytes = std::span{in}.size_bytes();
  423|  80.6k|         constexpr size_t out_elem_bytes = sizeof(typename OutT::value_type);
  424|  80.6k|         BOTAN_ARG_CHECK(in_bytes % out_elem_bytes == 0,
  425|  80.6k|                         "Input range is not word-aligned with the requested output range");
  426|  80.6k|         return OutT(in_bytes / out_elem_bytes);
  427|  80.6k|      } else {
  428|  80.6k|         return OutT{};
  429|  80.6k|      }
  430|  80.6k|   }(in_range);
  431|       |
  432|  80.6k|   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|  80.6k|   } else {
  436|  80.6k|      static_assert(ranges::contiguous_range<out_type>);
  437|  80.6k|      using out_range_type = std::ranges::range_value_t<out_type>;
  438|  80.6k|      load_any<endianness, out_range_type>(out, std::forward<InR>(in_range));
  439|  80.6k|   }
  440|  80.6k|   return out;
  441|  80.6k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE64206ENS2_5arrayImLm2EEETkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm16EEEQoosr3stdE7same_asINS0_10AutoDetectET0_Eaaoosr6rangesE25statically_spanable_rangeISC_Esr8conceptsE19resizable_containerISC_E20unsigned_integralishINSC_10value_typeEEEEDaOT1_ENKUlRKT_E_clISA_EEDaSI_:
  398|  80.6k|   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|  80.6k|      } else {
  428|  80.6k|         return OutT{};
  429|  80.6k|      }
  430|  80.6k|   }(in_range);
_ZN5Botan6detail8load_anyILNSt3__16endianE64206EmTkNS_6ranges23contiguous_output_rangeERNS2_5arrayImLm2EEETkNS4_16contiguous_rangeIhEENS2_4spanIKhLm16EEEQaa20unsigned_integralishINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT1_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISJ_EESK_E4type10value_typeEEoosr3stdE7same_asINS0_10AutoDetectET0_Esr3stdE7same_asISR_SP_EEEvOSG_RKT2_:
  355|  80.7k|inline constexpr void load_any(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  356|  80.7k|   ranges::assert_equal_byte_lengths(out, in);
  357|  80.7k|   using element_type = std::ranges::range_value_t<OutR>;
  358|       |
  359|  80.7k|   auto load_elementwise = [&] {
  360|  80.7k|      constexpr size_t bytes_per_element = sizeof(element_type);
  361|  80.7k|      std::span<const uint8_t> in_s(in);
  362|  80.7k|      for(auto& out_elem : out) {
  363|  80.7k|         out_elem = load_any<endianness, element_type>(in_s.template first<bytes_per_element>());
  364|  80.7k|         in_s = in_s.subspan(bytes_per_element);
  365|  80.7k|      }
  366|  80.7k|   };
  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|  80.7k|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (371:7): [Folded, False: 80.7k]
  ------------------
  372|      0|      load_elementwise();
  373|  80.7k|   } else {
  374|       |      if constexpr(endianness == std::endian::native && !custom_loadable<element_type>) {
  375|       |         typecast_copy(out, in);
  376|  80.7k|      } else {
  377|  80.7k|         load_elementwise();
  378|  80.7k|      }
  379|  80.7k|   }
  380|  80.7k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE64206EmTkNS_6ranges23contiguous_output_rangeERNS2_5arrayImLm2EEETkNS4_16contiguous_rangeIhEENS2_4spanIKhLm16EEEQaa20unsigned_integralishINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT1_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISJ_EESK_E4type10value_typeEEoosr3stdE7same_asINS0_10AutoDetectET0_Esr3stdE7same_asISR_SP_EEEvOSG_RKT2_ENKUlvE_clEv:
  359|  80.7k|   auto load_elementwise = [&] {
  360|  80.7k|      constexpr size_t bytes_per_element = sizeof(element_type);
  361|  80.7k|      std::span<const uint8_t> in_s(in);
  362|   161k|      for(auto& out_elem : out) {
  ------------------
  |  Branch (362:26): [True: 161k, False: 80.7k]
  ------------------
  363|   161k|         out_elem = load_any<endianness, element_type>(in_s.template first<bytes_per_element>());
  364|   161k|         in_s = in_s.subspan(bytes_per_element);
  365|   161k|      }
  366|  80.7k|   };
_ZN5Botan8store_beINS_6detail10AutoDetectEJRNSt3__14spanIhLm16EEERNS3_5arrayImLm2EEEEEEDaDpOT0_:
  745|  10.7k|inline constexpr auto store_be(ParamTs&&... params) {
  746|  10.7k|   return detail::store_any<std::endian::big, ModifierT>(std::forward<ParamTs>(params)...);
  747|  10.7k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS_6ranges23contiguous_output_rangeIhEERNS2_4spanIhLm16EEETkNS5_14spanable_rangeENS2_5arrayImLm2EEEQoosr3stdE7same_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|  10.7k|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  604|  10.7k|   ranges::assert_equal_byte_lengths(out, in);
  605|  10.7k|   using element_type = std::ranges::range_value_t<InR>;
  606|       |
  607|  10.7k|   auto store_elementwise = [&] {
  608|  10.7k|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|  10.7k|      std::span<uint8_t> out_s(out);
  610|  10.7k|      for(auto in_elem : in) {
  611|  10.7k|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|  10.7k|         out_s = out_s.subspan(bytes_per_element);
  613|  10.7k|      }
  614|  10.7k|   };
  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|  10.7k|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (619:7): [Folded, False: 10.7k]
  ------------------
  620|      0|      store_elementwise();
  621|  10.7k|   } else {
  622|       |      if constexpr(endianness == std::endian::native && !custom_storable<element_type>) {
  623|       |         typecast_copy(out, in);
  624|  10.7k|      } else {
  625|  10.7k|         store_elementwise();
  626|  10.7k|      }
  627|  10.7k|   }
  628|  10.7k|}
_ZZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS_6ranges23contiguous_output_rangeIhEERNS2_4spanIhLm16EEETkNS5_14spanable_rangeENS2_5arrayImLm2EEEQoosr3stdE7same_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|  10.7k|   auto store_elementwise = [&] {
  608|  10.7k|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|  10.7k|      std::span<uint8_t> out_s(out);
  610|  21.4k|      for(auto in_elem : in) {
  ------------------
  |  Branch (610:24): [True: 21.4k, False: 10.7k]
  ------------------
  611|  21.4k|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|  21.4k|         out_s = out_s.subspan(bytes_per_element);
  613|  21.4k|      }
  614|  10.7k|   };
_ZN5Botan7load_beINSt3__15arrayImLm2EEEJRNS1_4spanIKhLm16EEEEEEDaDpOT0_:
  504|    136|inline constexpr auto load_be(ParamTs&&... params) {
  505|    136|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|    136|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ENS2_5arrayImLm2EEETkNS_6ranges16contiguous_rangeIhEERNS2_4spanIKhLm16EEEQoosr3stdE7same_asINS0_10AutoDetectET0_Eaaoosr6rangesE25statically_spanable_rangeISD_Esr8conceptsE19resizable_containerISD_E20unsigned_integralishINSD_10value_typeEEEEDaOT1_:
  397|    136|inline constexpr auto load_any(InR&& in_range) {
  398|    136|   auto out = []([[maybe_unused]] const auto& in) {
  399|    136|      if constexpr(std::same_as<AutoDetect, OutT>) {
  400|    136|         if constexpr(ranges::statically_spanable_range<InR>) {
  401|    136|            constexpr size_t extent = decltype(std::span{in})::extent;
  402|       |
  403|       |            // clang-format off
  404|    136|            using type =
  405|    136|               std::conditional_t<extent == 1, uint8_t,
  406|    136|               std::conditional_t<extent == 2, uint16_t,
  407|    136|               std::conditional_t<extent == 4, uint32_t,
  408|    136|               std::conditional_t<extent == 8, uint64_t, void>>>>;
  409|       |            // clang-format on
  410|       |
  411|    136|            static_assert(
  412|    136|               !std::is_void_v<type>,
  413|    136|               "Cannot determine the output type based on a statically sized bytearray with length other than those: 1, 2, 4, 8");
  414|       |
  415|    136|            return type{};
  416|    136|         } else {
  417|    136|            static_assert(
  418|    136|               !std::same_as<AutoDetect, OutT>,
  419|    136|               "cannot infer return type from a dynamic range at compile time, please specify it explicitly");
  420|    136|         }
  421|    136|      } else if constexpr(concepts::resizable_container<OutT>) {
  422|    136|         const size_t in_bytes = std::span{in}.size_bytes();
  423|    136|         constexpr size_t out_elem_bytes = sizeof(typename OutT::value_type);
  424|    136|         BOTAN_ARG_CHECK(in_bytes % out_elem_bytes == 0,
  425|    136|                         "Input range is not word-aligned with the requested output range");
  426|    136|         return OutT(in_bytes / out_elem_bytes);
  427|    136|      } else {
  428|    136|         return OutT{};
  429|    136|      }
  430|    136|   }(in_range);
  431|       |
  432|    136|   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|    136|   } else {
  436|    136|      static_assert(ranges::contiguous_range<out_type>);
  437|    136|      using out_range_type = std::ranges::range_value_t<out_type>;
  438|    136|      load_any<endianness, out_range_type>(out, std::forward<InR>(in_range));
  439|    136|   }
  440|    136|   return out;
  441|    136|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE64206ENS2_5arrayImLm2EEETkNS_6ranges16contiguous_rangeIhEERNS2_4spanIKhLm16EEEQoosr3stdE7same_asINS0_10AutoDetectET0_Eaaoosr6rangesE25statically_spanable_rangeISD_Esr8conceptsE19resizable_containerISD_E20unsigned_integralishINSD_10value_typeEEEEDaOT1_ENKUlRKT_E_clISA_EEDaSJ_:
  398|    136|   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|    136|      } else {
  428|    136|         return OutT{};
  429|    136|      }
  430|    136|   }(in_range);
_ZN5Botan8store_beINS_6detail10AutoDetectEJmmEEEDaDpOT0_:
  745|    126|inline constexpr auto store_be(ParamTs&&... params) {
  746|    126|   return detail::store_any<std::endian::big, ModifierT>(std::forward<ParamTs>(params)...);
  747|    126|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETpTkNS0_20unsigned_integralishEJmmEQ10all_same_vIDpT1_EEEDaS6_:
  696|    126|inline constexpr auto store_any(Ts... ins) {
  697|    126|   return store_any<endianness, OutR>(std::array{ins...});
  698|    126|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS_6ranges14spanable_rangeENS2_5arrayImLm2EEEQoooosr3stdE7same_asIS4_T0_Eaasr6rangesE25statically_spanable_rangeIS8_Esr3stdE21default_initializableIS8_Esr8conceptsE21resizable_byte_bufferIS8_EEEDaOT1_:
  663|    126|inline constexpr auto store_any(InR&& in_range) {
  664|    126|   auto out = []([[maybe_unused]] const auto& in) {
  665|    126|      if constexpr(std::same_as<AutoDetect, OutR>) {
  666|    126|         if constexpr(ranges::statically_spanable_range<InR>) {
  667|    126|            constexpr size_t bytes = decltype(std::span{in})::extent * sizeof(std::ranges::range_value_t<InR>);
  668|    126|            return std::array<uint8_t, bytes>();
  669|    126|         } else {
  670|    126|            static_assert(
  671|    126|               !std::same_as<AutoDetect, OutR>,
  672|    126|               "cannot infer a suitable result container type from the given parameters at compile time, please specify it explicitly");
  673|    126|         }
  674|    126|      } else if constexpr(concepts::resizable_byte_buffer<OutR>) {
  675|    126|         return OutR(std::span{in}.size_bytes());
  676|    126|      } else {
  677|    126|         return OutR{};
  678|    126|      }
  679|    126|   }(in_range);
  680|       |
  681|    126|   store_any<endianness, std::ranges::range_value_t<InR>>(out, std::forward<InR>(in_range));
  682|    126|   return out;
  683|    126|}
_ZZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS_6ranges14spanable_rangeENS2_5arrayImLm2EEEQoooosr3stdE7same_asIS4_T0_Eaasr6rangesE25statically_spanable_rangeIS8_Esr3stdE21default_initializableIS8_Esr8conceptsE21resizable_byte_bufferIS8_EEEDaOT1_ENKUlRKT_E_clIS7_EEDaSD_:
  664|    126|   auto out = []([[maybe_unused]] const auto& in) {
  665|    126|      if constexpr(std::same_as<AutoDetect, OutR>) {
  666|    126|         if constexpr(ranges::statically_spanable_range<InR>) {
  667|    126|            constexpr size_t bytes = decltype(std::span{in})::extent * sizeof(std::ranges::range_value_t<InR>);
  668|    126|            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|    126|   }(in_range);
_ZN5Botan6detail9store_anyILNSt3__16endianE64206EmTkNS_6ranges23contiguous_output_rangeIhEERNS2_5arrayIhLm16EEETkNS4_14spanable_rangeENS6_ImLm2EEEQoosr3stdE7same_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|    126|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  604|    126|   ranges::assert_equal_byte_lengths(out, in);
  605|    126|   using element_type = std::ranges::range_value_t<InR>;
  606|       |
  607|    126|   auto store_elementwise = [&] {
  608|    126|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|    126|      std::span<uint8_t> out_s(out);
  610|    126|      for(auto in_elem : in) {
  611|    126|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|    126|         out_s = out_s.subspan(bytes_per_element);
  613|    126|      }
  614|    126|   };
  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|    126|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (619:7): [Folded, False: 126]
  ------------------
  620|      0|      store_elementwise();
  621|    126|   } else {
  622|       |      if constexpr(endianness == std::endian::native && !custom_storable<element_type>) {
  623|       |         typecast_copy(out, in);
  624|    126|      } else {
  625|    126|         store_elementwise();
  626|    126|      }
  627|    126|   }
  628|    126|}
_ZZN5Botan6detail9store_anyILNSt3__16endianE64206EmTkNS_6ranges23contiguous_output_rangeIhEERNS2_5arrayIhLm16EEETkNS4_14spanable_rangeENS6_ImLm2EEEQoosr3stdE7same_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|    126|   auto store_elementwise = [&] {
  608|    126|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|    126|      std::span<uint8_t> out_s(out);
  610|    252|      for(auto in_elem : in) {
  ------------------
  |  Branch (610:24): [True: 252, False: 126]
  ------------------
  611|    252|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|    252|         out_s = out_s.subspan(bytes_per_element);
  613|    252|      }
  614|    126|   };
_ZN5Botan7load_beINS_6detail10AutoDetectEJRA1_mRPKhmEEEDaDpOT0_:
  504|    816|inline constexpr auto load_be(ParamTs&&... params) {
  505|    816|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|    816|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS0_20unsigned_integralishEmQoosr3stdE7same_asIS4_T0_Esr3stdE7same_asIT1_S5_EEEvPS6_PKhm:
  483|  3.81k|inline constexpr void load_any(T out[], const uint8_t in[], size_t count) {
  484|       |   // asserts that *in and *out point to the correct amount of memory
  485|  3.81k|   load_any<endianness, OutT>(std::span<T>(out, count), std::span<const uint8_t>(in, count * sizeof(T)));
  486|  3.81k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS_6ranges23contiguous_output_rangeENS2_4spanImLm18446744073709551615EEETkNS5_16contiguous_rangeIhEENS6_IKhLm18446744073709551615EEEQaa20unsigned_integralishINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT1_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISI_EESJ_E4type10value_typeEEoosr3stdE7same_asIS4_T0_Esr3stdE7same_asISP_SO_EEEvOSF_RKT2_:
  355|  3.81k|inline constexpr void load_any(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  356|  3.81k|   ranges::assert_equal_byte_lengths(out, in);
  357|  3.81k|   using element_type = std::ranges::range_value_t<OutR>;
  358|       |
  359|  3.81k|   auto load_elementwise = [&] {
  360|  3.81k|      constexpr size_t bytes_per_element = sizeof(element_type);
  361|  3.81k|      std::span<const uint8_t> in_s(in);
  362|  3.81k|      for(auto& out_elem : out) {
  363|  3.81k|         out_elem = load_any<endianness, element_type>(in_s.template first<bytes_per_element>());
  364|  3.81k|         in_s = in_s.subspan(bytes_per_element);
  365|  3.81k|      }
  366|  3.81k|   };
  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|  3.81k|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (371:7): [Folded, False: 3.81k]
  ------------------
  372|      0|      load_elementwise();
  373|  3.81k|   } else {
  374|       |      if constexpr(endianness == std::endian::native && !custom_loadable<element_type>) {
  375|       |         typecast_copy(out, in);
  376|  3.81k|      } else {
  377|  3.81k|         load_elementwise();
  378|  3.81k|      }
  379|  3.81k|   }
  380|  3.81k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS_6ranges23contiguous_output_rangeENS2_4spanImLm18446744073709551615EEETkNS5_16contiguous_rangeIhEENS6_IKhLm18446744073709551615EEEQaa20unsigned_integralishINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT1_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISI_EESJ_E4type10value_typeEEoosr3stdE7same_asIS4_T0_Esr3stdE7same_asISP_SO_EEEvOSF_RKT2_ENKUlvE_clEv:
  359|  3.81k|   auto load_elementwise = [&] {
  360|  3.81k|      constexpr size_t bytes_per_element = sizeof(element_type);
  361|  3.81k|      std::span<const uint8_t> in_s(in);
  362|  6.82k|      for(auto& out_elem : out) {
  ------------------
  |  Branch (362:26): [True: 6.82k, False: 3.81k]
  ------------------
  363|  6.82k|         out_elem = load_any<endianness, element_type>(in_s.template first<bytes_per_element>());
  364|  6.82k|         in_s = in_s.subspan(bytes_per_element);
  365|  6.82k|      }
  366|  3.81k|   };
_ZN5Botan11copy_out_beITkNS_6ranges14spanable_rangeEA1_mEEvNSt3__14spanIhLm18446744073709551615EEERKT_:
  773|    816|inline void copy_out_be(std::span<uint8_t> out, const InR& in) {
  774|    816|   using T = std::ranges::range_value_t<InR>;
  775|    816|   std::span<const T> in_s{in};
  776|    816|   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|    816|   for(size_t i = 0; i < remaining_bytes; ++i) {
  ------------------
  |  Branch (779:22): [True: 0, False: 816]
  ------------------
  780|      0|      out[i] = get_byte_var(i, in_s.front());
  781|      0|   }
  782|    816|}
_ZN5Botan7load_beINS_6detail10AutoDetectEJRA2_mRPKhmEEEDaDpOT0_:
  504|  3.00k|inline constexpr auto load_be(ParamTs&&... params) {
  505|  3.00k|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|  3.00k|}
_ZN5Botan11copy_out_beITkNS_6ranges14spanable_rangeEA2_mEEvNSt3__14spanIhLm18446744073709551615EEERKT_:
  773|  3.00k|inline void copy_out_be(std::span<uint8_t> out, const InR& in) {
  774|  3.00k|   using T = std::ranges::range_value_t<InR>;
  775|  3.00k|   std::span<const T> in_s{in};
  776|  3.00k|   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|  3.00k|   for(size_t i = 0; i < remaining_bytes; ++i) {
  ------------------
  |  Branch (779:22): [True: 0, False: 3.00k]
  ------------------
  780|      0|      out[i] = get_byte_var(i, in_s.front());
  781|      0|   }
  782|  3.00k|}

_ZNK5Botan3MD54nameEv:
   32|  3.80k|      std::string name() const override { return "MD5"; }
_ZNK5Botan3MD513output_lengthEv:
   34|  46.7k|      size_t output_length() const override { return output_bytes; }

_ZN5Botan18MerkleDamgard_HashINS_5SHA_1EEC2Ev:
   42|  15.9k|      MerkleDamgard_Hash() { clear(); }
_ZN5Botan18MerkleDamgard_HashINS_5SHA_1EE5clearEv:
   70|  30.2k|      void clear() {
   71|  30.2k|         MD::init(m_digest);
   72|  30.2k|         m_buffer.clear();
   73|  30.2k|         m_count = 0;
   74|  30.2k|      }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_224EEC2Ev:
   42|  15.4k|      MerkleDamgard_Hash() { clear(); }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_224EE5clearEv:
   70|  28.2k|      void clear() {
   71|  28.2k|         MD::init(m_digest);
   72|  28.2k|         m_buffer.clear();
   73|  28.2k|         m_count = 0;
   74|  28.2k|      }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_256EEC2Ev:
   42|  44.1k|      MerkleDamgard_Hash() { clear(); }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_256EE5clearEv:
   70|  72.4k|      void clear() {
   71|  72.4k|         MD::init(m_digest);
   72|  72.4k|         m_buffer.clear();
   73|  72.4k|         m_count = 0;
   74|  72.4k|      }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_384EEC2Ev:
   42|  45.1k|      MerkleDamgard_Hash() { clear(); }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_384EE5clearEv:
   70|  67.1k|      void clear() {
   71|  67.1k|         MD::init(m_digest);
   72|  67.1k|         m_buffer.clear();
   73|  67.1k|         m_count = 0;
   74|  67.1k|      }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_512EEC2Ev:
   42|  32.2k|      MerkleDamgard_Hash() { clear(); }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_512EE5clearEv:
   70|   323k|      void clear() {
   71|   323k|         MD::init(m_digest);
   72|   323k|         m_buffer.clear();
   73|   323k|         m_count = 0;
   74|   323k|      }
_ZN5Botan18MerkleDamgard_HashINS_10RIPEMD_160EEC2Ev:
   42|  5.31k|      MerkleDamgard_Hash() { clear(); }
_ZN5Botan18MerkleDamgard_HashINS_10RIPEMD_160EE5clearEv:
   70|  8.73k|      void clear() {
   71|  8.73k|         MD::init(m_digest);
   72|  8.73k|         m_buffer.clear();
   73|  8.73k|         m_count = 0;
   74|  8.73k|      }
_ZN5Botan18MerkleDamgard_HashINS_3MD5EEC2Ev:
   42|  29.4k|      MerkleDamgard_Hash() { clear(); }
_ZN5Botan18MerkleDamgard_HashINS_3MD5EE5clearEv:
   70|  50.9k|      void clear() {
   71|  50.9k|         MD::init(m_digest);
   72|  50.9k|         m_buffer.clear();
   73|  50.9k|         m_count = 0;
   74|  50.9k|      }
_ZN5Botan18MerkleDamgard_HashINS_3SM3EEC2Ev:
   42|  16.5k|      MerkleDamgard_Hash() { clear(); }
_ZN5Botan18MerkleDamgard_HashINS_3SM3EE5clearEv:
   70|  28.9k|      void clear() {
   71|  28.9k|         MD::init(m_digest);
   72|  28.9k|         m_buffer.clear();
   73|  28.9k|         m_count = 0;
   74|  28.9k|      }
_ZN5Botan18MerkleDamgard_HashINS_3MD5EE6updateENSt3__14spanIKhLm18446744073709551615EEE:
   44|  27.0M|      void update(std::span<const uint8_t> input) {
   45|  27.0M|         BufferSlicer in(input);
   46|       |
   47|  55.5M|         while(!in.empty()) {
  ------------------
  |  Branch (47:16): [True: 28.5M, False: 27.0M]
  ------------------
   48|  28.5M|            if(const auto one_block = m_buffer.handle_unaligned_data(in)) {
  ------------------
  |  Branch (48:27): [True: 3.38M, False: 25.1M]
  ------------------
   49|  3.38M|               MD::compress_n(m_digest, one_block.value(), 1);
   50|  3.38M|            }
   51|       |
   52|  28.5M|            if(m_buffer.in_alignment()) {
  ------------------
  |  Branch (52:16): [True: 3.38M, False: 25.1M]
  ------------------
   53|  3.38M|               const auto [aligned_data, full_blocks] = m_buffer.aligned_data_to_process(in);
   54|  3.38M|               if(full_blocks > 0) {
  ------------------
  |  Branch (54:19): [True: 7.63k, False: 3.37M]
  ------------------
   55|  7.63k|                  MD::compress_n(m_digest, aligned_data, full_blocks);
   56|  7.63k|               }
   57|  3.38M|            }
   58|  28.5M|         }
   59|       |
   60|  27.0M|         m_count += input.size();
   61|  27.0M|      }
_ZN5Botan18MerkleDamgard_HashINS_3MD5EE5finalENSt3__14spanIhLm18446744073709551615EEE:
   63|  21.5k|      void final(std::span<uint8_t> output) {
   64|  21.5k|         append_padding_bit();
   65|  21.5k|         append_counter_and_finalize();
   66|  21.5k|         copy_output(output);
   67|  21.5k|         clear();
   68|  21.5k|      }
_ZN5Botan18MerkleDamgard_HashINS_3MD5EE18append_padding_bitEv:
   77|  21.5k|      void append_padding_bit() {
   78|  21.5k|         BOTAN_ASSERT_NOMSG(!m_buffer.ready_to_consume());
  ------------------
  |  |   77|  21.5k|   do {                                                                     \
  |  |   78|  21.5k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  21.5k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 21.5k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  21.5k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 21.5k]
  |  |  ------------------
  ------------------
   79|  21.5k|         if constexpr(MD::bit_endianness == MD_Endian::Big) {
   80|  21.5k|            const uint8_t final_byte = 0x80;
   81|  21.5k|            m_buffer.append({&final_byte, 1});
   82|       |         } else {
   83|       |            const uint8_t final_byte = 0x01;
   84|       |            m_buffer.append({&final_byte, 1});
   85|       |         }
   86|  21.5k|      }
_ZN5Botan18MerkleDamgard_HashINS_3MD5EE27append_counter_and_finalizeEv:
   88|  21.5k|      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|  21.5k|         if(m_buffer.elements_until_alignment() < MD::ctr_bytes) {
  ------------------
  |  Branch (91:13): [True: 2.65k, False: 18.9k]
  ------------------
   92|  2.65k|            m_buffer.fill_up_with_zeros();
   93|  2.65k|            MD::compress_n(m_digest, m_buffer.consume(), 1);
   94|  2.65k|         }
   95|       |
   96|       |         // Make sure that any remaining bytes in the very last block are zero.
   97|  21.5k|         BOTAN_ASSERT_NOMSG(m_buffer.elements_until_alignment() >= MD::ctr_bytes);
  ------------------
  |  |   77|  21.5k|   do {                                                                     \
  |  |   78|  21.5k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  21.5k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 21.5k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  21.5k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 21.5k]
  |  |  ------------------
  ------------------
   98|  21.5k|         m_buffer.fill_up_with_zeros();
   99|       |
  100|       |         // Replace a bunch of the right-most zero-padding with the counter bytes.
  101|  21.5k|         const uint64_t bit_count = m_count * 8;
  102|  21.5k|         auto last_bytes = m_buffer.directly_modify_last(sizeof(bit_count));
  103|       |         if constexpr(MD::byte_endianness == MD_Endian::Big) {
  104|       |            store_be(bit_count, last_bytes.data());
  105|  21.5k|         } else {
  106|  21.5k|            store_le(bit_count, last_bytes.data());
  107|  21.5k|         }
  108|       |
  109|       |         // Compress the very last block.
  110|  21.5k|         MD::compress_n(m_digest, m_buffer.consume(), 1);
  111|  21.5k|      }
_ZN5Botan18MerkleDamgard_HashINS_3MD5EE11copy_outputENSt3__14spanIhLm18446744073709551615EEE:
  113|  21.5k|      void copy_output(std::span<uint8_t> output) {
  114|  21.5k|         BOTAN_ASSERT_NOMSG(output.size() >= MD::output_bytes);
  ------------------
  |  |   77|  21.5k|   do {                                                                     \
  |  |   78|  21.5k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  21.5k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 21.5k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  21.5k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 21.5k]
  |  |  ------------------
  ------------------
  115|       |
  116|       |         if constexpr(MD::byte_endianness == MD_Endian::Big) {
  117|       |            copy_out_be(output.first(MD::output_bytes), m_digest);
  118|  21.5k|         } else {
  119|  21.5k|            copy_out_le(output.first(MD::output_bytes), m_digest);
  120|  21.5k|         }
  121|  21.5k|      }
_ZN5Botan18MerkleDamgard_HashINS_10RIPEMD_160EE6updateENSt3__14spanIKhLm18446744073709551615EEE:
   44|   189M|      void update(std::span<const uint8_t> input) {
   45|   189M|         BufferSlicer in(input);
   46|       |
   47|   384M|         while(!in.empty()) {
  ------------------
  |  Branch (47:16): [True: 194M, False: 189M]
  ------------------
   48|   194M|            if(const auto one_block = m_buffer.handle_unaligned_data(in)) {
  ------------------
  |  Branch (48:27): [True: 25.8M, False: 168M]
  ------------------
   49|  25.8M|               MD::compress_n(m_digest, one_block.value(), 1);
   50|  25.8M|            }
   51|       |
   52|   194M|            if(m_buffer.in_alignment()) {
  ------------------
  |  Branch (52:16): [True: 25.9M, False: 168M]
  ------------------
   53|  25.9M|               const auto [aligned_data, full_blocks] = m_buffer.aligned_data_to_process(in);
   54|  25.9M|               if(full_blocks > 0) {
  ------------------
  |  Branch (54:19): [True: 380k, False: 25.5M]
  ------------------
   55|   380k|                  MD::compress_n(m_digest, aligned_data, full_blocks);
   56|   380k|               }
   57|  25.9M|            }
   58|   194M|         }
   59|       |
   60|   189M|         m_count += input.size();
   61|   189M|      }
_ZN5Botan18MerkleDamgard_HashINS_10RIPEMD_160EE5finalENSt3__14spanIhLm18446744073709551615EEE:
   63|  3.42k|      void final(std::span<uint8_t> output) {
   64|  3.42k|         append_padding_bit();
   65|  3.42k|         append_counter_and_finalize();
   66|  3.42k|         copy_output(output);
   67|  3.42k|         clear();
   68|  3.42k|      }
_ZN5Botan18MerkleDamgard_HashINS_10RIPEMD_160EE18append_padding_bitEv:
   77|  3.42k|      void append_padding_bit() {
   78|  3.42k|         BOTAN_ASSERT_NOMSG(!m_buffer.ready_to_consume());
  ------------------
  |  |   77|  3.42k|   do {                                                                     \
  |  |   78|  3.42k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  3.42k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 3.42k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  3.42k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 3.42k]
  |  |  ------------------
  ------------------
   79|  3.42k|         if constexpr(MD::bit_endianness == MD_Endian::Big) {
   80|  3.42k|            const uint8_t final_byte = 0x80;
   81|  3.42k|            m_buffer.append({&final_byte, 1});
   82|       |         } else {
   83|       |            const uint8_t final_byte = 0x01;
   84|       |            m_buffer.append({&final_byte, 1});
   85|       |         }
   86|  3.42k|      }
_ZN5Botan18MerkleDamgard_HashINS_10RIPEMD_160EE27append_counter_and_finalizeEv:
   88|  3.42k|      void append_counter_and_finalize() {
   89|       |         // Compress the remaining data if the final data block does not provide
   90|       |         // enough space for the counter bytes.
   91|  3.42k|         if(m_buffer.elements_until_alignment() < MD::ctr_bytes) {
  ------------------
  |  Branch (91:13): [True: 1.06k, False: 2.36k]
  ------------------
   92|  1.06k|            m_buffer.fill_up_with_zeros();
   93|  1.06k|            MD::compress_n(m_digest, m_buffer.consume(), 1);
   94|  1.06k|         }
   95|       |
   96|       |         // Make sure that any remaining bytes in the very last block are zero.
   97|  3.42k|         BOTAN_ASSERT_NOMSG(m_buffer.elements_until_alignment() >= MD::ctr_bytes);
  ------------------
  |  |   77|  3.42k|   do {                                                                     \
  |  |   78|  3.42k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  3.42k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 3.42k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  3.42k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 3.42k]
  |  |  ------------------
  ------------------
   98|  3.42k|         m_buffer.fill_up_with_zeros();
   99|       |
  100|       |         // Replace a bunch of the right-most zero-padding with the counter bytes.
  101|  3.42k|         const uint64_t bit_count = m_count * 8;
  102|  3.42k|         auto last_bytes = m_buffer.directly_modify_last(sizeof(bit_count));
  103|       |         if constexpr(MD::byte_endianness == MD_Endian::Big) {
  104|       |            store_be(bit_count, last_bytes.data());
  105|  3.42k|         } else {
  106|  3.42k|            store_le(bit_count, last_bytes.data());
  107|  3.42k|         }
  108|       |
  109|       |         // Compress the very last block.
  110|  3.42k|         MD::compress_n(m_digest, m_buffer.consume(), 1);
  111|  3.42k|      }
_ZN5Botan18MerkleDamgard_HashINS_10RIPEMD_160EE11copy_outputENSt3__14spanIhLm18446744073709551615EEE:
  113|  3.42k|      void copy_output(std::span<uint8_t> output) {
  114|  3.42k|         BOTAN_ASSERT_NOMSG(output.size() >= MD::output_bytes);
  ------------------
  |  |   77|  3.42k|   do {                                                                     \
  |  |   78|  3.42k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  3.42k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 3.42k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  3.42k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 3.42k]
  |  |  ------------------
  ------------------
  115|       |
  116|       |         if constexpr(MD::byte_endianness == MD_Endian::Big) {
  117|       |            copy_out_be(output.first(MD::output_bytes), m_digest);
  118|  3.42k|         } else {
  119|  3.42k|            copy_out_le(output.first(MD::output_bytes), m_digest);
  120|  3.42k|         }
  121|  3.42k|      }
_ZN5Botan18MerkleDamgard_HashINS_5SHA_1EE6updateENSt3__14spanIKhLm18446744073709551615EEE:
   44|  18.3M|      void update(std::span<const uint8_t> input) {
   45|  18.3M|         BufferSlicer in(input);
   46|       |
   47|  39.8M|         while(!in.empty()) {
  ------------------
  |  Branch (47:16): [True: 21.5M, False: 18.3M]
  ------------------
   48|  21.5M|            if(const auto one_block = m_buffer.handle_unaligned_data(in)) {
  ------------------
  |  Branch (48:27): [True: 3.63M, False: 17.9M]
  ------------------
   49|  3.63M|               MD::compress_n(m_digest, one_block.value(), 1);
   50|  3.63M|            }
   51|       |
   52|  21.5M|            if(m_buffer.in_alignment()) {
  ------------------
  |  Branch (52:16): [True: 3.74M, False: 17.8M]
  ------------------
   53|  3.74M|               const auto [aligned_data, full_blocks] = m_buffer.aligned_data_to_process(in);
   54|  3.74M|               if(full_blocks > 0) {
  ------------------
  |  Branch (54:19): [True: 226k, False: 3.51M]
  ------------------
   55|   226k|                  MD::compress_n(m_digest, aligned_data, full_blocks);
   56|   226k|               }
   57|  3.74M|            }
   58|  21.5M|         }
   59|       |
   60|  18.3M|         m_count += input.size();
   61|  18.3M|      }
_ZN5Botan18MerkleDamgard_HashINS_5SHA_1EE5finalENSt3__14spanIhLm18446744073709551615EEE:
   63|  14.2k|      void final(std::span<uint8_t> output) {
   64|  14.2k|         append_padding_bit();
   65|  14.2k|         append_counter_and_finalize();
   66|  14.2k|         copy_output(output);
   67|  14.2k|         clear();
   68|  14.2k|      }
_ZN5Botan18MerkleDamgard_HashINS_5SHA_1EE18append_padding_bitEv:
   77|  14.2k|      void append_padding_bit() {
   78|  14.2k|         BOTAN_ASSERT_NOMSG(!m_buffer.ready_to_consume());
  ------------------
  |  |   77|  14.2k|   do {                                                                     \
  |  |   78|  14.2k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  14.2k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 14.2k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  14.2k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 14.2k]
  |  |  ------------------
  ------------------
   79|  14.2k|         if constexpr(MD::bit_endianness == MD_Endian::Big) {
   80|  14.2k|            const uint8_t final_byte = 0x80;
   81|  14.2k|            m_buffer.append({&final_byte, 1});
   82|       |         } else {
   83|       |            const uint8_t final_byte = 0x01;
   84|       |            m_buffer.append({&final_byte, 1});
   85|       |         }
   86|  14.2k|      }
_ZN5Botan18MerkleDamgard_HashINS_5SHA_1EE27append_counter_and_finalizeEv:
   88|  14.2k|      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|  14.2k|         if(m_buffer.elements_until_alignment() < MD::ctr_bytes) {
  ------------------
  |  Branch (91:13): [True: 5.55k, False: 8.73k]
  ------------------
   92|  5.55k|            m_buffer.fill_up_with_zeros();
   93|  5.55k|            MD::compress_n(m_digest, m_buffer.consume(), 1);
   94|  5.55k|         }
   95|       |
   96|       |         // Make sure that any remaining bytes in the very last block are zero.
   97|  14.2k|         BOTAN_ASSERT_NOMSG(m_buffer.elements_until_alignment() >= MD::ctr_bytes);
  ------------------
  |  |   77|  14.2k|   do {                                                                     \
  |  |   78|  14.2k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  14.2k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 14.2k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  14.2k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 14.2k]
  |  |  ------------------
  ------------------
   98|  14.2k|         m_buffer.fill_up_with_zeros();
   99|       |
  100|       |         // Replace a bunch of the right-most zero-padding with the counter bytes.
  101|  14.2k|         const uint64_t bit_count = m_count * 8;
  102|  14.2k|         auto last_bytes = m_buffer.directly_modify_last(sizeof(bit_count));
  103|  14.2k|         if constexpr(MD::byte_endianness == MD_Endian::Big) {
  104|  14.2k|            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|  14.2k|         MD::compress_n(m_digest, m_buffer.consume(), 1);
  111|  14.2k|      }
_ZN5Botan18MerkleDamgard_HashINS_5SHA_1EE11copy_outputENSt3__14spanIhLm18446744073709551615EEE:
  113|  14.2k|      void copy_output(std::span<uint8_t> output) {
  114|  14.2k|         BOTAN_ASSERT_NOMSG(output.size() >= MD::output_bytes);
  ------------------
  |  |   77|  14.2k|   do {                                                                     \
  |  |   78|  14.2k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  14.2k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 14.2k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  14.2k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 14.2k]
  |  |  ------------------
  ------------------
  115|       |
  116|  14.2k|         if constexpr(MD::byte_endianness == MD_Endian::Big) {
  117|  14.2k|            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|  14.2k|      }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_224EE6updateENSt3__14spanIKhLm18446744073709551615EEE:
   44|  27.1M|      void update(std::span<const uint8_t> input) {
   45|  27.1M|         BufferSlicer in(input);
   46|       |
   47|  57.0M|         while(!in.empty()) {
  ------------------
  |  Branch (47:16): [True: 29.9M, False: 27.1M]
  ------------------
   48|  29.9M|            if(const auto one_block = m_buffer.handle_unaligned_data(in)) {
  ------------------
  |  Branch (48:27): [True: 3.75M, False: 26.1M]
  ------------------
   49|  3.75M|               MD::compress_n(m_digest, one_block.value(), 1);
   50|  3.75M|            }
   51|       |
   52|  29.9M|            if(m_buffer.in_alignment()) {
  ------------------
  |  Branch (52:16): [True: 3.75M, False: 26.1M]
  ------------------
   53|  3.75M|               const auto [aligned_data, full_blocks] = m_buffer.aligned_data_to_process(in);
   54|  3.75M|               if(full_blocks > 0) {
  ------------------
  |  Branch (54:19): [True: 7.15k, False: 3.74M]
  ------------------
   55|  7.15k|                  MD::compress_n(m_digest, aligned_data, full_blocks);
   56|  7.15k|               }
   57|  3.75M|            }
   58|  29.9M|         }
   59|       |
   60|  27.1M|         m_count += input.size();
   61|  27.1M|      }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_224EE5finalENSt3__14spanIhLm18446744073709551615EEE:
   63|  12.7k|      void final(std::span<uint8_t> output) {
   64|  12.7k|         append_padding_bit();
   65|  12.7k|         append_counter_and_finalize();
   66|  12.7k|         copy_output(output);
   67|  12.7k|         clear();
   68|  12.7k|      }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_224EE18append_padding_bitEv:
   77|  12.7k|      void append_padding_bit() {
   78|  12.7k|         BOTAN_ASSERT_NOMSG(!m_buffer.ready_to_consume());
  ------------------
  |  |   77|  12.7k|   do {                                                                     \
  |  |   78|  12.7k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  12.7k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 12.7k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  12.7k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 12.7k]
  |  |  ------------------
  ------------------
   79|  12.7k|         if constexpr(MD::bit_endianness == MD_Endian::Big) {
   80|  12.7k|            const uint8_t final_byte = 0x80;
   81|  12.7k|            m_buffer.append({&final_byte, 1});
   82|       |         } else {
   83|       |            const uint8_t final_byte = 0x01;
   84|       |            m_buffer.append({&final_byte, 1});
   85|       |         }
   86|  12.7k|      }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_224EE27append_counter_and_finalizeEv:
   88|  12.7k|      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|  12.7k|         if(m_buffer.elements_until_alignment() < MD::ctr_bytes) {
  ------------------
  |  Branch (91:13): [True: 942, False: 11.7k]
  ------------------
   92|    942|            m_buffer.fill_up_with_zeros();
   93|    942|            MD::compress_n(m_digest, m_buffer.consume(), 1);
   94|    942|         }
   95|       |
   96|       |         // Make sure that any remaining bytes in the very last block are zero.
   97|  12.7k|         BOTAN_ASSERT_NOMSG(m_buffer.elements_until_alignment() >= MD::ctr_bytes);
  ------------------
  |  |   77|  12.7k|   do {                                                                     \
  |  |   78|  12.7k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  12.7k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 12.7k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  12.7k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 12.7k]
  |  |  ------------------
  ------------------
   98|  12.7k|         m_buffer.fill_up_with_zeros();
   99|       |
  100|       |         // Replace a bunch of the right-most zero-padding with the counter bytes.
  101|  12.7k|         const uint64_t bit_count = m_count * 8;
  102|  12.7k|         auto last_bytes = m_buffer.directly_modify_last(sizeof(bit_count));
  103|  12.7k|         if constexpr(MD::byte_endianness == MD_Endian::Big) {
  104|  12.7k|            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|  12.7k|         MD::compress_n(m_digest, m_buffer.consume(), 1);
  111|  12.7k|      }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_224EE11copy_outputENSt3__14spanIhLm18446744073709551615EEE:
  113|  12.7k|      void copy_output(std::span<uint8_t> output) {
  114|  12.7k|         BOTAN_ASSERT_NOMSG(output.size() >= MD::output_bytes);
  ------------------
  |  |   77|  12.7k|   do {                                                                     \
  |  |   78|  12.7k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  12.7k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 12.7k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  12.7k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 12.7k]
  |  |  ------------------
  ------------------
  115|       |
  116|  12.7k|         if constexpr(MD::byte_endianness == MD_Endian::Big) {
  117|  12.7k|            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|  12.7k|      }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_256EE6updateENSt3__14spanIKhLm18446744073709551615EEE:
   44|  34.9M|      void update(std::span<const uint8_t> input) {
   45|  34.9M|         BufferSlicer in(input);
   46|       |
   47|  77.6M|         while(!in.empty()) {
  ------------------
  |  Branch (47:16): [True: 42.7M, False: 34.9M]
  ------------------
   48|  42.7M|            if(const auto one_block = m_buffer.handle_unaligned_data(in)) {
  ------------------
  |  Branch (48:27): [True: 8.24M, False: 34.4M]
  ------------------
   49|  8.24M|               MD::compress_n(m_digest, one_block.value(), 1);
   50|  8.24M|            }
   51|       |
   52|  42.7M|            if(m_buffer.in_alignment()) {
  ------------------
  |  Branch (52:16): [True: 8.75M, False: 33.9M]
  ------------------
   53|  8.75M|               const auto [aligned_data, full_blocks] = m_buffer.aligned_data_to_process(in);
   54|  8.75M|               if(full_blocks > 0) {
  ------------------
  |  Branch (54:19): [True: 1.02M, False: 7.73M]
  ------------------
   55|  1.02M|                  MD::compress_n(m_digest, aligned_data, full_blocks);
   56|  1.02M|               }
   57|  8.75M|            }
   58|  42.7M|         }
   59|       |
   60|  34.9M|         m_count += input.size();
   61|  34.9M|      }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_256EE5finalENSt3__14spanIhLm18446744073709551615EEE:
   63|  28.2k|      void final(std::span<uint8_t> output) {
   64|  28.2k|         append_padding_bit();
   65|  28.2k|         append_counter_and_finalize();
   66|  28.2k|         copy_output(output);
   67|  28.2k|         clear();
   68|  28.2k|      }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_256EE18append_padding_bitEv:
   77|  28.2k|      void append_padding_bit() {
   78|  28.2k|         BOTAN_ASSERT_NOMSG(!m_buffer.ready_to_consume());
  ------------------
  |  |   77|  28.2k|   do {                                                                     \
  |  |   78|  28.2k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  28.2k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 28.2k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  28.2k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 28.2k]
  |  |  ------------------
  ------------------
   79|  28.2k|         if constexpr(MD::bit_endianness == MD_Endian::Big) {
   80|  28.2k|            const uint8_t final_byte = 0x80;
   81|  28.2k|            m_buffer.append({&final_byte, 1});
   82|       |         } else {
   83|       |            const uint8_t final_byte = 0x01;
   84|       |            m_buffer.append({&final_byte, 1});
   85|       |         }
   86|  28.2k|      }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_256EE27append_counter_and_finalizeEv:
   88|  28.2k|      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|  28.2k|         if(m_buffer.elements_until_alignment() < MD::ctr_bytes) {
  ------------------
  |  Branch (91:13): [True: 355, False: 27.8k]
  ------------------
   92|    355|            m_buffer.fill_up_with_zeros();
   93|    355|            MD::compress_n(m_digest, m_buffer.consume(), 1);
   94|    355|         }
   95|       |
   96|       |         // Make sure that any remaining bytes in the very last block are zero.
   97|  28.2k|         BOTAN_ASSERT_NOMSG(m_buffer.elements_until_alignment() >= MD::ctr_bytes);
  ------------------
  |  |   77|  28.2k|   do {                                                                     \
  |  |   78|  28.2k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  28.2k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 28.2k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  28.2k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 28.2k]
  |  |  ------------------
  ------------------
   98|  28.2k|         m_buffer.fill_up_with_zeros();
   99|       |
  100|       |         // Replace a bunch of the right-most zero-padding with the counter bytes.
  101|  28.2k|         const uint64_t bit_count = m_count * 8;
  102|  28.2k|         auto last_bytes = m_buffer.directly_modify_last(sizeof(bit_count));
  103|  28.2k|         if constexpr(MD::byte_endianness == MD_Endian::Big) {
  104|  28.2k|            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|  28.2k|         MD::compress_n(m_digest, m_buffer.consume(), 1);
  111|  28.2k|      }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_256EE11copy_outputENSt3__14spanIhLm18446744073709551615EEE:
  113|  28.2k|      void copy_output(std::span<uint8_t> output) {
  114|  28.2k|         BOTAN_ASSERT_NOMSG(output.size() >= MD::output_bytes);
  ------------------
  |  |   77|  28.2k|   do {                                                                     \
  |  |   78|  28.2k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  28.2k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 28.2k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  28.2k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 28.2k]
  |  |  ------------------
  ------------------
  115|       |
  116|  28.2k|         if constexpr(MD::byte_endianness == MD_Endian::Big) {
  117|  28.2k|            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|  28.2k|      }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_384EE6updateENSt3__14spanIKhLm18446744073709551615EEE:
   44|   574k|      void update(std::span<const uint8_t> input) {
   45|   574k|         BufferSlicer in(input);
   46|       |
   47|  1.13M|         while(!in.empty()) {
  ------------------
  |  Branch (47:16): [True: 563k, False: 574k]
  ------------------
   48|   563k|            if(const auto one_block = m_buffer.handle_unaligned_data(in)) {
  ------------------
  |  Branch (48:27): [True: 13.3k, False: 549k]
  ------------------
   49|  13.3k|               MD::compress_n(m_digest, one_block.value(), 1);
   50|  13.3k|            }
   51|       |
   52|   563k|            if(m_buffer.in_alignment()) {
  ------------------
  |  Branch (52:16): [True: 13.8k, False: 549k]
  ------------------
   53|  13.8k|               const auto [aligned_data, full_blocks] = m_buffer.aligned_data_to_process(in);
   54|  13.8k|               if(full_blocks > 0) {
  ------------------
  |  Branch (54:19): [True: 2.29k, False: 11.5k]
  ------------------
   55|  2.29k|                  MD::compress_n(m_digest, aligned_data, full_blocks);
   56|  2.29k|               }
   57|  13.8k|            }
   58|   563k|         }
   59|       |
   60|   574k|         m_count += input.size();
   61|   574k|      }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_512EE6updateENSt3__14spanIKhLm18446744073709551615EEE:
   44|  62.3M|      void update(std::span<const uint8_t> input) {
   45|  62.3M|         BufferSlicer in(input);
   46|       |
   47|   127M|         while(!in.empty()) {
  ------------------
  |  Branch (47:16): [True: 64.7M, False: 62.3M]
  ------------------
   48|  64.7M|            if(const auto one_block = m_buffer.handle_unaligned_data(in)) {
  ------------------
  |  Branch (48:27): [True: 3.98M, False: 60.7M]
  ------------------
   49|  3.98M|               MD::compress_n(m_digest, one_block.value(), 1);
   50|  3.98M|            }
   51|       |
   52|  64.7M|            if(m_buffer.in_alignment()) {
  ------------------
  |  Branch (52:16): [True: 4.27M, False: 60.4M]
  ------------------
   53|  4.27M|               const auto [aligned_data, full_blocks] = m_buffer.aligned_data_to_process(in);
   54|  4.27M|               if(full_blocks > 0) {
  ------------------
  |  Branch (54:19): [True: 289k, False: 3.98M]
  ------------------
   55|   289k|                  MD::compress_n(m_digest, aligned_data, full_blocks);
   56|   289k|               }
   57|  4.27M|            }
   58|  64.7M|         }
   59|       |
   60|  62.3M|         m_count += input.size();
   61|  62.3M|      }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_384EE5finalENSt3__14spanIhLm18446744073709551615EEE:
   63|  21.9k|      void final(std::span<uint8_t> output) {
   64|  21.9k|         append_padding_bit();
   65|  21.9k|         append_counter_and_finalize();
   66|  21.9k|         copy_output(output);
   67|  21.9k|         clear();
   68|  21.9k|      }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_384EE18append_padding_bitEv:
   77|  21.9k|      void append_padding_bit() {
   78|  21.9k|         BOTAN_ASSERT_NOMSG(!m_buffer.ready_to_consume());
  ------------------
  |  |   77|  21.9k|   do {                                                                     \
  |  |   78|  21.9k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  21.9k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 21.9k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  21.9k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 21.9k]
  |  |  ------------------
  ------------------
   79|  21.9k|         if constexpr(MD::bit_endianness == MD_Endian::Big) {
   80|  21.9k|            const uint8_t final_byte = 0x80;
   81|  21.9k|            m_buffer.append({&final_byte, 1});
   82|       |         } else {
   83|       |            const uint8_t final_byte = 0x01;
   84|       |            m_buffer.append({&final_byte, 1});
   85|       |         }
   86|  21.9k|      }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_384EE27append_counter_and_finalizeEv:
   88|  21.9k|      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|  21.9k|         if(m_buffer.elements_until_alignment() < MD::ctr_bytes) {
  ------------------
  |  Branch (91:13): [True: 3, False: 21.9k]
  ------------------
   92|      3|            m_buffer.fill_up_with_zeros();
   93|      3|            MD::compress_n(m_digest, m_buffer.consume(), 1);
   94|      3|         }
   95|       |
   96|       |         // Make sure that any remaining bytes in the very last block are zero.
   97|  21.9k|         BOTAN_ASSERT_NOMSG(m_buffer.elements_until_alignment() >= MD::ctr_bytes);
  ------------------
  |  |   77|  21.9k|   do {                                                                     \
  |  |   78|  21.9k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  21.9k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 21.9k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  21.9k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 21.9k]
  |  |  ------------------
  ------------------
   98|  21.9k|         m_buffer.fill_up_with_zeros();
   99|       |
  100|       |         // Replace a bunch of the right-most zero-padding with the counter bytes.
  101|  21.9k|         const uint64_t bit_count = m_count * 8;
  102|  21.9k|         auto last_bytes = m_buffer.directly_modify_last(sizeof(bit_count));
  103|  21.9k|         if constexpr(MD::byte_endianness == MD_Endian::Big) {
  104|  21.9k|            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|  21.9k|         MD::compress_n(m_digest, m_buffer.consume(), 1);
  111|  21.9k|      }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_384EE11copy_outputENSt3__14spanIhLm18446744073709551615EEE:
  113|  21.9k|      void copy_output(std::span<uint8_t> output) {
  114|  21.9k|         BOTAN_ASSERT_NOMSG(output.size() >= MD::output_bytes);
  ------------------
  |  |   77|  21.9k|   do {                                                                     \
  |  |   78|  21.9k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  21.9k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 21.9k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  21.9k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 21.9k]
  |  |  ------------------
  ------------------
  115|       |
  116|  21.9k|         if constexpr(MD::byte_endianness == MD_Endian::Big) {
  117|  21.9k|            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|  21.9k|      }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_512EE5finalENSt3__14spanIhLm18446744073709551615EEE:
   63|   228k|      void final(std::span<uint8_t> output) {
   64|   228k|         append_padding_bit();
   65|   228k|         append_counter_and_finalize();
   66|   228k|         copy_output(output);
   67|   228k|         clear();
   68|   228k|      }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_512EE18append_padding_bitEv:
   77|   228k|      void append_padding_bit() {
   78|   228k|         BOTAN_ASSERT_NOMSG(!m_buffer.ready_to_consume());
  ------------------
  |  |   77|   228k|   do {                                                                     \
  |  |   78|   228k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|   228k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 228k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|   228k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 228k]
  |  |  ------------------
  ------------------
   79|   228k|         if constexpr(MD::bit_endianness == MD_Endian::Big) {
   80|   228k|            const uint8_t final_byte = 0x80;
   81|   228k|            m_buffer.append({&final_byte, 1});
   82|       |         } else {
   83|       |            const uint8_t final_byte = 0x01;
   84|       |            m_buffer.append({&final_byte, 1});
   85|       |         }
   86|   228k|      }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_512EE27append_counter_and_finalizeEv:
   88|   228k|      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|   228k|         if(m_buffer.elements_until_alignment() < MD::ctr_bytes) {
  ------------------
  |  Branch (91:13): [True: 20, False: 228k]
  ------------------
   92|     20|            m_buffer.fill_up_with_zeros();
   93|     20|            MD::compress_n(m_digest, m_buffer.consume(), 1);
   94|     20|         }
   95|       |
   96|       |         // Make sure that any remaining bytes in the very last block are zero.
   97|   228k|         BOTAN_ASSERT_NOMSG(m_buffer.elements_until_alignment() >= MD::ctr_bytes);
  ------------------
  |  |   77|   228k|   do {                                                                     \
  |  |   78|   228k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|   228k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 228k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|   228k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 228k]
  |  |  ------------------
  ------------------
   98|   228k|         m_buffer.fill_up_with_zeros();
   99|       |
  100|       |         // Replace a bunch of the right-most zero-padding with the counter bytes.
  101|   228k|         const uint64_t bit_count = m_count * 8;
  102|   228k|         auto last_bytes = m_buffer.directly_modify_last(sizeof(bit_count));
  103|   228k|         if constexpr(MD::byte_endianness == MD_Endian::Big) {
  104|   228k|            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|   228k|         MD::compress_n(m_digest, m_buffer.consume(), 1);
  111|   228k|      }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_512EE11copy_outputENSt3__14spanIhLm18446744073709551615EEE:
  113|   228k|      void copy_output(std::span<uint8_t> output) {
  114|   228k|         BOTAN_ASSERT_NOMSG(output.size() >= MD::output_bytes);
  ------------------
  |  |   77|   228k|   do {                                                                     \
  |  |   78|   228k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|   228k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 228k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|   228k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 228k]
  |  |  ------------------
  ------------------
  115|       |
  116|   228k|         if constexpr(MD::byte_endianness == MD_Endian::Big) {
  117|   228k|            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|   228k|      }
_ZN5Botan18MerkleDamgard_HashINS_3SM3EE6updateENSt3__14spanIKhLm18446744073709551615EEE:
   44|  9.48M|      void update(std::span<const uint8_t> input) {
   45|  9.48M|         BufferSlicer in(input);
   46|       |
   47|  21.6M|         while(!in.empty()) {
  ------------------
  |  Branch (47:16): [True: 12.1M, False: 9.48M]
  ------------------
   48|  12.1M|            if(const auto one_block = m_buffer.handle_unaligned_data(in)) {
  ------------------
  |  Branch (48:27): [True: 2.81M, False: 9.35M]
  ------------------
   49|  2.81M|               MD::compress_n(m_digest, one_block.value(), 1);
   50|  2.81M|            }
   51|       |
   52|  12.1M|            if(m_buffer.in_alignment()) {
  ------------------
  |  Branch (52:16): [True: 3.03M, False: 9.13M]
  ------------------
   53|  3.03M|               const auto [aligned_data, full_blocks] = m_buffer.aligned_data_to_process(in);
   54|  3.03M|               if(full_blocks > 0) {
  ------------------
  |  Branch (54:19): [True: 442k, False: 2.58M]
  ------------------
   55|   442k|                  MD::compress_n(m_digest, aligned_data, full_blocks);
   56|   442k|               }
   57|  3.03M|            }
   58|  12.1M|         }
   59|       |
   60|  9.48M|         m_count += input.size();
   61|  9.48M|      }
_ZN5Botan18MerkleDamgard_HashINS_3SM3EE5finalENSt3__14spanIhLm18446744073709551615EEE:
   63|  12.3k|      void final(std::span<uint8_t> output) {
   64|  12.3k|         append_padding_bit();
   65|  12.3k|         append_counter_and_finalize();
   66|  12.3k|         copy_output(output);
   67|  12.3k|         clear();
   68|  12.3k|      }
_ZN5Botan18MerkleDamgard_HashINS_3SM3EE18append_padding_bitEv:
   77|  12.3k|      void append_padding_bit() {
   78|  12.3k|         BOTAN_ASSERT_NOMSG(!m_buffer.ready_to_consume());
  ------------------
  |  |   77|  12.3k|   do {                                                                     \
  |  |   78|  12.3k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  12.3k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 12.3k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  12.3k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 12.3k]
  |  |  ------------------
  ------------------
   79|  12.3k|         if constexpr(MD::bit_endianness == MD_Endian::Big) {
   80|  12.3k|            const uint8_t final_byte = 0x80;
   81|  12.3k|            m_buffer.append({&final_byte, 1});
   82|       |         } else {
   83|       |            const uint8_t final_byte = 0x01;
   84|       |            m_buffer.append({&final_byte, 1});
   85|       |         }
   86|  12.3k|      }
_ZN5Botan18MerkleDamgard_HashINS_3SM3EE27append_counter_and_finalizeEv:
   88|  12.3k|      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|  12.3k|         if(m_buffer.elements_until_alignment() < MD::ctr_bytes) {
  ------------------
  |  Branch (91:13): [True: 4.64k, False: 7.72k]
  ------------------
   92|  4.64k|            m_buffer.fill_up_with_zeros();
   93|  4.64k|            MD::compress_n(m_digest, m_buffer.consume(), 1);
   94|  4.64k|         }
   95|       |
   96|       |         // Make sure that any remaining bytes in the very last block are zero.
   97|  12.3k|         BOTAN_ASSERT_NOMSG(m_buffer.elements_until_alignment() >= MD::ctr_bytes);
  ------------------
  |  |   77|  12.3k|   do {                                                                     \
  |  |   78|  12.3k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  12.3k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 12.3k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  12.3k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 12.3k]
  |  |  ------------------
  ------------------
   98|  12.3k|         m_buffer.fill_up_with_zeros();
   99|       |
  100|       |         // Replace a bunch of the right-most zero-padding with the counter bytes.
  101|  12.3k|         const uint64_t bit_count = m_count * 8;
  102|  12.3k|         auto last_bytes = m_buffer.directly_modify_last(sizeof(bit_count));
  103|  12.3k|         if constexpr(MD::byte_endianness == MD_Endian::Big) {
  104|  12.3k|            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|  12.3k|         MD::compress_n(m_digest, m_buffer.consume(), 1);
  111|  12.3k|      }
_ZN5Botan18MerkleDamgard_HashINS_3SM3EE11copy_outputENSt3__14spanIhLm18446744073709551615EEE:
  113|  12.3k|      void copy_output(std::span<uint8_t> output) {
  114|  12.3k|         BOTAN_ASSERT_NOMSG(output.size() >= MD::output_bytes);
  ------------------
  |  |   77|  12.3k|   do {                                                                     \
  |  |   78|  12.3k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  12.3k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 12.3k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  12.3k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 12.3k]
  |  |  ------------------
  ------------------
  115|       |
  116|  12.3k|         if constexpr(MD::byte_endianness == MD_Endian::Big) {
  117|  12.3k|            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|  12.3k|      }

_ZN5Botan16as_span_of_bytesEPKcm:
   59|  60.9k|inline std::span<const uint8_t> as_span_of_bytes(const char* s, size_t len) {
   60|  60.9k|   const uint8_t* b = reinterpret_cast<const uint8_t*>(s);
   61|  60.9k|   return std::span{b, len};
   62|  60.9k|}
_ZN5Botan16as_span_of_bytesENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
   68|  4.39k|inline std::span<const uint8_t> as_span_of_bytes(std::string_view s) {
   69|  4.39k|   return as_span_of_bytes(s.data(), s.size());
   70|  4.39k|}
_ZN5Botan17any_null_pointersIJPKcPmEEEbDpT_:
   54|   252k|bool any_null_pointers(Ptrs... ptr) {
   55|   252k|   static_assert((... && std::is_pointer_v<Ptrs>), "All arguments must be pointers");
   56|   505k|   return (... || (ptr == nullptr));
  ------------------
  |  Branch (56:19): [True: 0, False: 252k]
  |  Branch (56:19): [True: 0, False: 252k]
  ------------------
   57|   252k|}
_ZN5Botan17any_null_pointersIJPKhPhEEEbDpT_:
   54|   763k|bool any_null_pointers(Ptrs... ptr) {
   55|   763k|   static_assert((... && std::is_pointer_v<Ptrs>), "All arguments must be pointers");
   56|  1.52M|   return (... || (ptr == nullptr));
  ------------------
  |  Branch (56:19): [True: 0, False: 763k]
  |  Branch (56:19): [True: 0, False: 763k]
  ------------------
   57|   763k|}
_ZN5Botan17any_null_pointersIJPmS1_EEEbDpT_:
   54|  1.26k|bool any_null_pointers(Ptrs... ptr) {
   55|  1.26k|   static_assert((... && std::is_pointer_v<Ptrs>), "All arguments must be pointers");
   56|  2.53k|   return (... || (ptr == nullptr));
  ------------------
  |  Branch (56:19): [True: 0, False: 1.26k]
  |  Branch (56:19): [True: 0, False: 1.26k]
  ------------------
   57|  1.26k|}
_ZN5Botan17any_null_pointersIJPP19botan_cipher_structPKcEEEbDpT_:
   54|  3.29k|bool any_null_pointers(Ptrs... ptr) {
   55|  3.29k|   static_assert((... && std::is_pointer_v<Ptrs>), "All arguments must be pointers");
   56|  6.58k|   return (... || (ptr == nullptr));
  ------------------
  |  Branch (56:19): [True: 0, False: 3.29k]
  |  Branch (56:19): [True: 0, False: 3.29k]
  ------------------
   57|  3.29k|}
_ZN5Botan17any_null_pointersIJPKcS2_EEEbDpT_:
   54|  65.6k|bool any_null_pointers(Ptrs... ptr) {
   55|  65.6k|   static_assert((... && std::is_pointer_v<Ptrs>), "All arguments must be pointers");
   56|   131k|   return (... || (ptr == nullptr));
  ------------------
  |  Branch (56:19): [True: 0, False: 65.6k]
  |  Branch (56:19): [True: 0, False: 65.6k]
  ------------------
   57|  65.6k|}
_ZN5Botan17any_null_pointersIJPP25botan_pk_op_verify_structPKcEEEbDpT_:
   54|  23.0k|bool any_null_pointers(Ptrs... ptr) {
   55|  23.0k|   static_assert((... && std::is_pointer_v<Ptrs>), "All arguments must be pointers");
   56|  46.0k|   return (... || (ptr == nullptr));
  ------------------
  |  Branch (56:19): [True: 0, False: 23.0k]
  |  Branch (56:19): [True: 0, False: 23.0k]
  ------------------
   57|  23.0k|}
_ZN5Botan17any_null_pointersIJPP19botan_pubkey_structPKhEEEbDpT_:
   54|  4.09k|bool any_null_pointers(Ptrs... ptr) {
   55|  4.09k|   static_assert((... && std::is_pointer_v<Ptrs>), "All arguments must be pointers");
   56|  8.18k|   return (... || (ptr == nullptr));
  ------------------
  |  Branch (56:19): [True: 0, False: 4.09k]
  |  Branch (56:19): [True: 0, False: 4.09k]
  ------------------
   57|  4.09k|}
_ZN5Botan17any_null_pointersIJPP19botan_pubkey_structPKcEEEbDpT_:
   54|  18.4k|bool any_null_pointers(Ptrs... ptr) {
   55|  18.4k|   static_assert((... && std::is_pointer_v<Ptrs>), "All arguments must be pointers");
   56|  36.9k|   return (... || (ptr == nullptr));
  ------------------
  |  Branch (56:19): [True: 0, False: 18.4k]
  |  Branch (56:19): [True: 0, False: 18.4k]
  ------------------
   57|  18.4k|}
_ZN5Botan17any_null_pointersIJPP19botan_pubkey_structPKhPKcEEEbDpT_:
   54|     64|bool any_null_pointers(Ptrs... ptr) {
   55|     64|   static_assert((... && std::is_pointer_v<Ptrs>), "All arguments must be pointers");
   56|    256|   return (... || (ptr == nullptr));
  ------------------
  |  Branch (56:19): [True: 0, False: 64]
  |  Branch (56:19): [True: 0, False: 64]
  |  Branch (56:19): [True: 0, False: 64]
  ------------------
   57|     64|}
_ZN5Botan17any_null_pointersIJPhPmPKcS4_P19botan_pubkey_structEEEbDpT_:
   54|  4.39k|bool any_null_pointers(Ptrs... ptr) {
   55|  4.39k|   static_assert((... && std::is_pointer_v<Ptrs>), "All arguments must be pointers");
   56|  35.1k|   return (... || (ptr == nullptr));
  ------------------
  |  Branch (56:19): [True: 0, False: 4.39k]
  |  Branch (56:19): [True: 0, False: 4.39k]
  |  Branch (56:19): [True: 0, False: 4.39k]
  |  Branch (56:19): [True: 0, False: 4.39k]
  |  Branch (56:19): [True: 0, False: 4.39k]
  ------------------
   57|  4.39k|}
_ZN5Botan14zeroize_bufferITkNSt3__117unsigned_integralEhEEvPT_m:
   37|  2.06M|inline void zeroize_buffer(T buf[], size_t n) {
   38|  2.06M|   if(n > 0) {
  ------------------
  |  Branch (38:7): [True: 2.06M, False: 0]
  ------------------
   39|  2.06M|      std::memset(buf, 0, sizeof(T) * n);
   40|  2.06M|   }
   41|  2.06M|}
_ZN5Botan14zeroize_bufferITkNSt3__117unsigned_integralEmEEvPT_m:
   37|   878k|inline void zeroize_buffer(T buf[], size_t n) {
   38|   878k|   if(n > 0) {
  ------------------
  |  Branch (38:7): [True: 555k, False: 322k]
  ------------------
   39|   555k|      std::memset(buf, 0, sizeof(T) * n);
   40|   555k|   }
   41|   878k|}
_ZN5Botan21unchecked_copy_memoryITkNSt3__117unsigned_integralEmEEvPT_PKS2_m:
   44|   422k|inline void unchecked_copy_memory(T* out, const T* in, size_t n) {
   45|   422k|   if(in != nullptr && out != nullptr && n > 0) {
  ------------------
  |  Branch (45:7): [True: 422k, False: 0]
  |  Branch (45:24): [True: 422k, False: 0]
  |  Branch (45:42): [True: 422k, False: 0]
  ------------------
   46|   422k|      std::memmove(out, in, sizeof(T) * n);
   47|   422k|   }
   48|   422k|}

_ZNK5Botan17Montgomery_Params1pEv:
   41|   191k|      const BigInt& p() const { return m_data->p(); }
_ZNK5Botan17Montgomery_Params2R1Ev:
   43|  21.1k|      const BigInt& R1() const { return m_data->r1(); }
_ZNK5Botan17Montgomery_Params2R2Ev:
   45|  40.0k|      const BigInt& R2() const { return m_data->r2(); }
_ZNK5Botan17Montgomery_Params6p_dashEv:
   49|   183k|      word p_dash() const { return m_data->p_dash(); }
_ZNK5Botan17Montgomery_Params7p_wordsEv:
   51|   174k|      size_t p_words() const { return m_data->p_size(); }
_ZNK5Botan17Montgomery_Params4Data1pEv:
   76|   191k|            const BigInt& p() const { return m_p; }
_ZNK5Botan17Montgomery_Params4Data2r1Ev:
   78|  21.1k|            const BigInt& r1() const { return m_r1; }
_ZNK5Botan17Montgomery_Params4Data2r2Ev:
   80|  40.0k|            const BigInt& r2() const { return m_r2; }
_ZNK5Botan17Montgomery_Params4Data6p_dashEv:
   84|   183k|            word p_dash() const { return m_p_dash; }
_ZNK5Botan17Montgomery_Params4Data6p_sizeEv:
   86|   174k|            size_t p_size() const { return m_p_words; }
_ZNK5Botan14Montgomery_Int18_const_time_poisonEv:
  159|  8.48k|      void _const_time_poison() const { CT::poison(m_v); }
_ZNK5Botan14Montgomery_Int20_const_time_unpoisonEv:
  161|  1.69k|      void _const_time_unpoison() const { CT::unpoison(m_v); }
_ZNK5Botan14Montgomery_Int7_paramsEv:
  163|  2.22k|      const Montgomery_Params& _params() const { return m_params; }

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

_ZN5Botan17bigint_monty_redcEPmPKmS2_mmS0_m:
  924|   183k|   word r[], const word z[], const word p[], size_t p_size, word p_dash, word ws[], size_t ws_size) {
  925|   183k|   const size_t z_size = 2 * p_size;
  926|       |
  927|   183k|   BOTAN_ARG_CHECK(ws_size >= p_size, "Montgomery reduction workspace too small");
  ------------------
  |  |   35|   183k|   do {                                                          \
  |  |   36|   183k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|   183k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 183k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|   183k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 183k]
  |  |  ------------------
  ------------------
  928|       |
  929|   183k|   if(p_size == 4) {
  ------------------
  |  Branch (929:7): [True: 36.8k, False: 146k]
  ------------------
  930|  36.8k|      bigint_monty_redc_4(r, z, p, p_dash, ws);
  931|   146k|   } else if(p_size == 6) {
  ------------------
  |  Branch (931:14): [True: 0, False: 146k]
  ------------------
  932|      0|      bigint_monty_redc_6(r, z, p, p_dash, ws);
  933|   146k|   } else if(p_size == 8) {
  ------------------
  |  Branch (933:14): [True: 0, False: 146k]
  ------------------
  934|      0|      bigint_monty_redc_8(r, z, p, p_dash, ws);
  935|   146k|   } else if(p_size == 12) {
  ------------------
  |  Branch (935:14): [True: 0, False: 146k]
  ------------------
  936|      0|      bigint_monty_redc_12(r, z, p, p_dash, ws);
  937|   146k|   } else if(p_size == 16) {
  ------------------
  |  Branch (937:14): [True: 143k, False: 3.61k]
  ------------------
  938|   143k|      bigint_monty_redc_16(r, z, p, p_dash, ws);
  939|   143k|   } else if(p_size == 24) {
  ------------------
  |  Branch (939:14): [True: 0, False: 3.61k]
  ------------------
  940|      0|      bigint_monty_redc_24(r, z, p, p_dash, ws);
  941|  3.61k|   } else if(p_size == 32) {
  ------------------
  |  Branch (941:14): [True: 171, False: 3.44k]
  ------------------
  942|    171|      bigint_monty_redc_32(r, z, p, p_dash, ws);
  943|  3.44k|   } else {
  944|  3.44k|      bigint_monty_redc_generic(r, z, z_size, p, p_size, p_dash, ws);
  945|  3.44k|   }
  946|   183k|}
_ZN5Botan25bigint_monty_redc_inplaceEPmPKmmmS0_m:
  948|   183k|inline void bigint_monty_redc_inplace(word z[], const word p[], size_t p_size, word p_dash, word ws[], size_t ws_size) {
  949|   183k|   bigint_monty_redc(z, z, p, p_size, p_dash, ws, ws_size);
  950|   183k|   zeroize_buffer(z + p_size, p_size);
  951|   183k|}
_ZN5Botan11bigint_add2ITkNS_8WordTypeEmEET_PS1_mPKS1_m:
   94|  12.9M|inline constexpr auto bigint_add2(W x[], size_t x_size, const W y[], size_t y_size) -> W {
   95|  12.9M|   W carry = 0;
   96|       |
   97|  12.9M|   BOTAN_ASSERT(x_size >= y_size, "Expected sizes");
  ------------------
  |  |   64|  12.9M|   do {                                                                                 \
  |  |   65|  12.9M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|  12.9M|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 12.9M]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|  12.9M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 12.9M]
  |  |  ------------------
  ------------------
   98|       |
   99|  12.9M|   const size_t blocks = y_size - (y_size % 8);
  100|       |
  101|  13.0M|   for(size_t i = 0; i != blocks; i += 8) {
  ------------------
  |  Branch (101:22): [True: 51.6k, False: 12.9M]
  ------------------
  102|  51.6k|      carry = word8_add2(x + i, y + i, carry);
  103|  51.6k|   }
  104|       |
  105|  46.4M|   for(size_t i = blocks; i != y_size; ++i) {
  ------------------
  |  Branch (105:27): [True: 33.4M, False: 12.9M]
  ------------------
  106|  33.4M|      x[i] = word_add(x[i], y[i], &carry);
  107|  33.4M|   }
  108|       |
  109|  31.7M|   for(size_t i = y_size; i != x_size; ++i) {
  ------------------
  |  Branch (109:27): [True: 18.7M, False: 12.9M]
  ------------------
  110|  18.7M|      x[i] = word_add(x[i], static_cast<W>(0), &carry);
  111|  18.7M|   }
  112|       |
  113|  12.9M|   return carry;
  114|  12.9M|}
_ZN5Botan10bigint_cmpITkNS_8WordTypeEmEEiPKT_mS3_m:
  439|   194k|inline constexpr int32_t bigint_cmp(const W x[], size_t x_size, const W y[], size_t y_size) {
  440|   194k|   static_assert(sizeof(W) >= sizeof(uint32_t), "Size assumption");
  441|       |
  442|   194k|   const W LT = static_cast<W>(-1);
  443|   194k|   const W EQ = 0;
  444|   194k|   const W GT = 1;
  445|       |
  446|   194k|   const size_t common_elems = std::min(x_size, y_size);
  447|       |
  448|   194k|   W result = EQ;  // until found otherwise
  449|       |
  450|  3.77M|   for(size_t i = 0; i != common_elems; i++) {
  ------------------
  |  Branch (450:22): [True: 3.58M, False: 194k]
  ------------------
  451|  3.58M|      const auto is_eq = CT::Mask<W>::is_equal(x[i], y[i]);
  452|  3.58M|      const auto is_lt = CT::Mask<W>::is_lt(x[i], y[i]);
  453|       |
  454|  3.58M|      result = is_eq.select(result, is_lt.select(LT, GT));
  455|  3.58M|   }
  456|       |
  457|   194k|   if(x_size < y_size) {
  ------------------
  |  Branch (457:7): [True: 5.16k, False: 188k]
  ------------------
  458|  5.16k|      W mask = 0;
  459|  49.0k|      for(size_t i = x_size; i != y_size; i++) {
  ------------------
  |  Branch (459:30): [True: 43.8k, False: 5.16k]
  ------------------
  460|  43.8k|         mask |= y[i];
  461|  43.8k|      }
  462|       |
  463|       |      // If any bits were set in high part of y, then x < y
  464|  5.16k|      result = CT::Mask<W>::is_zero(mask).select(result, LT);
  465|   188k|   } else if(y_size < x_size) {
  ------------------
  |  Branch (465:14): [True: 2.15k, False: 186k]
  ------------------
  466|  2.15k|      W mask = 0;
  467|  4.31k|      for(size_t i = y_size; i != x_size; i++) {
  ------------------
  |  Branch (467:30): [True: 2.16k, False: 2.15k]
  ------------------
  468|  2.16k|         mask |= x[i];
  469|  2.16k|      }
  470|       |
  471|       |      // If any bits were set in high part of x, then x > y
  472|  2.15k|      result = CT::Mask<W>::is_zero(mask).select(result, GT);
  473|  2.15k|   }
  474|       |
  475|   194k|   CT::unpoison(result);
  476|   194k|   BOTAN_DEBUG_ASSERT(result == LT || result == GT || result == EQ);
  ------------------
  |  |  130|   194k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|   194k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 194k]
  |  |  ------------------
  ------------------
  477|   194k|   return static_cast<int32_t>(result);
  478|   194k|}
_ZN5Botan11bigint_sub2ITkNS_8WordTypeEmEET_PS1_mPKS1_m:
  148|   113k|inline constexpr auto bigint_sub2(W x[], size_t x_size, const W y[], size_t y_size) -> W {
  149|   113k|   W borrow = 0;
  150|       |
  151|   113k|   BOTAN_ASSERT(x_size >= y_size, "Expected sizes");
  ------------------
  |  |   64|   113k|   do {                                                                                 \
  |  |   65|   113k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|   113k|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 113k]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|   113k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 113k]
  |  |  ------------------
  ------------------
  152|       |
  153|   113k|   const size_t blocks = y_size - (y_size % 8);
  154|       |
  155|   467k|   for(size_t i = 0; i != blocks; i += 8) {
  ------------------
  |  Branch (155:22): [True: 353k, False: 113k]
  ------------------
  156|   353k|      borrow = word8_sub2(x + i, y + i, borrow);
  157|   353k|   }
  158|       |
  159|   458k|   for(size_t i = blocks; i != y_size; ++i) {
  ------------------
  |  Branch (159:27): [True: 344k, False: 113k]
  ------------------
  160|   344k|      x[i] = word_sub(x[i], y[i], &borrow);
  161|   344k|   }
  162|       |
  163|   270k|   for(size_t i = y_size; i != x_size; ++i) {
  ------------------
  |  Branch (163:27): [True: 157k, False: 113k]
  ------------------
  164|   157k|      x[i] = word_sub(x[i], static_cast<W>(0), &borrow);
  165|   157k|   }
  166|       |
  167|   113k|   return borrow;
  168|   113k|}
_ZN5Botan15bigint_sub2_revITkNS_8WordTypeEmEEvPT_PKS1_m:
  174|  1.65k|inline constexpr void bigint_sub2_rev(W x[], const W y[], size_t y_size) {
  175|  1.65k|   W borrow = 0;
  176|       |
  177|  48.7k|   for(size_t i = 0; i != y_size; ++i) {
  ------------------
  |  Branch (177:22): [True: 47.1k, False: 1.65k]
  ------------------
  178|  47.1k|      x[i] = word_sub(y[i], x[i], &borrow);
  179|  47.1k|   }
  180|       |
  181|  1.65k|   BOTAN_ASSERT(borrow == 0, "y must be greater than x");
  ------------------
  |  |   64|  1.65k|   do {                                                                                 \
  |  |   65|  1.65k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|  1.65k|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 1.65k]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|  1.65k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 1.65k]
  |  |  ------------------
  ------------------
  182|  1.65k|}
_ZN5Botan11bigint_sub3ITkNS_8WordTypeEmEET_PS1_PKS1_mS4_m:
  192|  6.35M|inline constexpr auto bigint_sub3(W z[], const W x[], size_t x_size, const W y[], size_t y_size) -> W {
  193|  6.35M|   W borrow = 0;
  194|       |
  195|  6.35M|   BOTAN_ASSERT(x_size >= y_size, "Expected sizes");
  ------------------
  |  |   64|  6.35M|   do {                                                                                 \
  |  |   65|  6.35M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|  6.35M|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 6.35M]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|  6.35M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 6.35M]
  |  |  ------------------
  ------------------
  196|       |
  197|  6.35M|   const size_t blocks = y_size - (y_size % 8);
  198|       |
  199|  6.42M|   for(size_t i = 0; i != blocks; i += 8) {
  ------------------
  |  Branch (199:22): [True: 75.8k, False: 6.35M]
  ------------------
  200|  75.8k|      borrow = word8_sub3(z + i, x + i, y + i, borrow);
  201|  75.8k|   }
  202|       |
  203|  31.6M|   for(size_t i = blocks; i != y_size; ++i) {
  ------------------
  |  Branch (203:27): [True: 25.3M, False: 6.35M]
  ------------------
  204|  25.3M|      z[i] = word_sub(x[i], y[i], &borrow);
  205|  25.3M|   }
  206|       |
  207|  6.38M|   for(size_t i = y_size; i != x_size; ++i) {
  ------------------
  |  Branch (207:27): [True: 37.1k, False: 6.35M]
  ------------------
  208|  37.1k|      z[i] = word_sub(x[i], static_cast<W>(0), &borrow);
  209|  37.1k|   }
  210|       |
  211|  6.35M|   return borrow;
  212|  6.35M|}
_ZN5Botan11bigint_add3ITkNS_8WordTypeEmEET_PS1_PKS1_mS4_m:
  120|  9.94k|inline constexpr auto bigint_add3(W z[], const W x[], size_t x_size, const W y[], size_t y_size) -> W {
  121|  9.94k|   if(x_size < y_size) {
  ------------------
  |  Branch (121:7): [True: 0, False: 9.94k]
  ------------------
  122|      0|      return bigint_add3(z, y, y_size, x, x_size);
  123|      0|   }
  124|       |
  125|  9.94k|   W carry = 0;
  126|       |
  127|  9.94k|   const size_t blocks = y_size - (y_size % 8);
  128|       |
  129|  61.5k|   for(size_t i = 0; i != blocks; i += 8) {
  ------------------
  |  Branch (129:22): [True: 51.6k, False: 9.94k]
  ------------------
  130|  51.6k|      carry = word8_add3(z + i, x + i, y + i, carry);
  131|  51.6k|   }
  132|       |
  133|  11.5k|   for(size_t i = blocks; i != y_size; ++i) {
  ------------------
  |  Branch (133:27): [True: 1.61k, False: 9.94k]
  ------------------
  134|  1.61k|      z[i] = word_add(x[i], y[i], &carry);
  135|  1.61k|   }
  136|       |
  137|  9.95k|   for(size_t i = y_size; i != x_size; ++i) {
  ------------------
  |  Branch (137:27): [True: 7, False: 9.94k]
  ------------------
  138|      7|      z[i] = word_add(x[i], static_cast<W>(0), &carry);
  139|      7|   }
  140|       |
  141|  9.94k|   return carry;
  142|  9.94k|}
_ZN5Botan14bigint_cnd_addITkNS_8WordTypeEmEET_S1_PS1_PKS1_m:
   45|   478k|inline constexpr W bigint_cnd_add(W cnd, W x[], const W y[], size_t size) {
   46|   478k|   const auto mask = CT::Mask<W>::expand(cnd).value();
   47|       |
   48|   478k|   W carry = 0;
   49|       |
   50|  2.06M|   for(size_t i = 0; i != size; ++i) {
  ------------------
  |  Branch (50:22): [True: 1.58M, False: 478k]
  ------------------
   51|  1.58M|      x[i] = word_add(x[i], y[i] & mask, &carry);
   52|  1.58M|   }
   53|       |
   54|   478k|   return (mask & carry);
   55|   478k|}
_ZN5Botan14bigint_linmul3ITkNS_8WordTypeEmEEvPT_PKS1_mS1_:
  416|  88.5k|inline constexpr void bigint_linmul3(W z[], const W x[], size_t x_size, W y) {
  417|  88.5k|   const size_t blocks = x_size - (x_size % 8);
  418|       |
  419|  88.5k|   W carry = 0;
  420|       |
  421|   355k|   for(size_t i = 0; i != blocks; i += 8) {
  ------------------
  |  Branch (421:22): [True: 266k, False: 88.5k]
  ------------------
  422|   266k|      carry = word8_linmul3(z + i, x + i, y, carry);
  423|   266k|   }
  424|       |
  425|   393k|   for(size_t i = blocks; i != x_size; ++i) {
  ------------------
  |  Branch (425:27): [True: 305k, False: 88.5k]
  ------------------
  426|   305k|      z[i] = word_madd2(x[i], y, &carry);
  427|   305k|   }
  428|       |
  429|  88.5k|   z[x_size] = carry;
  430|  88.5k|}
_ZN5Botan14divide_precompImEC2Em:
  574|  5.90k|      explicit constexpr divide_precomp(W divisor) : m_divisor(divisor) {
  575|  5.90k|         BOTAN_ARG_CHECK(m_divisor != 0, "Division by zero");
  ------------------
  |  |   35|  5.90k|   do {                                                          \
  |  |   36|  5.90k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  5.90k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 5.90k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  5.90k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 5.90k]
  |  |  ------------------
  ------------------
  576|  5.90k|      }
_ZNK5Botan14divide_precompImE16vartime_div_2to1Emm:
  581|  92.0k|      inline constexpr W vartime_div_2to1(W n1, W n0) const {
  582|  92.0k|         BOTAN_ASSERT_NOMSG(n1 < m_divisor);
  ------------------
  |  |   77|  92.0k|   do {                                                                     \
  |  |   78|  92.0k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  92.0k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 92.0k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  92.0k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 92.0k]
  |  |  ------------------
  ------------------
  583|       |
  584|  92.0k|         if(m_divisor == WordInfo<W>::max) {
  ------------------
  |  Branch (584:13): [True: 6.34k, False: 85.6k]
  ------------------
  585|  6.34k|            return vartime_div_2to1_max_d(n1, n0);
  586|  6.34k|         }
  587|       |
  588|  85.6k|         if(m_divisor == WordInfo<W>::top_bit) {
  ------------------
  |  Branch (588:13): [True: 6.64k, False: 79.0k]
  ------------------
  589|       |            // Simply a shift by N-1 bits
  590|  6.64k|            return (n1 << 1) | (n0 >> (WordInfo<W>::bits - 1));
  591|  6.64k|         }
  592|       |
  593|  79.0k|         if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (593:13): [True: 79.0k, Folded]
  ------------------
  594|  79.0k|#if defined(BOTAN_MP_USE_X86_64_ASM)
  595|  79.0k|            if constexpr(std::same_as<W, uint64_t>) {
  596|  79.0k|               W quotient = 0;
  597|  79.0k|               W remainder = 0;
  598|       |               // NOLINTNEXTLINE(*-no-assembler)
  599|  79.0k|               asm("divq %[v]" : "=a"(quotient), "=d"(remainder) : [v] "r"(m_divisor), "a"(n0), "d"(n1) : "cc");
  600|  79.0k|               return quotient;
  601|  79.0k|            }
  602|      0|#endif
  603|       |
  604|      0|#if !defined(BOTAN_BUILD_COMPILER_IS_CLANGCL)
  605|       |
  606|       |            /* clang-cl has a bug where on encountering a 128/64 division it emits
  607|       |            * a call to __udivti3() but then fails to link the relevant builtin into
  608|       |            * the binary, causing a link failure. Work around this by simply omitting
  609|       |            * such code for clang-cl
  610|       |            *
  611|       |            * See https://github.com/llvm/llvm-project/issues/25679
  612|       |            */
  613|  79.0k|            if constexpr(WordInfo<W>::dword_is_native) {
  614|  79.0k|               typename WordInfo<W>::dword n = n1;
  615|  79.0k|               n <<= WordInfo<W>::bits;
  616|  79.0k|               n |= n0;
  617|  79.0k|               return static_cast<W>(n / m_divisor);
  618|  79.0k|            }
  619|  79.0k|#endif
  620|  79.0k|         }
  621|       |
  622|      0|         W high = n1;
  623|  79.0k|         W quotient = 0;
  624|       |
  625|  79.0k|         for(size_t i = 0; i != WordInfo<W>::bits; ++i) {
  ------------------
  |  Branch (625:28): [True: 0, False: 79.0k]
  ------------------
  626|      0|            const W high_top_bit = high >> (WordInfo<W>::bits - 1);
  627|       |
  628|      0|            high <<= 1;
  629|      0|            high |= (n0 >> (WordInfo<W>::bits - 1 - i)) & 1;
  630|      0|            quotient <<= 1;
  631|       |
  632|      0|            if(high_top_bit || high >= m_divisor) {
  ------------------
  |  Branch (632:16): [True: 0, False: 0]
  |  Branch (632:32): [True: 0, False: 0]
  ------------------
  633|      0|               high -= m_divisor;
  634|      0|               quotient |= 1;
  635|      0|            }
  636|      0|         }
  637|       |
  638|  79.0k|         return quotient;
  639|  85.6k|      }
_ZN5Botan14divide_precompImE22vartime_div_2to1_max_dEmm:
  657|  6.34k|      static inline constexpr W vartime_div_2to1_max_d(W n1, W n0) {
  658|       |         /*
  659|       |         Use k to refer to WordInfo<W>::bits
  660|       |
  661|       |         We are dividing n = (n1 * 2^k) + n0 by 2^k - 1
  662|       |
  663|       |         Recall that 2^k = 1 (mod 2^k - 1)
  664|       |
  665|       |         Rewrite n = n1*2^k + n0 as n1*(2^k - 1) + n1 + n0
  666|       |
  667|       |         The result of dividing n by (2^k - 1) will be equal to
  668|       |         (n1*(2^k-1) + n1 + n0) / (2^k-1) =
  669|       |         n1 + ((n1 + n0) / (2^k-1)
  670|       |
  671|       |         Use c to refer to ((n1 + n0) / (2^k-1))
  672|       |
  673|       |         If (n1 + n0) < (2^k - 1) then c is 0
  674|       |         If (n1 + n0) >= (2^k - 1) then c is 1
  675|       |
  676|       |         Since n1 < 2^k - 1 [*] and n0 <= 2^k - 1 it is impossible for (n1 + n0) / (2^k -1)
  677|       |         to be greater than 1.
  678|       |
  679|       |         [*] We require n1 be strictly less than the divisor to ensure that the
  680|       |         output fits in a single word; this is checked at the start of vartime_div_2to1.
  681|       |         */
  682|       |
  683|  6.34k|         const W s = n0 + n1;
  684|       |         // did n0 + n1 overflow? or does (n0 + n1) == 2^k - 1? if either, c == 1
  685|  6.34k|         if(s < n0 || s == WordInfo<W>::max) {
  ------------------
  |  Branch (685:13): [True: 1.59k, False: 4.74k]
  |  Branch (685:23): [True: 127, False: 4.61k]
  ------------------
  686|  1.72k|            n1 += 1;
  687|  1.72k|         }
  688|       |
  689|  6.34k|         return n1;
  690|  6.34k|      }
_ZN5Botan11bigint_shl1ITkNS_8WordTypeEmEEvPT_mmm:
  309|  4.24k|inline constexpr void bigint_shl1(W x[], size_t x_size, size_t x_words, size_t shift) {
  310|  4.24k|   const size_t word_shift = shift / WordInfo<W>::bits;
  311|  4.24k|   const size_t bit_shift = shift % WordInfo<W>::bits;
  312|       |
  313|  4.24k|   BOTAN_ASSERT_NOMSG(word_shift <= x_size);
  ------------------
  |  |   77|  4.24k|   do {                                                                     \
  |  |   78|  4.24k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  4.24k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 4.24k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  4.24k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 4.24k]
  |  |  ------------------
  ------------------
  314|  4.24k|   BOTAN_ASSERT_NOMSG(x_words <= x_size - word_shift);
  ------------------
  |  |   77|  4.24k|   do {                                                                     \
  |  |   78|  4.24k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  4.24k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 4.24k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  4.24k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 4.24k]
  |  |  ------------------
  ------------------
  315|       |
  316|  4.24k|   unchecked_copy_memory(x + word_shift, x, x_words);
  317|  4.24k|   zeroize_buffer(x, word_shift);
  318|       |
  319|  4.24k|   const auto carry_mask = CT::Mask<W>::expand(bit_shift);
  320|  4.24k|   const W carry_shift = carry_mask.if_set_return(WordInfo<W>::bits - bit_shift);
  321|       |
  322|  4.24k|   W carry = 0;
  323|  59.4k|   for(size_t i = word_shift; i != x_size; ++i) {
  ------------------
  |  Branch (323:31): [True: 55.1k, False: 4.24k]
  ------------------
  324|  55.1k|      const W w = x[i];
  325|  55.1k|      x[i] = (w << bit_shift) | carry;
  326|  55.1k|      carry = carry_mask.if_set_return(w >> carry_shift);
  327|  55.1k|   }
  328|  4.24k|}
_ZN5Botan11bigint_shr1ITkNS_8WordTypeEmEEvPT_mm:
  331|   412k|inline constexpr void bigint_shr1(W x[], size_t x_size, size_t shift) {
  332|   412k|   const size_t word_shift = shift / WordInfo<W>::bits;
  333|   412k|   const size_t bit_shift = shift % WordInfo<W>::bits;
  334|       |
  335|   412k|   const size_t top = x_size >= word_shift ? (x_size - word_shift) : 0;
  ------------------
  |  Branch (335:23): [True: 412k, False: 0]
  ------------------
  336|       |
  337|   412k|   if(top > 0) {
  ------------------
  |  Branch (337:7): [True: 412k, False: 0]
  ------------------
  338|   412k|      unchecked_copy_memory(x, x + word_shift, top);
  339|   412k|   }
  340|   412k|   zeroize_buffer(x + top, std::min(word_shift, x_size));
  341|       |
  342|   412k|   const auto carry_mask = CT::Mask<W>::expand(bit_shift);
  343|   412k|   const W carry_shift = carry_mask.if_set_return(WordInfo<W>::bits - bit_shift);
  344|       |
  345|   412k|   W carry = 0;
  346|       |
  347|  5.50M|   for(size_t i = 0; i != top; ++i) {
  ------------------
  |  Branch (347:22): [True: 5.09M, False: 412k]
  ------------------
  348|  5.09M|      const W w = x[top - i - 1];
  349|  5.09M|      x[top - i - 1] = (w >> bit_shift) | carry;
  350|  5.09M|      carry = carry_mask.if_set_return(w << carry_shift);
  351|  5.09M|   }
  352|   412k|}
_ZN5Botan11bigint_shl2ITkNS_8WordTypeEmEEvPT_mPKS1_mm:
  355|  5.90k|inline constexpr void bigint_shl2(W y[], size_t y_size, const W x[], size_t x_size, size_t shift) {
  356|  5.90k|   const size_t word_shift = shift / WordInfo<W>::bits;
  357|  5.90k|   const size_t bit_shift = shift % WordInfo<W>::bits;
  358|       |
  359|  5.90k|   BOTAN_ASSERT_NOMSG(word_shift <= y_size);
  ------------------
  |  |   77|  5.90k|   do {                                                                     \
  |  |   78|  5.90k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  5.90k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 5.90k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  5.90k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 5.90k]
  |  |  ------------------
  ------------------
  360|  5.90k|   BOTAN_ASSERT_NOMSG(x_size < y_size - word_shift);
  ------------------
  |  |   77|  5.90k|   do {                                                                     \
  |  |   78|  5.90k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  5.90k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 5.90k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  5.90k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 5.90k]
  |  |  ------------------
  ------------------
  361|       |
  362|  5.90k|   unchecked_copy_memory(y + word_shift, x, x_size);
  363|  5.90k|   zeroize_buffer(y, word_shift);
  364|  5.90k|   zeroize_buffer(y + word_shift + x_size, y_size - word_shift - x_size);
  365|       |
  366|  5.90k|   const auto carry_mask = CT::Mask<W>::expand(bit_shift);
  367|  5.90k|   const W carry_shift = carry_mask.if_set_return(WordInfo<W>::bits - bit_shift);
  368|       |
  369|  5.90k|   W carry = 0;
  370|  94.5k|   for(size_t i = word_shift; i != x_size + word_shift + 1; ++i) {
  ------------------
  |  Branch (370:31): [True: 88.6k, False: 5.90k]
  ------------------
  371|  88.6k|      const W w = y[i];
  372|  88.6k|      y[i] = (w << bit_shift) | carry;
  373|  88.6k|      carry = carry_mask.if_set_return(w >> carry_shift);
  374|  88.6k|   }
  375|  5.90k|}
_ZN5Botan15bigint_ct_is_eqITkNS_8WordTypeEmEENS_2CT4MaskIT_EEPKS3_mS6_m:
  519|    499|inline constexpr auto bigint_ct_is_eq(const W x[], size_t x_size, const W y[], size_t y_size) -> CT::Mask<W> {
  520|    499|   const size_t common_elems = std::min(x_size, y_size);
  521|       |
  522|    499|   W diff = 0;
  523|       |
  524|  4.50k|   for(size_t i = 0; i != common_elems; i++) {
  ------------------
  |  Branch (524:22): [True: 4.00k, False: 499]
  ------------------
  525|  4.00k|      diff |= (x[i] ^ y[i]);
  526|  4.00k|   }
  527|       |
  528|       |   // If any bits were set in high part of x/y, then they are not equal
  529|    499|   if(x_size < y_size) {
  ------------------
  |  Branch (529:7): [True: 0, False: 499]
  ------------------
  530|      0|      for(size_t i = x_size; i != y_size; i++) {
  ------------------
  |  Branch (530:30): [True: 0, False: 0]
  ------------------
  531|      0|         diff |= y[i];
  532|      0|      }
  533|    499|   } else if(y_size < x_size) {
  ------------------
  |  Branch (533:14): [True: 493, False: 6]
  ------------------
  534|  12.3k|      for(size_t i = y_size; i != x_size; i++) {
  ------------------
  |  Branch (534:30): [True: 11.8k, False: 493]
  ------------------
  535|  11.8k|         diff |= x[i];
  536|  11.8k|      }
  537|    493|   }
  538|       |
  539|    499|   return CT::Mask<W>::is_zero(diff);
  540|    499|}
_ZN5Botan15bigint_ct_is_ltITkNS_8WordTypeEmEENS_2CT4MaskIT_EEPKS3_mS6_mb:
  487|   118k|   -> CT::Mask<W> {
  488|   118k|   const size_t common_elems = std::min(x_size, y_size);
  489|       |
  490|   118k|   auto is_lt = CT::Mask<W>::expand(lt_or_equal);
  491|       |
  492|   899k|   for(size_t i = 0; i != common_elems; i++) {
  ------------------
  |  Branch (492:22): [True: 781k, False: 118k]
  ------------------
  493|   781k|      const auto eq = CT::Mask<W>::is_equal(x[i], y[i]);
  494|   781k|      const auto lt = CT::Mask<W>::is_lt(x[i], y[i]);
  495|   781k|      is_lt = eq.select_mask(is_lt, lt);
  496|   781k|   }
  497|       |
  498|   118k|   if(x_size < y_size) {
  ------------------
  |  Branch (498:7): [True: 0, False: 118k]
  ------------------
  499|      0|      W mask = 0;
  500|      0|      for(size_t i = x_size; i != y_size; i++) {
  ------------------
  |  Branch (500:30): [True: 0, False: 0]
  ------------------
  501|      0|         mask |= y[i];
  502|      0|      }
  503|       |      // If any bits were set in high part of y, then is_lt should be forced true
  504|      0|      is_lt |= CT::Mask<W>::expand(mask);
  505|   118k|   } else if(y_size < x_size) {
  ------------------
  |  Branch (505:14): [True: 19.8k, False: 98.4k]
  ------------------
  506|  19.8k|      W mask = 0;
  507|   405k|      for(size_t i = y_size; i != x_size; i++) {
  ------------------
  |  Branch (507:30): [True: 385k, False: 19.8k]
  ------------------
  508|   385k|         mask |= x[i];
  509|   385k|      }
  510|       |
  511|       |      // If any bits were set in high part of x, then is_lt should be false
  512|  19.8k|      is_lt &= CT::Mask<W>::is_zero(mask);
  513|  19.8k|   }
  514|       |
  515|   118k|   return is_lt;
  516|   118k|}
_ZN5Botan15bigint_cnd_swapITkNS_8WordTypeEmEEvT_PS1_S2_m:
   29|   158k|inline constexpr void bigint_cnd_swap(W cnd, W x[], W y[], size_t size) {
   30|   158k|   const auto mask = CT::Mask<W>::expand(cnd);
   31|       |
   32|   634k|   for(size_t i = 0; i != size; ++i) {
  ------------------
  |  Branch (32:22): [True: 476k, False: 158k]
  ------------------
   33|   476k|      const W a = x[i];
   34|   476k|      const W b = y[i];
   35|   476k|      x[i] = mask.select(b, a);
   36|   476k|      y[i] = mask.select(a, b);
   37|   476k|   }
   38|   158k|}
_ZN5Botan14bigint_sub_absITkNS_8WordTypeEmEENS_2CT4MaskIT_EEPS3_PKS3_S7_mS5_:
  279|  27.7k|inline constexpr auto bigint_sub_abs(W z[], const W x[], const W y[], size_t N, W ws[]) -> CT::Mask<W> {
  280|       |   // Subtract in both direction then conditional copy out the result
  281|       |
  282|  27.7k|   W* ws0 = ws;
  283|  27.7k|   W* ws1 = ws + N;
  284|       |
  285|  27.7k|   W borrow0 = 0;
  286|  27.7k|   W borrow1 = 0;
  287|       |
  288|  27.7k|   const size_t blocks = N - (N % 8);
  289|       |
  290|  88.9k|   for(size_t i = 0; i != blocks; i += 8) {
  ------------------
  |  Branch (290:22): [True: 61.1k, False: 27.7k]
  ------------------
  291|  61.1k|      borrow0 = word8_sub3(ws0 + i, x + i, y + i, borrow0);
  292|  61.1k|      borrow1 = word8_sub3(ws1 + i, y + i, x + i, borrow1);
  293|  61.1k|   }
  294|       |
  295|  55.6k|   for(size_t i = blocks; i != N; ++i) {
  ------------------
  |  Branch (295:27): [True: 27.8k, False: 27.7k]
  ------------------
  296|  27.8k|      ws0[i] = word_sub(x[i], y[i], &borrow0);
  297|  27.8k|      ws1[i] = word_sub(y[i], x[i], &borrow1);
  298|  27.8k|   }
  299|       |
  300|  27.7k|   return CT::conditional_copy_mem(borrow0, z, ws1, ws0, N);
  301|  27.7k|}
_ZN5Botan14bigint_cnd_subITkNS_8WordTypeEmEET_S1_PS1_PKS1_m:
   62|   319k|inline constexpr auto bigint_cnd_sub(W cnd, W x[], const W y[], size_t size) -> W {
   63|   319k|   const auto mask = CT::Mask<W>::expand(cnd).value();
   64|       |
   65|   319k|   W carry = 0;
   66|       |
   67|  1.42M|   for(size_t i = 0; i != size; ++i) {
  ------------------
  |  Branch (67:22): [True: 1.10M, False: 319k]
  ------------------
   68|  1.10M|      x[i] = word_sub(x[i], y[i] & mask, &carry);
   69|  1.10M|   }
   70|       |
   71|   319k|   return (mask & carry);
   72|   319k|}
_ZN5Botan22bigint_monty_maybe_subITkNS_8WordTypeEmEEvmPT_S1_PKS1_S4_:
  225|  3.44k|inline constexpr void bigint_monty_maybe_sub(size_t N, W z[], W x0, const W x[], const W p[]) {
  226|  3.44k|   W borrow = 0;
  227|       |
  228|  3.44k|   const size_t blocks = N - (N % 8);
  229|       |
  230|  23.3k|   for(size_t i = 0; i != blocks; i += 8) {
  ------------------
  |  Branch (230:22): [True: 19.9k, False: 3.44k]
  ------------------
  231|  19.9k|      borrow = word8_sub3(z + i, x + i, p + i, borrow);
  232|  19.9k|   }
  233|       |
  234|  4.65k|   for(size_t i = blocks; i != N; ++i) {
  ------------------
  |  Branch (234:27): [True: 1.21k, False: 3.44k]
  ------------------
  235|  1.21k|      z[i] = word_sub(x[i], p[i], &borrow);
  236|  1.21k|   }
  237|       |
  238|  3.44k|   borrow = (x0 - borrow) > x0;
  239|       |
  240|  3.44k|   CT::conditional_assign_mem(borrow, z, x, N);
  241|  3.44k|}
_ZN5Botan22bigint_monty_maybe_subILm4ETkNS_8WordTypeEmEEvPT0_S1_PKS1_S4_:
  254|  23.6M|inline constexpr void bigint_monty_maybe_sub(W z[N], W x0, const W x[N], const W y[N]) {
  255|  23.6M|   W borrow = 0;
  256|       |
  257|   118M|   for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (257:22): [True: 94.7M, False: 23.6M]
  ------------------
  258|  94.7M|      z[i] = word_sub(x[i], y[i], &borrow);
  259|  94.7M|   }
  260|       |
  261|  23.6M|   borrow = (x0 - borrow) > x0;
  262|       |
  263|  23.6M|   CT::conditional_assign_mem(borrow, z, x, N);
  264|  23.6M|}
_ZN5Botan22bigint_monty_maybe_subILm16ETkNS_8WordTypeEmEEvPT0_S1_PKS1_S4_:
  254|   143k|inline constexpr void bigint_monty_maybe_sub(W z[N], W x0, const W x[N], const W y[N]) {
  255|   143k|   W borrow = 0;
  256|       |
  257|  2.43M|   for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (257:22): [True: 2.29M, False: 143k]
  ------------------
  258|  2.29M|      z[i] = word_sub(x[i], y[i], &borrow);
  259|  2.29M|   }
  260|       |
  261|   143k|   borrow = (x0 - borrow) > x0;
  262|       |
  263|   143k|   CT::conditional_assign_mem(borrow, z, x, N);
  264|   143k|}
_ZN5Botan22bigint_monty_maybe_subILm32ETkNS_8WordTypeEmEEvPT0_S1_PKS1_S4_:
  254|    171|inline constexpr void bigint_monty_maybe_sub(W z[N], W x0, const W x[N], const W y[N]) {
  255|    171|   W borrow = 0;
  256|       |
  257|  5.64k|   for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (257:22): [True: 5.47k, False: 171]
  ------------------
  258|  5.47k|      z[i] = word_sub(x[i], y[i], &borrow);
  259|  5.47k|   }
  260|       |
  261|    171|   borrow = (x0 - borrow) > x0;
  262|       |
  263|    171|   CT::conditional_assign_mem(borrow, z, x, N);
  264|    171|}
_ZN5Botan14bigint_cnd_absITkNS_8WordTypeEmEEvT_PS1_m:
   80|   158k|inline constexpr void bigint_cnd_abs(W cnd, W x[], size_t size) {
   81|   158k|   const auto mask = CT::Mask<W>::expand(cnd);
   82|       |
   83|   158k|   W carry = mask.if_set_return(1);
   84|   634k|   for(size_t i = 0; i != size; ++i) {
  ------------------
  |  Branch (84:22): [True: 476k, False: 158k]
  ------------------
   85|   476k|      const W z = word_add(~x[i], static_cast<W>(0), &carry);
   86|   476k|      x[i] = mask.select(z, x[i]);
   87|   476k|   }
   88|   158k|}
_ZN5Botan13monty_inverseITkNS_8WordTypeEmEET_S1_:
  703|  4.87k|inline constexpr auto monty_inverse(W a) -> W {
  704|  4.87k|   BOTAN_ARG_CHECK(a % 2 == 1, "Cannot compute Montgomery inverse of an even integer");
  ------------------
  |  |   35|  4.87k|   do {                                                          \
  |  |   36|  4.87k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  4.87k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 4.87k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  4.87k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 4.87k]
  |  |  ------------------
  ------------------
  705|       |
  706|       |   // Newton's Method, following https://lemire.me/blog/2017/09/18/computing-the-inverse-of-odd-integers/
  707|       |
  708|  4.87k|   constexpr size_t iter = WordInfo<W>::bits == 64 ? 4 : 3;
  ------------------
  |  Branch (708:28): [True: 0, Folded]
  ------------------
  709|       |
  710|       |   // Initial guess provides 5 bits of accuracy
  711|  4.87k|   W r = (3 * a) ^ 2;
  712|       |
  713|       |   // Each iteration doubles the accuracy
  714|  24.3k|   for(size_t i = 0; i != iter; ++i) {
  ------------------
  |  Branch (714:22): [True: 19.4k, False: 4.87k]
  ------------------
  715|  19.4k|      r = r * (2 - r * a);
  716|  19.4k|   }
  717|       |
  718|       |   // Now invert in addition space
  719|  4.87k|   r = (WordInfo<W>::max - r) + 1;
  720|       |
  721|  4.87k|   return r;
  722|  4.87k|}
_ZN5Botan10shift_leftILm1ETkNS_8WordTypeEmLm4EEET0_RNSt3__15arrayIS1_XT1_EEE:
  725|  13.4M|inline constexpr W shift_left(std::array<W, N>& x) {
  726|  13.4M|   static_assert(N >= 1, "Invalid input size");
  727|  13.4M|   static_assert(S > 0, "Zero shift not supported");
  728|  13.4M|   static_assert(S < WordInfo<W>::bits, "Shift too large");
  729|       |
  730|  13.4M|   const W carry = x[N - 1] >> (WordInfo<W>::bits - S);
  731|       |
  732|  53.9M|   for(size_t i = N - 1; i != 0; --i) {
  ------------------
  |  Branch (732:26): [True: 40.4M, False: 13.4M]
  ------------------
  733|  40.4M|      x[i] = (x[i] << S) | (x[i - 1] >> (WordInfo<W>::bits - S));
  734|  40.4M|   }
  735|  13.4M|   x[0] <<= S;
  736|       |
  737|  13.4M|   return carry;
  738|  13.4M|}
_ZN5Botan9comba_sqrILm4ETkNS_8WordTypeEmEEvPT0_PKS1_:
  854|  23.7M|constexpr inline void comba_sqr(W z[2 * N], const W x[N]) {
  855|  23.7M|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (855:7): [True: 23.7M, Folded]
  ------------------
  856|  23.7M|      if constexpr(std::same_as<W, word> && N == 4) {
  857|  23.7M|         return bigint_comba_sqr4(z, x);
  858|  23.7M|      }
  859|       |      if constexpr(std::same_as<W, word> && N == 6) {
  860|       |         return bigint_comba_sqr6(z, x);
  861|       |      }
  862|       |      if constexpr(std::same_as<W, word> && N == 7) {
  863|       |         return bigint_comba_sqr7(z, x);
  864|       |      }
  865|       |      if constexpr(std::same_as<W, word> && N == 8) {
  866|       |         return bigint_comba_sqr8(z, x);
  867|       |      }
  868|       |      if constexpr(std::same_as<W, word> && N == 9) {
  869|       |         return bigint_comba_sqr9(z, x);
  870|       |      }
  871|       |      if constexpr(std::same_as<W, word> && N == 16) {
  872|       |         return bigint_comba_sqr16(z, x);
  873|       |      }
  874|  23.7M|   }
  875|       |
  876|      0|   word3<W> accum;
  877|       |
  878|  23.7M|   for(size_t i = 0; i != 2 * N; ++i) {
  ------------------
  |  Branch (878:22): [True: 0, False: 23.7M]
  ------------------
  879|      0|      const size_t start = i + 1 < N ? 0 : i + 1 - N;
  ------------------
  |  Branch (879:28): [True: 0, False: 0]
  ------------------
  880|      0|      const size_t end = std::min(N, i + 1);
  881|       |
  882|      0|      for(size_t j = start; j != end; ++j) {
  ------------------
  |  Branch (882:29): [True: 0, False: 0]
  ------------------
  883|      0|         accum.mul(x[j], x[i - j]);
  884|      0|      }
  885|      0|      z[i] = accum.extract();
  886|      0|   }
  887|  23.7M|}
_ZN5Botan13redc_crandallITkNS_8WordTypeEmLm4ETnT_Lm4294968273EEENSt3__15arrayIS1_XT0_EEENS2_4spanIKS1_XmlLi2ET0_EEE:
  992|  9.17M|constexpr std::array<W, N> redc_crandall(std::span<const W, 2 * N> z) {
  993|  9.17M|   static_assert(N >= 2);
  994|       |
  995|  9.17M|   std::array<W, N> hi = {};
  996|       |
  997|       |   // hi = hi * c + lo
  998|       |
  999|  9.17M|   W carry = 0;
 1000|  45.8M|   for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (1000:22): [True: 36.6M, False: 9.17M]
  ------------------
 1001|  36.6M|      hi[i] = word_madd3(z[i + N], C, z[i], &carry);
 1002|  36.6M|   }
 1003|       |
 1004|       |   // hi += carry * C
 1005|  9.17M|   word carry_c[2] = {0};
 1006|  9.17M|   carry_c[0] = word_madd2(carry, C, &carry_c[1]);
 1007|       |
 1008|  9.17M|   carry = bigint_add2(hi.data(), N, carry_c, 2);
 1009|       |
 1010|  9.17M|   constexpr W P0 = WordInfo<W>::max - (C - 1);
 1011|       |
 1012|  9.17M|   std::array<W, N> r = {};
 1013|       |
 1014|  9.17M|   W borrow = 0;
 1015|       |
 1016|       |   /*
 1017|       |   * For undetermined reasons, on GCC (only) removing this asm block causes
 1018|       |   * massive (up to 20%) performance regressions in secp256k1.
 1019|       |   *
 1020|       |   * The generated code without the asm seems quite reasonable, and timing
 1021|       |   * repeated calls to redc_crandall with the cycle counter show that GCC
 1022|       |   * computes it in about the same number of cycles with or without the asm.
 1023|       |   *
 1024|       |   * So the cause of the regression is unclear. But it is reproducible across
 1025|       |   * machines and GCC versions.
 1026|       |   */
 1027|       |#if defined(BOTAN_MP_USE_X86_64_ASM) && defined(__GNUC__) && !defined(__clang__)
 1028|       |   if constexpr(N == 4 && std::same_as<W, uint64_t>) {
 1029|       |      if(!std::is_constant_evaluated()) {
 1030|       |         asm volatile(R"(
 1031|       |                      movq 0(%[x]), %[borrow]
 1032|       |                      subq %[p0], %[borrow]
 1033|       |                      movq %[borrow], 0(%[r])
 1034|       |                      movq 8(%[x]), %[borrow]
 1035|       |                      sbbq $-1, %[borrow]
 1036|       |                      movq %[borrow], 8(%[r])
 1037|       |                      movq 16(%[x]), %[borrow]
 1038|       |                      sbbq $-1, %[borrow]
 1039|       |                      movq %[borrow], 16(%[r])
 1040|       |                      movq 24(%[x]), %[borrow]
 1041|       |                      sbbq $-1, %[borrow]
 1042|       |                      movq %[borrow], 24(%[r])
 1043|       |                      sbbq %[borrow],%[borrow]
 1044|       |                      negq %[borrow]
 1045|       |                      )"
 1046|       |                      : [borrow] "=r"(borrow)
 1047|       |                      : [x] "r"(hi.data()), [p0] "r"(P0), [r] "r"(r.data()), "0"(borrow)
 1048|       |                      : "cc", "memory");
 1049|       |
 1050|       |         borrow = (carry - borrow) > carry;
 1051|       |         CT::conditional_assign_mem(borrow, r.data(), hi.data(), N);
 1052|       |         return r;
 1053|       |      }
 1054|       |   }
 1055|       |#endif
 1056|       |
 1057|  9.17M|   r[0] = word_sub(hi[0], P0, &borrow);
 1058|  36.6M|   for(size_t i = 1; i != N; ++i) {
  ------------------
  |  Branch (1058:22): [True: 27.5M, False: 9.17M]
  ------------------
 1059|  27.5M|      r[i] = word_sub(hi[i], WordInfo<W>::max, &borrow);
 1060|  27.5M|   }
 1061|       |
 1062|  9.17M|   borrow = (carry - borrow) > carry;
 1063|       |
 1064|  9.17M|   CT::conditional_assign_mem(borrow, r.data(), hi.data(), N);
 1065|       |
 1066|  9.17M|   return r;
 1067|  9.17M|}
_ZN5Botan9comba_mulILm4ETkNS_8WordTypeEmEEvPT0_PKS1_S4_:
  818|  34.7M|constexpr inline void comba_mul(W z[2 * N], const W x[N], const W y[N]) {
  819|  34.7M|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (819:7): [True: 34.7M, Folded]
  ------------------
  820|  34.7M|      if constexpr(std::same_as<W, word> && N == 4) {
  821|  34.7M|         return bigint_comba_mul4(z, x, y);
  822|  34.7M|      }
  823|       |      if constexpr(std::same_as<W, word> && N == 6) {
  824|       |         return bigint_comba_mul6(z, x, y);
  825|       |      }
  826|       |      if constexpr(std::same_as<W, word> && N == 7) {
  827|       |         return bigint_comba_mul7(z, x, y);
  828|       |      }
  829|       |      if constexpr(std::same_as<W, word> && N == 8) {
  830|       |         return bigint_comba_mul8(z, x, y);
  831|       |      }
  832|       |      if constexpr(std::same_as<W, word> && N == 9) {
  833|       |         return bigint_comba_mul9(z, x, y);
  834|       |      }
  835|       |      if constexpr(std::same_as<W, word> && N == 16) {
  836|       |         return bigint_comba_mul16(z, x, y);
  837|       |      }
  838|  34.7M|   }
  839|       |
  840|      0|   word3<W> accum;
  841|       |
  842|  34.7M|   for(size_t i = 0; i != 2 * N; ++i) {
  ------------------
  |  Branch (842:22): [True: 0, False: 34.7M]
  ------------------
  843|      0|      const size_t start = i + 1 < N ? 0 : i + 1 - N;
  ------------------
  |  Branch (843:28): [True: 0, False: 0]
  ------------------
  844|      0|      const size_t end = std::min(N, i + 1);
  845|       |
  846|      0|      for(size_t j = start; j != end; ++j) {
  ------------------
  |  Branch (846:29): [True: 0, False: 0]
  ------------------
  847|      0|         accum.mul(x[j], y[i - j]);
  848|      0|      }
  849|      0|      z[i] = accum.extract();
  850|      0|   }
  851|  34.7M|}
_ZN5Botan11shift_rightILm1ETkNS_8WordTypeEmLm4EEET0_RNSt3__15arrayIS1_XT1_EEE:
  741|  18.1M|inline constexpr W shift_right(std::array<W, N>& x) {
  742|  18.1M|   static_assert(N >= 1, "Invalid input size");
  743|  18.1M|   static_assert(S > 0, "Zero shift not supported");
  744|  18.1M|   static_assert(S < WordInfo<W>::bits, "Shift too large");
  745|       |
  746|  18.1M|   const W carry = x[0] << (WordInfo<W>::bits - S);
  747|       |
  748|  72.7M|   for(size_t i = 0; i != N - 1; ++i) {
  ------------------
  |  Branch (748:22): [True: 54.5M, False: 18.1M]
  ------------------
  749|  54.5M|      x[i] = (x[i] >> S) | (x[i + 1] << (WordInfo<W>::bits - S));
  750|  54.5M|   }
  751|  18.1M|   x[N - 1] >>= S;
  752|       |
  753|  18.1M|   return carry;
  754|  18.1M|}
_ZN5Botan16read_window_bitsILm3EhLm32EEEmNSt3__14spanIKT0_XT1_EEEm:
 1071|  2.40M|constexpr size_t read_window_bits(std::span<const W, N> words, size_t offset) {
 1072|  2.40M|   static_assert(WindowBits >= 1 && WindowBits <= 7);
 1073|       |
 1074|  2.40M|   constexpr uint8_t WindowMask = static_cast<uint8_t>(1 << WindowBits) - 1;
 1075|       |
 1076|  2.40M|   constexpr size_t W_bits = sizeof(W) * 8;
 1077|  2.40M|   const auto bit_shift = offset % W_bits;
 1078|  2.40M|   const auto word_offset = words.size() - 1 - (offset / W_bits);
 1079|       |
 1080|  2.40M|   const bool single_byte_window = bit_shift <= (W_bits - WindowBits) || word_offset == 0;
  ------------------
  |  Branch (1080:36): [True: 1.78M, False: 614k]
  |  Branch (1080:74): [True: 27.9k, False: 586k]
  ------------------
 1081|       |
 1082|  2.40M|   const auto w0 = words[word_offset];
 1083|       |
 1084|  2.40M|   if(single_byte_window) {
  ------------------
  |  Branch (1084:7): [True: 1.81M, False: 586k]
  ------------------
 1085|  1.81M|      return (w0 >> bit_shift) & WindowMask;
 1086|  1.81M|   } else {
 1087|       |      // Otherwise we must join two words and extract the result
 1088|   586k|      const auto w1 = words[word_offset - 1];
 1089|   586k|      const auto combined = ((w0 >> bit_shift) | (w1 << (W_bits - bit_shift)));
 1090|   586k|      return combined & WindowMask;
 1091|   586k|   }
 1092|  2.40M|}

_ZN5Botan14OCB_DecryptionC2ENSt3__110unique_ptrINS_11BlockCipherENS1_14default_deleteIS3_EEEEm:
  121|  2.47k|            OCB_Mode(std::move(cipher), tag_size) {}
_ZNK5Botan8OCB_Mode8tag_sizeEv:
   47|  1.36k|      size_t tag_size() const final { return m_tag_size; }
_ZNK5Botan8OCB_Mode10block_sizeEv:
   64|   167k|      size_t block_size() const { return m_block_size; }
_ZNK5Botan8OCB_Mode10par_blocksEv:
   66|  65.4k|      size_t par_blocks() const { return m_par_blocks; }
_ZNK5Botan14OCB_Decryption18minimum_final_sizeEv:
  125|    277|      size_t minimum_final_size() const override { return tag_size(); }

_ZN5Botan6PCurve15PrimeOrderCurve6ScalarD2Ev:
   74|   336k|            ~Scalar() { _zeroize(); }
_ZNK5Botan6PCurve15PrimeOrderCurve6Scalar6_curveEv:
   78|   139k|            const auto& _curve() const { return m_curve; }
_ZNK5Botan6PCurve15PrimeOrderCurve6Scalar6_valueEv:
   80|   139k|            const auto& _value() const { return m_value; }
_ZN5Botan6PCurve15PrimeOrderCurve6Scalar7_createENSt3__110shared_ptrIKS1_EENS3_5arrayImLm9EEE:
   82|  79.5k|            static Scalar _create(CurvePtr curve, StorageUnit v) { return Scalar(std::move(curve), v); }
_ZN5Botan6PCurve15PrimeOrderCurve6ScalarC2ENSt3__110shared_ptrIKS1_EENS3_5arrayImLm9EEE:
   85|  79.5k|            Scalar(CurvePtr curve, StorageUnit v) : m_curve(std::move(curve)), m_value(v) {}
_ZNK5Botan6PCurve15PrimeOrderCurve11AffinePoint6_curveEv:
  106|  87.6k|            const auto& _curve() const { return m_curve; }
_ZNK5Botan6PCurve15PrimeOrderCurve11AffinePoint2_xEv:
  108|  87.6k|            const auto& _x() const { return m_x; }
_ZNK5Botan6PCurve15PrimeOrderCurve11AffinePoint2_yEv:
  110|  87.6k|            const auto& _y() const { return m_y; }
_ZN5Botan6PCurve15PrimeOrderCurve11AffinePoint7_createENSt3__110shared_ptrIKS1_EENS3_5arrayImLm9EEES8_:
  112|  18.4k|            static AffinePoint _create(CurvePtr curve, StorageUnit x, StorageUnit y) {
  113|  18.4k|               return AffinePoint(std::move(curve), x, y);
  114|  18.4k|            }
_ZN5Botan6PCurve15PrimeOrderCurve11AffinePointC2ENSt3__110shared_ptrIKS1_EENS3_5arrayImLm9EEES8_:
  117|  18.4k|            AffinePoint(CurvePtr curve, StorageUnit x, StorageUnit y) : m_curve(std::move(curve)), m_x(x), m_y(y) {}
_ZN5Botan6PCurve15PrimeOrderCurveD2Ev:
  165|      3|      virtual ~PrimeOrderCurve() = default;
_ZN5Botan6PCurve15PrimeOrderCurve20PrecomputedMul2TableD2Ev:
  162|  14.0k|            virtual ~PrecomputedMul2Table() = default;
_ZN5Botan6PCurve15PrimeOrderCurve11AffinePointC2EOS2_:
   99|  73.6k|            AffinePoint(AffinePoint&& other) = default;
_ZN5Botan6PCurve15PrimeOrderCurve11AffinePointD2Ev:
  102|   110k|            ~AffinePoint() = default;
_ZN5Botan6PCurve15PrimeOrderCurve6ScalarC2EOS2_:
   69|   200k|            Scalar(Scalar&& other) = default;
_ZN5Botan6PCurve15PrimeOrderCurve6ScalarC2ERKS2_:
   68|  55.9k|            Scalar(const Scalar& other) = default;
_ZN5Botan6PCurve15PrimeOrderCurve11AffinePointC2ERKS2_:
   98|  18.4k|            AffinePoint(const AffinePoint& other) = default;

pcurves_secp256k1.cpp:_ZN5Botan10dbl_a_zeroINS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEES8_EEEET_RKSE_:
  381|  36.3k|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|  36.3k|   const auto m = pt.x().square().mul3();
  385|       |
  386|       |   // Remaining cost: 3M + 3S + 3A + 2*2 + 1*4 + 1*8
  387|  36.3k|   const auto y2 = pt.y().square();
  388|  36.3k|   const auto s = pt.x().mul4() * y2;
  389|  36.3k|   const auto nx = m.square() - s.mul2();
  390|  36.3k|   const auto ny = m * (s - nx) - y2.square().mul8();
  391|  36.3k|   const auto nz = pt.y().mul2() * pt.z();
  392|       |
  393|  36.3k|   return ProjectivePoint(nx, ny, nz);
  394|  36.3k|}
pcurves_secp256k1.cpp:_ZN5Botan9point_addINS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEES8_EESC_EET_RKSE_SG_:
  187|  64.6k|inline constexpr ProjectivePoint point_add(const ProjectivePoint& a, const ProjectivePoint& b) {
  188|  64.6k|   const auto a_is_identity = a.is_identity();
  189|  64.6k|   const auto b_is_identity = b.is_identity();
  190|       |
  191|  64.6k|   const auto Z1Z1 = a.z().square();
  192|  64.6k|   const auto Z2Z2 = b.z().square();
  193|  64.6k|   const auto U1 = a.x() * Z2Z2;
  194|  64.6k|   const auto U2 = b.x() * Z1Z1;
  195|  64.6k|   const auto S1 = a.y() * b.z() * Z2Z2;
  196|  64.6k|   const auto S2 = b.y() * a.z() * Z1Z1;
  197|  64.6k|   const auto H = U2 - U1;
  198|  64.6k|   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|  64.6k|   if((r.is_zero() && H.is_zero() && !(a_is_identity && b_is_identity)).as_bool()) {
  ------------------
  |  Branch (210:7): [True: 0, False: 64.6k]
  ------------------
  211|      0|      return a.dbl();
  212|      0|   }
  213|       |
  214|  64.6k|   const auto HH = H.square();
  215|  64.6k|   const auto HHH = H * HH;
  216|  64.6k|   const auto V = U1 * HH;
  217|  64.6k|   const auto t2 = r.square();
  218|  64.6k|   const auto t3 = V + V;
  219|  64.6k|   const auto t4 = t2 - HHH;
  220|  64.6k|   auto X3 = t4 - t3;
  221|  64.6k|   const auto t5 = V - X3;
  222|  64.6k|   const auto t6 = S1 * HHH;
  223|  64.6k|   const auto t7 = r * t5;
  224|  64.6k|   auto Y3 = t7 - t6;
  225|  64.6k|   const auto t8 = b.z() * H;
  226|  64.6k|   auto Z3 = a.z() * t8;
  227|       |
  228|       |   // if a is identity then return b
  229|  64.6k|   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|  64.6k|   FieldElement::conditional_assign(X3, Y3, Z3, b_is_identity, a.x(), a.y(), a.z());
  233|       |
  234|  64.6k|   return ProjectivePoint(X3, Y3, Z3);
  235|  64.6k|}
pcurves_secp256k1.cpp:_ZN5Botan15to_affine_batchINS_6PCurve12_GLOBAL__N_19secp256k15CurveELb1EEEDaNSt3__14spanIKNT_15ProjectivePointELm18446744073709551615EEE:
  107|  2.36k|auto to_affine_batch(std::span<const typename C::ProjectivePoint> projective) {
  108|  2.36k|   using AffinePoint = typename C::AffinePoint;
  109|       |
  110|  2.36k|   const size_t N = projective.size();
  111|  2.36k|   std::vector<AffinePoint> affine;
  112|  2.36k|   affine.reserve(N);
  113|       |
  114|  2.36k|   CT::Choice any_identity = CT::Choice::no();
  115|       |
  116|   150k|   for(const auto& pt : projective) {
  ------------------
  |  Branch (116:23): [True: 150k, False: 2.36k]
  ------------------
  117|   150k|      any_identity = any_identity || pt.is_identity();
  118|   150k|   }
  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|  2.36k|   if(N <= 2 || any_identity.as_bool()) {
  ------------------
  |  Branch (126:7): [True: 0, False: 2.36k]
  |  Branch (126:17): [True: 0, False: 2.36k]
  ------------------
  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|  2.36k|   } else {
  134|  2.36k|      std::vector<typename C::FieldElement> c;
  135|  2.36k|      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|  2.36k|      c.push_back(projective[0].z());
  145|   150k|      for(size_t i = 1; i != N; ++i) {
  ------------------
  |  Branch (145:25): [True: 148k, False: 2.36k]
  ------------------
  146|   148k|         c.push_back(c[i - 1] * projective[i].z());
  147|   148k|      }
  148|       |
  149|  2.36k|      auto s_inv = [&]() {
  150|  2.36k|         if constexpr(VariableTime) {
  151|  2.36k|            return c[N - 1].invert_vartime();
  152|  2.36k|         } else {
  153|  2.36k|            return invert_field_element<C>(c[N - 1]);
  154|  2.36k|         }
  155|  2.36k|      }();
  156|       |
  157|   150k|      for(size_t i = N - 1; i > 0; --i) {
  ------------------
  |  Branch (157:29): [True: 148k, False: 2.36k]
  ------------------
  158|   148k|         const auto& p = projective[i];
  159|       |
  160|   148k|         const auto z_inv = s_inv * c[i - 1];
  161|   148k|         const auto z2_inv = z_inv.square();
  162|   148k|         const auto z3_inv = z_inv * z2_inv;
  163|       |
  164|   148k|         s_inv = s_inv * p.z();
  165|       |
  166|   148k|         affine.push_back(AffinePoint(p.x() * z2_inv, p.y() * z3_inv));
  167|   148k|      }
  168|       |
  169|  2.36k|      const auto z2_inv = s_inv.square();
  170|  2.36k|      const auto z3_inv = s_inv * z2_inv;
  171|  2.36k|      affine.push_back(AffinePoint(projective[0].x() * z2_inv, projective[0].y() * z3_inv));
  172|  2.36k|      std::reverse(affine.begin(), affine.end());
  173|  2.36k|      return affine;
  174|  2.36k|   }
  175|       |
  176|      0|   return affine;
  177|  2.36k|}
pcurves_secp256k1.cpp:_ZZN5Botan15to_affine_batchINS_6PCurve12_GLOBAL__N_19secp256k15CurveELb1EEEDaNSt3__14spanIKNT_15ProjectivePointELm18446744073709551615EEEENKUlvE_clEv:
  149|  2.36k|      auto s_inv = [&]() {
  150|  2.36k|         if constexpr(VariableTime) {
  151|  2.36k|            return c[N - 1].invert_vartime();
  152|       |         } else {
  153|       |            return invert_field_element<C>(c[N - 1]);
  154|       |         }
  155|  2.36k|      }();
pcurves_secp256k1.cpp:_ZN5Botan15point_add_mixedINS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEES8_EENS_16AffineCurvePointISC_EESC_EET_RKSG_RKT0_RKT1_:
  240|   240k|                                                 const FieldElement& one) {
  241|   240k|   const auto a_is_identity = a.is_identity();
  242|   240k|   const auto b_is_identity = b.is_identity();
  243|       |
  244|       |   /*
  245|       |   https://hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-3.html#addition-add-1998-cmo-2
  246|       |
  247|       |   Cost: 8M + 3S + 6add + 1*2
  248|       |   */
  249|       |
  250|   240k|   const auto Z1Z1 = a.z().square();
  251|   240k|   const auto U2 = b.x() * Z1Z1;
  252|   240k|   const auto S2 = b.y() * a.z() * Z1Z1;
  253|   240k|   const auto H = U2 - a.x();
  254|   240k|   const auto r = S2 - a.y();
  255|       |
  256|       |   /* Risky conditional
  257|       |   *
  258|       |   * This implementation uses projective coordinates, which do not have an efficient complete
  259|       |   * addition formula. We rely on the design of the multiplication algorithms to avoid doublings.
  260|       |   *
  261|       |   * This conditional only comes into play for the actual doubling case, not x + (-x) which
  262|       |   * is another exceptional case in some circumstances. Here if a == -b then H == 0 && r != 0,
  263|       |   * in which case at the end we'll set z to a.z * H = 0, resulting in the correct output
  264|       |   * (the identity element)
  265|       |   */
  266|   240k|   if((r.is_zero() && H.is_zero() && !(a_is_identity && b_is_identity)).as_bool()) {
  ------------------
  |  Branch (266:7): [True: 0, False: 240k]
  ------------------
  267|      0|      return a.dbl();
  268|      0|   }
  269|       |
  270|   240k|   const auto HH = H.square();
  271|   240k|   const auto HHH = H * HH;
  272|   240k|   const auto V = a.x() * HH;
  273|   240k|   const auto t2 = r.square();
  274|   240k|   const auto t3 = V + V;
  275|   240k|   const auto t4 = t2 - HHH;
  276|   240k|   auto X3 = t4 - t3;
  277|   240k|   const auto t5 = V - X3;
  278|   240k|   const auto t6 = a.y() * HHH;
  279|   240k|   const auto t7 = r * t5;
  280|   240k|   auto Y3 = t7 - t6;
  281|   240k|   auto Z3 = a.z() * H;
  282|       |
  283|       |   // if a is identity then return b
  284|   240k|   FieldElement::conditional_assign(X3, Y3, Z3, a_is_identity, b.x(), b.y(), one);
  285|       |
  286|       |   // if b is identity then return a
  287|   240k|   FieldElement::conditional_assign(X3, Y3, Z3, b_is_identity, a.x(), a.y(), a.z());
  288|       |
  289|   240k|   return ProjectivePoint(X3, Y3, Z3);
  290|   240k|}
pcurves_secp256k1.cpp:_ZN5Botan12dbl_n_a_zeroINS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEES8_EEEET_RKSE_m:
  457|   199k|inline constexpr ProjectivePoint dbl_n_a_zero(const ProjectivePoint& pt, size_t n) {
  458|   199k|   auto nx = pt.x();
  459|   199k|   auto ny = pt.y().mul2();
  460|   199k|   auto nz = pt.z();
  461|       |
  462|       |   // Conditional ok: loop iteration count is public
  463|   796k|   while(n > 0) {
  ------------------
  |  Branch (463:10): [True: 597k, False: 199k]
  ------------------
  464|   597k|      const auto ny2 = ny.square();
  465|   597k|      const auto ny4 = ny2.square();
  466|   597k|      const auto t1 = nx.square().mul3();
  467|   597k|      const auto t2 = nx * ny2;
  468|   597k|      nx = t1.square() - t2.mul2();
  469|   597k|      nz *= ny;
  470|   597k|      ny = t1 * (t2 - nx).mul2() - ny4;
  471|   597k|      n--;
  472|   597k|   }
  473|   199k|   return ProjectivePoint(nx, ny.div2(), nz);
  474|   199k|}
pcurves_secp256r1.cpp:_ZN5Botan13dbl_a_minus_3INS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS4_9secp256r16ParamsES5_E11FieldParamsEEEEES8_EEEET_RKSE_:
  362|   109k|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|   109k|   const auto z2 = pt.z().square();
  368|   109k|   const auto m = (pt.x() - z2).mul3() * (pt.x() + z2);
  369|       |
  370|       |   // Remaining cost: 3M + 3S + 3A + 2*2 + 1*4 + 1*8
  371|   109k|   const auto y2 = pt.y().square();
  372|   109k|   const auto s = pt.x().mul4() * y2;
  373|   109k|   const auto nx = m.square() - s.mul2();
  374|   109k|   const auto ny = m * (s - nx) - y2.square().mul8();
  375|   109k|   const auto nz = pt.y().mul2() * pt.z();
  376|       |
  377|   109k|   return ProjectivePoint(nx, ny, nz);
  378|   109k|}
pcurves_secp256r1.cpp:_ZN5Botan9point_addINS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS4_9secp256r16ParamsES5_E11FieldParamsEEEEES8_EESC_EET_RKSE_SG_:
  187|   197k|inline constexpr ProjectivePoint point_add(const ProjectivePoint& a, const ProjectivePoint& b) {
  188|   197k|   const auto a_is_identity = a.is_identity();
  189|   197k|   const auto b_is_identity = b.is_identity();
  190|       |
  191|   197k|   const auto Z1Z1 = a.z().square();
  192|   197k|   const auto Z2Z2 = b.z().square();
  193|   197k|   const auto U1 = a.x() * Z2Z2;
  194|   197k|   const auto U2 = b.x() * Z1Z1;
  195|   197k|   const auto S1 = a.y() * b.z() * Z2Z2;
  196|   197k|   const auto S2 = b.y() * a.z() * Z1Z1;
  197|   197k|   const auto H = U2 - U1;
  198|   197k|   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|   197k|   if((r.is_zero() && H.is_zero() && !(a_is_identity && b_is_identity)).as_bool()) {
  ------------------
  |  Branch (210:7): [True: 0, False: 197k]
  ------------------
  211|      0|      return a.dbl();
  212|      0|   }
  213|       |
  214|   197k|   const auto HH = H.square();
  215|   197k|   const auto HHH = H * HH;
  216|   197k|   const auto V = U1 * HH;
  217|   197k|   const auto t2 = r.square();
  218|   197k|   const auto t3 = V + V;
  219|   197k|   const auto t4 = t2 - HHH;
  220|   197k|   auto X3 = t4 - t3;
  221|   197k|   const auto t5 = V - X3;
  222|   197k|   const auto t6 = S1 * HHH;
  223|   197k|   const auto t7 = r * t5;
  224|   197k|   auto Y3 = t7 - t6;
  225|   197k|   const auto t8 = b.z() * H;
  226|   197k|   auto Z3 = a.z() * t8;
  227|       |
  228|       |   // if a is identity then return b
  229|   197k|   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|   197k|   FieldElement::conditional_assign(X3, Y3, Z3, b_is_identity, a.x(), a.y(), a.z());
  233|       |
  234|   197k|   return ProjectivePoint(X3, Y3, Z3);
  235|   197k|}
pcurves_secp256r1.cpp:_ZN5Botan15to_affine_batchINS_6PCurve12_GLOBAL__N_19secp256r15CurveELb1EEEDaNSt3__14spanIKNT_15ProjectivePointELm18446744073709551615EEE:
  107|  7.27k|auto to_affine_batch(std::span<const typename C::ProjectivePoint> projective) {
  108|  7.27k|   using AffinePoint = typename C::AffinePoint;
  109|       |
  110|  7.27k|   const size_t N = projective.size();
  111|  7.27k|   std::vector<AffinePoint> affine;
  112|  7.27k|   affine.reserve(N);
  113|       |
  114|  7.27k|   CT::Choice any_identity = CT::Choice::no();
  115|       |
  116|   459k|   for(const auto& pt : projective) {
  ------------------
  |  Branch (116:23): [True: 459k, False: 7.27k]
  ------------------
  117|   459k|      any_identity = any_identity || pt.is_identity();
  118|   459k|   }
  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|  7.27k|   if(N <= 2 || any_identity.as_bool()) {
  ------------------
  |  Branch (126:7): [True: 0, False: 7.27k]
  |  Branch (126:17): [True: 0, False: 7.27k]
  ------------------
  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|  7.27k|   } else {
  134|  7.27k|      std::vector<typename C::FieldElement> c;
  135|  7.27k|      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|  7.27k|      c.push_back(projective[0].z());
  145|   459k|      for(size_t i = 1; i != N; ++i) {
  ------------------
  |  Branch (145:25): [True: 452k, False: 7.27k]
  ------------------
  146|   452k|         c.push_back(c[i - 1] * projective[i].z());
  147|   452k|      }
  148|       |
  149|  7.27k|      auto s_inv = [&]() {
  150|  7.27k|         if constexpr(VariableTime) {
  151|  7.27k|            return c[N - 1].invert_vartime();
  152|  7.27k|         } else {
  153|  7.27k|            return invert_field_element<C>(c[N - 1]);
  154|  7.27k|         }
  155|  7.27k|      }();
  156|       |
  157|   459k|      for(size_t i = N - 1; i > 0; --i) {
  ------------------
  |  Branch (157:29): [True: 452k, False: 7.27k]
  ------------------
  158|   452k|         const auto& p = projective[i];
  159|       |
  160|   452k|         const auto z_inv = s_inv * c[i - 1];
  161|   452k|         const auto z2_inv = z_inv.square();
  162|   452k|         const auto z3_inv = z_inv * z2_inv;
  163|       |
  164|   452k|         s_inv = s_inv * p.z();
  165|       |
  166|   452k|         affine.push_back(AffinePoint(p.x() * z2_inv, p.y() * z3_inv));
  167|   452k|      }
  168|       |
  169|  7.27k|      const auto z2_inv = s_inv.square();
  170|  7.27k|      const auto z3_inv = s_inv * z2_inv;
  171|  7.27k|      affine.push_back(AffinePoint(projective[0].x() * z2_inv, projective[0].y() * z3_inv));
  172|  7.27k|      std::reverse(affine.begin(), affine.end());
  173|  7.27k|      return affine;
  174|  7.27k|   }
  175|       |
  176|      0|   return affine;
  177|  7.27k|}
pcurves_secp256r1.cpp:_ZZN5Botan15to_affine_batchINS_6PCurve12_GLOBAL__N_19secp256r15CurveELb1EEEDaNSt3__14spanIKNT_15ProjectivePointELm18446744073709551615EEEENKUlvE_clEv:
  149|  7.27k|      auto s_inv = [&]() {
  150|  7.27k|         if constexpr(VariableTime) {
  151|  7.27k|            return c[N - 1].invert_vartime();
  152|       |         } else {
  153|       |            return invert_field_element<C>(c[N - 1]);
  154|       |         }
  155|  7.27k|      }();
pcurves_secp256r1.cpp:_ZN5Botan15point_add_mixedINS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS4_9secp256r16ParamsES5_E11FieldParamsEEEEES8_EENS_16AffineCurvePointISC_EESC_EET_RKSG_RKT0_RKT1_:
  240|   741k|                                                 const FieldElement& one) {
  241|   741k|   const auto a_is_identity = a.is_identity();
  242|   741k|   const auto b_is_identity = b.is_identity();
  243|       |
  244|       |   /*
  245|       |   https://hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-3.html#addition-add-1998-cmo-2
  246|       |
  247|       |   Cost: 8M + 3S + 6add + 1*2
  248|       |   */
  249|       |
  250|   741k|   const auto Z1Z1 = a.z().square();
  251|   741k|   const auto U2 = b.x() * Z1Z1;
  252|   741k|   const auto S2 = b.y() * a.z() * Z1Z1;
  253|   741k|   const auto H = U2 - a.x();
  254|   741k|   const auto r = S2 - a.y();
  255|       |
  256|       |   /* Risky conditional
  257|       |   *
  258|       |   * This implementation uses projective coordinates, which do not have an efficient complete
  259|       |   * addition formula. We rely on the design of the multiplication algorithms to avoid doublings.
  260|       |   *
  261|       |   * This conditional only comes into play for the actual doubling case, not x + (-x) which
  262|       |   * is another exceptional case in some circumstances. Here if a == -b then H == 0 && r != 0,
  263|       |   * in which case at the end we'll set z to a.z * H = 0, resulting in the correct output
  264|       |   * (the identity element)
  265|       |   */
  266|   741k|   if((r.is_zero() && H.is_zero() && !(a_is_identity && b_is_identity)).as_bool()) {
  ------------------
  |  Branch (266:7): [True: 0, False: 741k]
  ------------------
  267|      0|      return a.dbl();
  268|      0|   }
  269|       |
  270|   741k|   const auto HH = H.square();
  271|   741k|   const auto HHH = H * HH;
  272|   741k|   const auto V = a.x() * HH;
  273|   741k|   const auto t2 = r.square();
  274|   741k|   const auto t3 = V + V;
  275|   741k|   const auto t4 = t2 - HHH;
  276|   741k|   auto X3 = t4 - t3;
  277|   741k|   const auto t5 = V - X3;
  278|   741k|   const auto t6 = a.y() * HHH;
  279|   741k|   const auto t7 = r * t5;
  280|   741k|   auto Y3 = t7 - t6;
  281|   741k|   auto Z3 = a.z() * H;
  282|       |
  283|       |   // if a is identity then return b
  284|   741k|   FieldElement::conditional_assign(X3, Y3, Z3, a_is_identity, b.x(), b.y(), one);
  285|       |
  286|       |   // if b is identity then return a
  287|   741k|   FieldElement::conditional_assign(X3, Y3, Z3, b_is_identity, a.x(), a.y(), a.z());
  288|       |
  289|   741k|   return ProjectivePoint(X3, Y3, Z3);
  290|   741k|}
pcurves_secp256r1.cpp:_ZN5Botan15dbl_n_a_minus_3INS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS4_9secp256r16ParamsES5_E11FieldParamsEEEEES8_EEEET_RKSE_m:
  432|   612k|inline constexpr ProjectivePoint dbl_n_a_minus_3(const ProjectivePoint& pt, size_t n) {
  433|   612k|   auto nx = pt.x();
  434|   612k|   auto ny = pt.y().mul2();
  435|   612k|   auto nz = pt.z();
  436|   612k|   auto w = nz.square().square();
  437|       |
  438|       |   // Conditional ok: loop iteration count is public
  439|  2.45M|   while(n > 0) {
  ------------------
  |  Branch (439:10): [True: 1.83M, False: 612k]
  ------------------
  440|  1.83M|      const auto ny2 = ny.square();
  441|  1.83M|      const auto ny4 = ny2.square();
  442|  1.83M|      const auto t1 = (nx.square() - w).mul3();
  443|  1.83M|      const auto t2 = nx * ny2;
  444|  1.83M|      nx = t1.square() - t2.mul2();
  445|  1.83M|      nz *= ny;
  446|  1.83M|      ny = t1 * (t2 - nx).mul2() - ny4;
  447|  1.83M|      n--;
  448|       |      // Conditional ok: loop iteration count is public
  449|  1.83M|      if(n > 0) {
  ------------------
  |  Branch (449:10): [True: 1.22M, False: 612k]
  ------------------
  450|  1.22M|         w *= ny4;
  451|  1.22M|      }
  452|  1.83M|   }
  453|   612k|   return ProjectivePoint(nx, ny.div2(), nz);
  454|   612k|}
pcurves_sm2p256v1.cpp:_ZN5Botan13dbl_a_minus_3INS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEES8_EEEET_RKSE_:
  362|  66.6k|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|  66.6k|   const auto z2 = pt.z().square();
  368|  66.6k|   const auto m = (pt.x() - z2).mul3() * (pt.x() + z2);
  369|       |
  370|       |   // Remaining cost: 3M + 3S + 3A + 2*2 + 1*4 + 1*8
  371|  66.6k|   const auto y2 = pt.y().square();
  372|  66.6k|   const auto s = pt.x().mul4() * y2;
  373|  66.6k|   const auto nx = m.square() - s.mul2();
  374|  66.6k|   const auto ny = m * (s - nx) - y2.square().mul8();
  375|  66.6k|   const auto nz = pt.y().mul2() * pt.z();
  376|       |
  377|  66.6k|   return ProjectivePoint(nx, ny, nz);
  378|  66.6k|}
pcurves_sm2p256v1.cpp:_ZN5Botan9point_addINS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEES8_EESC_EET_RKSE_SG_:
  187|   119k|inline constexpr ProjectivePoint point_add(const ProjectivePoint& a, const ProjectivePoint& b) {
  188|   119k|   const auto a_is_identity = a.is_identity();
  189|   119k|   const auto b_is_identity = b.is_identity();
  190|       |
  191|   119k|   const auto Z1Z1 = a.z().square();
  192|   119k|   const auto Z2Z2 = b.z().square();
  193|   119k|   const auto U1 = a.x() * Z2Z2;
  194|   119k|   const auto U2 = b.x() * Z1Z1;
  195|   119k|   const auto S1 = a.y() * b.z() * Z2Z2;
  196|   119k|   const auto S2 = b.y() * a.z() * Z1Z1;
  197|   119k|   const auto H = U2 - U1;
  198|   119k|   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|   119k|   if((r.is_zero() && H.is_zero() && !(a_is_identity && b_is_identity)).as_bool()) {
  ------------------
  |  Branch (210:7): [True: 0, False: 119k]
  ------------------
  211|      0|      return a.dbl();
  212|      0|   }
  213|       |
  214|   119k|   const auto HH = H.square();
  215|   119k|   const auto HHH = H * HH;
  216|   119k|   const auto V = U1 * HH;
  217|   119k|   const auto t2 = r.square();
  218|   119k|   const auto t3 = V + V;
  219|   119k|   const auto t4 = t2 - HHH;
  220|   119k|   auto X3 = t4 - t3;
  221|   119k|   const auto t5 = V - X3;
  222|   119k|   const auto t6 = S1 * HHH;
  223|   119k|   const auto t7 = r * t5;
  224|   119k|   auto Y3 = t7 - t6;
  225|   119k|   const auto t8 = b.z() * H;
  226|   119k|   auto Z3 = a.z() * t8;
  227|       |
  228|       |   // if a is identity then return b
  229|   119k|   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|   119k|   FieldElement::conditional_assign(X3, Y3, Z3, b_is_identity, a.x(), a.y(), a.z());
  233|       |
  234|   119k|   return ProjectivePoint(X3, Y3, Z3);
  235|   119k|}
pcurves_sm2p256v1.cpp:_ZN5Botan15to_affine_batchINS_6PCurve12_GLOBAL__N_19sm2p256v15CurveELb1EEEDaNSt3__14spanIKNT_15ProjectivePointELm18446744073709551615EEE:
  107|  4.38k|auto to_affine_batch(std::span<const typename C::ProjectivePoint> projective) {
  108|  4.38k|   using AffinePoint = typename C::AffinePoint;
  109|       |
  110|  4.38k|   const size_t N = projective.size();
  111|  4.38k|   std::vector<AffinePoint> affine;
  112|  4.38k|   affine.reserve(N);
  113|       |
  114|  4.38k|   CT::Choice any_identity = CT::Choice::no();
  115|       |
  116|   277k|   for(const auto& pt : projective) {
  ------------------
  |  Branch (116:23): [True: 277k, False: 4.38k]
  ------------------
  117|   277k|      any_identity = any_identity || pt.is_identity();
  118|   277k|   }
  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|  4.38k|   if(N <= 2 || any_identity.as_bool()) {
  ------------------
  |  Branch (126:7): [True: 0, False: 4.38k]
  |  Branch (126:17): [True: 0, False: 4.38k]
  ------------------
  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|  4.38k|   } else {
  134|  4.38k|      std::vector<typename C::FieldElement> c;
  135|  4.38k|      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|  4.38k|      c.push_back(projective[0].z());
  145|   277k|      for(size_t i = 1; i != N; ++i) {
  ------------------
  |  Branch (145:25): [True: 273k, False: 4.38k]
  ------------------
  146|   273k|         c.push_back(c[i - 1] * projective[i].z());
  147|   273k|      }
  148|       |
  149|  4.38k|      auto s_inv = [&]() {
  150|  4.38k|         if constexpr(VariableTime) {
  151|  4.38k|            return c[N - 1].invert_vartime();
  152|  4.38k|         } else {
  153|  4.38k|            return invert_field_element<C>(c[N - 1]);
  154|  4.38k|         }
  155|  4.38k|      }();
  156|       |
  157|   277k|      for(size_t i = N - 1; i > 0; --i) {
  ------------------
  |  Branch (157:29): [True: 273k, False: 4.38k]
  ------------------
  158|   273k|         const auto& p = projective[i];
  159|       |
  160|   273k|         const auto z_inv = s_inv * c[i - 1];
  161|   273k|         const auto z2_inv = z_inv.square();
  162|   273k|         const auto z3_inv = z_inv * z2_inv;
  163|       |
  164|   273k|         s_inv = s_inv * p.z();
  165|       |
  166|   273k|         affine.push_back(AffinePoint(p.x() * z2_inv, p.y() * z3_inv));
  167|   273k|      }
  168|       |
  169|  4.38k|      const auto z2_inv = s_inv.square();
  170|  4.38k|      const auto z3_inv = s_inv * z2_inv;
  171|  4.38k|      affine.push_back(AffinePoint(projective[0].x() * z2_inv, projective[0].y() * z3_inv));
  172|  4.38k|      std::reverse(affine.begin(), affine.end());
  173|  4.38k|      return affine;
  174|  4.38k|   }
  175|       |
  176|      0|   return affine;
  177|  4.38k|}
pcurves_sm2p256v1.cpp:_ZZN5Botan15to_affine_batchINS_6PCurve12_GLOBAL__N_19sm2p256v15CurveELb1EEEDaNSt3__14spanIKNT_15ProjectivePointELm18446744073709551615EEEENKUlvE_clEv:
  149|  4.38k|      auto s_inv = [&]() {
  150|  4.38k|         if constexpr(VariableTime) {
  151|  4.38k|            return c[N - 1].invert_vartime();
  152|       |         } else {
  153|       |            return invert_field_element<C>(c[N - 1]);
  154|       |         }
  155|  4.38k|      }();
pcurves_sm2p256v1.cpp:_ZN5Botan15point_add_mixedINS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEES8_EENS_16AffineCurvePointISC_EESC_EET_RKSG_RKT0_RKT1_:
  240|   445k|                                                 const FieldElement& one) {
  241|   445k|   const auto a_is_identity = a.is_identity();
  242|   445k|   const auto b_is_identity = b.is_identity();
  243|       |
  244|       |   /*
  245|       |   https://hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-3.html#addition-add-1998-cmo-2
  246|       |
  247|       |   Cost: 8M + 3S + 6add + 1*2
  248|       |   */
  249|       |
  250|   445k|   const auto Z1Z1 = a.z().square();
  251|   445k|   const auto U2 = b.x() * Z1Z1;
  252|   445k|   const auto S2 = b.y() * a.z() * Z1Z1;
  253|   445k|   const auto H = U2 - a.x();
  254|   445k|   const auto r = S2 - a.y();
  255|       |
  256|       |   /* Risky conditional
  257|       |   *
  258|       |   * This implementation uses projective coordinates, which do not have an efficient complete
  259|       |   * addition formula. We rely on the design of the multiplication algorithms to avoid doublings.
  260|       |   *
  261|       |   * This conditional only comes into play for the actual doubling case, not x + (-x) which
  262|       |   * is another exceptional case in some circumstances. Here if a == -b then H == 0 && r != 0,
  263|       |   * in which case at the end we'll set z to a.z * H = 0, resulting in the correct output
  264|       |   * (the identity element)
  265|       |   */
  266|   445k|   if((r.is_zero() && H.is_zero() && !(a_is_identity && b_is_identity)).as_bool()) {
  ------------------
  |  Branch (266:7): [True: 0, False: 445k]
  ------------------
  267|      0|      return a.dbl();
  268|      0|   }
  269|       |
  270|   445k|   const auto HH = H.square();
  271|   445k|   const auto HHH = H * HH;
  272|   445k|   const auto V = a.x() * HH;
  273|   445k|   const auto t2 = r.square();
  274|   445k|   const auto t3 = V + V;
  275|   445k|   const auto t4 = t2 - HHH;
  276|   445k|   auto X3 = t4 - t3;
  277|   445k|   const auto t5 = V - X3;
  278|   445k|   const auto t6 = a.y() * HHH;
  279|   445k|   const auto t7 = r * t5;
  280|   445k|   auto Y3 = t7 - t6;
  281|   445k|   auto Z3 = a.z() * H;
  282|       |
  283|       |   // if a is identity then return b
  284|   445k|   FieldElement::conditional_assign(X3, Y3, Z3, a_is_identity, b.x(), b.y(), one);
  285|       |
  286|       |   // if b is identity then return a
  287|   445k|   FieldElement::conditional_assign(X3, Y3, Z3, b_is_identity, a.x(), a.y(), a.z());
  288|       |
  289|   445k|   return ProjectivePoint(X3, Y3, Z3);
  290|   445k|}
pcurves_sm2p256v1.cpp:_ZN5Botan15dbl_n_a_minus_3INS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEES8_EEEET_RKSE_m:
  432|   367k|inline constexpr ProjectivePoint dbl_n_a_minus_3(const ProjectivePoint& pt, size_t n) {
  433|   367k|   auto nx = pt.x();
  434|   367k|   auto ny = pt.y().mul2();
  435|   367k|   auto nz = pt.z();
  436|   367k|   auto w = nz.square().square();
  437|       |
  438|       |   // Conditional ok: loop iteration count is public
  439|  1.47M|   while(n > 0) {
  ------------------
  |  Branch (439:10): [True: 1.10M, False: 367k]
  ------------------
  440|  1.10M|      const auto ny2 = ny.square();
  441|  1.10M|      const auto ny4 = ny2.square();
  442|  1.10M|      const auto t1 = (nx.square() - w).mul3();
  443|  1.10M|      const auto t2 = nx * ny2;
  444|  1.10M|      nx = t1.square() - t2.mul2();
  445|  1.10M|      nz *= ny;
  446|  1.10M|      ny = t1 * (t2 - nx).mul2() - ny4;
  447|  1.10M|      n--;
  448|       |      // Conditional ok: loop iteration count is public
  449|  1.10M|      if(n > 0) {
  ------------------
  |  Branch (449:10): [True: 735k, False: 367k]
  ------------------
  450|   735k|         w *= ny4;
  451|   735k|      }
  452|  1.10M|   }
  453|   367k|   return ProjectivePoint(nx, ny.div2(), nz);
  454|   367k|}

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|  7.09k|      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|  7.09k|         auto x = pt.x();
 1027|  7.09k|         auto y = pt.y();
 1028|  7.09k|         auto z = FieldElement::one();
 1029|       |
 1030|  7.09k|         FieldElement::conditional_swap(pt.is_identity(), y, z);
 1031|       |
 1032|  7.09k|         return ProjectiveCurvePoint(x, y, z);
 1033|  7.09k|      }
pcurves_secp256k1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE1xEv:
  971|   752k|      constexpr const FieldElement& x() const { return m_x; }
pcurves_secp256k1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE1yEv:
  976|   752k|      constexpr const FieldElement& y() const { return m_y; }
pcurves_secp256k1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE3oneEv:
  200|   247k|      static constexpr Self one() { return Self(Rep::one()); }
pcurves_secp256k1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEC2ENSt3__15arrayImLm4EEE:
  898|  16.4M|      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|  7.09k|      static constexpr void conditional_swap(CT::Choice cond, Self& x, Self& y) {
  411|  7.09k|         const W mask = cond.into_bitmask<W>();
  412|       |
  413|  35.4k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (413:28): [True: 28.3k, False: 7.09k]
  ------------------
  414|  28.3k|            auto nx = Botan::choose(mask, y.m_val[i], x.m_val[i]);
  415|  28.3k|            auto ny = Botan::choose(mask, x.m_val[i], y.m_val[i]);
  416|  28.3k|            x.m_val[i] = nx;
  417|  28.3k|            y.m_val[i] = ny;
  418|  28.3k|         }
  419|  7.09k|      }
pcurves_secp256k1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE11is_identityEv:
  928|   256k|      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|  1.64M|      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|   547k|            m_x(x), m_y(y), m_z(z) {}
pcurves_secp256k1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E3dblEv:
 1121|  36.3k|      constexpr Self dbl() const {
 1122|       |         if constexpr(Self::A_is_minus_3) {
 1123|       |            return dbl_a_minus_3(*this);
 1124|  36.3k|         } else if constexpr(Self::A_is_zero) {
 1125|  36.3k|            return dbl_a_zero(*this);
 1126|       |         } else {
 1127|       |            return dbl_generic(*this, A);
 1128|       |         }
 1129|  36.3k|      }
pcurves_secp256k1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E1xEv:
 1162|  1.40M|      constexpr const FieldElement& x() const { return m_x; }
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE6squareEv:
  426|  3.67M|      constexpr BOTAN_FORCE_INLINE Self square() const {
  427|  3.67M|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  428|  3.67M|         comba_sqr<N>(z.data(), this->data());
  429|  3.67M|         return Self(Rep::redc(z));
  430|  3.67M|      }
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE4dataEv:
  896|  15.9M|      constexpr const W* data() const { return m_val.data(); }
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE4mul3Ev:
  335|   633k|      constexpr inline Self mul3() const { return mul2() + (*this); }
pcurves_secp256k1.cpp:_ZN5BotanplERKNS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEESC_:
  265|  1.35M|      friend constexpr BOTAN_FORCE_INLINE Self operator+(const Self& a, const Self& b) {
  266|  1.35M|         std::array<W, N> t;  // NOLINT(*-member-init)
  267|       |
  268|  1.35M|         W carry = 0;
  269|  6.76M|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (269:28): [True: 5.41M, False: 1.35M]
  ------------------
  270|  5.41M|            t[i] = word_add(a.m_val[i], b.m_val[i], &carry);
  271|  5.41M|         }
  272|       |
  273|  1.35M|         std::array<W, N> r;  // NOLINT(*-member-init)
  274|  1.35M|         bigint_monty_maybe_sub<N>(r.data(), carry, t.data(), P.data());
  275|  1.35M|         return Self(r);
  276|  1.35M|      }
pcurves_secp256k1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E1yEv:
 1167|  1.40M|      constexpr const FieldElement& y() const { return m_y; }
pcurves_secp256k1.cpp:_ZN5BotanmlERKNS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEESC_:
  346|  4.90M|      friend constexpr BOTAN_FORCE_INLINE Self operator*(const Self& a, const Self& b) {
  347|  4.90M|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  348|  4.90M|         comba_mul<N>(z.data(), a.data(), b.data());
  349|  4.90M|         return Self(Rep::redc(z));
  350|  4.90M|      }
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE4mul4Ev:
  338|  36.3k|      constexpr inline Self mul4() const { return mul2().mul2(); }
pcurves_secp256k1.cpp:_ZN5BotanmiERKNS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEESC_:
  281|  3.73M|      friend constexpr BOTAN_FORCE_INLINE Self operator-(const Self& a, const Self& b) {
  282|  3.73M|         std::array<W, N> r;  // NOLINT(*-member-init)
  283|  3.73M|         W carry = 0;
  284|  18.6M|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (284:28): [True: 14.9M, False: 3.73M]
  ------------------
  285|  14.9M|            r[i] = word_sub(a.m_val[i], b.m_val[i], &carry);
  286|  14.9M|         }
  287|       |
  288|  3.73M|         const auto mask = CT::Mask<W>::expand(carry).value();
  289|       |
  290|  3.73M|         carry = 0;
  291|       |
  292|  18.6M|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (292:28): [True: 14.9M, False: 3.73M]
  ------------------
  293|  14.9M|            r[i] = word_add(r[i], P[i] & mask, &carry);
  294|  14.9M|         }
  295|       |
  296|  3.73M|         return Self(r);
  297|  3.73M|      }
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE4mul2Ev:
  325|  2.28M|      constexpr BOTAN_FORCE_INLINE Self mul2() const {
  326|  2.28M|         std::array<W, N> t = value();
  327|  2.28M|         const W carry = shift_left<1>(t);
  328|       |
  329|  2.28M|         std::array<W, N> r;  // NOLINT(*-member-init)
  330|  2.28M|         bigint_monty_maybe_sub<N>(r.data(), carry, t.data(), P.data());
  331|  2.28M|         return Self(r);
  332|  2.28M|      }
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE5valueEv:
  894|  2.48M|      constexpr const std::array<W, N>& value() const { return m_val; }
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE4mul8Ev:
  341|  36.3k|      constexpr inline Self mul8() const { return mul2().mul2().mul2(); }
pcurves_secp256k1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E1zEv:
 1172|  2.53M|      constexpr const FieldElement& z() const { return m_z; }
pcurves_secp256k1.cpp:_ZN5BotanplERKNS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_EESE_:
 1064|  64.6k|      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|  64.6k|      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|   522k|      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|   610k|         Self& x, Self& y, Self& z, CT::Choice cond, const Self& nx, const Self& ny, const Self& nz) {
  396|   610k|         const W mask = cond.into_bitmask<W>();
  397|       |
  398|  3.05M|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (398:28): [True: 2.44M, False: 610k]
  ------------------
  399|  2.44M|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  400|  2.44M|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  401|  2.44M|            z.m_val[i] = Botan::choose(mask, nz.m_val[i], z.m_val[i]);
  402|  2.44M|         }
  403|   610k|      }
pcurves_secp256k1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEmLERKSA_:
  355|   597k|      constexpr BOTAN_FORCE_INLINE Self& operator*=(const Self& other) {
  356|   597k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  357|   597k|         comba_mul<N>(z.data(), data(), other.data());
  358|   597k|         m_val = Rep::redc(z);
  359|   597k|         return (*this);
  360|   597k|      }
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE14invert_vartimeEv:
  598|  2.36k|      constexpr Self invert_vartime() const {
  599|       |         // Conditional ok: this function is variable time
  600|  2.36k|         if(this->is_zero().as_bool()) {
  ------------------
  |  Branch (600:13): [True: 0, False: 2.36k]
  ------------------
  601|      0|            return Self::zero();
  602|      0|         }
  603|       |
  604|  2.36k|         auto x = Self(std::array<W, N>{1});  // 1 in standard domain
  605|  2.36k|         auto b = Self(this->to_words());     // *this in standard domain
  606|       |
  607|       |         // First loop iteration
  608|  2.36k|         Self::_invert_vartime_div2_helper(b, x);
  609|       |
  610|  2.36k|         auto a = b.negate();
  611|       |         // y += x but y is zero at the outset
  612|  2.36k|         auto y = x;
  613|       |
  614|       |         // First half of second loop iteration
  615|  2.36k|         Self::_invert_vartime_div2_helper(a, y);
  616|       |
  617|   412k|         for(;;) {
  618|       |            // Conditional ok: this function is variable time
  619|   412k|            if(a.m_val == b.m_val) {
  ------------------
  |  Branch (619:16): [True: 2.36k, False: 409k]
  ------------------
  620|       |               // At this point it should be that a == b == 1
  621|  2.36k|               auto r = y.negate();
  622|       |
  623|       |               // Convert back to Montgomery if required
  624|  2.36k|               r.m_val = Rep::to_rep(r.m_val);
  625|  2.36k|               return r;
  626|  2.36k|            }
  627|       |
  628|   409k|            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|   409k|            std::array<W, N> r;  // NOLINT(*-member-init)
  640|   409k|            const word carry = bigint_sub3(r.data(), b.data(), N, a.data(), N);
  641|       |
  642|       |            // Conditional ok: this function is variable time
  643|   409k|            if(carry == 0) {
  ------------------
  |  Branch (643:16): [True: 196k, False: 213k]
  ------------------
  644|       |               // b > a
  645|   196k|               b.m_val = r;
  646|   196k|               x = nx;
  647|   196k|               Self::_invert_vartime_div2_helper(b, x);
  648|   213k|            } else {
  649|       |               // We know this can't underflow because a > b
  650|   213k|               bigint_sub3(r.data(), a.data(), N, b.data(), N);
  651|   213k|               a.m_val = r;
  652|   213k|               y = nx;
  653|   213k|               Self::_invert_vartime_div2_helper(a, y);
  654|   213k|            }
  655|   409k|         }
  656|  2.36k|      }
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE8to_wordsEv:
  734|  7.05k|      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|   414k|      static constexpr void _invert_vartime_div2_helper(Self& a, Self& x) {
  548|   414k|         constexpr auto INV_2 = p_div_2_plus_1(Rep::P);
  549|       |
  550|       |         // Conditional ok: this function is variable time
  551|  1.24M|         while((a.m_val[0] & 1) != 1) {
  ------------------
  |  Branch (551:16): [True: 831k, False: 414k]
  ------------------
  552|   831k|            shift_right<1>(a.m_val);
  553|       |
  554|   831k|            const W borrow = shift_right<1>(x.m_val);
  555|       |
  556|       |            // Conditional ok: this function is variable time
  557|   831k|            if(borrow) {
  ------------------
  |  Branch (557:16): [True: 419k, False: 412k]
  ------------------
  558|   419k|               bigint_add2(x.m_val.data(), N, INV_2.data(), N);
  559|   419k|            }
  560|   831k|         }
  561|   414k|      }
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE6negateEv:
  452|  7.08k|      constexpr Self negate() const {
  453|  7.08k|         const W x_is_zero = ~CT::all_zeros(this->data(), N).value();
  454|       |
  455|  7.08k|         std::array<W, N> r;  // NOLINT(*-member-init)
  456|  7.08k|         W carry = 0;
  457|  35.4k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (457:28): [True: 28.3k, False: 7.08k]
  ------------------
  458|  28.3k|            r[i] = word_sub(P[i] & x_is_zero, m_val[i], &carry);
  459|  28.3k|         }
  460|       |
  461|  7.08k|         return Self(r);
  462|  7.08k|      }
pcurves_secp256k1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEEC2ERKSB_SE_:
  917|   164k|      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|  4.73k|      std::array<W, L> stash_value() const {
  760|  4.73k|         static_assert(L >= N);
  761|  4.73k|         std::array<W, L> stash = {};
  762|  23.6k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 18.9k, False: 4.73k]
  ------------------
  763|  18.9k|            stash[i] = m_val[i];
  764|  18.9k|         }
  765|  4.73k|         return stash;
  766|  4.73k|      }
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS5_12Secp256k1RepEE12ScalarParamsEEEE8to_wordsEv:
  734|  2.35k|      constexpr std::array<W, Self::N> to_words() const { return Rep::from_rep(m_val); }
pcurves_secp256k1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS4_12Secp256k1RepEE12ScalarParamsEE8from_repERKNSt3__15arrayImLm4EEE:
  137|  9.41k|      constexpr static std::array<W, N> from_rep(const std::array<W, N>& z) {
  138|  9.41k|         std::array<W, 2 * N> ze = {};
  139|  9.41k|         copy_mem(std::span{ze}.template first<N>(), z);
  140|  9.41k|         return Self::redc(ze);
  141|  9.41k|      }
pcurves_secp256k1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS4_12Secp256k1RepEE12ScalarParamsEE4redcERKNSt3__15arrayImLm8EEE:
  104|  25.9k|      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|  25.9k|         } else {
  108|  25.9k|            return monty_redc(z, P, P_dash);
  109|  25.9k|         }
  110|  25.9k|      }
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS5_12Secp256k1RepEE12ScalarParamsEEEE12serialize_toENSt3__14spanIhLm32EEE:
  739|  7.06k|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|  7.06k|         auto v = Rep::from_rep(m_val);
  741|  7.06k|         std::reverse(v.begin(), v.end());
  742|       |
  743|  7.06k|         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|  7.06k|            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|  7.06k|      }
pcurves_secp256k1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE11deserializeENSt3__14spanIKhLm18446744073709551615EEE:
  792|  7.19k|      static std::optional<Self> deserialize(std::span<const uint8_t> bytes) {
  793|       |         // Conditional ok: input length is public
  794|  7.19k|         if(bytes.size() != Self::BYTES) {
  ------------------
  |  Branch (794:13): [True: 0, False: 7.19k]
  ------------------
  795|      0|            return {};
  796|      0|         }
  797|       |
  798|  7.19k|         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|  7.19k|         if(!bigint_ct_is_lt(words.data(), N, P.data(), N).as_bool()) {
  ------------------
  |  Branch (801:13): [True: 0, False: 7.19k]
  ------------------
  802|      0|            return {};
  803|      0|         }
  804|       |
  805|       |         // Safe because we checked above that words is an integer < P
  806|  7.19k|         return Self::from_words(words);
  807|  7.19k|      }
pcurves_secp256k1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE10from_wordsILm4EEESA_NSt3__15arrayImXT_EEE:
  211|  9.54k|      static constexpr Self from_words(std::array<W, L> w) {
  212|  9.54k|         if constexpr(L == N) {
  213|  9.54k|            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|  9.54k|      }
pcurves_secp256k1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS5_12Secp256k1RepEE12ScalarParamsEEEE10from_stashILm9EEESB_RKNSt3__15arrayImXT_EEE:
  774|  23.5k|      static Self from_stash(const std::array<W, L>& stash) {
  775|  23.5k|         static_assert(L >= N);
  776|  23.5k|         std::array<W, N> val = {};
  777|   117k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 94.1k, False: 23.5k]
  ------------------
  778|  94.1k|            val[i] = stash[i];
  779|  94.1k|         }
  780|  23.5k|         return Self(val);
  781|  23.5k|      }
pcurves_secp256k1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS5_12Secp256k1RepEE12ScalarParamsEEEEC2ENSt3__15arrayImLm4EEE:
  898|   456k|      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|  9.47k|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|  9.47k|         auto v = Rep::from_rep(m_val);
  741|  9.47k|         std::reverse(v.begin(), v.end());
  742|       |
  743|  9.47k|         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|  9.47k|            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|  9.47k|      }
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS5_12Secp256k1RepEE12ScalarParamsEEEE11stash_valueILm9EEENSt3__15arrayImXT_EEEv:
  759|  14.1k|      std::array<W, L> stash_value() const {
  760|  14.1k|         static_assert(L >= N);
  761|  14.1k|         std::array<W, L> stash = {};
  762|  70.6k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 56.5k, False: 14.1k]
  ------------------
  763|  56.5k|            stash[i] = m_val[i];
  764|  56.5k|         }
  765|  14.1k|         return stash;
  766|  14.1k|      }
pcurves_secp256k1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS4_12Secp256k1RepEE12ScalarParamsEE11wide_to_repERKNSt3__15arrayImLm8EEE:
  127|  2.35k|      constexpr static std::array<W, N> wide_to_rep(const std::array<W, 2 * N>& x) {
  128|  2.35k|         auto redc_x = Self::redc(x);
  129|  2.35k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  130|  2.35k|         comba_mul<N>(z.data(), redc_x.data(), R3.data());
  131|  2.35k|         return Self::redc(z);
  132|  2.35k|      }
pcurves_secp256k1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE10from_stashILm9EEESA_RKNSt3__15arrayImXT_EEE:
  774|  23.6k|      static Self from_stash(const std::array<W, L>& stash) {
  775|  23.6k|         static_assert(L >= N);
  776|  23.6k|         std::array<W, N> val = {};
  777|   118k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 94.7k, False: 23.6k]
  ------------------
  778|  94.7k|            val[i] = stash[i];
  779|  94.7k|         }
  780|  23.6k|         return Self(val);
  781|  23.6k|      }
pcurves_secp256k1.cpp:_ZN5BotanplERKNS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_EERKNS_16AffineCurvePointISB_EE:
 1066|   209k|      friend constexpr Self operator+(const Self& a, const AffinePoint& b) { return Self::add_mixed(a, b); }
pcurves_secp256k1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E9add_mixedERKSC_RKNS_16AffineCurvePointISB_EE:
 1091|   240k|      constexpr static Self add_mixed(const Self& a, const AffinePoint& b) {
 1092|   240k|         return point_add_mixed<Self, AffinePoint, FieldElement>(a, b, FieldElement::one());
 1093|   240k|      }
pcurves_secp256k1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E5dbl_nEm:
 1108|   199k|      constexpr Self dbl_n(size_t n) const {
 1109|       |         if constexpr(Self::A_is_minus_3) {
 1110|       |            return dbl_n_a_minus_3(*this, n);
 1111|   199k|         } else if constexpr(Self::A_is_zero) {
 1112|   199k|            return dbl_n_a_zero(*this, n);
 1113|       |         } else {
 1114|       |            return dbl_n_generic(*this, A, n);
 1115|       |         }
 1116|   199k|      }
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE4div2Ev:
  302|   199k|      Self div2() const {
  303|       |         // The inverse of 2 modulo P is (P/2)+1; this avoids a constexpr time
  304|       |         // general inversion, which some compilers can't handle
  305|   199k|         constexpr auto INV_2 = p_div_2_plus_1(Rep::P);
  306|       |
  307|       |         // We could multiply by INV_2 but there is a better way ...
  308|       |
  309|   199k|         std::array<W, N> t = value();
  310|   199k|         const W borrow = shift_right<1>(t);
  311|       |
  312|       |         // If value was odd, add (P/2)+1
  313|   199k|         const auto mask = CT::Mask<W>::expand(borrow).value();
  314|       |
  315|   199k|         W carry = 0;
  316|       |
  317|   995k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (317:28): [True: 796k, False: 199k]
  ------------------
  318|   796k|            t[i] = word_add(t[i], INV_2[i] & mask, &carry);
  319|   796k|         }
  320|       |
  321|   199k|         return Self(t);
  322|   199k|      }
pcurves_secp256k1.cpp:_ZN5Botan16VartimeMul2TableINS_6PCurve12_GLOBAL__N_19secp256k15CurveELm3EEC2ERKNS_16AffineCurvePointINS_6IntModINS3_12Secp256k1RepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEEEESH_:
 1577|  2.36k|            m_table(to_affine_batch<C, true>(mul2_setup<C, W>(p, q))) {}
pcurves_secp256k1.cpp:_ZN5BotanplERKNS_16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEEERKNS_20ProjectiveCurvePointISB_S7_EE:
 1068|  30.7k|      friend constexpr Self operator+(const AffinePoint& a, const Self& b) { return Self::add_mixed(b, a); }
pcurves_secp256k1.cpp:_ZNK5Botan16VartimeMul2TableINS_6PCurve12_GLOBAL__N_19secp256k15CurveELm3EE12mul2_vartimeERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS3_12Secp256k1RepEE12ScalarParamsEEEEESG_:
 1588|  2.35k|      ProjectivePoint mul2_vartime(const Scalar& s1, const Scalar& s2) const {
 1589|  2.35k|         constexpr size_t Windows = (Scalar::BITS + WindowBits - 1) / WindowBits;
 1590|       |
 1591|  2.35k|         const UnblindedScalarBits<C, W> bits1(s1);
 1592|  2.35k|         const UnblindedScalarBits<C, W> bits2(s2);
 1593|       |
 1594|  2.35k|         const bool s1_is_zero = s1.is_zero().as_bool();
 1595|  2.35k|         const bool s2_is_zero = s2.is_zero().as_bool();
 1596|       |
 1597|       |         // Conditional ok: this function is variable time
 1598|  2.35k|         if(s1_is_zero && s2_is_zero) {
  ------------------
  |  Branch (1598:13): [True: 0, False: 2.35k]
  |  Branch (1598:27): [True: 0, False: 0]
  ------------------
 1599|      0|            return ProjectivePoint::identity();
 1600|      0|         }
 1601|       |
 1602|  2.35k|         auto [w_0, first_nonempty_window] = [&]() {
 1603|  2.35k|            for(size_t i = 0; i != Windows; ++i) {
 1604|  2.35k|               const size_t w_1 = bits1.get_window((Windows - i - 1) * WindowBits);
 1605|  2.35k|               const size_t w_2 = bits2.get_window((Windows - i - 1) * WindowBits);
 1606|  2.35k|               const size_t window = w_1 + (w_2 << WindowBits);
 1607|       |               // Conditional ok: this function is variable time
 1608|  2.35k|               if(window > 0) {
 1609|  2.35k|                  return std::make_pair(window, i);
 1610|  2.35k|               }
 1611|  2.35k|            }
 1612|       |            // We checked for s1 == s2 == 0 above, so we must see a window eventually
 1613|  2.35k|            BOTAN_ASSERT_UNREACHABLE();
 1614|  2.35k|         }();
 1615|       |
 1616|  2.35k|         BOTAN_ASSERT_NOMSG(w_0 > 0);
  ------------------
  |  |   77|  2.35k|   do {                                                                     \
  |  |   78|  2.35k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  2.35k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 2.35k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  2.35k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 2.35k]
  |  |  ------------------
  ------------------
 1617|  2.35k|         auto accum = ProjectivePoint::from_affine(m_table[w_0 - 1]);
 1618|       |
 1619|   201k|         for(size_t i = first_nonempty_window + 1; i < Windows; ++i) {
  ------------------
  |  Branch (1619:52): [True: 199k, False: 2.35k]
  ------------------
 1620|   199k|            accum = accum.dbl_n(WindowBits);
 1621|       |
 1622|   199k|            const size_t w_1 = bits1.get_window((Windows - i - 1) * WindowBits);
 1623|   199k|            const size_t w_2 = bits2.get_window((Windows - i - 1) * WindowBits);
 1624|       |
 1625|   199k|            const size_t window = w_1 + (w_2 << WindowBits);
 1626|       |
 1627|       |            // Conditional ok: this function is variable time
 1628|   199k|            if(window > 0) {
  ------------------
  |  Branch (1628:16): [True: 195k, False: 3.65k]
  ------------------
 1629|   195k|               accum += m_table[window - 1];
 1630|   195k|            }
 1631|   199k|         }
 1632|       |
 1633|  2.35k|         return accum;
 1634|  2.35k|      }
pcurves_secp256k1.cpp:_ZN5Botan19UnblindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp256k15CurveELm3EEC2ERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS3_12Secp256k1RepEE12ScalarParamsEEEEE:
 1378|  4.70k|      explicit UnblindedScalarBits(const typename C::Scalar& scalar) { scalar.serialize_to(std::span{m_bytes}); }
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS5_12Secp256k1RepEE12ScalarParamsEEEE7is_zeroEv:
  225|  16.4k|      constexpr CT::Choice is_zero() const { return CT::all_zeros(m_val.data(), m_val.size()).as_choice(); }
pcurves_secp256k1.cpp:_ZZNK5Botan16VartimeMul2TableINS_6PCurve12_GLOBAL__N_19secp256k15CurveELm3EE12mul2_vartimeERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS3_12Secp256k1RepEE12ScalarParamsEEEEESG_ENKUlvE_clEv:
 1602|  2.35k|         auto [w_0, first_nonempty_window] = [&]() {
 1603|  3.36k|            for(size_t i = 0; i != Windows; ++i) {
  ------------------
  |  Branch (1603:31): [True: 3.36k, False: 0]
  ------------------
 1604|  3.36k|               const size_t w_1 = bits1.get_window((Windows - i - 1) * WindowBits);
 1605|  3.36k|               const size_t w_2 = bits2.get_window((Windows - i - 1) * WindowBits);
 1606|  3.36k|               const size_t window = w_1 + (w_2 << WindowBits);
 1607|       |               // Conditional ok: this function is variable time
 1608|  3.36k|               if(window > 0) {
  ------------------
  |  Branch (1608:19): [True: 2.35k, False: 1.01k]
  ------------------
 1609|  2.35k|                  return std::make_pair(window, i);
 1610|  2.35k|               }
 1611|  3.36k|            }
 1612|       |            // We checked for s1 == s2 == 0 above, so we must see a window eventually
 1613|      0|            BOTAN_ASSERT_UNREACHABLE();
  ------------------
  |  |  166|      0|#define BOTAN_ASSERT_UNREACHABLE() Botan::assert_unreachable(__FILE__, __LINE__)
  ------------------
 1614|      0|         }();
pcurves_secp256k1.cpp:_ZNK5Botan19UnblindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp256k15CurveELm3EE10get_windowEm:
 1380|   404k|      size_t get_window(size_t offset) const {
 1381|       |         // Extract a WindowBits sized window out of s, depending on offset.
 1382|   404k|         return read_window_bits<WindowBits>(std::span{m_bytes}, offset);
 1383|   404k|      }
pcurves_secp256k1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_EpLERKNS_16AffineCurvePointISB_EE:
 1075|   195k|      constexpr Self& operator+=(const AffinePoint& other) {
 1076|   195k|         (*this) = (*this) + other;
 1077|   195k|         return (*this);
 1078|   195k|      }
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEeqERKSA_:
  722|  4.91k|      constexpr CT::Choice operator==(const Self& other) const {
  723|  4.91k|         return CT::is_equal(this->data(), other.data(), N).as_choice();
  724|  4.91k|      }
pcurves_secp256k1.cpp:_ZN5Botan13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS3_12Secp256k1RepEE7x3_ax_bERKNS_6IntModINS5_INS6_11FieldParamsEEEEE:
 1275|  2.42k|      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|  4.73k|      static std::optional<Self> deserialize(std::span<const uint8_t> bytes) {
  793|       |         // Conditional ok: input length is public
  794|  4.73k|         if(bytes.size() != Self::BYTES) {
  ------------------
  |  Branch (794:13): [True: 0, False: 4.73k]
  ------------------
  795|      0|            return {};
  796|      0|         }
  797|       |
  798|  4.73k|         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|  4.73k|         if(!bigint_ct_is_lt(words.data(), N, P.data(), N).as_bool()) {
  ------------------
  |  Branch (801:13): [True: 13, False: 4.72k]
  ------------------
  802|     13|            return {};
  803|     13|         }
  804|       |
  805|       |         // Safe because we checked above that words is an integer < P
  806|  4.72k|         return Self::from_words(words);
  807|  4.73k|      }
pcurves_secp256k1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS5_12Secp256k1RepEE12ScalarParamsEEEE10from_wordsILm4EEESB_NSt3__15arrayImXT_EEE:
  211|  4.72k|      static constexpr Self from_words(std::array<W, L> w) {
  212|  4.72k|         if constexpr(L == N) {
  213|  4.72k|            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|  4.72k|      }
pcurves_secp256k1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS4_12Secp256k1RepEE12ScalarParamsEE6to_repERKNSt3__15arrayImLm4EEE:
  115|  7.07k|      constexpr static std::array<W, N> to_rep(const std::array<W, N>& x) {
  116|  7.07k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  117|  7.07k|         comba_mul<N>(z.data(), x.data(), R2.data());
  118|  7.07k|         return Self::redc(z);
  119|  7.07k|      }
pcurves_secp256k1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS5_12Secp256k1RepEE12ScalarParamsEEEE22from_wide_bytes_varlenENSt3__14spanIKhLm18446744073709551615EEE:
  829|  2.35k|      static constexpr std::optional<Self> from_wide_bytes_varlen(std::span<const uint8_t> bytes) {
  830|       |         // Conditional ok: input length is public
  831|  2.35k|         if(bytes.size() > 2 * Self::BYTES) {
  ------------------
  |  Branch (831:13): [True: 0, False: 2.35k]
  ------------------
  832|      0|            return {};
  833|      0|         }
  834|       |
  835|  2.35k|         std::array<uint8_t, 2 * Self::BYTES> padded_bytes = {};
  836|  2.35k|         copy_mem(std::span{padded_bytes}.last(bytes.size()), bytes);
  837|  2.35k|         return Self(Rep::wide_to_rep(bytes_to_words<W, 2 * N, 2 * BYTES>(std::span{padded_bytes})));
  838|  2.35k|      }
pcurves_secp256k1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE12serialize_toENSt3__14spanIhLm65EEE:
  941|  4.73k|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  942|  4.73k|         BOTAN_STATE_CHECK(this->is_identity().as_bool() == false);
  ------------------
  |  |   51|  4.73k|   do {                                                         \
  |  |   52|  4.73k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|  4.73k|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 4.73k]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|  4.73k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 4.73k]
  |  |  ------------------
  ------------------
  943|  4.73k|         BufferStuffer pack(bytes);
  944|  4.73k|         pack.append(0x04);
  945|  4.73k|         x().serialize_to(pack.next<FieldElement::BYTES>());
  946|  4.73k|         y().serialize_to(pack.next<FieldElement::BYTES>());
  947|  4.73k|         BOTAN_DEBUG_ASSERT(pack.full());
  ------------------
  |  |  130|  4.73k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  4.73k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 4.73k]
  |  |  ------------------
  ------------------
  948|  4.73k|      }
pcurves_secp256k1.cpp:_ZN5BotanplERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS5_12Secp256k1RepEE12ScalarParamsEEEEESD_:
  265|   411k|      friend constexpr BOTAN_FORCE_INLINE Self operator+(const Self& a, const Self& b) {
  266|   411k|         std::array<W, N> t;  // NOLINT(*-member-init)
  267|       |
  268|   411k|         W carry = 0;
  269|  2.05M|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (269:28): [True: 1.64M, False: 411k]
  ------------------
  270|  1.64M|            t[i] = word_add(a.m_val[i], b.m_val[i], &carry);
  271|  1.64M|         }
  272|       |
  273|   411k|         std::array<W, N> r;  // NOLINT(*-member-init)
  274|   411k|         bigint_monty_maybe_sub<N>(r.data(), carry, t.data(), P.data());
  275|   411k|         return Self(r);
  276|   411k|      }
pcurves_secp256k1.cpp:_ZN5BotanmlERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS5_12Secp256k1RepEE12ScalarParamsEEEEESD_:
  346|  4.70k|      friend constexpr BOTAN_FORCE_INLINE Self operator*(const Self& a, const Self& b) {
  347|  4.70k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  348|  4.70k|         comba_mul<N>(z.data(), a.data(), b.data());
  349|  4.70k|         return Self(Rep::redc(z));
  350|  4.70k|      }
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS5_12Secp256k1RepEE12ScalarParamsEEEE4dataEv:
  896|  1.25M|      constexpr const W* data() const { return m_val.data(); }
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS5_12Secp256k1RepEE12ScalarParamsEEEE14invert_vartimeEv:
  598|  2.35k|      constexpr Self invert_vartime() const {
  599|       |         // Conditional ok: this function is variable time
  600|  2.35k|         if(this->is_zero().as_bool()) {
  ------------------
  |  Branch (600:13): [True: 0, False: 2.35k]
  ------------------
  601|      0|            return Self::zero();
  602|      0|         }
  603|       |
  604|  2.35k|         auto x = Self(std::array<W, N>{1});  // 1 in standard domain
  605|  2.35k|         auto b = Self(this->to_words());     // *this in standard domain
  606|       |
  607|       |         // First loop iteration
  608|  2.35k|         Self::_invert_vartime_div2_helper(b, x);
  609|       |
  610|  2.35k|         auto a = b.negate();
  611|       |         // y += x but y is zero at the outset
  612|  2.35k|         auto y = x;
  613|       |
  614|       |         // First half of second loop iteration
  615|  2.35k|         Self::_invert_vartime_div2_helper(a, y);
  616|       |
  617|   413k|         for(;;) {
  618|       |            // Conditional ok: this function is variable time
  619|   413k|            if(a.m_val == b.m_val) {
  ------------------
  |  Branch (619:16): [True: 2.35k, False: 411k]
  ------------------
  620|       |               // At this point it should be that a == b == 1
  621|  2.35k|               auto r = y.negate();
  622|       |
  623|       |               // Convert back to Montgomery if required
  624|  2.35k|               r.m_val = Rep::to_rep(r.m_val);
  625|  2.35k|               return r;
  626|  2.35k|            }
  627|       |
  628|   411k|            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|   411k|            std::array<W, N> r;  // NOLINT(*-member-init)
  640|   411k|            const word carry = bigint_sub3(r.data(), b.data(), N, a.data(), N);
  641|       |
  642|       |            // Conditional ok: this function is variable time
  643|   411k|            if(carry == 0) {
  ------------------
  |  Branch (643:16): [True: 202k, False: 208k]
  ------------------
  644|       |               // b > a
  645|   202k|               b.m_val = r;
  646|   202k|               x = nx;
  647|   202k|               Self::_invert_vartime_div2_helper(b, x);
  648|   208k|            } else {
  649|       |               // We know this can't underflow because a > b
  650|   208k|               bigint_sub3(r.data(), a.data(), N, b.data(), N);
  651|   208k|               a.m_val = r;
  652|   208k|               y = nx;
  653|   208k|               Self::_invert_vartime_div2_helper(a, y);
  654|   208k|            }
  655|   411k|         }
  656|  2.35k|      }
pcurves_secp256k1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS5_12Secp256k1RepEE12ScalarParamsEEEE27_invert_vartime_div2_helperERSB_SC_:
  547|   416k|      static constexpr void _invert_vartime_div2_helper(Self& a, Self& x) {
  548|   416k|         constexpr auto INV_2 = p_div_2_plus_1(Rep::P);
  549|       |
  550|       |         // Conditional ok: this function is variable time
  551|  1.27M|         while((a.m_val[0] & 1) != 1) {
  ------------------
  |  Branch (551:16): [True: 856k, False: 416k]
  ------------------
  552|   856k|            shift_right<1>(a.m_val);
  553|       |
  554|   856k|            const W borrow = shift_right<1>(x.m_val);
  555|       |
  556|       |            // Conditional ok: this function is variable time
  557|   856k|            if(borrow) {
  ------------------
  |  Branch (557:16): [True: 430k, False: 425k]
  ------------------
  558|   430k|               bigint_add2(x.m_val.data(), N, INV_2.data(), N);
  559|   430k|            }
  560|   856k|         }
  561|   416k|      }
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS5_12Secp256k1RepEE12ScalarParamsEEEE6negateEv:
  452|  4.70k|      constexpr Self negate() const {
  453|  4.70k|         const W x_is_zero = ~CT::all_zeros(this->data(), N).value();
  454|       |
  455|  4.70k|         std::array<W, N> r;  // NOLINT(*-member-init)
  456|  4.70k|         W carry = 0;
  457|  23.5k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (457:28): [True: 18.8k, False: 4.70k]
  ------------------
  458|  18.8k|            r[i] = word_sub(P[i] & x_is_zero, m_val[i], &carry);
  459|  18.8k|         }
  460|       |
  461|  4.70k|         return Self(r);
  462|  4.70k|      }
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|  21.7k|      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|  21.7k|         auto x = pt.x();
 1027|  21.7k|         auto y = pt.y();
 1028|  21.7k|         auto z = FieldElement::one();
 1029|       |
 1030|  21.7k|         FieldElement::conditional_swap(pt.is_identity(), y, z);
 1031|       |
 1032|  21.7k|         return ProjectiveCurvePoint(x, y, z);
 1033|  21.7k|      }
pcurves_secp256r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEEE1xEv:
  971|  2.31M|      constexpr const FieldElement& x() const { return m_x; }
pcurves_secp256r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEEE1yEv:
  976|  2.31M|      constexpr const FieldElement& y() const { return m_y; }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE3oneEv:
  200|   763k|      static constexpr Self one() { return Self(Rep::one()); }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEEC2ENSt3__15arrayImLm4EEE:
  898|  53.9M|      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|  21.7k|      static constexpr void conditional_swap(CT::Choice cond, Self& x, Self& y) {
  411|  21.7k|         const W mask = cond.into_bitmask<W>();
  412|       |
  413|   108k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (413:28): [True: 87.1k, False: 21.7k]
  ------------------
  414|  87.1k|            auto nx = Botan::choose(mask, y.m_val[i], x.m_val[i]);
  415|  87.1k|            auto ny = Botan::choose(mask, x.m_val[i], y.m_val[i]);
  416|  87.1k|            x.m_val[i] = nx;
  417|  87.1k|            y.m_val[i] = ny;
  418|  87.1k|         }
  419|  21.7k|      }
pcurves_secp256r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEEE11is_identityEv:
  928|   792k|      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|  5.07M|      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|  1.68M|            m_x(x), m_y(y), m_z(z) {}
pcurves_secp256r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEES7_E3dblEv:
 1121|   109k|      constexpr Self dbl() const {
 1122|   109k|         if constexpr(Self::A_is_minus_3) {
 1123|   109k|            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|   109k|      }
pcurves_secp256r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEES7_E1zEv:
 1172|  7.89M|      constexpr const FieldElement& z() const { return m_z; }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE6squareEv:
  426|  12.5M|      constexpr BOTAN_FORCE_INLINE Self square() const {
  427|  12.5M|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  428|  12.5M|         comba_sqr<N>(z.data(), this->data());
  429|  12.5M|         return Self(Rep::redc(z));
  430|  12.5M|      }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE4dataEv:
  896|  53.0M|      constexpr const W* data() const { return m_val.data(); }
pcurves_secp256r1.cpp:_ZN5BotanmlERKNS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEEESC_:
  346|  15.1M|      friend constexpr BOTAN_FORCE_INLINE Self operator*(const Self& a, const Self& b) {
  347|  15.1M|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  348|  15.1M|         comba_mul<N>(z.data(), a.data(), b.data());
  349|  15.1M|         return Self(Rep::redc(z));
  350|  15.1M|      }
pcurves_secp256r1.cpp:_ZN5BotanmiERKNS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEEESC_:
  281|  13.4M|      friend constexpr BOTAN_FORCE_INLINE Self operator-(const Self& a, const Self& b) {
  282|  13.4M|         std::array<W, N> r;  // NOLINT(*-member-init)
  283|  13.4M|         W carry = 0;
  284|  67.1M|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (284:28): [True: 53.7M, False: 13.4M]
  ------------------
  285|  53.7M|            r[i] = word_sub(a.m_val[i], b.m_val[i], &carry);
  286|  53.7M|         }
  287|       |
  288|  13.4M|         const auto mask = CT::Mask<W>::expand(carry).value();
  289|       |
  290|  13.4M|         carry = 0;
  291|       |
  292|  67.1M|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (292:28): [True: 53.7M, False: 13.4M]
  ------------------
  293|  53.7M|            r[i] = word_add(r[i], P[i] & mask, &carry);
  294|  53.7M|         }
  295|       |
  296|  13.4M|         return Self(r);
  297|  13.4M|      }
pcurves_secp256r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEES7_E1xEv:
 1162|  4.42M|      constexpr const FieldElement& x() const { return m_x; }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE4mul3Ev:
  335|  1.94M|      constexpr inline Self mul3() const { return mul2() + (*this); }
pcurves_secp256r1.cpp:_ZN5BotanplERKNS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEEESC_:
  265|  4.35M|      friend constexpr BOTAN_FORCE_INLINE Self operator+(const Self& a, const Self& b) {
  266|  4.35M|         std::array<W, N> t;  // NOLINT(*-member-init)
  267|       |
  268|  4.35M|         W carry = 0;
  269|  21.7M|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (269:28): [True: 17.4M, False: 4.35M]
  ------------------
  270|  17.4M|            t[i] = word_add(a.m_val[i], b.m_val[i], &carry);
  271|  17.4M|         }
  272|       |
  273|  4.35M|         std::array<W, N> r;  // NOLINT(*-member-init)
  274|  4.35M|         bigint_monty_maybe_sub<N>(r.data(), carry, t.data(), P.data());
  275|  4.35M|         return Self(r);
  276|  4.35M|      }
pcurves_secp256r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEES7_E1yEv:
 1167|  4.30M|      constexpr const FieldElement& y() const { return m_y; }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE4mul4Ev:
  338|   109k|      constexpr inline Self mul4() const { return mul2().mul2(); }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE4mul2Ev:
  325|  7.00M|      constexpr BOTAN_FORCE_INLINE Self mul2() const {
  326|  7.00M|         std::array<W, N> t = value();
  327|  7.00M|         const W carry = shift_left<1>(t);
  328|       |
  329|  7.00M|         std::array<W, N> r;  // NOLINT(*-member-init)
  330|  7.00M|         bigint_monty_maybe_sub<N>(r.data(), carry, t.data(), P.data());
  331|  7.00M|         return Self(r);
  332|  7.00M|      }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE5valueEv:
  894|  7.62M|      constexpr const std::array<W, N>& value() const { return m_val; }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE4mul8Ev:
  341|   109k|      constexpr inline Self mul8() const { return mul2().mul2().mul2(); }
pcurves_secp256r1.cpp:_ZN5BotanplERKNS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEES7_EESE_:
 1064|   197k|      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|   197k|      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|  1.60M|      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|  1.87M|         Self& x, Self& y, Self& z, CT::Choice cond, const Self& nx, const Self& ny, const Self& nz) {
  396|  1.87M|         const W mask = cond.into_bitmask<W>();
  397|       |
  398|  9.38M|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (398:28): [True: 7.51M, False: 1.87M]
  ------------------
  399|  7.51M|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  400|  7.51M|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  401|  7.51M|            z.m_val[i] = Botan::choose(mask, nz.m_val[i], z.m_val[i]);
  402|  7.51M|         }
  403|  1.87M|      }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEEmLERKSA_:
  355|  3.06M|      constexpr BOTAN_FORCE_INLINE Self& operator*=(const Self& other) {
  356|  3.06M|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  357|  3.06M|         comba_mul<N>(z.data(), data(), other.data());
  358|  3.06M|         m_val = Rep::redc(z);
  359|  3.06M|         return (*this);
  360|  3.06M|      }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE14invert_vartimeEv:
  598|  7.27k|      constexpr Self invert_vartime() const {
  599|       |         // Conditional ok: this function is variable time
  600|  7.27k|         if(this->is_zero().as_bool()) {
  ------------------
  |  Branch (600:13): [True: 0, False: 7.27k]
  ------------------
  601|      0|            return Self::zero();
  602|      0|         }
  603|       |
  604|  7.27k|         auto x = Self(std::array<W, N>{1});  // 1 in standard domain
  605|  7.27k|         auto b = Self(this->to_words());     // *this in standard domain
  606|       |
  607|       |         // First loop iteration
  608|  7.27k|         Self::_invert_vartime_div2_helper(b, x);
  609|       |
  610|  7.27k|         auto a = b.negate();
  611|       |         // y += x but y is zero at the outset
  612|  7.27k|         auto y = x;
  613|       |
  614|       |         // First half of second loop iteration
  615|  7.27k|         Self::_invert_vartime_div2_helper(a, y);
  616|       |
  617|  1.34M|         for(;;) {
  618|       |            // Conditional ok: this function is variable time
  619|  1.34M|            if(a.m_val == b.m_val) {
  ------------------
  |  Branch (619:16): [True: 7.27k, False: 1.33M]
  ------------------
  620|       |               // At this point it should be that a == b == 1
  621|  7.27k|               auto r = y.negate();
  622|       |
  623|       |               // Convert back to Montgomery if required
  624|  7.27k|               r.m_val = Rep::to_rep(r.m_val);
  625|  7.27k|               return r;
  626|  7.27k|            }
  627|       |
  628|  1.33M|            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|  1.33M|            std::array<W, N> r;  // NOLINT(*-member-init)
  640|  1.33M|            const word carry = bigint_sub3(r.data(), b.data(), N, a.data(), N);
  641|       |
  642|       |            // Conditional ok: this function is variable time
  643|  1.33M|            if(carry == 0) {
  ------------------
  |  Branch (643:16): [True: 676k, False: 661k]
  ------------------
  644|       |               // b > a
  645|   676k|               b.m_val = r;
  646|   676k|               x = nx;
  647|   676k|               Self::_invert_vartime_div2_helper(b, x);
  648|   676k|            } else {
  649|       |               // We know this can't underflow because a > b
  650|   661k|               bigint_sub3(r.data(), a.data(), N, b.data(), N);
  651|   661k|               a.m_val = r;
  652|   661k|               y = nx;
  653|   661k|               Self::_invert_vartime_div2_helper(a, y);
  654|   661k|            }
  655|  1.33M|         }
  656|  7.27k|      }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE8to_wordsEv:
  734|  19.6k|      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|  1.35M|      static constexpr void _invert_vartime_div2_helper(Self& a, Self& x) {
  548|  1.35M|         constexpr auto INV_2 = p_div_2_plus_1(Rep::P);
  549|       |
  550|       |         // Conditional ok: this function is variable time
  551|  4.02M|         while((a.m_val[0] & 1) != 1) {
  ------------------
  |  Branch (551:16): [True: 2.66M, False: 1.35M]
  ------------------
  552|  2.66M|            shift_right<1>(a.m_val);
  553|       |
  554|  2.66M|            const W borrow = shift_right<1>(x.m_val);
  555|       |
  556|       |            // Conditional ok: this function is variable time
  557|  2.66M|            if(borrow) {
  ------------------
  |  Branch (557:16): [True: 930k, False: 1.73M]
  ------------------
  558|   930k|               bigint_add2(x.m_val.data(), N, INV_2.data(), N);
  559|   930k|            }
  560|  2.66M|         }
  561|  1.35M|      }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE6negateEv:
  452|  20.7k|      constexpr Self negate() const {
  453|  20.7k|         const W x_is_zero = ~CT::all_zeros(this->data(), N).value();
  454|       |
  455|  20.7k|         std::array<W, N> r;  // NOLINT(*-member-init)
  456|  20.7k|         W carry = 0;
  457|   103k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (457:28): [True: 82.8k, False: 20.7k]
  ------------------
  458|  82.8k|            r[i] = word_sub(P[i] & x_is_zero, m_val[i], &carry);
  459|  82.8k|         }
  460|       |
  461|  20.7k|         return Self(r);
  462|  20.7k|      }
pcurves_secp256r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEEEC2ERKSB_SE_:
  917|   503k|      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|  14.5k|      std::array<W, L> stash_value() const {
  760|  14.5k|         static_assert(L >= N);
  761|  14.5k|         std::array<W, L> stash = {};
  762|  72.7k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 58.1k, False: 14.5k]
  ------------------
  763|  58.1k|            stash[i] = m_val[i];
  764|  58.1k|         }
  765|  14.5k|         return stash;
  766|  14.5k|      }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS4_12Secp256r1RepEE12ScalarParamsEEEE8to_wordsEv:
  734|  7.24k|      constexpr std::array<W, Self::N> to_words() const { return Rep::from_rep(m_val); }
pcurves_secp256r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS3_12Secp256r1RepEE12ScalarParamsEE8from_repERKNSt3__15arrayImLm4EEE:
  137|  28.9k|      constexpr static std::array<W, N> from_rep(const std::array<W, N>& z) {
  138|  28.9k|         std::array<W, 2 * N> ze = {};
  139|  28.9k|         copy_mem(std::span{ze}.template first<N>(), z);
  140|  28.9k|         return Self::redc(ze);
  141|  28.9k|      }
pcurves_secp256r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS3_12Secp256r1RepEE12ScalarParamsEE4redcERKNSt3__15arrayImLm8EEE:
  104|  79.7k|      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|  79.7k|         } else {
  108|  79.7k|            return monty_redc(z, P, P_dash);
  109|  79.7k|         }
  110|  79.7k|      }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS4_12Secp256r1RepEE12ScalarParamsEEEE12serialize_toENSt3__14spanIhLm32EEE:
  739|  21.7k|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|  21.7k|         auto v = Rep::from_rep(m_val);
  741|  21.7k|         std::reverse(v.begin(), v.end());
  742|       |
  743|  21.7k|         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|  21.7k|            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|  21.7k|      }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE11deserializeENSt3__14spanIKhLm18446744073709551615EEE:
  792|  21.8k|      static std::optional<Self> deserialize(std::span<const uint8_t> bytes) {
  793|       |         // Conditional ok: input length is public
  794|  21.8k|         if(bytes.size() != Self::BYTES) {
  ------------------
  |  Branch (794:13): [True: 0, False: 21.8k]
  ------------------
  795|      0|            return {};
  796|      0|         }
  797|       |
  798|  21.8k|         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|  21.8k|         if(!bigint_ct_is_lt(words.data(), N, P.data(), N).as_bool()) {
  ------------------
  |  Branch (801:13): [True: 0, False: 21.8k]
  ------------------
  802|      0|            return {};
  803|      0|         }
  804|       |
  805|       |         // Safe because we checked above that words is an integer < P
  806|  21.8k|         return Self::from_words(words);
  807|  21.8k|      }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE10from_wordsILm4EEESA_NSt3__15arrayImXT_EEE:
  211|  28.0k|      static constexpr Self from_words(std::array<W, L> w) {
  212|  28.0k|         if constexpr(L == N) {
  213|  28.0k|            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|  28.0k|      }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS4_12Secp256r1RepEE12ScalarParamsEEEE10from_stashILm9EEESB_RKNSt3__15arrayImXT_EEE:
  774|  72.4k|      static Self from_stash(const std::array<W, L>& stash) {
  775|  72.4k|         static_assert(L >= N);
  776|  72.4k|         std::array<W, N> val = {};
  777|   362k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 289k, False: 72.4k]
  ------------------
  778|   289k|            val[i] = stash[i];
  779|   289k|         }
  780|  72.4k|         return Self(val);
  781|  72.4k|      }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS4_12Secp256r1RepEE12ScalarParamsEEEEC2ENSt3__15arrayImLm4EEE:
  898|  1.40M|      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|  29.0k|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|  29.0k|         auto v = Rep::from_rep(m_val);
  741|  29.0k|         std::reverse(v.begin(), v.end());
  742|       |
  743|  29.0k|         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|  29.0k|            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|  29.0k|      }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS4_12Secp256r1RepEE12ScalarParamsEEEE11stash_valueILm9EEENSt3__15arrayImXT_EEEv:
  759|  43.4k|      std::array<W, L> stash_value() const {
  760|  43.4k|         static_assert(L >= N);
  761|  43.4k|         std::array<W, L> stash = {};
  762|   217k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 173k, False: 43.4k]
  ------------------
  763|   173k|            stash[i] = m_val[i];
  764|   173k|         }
  765|  43.4k|         return stash;
  766|  43.4k|      }
pcurves_secp256r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS3_12Secp256r1RepEE12ScalarParamsEE11wide_to_repERKNSt3__15arrayImLm8EEE:
  127|  7.24k|      constexpr static std::array<W, N> wide_to_rep(const std::array<W, 2 * N>& x) {
  128|  7.24k|         auto redc_x = Self::redc(x);
  129|  7.24k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  130|  7.24k|         comba_mul<N>(z.data(), redc_x.data(), R3.data());
  131|  7.24k|         return Self::redc(z);
  132|  7.24k|      }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE10from_stashILm9EEESA_RKNSt3__15arrayImXT_EEE:
  774|  72.7k|      static Self from_stash(const std::array<W, L>& stash) {
  775|  72.7k|         static_assert(L >= N);
  776|  72.7k|         std::array<W, N> val = {};
  777|   363k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 290k, False: 72.7k]
  ------------------
  778|   290k|            val[i] = stash[i];
  779|   290k|         }
  780|  72.7k|         return Self(val);
  781|  72.7k|      }
pcurves_secp256r1.cpp:_ZN5BotanplERKNS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEES7_EERKNS_16AffineCurvePointISB_EE:
 1066|   647k|      friend constexpr Self operator+(const Self& a, const AffinePoint& b) { return Self::add_mixed(a, b); }
pcurves_secp256r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEES7_E9add_mixedERKSC_RKNS_16AffineCurvePointISB_EE:
 1091|   741k|      constexpr static Self add_mixed(const Self& a, const AffinePoint& b) {
 1092|   741k|         return point_add_mixed<Self, AffinePoint, FieldElement>(a, b, FieldElement::one());
 1093|   741k|      }
pcurves_secp256r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEES7_E5dbl_nEm:
 1108|   612k|      constexpr Self dbl_n(size_t n) const {
 1109|   612k|         if constexpr(Self::A_is_minus_3) {
 1110|   612k|            return dbl_n_a_minus_3(*this, n);
 1111|       |         } else if constexpr(Self::A_is_zero) {
 1112|       |            return dbl_n_a_zero(*this, n);
 1113|       |         } else {
 1114|       |            return dbl_n_generic(*this, A, n);
 1115|       |         }
 1116|   612k|      }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE4div2Ev:
  302|   612k|      Self div2() const {
  303|       |         // The inverse of 2 modulo P is (P/2)+1; this avoids a constexpr time
  304|       |         // general inversion, which some compilers can't handle
  305|   612k|         constexpr auto INV_2 = p_div_2_plus_1(Rep::P);
  306|       |
  307|       |         // We could multiply by INV_2 but there is a better way ...
  308|       |
  309|   612k|         std::array<W, N> t = value();
  310|   612k|         const W borrow = shift_right<1>(t);
  311|       |
  312|       |         // If value was odd, add (P/2)+1
  313|   612k|         const auto mask = CT::Mask<W>::expand(borrow).value();
  314|       |
  315|   612k|         W carry = 0;
  316|       |
  317|  3.06M|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (317:28): [True: 2.45M, False: 612k]
  ------------------
  318|  2.45M|            t[i] = word_add(t[i], INV_2[i] & mask, &carry);
  319|  2.45M|         }
  320|       |
  321|   612k|         return Self(t);
  322|   612k|      }
pcurves_secp256r1.cpp:_ZN5Botan16VartimeMul2TableINS_6PCurve12_GLOBAL__N_19secp256r15CurveELm3EEC2ERKNS_16AffineCurvePointINS_6IntModINS2_12Secp256r1RepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEEEESH_:
 1577|  7.27k|            m_table(to_affine_batch<C, true>(mul2_setup<C, W>(p, q))) {}
pcurves_secp256r1.cpp:_ZN5BotanplERKNS_16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEEEERKNS_20ProjectiveCurvePointISB_S7_EE:
 1068|  94.5k|      friend constexpr Self operator+(const AffinePoint& a, const Self& b) { return Self::add_mixed(b, a); }
pcurves_secp256r1.cpp:_ZNK5Botan16VartimeMul2TableINS_6PCurve12_GLOBAL__N_19secp256r15CurveELm3EE12mul2_vartimeERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS2_12Secp256r1RepEE12ScalarParamsEEEEESG_:
 1588|  7.24k|      ProjectivePoint mul2_vartime(const Scalar& s1, const Scalar& s2) const {
 1589|  7.24k|         constexpr size_t Windows = (Scalar::BITS + WindowBits - 1) / WindowBits;
 1590|       |
 1591|  7.24k|         const UnblindedScalarBits<C, W> bits1(s1);
 1592|  7.24k|         const UnblindedScalarBits<C, W> bits2(s2);
 1593|       |
 1594|  7.24k|         const bool s1_is_zero = s1.is_zero().as_bool();
 1595|  7.24k|         const bool s2_is_zero = s2.is_zero().as_bool();
 1596|       |
 1597|       |         // Conditional ok: this function is variable time
 1598|  7.24k|         if(s1_is_zero && s2_is_zero) {
  ------------------
  |  Branch (1598:13): [True: 0, False: 7.24k]
  |  Branch (1598:27): [True: 0, False: 0]
  ------------------
 1599|      0|            return ProjectivePoint::identity();
 1600|      0|         }
 1601|       |
 1602|  7.24k|         auto [w_0, first_nonempty_window] = [&]() {
 1603|  7.24k|            for(size_t i = 0; i != Windows; ++i) {
 1604|  7.24k|               const size_t w_1 = bits1.get_window((Windows - i - 1) * WindowBits);
 1605|  7.24k|               const size_t w_2 = bits2.get_window((Windows - i - 1) * WindowBits);
 1606|  7.24k|               const size_t window = w_1 + (w_2 << WindowBits);
 1607|       |               // Conditional ok: this function is variable time
 1608|  7.24k|               if(window > 0) {
 1609|  7.24k|                  return std::make_pair(window, i);
 1610|  7.24k|               }
 1611|  7.24k|            }
 1612|       |            // We checked for s1 == s2 == 0 above, so we must see a window eventually
 1613|  7.24k|            BOTAN_ASSERT_UNREACHABLE();
 1614|  7.24k|         }();
 1615|       |
 1616|  7.24k|         BOTAN_ASSERT_NOMSG(w_0 > 0);
  ------------------
  |  |   77|  7.24k|   do {                                                                     \
  |  |   78|  7.24k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  7.24k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 7.24k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  7.24k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 7.24k]
  |  |  ------------------
  ------------------
 1617|  7.24k|         auto accum = ProjectivePoint::from_affine(m_table[w_0 - 1]);
 1618|       |
 1619|   620k|         for(size_t i = first_nonempty_window + 1; i < Windows; ++i) {
  ------------------
  |  Branch (1619:52): [True: 612k, False: 7.24k]
  ------------------
 1620|   612k|            accum = accum.dbl_n(WindowBits);
 1621|       |
 1622|   612k|            const size_t w_1 = bits1.get_window((Windows - i - 1) * WindowBits);
 1623|   612k|            const size_t w_2 = bits2.get_window((Windows - i - 1) * WindowBits);
 1624|       |
 1625|   612k|            const size_t window = w_1 + (w_2 << WindowBits);
 1626|       |
 1627|       |            // Conditional ok: this function is variable time
 1628|   612k|            if(window > 0) {
  ------------------
  |  Branch (1628:16): [True: 603k, False: 9.31k]
  ------------------
 1629|   603k|               accum += m_table[window - 1];
 1630|   603k|            }
 1631|   612k|         }
 1632|       |
 1633|  7.24k|         return accum;
 1634|  7.24k|      }
pcurves_secp256r1.cpp:_ZN5Botan19UnblindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp256r15CurveELm3EEC2ERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS2_12Secp256r1RepEE12ScalarParamsEEEEE:
 1378|  14.4k|      explicit UnblindedScalarBits(const typename C::Scalar& scalar) { scalar.serialize_to(std::span{m_bytes}); }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS4_12Secp256r1RepEE12ScalarParamsEEEE7is_zeroEv:
  225|  50.7k|      constexpr CT::Choice is_zero() const { return CT::all_zeros(m_val.data(), m_val.size()).as_choice(); }
pcurves_secp256r1.cpp:_ZZNK5Botan16VartimeMul2TableINS_6PCurve12_GLOBAL__N_19secp256r15CurveELm3EE12mul2_vartimeERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS2_12Secp256r1RepEE12ScalarParamsEEEEESG_ENKUlvE_clEv:
 1602|  7.24k|         auto [w_0, first_nonempty_window] = [&]() {
 1603|  9.99k|            for(size_t i = 0; i != Windows; ++i) {
  ------------------
  |  Branch (1603:31): [True: 9.99k, False: 0]
  ------------------
 1604|  9.99k|               const size_t w_1 = bits1.get_window((Windows - i - 1) * WindowBits);
 1605|  9.99k|               const size_t w_2 = bits2.get_window((Windows - i - 1) * WindowBits);
 1606|  9.99k|               const size_t window = w_1 + (w_2 << WindowBits);
 1607|       |               // Conditional ok: this function is variable time
 1608|  9.99k|               if(window > 0) {
  ------------------
  |  Branch (1608:19): [True: 7.24k, False: 2.75k]
  ------------------
 1609|  7.24k|                  return std::make_pair(window, i);
 1610|  7.24k|               }
 1611|  9.99k|            }
 1612|       |            // We checked for s1 == s2 == 0 above, so we must see a window eventually
 1613|      0|            BOTAN_ASSERT_UNREACHABLE();
  ------------------
  |  |  166|      0|#define BOTAN_ASSERT_UNREACHABLE() Botan::assert_unreachable(__FILE__, __LINE__)
  ------------------
 1614|      0|         }();
pcurves_secp256r1.cpp:_ZNK5Botan19UnblindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp256r15CurveELm3EE10get_windowEm:
 1380|  1.24M|      size_t get_window(size_t offset) const {
 1381|       |         // Extract a WindowBits sized window out of s, depending on offset.
 1382|  1.24M|         return read_window_bits<WindowBits>(std::span{m_bytes}, offset);
 1383|  1.24M|      }
pcurves_secp256r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEES7_EpLERKNS_16AffineCurvePointISB_EE:
 1075|   603k|      constexpr Self& operator+=(const AffinePoint& other) {
 1076|   603k|         (*this) = (*this) + other;
 1077|   603k|         return (*this);
 1078|   603k|      }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEEeqERKSA_:
  722|  14.7k|      constexpr CT::Choice operator==(const Self& other) const {
  723|  14.7k|         return CT::is_equal(this->data(), other.data(), N).as_choice();
  724|  14.7k|      }
pcurves_secp256r1.cpp:_ZN5Botan13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS2_12Secp256r1RepEE7x3_ax_bERKNS_6IntModINS5_INS6_11FieldParamsEEEEE:
 1275|  7.29k|      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|  14.5k|      static std::optional<Self> deserialize(std::span<const uint8_t> bytes) {
  793|       |         // Conditional ok: input length is public
  794|  14.5k|         if(bytes.size() != Self::BYTES) {
  ------------------
  |  Branch (794:13): [True: 0, False: 14.5k]
  ------------------
  795|      0|            return {};
  796|      0|         }
  797|       |
  798|  14.5k|         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|  14.5k|         if(!bigint_ct_is_lt(words.data(), N, P.data(), N).as_bool()) {
  ------------------
  |  Branch (801:13): [True: 20, False: 14.5k]
  ------------------
  802|     20|            return {};
  803|     20|         }
  804|       |
  805|       |         // Safe because we checked above that words is an integer < P
  806|  14.5k|         return Self::from_words(words);
  807|  14.5k|      }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS4_12Secp256r1RepEE12ScalarParamsEEEE10from_wordsILm4EEESB_NSt3__15arrayImXT_EEE:
  211|  14.5k|      static constexpr Self from_words(std::array<W, L> w) {
  212|  14.5k|         if constexpr(L == N) {
  213|  14.5k|            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|  14.5k|      }
pcurves_secp256r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS3_12Secp256r1RepEE12ScalarParamsEE6to_repERKNSt3__15arrayImLm4EEE:
  115|  21.7k|      constexpr static std::array<W, N> to_rep(const std::array<W, N>& x) {
  116|  21.7k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  117|  21.7k|         comba_mul<N>(z.data(), x.data(), R2.data());
  118|  21.7k|         return Self::redc(z);
  119|  21.7k|      }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS4_12Secp256r1RepEE12ScalarParamsEEEE22from_wide_bytes_varlenENSt3__14spanIKhLm18446744073709551615EEE:
  829|  7.24k|      static constexpr std::optional<Self> from_wide_bytes_varlen(std::span<const uint8_t> bytes) {
  830|       |         // Conditional ok: input length is public
  831|  7.24k|         if(bytes.size() > 2 * Self::BYTES) {
  ------------------
  |  Branch (831:13): [True: 0, False: 7.24k]
  ------------------
  832|      0|            return {};
  833|      0|         }
  834|       |
  835|  7.24k|         std::array<uint8_t, 2 * Self::BYTES> padded_bytes = {};
  836|  7.24k|         copy_mem(std::span{padded_bytes}.last(bytes.size()), bytes);
  837|  7.24k|         return Self(Rep::wide_to_rep(bytes_to_words<W, 2 * N, 2 * BYTES>(std::span{padded_bytes})));
  838|  7.24k|      }
pcurves_secp256r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEEE12serialize_toENSt3__14spanIhLm65EEE:
  941|  14.5k|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  942|  14.5k|         BOTAN_STATE_CHECK(this->is_identity().as_bool() == false);
  ------------------
  |  |   51|  14.5k|   do {                                                         \
  |  |   52|  14.5k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|  14.5k|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 14.5k]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|  14.5k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 14.5k]
  |  |  ------------------
  ------------------
  943|  14.5k|         BufferStuffer pack(bytes);
  944|  14.5k|         pack.append(0x04);
  945|  14.5k|         x().serialize_to(pack.next<FieldElement::BYTES>());
  946|  14.5k|         y().serialize_to(pack.next<FieldElement::BYTES>());
  947|  14.5k|         BOTAN_DEBUG_ASSERT(pack.full());
  ------------------
  |  |  130|  14.5k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  14.5k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 14.5k]
  |  |  ------------------
  ------------------
  948|  14.5k|      }
pcurves_secp256r1.cpp:_ZN5BotanplERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS4_12Secp256r1RepEE12ScalarParamsEEEEESD_:
  265|  1.26M|      friend constexpr BOTAN_FORCE_INLINE Self operator+(const Self& a, const Self& b) {
  266|  1.26M|         std::array<W, N> t;  // NOLINT(*-member-init)
  267|       |
  268|  1.26M|         W carry = 0;
  269|  6.34M|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (269:28): [True: 5.07M, False: 1.26M]
  ------------------
  270|  5.07M|            t[i] = word_add(a.m_val[i], b.m_val[i], &carry);
  271|  5.07M|         }
  272|       |
  273|  1.26M|         std::array<W, N> r;  // NOLINT(*-member-init)
  274|  1.26M|         bigint_monty_maybe_sub<N>(r.data(), carry, t.data(), P.data());
  275|  1.26M|         return Self(r);
  276|  1.26M|      }
pcurves_secp256r1.cpp:_ZN5BotanmlERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS4_12Secp256r1RepEE12ScalarParamsEEEEESD_:
  346|  14.4k|      friend constexpr BOTAN_FORCE_INLINE Self operator*(const Self& a, const Self& b) {
  347|  14.4k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  348|  14.4k|         comba_mul<N>(z.data(), a.data(), b.data());
  349|  14.4k|         return Self(Rep::redc(z));
  350|  14.4k|      }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS4_12Secp256r1RepEE12ScalarParamsEEEE4dataEv:
  896|  3.83M|      constexpr const W* data() const { return m_val.data(); }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS4_12Secp256r1RepEE12ScalarParamsEEEE14invert_vartimeEv:
  598|  7.24k|      constexpr Self invert_vartime() const {
  599|       |         // Conditional ok: this function is variable time
  600|  7.24k|         if(this->is_zero().as_bool()) {
  ------------------
  |  Branch (600:13): [True: 0, False: 7.24k]
  ------------------
  601|      0|            return Self::zero();
  602|      0|         }
  603|       |
  604|  7.24k|         auto x = Self(std::array<W, N>{1});  // 1 in standard domain
  605|  7.24k|         auto b = Self(this->to_words());     // *this in standard domain
  606|       |
  607|       |         // First loop iteration
  608|  7.24k|         Self::_invert_vartime_div2_helper(b, x);
  609|       |
  610|  7.24k|         auto a = b.negate();
  611|       |         // y += x but y is zero at the outset
  612|  7.24k|         auto y = x;
  613|       |
  614|       |         // First half of second loop iteration
  615|  7.24k|         Self::_invert_vartime_div2_helper(a, y);
  616|       |
  617|  1.27M|         for(;;) {
  618|       |            // Conditional ok: this function is variable time
  619|  1.27M|            if(a.m_val == b.m_val) {
  ------------------
  |  Branch (619:16): [True: 7.24k, False: 1.26M]
  ------------------
  620|       |               // At this point it should be that a == b == 1
  621|  7.24k|               auto r = y.negate();
  622|       |
  623|       |               // Convert back to Montgomery if required
  624|  7.24k|               r.m_val = Rep::to_rep(r.m_val);
  625|  7.24k|               return r;
  626|  7.24k|            }
  627|       |
  628|  1.26M|            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|  1.26M|            std::array<W, N> r;  // NOLINT(*-member-init)
  640|  1.26M|            const word carry = bigint_sub3(r.data(), b.data(), N, a.data(), N);
  641|       |
  642|       |            // Conditional ok: this function is variable time
  643|  1.26M|            if(carry == 0) {
  ------------------
  |  Branch (643:16): [True: 640k, False: 627k]
  ------------------
  644|       |               // b > a
  645|   640k|               b.m_val = r;
  646|   640k|               x = nx;
  647|   640k|               Self::_invert_vartime_div2_helper(b, x);
  648|   640k|            } else {
  649|       |               // We know this can't underflow because a > b
  650|   627k|               bigint_sub3(r.data(), a.data(), N, b.data(), N);
  651|   627k|               a.m_val = r;
  652|   627k|               y = nx;
  653|   627k|               Self::_invert_vartime_div2_helper(a, y);
  654|   627k|            }
  655|  1.26M|         }
  656|  7.24k|      }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS4_12Secp256r1RepEE12ScalarParamsEEEE27_invert_vartime_div2_helperERSB_SC_:
  547|  1.28M|      static constexpr void _invert_vartime_div2_helper(Self& a, Self& x) {
  548|  1.28M|         constexpr auto INV_2 = p_div_2_plus_1(Rep::P);
  549|       |
  550|       |         // Conditional ok: this function is variable time
  551|  3.90M|         while((a.m_val[0] & 1) != 1) {
  ------------------
  |  Branch (551:16): [True: 2.62M, False: 1.28M]
  ------------------
  552|  2.62M|            shift_right<1>(a.m_val);
  553|       |
  554|  2.62M|            const W borrow = shift_right<1>(x.m_val);
  555|       |
  556|       |            // Conditional ok: this function is variable time
  557|  2.62M|            if(borrow) {
  ------------------
  |  Branch (557:16): [True: 1.35M, False: 1.26M]
  ------------------
  558|  1.35M|               bigint_add2(x.m_val.data(), N, INV_2.data(), N);
  559|  1.35M|            }
  560|  2.62M|         }
  561|  1.28M|      }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS4_12Secp256r1RepEE12ScalarParamsEEEE6negateEv:
  452|  14.4k|      constexpr Self negate() const {
  453|  14.4k|         const W x_is_zero = ~CT::all_zeros(this->data(), N).value();
  454|       |
  455|  14.4k|         std::array<W, N> r;  // NOLINT(*-member-init)
  456|  14.4k|         W carry = 0;
  457|  72.4k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (457:28): [True: 57.9k, False: 14.4k]
  ------------------
  458|  57.9k|            r[i] = word_sub(P[i] & x_is_zero, m_val[i], &carry);
  459|  57.9k|         }
  460|       |
  461|  14.4k|         return Self(r);
  462|  14.4k|      }
pcurves_sm2p256v1.cpp:_ZN5Botan23PrecomputedBaseMulTableINS_6PCurve12_GLOBAL__N_19sm2p256v15CurveELm6EEC2ERKNS_16AffineCurvePointINS_6IntModINS3_12Sm2p256v1RepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEEEE:
 1405|      1|            m_table(basemul_booth_setup<C, WindowBits>(p, BlindedScalar::Bits + 1)) {}
pcurves_sm2p256v1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E11from_affineERKNS_16AffineCurvePointISB_EE:
 1016|  13.1k|      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|  13.1k|         auto x = pt.x();
 1027|  13.1k|         auto y = pt.y();
 1028|  13.1k|         auto z = FieldElement::one();
 1029|       |
 1030|  13.1k|         FieldElement::conditional_swap(pt.is_identity(), y, z);
 1031|       |
 1032|  13.1k|         return ProjectiveCurvePoint(x, y, z);
 1033|  13.1k|      }
pcurves_sm2p256v1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE1xEv:
  971|  1.42M|      constexpr const FieldElement& x() const { return m_x; }
pcurves_sm2p256v1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE1yEv:
  976|  1.42M|      constexpr const FieldElement& y() const { return m_y; }
pcurves_sm2p256v1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE3oneEv:
  200|   458k|      static constexpr Self one() { return Self(Rep::one()); }
pcurves_sm2p256v1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEC2ENSt3__15arrayImLm4EEE:
  898|  32.5M|      explicit constexpr IntMod(std::array<W, N> v) : m_val(v) {}
pcurves_sm2p256v1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE16conditional_swapENS_2CT6ChoiceERSA_SD_:
  410|  13.1k|      static constexpr void conditional_swap(CT::Choice cond, Self& x, Self& y) {
  411|  13.1k|         const W mask = cond.into_bitmask<W>();
  412|       |
  413|  65.7k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (413:28): [True: 52.6k, False: 13.1k]
  ------------------
  414|  52.6k|            auto nx = Botan::choose(mask, y.m_val[i], x.m_val[i]);
  415|  52.6k|            auto ny = Botan::choose(mask, x.m_val[i], y.m_val[i]);
  416|  52.6k|            x.m_val[i] = nx;
  417|  52.6k|            y.m_val[i] = ny;
  418|  52.6k|         }
  419|  13.1k|      }
pcurves_sm2p256v1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE11is_identityEv:
  928|   493k|      constexpr CT::Choice is_identity() const { return x().is_zero() && y().is_zero(); }
pcurves_sm2p256v1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE7is_zeroEv:
  225|  3.08M|      constexpr CT::Choice is_zero() const { return CT::all_zeros(m_val.data(), m_val.size()).as_choice(); }
pcurves_sm2p256v1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_EC2ERKSB_SE_SE_:
 1056|  1.01M|            m_x(x), m_y(y), m_z(z) {}
pcurves_sm2p256v1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E3dblEv:
 1121|  66.6k|      constexpr Self dbl() const {
 1122|  66.6k|         if constexpr(Self::A_is_minus_3) {
 1123|  66.6k|            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|  66.6k|      }
pcurves_sm2p256v1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E1zEv:
 1172|  4.75M|      constexpr const FieldElement& z() const { return m_z; }
pcurves_sm2p256v1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE6squareEv:
  426|  7.52M|      constexpr BOTAN_FORCE_INLINE Self square() const {
  427|  7.52M|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  428|  7.52M|         comba_sqr<N>(z.data(), this->data());
  429|  7.52M|         return Self(Rep::redc(z));
  430|  7.52M|      }
pcurves_sm2p256v1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE4dataEv:
  896|  31.8M|      constexpr const W* data() const { return m_val.data(); }
pcurves_sm2p256v1.cpp:_ZN5BotanmlERKNS_6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEESC_:
  346|  9.13M|      friend constexpr BOTAN_FORCE_INLINE Self operator*(const Self& a, const Self& b) {
  347|  9.13M|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  348|  9.13M|         comba_mul<N>(z.data(), a.data(), b.data());
  349|  9.13M|         return Self(Rep::redc(z));
  350|  9.13M|      }
pcurves_sm2p256v1.cpp:_ZN5BotanmiERKNS_6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEESC_:
  281|  8.06M|      friend constexpr BOTAN_FORCE_INLINE Self operator-(const Self& a, const Self& b) {
  282|  8.06M|         std::array<W, N> r;  // NOLINT(*-member-init)
  283|  8.06M|         W carry = 0;
  284|  40.3M|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (284:28): [True: 32.2M, False: 8.06M]
  ------------------
  285|  32.2M|            r[i] = word_sub(a.m_val[i], b.m_val[i], &carry);
  286|  32.2M|         }
  287|       |
  288|  8.06M|         const auto mask = CT::Mask<W>::expand(carry).value();
  289|       |
  290|  8.06M|         carry = 0;
  291|       |
  292|  40.3M|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (292:28): [True: 32.2M, False: 8.06M]
  ------------------
  293|  32.2M|            r[i] = word_add(r[i], P[i] & mask, &carry);
  294|  32.2M|         }
  295|       |
  296|  8.06M|         return Self(r);
  297|  8.06M|      }
pcurves_sm2p256v1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E1xEv:
 1162|  2.66M|      constexpr const FieldElement& x() const { return m_x; }
pcurves_sm2p256v1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE4mul3Ev:
  335|  1.16M|      constexpr inline Self mul3() const { return mul2() + (*this); }
pcurves_sm2p256v1.cpp:_ZN5BotanplERKNS_6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEESC_:
  265|  2.62M|      friend constexpr BOTAN_FORCE_INLINE Self operator+(const Self& a, const Self& b) {
  266|  2.62M|         std::array<W, N> t;  // NOLINT(*-member-init)
  267|       |
  268|  2.62M|         W carry = 0;
  269|  13.1M|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (269:28): [True: 10.4M, False: 2.62M]
  ------------------
  270|  10.4M|            t[i] = word_add(a.m_val[i], b.m_val[i], &carry);
  271|  10.4M|         }
  272|       |
  273|  2.62M|         std::array<W, N> r;  // NOLINT(*-member-init)
  274|  2.62M|         bigint_monty_maybe_sub<N>(r.data(), carry, t.data(), P.data());
  275|  2.62M|         return Self(r);
  276|  2.62M|      }
pcurves_sm2p256v1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E1yEv:
 1167|  2.59M|      constexpr const FieldElement& y() const { return m_y; }
pcurves_sm2p256v1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE4mul4Ev:
  338|  66.6k|      constexpr inline Self mul4() const { return mul2().mul2(); }
pcurves_sm2p256v1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE4mul2Ev:
  325|  4.20M|      constexpr BOTAN_FORCE_INLINE Self mul2() const {
  326|  4.20M|         std::array<W, N> t = value();
  327|  4.20M|         const W carry = shift_left<1>(t);
  328|       |
  329|  4.20M|         std::array<W, N> r;  // NOLINT(*-member-init)
  330|  4.20M|         bigint_monty_maybe_sub<N>(r.data(), carry, t.data(), P.data());
  331|  4.20M|         return Self(r);
  332|  4.20M|      }
pcurves_sm2p256v1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE5valueEv:
  894|  4.57M|      constexpr const std::array<W, N>& value() const { return m_val; }
pcurves_sm2p256v1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE4mul8Ev:
  341|  66.6k|      constexpr inline Self mul8() const { return mul2().mul2().mul2(); }
pcurves_sm2p256v1.cpp:_ZN5BotanplERKNS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_EESE_:
 1064|   119k|      friend constexpr Self operator+(const Self& a, const Self& b) { return Self::add(a, b); }
pcurves_sm2p256v1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E3addERKSC_SE_:
 1103|   119k|      constexpr static Self add(const Self& a, const Self& b) { return point_add<Self, FieldElement>(a, b); }
pcurves_sm2p256v1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E11is_identityEv:
 1082|   966k|      constexpr CT::Choice is_identity() const { return z().is_zero(); }
pcurves_sm2p256v1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE18conditional_assignERSA_SB_SB_NS_2CT6ChoiceERKSA_SF_SF_:
  395|  1.12M|         Self& x, Self& y, Self& z, CT::Choice cond, const Self& nx, const Self& ny, const Self& nz) {
  396|  1.12M|         const W mask = cond.into_bitmask<W>();
  397|       |
  398|  5.64M|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (398:28): [True: 4.51M, False: 1.12M]
  ------------------
  399|  4.51M|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  400|  4.51M|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  401|  4.51M|            z.m_val[i] = Botan::choose(mask, nz.m_val[i], z.m_val[i]);
  402|  4.51M|         }
  403|  1.12M|      }
pcurves_sm2p256v1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEmLERKSA_:
  355|  1.83M|      constexpr BOTAN_FORCE_INLINE Self& operator*=(const Self& other) {
  356|  1.83M|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  357|  1.83M|         comba_mul<N>(z.data(), data(), other.data());
  358|  1.83M|         m_val = Rep::redc(z);
  359|  1.83M|         return (*this);
  360|  1.83M|      }
pcurves_sm2p256v1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE14invert_vartimeEv:
  598|  4.38k|      constexpr Self invert_vartime() const {
  599|       |         // Conditional ok: this function is variable time
  600|  4.38k|         if(this->is_zero().as_bool()) {
  ------------------
  |  Branch (600:13): [True: 0, False: 4.38k]
  ------------------
  601|      0|            return Self::zero();
  602|      0|         }
  603|       |
  604|  4.38k|         auto x = Self(std::array<W, N>{1});  // 1 in standard domain
  605|  4.38k|         auto b = Self(this->to_words());     // *this in standard domain
  606|       |
  607|       |         // First loop iteration
  608|  4.38k|         Self::_invert_vartime_div2_helper(b, x);
  609|       |
  610|  4.38k|         auto a = b.negate();
  611|       |         // y += x but y is zero at the outset
  612|  4.38k|         auto y = x;
  613|       |
  614|       |         // First half of second loop iteration
  615|  4.38k|         Self::_invert_vartime_div2_helper(a, y);
  616|       |
  617|   807k|         for(;;) {
  618|       |            // Conditional ok: this function is variable time
  619|   807k|            if(a.m_val == b.m_val) {
  ------------------
  |  Branch (619:16): [True: 4.38k, False: 802k]
  ------------------
  620|       |               // At this point it should be that a == b == 1
  621|  4.38k|               auto r = y.negate();
  622|       |
  623|       |               // Convert back to Montgomery if required
  624|  4.38k|               r.m_val = Rep::to_rep(r.m_val);
  625|  4.38k|               return r;
  626|  4.38k|            }
  627|       |
  628|   802k|            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|   802k|            std::array<W, N> r;  // NOLINT(*-member-init)
  640|   802k|            const word carry = bigint_sub3(r.data(), b.data(), N, a.data(), N);
  641|       |
  642|       |            // Conditional ok: this function is variable time
  643|   802k|            if(carry == 0) {
  ------------------
  |  Branch (643:16): [True: 429k, False: 372k]
  ------------------
  644|       |               // b > a
  645|   429k|               b.m_val = r;
  646|   429k|               x = nx;
  647|   429k|               Self::_invert_vartime_div2_helper(b, x);
  648|   429k|            } else {
  649|       |               // We know this can't underflow because a > b
  650|   372k|               bigint_sub3(r.data(), a.data(), N, b.data(), N);
  651|   372k|               a.m_val = r;
  652|   372k|               y = nx;
  653|   372k|               Self::_invert_vartime_div2_helper(a, y);
  654|   372k|            }
  655|   802k|         }
  656|  4.38k|      }
pcurves_sm2p256v1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE8to_wordsEv:
  734|  12.3k|      constexpr std::array<W, Self::N> to_words() const { return Rep::from_rep(m_val); }
pcurves_sm2p256v1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE27_invert_vartime_div2_helperERSA_SB_:
  547|   811k|      static constexpr void _invert_vartime_div2_helper(Self& a, Self& x) {
  548|   811k|         constexpr auto INV_2 = p_div_2_plus_1(Rep::P);
  549|       |
  550|       |         // Conditional ok: this function is variable time
  551|  2.34M|         while((a.m_val[0] & 1) != 1) {
  ------------------
  |  Branch (551:16): [True: 1.53M, False: 811k]
  ------------------
  552|  1.53M|            shift_right<1>(a.m_val);
  553|       |
  554|  1.53M|            const W borrow = shift_right<1>(x.m_val);
  555|       |
  556|       |            // Conditional ok: this function is variable time
  557|  1.53M|            if(borrow) {
  ------------------
  |  Branch (557:16): [True: 640k, False: 890k]
  ------------------
  558|   640k|               bigint_add2(x.m_val.data(), N, INV_2.data(), N);
  559|   640k|            }
  560|  1.53M|         }
  561|   811k|      }
pcurves_sm2p256v1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE6negateEv:
  452|  12.7k|      constexpr Self negate() const {
  453|  12.7k|         const W x_is_zero = ~CT::all_zeros(this->data(), N).value();
  454|       |
  455|  12.7k|         std::array<W, N> r;  // NOLINT(*-member-init)
  456|  12.7k|         W carry = 0;
  457|  63.6k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (457:28): [True: 50.9k, False: 12.7k]
  ------------------
  458|  50.9k|            r[i] = word_sub(P[i] & x_is_zero, m_val[i], &carry);
  459|  50.9k|         }
  460|       |
  461|  12.7k|         return Self(r);
  462|  12.7k|      }
pcurves_sm2p256v1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEEC2ERKSB_SE_:
  917|   326k|      constexpr AffineCurvePoint(const FieldElement& x, const FieldElement& y) : m_x(x), m_y(y) {}
pcurves_sm2p256v1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE11stash_valueILm9EEENSt3__15arrayImXT_EEEv:
  759|  17.5k|      std::array<W, L> stash_value() const {
  760|  17.5k|         static_assert(L >= N);
  761|  17.5k|         std::array<W, L> stash = {};
  762|  87.7k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 70.2k, False: 17.5k]
  ------------------
  763|  70.2k|            stash[i] = m_val[i];
  764|  70.2k|         }
  765|  17.5k|         return stash;
  766|  17.5k|      }
pcurves_sm2p256v1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19sm2p256v16ParamsENS4_12Sm2p256v1RepEE12ScalarParamsEE8from_repERKNSt3__15arrayImLm4EEE:
  137|  13.1k|      constexpr static std::array<W, N> from_rep(const std::array<W, N>& z) {
  138|  13.1k|         std::array<W, 2 * N> ze = {};
  139|  13.1k|         copy_mem(std::span{ze}.template first<N>(), z);
  140|  13.1k|         return Self::redc(ze);
  141|  13.1k|      }
pcurves_sm2p256v1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19sm2p256v16ParamsENS4_12Sm2p256v1RepEE12ScalarParamsEE4redcERKNSt3__15arrayImLm8EEE:
  104|  30.6k|      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|  30.6k|         } else {
  108|  30.6k|            return monty_redc(z, P, P_dash);
  109|  30.6k|         }
  110|  30.6k|      }
pcurves_sm2p256v1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19sm2p256v16ParamsENS5_12Sm2p256v1RepEE12ScalarParamsEEEE12serialize_toENSt3__14spanIhLm32EEE:
  739|  13.1k|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|  13.1k|         auto v = Rep::from_rep(m_val);
  741|  13.1k|         std::reverse(v.begin(), v.end());
  742|       |
  743|  13.1k|         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|  13.1k|            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|  13.1k|      }
pcurves_sm2p256v1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE11deserializeENSt3__14spanIKhLm18446744073709551615EEE:
  792|  21.9k|      static std::optional<Self> deserialize(std::span<const uint8_t> bytes) {
  793|       |         // Conditional ok: input length is public
  794|  21.9k|         if(bytes.size() != Self::BYTES) {
  ------------------
  |  Branch (794:13): [True: 0, False: 21.9k]
  ------------------
  795|      0|            return {};
  796|      0|         }
  797|       |
  798|  21.9k|         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|  21.9k|         if(!bigint_ct_is_lt(words.data(), N, P.data(), N).as_bool()) {
  ------------------
  |  Branch (801:13): [True: 0, False: 21.9k]
  ------------------
  802|      0|            return {};
  803|      0|         }
  804|       |
  805|       |         // Safe because we checked above that words is an integer < P
  806|  21.9k|         return Self::from_words(words);
  807|  21.9k|      }
pcurves_sm2p256v1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE10from_wordsILm4EEESA_NSt3__15arrayImXT_EEE:
  211|  25.8k|      static constexpr Self from_words(std::array<W, L> w) {
  212|  25.8k|         if constexpr(L == N) {
  213|  25.8k|            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|  25.8k|      }
pcurves_sm2p256v1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19sm2p256v16ParamsENS5_12Sm2p256v1RepEE12ScalarParamsEEEE10from_stashILm9EEESB_RKNSt3__15arrayImXT_EEE:
  774|  43.7k|      static Self from_stash(const std::array<W, L>& stash) {
  775|  43.7k|         static_assert(L >= N);
  776|  43.7k|         std::array<W, N> val = {};
  777|   218k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 175k, False: 43.7k]
  ------------------
  778|   175k|            val[i] = stash[i];
  779|   175k|         }
  780|  43.7k|         return Self(val);
  781|  43.7k|      }
pcurves_sm2p256v1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19sm2p256v16ParamsENS5_12Sm2p256v1RepEE12ScalarParamsEEEEC2ENSt3__15arrayImLm4EEE:
  898|  65.7k|      explicit constexpr IntMod(std::array<W, N> v) : m_val(v) {}
pcurves_sm2p256v1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE12serialize_toENSt3__14spanIhLm32EEE:
  739|  35.1k|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|  35.1k|         auto v = Rep::from_rep(m_val);
  741|  35.1k|         std::reverse(v.begin(), v.end());
  742|       |
  743|  35.1k|         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|  35.1k|            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|  35.1k|      }
pcurves_sm2p256v1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19sm2p256v16ParamsENS5_12Sm2p256v1RepEE12ScalarParamsEEEE11stash_valueILm9EEENSt3__15arrayImXT_EEEv:
  759|  21.9k|      std::array<W, L> stash_value() const {
  760|  21.9k|         static_assert(L >= N);
  761|  21.9k|         std::array<W, L> stash = {};
  762|   109k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 87.6k, False: 21.9k]
  ------------------
  763|  87.6k|            stash[i] = m_val[i];
  764|  87.6k|         }
  765|  21.9k|         return stash;
  766|  21.9k|      }
pcurves_sm2p256v1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19sm2p256v16ParamsENS4_12Sm2p256v1RepEE12ScalarParamsEE11wide_to_repERKNSt3__15arrayImLm8EEE:
  127|  4.38k|      constexpr static std::array<W, N> wide_to_rep(const std::array<W, 2 * N>& x) {
  128|  4.38k|         auto redc_x = Self::redc(x);
  129|  4.38k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  130|  4.38k|         comba_mul<N>(z.data(), redc_x.data(), R3.data());
  131|  4.38k|         return Self::redc(z);
  132|  4.38k|      }
pcurves_sm2p256v1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE10from_stashILm9EEESA_RKNSt3__15arrayImXT_EEE:
  774|  78.9k|      static Self from_stash(const std::array<W, L>& stash) {
  775|  78.9k|         static_assert(L >= N);
  776|  78.9k|         std::array<W, N> val = {};
  777|   394k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 315k, False: 78.9k]
  ------------------
  778|   315k|            val[i] = stash[i];
  779|   315k|         }
  780|  78.9k|         return Self(val);
  781|  78.9k|      }
pcurves_sm2p256v1.cpp:_ZN5BotanplERKNS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_EERKNS_16AffineCurvePointISB_EE:
 1066|   388k|      friend constexpr Self operator+(const Self& a, const AffinePoint& b) { return Self::add_mixed(a, b); }
pcurves_sm2p256v1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E9add_mixedERKSC_RKNS_16AffineCurvePointISB_EE:
 1091|   445k|      constexpr static Self add_mixed(const Self& a, const AffinePoint& b) {
 1092|   445k|         return point_add_mixed<Self, AffinePoint, FieldElement>(a, b, FieldElement::one());
 1093|   445k|      }
pcurves_sm2p256v1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E5dbl_nEm:
 1108|   367k|      constexpr Self dbl_n(size_t n) const {
 1109|   367k|         if constexpr(Self::A_is_minus_3) {
 1110|   367k|            return dbl_n_a_minus_3(*this, n);
 1111|       |         } else if constexpr(Self::A_is_zero) {
 1112|       |            return dbl_n_a_zero(*this, n);
 1113|       |         } else {
 1114|       |            return dbl_n_generic(*this, A, n);
 1115|       |         }
 1116|   367k|      }
pcurves_sm2p256v1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE4div2Ev:
  302|   367k|      Self div2() const {
  303|       |         // The inverse of 2 modulo P is (P/2)+1; this avoids a constexpr time
  304|       |         // general inversion, which some compilers can't handle
  305|   367k|         constexpr auto INV_2 = p_div_2_plus_1(Rep::P);
  306|       |
  307|       |         // We could multiply by INV_2 but there is a better way ...
  308|       |
  309|   367k|         std::array<W, N> t = value();
  310|   367k|         const W borrow = shift_right<1>(t);
  311|       |
  312|       |         // If value was odd, add (P/2)+1
  313|   367k|         const auto mask = CT::Mask<W>::expand(borrow).value();
  314|       |
  315|   367k|         W carry = 0;
  316|       |
  317|  1.83M|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (317:28): [True: 1.47M, False: 367k]
  ------------------
  318|  1.47M|            t[i] = word_add(t[i], INV_2[i] & mask, &carry);
  319|  1.47M|         }
  320|       |
  321|   367k|         return Self(t);
  322|   367k|      }
pcurves_sm2p256v1.cpp:_ZN5Botan16VartimeMul2TableINS_6PCurve12_GLOBAL__N_19sm2p256v15CurveELm3EEC2ERKNS_16AffineCurvePointINS_6IntModINS3_12Sm2p256v1RepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEEEESH_:
 1577|  4.38k|            m_table(to_affine_batch<C, true>(mul2_setup<C, W>(p, q))) {}
pcurves_sm2p256v1.cpp:_ZN5BotanplERKNS_16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEEERKNS_20ProjectiveCurvePointISB_S7_EE:
 1068|  57.0k|      friend constexpr Self operator+(const AffinePoint& a, const Self& b) { return Self::add_mixed(b, a); }
pcurves_sm2p256v1.cpp:_ZNK5Botan16VartimeMul2TableINS_6PCurve12_GLOBAL__N_19sm2p256v15CurveELm3EE12mul2_vartimeERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS3_12Sm2p256v1RepEE12ScalarParamsEEEEESG_:
 1588|  4.37k|      ProjectivePoint mul2_vartime(const Scalar& s1, const Scalar& s2) const {
 1589|  4.37k|         constexpr size_t Windows = (Scalar::BITS + WindowBits - 1) / WindowBits;
 1590|       |
 1591|  4.37k|         const UnblindedScalarBits<C, W> bits1(s1);
 1592|  4.37k|         const UnblindedScalarBits<C, W> bits2(s2);
 1593|       |
 1594|  4.37k|         const bool s1_is_zero = s1.is_zero().as_bool();
 1595|  4.37k|         const bool s2_is_zero = s2.is_zero().as_bool();
 1596|       |
 1597|       |         // Conditional ok: this function is variable time
 1598|  4.37k|         if(s1_is_zero && s2_is_zero) {
  ------------------
  |  Branch (1598:13): [True: 0, False: 4.37k]
  |  Branch (1598:27): [True: 0, False: 0]
  ------------------
 1599|      0|            return ProjectivePoint::identity();
 1600|      0|         }
 1601|       |
 1602|  4.37k|         auto [w_0, first_nonempty_window] = [&]() {
 1603|  4.37k|            for(size_t i = 0; i != Windows; ++i) {
 1604|  4.37k|               const size_t w_1 = bits1.get_window((Windows - i - 1) * WindowBits);
 1605|  4.37k|               const size_t w_2 = bits2.get_window((Windows - i - 1) * WindowBits);
 1606|  4.37k|               const size_t window = w_1 + (w_2 << WindowBits);
 1607|       |               // Conditional ok: this function is variable time
 1608|  4.37k|               if(window > 0) {
 1609|  4.37k|                  return std::make_pair(window, i);
 1610|  4.37k|               }
 1611|  4.37k|            }
 1612|       |            // We checked for s1 == s2 == 0 above, so we must see a window eventually
 1613|  4.37k|            BOTAN_ASSERT_UNREACHABLE();
 1614|  4.37k|         }();
 1615|       |
 1616|  4.37k|         BOTAN_ASSERT_NOMSG(w_0 > 0);
  ------------------
  |  |   77|  4.37k|   do {                                                                     \
  |  |   78|  4.37k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  4.37k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 4.37k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  4.37k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 4.37k]
  |  |  ------------------
  ------------------
 1617|  4.37k|         auto accum = ProjectivePoint::from_affine(m_table[w_0 - 1]);
 1618|       |
 1619|   372k|         for(size_t i = first_nonempty_window + 1; i < Windows; ++i) {
  ------------------
  |  Branch (1619:52): [True: 367k, False: 4.37k]
  ------------------
 1620|   367k|            accum = accum.dbl_n(WindowBits);
 1621|       |
 1622|   367k|            const size_t w_1 = bits1.get_window((Windows - i - 1) * WindowBits);
 1623|   367k|            const size_t w_2 = bits2.get_window((Windows - i - 1) * WindowBits);
 1624|       |
 1625|   367k|            const size_t window = w_1 + (w_2 << WindowBits);
 1626|       |
 1627|       |            // Conditional ok: this function is variable time
 1628|   367k|            if(window > 0) {
  ------------------
  |  Branch (1628:16): [True: 362k, False: 5.32k]
  ------------------
 1629|   362k|               accum += m_table[window - 1];
 1630|   362k|            }
 1631|   367k|         }
 1632|       |
 1633|  4.37k|         return accum;
 1634|  4.37k|      }
pcurves_sm2p256v1.cpp:_ZN5Botan19UnblindedScalarBitsINS_6PCurve12_GLOBAL__N_19sm2p256v15CurveELm3EEC2ERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS3_12Sm2p256v1RepEE12ScalarParamsEEEEE:
 1378|  8.75k|      explicit UnblindedScalarBits(const typename C::Scalar& scalar) { scalar.serialize_to(std::span{m_bytes}); }
pcurves_sm2p256v1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19sm2p256v16ParamsENS5_12Sm2p256v1RepEE12ScalarParamsEEEE7is_zeroEv:
  225|  30.6k|      constexpr CT::Choice is_zero() const { return CT::all_zeros(m_val.data(), m_val.size()).as_choice(); }
pcurves_sm2p256v1.cpp:_ZZNK5Botan16VartimeMul2TableINS_6PCurve12_GLOBAL__N_19sm2p256v15CurveELm3EE12mul2_vartimeERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS3_12Sm2p256v1RepEE12ScalarParamsEEEEESG_ENKUlvE_clEv:
 1602|  4.37k|         auto [w_0, first_nonempty_window] = [&]() {
 1603|  8.97k|            for(size_t i = 0; i != Windows; ++i) {
  ------------------
  |  Branch (1603:31): [True: 8.97k, False: 0]
  ------------------
 1604|  8.97k|               const size_t w_1 = bits1.get_window((Windows - i - 1) * WindowBits);
 1605|  8.97k|               const size_t w_2 = bits2.get_window((Windows - i - 1) * WindowBits);
 1606|  8.97k|               const size_t window = w_1 + (w_2 << WindowBits);
 1607|       |               // Conditional ok: this function is variable time
 1608|  8.97k|               if(window > 0) {
  ------------------
  |  Branch (1608:19): [True: 4.37k, False: 4.59k]
  ------------------
 1609|  4.37k|                  return std::make_pair(window, i);
 1610|  4.37k|               }
 1611|  8.97k|            }
 1612|       |            // We checked for s1 == s2 == 0 above, so we must see a window eventually
 1613|      0|            BOTAN_ASSERT_UNREACHABLE();
  ------------------
  |  |  166|      0|#define BOTAN_ASSERT_UNREACHABLE() Botan::assert_unreachable(__FILE__, __LINE__)
  ------------------
 1614|      0|         }();
pcurves_sm2p256v1.cpp:_ZNK5Botan19UnblindedScalarBitsINS_6PCurve12_GLOBAL__N_19sm2p256v15CurveELm3EE10get_windowEm:
 1380|   753k|      size_t get_window(size_t offset) const {
 1381|       |         // Extract a WindowBits sized window out of s, depending on offset.
 1382|   753k|         return read_window_bits<WindowBits>(std::span{m_bytes}, offset);
 1383|   753k|      }
pcurves_sm2p256v1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_EpLERKNS_16AffineCurvePointISB_EE:
 1075|   362k|      constexpr Self& operator+=(const AffinePoint& other) {
 1076|   362k|         (*this) = (*this) + other;
 1077|   362k|         return (*this);
 1078|   362k|      }
pcurves_sm2p256v1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEeqERKSA_:
  722|  13.1k|      constexpr CT::Choice operator==(const Self& other) const {
  723|  13.1k|         return CT::is_equal(this->data(), other.data(), N).as_choice();
  724|  13.1k|      }
pcurves_sm2p256v1.cpp:_ZN5Botan13EllipticCurveINS_6PCurve12_GLOBAL__N_19sm2p256v16ParamsENS3_12Sm2p256v1RepEE7x3_ax_bERKNS_6IntModINS5_INS6_11FieldParamsEEEEE:
 1275|  8.77k|      static constexpr FieldElement x3_ax_b(const FieldElement& x) { return (x.square() + A) * x + B; }
pcurves_sm2p256v1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19sm2p256v16ParamsENS5_12Sm2p256v1RepEE12ScalarParamsEEEE11deserializeENSt3__14spanIKhLm18446744073709551615EEE:
  792|  8.77k|      static std::optional<Self> deserialize(std::span<const uint8_t> bytes) {
  793|       |         // Conditional ok: input length is public
  794|  8.77k|         if(bytes.size() != Self::BYTES) {
  ------------------
  |  Branch (794:13): [True: 0, False: 8.77k]
  ------------------
  795|      0|            return {};
  796|      0|         }
  797|       |
  798|  8.77k|         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|  8.77k|         if(!bigint_ct_is_lt(words.data(), N, P.data(), N).as_bool()) {
  ------------------
  |  Branch (801:13): [True: 5, False: 8.76k]
  ------------------
  802|      5|            return {};
  803|      5|         }
  804|       |
  805|       |         // Safe because we checked above that words is an integer < P
  806|  8.76k|         return Self::from_words(words);
  807|  8.77k|      }
pcurves_sm2p256v1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19sm2p256v16ParamsENS5_12Sm2p256v1RepEE12ScalarParamsEEEE10from_wordsILm4EEESB_NSt3__15arrayImXT_EEE:
  211|  8.76k|      static constexpr Self from_words(std::array<W, L> w) {
  212|  8.76k|         if constexpr(L == N) {
  213|  8.76k|            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|  8.76k|      }
pcurves_sm2p256v1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19sm2p256v16ParamsENS4_12Sm2p256v1RepEE12ScalarParamsEE6to_repERKNSt3__15arrayImLm4EEE:
  115|  8.76k|      constexpr static std::array<W, N> to_rep(const std::array<W, N>& x) {
  116|  8.76k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  117|  8.76k|         comba_mul<N>(z.data(), x.data(), R2.data());
  118|  8.76k|         return Self::redc(z);
  119|  8.76k|      }
pcurves_sm2p256v1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19sm2p256v16ParamsENS5_12Sm2p256v1RepEE12ScalarParamsEEEE22from_wide_bytes_varlenENSt3__14spanIKhLm18446744073709551615EEE:
  829|  4.38k|      static constexpr std::optional<Self> from_wide_bytes_varlen(std::span<const uint8_t> bytes) {
  830|       |         // Conditional ok: input length is public
  831|  4.38k|         if(bytes.size() > 2 * Self::BYTES) {
  ------------------
  |  Branch (831:13): [True: 0, False: 4.38k]
  ------------------
  832|      0|            return {};
  833|      0|         }
  834|       |
  835|  4.38k|         std::array<uint8_t, 2 * Self::BYTES> padded_bytes = {};
  836|  4.38k|         copy_mem(std::span{padded_bytes}.last(bytes.size()), bytes);
  837|  4.38k|         return Self(Rep::wide_to_rep(bytes_to_words<W, 2 * N, 2 * BYTES>(std::span{padded_bytes})));
  838|  4.38k|      }
pcurves_sm2p256v1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE12serialize_toENSt3__14spanIhLm65EEE:
  941|  17.5k|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  942|  17.5k|         BOTAN_STATE_CHECK(this->is_identity().as_bool() == false);
  ------------------
  |  |   51|  17.5k|   do {                                                         \
  |  |   52|  17.5k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|  17.5k|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 17.5k]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|  17.5k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 17.5k]
  |  |  ------------------
  ------------------
  943|  17.5k|         BufferStuffer pack(bytes);
  944|  17.5k|         pack.append(0x04);
  945|  17.5k|         x().serialize_to(pack.next<FieldElement::BYTES>());
  946|  17.5k|         y().serialize_to(pack.next<FieldElement::BYTES>());
  947|  17.5k|         BOTAN_DEBUG_ASSERT(pack.full());
  ------------------
  |  |  130|  17.5k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  17.5k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 17.5k]
  |  |  ------------------
  ------------------
  948|  17.5k|      }
pcurves_sm2p256v1.cpp:_ZN5BotanplERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19sm2p256v16ParamsENS5_12Sm2p256v1RepEE12ScalarParamsEEEEESD_:
  265|  4.37k|      friend constexpr BOTAN_FORCE_INLINE Self operator+(const Self& a, const Self& b) {
  266|  4.37k|         std::array<W, N> t;  // NOLINT(*-member-init)
  267|       |
  268|  4.37k|         W carry = 0;
  269|  21.8k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (269:28): [True: 17.5k, False: 4.37k]
  ------------------
  270|  17.5k|            t[i] = word_add(a.m_val[i], b.m_val[i], &carry);
  271|  17.5k|         }
  272|       |
  273|  4.37k|         std::array<W, N> r;  // NOLINT(*-member-init)
  274|  4.37k|         bigint_monty_maybe_sub<N>(r.data(), carry, t.data(), P.data());
  275|  4.37k|         return Self(r);
  276|  4.37k|      }
pcurves_sm2p256v1.cpp:_ZN5BotanmiERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19sm2p256v16ParamsENS5_12Sm2p256v1RepEE12ScalarParamsEEEEESD_:
  281|  4.37k|      friend constexpr BOTAN_FORCE_INLINE Self operator-(const Self& a, const Self& b) {
  282|  4.37k|         std::array<W, N> r;  // NOLINT(*-member-init)
  283|  4.37k|         W carry = 0;
  284|  21.8k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (284:28): [True: 17.5k, False: 4.37k]
  ------------------
  285|  17.5k|            r[i] = word_sub(a.m_val[i], b.m_val[i], &carry);
  286|  17.5k|         }
  287|       |
  288|  4.37k|         const auto mask = CT::Mask<W>::expand(carry).value();
  289|       |
  290|  4.37k|         carry = 0;
  291|       |
  292|  21.8k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (292:28): [True: 17.5k, False: 4.37k]
  ------------------
  293|  17.5k|            r[i] = word_add(r[i], P[i] & mask, &carry);
  294|  17.5k|         }
  295|       |
  296|  4.37k|         return Self(r);
  297|  4.37k|      }

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:_ZN5Botan10mul2_setupINS_6PCurve12_GLOBAL__N_19secp256k15CurveELm3EEENSt3__16vectorINT_15ProjectivePointENS5_9allocatorIS8_EEEERKNS7_11AffinePointESE_:
  449|  2.36k|                                                    const typename C::AffinePoint& q) {
  450|  2.36k|   static_assert(WindowBits >= 1 && WindowBits <= 4);
  451|       |
  452|       |   // 2^(2*W) elements, less the identity element
  453|  2.36k|   constexpr size_t TableSize = (1 << (2 * WindowBits)) - 1;
  454|  2.36k|   constexpr size_t WindowSize = (1 << WindowBits);
  455|       |
  456|  2.36k|   std::vector<typename C::ProjectivePoint> table;
  457|  2.36k|   table.reserve(TableSize);
  458|       |
  459|   151k|   for(size_t i = 0; i != TableSize; ++i) {
  ------------------
  |  Branch (459:22): [True: 149k, False: 2.36k]
  ------------------
  460|   149k|      const size_t t_i = (i + 1);
  461|   149k|      const size_t p_i = t_i % WindowSize;
  462|   149k|      const size_t q_i = (t_i >> WindowBits) % WindowSize;
  463|       |
  464|       |      // Conditionals ok: all based on t_i/p_i/q_i which in turn are derived from public i
  465|       |
  466|       |      // Returns x_i * x + y_i * y
  467|   149k|      auto next_tbl_e = [&]() {
  468|   149k|         if(p_i % 2 == 0 && q_i % 2 == 0) {
  469|       |            // Where possible using doubling (eg indices 1, 7, 9 in
  470|       |            // the table above)
  471|   149k|            return table[(t_i / 2) - 1].dbl();
  472|   149k|         } else if(p_i > 0 && q_i > 0) {
  473|       |            // A combination of p and q
  474|   149k|            if(p_i == 1) {
  475|   149k|               return p + table[(q_i << WindowBits) - 1];
  476|   149k|            } else if(q_i == 1) {
  477|   149k|               return table[p_i - 1] + q;
  478|   149k|            } else {
  479|   149k|               return table[p_i - 1] + table[(q_i << WindowBits) - 1];
  480|   149k|            }
  481|   149k|         } else if(p_i > 0 && q_i == 0) {
  482|       |            // A multiple of p without a q component
  483|   149k|            if(p_i == 1) {
  484|       |               // Just p
  485|   149k|               return C::ProjectivePoint::from_affine(p);
  486|   149k|            } else {
  487|       |               // p * p_{i-1}
  488|   149k|               return p + table[p_i - 1 - 1];
  489|   149k|            }
  490|   149k|         } else if(p_i == 0 && q_i > 0) {
  491|   149k|            if(q_i == 1) {
  492|       |               // Just q
  493|   149k|               return C::ProjectivePoint::from_affine(q);
  494|   149k|            } else {
  495|       |               // q * q_{i-1}
  496|   149k|               return q + table[((q_i - 1) << WindowBits) - 1];
  497|   149k|            }
  498|   149k|         } else {
  499|   149k|            BOTAN_ASSERT_UNREACHABLE();
  500|   149k|         }
  501|   149k|      };
  502|       |
  503|   149k|      table.emplace_back(next_tbl_e());
  504|   149k|   }
  505|       |
  506|  2.36k|   return table;
  507|  2.36k|}
pcurves_secp256k1.cpp:_ZZN5Botan10mul2_setupINS_6PCurve12_GLOBAL__N_19secp256k15CurveELm3EEENSt3__16vectorINT_15ProjectivePointENS5_9allocatorIS8_EEEERKNS7_11AffinePointESE_ENKUlvE_clEv:
  467|   149k|      auto next_tbl_e = [&]() {
  468|   149k|         if(p_i % 2 == 0 && q_i % 2 == 0) {
  ------------------
  |  Branch (468:13): [True: 73.4k, False: 75.7k]
  |  Branch (468:29): [True: 35.5k, False: 37.8k]
  ------------------
  469|       |            // Where possible using doubling (eg indices 1, 7, 9 in
  470|       |            // the table above)
  471|  35.5k|            return table[(t_i / 2) - 1].dbl();
  472|   113k|         } else if(p_i > 0 && q_i > 0) {
  ------------------
  |  Branch (472:20): [True: 104k, False: 9.47k]
  |  Branch (472:31): [True: 94.7k, False: 9.47k]
  ------------------
  473|       |            // A combination of p and q
  474|  94.7k|            if(p_i == 1) {
  ------------------
  |  Branch (474:16): [True: 16.5k, False: 78.1k]
  ------------------
  475|  16.5k|               return p + table[(q_i << WindowBits) - 1];
  476|  78.1k|            } else if(q_i == 1) {
  ------------------
  |  Branch (476:23): [True: 14.2k, False: 63.9k]
  ------------------
  477|  14.2k|               return table[p_i - 1] + q;
  478|  63.9k|            } else {
  479|  63.9k|               return table[p_i - 1] + table[(q_i << WindowBits) - 1];
  480|  63.9k|            }
  481|  94.7k|         } else if(p_i > 0 && q_i == 0) {
  ------------------
  |  Branch (481:20): [True: 9.47k, False: 9.47k]
  |  Branch (481:31): [True: 9.47k, False: 0]
  ------------------
  482|       |            // A multiple of p without a q component
  483|  9.47k|            if(p_i == 1) {
  ------------------
  |  Branch (483:16): [True: 2.36k, False: 7.10k]
  ------------------
  484|       |               // Just p
  485|  2.36k|               return C::ProjectivePoint::from_affine(p);
  486|  7.10k|            } else {
  487|       |               // p * p_{i-1}
  488|  7.10k|               return p + table[p_i - 1 - 1];
  489|  7.10k|            }
  490|  9.47k|         } else if(p_i == 0 && q_i > 0) {
  ------------------
  |  Branch (490:20): [True: 9.47k, False: 0]
  |  Branch (490:32): [True: 9.47k, False: 0]
  ------------------
  491|  9.47k|            if(q_i == 1) {
  ------------------
  |  Branch (491:16): [True: 2.36k, False: 7.10k]
  ------------------
  492|       |               // Just q
  493|  2.36k|               return C::ProjectivePoint::from_affine(q);
  494|  7.10k|            } else {
  495|       |               // q * q_{i-1}
  496|  7.10k|               return q + table[((q_i - 1) << WindowBits) - 1];
  497|  7.10k|            }
  498|  9.47k|         } else {
  499|      0|            BOTAN_ASSERT_UNREACHABLE();
  ------------------
  |  |  166|      0|#define BOTAN_ASSERT_UNREACHABLE() Botan::assert_unreachable(__FILE__, __LINE__)
  ------------------
  500|      0|         }
  501|   149k|      };
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:_ZN5Botan10mul2_setupINS_6PCurve12_GLOBAL__N_19secp256r15CurveELm3EEENSt3__16vectorINT_15ProjectivePointENS5_9allocatorIS8_EEEERKNS7_11AffinePointESE_:
  449|  7.27k|                                                    const typename C::AffinePoint& q) {
  450|  7.27k|   static_assert(WindowBits >= 1 && WindowBits <= 4);
  451|       |
  452|       |   // 2^(2*W) elements, less the identity element
  453|  7.27k|   constexpr size_t TableSize = (1 << (2 * WindowBits)) - 1;
  454|  7.27k|   constexpr size_t WindowSize = (1 << WindowBits);
  455|       |
  456|  7.27k|   std::vector<typename C::ProjectivePoint> table;
  457|  7.27k|   table.reserve(TableSize);
  458|       |
  459|   465k|   for(size_t i = 0; i != TableSize; ++i) {
  ------------------
  |  Branch (459:22): [True: 458k, False: 7.27k]
  ------------------
  460|   458k|      const size_t t_i = (i + 1);
  461|   458k|      const size_t p_i = t_i % WindowSize;
  462|   458k|      const size_t q_i = (t_i >> WindowBits) % WindowSize;
  463|       |
  464|       |      // Conditionals ok: all based on t_i/p_i/q_i which in turn are derived from public i
  465|       |
  466|       |      // Returns x_i * x + y_i * y
  467|   458k|      auto next_tbl_e = [&]() {
  468|   458k|         if(p_i % 2 == 0 && q_i % 2 == 0) {
  469|       |            // Where possible using doubling (eg indices 1, 7, 9 in
  470|       |            // the table above)
  471|   458k|            return table[(t_i / 2) - 1].dbl();
  472|   458k|         } else if(p_i > 0 && q_i > 0) {
  473|       |            // A combination of p and q
  474|   458k|            if(p_i == 1) {
  475|   458k|               return p + table[(q_i << WindowBits) - 1];
  476|   458k|            } else if(q_i == 1) {
  477|   458k|               return table[p_i - 1] + q;
  478|   458k|            } else {
  479|   458k|               return table[p_i - 1] + table[(q_i << WindowBits) - 1];
  480|   458k|            }
  481|   458k|         } else if(p_i > 0 && q_i == 0) {
  482|       |            // A multiple of p without a q component
  483|   458k|            if(p_i == 1) {
  484|       |               // Just p
  485|   458k|               return C::ProjectivePoint::from_affine(p);
  486|   458k|            } else {
  487|       |               // p * p_{i-1}
  488|   458k|               return p + table[p_i - 1 - 1];
  489|   458k|            }
  490|   458k|         } else if(p_i == 0 && q_i > 0) {
  491|   458k|            if(q_i == 1) {
  492|       |               // Just q
  493|   458k|               return C::ProjectivePoint::from_affine(q);
  494|   458k|            } else {
  495|       |               // q * q_{i-1}
  496|   458k|               return q + table[((q_i - 1) << WindowBits) - 1];
  497|   458k|            }
  498|   458k|         } else {
  499|   458k|            BOTAN_ASSERT_UNREACHABLE();
  500|   458k|         }
  501|   458k|      };
  502|       |
  503|   458k|      table.emplace_back(next_tbl_e());
  504|   458k|   }
  505|       |
  506|  7.27k|   return table;
  507|  7.27k|}
pcurves_secp256r1.cpp:_ZZN5Botan10mul2_setupINS_6PCurve12_GLOBAL__N_19secp256r15CurveELm3EEENSt3__16vectorINT_15ProjectivePointENS5_9allocatorIS8_EEEERKNS7_11AffinePointESE_ENKUlvE_clEv:
  467|   458k|      auto next_tbl_e = [&]() {
  468|   458k|         if(p_i % 2 == 0 && q_i % 2 == 0) {
  ------------------
  |  Branch (468:13): [True: 225k, False: 232k]
  |  Branch (468:29): [True: 109k, False: 116k]
  ------------------
  469|       |            // Where possible using doubling (eg indices 1, 7, 9 in
  470|       |            // the table above)
  471|   109k|            return table[(t_i / 2) - 1].dbl();
  472|   349k|         } else if(p_i > 0 && q_i > 0) {
  ------------------
  |  Branch (472:20): [True: 319k, False: 29.0k]
  |  Branch (472:31): [True: 290k, False: 29.0k]
  ------------------
  473|       |            // A combination of p and q
  474|   290k|            if(p_i == 1) {
  ------------------
  |  Branch (474:16): [True: 50.8k, False: 239k]
  ------------------
  475|  50.8k|               return p + table[(q_i << WindowBits) - 1];
  476|   239k|            } else if(q_i == 1) {
  ------------------
  |  Branch (476:23): [True: 43.6k, False: 196k]
  ------------------
  477|  43.6k|               return table[p_i - 1] + q;
  478|   196k|            } else {
  479|   196k|               return table[p_i - 1] + table[(q_i << WindowBits) - 1];
  480|   196k|            }
  481|   290k|         } else if(p_i > 0 && q_i == 0) {
  ------------------
  |  Branch (481:20): [True: 29.0k, False: 29.0k]
  |  Branch (481:31): [True: 29.0k, False: 0]
  ------------------
  482|       |            // A multiple of p without a q component
  483|  29.0k|            if(p_i == 1) {
  ------------------
  |  Branch (483:16): [True: 7.27k, False: 21.8k]
  ------------------
  484|       |               // Just p
  485|  7.27k|               return C::ProjectivePoint::from_affine(p);
  486|  21.8k|            } else {
  487|       |               // p * p_{i-1}
  488|  21.8k|               return p + table[p_i - 1 - 1];
  489|  21.8k|            }
  490|  29.0k|         } else if(p_i == 0 && q_i > 0) {
  ------------------
  |  Branch (490:20): [True: 29.0k, False: 0]
  |  Branch (490:32): [True: 29.0k, False: 0]
  ------------------
  491|  29.0k|            if(q_i == 1) {
  ------------------
  |  Branch (491:16): [True: 7.27k, False: 21.8k]
  ------------------
  492|       |               // Just q
  493|  7.27k|               return C::ProjectivePoint::from_affine(q);
  494|  21.8k|            } else {
  495|       |               // q * q_{i-1}
  496|  21.8k|               return q + table[((q_i - 1) << WindowBits) - 1];
  497|  21.8k|            }
  498|  29.0k|         } else {
  499|      0|            BOTAN_ASSERT_UNREACHABLE();
  ------------------
  |  |  166|      0|#define BOTAN_ASSERT_UNREACHABLE() Botan::assert_unreachable(__FILE__, __LINE__)
  ------------------
  500|      0|         }
  501|   458k|      };
pcurves_sm2p256v1.cpp:_ZN5Botan19basemul_booth_setupINS_6PCurve12_GLOBAL__N_19sm2p256v15CurveELm6EEENSt3__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_sm2p256v1.cpp:_ZN5Botan10mul2_setupINS_6PCurve12_GLOBAL__N_19sm2p256v15CurveELm3EEENSt3__16vectorINT_15ProjectivePointENS5_9allocatorIS8_EEEERKNS7_11AffinePointESE_:
  449|  4.38k|                                                    const typename C::AffinePoint& q) {
  450|  4.38k|   static_assert(WindowBits >= 1 && WindowBits <= 4);
  451|       |
  452|       |   // 2^(2*W) elements, less the identity element
  453|  4.38k|   constexpr size_t TableSize = (1 << (2 * WindowBits)) - 1;
  454|  4.38k|   constexpr size_t WindowSize = (1 << WindowBits);
  455|       |
  456|  4.38k|   std::vector<typename C::ProjectivePoint> table;
  457|  4.38k|   table.reserve(TableSize);
  458|       |
  459|   280k|   for(size_t i = 0; i != TableSize; ++i) {
  ------------------
  |  Branch (459:22): [True: 276k, False: 4.38k]
  ------------------
  460|   276k|      const size_t t_i = (i + 1);
  461|   276k|      const size_t p_i = t_i % WindowSize;
  462|   276k|      const size_t q_i = (t_i >> WindowBits) % WindowSize;
  463|       |
  464|       |      // Conditionals ok: all based on t_i/p_i/q_i which in turn are derived from public i
  465|       |
  466|       |      // Returns x_i * x + y_i * y
  467|   276k|      auto next_tbl_e = [&]() {
  468|   276k|         if(p_i % 2 == 0 && q_i % 2 == 0) {
  469|       |            // Where possible using doubling (eg indices 1, 7, 9 in
  470|       |            // the table above)
  471|   276k|            return table[(t_i / 2) - 1].dbl();
  472|   276k|         } else if(p_i > 0 && q_i > 0) {
  473|       |            // A combination of p and q
  474|   276k|            if(p_i == 1) {
  475|   276k|               return p + table[(q_i << WindowBits) - 1];
  476|   276k|            } else if(q_i == 1) {
  477|   276k|               return table[p_i - 1] + q;
  478|   276k|            } else {
  479|   276k|               return table[p_i - 1] + table[(q_i << WindowBits) - 1];
  480|   276k|            }
  481|   276k|         } else if(p_i > 0 && q_i == 0) {
  482|       |            // A multiple of p without a q component
  483|   276k|            if(p_i == 1) {
  484|       |               // Just p
  485|   276k|               return C::ProjectivePoint::from_affine(p);
  486|   276k|            } else {
  487|       |               // p * p_{i-1}
  488|   276k|               return p + table[p_i - 1 - 1];
  489|   276k|            }
  490|   276k|         } else if(p_i == 0 && q_i > 0) {
  491|   276k|            if(q_i == 1) {
  492|       |               // Just q
  493|   276k|               return C::ProjectivePoint::from_affine(q);
  494|   276k|            } else {
  495|       |               // q * q_{i-1}
  496|   276k|               return q + table[((q_i - 1) << WindowBits) - 1];
  497|   276k|            }
  498|   276k|         } else {
  499|   276k|            BOTAN_ASSERT_UNREACHABLE();
  500|   276k|         }
  501|   276k|      };
  502|       |
  503|   276k|      table.emplace_back(next_tbl_e());
  504|   276k|   }
  505|       |
  506|  4.38k|   return table;
  507|  4.38k|}
pcurves_sm2p256v1.cpp:_ZZN5Botan10mul2_setupINS_6PCurve12_GLOBAL__N_19sm2p256v15CurveELm3EEENSt3__16vectorINT_15ProjectivePointENS5_9allocatorIS8_EEEERKNS7_11AffinePointESE_ENKUlvE_clEv:
  467|   276k|      auto next_tbl_e = [&]() {
  468|   276k|         if(p_i % 2 == 0 && q_i % 2 == 0) {
  ------------------
  |  Branch (468:13): [True: 135k, False: 140k]
  |  Branch (468:29): [True: 65.7k, False: 70.1k]
  ------------------
  469|       |            // Where possible using doubling (eg indices 1, 7, 9 in
  470|       |            // the table above)
  471|  65.7k|            return table[(t_i / 2) - 1].dbl();
  472|   210k|         } else if(p_i > 0 && q_i > 0) {
  ------------------
  |  Branch (472:20): [True: 192k, False: 17.5k]
  |  Branch (472:31): [True: 175k, False: 17.5k]
  ------------------
  473|       |            // A combination of p and q
  474|   175k|            if(p_i == 1) {
  ------------------
  |  Branch (474:16): [True: 30.7k, False: 144k]
  ------------------
  475|  30.7k|               return p + table[(q_i << WindowBits) - 1];
  476|   144k|            } else if(q_i == 1) {
  ------------------
  |  Branch (476:23): [True: 26.3k, False: 118k]
  ------------------
  477|  26.3k|               return table[p_i - 1] + q;
  478|   118k|            } else {
  479|   118k|               return table[p_i - 1] + table[(q_i << WindowBits) - 1];
  480|   118k|            }
  481|   175k|         } else if(p_i > 0 && q_i == 0) {
  ------------------
  |  Branch (481:20): [True: 17.5k, False: 17.5k]
  |  Branch (481:31): [True: 17.5k, False: 0]
  ------------------
  482|       |            // A multiple of p without a q component
  483|  17.5k|            if(p_i == 1) {
  ------------------
  |  Branch (483:16): [True: 4.38k, False: 13.1k]
  ------------------
  484|       |               // Just p
  485|  4.38k|               return C::ProjectivePoint::from_affine(p);
  486|  13.1k|            } else {
  487|       |               // p * p_{i-1}
  488|  13.1k|               return p + table[p_i - 1 - 1];
  489|  13.1k|            }
  490|  17.5k|         } else if(p_i == 0 && q_i > 0) {
  ------------------
  |  Branch (490:20): [True: 17.5k, False: 0]
  |  Branch (490:32): [True: 17.5k, False: 0]
  ------------------
  491|  17.5k|            if(q_i == 1) {
  ------------------
  |  Branch (491:16): [True: 4.38k, False: 13.1k]
  ------------------
  492|       |               // Just q
  493|  4.38k|               return C::ProjectivePoint::from_affine(q);
  494|  13.1k|            } else {
  495|       |               // q * q_{i-1}
  496|  13.1k|               return q + table[((q_i - 1) << WindowBits) - 1];
  497|  13.1k|            }
  498|  17.5k|         } else {
  499|      0|            BOTAN_ASSERT_UNREACHABLE();
  ------------------
  |  |  166|      0|#define BOTAN_ASSERT_UNREACHABLE() Botan::assert_unreachable(__FILE__, __LINE__)
  ------------------
  500|      0|         }
  501|   276k|      };

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

_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|  79.0k|inline constexpr auto bytes_to_words(std::span<const uint8_t, L> bytes) {
  288|  79.0k|   static_assert(L <= WordInfo<W>::bytes * N);
  289|       |
  290|  79.0k|   std::array<W, N> r = {};
  291|       |
  292|  79.0k|   constexpr size_t full_words = L / WordInfo<W>::bytes;
  293|  79.0k|   constexpr size_t extra_bytes = L % WordInfo<W>::bytes;
  294|       |
  295|  79.0k|   static_assert(full_words + (extra_bytes ? 1 : 0) <= N);
  296|       |
  297|   395k|   for(size_t i = 0; i != full_words; ++i) {
  ------------------
  |  Branch (297:22): [True: 316k, False: 79.0k]
  ------------------
  298|   316k|      r[i] = load_be<W>(bytes.data(), full_words - 1 - i);
  299|   316k|   }
  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|  79.0k|   return r;
  312|  79.0k|}
_ZN5Botan14bytes_to_wordsITkNS_8WordTypeEmLm8ELm64EEEDaNSt3__14spanIKhXT1_EEE:
  287|  13.9k|inline constexpr auto bytes_to_words(std::span<const uint8_t, L> bytes) {
  288|  13.9k|   static_assert(L <= WordInfo<W>::bytes * N);
  289|       |
  290|  13.9k|   std::array<W, N> r = {};
  291|       |
  292|  13.9k|   constexpr size_t full_words = L / WordInfo<W>::bytes;
  293|  13.9k|   constexpr size_t extra_bytes = L % WordInfo<W>::bytes;
  294|       |
  295|  13.9k|   static_assert(full_words + (extra_bytes ? 1 : 0) <= N);
  296|       |
  297|   125k|   for(size_t i = 0; i != full_words; ++i) {
  ------------------
  |  Branch (297:22): [True: 111k, False: 13.9k]
  ------------------
  298|   111k|      r[i] = load_be<W>(bytes.data(), full_words - 1 - i);
  299|   111k|   }
  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|  13.9k|   return r;
  312|  13.9k|}

pcurves_secp256k1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE8instanceEv:
  344|  51.8k|      static std::shared_ptr<const PrimeOrderCurve> instance() {
  345|  51.8k|         static auto g_curve = std::make_shared<const PrimeOrderCurveImpl<C>>();
  346|  51.8k|         return g_curve;
  347|  51.8k|      }
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|  7.10k|      size_t field_element_bytes() const override { return C::FieldElement::BYTES; }
pcurves_secp256k1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE10from_stashERKNS0_15PrimeOrderCurve6ScalarE:
  354|  23.5k|      static typename C::Scalar from_stash(const Scalar& s) {
  355|  23.5k|         if(s._curve() != instance()) {
  ------------------
  |  Branch (355:13): [True: 0, False: 23.5k]
  ------------------
  356|      0|            throw Invalid_Argument("Curve mismatch");
  357|      0|         }
  358|  23.5k|         return C::Scalar::from_stash(s._value());
  359|  23.5k|      }
pcurves_secp256k1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE5stashERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS3_12Secp256k1RepEE12ScalarParamsEEEEE:
  350|  14.1k|      static Scalar stash(const typename C::Scalar& s) {
  351|  14.1k|         return Scalar::_create(instance(), s.template stash_value<StorageWords>());
  352|  14.1k|      }
pcurves_secp256k1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE10from_stashERKNS0_15PrimeOrderCurve11AffinePointE:
  367|  11.8k|      static typename C::AffinePoint from_stash(const AffinePoint& pt) {
  368|  11.8k|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (368:13): [True: 0, False: 11.8k]
  ------------------
  369|      0|            throw Invalid_Argument("Curve mismatch");
  370|      0|         }
  371|  11.8k|         auto x = C::FieldElement::from_stash(pt._x());
  372|  11.8k|         auto y = C::FieldElement::from_stash(pt._y());
  373|  11.8k|         return typename C::AffinePoint(x, y);
  374|  11.8k|      }
pcurves_secp256k1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE12mul2_setup_gERKNS0_15PrimeOrderCurve11AffinePointE:
   70|  2.36k|      std::unique_ptr<const PrecomputedMul2Table> mul2_setup_g(const AffinePoint& q) const override {
   71|  2.36k|         return std::make_unique<PrecomputedMul2TableC>(C::G, from_stash(q));
   72|  2.36k|      }
pcurves_secp256k1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE21PrecomputedMul2TableCC2ERKNS_16AffineCurvePointINS_6IntModINS3_12Secp256k1RepINS_13EllipticCurveINS3_6ParamsES9_E11FieldParamsEEEEEEESI_:
   64|  2.36k|                  m_table(x, y) {}
pcurves_secp256k1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE21PrecomputedMul2TableC5tableEv:
   61|  2.35k|            const auto& table() const { return m_table; }
pcurves_secp256k1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE27mul2_vartime_x_mod_order_eqERKNS0_15PrimeOrderCurve20PrecomputedMul2TableERKNS6_6ScalarESC_SC_:
  107|  2.35k|                                       const Scalar& y) const override {
  108|  2.35k|         try {
  109|  2.35k|            const auto& table = dynamic_cast<const PrecomputedMul2TableC&>(tableb);
  110|  2.35k|            const auto pt = table.table().mul2_vartime(from_stash(x), from_stash(y));
  111|       |            // Variable time here, so the early return is fine
  112|  2.35k|            if(pt.is_identity().as_bool()) {
  ------------------
  |  Branch (112:16): [True: 0, False: 2.35k]
  ------------------
  113|      0|               return false;
  114|      0|            }
  115|       |
  116|       |            /*
  117|       |            * Avoid the inversion by instead projecting v.
  118|       |            *
  119|       |            * Given (x*z2) and v we want to know if x % n == v
  120|       |            *
  121|       |            * Inverting z2 to extract x is expensive. Instead compute (v*z2) and
  122|       |            * compare it with (x*z2).
  123|       |            *
  124|       |            * With overwhelming probability, this conversion is correct. The
  125|       |            * only time it is not is in the extremely unlikely case where the
  126|       |            * signer actually reduced the x coordinate modulo the group order.
  127|       |            * That is handled separately in a second step.
  128|       |            */
  129|  2.35k|            const auto z2 = pt.z().square();
  130|       |
  131|  2.35k|            std::array<uint8_t, C::Scalar::BYTES> v_bytes{};
  132|  2.35k|            from_stash(v).serialize_to(v_bytes);
  133|       |
  134|  2.35k|            if(const auto fe_v = C::FieldElement::deserialize(v_bytes)) {
  ------------------
  |  Branch (134:27): [True: 2.35k, False: 0]
  ------------------
  135|  2.35k|               if((*fe_v * z2 == pt.x()).as_bool()) {
  ------------------
  |  Branch (135:19): [True: 9, False: 2.34k]
  ------------------
  136|      9|                  return true;
  137|      9|               }
  138|       |
  139|       |               /*
  140|       |               * Possibly (if cryptographically unlikely) the signer
  141|       |               * reduced the value modulo the group order.
  142|       |               *
  143|       |               * If so we must check v + n similarly as before. However here
  144|       |               * we must be careful to not overflow since otherwise that
  145|       |               * would lead to us accepting an incorrect signature.
  146|       |               *
  147|       |               * If the order is > p then the reduction modulo p would not have
  148|       |               * had any effect and we don't need to consider the possibility
  149|       |               */
  150|  2.34k|               if constexpr(C::OrderIsLessThanField) {
  151|       |                  /*
  152|       |                  * We have to be careful to avoid overflow since this would
  153|       |                  * lead to a forgery
  154|       |                  *
  155|       |                  * v < (p)-n => v + n < p
  156|       |                  *
  157|       |                  * The values n and neg_n could be precomputed but they are
  158|       |                  * fast to compute and this codepath will ~never be taken
  159|       |                  * unless when verifying an invalid signature. In any case
  160|       |                  * it is many times cheaper than performing the modular inversion
  161|       |                  * which this approach avoids.
  162|       |                  */
  163|       |
  164|       |                  // Create the group order as a field element, safe because n < p
  165|  2.34k|                  const auto n = C::FieldElement::from_words(C::NW);
  166|  2.34k|                  const auto neg_n = n.negate().to_words();
  167|       |
  168|  2.34k|                  const auto vw = fe_v->to_words();
  169|  2.34k|                  if(bigint_ct_is_lt(vw.data(), vw.size(), neg_n.data(), neg_n.size()).as_bool()) {
  ------------------
  |  Branch (169:22): [True: 137, False: 2.20k]
  ------------------
  170|    137|                     return (((*fe_v + n) * z2) == pt.x()).as_bool();
  171|    137|                  }
  172|  2.34k|               }
  173|  2.34k|            }
  174|       |
  175|  2.34k|            return false;
  176|  2.35k|         } catch(std::bad_cast&) {
  177|      0|            throw Invalid_Argument("Curve mismatch");
  178|      0|         }
  179|  2.35k|      }
pcurves_secp256k1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE5stashERKNS_16AffineCurvePointINS_6IntModINS3_12Secp256k1RepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEEEE:
  361|  2.36k|      static AffinePoint stash(const typename C::AffinePoint& pt) {
  362|  2.36k|         auto x_w = pt.x().template stash_value<StorageWords>();
  363|  2.36k|         auto y_w = pt.y().template stash_value<StorageWords>();
  364|  2.36k|         return AffinePoint::_create(instance(), x_w, y_w);
  365|  2.36k|      }
pcurves_secp256k1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE30deserialize_point_uncompressedENSt3__14spanIKhLm18446744073709551615EEE:
  244|  2.42k|      std::optional<AffinePoint> deserialize_point_uncompressed(std::span<const uint8_t> bytes) const override {
  245|  2.42k|         constexpr size_t FieldElementBytes = C::FieldElement::BYTES;
  246|  2.42k|         constexpr size_t UncompressedBytes = 2 * C::FieldElement::BYTES + 1;
  247|       |
  248|  2.42k|         if(bytes.size() == UncompressedBytes && bytes[0] == 0x04) {
  ------------------
  |  Branch (248:13): [True: 2.42k, False: 0]
  |  Branch (248:50): [True: 2.42k, False: 0]
  ------------------
  249|  2.42k|            const auto encoded_point = bytes.subspan(1);
  250|  2.42k|            auto x = C::FieldElement::deserialize(encoded_point.first(FieldElementBytes));
  251|  2.42k|            auto y = C::FieldElement::deserialize(encoded_point.last(FieldElementBytes));
  252|       |
  253|  2.42k|            if(x && y) {
  ------------------
  |  Branch (253:16): [True: 2.42k, False: 0]
  |  Branch (253:21): [True: 2.42k, False: 0]
  ------------------
  254|       |               // Check that y^2 = x^3 + ax + b
  255|  2.42k|               const auto lhs = (*y).square();
  256|  2.42k|               const auto rhs = C::x3_ax_b(*x);
  257|  2.42k|               const auto valid = (lhs == rhs);
  258|  2.42k|               if(valid.as_bool()) {
  ------------------
  |  Branch (258:19): [True: 2.36k, False: 53]
  ------------------
  259|  2.36k|                  return stash(typename C::AffinePoint(*x, *y));
  260|  2.36k|               }
  261|  2.42k|            }
  262|  2.42k|         }
  263|       |
  264|     53|         return {};
  265|  2.42k|      }
pcurves_secp256k1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE18deserialize_scalarENSt3__14spanIKhLm18446744073709551615EEE:
  224|  4.73k|      std::optional<Scalar> deserialize_scalar(std::span<const uint8_t> bytes) const override {
  225|  4.73k|         if(auto scalar = C::Scalar::deserialize(bytes)) {
  ------------------
  |  Branch (225:18): [True: 4.72k, False: 13]
  ------------------
  226|  4.72k|            if(!scalar->is_zero().as_bool()) {
  ------------------
  |  Branch (226:16): [True: 4.72k, False: 3]
  ------------------
  227|  4.72k|               return stash(*scalar);
  228|  4.72k|            }
  229|  4.72k|         }
  230|       |
  231|     16|         return {};
  232|  4.73k|      }
pcurves_secp256k1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE22scalar_from_wide_bytesENSt3__14spanIKhLm18446744073709551615EEE:
  234|  2.35k|      std::optional<Scalar> scalar_from_wide_bytes(std::span<const uint8_t> bytes) const override {
  235|  2.35k|         if(auto s = C::Scalar::from_wide_bytes_varlen(bytes)) {
  ------------------
  |  Branch (235:18): [True: 2.35k, False: 0]
  ------------------
  236|  2.35k|            return stash(*s);
  237|  2.35k|         } else {
  238|      0|            return {};
  239|      0|         }
  240|  2.35k|      }
pcurves_secp256k1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE24affine_point_is_identityERKNS0_15PrimeOrderCurve11AffinePointE:
  210|  4.73k|      bool affine_point_is_identity(const AffinePoint& pt) const override {
  211|  4.73k|         return from_stash(pt).is_identity().as_bool();
  212|  4.73k|      }
pcurves_secp256k1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE15serialize_pointENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve11AffinePointE:
  214|  4.73k|      void serialize_point(std::span<uint8_t> bytes, const AffinePoint& pt) const override {
  215|  4.73k|         BOTAN_ARG_CHECK(bytes.size() == C::AffinePoint::BYTES, "Invalid length for serialize_point");
  ------------------
  |  |   35|  4.73k|   do {                                                          \
  |  |   36|  4.73k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  4.73k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 4.73k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  4.73k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 4.73k]
  |  |  ------------------
  ------------------
  216|  4.73k|         from_stash(pt).serialize_to(bytes.subspan<0, C::AffinePoint::BYTES>());
  217|  4.73k|      }
pcurves_secp256k1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE10scalar_mulERKNS0_15PrimeOrderCurve6ScalarES9_:
  310|  4.70k|      Scalar scalar_mul(const Scalar& a, const Scalar& b) const override {
  311|  4.70k|         return stash(from_stash(a) * from_stash(b));
  312|  4.70k|      }
pcurves_secp256k1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE21scalar_invert_vartimeERKNS0_15PrimeOrderCurve6ScalarE:
  325|  2.35k|      Scalar scalar_invert_vartime(const Scalar& ss) const override {
  326|  2.35k|         auto s = from_stash(ss);
  327|  2.35k|         return stash(s.invert_vartime());
  328|  2.35k|      }
pcurves_secp256k1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE14scalar_is_zeroERKNS0_15PrimeOrderCurve6ScalarE:
  332|  4.70k|      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|   159k|      static std::shared_ptr<const PrimeOrderCurve> instance() {
  345|   159k|         static auto g_curve = std::make_shared<const PrimeOrderCurveImpl<C>>();
  346|   159k|         return g_curve;
  347|   159k|      }
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|  21.8k|      size_t field_element_bytes() const override { return C::FieldElement::BYTES; }
pcurves_secp256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE10from_stashERKNS0_15PrimeOrderCurve6ScalarE:
  354|  72.4k|      static typename C::Scalar from_stash(const Scalar& s) {
  355|  72.4k|         if(s._curve() != instance()) {
  ------------------
  |  Branch (355:13): [True: 0, False: 72.4k]
  ------------------
  356|      0|            throw Invalid_Argument("Curve mismatch");
  357|      0|         }
  358|  72.4k|         return C::Scalar::from_stash(s._value());
  359|  72.4k|      }
pcurves_secp256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE5stashERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS2_12Secp256r1RepEE12ScalarParamsEEEEE:
  350|  43.4k|      static Scalar stash(const typename C::Scalar& s) {
  351|  43.4k|         return Scalar::_create(instance(), s.template stash_value<StorageWords>());
  352|  43.4k|      }
pcurves_secp256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE10from_stashERKNS0_15PrimeOrderCurve11AffinePointE:
  367|  36.3k|      static typename C::AffinePoint from_stash(const AffinePoint& pt) {
  368|  36.3k|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (368:13): [True: 0, False: 36.3k]
  ------------------
  369|      0|            throw Invalid_Argument("Curve mismatch");
  370|      0|         }
  371|  36.3k|         auto x = C::FieldElement::from_stash(pt._x());
  372|  36.3k|         auto y = C::FieldElement::from_stash(pt._y());
  373|  36.3k|         return typename C::AffinePoint(x, y);
  374|  36.3k|      }
pcurves_secp256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE12mul2_setup_gERKNS0_15PrimeOrderCurve11AffinePointE:
   70|  7.27k|      std::unique_ptr<const PrecomputedMul2Table> mul2_setup_g(const AffinePoint& q) const override {
   71|  7.27k|         return std::make_unique<PrecomputedMul2TableC>(C::G, from_stash(q));
   72|  7.27k|      }
pcurves_secp256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE21PrecomputedMul2TableCC2ERKNS_16AffineCurvePointINS_6IntModINS2_12Secp256r1RepINS_13EllipticCurveINS3_6ParamsES9_E11FieldParamsEEEEEEESI_:
   64|  7.27k|                  m_table(x, y) {}
pcurves_secp256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE21PrecomputedMul2TableC5tableEv:
   61|  7.24k|            const auto& table() const { return m_table; }
pcurves_secp256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE27mul2_vartime_x_mod_order_eqERKNS0_15PrimeOrderCurve20PrecomputedMul2TableERKNS6_6ScalarESC_SC_:
  107|  7.24k|                                       const Scalar& y) const override {
  108|  7.24k|         try {
  109|  7.24k|            const auto& table = dynamic_cast<const PrecomputedMul2TableC&>(tableb);
  110|  7.24k|            const auto pt = table.table().mul2_vartime(from_stash(x), from_stash(y));
  111|       |            // Variable time here, so the early return is fine
  112|  7.24k|            if(pt.is_identity().as_bool()) {
  ------------------
  |  Branch (112:16): [True: 0, False: 7.24k]
  ------------------
  113|      0|               return false;
  114|      0|            }
  115|       |
  116|       |            /*
  117|       |            * Avoid the inversion by instead projecting v.
  118|       |            *
  119|       |            * Given (x*z2) and v we want to know if x % n == v
  120|       |            *
  121|       |            * Inverting z2 to extract x is expensive. Instead compute (v*z2) and
  122|       |            * compare it with (x*z2).
  123|       |            *
  124|       |            * With overwhelming probability, this conversion is correct. The
  125|       |            * only time it is not is in the extremely unlikely case where the
  126|       |            * signer actually reduced the x coordinate modulo the group order.
  127|       |            * That is handled separately in a second step.
  128|       |            */
  129|  7.24k|            const auto z2 = pt.z().square();
  130|       |
  131|  7.24k|            std::array<uint8_t, C::Scalar::BYTES> v_bytes{};
  132|  7.24k|            from_stash(v).serialize_to(v_bytes);
  133|       |
  134|  7.24k|            if(const auto fe_v = C::FieldElement::deserialize(v_bytes)) {
  ------------------
  |  Branch (134:27): [True: 7.24k, False: 0]
  ------------------
  135|  7.24k|               if((*fe_v * z2 == pt.x()).as_bool()) {
  ------------------
  |  Branch (135:19): [True: 1.06k, False: 6.17k]
  ------------------
  136|  1.06k|                  return true;
  137|  1.06k|               }
  138|       |
  139|       |               /*
  140|       |               * Possibly (if cryptographically unlikely) the signer
  141|       |               * reduced the value modulo the group order.
  142|       |               *
  143|       |               * If so we must check v + n similarly as before. However here
  144|       |               * we must be careful to not overflow since otherwise that
  145|       |               * would lead to us accepting an incorrect signature.
  146|       |               *
  147|       |               * If the order is > p then the reduction modulo p would not have
  148|       |               * had any effect and we don't need to consider the possibility
  149|       |               */
  150|  6.17k|               if constexpr(C::OrderIsLessThanField) {
  151|       |                  /*
  152|       |                  * We have to be careful to avoid overflow since this would
  153|       |                  * lead to a forgery
  154|       |                  *
  155|       |                  * v < (p)-n => v + n < p
  156|       |                  *
  157|       |                  * The values n and neg_n could be precomputed but they are
  158|       |                  * fast to compute and this codepath will ~never be taken
  159|       |                  * unless when verifying an invalid signature. In any case
  160|       |                  * it is many times cheaper than performing the modular inversion
  161|       |                  * which this approach avoids.
  162|       |                  */
  163|       |
  164|       |                  // Create the group order as a field element, safe because n < p
  165|  6.17k|                  const auto n = C::FieldElement::from_words(C::NW);
  166|  6.17k|                  const auto neg_n = n.negate().to_words();
  167|       |
  168|  6.17k|                  const auto vw = fe_v->to_words();
  169|  6.17k|                  if(bigint_ct_is_lt(vw.data(), vw.size(), neg_n.data(), neg_n.size()).as_bool()) {
  ------------------
  |  Branch (169:22): [True: 204, False: 5.97k]
  ------------------
  170|    204|                     return (((*fe_v + n) * z2) == pt.x()).as_bool();
  171|    204|                  }
  172|  6.17k|               }
  173|  6.17k|            }
  174|       |
  175|  6.17k|            return false;
  176|  7.24k|         } catch(std::bad_cast&) {
  177|      0|            throw Invalid_Argument("Curve mismatch");
  178|      0|         }
  179|  7.24k|      }
pcurves_secp256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE5stashERKNS_16AffineCurvePointINS_6IntModINS2_12Secp256r1RepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEEEE:
  361|  7.27k|      static AffinePoint stash(const typename C::AffinePoint& pt) {
  362|  7.27k|         auto x_w = pt.x().template stash_value<StorageWords>();
  363|  7.27k|         auto y_w = pt.y().template stash_value<StorageWords>();
  364|  7.27k|         return AffinePoint::_create(instance(), x_w, y_w);
  365|  7.27k|      }
pcurves_secp256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE30deserialize_point_uncompressedENSt3__14spanIKhLm18446744073709551615EEE:
  244|  7.29k|      std::optional<AffinePoint> deserialize_point_uncompressed(std::span<const uint8_t> bytes) const override {
  245|  7.29k|         constexpr size_t FieldElementBytes = C::FieldElement::BYTES;
  246|  7.29k|         constexpr size_t UncompressedBytes = 2 * C::FieldElement::BYTES + 1;
  247|       |
  248|  7.29k|         if(bytes.size() == UncompressedBytes && bytes[0] == 0x04) {
  ------------------
  |  Branch (248:13): [True: 7.29k, False: 0]
  |  Branch (248:50): [True: 7.29k, False: 0]
  ------------------
  249|  7.29k|            const auto encoded_point = bytes.subspan(1);
  250|  7.29k|            auto x = C::FieldElement::deserialize(encoded_point.first(FieldElementBytes));
  251|  7.29k|            auto y = C::FieldElement::deserialize(encoded_point.last(FieldElementBytes));
  252|       |
  253|  7.29k|            if(x && y) {
  ------------------
  |  Branch (253:16): [True: 7.29k, False: 0]
  |  Branch (253:21): [True: 7.29k, False: 0]
  ------------------
  254|       |               // Check that y^2 = x^3 + ax + b
  255|  7.29k|               const auto lhs = (*y).square();
  256|  7.29k|               const auto rhs = C::x3_ax_b(*x);
  257|  7.29k|               const auto valid = (lhs == rhs);
  258|  7.29k|               if(valid.as_bool()) {
  ------------------
  |  Branch (258:19): [True: 7.27k, False: 23]
  ------------------
  259|  7.27k|                  return stash(typename C::AffinePoint(*x, *y));
  260|  7.27k|               }
  261|  7.29k|            }
  262|  7.29k|         }
  263|       |
  264|     23|         return {};
  265|  7.29k|      }
pcurves_secp256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE18deserialize_scalarENSt3__14spanIKhLm18446744073709551615EEE:
  224|  14.5k|      std::optional<Scalar> deserialize_scalar(std::span<const uint8_t> bytes) const override {
  225|  14.5k|         if(auto scalar = C::Scalar::deserialize(bytes)) {
  ------------------
  |  Branch (225:18): [True: 14.5k, False: 20]
  ------------------
  226|  14.5k|            if(!scalar->is_zero().as_bool()) {
  ------------------
  |  Branch (226:16): [True: 14.5k, False: 11]
  ------------------
  227|  14.5k|               return stash(*scalar);
  228|  14.5k|            }
  229|  14.5k|         }
  230|       |
  231|     31|         return {};
  232|  14.5k|      }
pcurves_secp256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE22scalar_from_wide_bytesENSt3__14spanIKhLm18446744073709551615EEE:
  234|  7.24k|      std::optional<Scalar> scalar_from_wide_bytes(std::span<const uint8_t> bytes) const override {
  235|  7.24k|         if(auto s = C::Scalar::from_wide_bytes_varlen(bytes)) {
  ------------------
  |  Branch (235:18): [True: 7.24k, False: 0]
  ------------------
  236|  7.24k|            return stash(*s);
  237|  7.24k|         } else {
  238|      0|            return {};
  239|      0|         }
  240|  7.24k|      }
pcurves_secp256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE24affine_point_is_identityERKNS0_15PrimeOrderCurve11AffinePointE:
  210|  14.5k|      bool affine_point_is_identity(const AffinePoint& pt) const override {
  211|  14.5k|         return from_stash(pt).is_identity().as_bool();
  212|  14.5k|      }
pcurves_secp256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE15serialize_pointENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve11AffinePointE:
  214|  14.5k|      void serialize_point(std::span<uint8_t> bytes, const AffinePoint& pt) const override {
  215|  14.5k|         BOTAN_ARG_CHECK(bytes.size() == C::AffinePoint::BYTES, "Invalid length for serialize_point");
  ------------------
  |  |   35|  14.5k|   do {                                                          \
  |  |   36|  14.5k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  14.5k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 14.5k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  14.5k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 14.5k]
  |  |  ------------------
  ------------------
  216|  14.5k|         from_stash(pt).serialize_to(bytes.subspan<0, C::AffinePoint::BYTES>());
  217|  14.5k|      }
pcurves_secp256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE10scalar_mulERKNS0_15PrimeOrderCurve6ScalarES9_:
  310|  14.4k|      Scalar scalar_mul(const Scalar& a, const Scalar& b) const override {
  311|  14.4k|         return stash(from_stash(a) * from_stash(b));
  312|  14.4k|      }
pcurves_secp256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE21scalar_invert_vartimeERKNS0_15PrimeOrderCurve6ScalarE:
  325|  7.24k|      Scalar scalar_invert_vartime(const Scalar& ss) const override {
  326|  7.24k|         auto s = from_stash(ss);
  327|  7.24k|         return stash(s.invert_vartime());
  328|  7.24k|      }
pcurves_secp256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE14scalar_is_zeroERKNS0_15PrimeOrderCurve6ScalarE:
  332|  14.4k|      bool scalar_is_zero(const Scalar& s) const override { return from_stash(s).is_zero().as_bool(); }
pcurves_sm2p256v1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19sm2p256v15CurveEE8instanceEv:
  344|   113k|      static std::shared_ptr<const PrimeOrderCurve> instance() {
  345|   113k|         static auto g_curve = std::make_shared<const PrimeOrderCurveImpl<C>>();
  346|   113k|         return g_curve;
  347|   113k|      }
pcurves_sm2p256v1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19sm2p256v15CurveEEC2Ev:
  342|      1|      PrimeOrderCurveImpl() : m_mul_by_g(C::G) {}
pcurves_sm2p256v1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19sm2p256v15CurveEE19field_element_bytesEv:
   36|  35.1k|      size_t field_element_bytes() const override { return C::FieldElement::BYTES; }
pcurves_sm2p256v1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19sm2p256v15CurveEE10from_stashERKNS0_15PrimeOrderCurve6ScalarE:
  354|  43.7k|      static typename C::Scalar from_stash(const Scalar& s) {
  355|  43.7k|         if(s._curve() != instance()) {
  ------------------
  |  Branch (355:13): [True: 0, False: 43.7k]
  ------------------
  356|      0|            throw Invalid_Argument("Curve mismatch");
  357|      0|         }
  358|  43.7k|         return C::Scalar::from_stash(s._value());
  359|  43.7k|      }
pcurves_sm2p256v1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19sm2p256v15CurveEE5stashERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS3_12Sm2p256v1RepEE12ScalarParamsEEEEE:
  350|  21.9k|      static Scalar stash(const typename C::Scalar& s) {
  351|  21.9k|         return Scalar::_create(instance(), s.template stash_value<StorageWords>());
  352|  21.9k|      }
pcurves_sm2p256v1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19sm2p256v15CurveEE10from_stashERKNS0_15PrimeOrderCurve11AffinePointE:
  367|  39.4k|      static typename C::AffinePoint from_stash(const AffinePoint& pt) {
  368|  39.4k|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (368:13): [True: 0, False: 39.4k]
  ------------------
  369|      0|            throw Invalid_Argument("Curve mismatch");
  370|      0|         }
  371|  39.4k|         auto x = C::FieldElement::from_stash(pt._x());
  372|  39.4k|         auto y = C::FieldElement::from_stash(pt._y());
  373|  39.4k|         return typename C::AffinePoint(x, y);
  374|  39.4k|      }
pcurves_sm2p256v1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19sm2p256v15CurveEE12mul2_setup_gERKNS0_15PrimeOrderCurve11AffinePointE:
   70|  4.38k|      std::unique_ptr<const PrecomputedMul2Table> mul2_setup_g(const AffinePoint& q) const override {
   71|  4.38k|         return std::make_unique<PrecomputedMul2TableC>(C::G, from_stash(q));
   72|  4.38k|      }
pcurves_sm2p256v1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19sm2p256v15CurveEE21PrecomputedMul2TableCC2ERKNS_16AffineCurvePointINS_6IntModINS3_12Sm2p256v1RepINS_13EllipticCurveINS3_6ParamsES9_E11FieldParamsEEEEEEESI_:
   64|  4.38k|                  m_table(x, y) {}
pcurves_sm2p256v1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19sm2p256v15CurveEE21PrecomputedMul2TableC5tableEv:
   61|  4.37k|            const auto& table() const { return m_table; }
pcurves_sm2p256v1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19sm2p256v15CurveEE27mul2_vartime_x_mod_order_eqERKNS0_15PrimeOrderCurve20PrecomputedMul2TableERKNS6_6ScalarESC_SC_:
  107|  4.37k|                                       const Scalar& y) const override {
  108|  4.37k|         try {
  109|  4.37k|            const auto& table = dynamic_cast<const PrecomputedMul2TableC&>(tableb);
  110|  4.37k|            const auto pt = table.table().mul2_vartime(from_stash(x), from_stash(y));
  111|       |            // Variable time here, so the early return is fine
  112|  4.37k|            if(pt.is_identity().as_bool()) {
  ------------------
  |  Branch (112:16): [True: 0, False: 4.37k]
  ------------------
  113|      0|               return false;
  114|      0|            }
  115|       |
  116|       |            /*
  117|       |            * Avoid the inversion by instead projecting v.
  118|       |            *
  119|       |            * Given (x*z2) and v we want to know if x % n == v
  120|       |            *
  121|       |            * Inverting z2 to extract x is expensive. Instead compute (v*z2) and
  122|       |            * compare it with (x*z2).
  123|       |            *
  124|       |            * With overwhelming probability, this conversion is correct. The
  125|       |            * only time it is not is in the extremely unlikely case where the
  126|       |            * signer actually reduced the x coordinate modulo the group order.
  127|       |            * That is handled separately in a second step.
  128|       |            */
  129|  4.37k|            const auto z2 = pt.z().square();
  130|       |
  131|  4.37k|            std::array<uint8_t, C::Scalar::BYTES> v_bytes{};
  132|  4.37k|            from_stash(v).serialize_to(v_bytes);
  133|       |
  134|  4.37k|            if(const auto fe_v = C::FieldElement::deserialize(v_bytes)) {
  ------------------
  |  Branch (134:27): [True: 4.37k, False: 0]
  ------------------
  135|  4.37k|               if((*fe_v * z2 == pt.x()).as_bool()) {
  ------------------
  |  Branch (135:19): [True: 422, False: 3.95k]
  ------------------
  136|    422|                  return true;
  137|    422|               }
  138|       |
  139|       |               /*
  140|       |               * Possibly (if cryptographically unlikely) the signer
  141|       |               * reduced the value modulo the group order.
  142|       |               *
  143|       |               * If so we must check v + n similarly as before. However here
  144|       |               * we must be careful to not overflow since otherwise that
  145|       |               * would lead to us accepting an incorrect signature.
  146|       |               *
  147|       |               * If the order is > p then the reduction modulo p would not have
  148|       |               * had any effect and we don't need to consider the possibility
  149|       |               */
  150|  3.95k|               if constexpr(C::OrderIsLessThanField) {
  151|       |                  /*
  152|       |                  * We have to be careful to avoid overflow since this would
  153|       |                  * lead to a forgery
  154|       |                  *
  155|       |                  * v < (p)-n => v + n < p
  156|       |                  *
  157|       |                  * The values n and neg_n could be precomputed but they are
  158|       |                  * fast to compute and this codepath will ~never be taken
  159|       |                  * unless when verifying an invalid signature. In any case
  160|       |                  * it is many times cheaper than performing the modular inversion
  161|       |                  * which this approach avoids.
  162|       |                  */
  163|       |
  164|       |                  // Create the group order as a field element, safe because n < p
  165|  3.95k|                  const auto n = C::FieldElement::from_words(C::NW);
  166|  3.95k|                  const auto neg_n = n.negate().to_words();
  167|       |
  168|  3.95k|                  const auto vw = fe_v->to_words();
  169|  3.95k|                  if(bigint_ct_is_lt(vw.data(), vw.size(), neg_n.data(), neg_n.size()).as_bool()) {
  ------------------
  |  Branch (169:22): [True: 29, False: 3.92k]
  ------------------
  170|     29|                     return (((*fe_v + n) * z2) == pt.x()).as_bool();
  171|     29|                  }
  172|  3.95k|               }
  173|  3.95k|            }
  174|       |
  175|  3.95k|            return false;
  176|  4.37k|         } catch(std::bad_cast&) {
  177|      0|            throw Invalid_Argument("Curve mismatch");
  178|      0|         }
  179|  4.37k|      }
pcurves_sm2p256v1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19sm2p256v15CurveEE5stashERKNS_16AffineCurvePointINS_6IntModINS3_12Sm2p256v1RepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEEEE:
  361|  8.77k|      static AffinePoint stash(const typename C::AffinePoint& pt) {
  362|  8.77k|         auto x_w = pt.x().template stash_value<StorageWords>();
  363|  8.77k|         auto y_w = pt.y().template stash_value<StorageWords>();
  364|  8.77k|         return AffinePoint::_create(instance(), x_w, y_w);
  365|  8.77k|      }
pcurves_sm2p256v1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19sm2p256v15CurveEE30deserialize_point_uncompressedENSt3__14spanIKhLm18446744073709551615EEE:
  244|  8.77k|      std::optional<AffinePoint> deserialize_point_uncompressed(std::span<const uint8_t> bytes) const override {
  245|  8.77k|         constexpr size_t FieldElementBytes = C::FieldElement::BYTES;
  246|  8.77k|         constexpr size_t UncompressedBytes = 2 * C::FieldElement::BYTES + 1;
  247|       |
  248|  8.77k|         if(bytes.size() == UncompressedBytes && bytes[0] == 0x04) {
  ------------------
  |  Branch (248:13): [True: 8.77k, False: 0]
  |  Branch (248:50): [True: 8.77k, False: 0]
  ------------------
  249|  8.77k|            const auto encoded_point = bytes.subspan(1);
  250|  8.77k|            auto x = C::FieldElement::deserialize(encoded_point.first(FieldElementBytes));
  251|  8.77k|            auto y = C::FieldElement::deserialize(encoded_point.last(FieldElementBytes));
  252|       |
  253|  8.77k|            if(x && y) {
  ------------------
  |  Branch (253:16): [True: 8.77k, False: 0]
  |  Branch (253:21): [True: 8.77k, False: 0]
  ------------------
  254|       |               // Check that y^2 = x^3 + ax + b
  255|  8.77k|               const auto lhs = (*y).square();
  256|  8.77k|               const auto rhs = C::x3_ax_b(*x);
  257|  8.77k|               const auto valid = (lhs == rhs);
  258|  8.77k|               if(valid.as_bool()) {
  ------------------
  |  Branch (258:19): [True: 8.77k, False: 0]
  ------------------
  259|  8.77k|                  return stash(typename C::AffinePoint(*x, *y));
  260|  8.77k|               }
  261|  8.77k|            }
  262|  8.77k|         }
  263|       |
  264|      0|         return {};
  265|  8.77k|      }
pcurves_sm2p256v1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19sm2p256v15CurveEE18deserialize_scalarENSt3__14spanIKhLm18446744073709551615EEE:
  224|  8.77k|      std::optional<Scalar> deserialize_scalar(std::span<const uint8_t> bytes) const override {
  225|  8.77k|         if(auto scalar = C::Scalar::deserialize(bytes)) {
  ------------------
  |  Branch (225:18): [True: 8.76k, False: 5]
  ------------------
  226|  8.76k|            if(!scalar->is_zero().as_bool()) {
  ------------------
  |  Branch (226:16): [True: 8.76k, False: 3]
  ------------------
  227|  8.76k|               return stash(*scalar);
  228|  8.76k|            }
  229|  8.76k|         }
  230|       |
  231|      8|         return {};
  232|  8.77k|      }
pcurves_sm2p256v1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19sm2p256v15CurveEE22scalar_from_wide_bytesENSt3__14spanIKhLm18446744073709551615EEE:
  234|  4.38k|      std::optional<Scalar> scalar_from_wide_bytes(std::span<const uint8_t> bytes) const override {
  235|  4.38k|         if(auto s = C::Scalar::from_wide_bytes_varlen(bytes)) {
  ------------------
  |  Branch (235:18): [True: 4.38k, False: 0]
  ------------------
  236|  4.38k|            return stash(*s);
  237|  4.38k|         } else {
  238|      0|            return {};
  239|      0|         }
  240|  4.38k|      }
pcurves_sm2p256v1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19sm2p256v15CurveEE24affine_point_is_identityERKNS0_15PrimeOrderCurve11AffinePointE:
  210|  17.5k|      bool affine_point_is_identity(const AffinePoint& pt) const override {
  211|  17.5k|         return from_stash(pt).is_identity().as_bool();
  212|  17.5k|      }
pcurves_sm2p256v1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19sm2p256v15CurveEE15serialize_pointENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve11AffinePointE:
  214|  17.5k|      void serialize_point(std::span<uint8_t> bytes, const AffinePoint& pt) const override {
  215|  17.5k|         BOTAN_ARG_CHECK(bytes.size() == C::AffinePoint::BYTES, "Invalid length for serialize_point");
  ------------------
  |  |   35|  17.5k|   do {                                                          \
  |  |   36|  17.5k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  17.5k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 17.5k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  17.5k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 17.5k]
  |  |  ------------------
  ------------------
  216|  17.5k|         from_stash(pt).serialize_to(bytes.subspan<0, C::AffinePoint::BYTES>());
  217|  17.5k|      }
pcurves_sm2p256v1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19sm2p256v15CurveEE10scalar_addERKNS0_15PrimeOrderCurve6ScalarES9_:
  302|  4.37k|      Scalar scalar_add(const Scalar& a, const Scalar& b) const override {
  303|  4.37k|         return stash(from_stash(a) + from_stash(b));
  304|  4.37k|      }
pcurves_sm2p256v1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19sm2p256v15CurveEE10scalar_subERKNS0_15PrimeOrderCurve6ScalarES9_:
  306|  4.37k|      Scalar scalar_sub(const Scalar& a, const Scalar& b) const override {
  307|  4.37k|         return stash(from_stash(a) - from_stash(b));
  308|  4.37k|      }
pcurves_sm2p256v1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19sm2p256v15CurveEE14scalar_is_zeroERKNS0_15PrimeOrderCurve6ScalarE:
  332|  13.1k|      bool scalar_is_zero(const Scalar& s) const override { return from_stash(s).is_zero().as_bool(); }

_ZN5Botan13poly_double_nEPhm:
   26|    571|inline void poly_double_n(uint8_t buf[], size_t n) {
   27|    571|   return poly_double_n(buf, buf, n);
   28|    571|}
_ZN5Botan26poly_double_supported_sizeEm:
   22|    571|inline bool poly_double_supported_size(size_t n) {
   23|    571|   return (n == 8 || n == 16 || n == 24 || n == 32 || n == 64 || n == 128);
  ------------------
  |  Branch (23:12): [True: 408, False: 163]
  |  Branch (23:22): [True: 163, False: 0]
  |  Branch (23:33): [True: 0, False: 0]
  |  Branch (23:44): [True: 0, False: 0]
  |  Branch (23:55): [True: 0, False: 0]
  |  Branch (23:66): [True: 0, False: 0]
  ------------------
   24|    571|}

_ZN5Botan15prefetch_arraysITkNSt3__117unsigned_integralEKhJLm256ELm256ELm256ELm256EEEET_DpRAT0__S3_:
   34|   719k|T prefetch_arrays(T (&... arr)[Ns]) noexcept {
   35|   719k|   return (static_cast<T>(prefetch_array_raw(sizeof(T) * Ns, arr)) & ...);
   36|   719k|}
_ZN5Botan15prefetch_arraysITkNSt3__117unsigned_integralEKhJLm256EEEET_DpRAT0__S3_:
   34|  4.46k|T prefetch_arrays(T (&... arr)[Ns]) noexcept {
   35|  4.46k|   return (static_cast<T>(prefetch_array_raw(sizeof(T) * Ns, arr)) & ...);
   36|  4.46k|}

_ZN5Botan15RawHashFunctionC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEm:
   28|  10.1k|      RawHashFunction(std::string_view name, size_t output_length) : m_name(name), m_output_length(output_length) {}
_ZN5Botan15RawHashFunctionC2ENSt3__110unique_ptrINS_12HashFunctionENS1_14default_deleteIS3_EEEE:
   26|  9.63k|            RawHashFunction(hash->name(), hash->output_length()) {}

_ZNK5Botan10RIPEMD_1604nameEv:
   32|    236|      std::string name() const override { return "RIPEMD-160"; }
_ZNK5Botan10RIPEMD_16013output_lengthEv:
   34|  6.86k|      size_t output_length() const override { return output_bytes; }

_ZN5Botan4rotrILm8ETkNSt3__117unsigned_integralEjEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   37|  30.1M|{
   38|  30.1M|   return static_cast<T>((input >> ROT) | (input << (8 * sizeof(T) - ROT)));
   39|  30.1M|}
_ZN5Botan4rotrILm16ETkNSt3__117unsigned_integralEjEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   37|  36.6M|{
   38|  36.6M|   return static_cast<T>((input >> ROT) | (input << (8 * sizeof(T) - ROT)));
   39|  36.6M|}
_ZN5Botan4rotrILm24ETkNSt3__117unsigned_integralEjEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   37|  30.1M|{
   38|  30.1M|   return static_cast<T>((input >> ROT) | (input << (8 * sizeof(T) - ROT)));
   39|  30.1M|}
_ZN5Botan4rotlILm8ETkNSt3__117unsigned_integralEjEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   422M|{
   26|   422M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   422M|}
_ZN5Botan4rotlILm1ETkNSt3__117unsigned_integralEjEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   258M|{
   26|   258M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   258M|}
_ZN5Botan4rotlILm1ETkNSt3__117unsigned_integralEhEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   107k|{
   26|   107k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   107k|}
_ZN5Botan4rotlILm7ETkNSt3__117unsigned_integralEhEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|  53.6k|{
   26|  53.6k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|  53.6k|}
_ZN5Botan8rotl_varITkNSt3__117unsigned_integralEjEET_S2_m:
   64|  7.74M|BOTAN_FORCE_INLINE constexpr T rotl_var(T input, size_t rot) {
   65|  7.74M|   return rot ? static_cast<T>((input << rot) | (input >> (sizeof(T) * 8 - rot))) : input;
  ------------------
  |  Branch (65:11): [True: 7.17M, False: 566k]
  ------------------
   66|  7.74M|}
_ZN5Botan4rotlILm2ETkNSt3__117unsigned_integralEjEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|  77.6k|{
   26|  77.6k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|  77.6k|}
_ZN5Botan4rotlILm10ETkNSt3__117unsigned_integralEjEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|  4.23G|{
   26|  4.23G|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|  4.23G|}
_ZN5Botan4rotlILm18ETkNSt3__117unsigned_integralEjEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|  77.6k|{
   26|  77.6k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|  77.6k|}
_ZN5Botan4rotlILm24ETkNSt3__117unsigned_integralEjEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|  77.6k|{
   26|  77.6k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|  77.6k|}
_ZN5Botan4rotlILm13ETkNSt3__117unsigned_integralEjEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   422M|{
   26|   422M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   422M|}
_ZN5Botan4rotlILm23ETkNSt3__117unsigned_integralEjEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   184M|{
   26|   184M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   184M|}
_ZN5Botan4rotrILm1ETkNSt3__117unsigned_integralEjEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   37|  6.25M|{
   38|  6.25M|   return static_cast<T>((input >> ROT) | (input << (8 * sizeof(T) - ROT)));
   39|  6.25M|}
_ZN5Botan4rotlILm9ETkNSt3__117unsigned_integralEjEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   857M|{
   26|   857M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   857M|}
_ZN5Botan4rotrILm32ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   37|  5.60G|{
   38|  5.60G|   return static_cast<T>((input >> ROT) | (input << (8 * sizeof(T) - ROT)));
   39|  5.60G|}
_ZN5Botan4rotrILm24ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   37|  5.60G|{
   38|  5.60G|   return static_cast<T>((input >> ROT) | (input << (8 * sizeof(T) - ROT)));
   39|  5.60G|}
_ZN5Botan4rotrILm16ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   37|  5.60G|{
   38|  5.60G|   return static_cast<T>((input >> ROT) | (input << (8 * sizeof(T) - ROT)));
   39|  5.60G|}
_ZN5Botan4rotrILm63ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   37|  5.60G|{
   38|  5.60G|   return static_cast<T>((input >> ROT) | (input << (8 * sizeof(T) - ROT)));
   39|  5.60G|}
_ZN5Botan4rotlILm7ETkNSt3__117unsigned_integralEjEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   817M|{
   26|   817M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   817M|}
_ZN5Botan4rotlILm12ETkNSt3__117unsigned_integralEjEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   646M|{
   26|   646M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   646M|}
_ZN5Botan4rotlILm17ETkNSt3__117unsigned_integralEjEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   224M|{
   26|   224M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   224M|}
_ZN5Botan4rotlILm22ETkNSt3__117unsigned_integralEjEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|  13.6M|{
   26|  13.6M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|  13.6M|}
_ZN5Botan4rotlILm5ETkNSt3__117unsigned_integralEjEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   746M|{
   26|   746M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   746M|}
_ZN5Botan4rotlILm14ETkNSt3__117unsigned_integralEjEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   436M|{
   26|   436M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   436M|}
_ZN5Botan4rotlILm20ETkNSt3__117unsigned_integralEjEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|  13.6M|{
   26|  13.6M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|  13.6M|}
_ZN5Botan4rotlILm4ETkNSt3__117unsigned_integralEjEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|  13.6M|{
   26|  13.6M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|  13.6M|}
_ZN5Botan4rotlILm11ETkNSt3__117unsigned_integralEjEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   436M|{
   26|   436M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   436M|}
_ZN5Botan4rotlILm16ETkNSt3__117unsigned_integralEjEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|  13.6M|{
   26|  13.6M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|  13.6M|}
_ZN5Botan4rotlILm6ETkNSt3__117unsigned_integralEjEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   436M|{
   26|   436M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   436M|}
_ZN5Botan4rotlILm15ETkNSt3__117unsigned_integralEjEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   778M|{
   26|   778M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   778M|}
_ZN5Botan4rotlILm21ETkNSt3__117unsigned_integralEjEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|  13.6M|{
   26|  13.6M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|  13.6M|}
_ZN5Botan4rotlILm30ETkNSt3__117unsigned_integralEjEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   310M|{
   26|   310M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   310M|}
_ZN5Botan3rhoILm6ELm11ELm25ETkNSt3__117unsigned_integralEjEET2_S2_:
   53|   846M|BOTAN_FORCE_INLINE constexpr T rho(T x) {
   54|   846M|   return rotr<R1>(x) ^ rotr<R2>(x) ^ rotr<R3>(x);
   55|   846M|}
_ZN5Botan4rotrILm6ETkNSt3__117unsigned_integralEjEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   37|   846M|{
   38|   846M|   return static_cast<T>((input >> ROT) | (input << (8 * sizeof(T) - ROT)));
   39|   846M|}
_ZN5Botan4rotrILm11ETkNSt3__117unsigned_integralEjEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   37|   846M|{
   38|   846M|   return static_cast<T>((input >> ROT) | (input << (8 * sizeof(T) - ROT)));
   39|   846M|}
_ZN5Botan4rotrILm25ETkNSt3__117unsigned_integralEjEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   37|   846M|{
   38|   846M|   return static_cast<T>((input >> ROT) | (input << (8 * sizeof(T) - ROT)));
   39|   846M|}
_ZN5Botan3rhoILm2ELm13ELm22ETkNSt3__117unsigned_integralEjEET2_S2_:
   53|   846M|BOTAN_FORCE_INLINE constexpr T rho(T x) {
   54|   846M|   return rotr<R1>(x) ^ rotr<R2>(x) ^ rotr<R3>(x);
   55|   846M|}
_ZN5Botan4rotrILm2ETkNSt3__117unsigned_integralEjEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   37|   846M|{
   38|   846M|   return static_cast<T>((input >> ROT) | (input << (8 * sizeof(T) - ROT)));
   39|   846M|}
_ZN5Botan4rotrILm13ETkNSt3__117unsigned_integralEjEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   37|   846M|{
   38|   846M|   return static_cast<T>((input >> ROT) | (input << (8 * sizeof(T) - ROT)));
   39|   846M|}
_ZN5Botan4rotrILm22ETkNSt3__117unsigned_integralEjEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   37|   846M|{
   38|   846M|   return static_cast<T>((input >> ROT) | (input << (8 * sizeof(T) - ROT)));
   39|   846M|}
_ZN5Botan5sigmaILm17ELm19ELm10ETkNSt3__117unsigned_integralEjEET2_S2_:
   45|   846M|BOTAN_FORCE_INLINE constexpr T sigma(T x) {
   46|   846M|   return rotr<R1>(x) ^ rotr<R2>(x) ^ (x >> S);
   47|   846M|}
_ZN5Botan4rotrILm17ETkNSt3__117unsigned_integralEjEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   37|   846M|{
   38|   846M|   return static_cast<T>((input >> ROT) | (input << (8 * sizeof(T) - ROT)));
   39|   846M|}
_ZN5Botan4rotrILm19ETkNSt3__117unsigned_integralEjEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   37|   846M|{
   38|   846M|   return static_cast<T>((input >> ROT) | (input << (8 * sizeof(T) - ROT)));
   39|   846M|}
_ZN5Botan5sigmaILm7ELm18ELm3ETkNSt3__117unsigned_integralEjEET2_S2_:
   45|   846M|BOTAN_FORCE_INLINE constexpr T sigma(T x) {
   46|   846M|   return rotr<R1>(x) ^ rotr<R2>(x) ^ (x >> S);
   47|   846M|}
_ZN5Botan4rotrILm7ETkNSt3__117unsigned_integralEjEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   37|   846M|{
   38|   846M|   return static_cast<T>((input >> ROT) | (input << (8 * sizeof(T) - ROT)));
   39|   846M|}
_ZN5Botan4rotrILm18ETkNSt3__117unsigned_integralEjEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   37|   846M|{
   38|   846M|   return static_cast<T>((input >> ROT) | (input << (8 * sizeof(T) - ROT)));
   39|   846M|}
_ZN5Botan3rhoILm14ELm18ELm41ETkNSt3__117unsigned_integralEmEET2_S2_:
   53|   465M|BOTAN_FORCE_INLINE constexpr T rho(T x) {
   54|   465M|   return rotr<R1>(x) ^ rotr<R2>(x) ^ rotr<R3>(x);
   55|   465M|}
_ZN5Botan4rotrILm14ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   37|   465M|{
   38|   465M|   return static_cast<T>((input >> ROT) | (input << (8 * sizeof(T) - ROT)));
   39|   465M|}
_ZN5Botan4rotrILm18ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   37|   465M|{
   38|   465M|   return static_cast<T>((input >> ROT) | (input << (8 * sizeof(T) - ROT)));
   39|   465M|}
_ZN5Botan4rotrILm41ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   37|   465M|{
   38|   465M|   return static_cast<T>((input >> ROT) | (input << (8 * sizeof(T) - ROT)));
   39|   465M|}
_ZN5Botan3rhoILm28ELm34ELm39ETkNSt3__117unsigned_integralEmEET2_S2_:
   53|   465M|BOTAN_FORCE_INLINE constexpr T rho(T x) {
   54|   465M|   return rotr<R1>(x) ^ rotr<R2>(x) ^ rotr<R3>(x);
   55|   465M|}
_ZN5Botan4rotrILm28ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   37|   465M|{
   38|   465M|   return static_cast<T>((input >> ROT) | (input << (8 * sizeof(T) - ROT)));
   39|   465M|}
_ZN5Botan4rotrILm34ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   37|   465M|{
   38|   465M|   return static_cast<T>((input >> ROT) | (input << (8 * sizeof(T) - ROT)));
   39|   465M|}
_ZN5Botan4rotrILm39ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   37|   465M|{
   38|   465M|   return static_cast<T>((input >> ROT) | (input << (8 * sizeof(T) - ROT)));
   39|   465M|}
_ZN5Botan5sigmaILm19ELm61ELm6ETkNSt3__117unsigned_integralEmEET2_S2_:
   45|   465M|BOTAN_FORCE_INLINE constexpr T sigma(T x) {
   46|   465M|   return rotr<R1>(x) ^ rotr<R2>(x) ^ (x >> S);
   47|   465M|}
_ZN5Botan4rotrILm19ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   37|   465M|{
   38|   465M|   return static_cast<T>((input >> ROT) | (input << (8 * sizeof(T) - ROT)));
   39|   465M|}
_ZN5Botan4rotrILm61ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   37|   465M|{
   38|   465M|   return static_cast<T>((input >> ROT) | (input << (8 * sizeof(T) - ROT)));
   39|   465M|}
_ZN5Botan5sigmaILm1ELm8ELm7ETkNSt3__117unsigned_integralEmEET2_S2_:
   45|   465M|BOTAN_FORCE_INLINE constexpr T sigma(T x) {
   46|   465M|   return rotr<R1>(x) ^ rotr<R2>(x) ^ (x >> S);
   47|   465M|}
_ZN5Botan4rotrILm1ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   37|   465M|{
   38|   465M|   return static_cast<T>((input >> ROT) | (input << (8 * sizeof(T) - ROT)));
   39|   465M|}
_ZN5Botan4rotrILm8ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   37|   465M|{
   38|   465M|   return static_cast<T>((input >> ROT) | (input << (8 * sizeof(T) - ROT)));
   39|   465M|}
_ZN5Botan4rotlILm19ETkNSt3__117unsigned_integralEjEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   210M|{
   26|   210M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   210M|}
_ZN5Botan4rotlILm1ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   223M|{
   26|   223M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   223M|}
_ZN5Botan4rotlILm44ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|  37.2M|{
   26|  37.2M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|  37.2M|}
_ZN5Botan4rotlILm43ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|  37.2M|{
   26|  37.2M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|  37.2M|}
_ZN5Botan4rotlILm21ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|  37.2M|{
   26|  37.2M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|  37.2M|}
_ZN5Botan4rotlILm14ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|  37.2M|{
   26|  37.2M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|  37.2M|}
_ZN5Botan4rotlILm28ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|  37.2M|{
   26|  37.2M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|  37.2M|}
_ZN5Botan4rotlILm20ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|  37.2M|{
   26|  37.2M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|  37.2M|}
_ZN5Botan4rotlILm3ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|  37.2M|{
   26|  37.2M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|  37.2M|}
_ZN5Botan4rotlILm45ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|  37.2M|{
   26|  37.2M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|  37.2M|}
_ZN5Botan4rotlILm61ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|  37.2M|{
   26|  37.2M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|  37.2M|}
_ZN5Botan4rotlILm6ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|  37.2M|{
   26|  37.2M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|  37.2M|}
_ZN5Botan4rotlILm25ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|  37.2M|{
   26|  37.2M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|  37.2M|}
_ZN5Botan4rotlILm8ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|  37.2M|{
   26|  37.2M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|  37.2M|}
_ZN5Botan4rotlILm18ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|  37.2M|{
   26|  37.2M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|  37.2M|}
_ZN5Botan4rotlILm27ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|  37.2M|{
   26|  37.2M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|  37.2M|}
_ZN5Botan4rotlILm36ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|  37.2M|{
   26|  37.2M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|  37.2M|}
_ZN5Botan4rotlILm10ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|  37.2M|{
   26|  37.2M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|  37.2M|}
_ZN5Botan4rotlILm15ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|  37.2M|{
   26|  37.2M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|  37.2M|}
_ZN5Botan4rotlILm56ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|  37.2M|{
   26|  37.2M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|  37.2M|}
_ZN5Botan4rotlILm62ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|  37.2M|{
   26|  37.2M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|  37.2M|}
_ZN5Botan4rotlILm55ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|  37.2M|{
   26|  37.2M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|  37.2M|}
_ZN5Botan4rotlILm39ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|  37.2M|{
   26|  37.2M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|  37.2M|}
_ZN5Botan4rotlILm41ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|  37.2M|{
   26|  37.2M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|  37.2M|}
_ZN5Botan4rotlILm2ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|  37.2M|{
   26|  37.2M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|  37.2M|}

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

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

ffi_cipher.cpp:_ZN5Botan14scoped_cleanupIZZ19botan_cipher_updateENK3$_0clEvEUlvE_EC2ES2_:
   26|  1.26k|      explicit scoped_cleanup(FunT cleanup) : m_cleanup(std::move(cleanup)) {}
ffi_cipher.cpp:_ZN5Botan14scoped_cleanupIZZ19botan_cipher_updateENK3$_0clEvEUlvE_ED2Ev:
   34|  1.26k|      ~scoped_cleanup() {
   35|  1.26k|         if(m_cleanup.has_value()) {
  ------------------
  |  Branch (35:13): [True: 1.26k, False: 0]
  ------------------
   36|  1.26k|            (*m_cleanup)();  // NOLINT(bugprone-exception-escape) clang-tidy bug
   37|  1.26k|         }
   38|  1.26k|      }
_ZN5Botan14scoped_cleanupIZNS_2CT13scoped_poisonIJNSt3__14spanIhLm16EEEEQaaaagtsZT_Li0Efraa10poisonableIT_Efraa12unpoisonableIS6_EEEDaDpRKS6_EUlvE_EC2ESA_:
   26|  10.7k|      explicit scoped_cleanup(FunT cleanup) : m_cleanup(std::move(cleanup)) {}
_ZN5Botan14scoped_cleanupIZNS_2CT13scoped_poisonIJNSt3__14spanIhLm16EEEEQaaaagtsZT_Li0Efraa10poisonableIT_Efraa12unpoisonableIS6_EEEDaDpRKS6_EUlvE_EC2EOSB_:
   32|  10.7k|      scoped_cleanup(scoped_cleanup&& other) noexcept : m_cleanup(std::move(other.m_cleanup)) { other.disengage(); }
_ZN5Botan14scoped_cleanupIZNS_2CT13scoped_poisonIJNSt3__14spanIhLm16EEEEQaaaagtsZT_Li0Efraa10poisonableIT_Efraa12unpoisonableIS6_EEEDaDpRKS6_EUlvE_E9disengageEv:
   43|  10.7k|      void disengage() noexcept { m_cleanup.reset(); }
_ZN5Botan14scoped_cleanupIZNS_2CT13scoped_poisonIJNSt3__14spanIhLm16EEEEQaaaagtsZT_Li0Efraa10poisonableIT_Efraa12unpoisonableIS6_EEEDaDpRKS6_EUlvE_ED2Ev:
   34|  21.4k|      ~scoped_cleanup() {
   35|  21.4k|         if(m_cleanup.has_value()) {
  ------------------
  |  Branch (35:13): [True: 10.7k, False: 10.7k]
  ------------------
   36|  10.7k|            (*m_cleanup)();  // NOLINT(bugprone-exception-escape) clang-tidy bug
   37|  10.7k|         }
   38|  21.4k|      }

_ZNK5Botan5SHA_14nameEv:
   32|    201|      std::string name() const override { return "SHA-1"; }
_ZNK5Botan5SHA_113output_lengthEv:
   34|  22.3k|      size_t output_length() const override { return 20; }

_ZN5Botan6SHA1_F2F1EjRjjjS1_j:
   21|  77.5M|inline void F1(uint32_t A, uint32_t& B, uint32_t C, uint32_t D, uint32_t& E, uint32_t M) {
   22|  77.5M|   E += choose(B, C, D) + M + rotl<5>(A);
   23|  77.5M|   B = rotl<30>(B);
   24|  77.5M|}
_ZN5Botan6SHA1_F2F2EjRjjjS1_j:
   26|  77.5M|inline void F2(uint32_t A, uint32_t& B, uint32_t C, uint32_t D, uint32_t& E, uint32_t M) {
   27|  77.5M|   E += (B ^ C ^ D) + M + rotl<5>(A);
   28|  77.5M|   B = rotl<30>(B);
   29|  77.5M|}
_ZN5Botan6SHA1_F2F3EjRjjjS1_j:
   31|  77.5M|inline void F3(uint32_t A, uint32_t& B, uint32_t C, uint32_t D, uint32_t& E, uint32_t M) {
   32|  77.5M|   E += majority(B, C, D) + M + rotl<5>(A);
   33|  77.5M|   B = rotl<30>(B);
   34|  77.5M|}
_ZN5Botan6SHA1_F2F4EjRjjjS1_j:
   37|  77.5M|inline void F4(uint32_t A, uint32_t& B, uint32_t C, uint32_t D, uint32_t& E, uint32_t M) {
   38|  77.5M|   E += (B ^ C ^ D) + M + rotl<5>(A);
   39|  77.5M|   B = rotl<30>(B);
   40|  77.5M|}

_ZNK5Botan7SHA_2244nameEv:
   33|    301|      std::string name() const override { return "SHA-224"; }
_ZNK5Botan7SHA_22413output_lengthEv:
   35|  20.9k|      size_t output_length() const override { return output_bytes; }
_ZNK5Botan7SHA_2564nameEv:
   73|  8.72k|      std::string name() const override { return "SHA-256"; }
_ZNK5Botan7SHA_25613output_lengthEv:
   75|  65.6k|      size_t output_length() const override { return output_bytes; }

_ZN5Botan9SHA2_32_FEjjjRjjjjS0_S0_jjjj:
   31|   846M|                                  uint32_t magic) {
   32|   846M|   H += magic + rho<6, 11, 25>(E) + choose(E, F, G) + M1;
   33|   846M|   D += H;
   34|   846M|   H += rho<2, 13, 22>(A) + majority(A, B, C);
   35|   846M|   M1 += sigma<17, 19, 10>(M2) + M3 + sigma<7, 18, 3>(M4);
   36|   846M|}

_ZNK5Botan7SHA_3844nameEv:
   32|    328|      std::string name() const override { return "SHA-384"; }
_ZNK5Botan7SHA_38413output_lengthEv:
   34|  45.5k|      size_t output_length() const override { return output_bytes; }
_ZNK5Botan7SHA_5124nameEv:
   72|     25|      std::string name() const override { return "SHA-512"; }
_ZNK5Botan7SHA_51213output_lengthEv:
   74|   471k|      size_t output_length() const override { return output_bytes; }
_ZNK5Botan7SHA_51215hash_block_sizeEv:
   76|  15.6k|      size_t hash_block_size() const override { return block_bytes; }
_ZN5Botan7SHA_5125clearEv:
   84|  62.6k|      void clear() override { m_md.clear(); }

_ZN5Botan9SHA2_64_FEmmmRmmmmS0_S0_mmmm:
   31|   465M|                                  uint64_t magic) {
   32|   465M|   H += magic + rho<14, 18, 41>(E) + choose(E, F, G) + M1;
   33|   465M|   D += H;
   34|   465M|   H += rho<28, 34, 39>(A) + majority(A, B, C);
   35|   465M|   M1 += sigma<19, 61, 6>(M2) + M3 + sigma<1, 8, 7>(M4);
   36|   465M|}

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

_ZNK5Botan9SHAKE_25613output_lengthEv:
   65|   329k|      size_t output_length() const override { return m_output_bits / 8; }
_ZN5Botan9SHAKE_2565clearEv:
   73|   164k|      void clear() override { m_keccak.clear(); }

_ZN5Botan22SignaturePaddingSchemeD2Ev:
   27|  4.33k|      virtual ~SignaturePaddingScheme() = default;

_ZNK5Botan3SM34nameEv:
   32|    211|      std::string name() const override { return "SM3"; }
_ZNK5Botan3SM313output_lengthEv:
   36|  21.1k|      size_t output_length() const override { return output_bytes; }

_ZN5Botan2R1EjRjjS0_jS0_jS0_jjj:
   31|  52.6M|               uint32_t Wj) {
   32|  52.6M|   const uint32_t A12 = rotl<12>(A);
   33|  52.6M|   const uint32_t SS1 = rotl<7>(A12 + E + TJ);
   34|  52.6M|   const uint32_t TT1 = (A ^ B ^ C) + D + (SS1 ^ A12) + (Wi ^ Wj);
   35|  52.6M|   const uint32_t TT2 = (E ^ F ^ G) + H + SS1 + Wi;
   36|       |
   37|  52.6M|   B = rotl<9>(B);
   38|  52.6M|   D = TT1;
   39|  52.6M|   F = rotl<19>(F);
   40|  52.6M|   H = P0(TT2);
   41|  52.6M|}
_ZN5Botan2P0Ej:
   17|   210M|inline uint32_t P0(uint32_t X) {
   18|   210M|   return X ^ rotl<9>(X) ^ rotl<17>(X);
   19|   210M|}
_ZN5Botan5SM3_EEjjjjj:
   69|   171M|inline uint32_t SM3_E(uint32_t W0, uint32_t W7, uint32_t W13, uint32_t W3, uint32_t W10) {
   70|   171M|   return P1(W0 ^ W7 ^ rotl<15>(W13)) ^ rotl<7>(W3) ^ W10;
   71|   171M|}
_ZN5Botan2P1Ej:
   65|   171M|inline uint32_t P1(uint32_t X) {
   66|   171M|   return X ^ rotl<15>(X) ^ rotl<23>(X);
   67|   171M|}
_ZN5Botan2R2EjRjjS0_jS0_jS0_jjj:
   53|   157M|               uint32_t Wj) {
   54|   157M|   const uint32_t A12 = rotl<12>(A);
   55|   157M|   const uint32_t SS1 = rotl<7>(A12 + E + TJ);
   56|   157M|   const uint32_t TT1 = majority(A, B, C) + D + (SS1 ^ A12) + (Wi ^ Wj);
   57|   157M|   const uint32_t TT2 = choose(E, F, G) + H + SS1 + Wi;
   58|       |
   59|   157M|   B = rotl<9>(B);
   60|   157M|   D = TT1;
   61|   157M|   F = rotl<19>(F);
   62|   157M|   H = P0(TT2);
   63|   157M|}

_ZNK5Botan3SM44nameEv:
   26|      7|      std::string name() const override { return "SM4"; }
_ZNK5Botan3SM410new_objectEv:
   28|     16|      std::unique_ptr<BlockCipher> new_object() const override { return std::make_unique<SM4>(); }

_ZN5Botan15Sphincs_Address15as_keypair_fromERKS0_:
  128|    128|      static Sphincs_Address as_keypair_from(const Sphincs_Address& other) {
  129|    128|         Sphincs_Address result({0, 0, 0, 0, 0, 0, 0, 0});
  130|    128|         result.copy_keypair_from(other);
  131|    128|         return result;
  132|    128|      }
_ZN5Botan15Sphincs_AddressC2ENSt3__15arrayIjLm8EEE:
   49|    128|      explicit Sphincs_Address(std::array<uint32_t, 8> address) : m_address{} {
   50|    128|         std::copy(address.begin(), address.end(), m_address.begin());
   51|    128|      }
_ZN5Botan15Sphincs_Address17copy_keypair_fromES0_:
  118|    588|      Sphincs_Address& copy_keypair_from(const Sphincs_Address other) {
  119|    588|         m_address[layer_offset] = other.m_address[layer_offset];
  120|    588|         m_address[tree_offset + 0] = other.m_address[tree_offset + 0];
  121|    588|         m_address[tree_offset + 1] = other.m_address[tree_offset + 1];
  122|    588|         m_address[tree_offset + 2] = other.m_address[tree_offset + 2];
  123|    588|         m_address[keypair_offset] = other.m_address[keypair_offset];
  124|       |
  125|    588|         return *this;
  126|    588|      }
_ZN5Botan15Sphincs_Address8set_typeENS_20Sphincs_Address_TypeE:
   71|    384|      Sphincs_Address& set_type(Sphincs_Address_Type type) {
   72|    384|         m_address[type_offset] = static_cast<uint32_t>(type);
   73|    384|         return *this;
   74|    384|      }
_ZN5Botan15Sphincs_Address15set_tree_heightENS_6StrongIjNS_15TreeLayerIndex_EJNS_31EnableArithmeticWithPlainNumberEEEE:
   86|  17.4k|      Sphincs_Address& set_tree_height(TreeLayerIndex tree_height) {
   87|  17.4k|         m_address[tree_height_offset] = tree_height.get();
   88|  17.4k|         return *this;
   89|  17.4k|      }
_ZN5Botan15Sphincs_Address14set_tree_indexENS_6StrongIjNS_14TreeNodeIndex_EJNS_31EnableArithmeticWithPlainNumberEEEE:
   96|  17.4k|      Sphincs_Address& set_tree_index(TreeNodeIndex tree_index) {
   97|  17.4k|         m_address[tree_index_offset] = tree_index.get();
   98|  17.4k|         return *this;
   99|  17.4k|      }
_ZN5Botan15Sphincs_AddressC2ENS_20Sphincs_Address_TypeE:
   47|    256|      explicit Sphincs_Address(Sphincs_Address_Type type) : m_address{} { set_type(type); }
_ZN5Botan15Sphincs_Address17set_layer_addressENS_6StrongIjNS_20HypertreeLayerIndex_EJEEE:
   55|    460|      Sphincs_Address& set_layer_address(HypertreeLayerIndex layer) {
   56|    460|         m_address[layer_offset] = layer.get();
   57|    460|         return *this;
   58|    460|      }
_ZN5Botan15Sphincs_Address16set_tree_addressENS_6StrongImNS_21XmssTreeIndexInLayer_EJNS_31EnableArithmeticWithPlainNumberEEEE:
   60|    524|      Sphincs_Address& set_tree_address(XmssTreeIndexInLayer tree) {
   61|    524|         m_address[tree_offset + 0] = 0;  // not required by all current instances
   62|    524|         m_address[tree_offset + 1] = static_cast<uint32_t>(tree.get() >> 32);
   63|    524|         m_address[tree_offset + 2] = static_cast<uint32_t>(tree.get());
   64|    524|         return *this;
   65|    524|      }
_ZN5Botan15Sphincs_Address19set_keypair_addressENS_6StrongIjNS_14TreeNodeIndex_EJNS_31EnableArithmeticWithPlainNumberEEEE:
   76|    524|      Sphincs_Address& set_keypair_address(TreeNodeIndex keypair) {
   77|    524|         m_address[keypair_offset] = keypair.get();
   78|    524|         return *this;
   79|    524|      }
_ZN5Botan15Sphincs_Address17set_chain_addressENS_6StrongIjNS_15WotsChainIndex_EJEEE:
   81|  19.1k|      Sphincs_Address& set_chain_address(WotsChainIndex chain) {
   82|  19.1k|         m_address[chain_offset] = chain.get();
   83|  19.1k|         return *this;
   84|  19.1k|      }
_ZN5Botan15Sphincs_Address16set_hash_addressENS_6StrongIhNS_14WotsHashIndex_EJNS_31EnableArithmeticWithPlainNumberEEEE:
   91|   146k|      Sphincs_Address& set_hash_address(WotsHashIndex hash) {
   92|   146k|         m_address[hash_offset] = hash.get();
   93|   146k|         return *this;
   94|   146k|      }
_ZN5Botan15Sphincs_Address17copy_subtree_fromERKS0_:
  103|    460|      Sphincs_Address& copy_subtree_from(const Sphincs_Address& other) {
  104|    460|         m_address[layer_offset] = other.m_address[layer_offset];
  105|    460|         m_address[tree_offset + 0] = other.m_address[tree_offset + 0];
  106|    460|         m_address[tree_offset + 1] = other.m_address[tree_offset + 1];
  107|    460|         m_address[tree_offset + 2] = other.m_address[tree_offset + 2];
  108|       |
  109|    460|         return *this;
  110|    460|      }
_ZNK5Botan15Sphincs_Address8to_bytesEv:
  136|   164k|      std::array<uint8_t, 32> to_bytes() const {
  137|   164k|         std::array<uint8_t, sizeof(m_address)> result{};
  138|  1.48M|         for(unsigned int i = 0; i < m_address.size(); ++i) {
  ------------------
  |  Branch (138:34): [True: 1.31M, False: 164k]
  ------------------
  139|  1.31M|            store_be(m_address[i], result.data() + (i * 4));
  140|  1.31M|         }
  141|   164k|         return result;
  142|   164k|      }

_ZN5Botan22Sphincs_Hash_Functions1TINS_6StrongINSt3__16vectorIhNS3_9allocatorIhEEEENS_16SphincsTreeNode_EJEEEJS7_EEET_RKNS_15Sphincs_AddressEDpRKT0_:
   64|     64|      OutT T(const Sphincs_Address& address, const BufferTs&... in) {
   65|     64|         OutT t(m_sphincs_params.n());
   66|     64|         T(t, address, in...);
   67|     64|         return t;
   68|     64|      }
_ZN5Botan22Sphincs_Hash_Functions1TIJNSt3__16vectorIhNS2_9allocatorIhEEEEEEEvNS2_4spanIhLm18446744073709551615EEERKNS_15Sphincs_AddressEDpRKT_:
   57|     64|      void T(std::span<uint8_t> out, const Sphincs_Address& address, const BufferTs&... in) {
   58|     64|         auto& hash = tweak_hash(address, (in.size() + ...));
   59|     64|         (hash.update(in), ...);
   60|     64|         hash.final(out);
   61|     64|      }
_ZN5Botan22Sphincs_Hash_Functions1TINS_6StrongINSt3__16vectorIhNS3_9allocatorIhEEEENS_16SphincsTreeNode_EJEEEJNS_10StrongSpanIKNS2_INS4_IhNS_16secure_allocatorIhEEEENS_15ForsLeafSecret_EJEEEEEEEET_RKNS_15Sphincs_AddressEDpRKT0_:
   64|    992|      OutT T(const Sphincs_Address& address, const BufferTs&... in) {
   65|    992|         OutT t(m_sphincs_params.n());
   66|    992|         T(t, address, in...);
   67|    992|         return t;
   68|    992|      }
_ZN5Botan22Sphincs_Hash_Functions1TIJNS_10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_15ForsLeafSecret_EJEEEEEEEEvNS4_4spanIhLm18446744073709551615EEERKNS_15Sphincs_AddressEDpRKT_:
   57|    992|      void T(std::span<uint8_t> out, const Sphincs_Address& address, const BufferTs&... in) {
   58|    992|         auto& hash = tweak_hash(address, (in.size() + ...));
   59|    992|         (hash.update(in), ...);
   60|    992|         hash.final(out);
   61|    992|      }
_ZN5Botan22Sphincs_Hash_FunctionsD2Ev:
   25|     64|      virtual ~Sphincs_Hash_Functions() = default;
_ZN5Botan22Sphincs_Hash_Functions1TINS_6StrongINSt3__16vectorIhNS3_9allocatorIhEEEENS_16SphincsTreeNode_EJEEEJNS2_IS7_NS_14WotsPublicKey_EJEEEEEET_RKNS_15Sphincs_AddressEDpRKT0_:
   64|    460|      OutT T(const Sphincs_Address& address, const BufferTs&... in) {
   65|    460|         OutT t(m_sphincs_params.n());
   66|    460|         T(t, address, in...);
   67|    460|         return t;
   68|    460|      }
_ZN5Botan22Sphincs_Hash_Functions1TIJNS_6StrongINSt3__16vectorIhNS3_9allocatorIhEEEENS_14WotsPublicKey_EJEEEEEEvNS3_4spanIhLm18446744073709551615EEERKNS_15Sphincs_AddressEDpRKT_:
   57|    460|      void T(std::span<uint8_t> out, const Sphincs_Address& address, const BufferTs&... in) {
   58|    460|         auto& hash = tweak_hash(address, (in.size() + ...));
   59|    460|         (hash.update(in), ...);
   60|    460|         hash.final(out);
   61|    460|      }
_ZN5Botan22Sphincs_Hash_Functions1TIJNS_10StrongSpanIKNS_6StrongINSt3__16vectorIhNS4_9allocatorIhEEEENS_16SphincsTreeNode_EJEEEEESC_EEEvNS4_4spanIhLm18446744073709551615EEERKNS_15Sphincs_AddressEDpRKT_:
   57|  16.4k|      void T(std::span<uint8_t> out, const Sphincs_Address& address, const BufferTs&... in) {
   58|  16.4k|         auto& hash = tweak_hash(address, (in.size() + ...));
   59|  16.4k|         (hash.update(in), ...);
   60|  16.4k|         hash.final(out);
   61|  16.4k|      }
_ZN5Botan22Sphincs_Hash_Functions1TIJNS_10StrongSpanINS_6StrongINSt3__16vectorIhNS4_9allocatorIhEEEENS_18WotsPublicKeyNode_EJEEEEEEEEvNS4_4spanIhLm18446744073709551615EEERKNS_15Sphincs_AddressEDpRKT_:
   57|   146k|      void T(std::span<uint8_t> out, const Sphincs_Address& address, const BufferTs&... in) {
   58|   146k|         auto& hash = tweak_hash(address, (in.size() + ...));
   59|   146k|         (hash.update(in), ...);
   60|   146k|         hash.final(out);
   61|   146k|      }

_ZN5Botan28Sphincs_Hash_Functions_ShakeC2ERKNS_18Sphincs_ParametersERKNS_6StrongINSt3__16vectorIhNS5_9allocatorIhEEEENS_18SphincsPublicSeed_EJEEE:
   44|     64|            Sphincs_Hash_Functions(sphincs_params, pub_seed),
   45|     64|            m_hash(sphincs_params.n() * 8),
   46|     64|            m_h_msg_hash(8 * sphincs_params.h_msg_digest_bytes()) {}
_ZN5Botan28Sphincs_Hash_Functions_Shake10tweak_hashERKNS_15Sphincs_AddressEm:
   23|   164k|      HashFunction& tweak_hash(const Sphincs_Address& address, size_t input_length) override {
   24|   164k|         BOTAN_UNUSED(input_length);
  ------------------
  |  |  144|   164k|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
   25|   164k|         m_hash.update(m_pub_seed);
   26|   164k|         m_hash.update(address.to_bytes());
   27|   164k|         return m_hash;
   28|   164k|      }
_ZN5Botan28Sphincs_Hash_Functions_Shake12H_msg_digestENS_10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_25SphincsMessageRandomness_EJEEEEERKNS2_INS4_IhNS3_9allocatorIhEEEENS_16SphincsTreeNode_EJEEERKNS_22SphincsMessageInternalE:
   32|     64|                                        const SphincsMessageInternal& message) override {
   33|     64|         m_h_msg_hash.update(r);
   34|     64|         m_h_msg_hash.update(m_pub_seed);
   35|     64|         m_h_msg_hash.update(root);
   36|     64|         m_h_msg_hash.update(message.prefix);
   37|     64|         m_h_msg_hash.update(message.message);
   38|       |
   39|     64|         return m_h_msg_hash.final_stdvec();
   40|     64|      }

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

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

_ZNK5Botan7Twofish4nameEv:
   27|     21|      std::string name() const override { return "Twofish"; }
_ZNK5Botan7Twofish10new_objectEv:
   29|     88|      std::unique_ptr<BlockCipher> new_object() const override { return std::make_unique<Twofish>(); }

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

_ZN5Botan9AEAD_Mode19set_associated_dataEPKhm:
   69|  1.01k|      void set_associated_data(const uint8_t ad[], size_t ad_len) { set_associated_data(std::span(ad, ad_len)); }
_ZN5Botan9AEAD_Mode19set_associated_dataENSt3__14spanIKhLm18446744073709551615EEE:
   59|  1.01k|      void set_associated_data(std::span<const uint8_t> ad) { set_associated_data_n(0, ad); }

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

_ZN5Botan11ASN1_ObjectC2Ev:
  146|  18.5k|      ASN1_Object() = default;
_ZN5Botan11ASN1_ObjectC2ERKS0_:
  151|  18.5k|      ASN1_Object(const ASN1_Object&) = default;
_ZN5Botan11ASN1_ObjectD2Ev:
  168|  74.0k|      virtual ~ASN1_Object() = default;
_ZNK5Botan3OIDeqERKS0_:
  510|  43.3k|      bool operator==(const OID& other) const { return m_id == other.m_id; }
_ZNK5Botan3OID5emptyEv:
  468|  36.9k|      bool empty() const { return m_id.empty(); }
_ZNK5Botan3OID9has_valueEv:
  474|  18.4k|      bool has_value() const { return !empty(); }
_ZN5BotanneERKNS_3OIDES2_:
  561|      3|inline bool operator!=(const OID& a, const OID& b) {
  562|      3|   return !(a == b);
  563|      3|}
_ZNKSt3__14hashIN5Botan3OIDEEclERKS2_:
  761|      4|      size_t operator()(const Botan::OID& oid) const noexcept { return static_cast<size_t>(oid.hash_code()); }
_ZN5Botan11ASN1_ObjectC2EOS0_:
  161|  37.0k|      ASN1_Object(ASN1_Object&&) = default;

_ZN5Botan13ignore_paramsIJPKjmEEEvDpRKT_:
  142|   702k|constexpr void ignore_params([[maybe_unused]] const T&... args) {}
_ZN5Botan13ignore_paramsIJPKhmEEEvDpRKT_:
  142|   268k|constexpr void ignore_params([[maybe_unused]] const T&... args) {}
_ZN5Botan13ignore_paramsIJNS_9SCAN_NameEEEEvDpRKT_:
  142|  8.90k|constexpr void ignore_params([[maybe_unused]] const T&... args) {}
_ZN5Botan13ignore_paramsIJNSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEEEEvDpRKT_:
  142|  15.4k|constexpr void ignore_params([[maybe_unused]] const T&... args) {}
_ZN5Botan13ignore_paramsIJPKtmEEEvDpRKT_:
  142|   111k|constexpr void ignore_params([[maybe_unused]] const T&... args) {}
_ZN5Botan13ignore_paramsIJmEEEvDpRKT_:
  142|   164k|constexpr void ignore_params([[maybe_unused]] const T&... args) {}
_ZN5Botan13ignore_paramsIJPKmmEEEvDpRKT_:
  142|  11.2M|constexpr void ignore_params([[maybe_unused]] const T&... args) {}

_ZN5Botan6BigIntC2Ev:
   45|   290k|      BigInt() = default;
_ZN5Botan6BigIntD2Ev:
  185|   386k|      ~BigInt() { _const_time_unpoison(); }
_ZN5Botan6BigInt4zeroEv:
   50|  5.90k|      static BigInt zero() { return BigInt(); }
_ZN5Botan6BigIntC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   98|     18|      explicit BigInt(std::string_view str) { *this = BigInt::from_string(str); }
_ZN5Botan6BigIntC2EPKhm:
  133|  1.99k|      BigInt(const uint8_t buf[], size_t length) { assign_from_bytes(std::span{buf, length}); }
_ZN5Botan6BigIntC2ENSt3__14spanIKhLm18446744073709551615EEE:
  139|  1.05k|      explicit BigInt(std::span<const uint8_t> bytes) { assign_from_bytes(bytes); }
_ZN5Botan6BigIntC2EOS0_:
  183|  51.9k|      BigInt(BigInt&& other) noexcept { this->swap(other); }
_ZN5Botan6BigIntaSEOS0_:
  190|  15.6k|      BigInt& operator=(BigInt&& other) noexcept {
  191|  15.6k|         if(this != &other) {
  ------------------
  |  Branch (191:13): [True: 15.6k, False: 0]
  ------------------
  192|  15.6k|            this->swap(other);
  193|  15.6k|         }
  194|       |
  195|  15.6k|         return (*this);
  196|  15.6k|      }
_ZN5Botan6BigInt4swapERS0_:
  207|   122k|      void swap(BigInt& other) noexcept {
  208|   122k|         m_data.swap(other.m_data);
  209|   122k|         std::swap(m_signedness, other.m_signedness);
  210|   122k|      }
_ZN5Botan6BigInt8swap_regERNSt3__16vectorImNS_16secure_allocatorImEEEE:
  218|    496|      BOTAN_DEPRECATED("Deprecated no replacement") void swap_reg(secure_vector<word>& reg) {
  219|    496|         m_data.swap(reg);
  220|       |         // sign left unchanged
  221|    496|      }
_ZN5Botan6BigInt3subEPKmmNS0_4SignE:
  358|  91.0k|      BigInt& sub(const word y[], size_t y_words, Sign sign) {
  359|  91.0k|         return add(y, y_words, sign == Positive ? Negative : Positive);
  ------------------
  |  Branch (359:33): [True: 91.0k, False: 0]
  ------------------
  360|  91.0k|      }
_ZN5Botan6BigInt5clearEv:
  441|  88.5k|      void clear() {
  442|  88.5k|         m_data.set_to_zero();
  443|  88.5k|         m_signedness = Positive;
  444|  88.5k|      }
_ZNK5Botan6BigInt7is_evenEv:
  481|  14.9k|      bool is_even() const { return !get_bit(0); }
_ZNK5Botan6BigInt6is_oddEv:
  487|    992|      bool is_odd() const { return get_bit(0); }
_ZNK5Botan6BigInt6signumEv:
  493|   616k|      int signum() const {
  494|   616k|         if(sig_words() == 0) {
  ------------------
  |  Branch (494:13): [True: 23, False: 616k]
  ------------------
  495|     23|            return 0;
  496|     23|         }
  497|   616k|         return (sign() == Negative) ? -1 : 1;
  ------------------
  |  Branch (497:17): [True: 827, False: 615k]
  ------------------
  498|   616k|      }
_ZNK5Botan6BigInt7is_zeroEv:
  510|  8.74k|      bool is_zero() const { return sig_words() == 0; }
_ZN5Botan6BigInt7set_bitEm:
  516|  10.2k|      void set_bit(size_t n) { conditionally_set_bit(n, true); }
_ZN5Botan6BigInt21conditionally_set_bitEmb:
  526|  10.2k|      void conditionally_set_bit(size_t n, bool set_it) {
  527|  10.2k|         const size_t which = n / (sizeof(word) * 8);
  528|  10.2k|         const word mask = static_cast<word>(set_it) << (n % (sizeof(word) * 8));
  529|  10.2k|         m_data.set_word_at(which, word_at(which) | mask);
  530|  10.2k|      }
_ZNK5Botan6BigInt7get_bitEm:
  549|  15.9k|      bool get_bit(size_t n) const { return ((word_at(n / (sizeof(word) * 8)) >> (n % (sizeof(word) * 8))) & 1) == 1; }
_ZNK5Botan6BigInt7word_atEm:
  601|   764k|      word word_at(size_t n) const { return m_data.get_word_at(n); }
_ZNK5Botan6BigInt4signEv:
  641|   896k|      Sign sign() const { return (m_signedness); }
_ZN5Botan6BigInt8set_signENS0_4SignE:
  663|  97.6k|      void set_sign(Sign sign) {
  664|  97.6k|         if(sign == Negative && is_zero()) {
  ------------------
  |  Branch (664:13): [True: 827, False: 96.7k]
  |  Branch (664:33): [True: 0, False: 827]
  ------------------
  665|      0|            sign = Positive;
  666|      0|         }
  667|       |
  668|  97.6k|         m_signedness = sign;
  669|  97.6k|      }
_ZNK5Botan6BigInt4sizeEv:
  681|   473k|      size_t size() const { return m_data.size(); }
_ZNK5Botan6BigInt9sig_wordsEv:
  687|  1.32M|      size_t sig_words() const { return m_data.sig_words(); }
_ZN5Botan6BigInt12mutable_dataEv:
  712|   229k|      BOTAN_DEPRECATED("Deprecated no replacement") word* mutable_data() { return m_data.mutable_data(); }
_ZNK5Botan6BigInt4dataEv:
  718|      6|      BOTAN_DEPRECATED("Deprecated no replacement") const word* data() const { return m_data.const_data(); }
_ZNK5Botan6BigInt7grow_toEm:
  738|   207k|      BOTAN_DEPRECATED("Deprecated no replacement") void grow_to(size_t n) const { m_data.grow_to(n); }
_ZN5Botan6BigInt10power_of_2Em:
  906|  4.87k|      static BigInt power_of_2(size_t n) {
  907|  4.87k|         BigInt b;
  908|  4.87k|         b.set_bit(n);
  909|  4.87k|         return b;
  910|  4.87k|      }
_ZNK5Botan6BigInt8_as_spanEv:
 1023|  14.0k|      std::span<const word> _as_span() const { return m_data.const_span(); }
_ZNK5Botan6BigInt5_dataEv:
 1033|  1.01M|      const word* _data() const { return m_data.const_data(); }
_ZN5Botan6BigInt18_assign_from_bytesENSt3__14spanIKhLm18446744073709551615EEE:
 1044|  48.1k|      void _assign_from_bytes(std::span<const uint8_t> bytes) { assign_from_bytes(bytes); }
_ZN5Botan6BigInt11_from_wordsERNSt3__16vectorImNS_16secure_allocatorImEEEE:
 1052|  17.8k|      static BigInt _from_words(secure_vector<word>& words) {
 1053|  17.8k|         BigInt bn;
 1054|  17.8k|         bn.m_data.swap(words);
 1055|  17.8k|         return bn;
 1056|  17.8k|      }
_ZN5Botan6BigInt4Data12mutable_dataEv:
 1083|   327k|            word* mutable_data() {
 1084|   327k|               invalidate_sig_words();
 1085|   327k|               return m_reg.data();
 1086|   327k|            }
_ZNK5Botan6BigInt4Data10const_dataEv:
 1088|  1.39M|            const word* const_data() const { return m_reg.data(); }
_ZNK5Botan6BigInt4Data10const_spanEv:
 1090|  14.0k|            std::span<const word> const_span() const { return std::span{m_reg}; }
_ZNK5Botan6BigInt4Data11get_word_atEm:
 1099|   764k|            word get_word_at(size_t n) const {
 1100|   764k|               if(n < m_reg.size()) {
  ------------------
  |  Branch (1100:19): [True: 754k, False: 10.2k]
  ------------------
 1101|   754k|                  return m_reg[n];
 1102|   754k|               }
 1103|  10.2k|               return 0;
 1104|   764k|            }
_ZN5Botan6BigInt4Data11set_word_atEmm:
 1106|  10.2k|            void set_word_at(size_t i, word w) {
 1107|  10.2k|               invalidate_sig_words();
 1108|  10.2k|               if(i >= m_reg.size()) {
  ------------------
  |  Branch (1108:19): [True: 10.2k, False: 0]
  ------------------
 1109|  10.2k|                  if(w == 0) {
  ------------------
  |  Branch (1109:22): [True: 0, False: 10.2k]
  ------------------
 1110|      0|                     return;
 1111|      0|                  }
 1112|  10.2k|                  grow_to(i + 1);
 1113|  10.2k|               }
 1114|  10.2k|               m_reg[i] = w;
 1115|  10.2k|            }
_ZNK5Botan6BigInt4Data7grow_toEm:
 1126|   222k|            void grow_to(size_t n) const {
 1127|   222k|               if(n > size()) {
  ------------------
  |  Branch (1127:19): [True: 123k, False: 99.2k]
  ------------------
 1128|   123k|                  if(n <= m_reg.capacity()) {
  ------------------
  |  Branch (1128:22): [True: 0, False: 123k]
  ------------------
 1129|      0|                     m_reg.resize(n);
 1130|   123k|                  } else {
 1131|   123k|                     m_reg.resize(n + (8 - (n % 8)));
 1132|   123k|                  }
 1133|   123k|               }
 1134|   222k|            }
_ZNK5Botan6BigInt4Data4sizeEv:
 1136|  1.17M|            size_t size() const { return m_reg.size(); }
_ZN5Botan6BigInt4Data4swapERS1_:
 1151|   122k|            void swap(Data& other) noexcept {
 1152|   122k|               m_reg.swap(other.m_reg);
 1153|   122k|               std::swap(m_sig_words, other.m_sig_words);
 1154|   122k|            }
_ZN5Botan6BigInt4Data4swapERNSt3__16vectorImNS_16secure_allocatorImEEEE:
 1156|   106k|            void swap(secure_vector<word>& reg) noexcept {
 1157|   106k|               m_reg.swap(reg);
 1158|   106k|               invalidate_sig_words();
 1159|   106k|            }
_ZNK5Botan6BigInt4Data20invalidate_sig_wordsEv:
 1161|   444k|            void invalidate_sig_words() const noexcept { m_sig_words = sig_words_npos; }
_ZNK5Botan6BigInt4Data9sig_wordsEv:
 1163|  1.32M|            size_t sig_words() const {
 1164|  1.32M|               if(m_sig_words == sig_words_npos) {
  ------------------
  |  Branch (1164:19): [True: 402k, False: 920k]
  ------------------
 1165|   402k|                  m_sig_words = calc_sig_words();
 1166|   402k|               }
 1167|  1.32M|               return m_sig_words;
 1168|  1.32M|            }
_ZN5BotanplERKNS_6BigIntES2_:
 1189|      6|inline BigInt operator+(const BigInt& x, const BigInt& y) {
 1190|      6|   return BigInt::add2(x, y._data(), y.sig_words(), y.sign());
 1191|      6|}
_ZN5BotanmiERKNS_6BigIntEm:
 1229|      3|inline BigInt operator-(const BigInt& x, word y) {
 1230|      3|   return BigInt::add2(x, &y, 1, BigInt::Negative);
 1231|      3|}
_ZN5BotanmlEmRKNS_6BigIntE:
 1255|  88.5k|inline BigInt operator*(word x, const BigInt& y) {
 1256|  88.5k|   return y * x;
 1257|  88.5k|}
_ZN5BotaneqERKNS_6BigIntES2_:
 1313|    496|inline bool operator==(const BigInt& a, const BigInt& b) {
 1314|    496|   return a.is_equal(b);
 1315|    496|}
_ZN5BotanneERKNS_6BigIntES2_:
 1323|      3|inline bool operator!=(const BigInt& a, const BigInt& b) {
 1324|      3|   return !a.is_equal(b);
 1325|      3|}
_ZN5BotangeERKNS_6BigIntES2_:
 1343|  82.2k|inline bool operator>=(const BigInt& a, const BigInt& b) {
 1344|  82.2k|   return (a.cmp(b) >= 0);
 1345|  82.2k|}
_ZN5BotanltERKNS_6BigIntES2_:
 1353|  10.1k|inline bool operator<(const BigInt& a, const BigInt& b) {
 1354|  10.1k|   return a.is_less_than(b);
 1355|  10.1k|}
_ZN5BotaneqERKNS_6BigIntEm:
 1373|  1.03k|inline bool operator==(const BigInt& a, word b) {
 1374|  1.03k|   return (a.cmp_word(b) == 0);
 1375|  1.03k|}
_ZN5BotanneERKNS_6BigIntEm:
 1383|      3|inline bool operator!=(const BigInt& a, word b) {
 1384|      3|   return (a.cmp_word(b) != 0);
 1385|      3|}
_ZN5BotanleERKNS_6BigIntEm:
 1393|  4.40k|inline bool operator<=(const BigInt& a, word b) {
 1394|  4.40k|   return (a.cmp_word(b) <= 0);
 1395|  4.40k|}
_ZN5BotangeERKNS_6BigIntEm:
 1403|    496|inline bool operator>=(const BigInt& a, word b) {
 1404|    496|   return (a.cmp_word(b) >= 0);
 1405|    496|}
_ZN5BotanltERKNS_6BigIntEm:
 1413|  42.2k|inline bool operator<(const BigInt& a, word b) {
 1414|  42.2k|   return (a.cmp_word(b) < 0);
 1415|  42.2k|}
_ZN5BotangtERKNS_6BigIntEm:
 1423|  1.02k|inline bool operator>(const BigInt& a, word b) {
 1424|  1.02k|   return (a.cmp_word(b) > 0);
 1425|  1.02k|}
_ZNK5Botan6BigInt9serializeINSt3__16vectorIhNS2_9allocatorIhEEEEEET_m:
  790|  19.2k|      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|  19.2k|         T out(len);
  795|  19.2k|         this->serialize_to(out);
  796|  19.2k|         return out;
  797|  19.2k|      }
_ZN5Botan6BigIntC2ERKS0_:
   88|  41.4k|      BigInt(const BigInt& other) = default;
_ZNK5Botan6BigInt9serializeINSt3__16vectorIhNS2_9allocatorIhEEEEEET_v:
  803|  1.69k|      T serialize() const {
  804|  1.69k|         return serialize<T>(this->bytes());
  805|  1.69k|      }
_ZN5Botan6BigIntaSERKS0_:
  201|  5.85k|      BigInt& operator=(const BigInt&) = default;

_ZNK5Botan11BlockCipher11parallelismEv:
   65|  1.54k|      virtual size_t parallelism() const { return 1; }
_ZNK5Botan25Block_Cipher_Fixed_ParamsILm16ELm16ELm0ELm1ENS_11BlockCipherEE8key_specEv:
  246|  9.59k|      Key_Length_Specification key_spec() const final { return Key_Length_Specification(KMIN, KMAX, KMOD); }
_ZNK5Botan25Block_Cipher_Fixed_ParamsILm16ELm16ELm0ELm1ENS_11BlockCipherEE10block_sizeEv:
  240|  26.3k|      size_t block_size() const final { return BS; }
_ZNK5Botan25Block_Cipher_Fixed_ParamsILm16ELm24ELm0ELm1ENS_11BlockCipherEE8key_specEv:
  246|  8.77k|      Key_Length_Specification key_spec() const final { return Key_Length_Specification(KMIN, KMAX, KMOD); }
_ZNK5Botan25Block_Cipher_Fixed_ParamsILm16ELm24ELm0ELm1ENS_11BlockCipherEE10block_sizeEv:
  240|  89.2k|      size_t block_size() const final { return BS; }
_ZNK5Botan25Block_Cipher_Fixed_ParamsILm16ELm32ELm0ELm1ENS_11BlockCipherEE8key_specEv:
  246|  3.33k|      Key_Length_Specification key_spec() const final { return Key_Length_Specification(KMIN, KMAX, KMOD); }
_ZNK5Botan25Block_Cipher_Fixed_ParamsILm16ELm32ELm0ELm1ENS_11BlockCipherEE10block_sizeEv:
  240|  85.8k|      size_t block_size() const final { return BS; }
_ZNK5Botan11BlockCipher14parallel_bytesEv:
   71|  7.78k|      size_t parallel_bytes() const { return parallelism() * block_size() * BlockCipher::ParallelismMult; }
_ZNK5Botan11BlockCipher7encryptENSt3__14spanIhLm18446744073709551615EEE:
  118|   891k|      void encrypt(std::span<uint8_t> block) const {
  119|   891k|         return encrypt_n(block.data(), block.data(), block.size() / block_size());
  120|   891k|      }
_ZNK5Botan11BlockCipher7encryptENSt3__14spanIKhLm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
  135|    145|      void encrypt(std::span<const uint8_t> in, std::span<uint8_t> out) const {
  136|    145|         return encrypt_n(in.data(), out.data(), in.size() / block_size());
  137|    145|      }
_ZNK5Botan25Block_Cipher_Fixed_ParamsILm8ELm1ELm72ELm1ENS_11BlockCipherEE8key_specEv:
  246|  1.56k|      Key_Length_Specification key_spec() const final { return Key_Length_Specification(KMIN, KMAX, KMOD); }
_ZNK5Botan25Block_Cipher_Fixed_ParamsILm8ELm1ELm72ELm1ENS_11BlockCipherEE10block_sizeEv:
  240|   145k|      size_t block_size() const final { return BS; }
_ZNK5Botan25Block_Cipher_Fixed_ParamsILm8ELm11ELm16ELm1ENS_11BlockCipherEE8key_specEv:
  246|  17.9k|      Key_Length_Specification key_spec() const final { return Key_Length_Specification(KMIN, KMAX, KMOD); }
_ZNK5Botan25Block_Cipher_Fixed_ParamsILm8ELm11ELm16ELm1ENS_11BlockCipherEE10block_sizeEv:
  240|   217k|      size_t block_size() const final { return BS; }
_ZNK5Botan25Block_Cipher_Fixed_ParamsILm8ELm16ELm24ELm8ENS_11BlockCipherEE8key_specEv:
  246|  6.09k|      Key_Length_Specification key_spec() const final { return Key_Length_Specification(KMIN, KMAX, KMOD); }
_ZNK5Botan25Block_Cipher_Fixed_ParamsILm8ELm16ELm24ELm8ENS_11BlockCipherEE10block_sizeEv:
  240|   194k|      size_t block_size() const final { return BS; }
_ZNK5Botan25Block_Cipher_Fixed_ParamsILm8ELm16ELm0ELm1ENS_11BlockCipherEE8key_specEv:
  246|  4.85k|      Key_Length_Specification key_spec() const final { return Key_Length_Specification(KMIN, KMAX, KMOD); }
_ZNK5Botan25Block_Cipher_Fixed_ParamsILm8ELm16ELm0ELm1ENS_11BlockCipherEE10block_sizeEv:
  240|  20.1k|      size_t block_size() const final { return BS; }
_ZNK5Botan25Block_Cipher_Fixed_ParamsILm16ELm16ELm32ELm8ENS_11BlockCipherEE8key_specEv:
  246|  5.42k|      Key_Length_Specification key_spec() const final { return Key_Length_Specification(KMIN, KMAX, KMOD); }
_ZNK5Botan25Block_Cipher_Fixed_ParamsILm16ELm16ELm32ELm8ENS_11BlockCipherEE10block_sizeEv:
  240|   135k|      size_t block_size() const final { return BS; }

_ZN5Botan20Buffered_Computation6updateEPKhm:
   35|   389M|      void update(const uint8_t in[], size_t length) { add_data({in, length}); }
_ZN5Botan20Buffered_Computation6updateENSt3__14spanIKhLm18446744073709551615EEE:
   41|  1.33M|      void update(std::span<const uint8_t> in) { add_data(in); }
_ZN5Botan20Buffered_Computation6updateEh:
   90|  74.1k|      void update(uint8_t in) { add_data({&in, 1}); }
_ZN5Botan20Buffered_Computation5finalEPh:
   97|   694k|      void final(uint8_t out[]) { final_result({out, output_length()}); }
_ZN5Botan20Buffered_Computation12final_stdvecEv:
  114|  10.2k|      std::vector<uint8_t> final_stdvec() { return final<std::vector<uint8_t>>(); }
_ZN5Botan20Buffered_Computation5finalITkNS_8concepts21resizable_byte_bufferENSt3__16vectorIhNS3_9allocatorIhEEEEEET_v:
  104|  14.6k|      T final() {
  105|  14.6k|         T output(output_length());
  106|  14.6k|         final_result(output);
  107|  14.6k|         return output;
  108|  14.6k|      }
_ZN5Botan20Buffered_Computation5finalITkNS_8concepts21resizable_byte_bufferENSt3__16vectorIhNS_16secure_allocatorIhEEEEEET_v:
  104|  2.24k|      T final() {
  105|  2.24k|         T output(output_length());
  106|  2.24k|         final_result(output);
  107|  2.24k|         return output;
  108|  2.24k|      }
_ZN5Botan20Buffered_ComputationD2Ev:
  169|   263k|      virtual ~Buffered_Computation() = default;
_ZN5Botan20Buffered_Computation5finalITkNS_8concepts21resizable_byte_bufferENSt3__16vectorIhNS_16secure_allocatorIhEEEEEEvRT_:
  127|   109k|      void final(T& out) {
  128|   109k|         out.resize(output_length());
  129|   109k|         final_result(out);
  130|   109k|      }

_ZN5Botan11Cipher_Mode5startEPKhm:
  105|  1.01k|      void start(const uint8_t nonce[], size_t nonce_len) { start_msg(nonce, nonce_len); }
_ZN5Botan11Cipher_Mode6finishERNSt3__16vectorIhNS_16secure_allocatorIhEEEEm:
  185|    859|      void finish(secure_vector<uint8_t>& final_block, size_t offset = 0) { finish_msg(final_block, offset); }
_ZN5Botan11Cipher_Mode7processENSt3__14spanIhLm18446744073709551615EEE:
  132|   197k|      size_t process(std::span<uint8_t> msg) { return this->process_msg(msg.data(), msg.size()); }
_ZNK5Botan11Cipher_Mode23requires_entire_messageEv:
  239|    816|      virtual bool requires_entire_message() const { return false; }

_ZN5Botan8CurveGFp4swapERS0_:
   82|  18.4k|      void swap(CurveGFp& other) noexcept { std::swap(m_group, other.m_group); }
_ZN5Botan8CurveGFpC2Ev:
   75|  18.4k|      CurveGFp() = default;

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

_ZNK5Botan14EC_AffinePoint8xy_bytesITkNS_8concepts21resizable_byte_bufferENSt3__16vectorIhNS_16secure_allocatorIhEEEEEET_v:
  222|  4.39k|      T xy_bytes() const {
  223|  4.39k|         T bytes(2 * this->field_element_bytes());
  224|  4.39k|         this->serialize_xy_to(bytes);
  225|  4.39k|         return bytes;
  226|  4.39k|      }
_ZNK5Botan14EC_AffinePoint6_innerEv:
  337|  14.0k|      const EC_AffinePoint_Data& _inner() const { return inner(); }
_ZNK5Botan14EC_AffinePoint5innerEv:
  354|  73.6k|      const EC_AffinePoint_Data& inner() const { return *m_point; }

_ZN5Botan8EC_GroupC2EOS0_:
  238|  18.4k|      EC_Group(EC_Group&&) = default;
_ZNK5Botan8EC_Group5_dataEv:
  545|  60.5k|      const std::shared_ptr<EC_Group_Data>& _data() const { return m_data; }

_ZN5Botan8EC_PointaSEOS0_:
   75|  18.4k|      EC_Point& operator=(EC_Point&& other) noexcept {
   76|  18.4k|         if(this != &other) {
  ------------------
  |  Branch (76:13): [True: 18.4k, False: 0]
  ------------------
   77|  18.4k|            this->swap(other);
   78|  18.4k|         }
   79|  18.4k|         return (*this);
   80|  18.4k|      }
_ZN5Botan8EC_PointD2Ev:
   82|  36.8k|      ~EC_Point() = default;
_ZN5Botan8EC_PointC2Ev:
   49|  18.4k|      EC_Point() = default;

_ZNK5Botan9EC_Scalar10is_nonzeroEv:
  170|  32.3k|      bool is_nonzero() const { return !is_zero(); }
_ZN5BotanplERKNS_9EC_ScalarES2_:
  237|  4.37k|      friend EC_Scalar operator+(const EC_Scalar& x, const EC_Scalar& y) { return x.add(y); }
_ZN5BotanmiERKNS_9EC_ScalarES2_:
  239|  4.37k|      friend EC_Scalar operator-(const EC_Scalar& x, const EC_Scalar& y) { return x.sub(y); }
_ZN5BotanmlERKNS_9EC_ScalarES2_:
  241|  19.1k|      friend EC_Scalar operator*(const EC_Scalar& x, const EC_Scalar& y) { return x.mul(y); }
_ZNK5Botan9EC_Scalar6_innerEv:
  277|  41.9k|      const EC_Scalar_Data& _inner() const { return inner(); }
_ZNK5Botan9EC_Scalar5innerEv:
  291|   223k|      const EC_Scalar_Data& inner() const { return *m_scalar; }

_ZN5Botan12EC_PublicKeyD2Ev:
   42|  18.4k|      ~EC_PublicKey() override = default;

_ZN5Botan15ECDSA_PublicKeyC1ERKNS_8EC_GroupERKNS_14EC_AffinePointE:
   27|  9.63k|      ECDSA_PublicKey(const EC_Group& group, const EC_AffinePoint& public_key) : EC_PublicKey(group, public_key) {}

_ZN5Botan17Ed25519_PublicKeyC1ENSt3__14spanIKhLm18446744073709551615EEE:
   52|  4.09k|            Ed25519_PublicKey(pub.data(), pub.size()) {}

_ZNK5Botan9Exception4whatEv:
   94|  2.67k|      const char* what() const noexcept override { return m_msg.c_str(); }
_ZNK5Botan16Invalid_Argument10error_typeEv:
  158|  2.47k|      ErrorType error_type() const noexcept override { return ErrorType::InvalidArgument; }
_ZNK5Botan14Decoding_Error10error_typeEv:
  271|    200|      ErrorType error_type() const noexcept override { return ErrorType::DecodingFailure; }

_ZNK5Botan9HMAC_DRBG31max_number_of_bytes_per_requestEv:
  151|  15.6k|      size_t max_number_of_bytes_per_request() const override { return m_max_number_of_bytes_per_request; }

_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeERNSt3__15arrayImLm4EEETkNS1_16contiguous_rangeENS2_4spanIhLm32EEEQaasr3stdE23is_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|   516k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|   516k|   ranges::assert_equal_byte_lengths(out, in);
  178|   516k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|   516k|}
_ZN5Botan13typecast_copyINSt3__15arrayImLm4EEETkNS_6ranges16contiguous_rangeENS1_4spanIhLm32EEEQaaaasr3stdE26is_default_constructible_vIT_Esr3stdE23is_trivially_copyable_vIS7_Esr3stdE23is_trivially_copyable_vINS1_11conditionalIXsr21__is_primary_templateINS1_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS1_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS1_26indirectly_readable_traitsISF_EESG_E4type10value_typeEEEES7_RKSC_:
  210|   516k|inline constexpr ToT typecast_copy(const FromR& src) {
  211|   516k|   ToT dst;  // NOLINT(*-member-init)
  212|   516k|   typecast_copy(dst, src);
  213|   516k|   return dst;
  214|   516k|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeERNSt3__15arrayImLm4EEETkNS1_16contiguous_rangeENS2_4spanIKhLm32EEEQaasr3stdE23is_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|  1.18M|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  1.18M|   ranges::assert_equal_byte_lengths(out, in);
  178|  1.18M|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  1.18M|}
_ZN5Botan13typecast_copyINSt3__15arrayImLm4EEETkNS_6ranges16contiguous_rangeENS1_4spanIKhLm32EEEQaaaasr3stdE26is_default_constructible_vIT_Esr3stdE23is_trivially_copyable_vIS8_Esr3stdE23is_trivially_copyable_vINS1_11conditionalIXsr21__is_primary_templateINS1_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS1_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS1_26indirectly_readable_traitsISG_EESH_E4type10value_typeEEEES8_RKSD_:
  210|  1.18M|inline constexpr ToT typecast_copy(const FromR& src) {
  211|  1.18M|   ToT dst;  // NOLINT(*-member-init)
  212|  1.18M|   typecast_copy(dst, src);
  213|  1.18M|   return dst;
  214|  1.18M|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeENSt3__14spanIhLm32EEETkNS1_16contiguous_rangeENS2_5arrayImLm4EEEQaasr3stdE23is_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|   849k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|   849k|   ranges::assert_equal_byte_lengths(out, in);
  178|   849k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|   849k|}
_ZN5Botan7xor_bufITkNS_6ranges23contiguous_output_rangeIhEENSt3__14spanIhLm18446744073709551615EEETkNS1_16contiguous_rangeIhEENS4_IKhLm18446744073709551615EEEEEvOT_OT0_:
  404|  1.26M|                              ranges::contiguous_range<uint8_t> auto&& in) {
  405|  1.26M|   ranges::assert_equal_byte_lengths(out, in);
  406|       |
  407|  1.26M|   std::span<uint8_t> o(out);
  408|  1.26M|   std::span<const uint8_t> i(in);
  409|       |
  410|  1.77M|   for(; o.size_bytes() >= 32; o = o.subspan(32), i = i.subspan(32)) {
  ------------------
  |  Branch (410:10): [True: 516k, False: 1.26M]
  ------------------
  411|   516k|      auto x = typecast_copy<std::array<uint64_t, 4>>(o.template first<32>());
  412|   516k|      const auto y = typecast_copy<std::array<uint64_t, 4>>(i.template first<32>());
  413|       |
  414|   516k|      x[0] ^= y[0];
  415|   516k|      x[1] ^= y[1];
  416|   516k|      x[2] ^= y[2];
  417|   516k|      x[3] ^= y[3];
  418|       |
  419|   516k|      typecast_copy(o.template first<32>(), x);
  420|   516k|   }
  421|       |
  422|  13.8M|   for(size_t off = 0; off != o.size_bytes(); ++off) {
  ------------------
  |  Branch (422:24): [True: 12.5M, False: 1.26M]
  ------------------
  423|  12.5M|      o[off] ^= i[off];
  424|  12.5M|   }
  425|  1.26M|}
_ZN5Botan7xor_bufITkNS_6ranges23contiguous_output_rangeIhEENSt3__14spanIhLm18446744073709551615EEETkNS1_16contiguous_rangeIhEENS4_IKhLm18446744073709551615EEETkNS6_IhEES8_EEvOT_OT0_OT1_:
  435|   357k|                              ranges::contiguous_range<uint8_t> auto&& in2) {
  436|   357k|   ranges::assert_equal_byte_lengths(out, in1, in2);
  437|       |
  438|   357k|   std::span o{out};
  439|   357k|   std::span i1{in1};
  440|   357k|   std::span i2{in2};
  441|       |
  442|   690k|   for(; o.size_bytes() >= 32; o = o.subspan(32), i1 = i1.subspan(32), i2 = i2.subspan(32)) {
  ------------------
  |  Branch (442:10): [True: 332k, False: 357k]
  ------------------
  443|   332k|      auto x = typecast_copy<std::array<uint64_t, 4>>(i1.template first<32>());
  444|   332k|      const auto y = typecast_copy<std::array<uint64_t, 4>>(i2.template first<32>());
  445|       |
  446|   332k|      x[0] ^= y[0];
  447|   332k|      x[1] ^= y[1];
  448|   332k|      x[2] ^= y[2];
  449|   332k|      x[3] ^= y[3];
  450|       |
  451|   332k|      typecast_copy(o.template first<32>(), x);
  452|   332k|   }
  453|       |
  454|  3.45M|   for(size_t off = 0; off != o.size_bytes(); ++off) {
  ------------------
  |  Branch (454:24): [True: 3.09M, False: 357k]
  ------------------
  455|  3.09M|      o[off] = i1[off] ^ i2[off];
  456|  3.09M|   }
  457|   357k|}
_ZN5Botan11clear_bytesEPvm:
  101|   537k|inline constexpr void clear_bytes(void* ptr, size_t bytes) {
  102|   537k|   if(bytes > 0) {
  ------------------
  |  Branch (102:7): [True: 449k, False: 88.6k]
  ------------------
  103|   449k|      std::memset(ptr, 0, bytes);
  104|   449k|   }
  105|   537k|}
_ZN5Botan7xor_bufEPhPKhm:
  465|   370k|inline void xor_buf(uint8_t out[], const uint8_t in[], size_t length) {
  466|       |   // simply assumes that *out and *in point to "length" allocated bytes at least
  467|   370k|   xor_buf(std::span{out, length}, std::span{in, length});
  468|   370k|}
_ZN5Botan7xor_bufEPhPKhS2_m:
  477|   357k|inline void xor_buf(uint8_t out[], const uint8_t in[], const uint8_t in2[], size_t length) {
  478|       |   // simply assumes that *out, *in, and *in2 point to "length" allocated bytes at least
  479|   357k|   xor_buf(std::span{out, length}, std::span{in, length}, std::span{in2, length});
  480|   357k|}
_ZN5Botan7xor_bufENSt3__14spanIhLm18446744073709551615EEENS1_IKhLm18446744073709551615EEEm:
  489|   891k|inline void xor_buf(std::span<uint8_t> out, std::span<const uint8_t> in, size_t n) {
  490|   891k|   BOTAN_ARG_CHECK(out.size() >= n, "output span is too small");
  ------------------
  |  |   35|   891k|   do {                                                          \
  |  |   36|   891k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|   891k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 891k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|   891k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 891k]
  |  |  ------------------
  ------------------
  491|   891k|   BOTAN_ARG_CHECK(in.size() >= n, "input span is too small");
  ------------------
  |  |   35|   891k|   do {                                                          \
  |  |   36|   891k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|   891k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 891k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|   891k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 891k]
  |  |  ------------------
  ------------------
  492|   891k|   xor_buf(out.first(n), in.first(n));
  493|   891k|}
_ZN5Botan8copy_memIhQsr3stdE12is_trivial_vIu7__decayIT_EEEEvPS1_PKS1_m:
  144|   610k|inline constexpr void copy_mem(T* out, const T* in, size_t n) {
  145|   610k|   BOTAN_ASSERT_IMPLICATION(n > 0, in != nullptr && out != nullptr, "If n > 0 then args are not null");
  ------------------
  |  |  103|   610k|   do {                                                                                          \
  |  |  104|   610k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                              \
  |  |  105|   951k|      if((expr1) && !(expr2)) {                                                                  \
  |  |  ------------------
  |  |  |  Branch (105:10): [True: 475k, False: 135k]
  |  |  |  Branch (105:23): [True: 475k, False: 0]
  |  |  |  Branch (105:23): [True: 475k, False: 0]
  |  |  ------------------
  |  |  106|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                                     \
  |  |  107|      0|         Botan::assertion_failure(#expr1 " implies " #expr2, msg, __func__, __FILE__, __LINE__); \
  |  |  108|      0|      }                                                                                          \
  |  |  109|   610k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (109:12): [Folded, False: 610k]
  |  |  ------------------
  ------------------
  146|       |
  147|   610k|   if(in != nullptr && out != nullptr && n > 0) {
  ------------------
  |  Branch (147:7): [True: 610k, False: 707]
  |  Branch (147:24): [True: 610k, False: 0]
  |  Branch (147:42): [True: 475k, False: 134k]
  ------------------
  148|   475k|      std::memmove(out, in, sizeof(T) * n);
  149|   475k|   }
  150|   610k|}
_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|   224k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromT& in) {
  200|   224k|   typecast_copy(out, std::span<const FromT, 1>(&in, 1));
  201|   224k|}
_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|   224k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|   224k|   ranges::assert_equal_byte_lengths(out, in);
  178|   224k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|   224k|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeERKNSt3__14spanIhLm4EEEjQaaaasr3stdE23is_trivially_copyable_vIT0_Entsr3std6rangesE5rangeIS7_Esr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISF_EESG_E4type10value_typeEEEEvOSC_RKS7_:
  199|  7.10M|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromT& in) {
  200|  7.10M|   typecast_copy(out, std::span<const FromT, 1>(&in, 1));
  201|  7.10M|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeERKNSt3__14spanIhLm4EEETkNS1_16contiguous_rangeENS3_IKjLm1EEEQaasr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISG_EESH_E4type10value_typeEEsr3stdE23is_trivially_copyable_vINS9_IXsr21__is_primary_templateINSA_Iu14__remove_cvrefIDTclL_ZNSC_5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENSI_ISQ_EESR_E4type10value_typeEEEEvOSN_RKSD_:
  176|  7.10M|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  7.10M|   ranges::assert_equal_byte_lengths(out, in);
  178|  7.10M|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  7.10M|}
_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|  6.42M|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromT& in) {
  200|  6.42M|   typecast_copy(out, std::span<const FromT, 1>(&in, 1));
  201|  6.42M|}
_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|  6.42M|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  6.42M|   ranges::assert_equal_byte_lengths(out, in);
  178|  6.42M|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  6.42M|}
_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|   331M|inline constexpr ToT typecast_copy(const FromR& src) {
  211|   331M|   ToT dst;  // NOLINT(*-member-init)
  212|   331M|   typecast_copy(dst, src);
  213|   331M|   return dst;
  214|   331M|}
_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|   331M|inline constexpr void typecast_copy(ToT& out, const FromR& in) {
  189|   331M|   typecast_copy(std::span<ToT, 1>(&out, 1), in);
  190|   331M|}
_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|   331M|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|   331M|   ranges::assert_equal_byte_lengths(out, in);
  178|   331M|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|   331M|}
_ZN5Botan8copy_memIjQsr3stdE12is_trivial_vIu7__decayIT_EEEEvPS1_PKS1_m:
  144|  2.93k|inline constexpr void copy_mem(T* out, const T* in, size_t n) {
  145|  2.93k|   BOTAN_ASSERT_IMPLICATION(n > 0, in != nullptr && out != nullptr, "If n > 0 then args are not null");
  ------------------
  |  |  103|  2.93k|   do {                                                                                          \
  |  |  104|  2.93k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                              \
  |  |  105|  5.86k|      if((expr1) && !(expr2)) {                                                                  \
  |  |  ------------------
  |  |  |  Branch (105:10): [True: 2.93k, False: 0]
  |  |  |  Branch (105:23): [True: 2.93k, False: 0]
  |  |  |  Branch (105:23): [True: 2.93k, False: 0]
  |  |  ------------------
  |  |  106|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                                     \
  |  |  107|      0|         Botan::assertion_failure(#expr1 " implies " #expr2, msg, __func__, __FILE__, __LINE__); \
  |  |  108|      0|      }                                                                                          \
  |  |  109|  2.93k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (109:12): [Folded, False: 2.93k]
  |  |  ------------------
  ------------------
  146|       |
  147|  2.93k|   if(in != nullptr && out != nullptr && n > 0) {
  ------------------
  |  Branch (147:7): [True: 2.93k, False: 0]
  |  Branch (147:24): [True: 2.93k, False: 0]
  |  Branch (147:42): [True: 2.93k, False: 0]
  ------------------
  148|  2.93k|      std::memmove(out, in, sizeof(T) * n);
  149|  2.93k|   }
  150|  2.93k|}
_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|   104M|inline constexpr ToT typecast_copy(const FromR& src) {
  211|   104M|   ToT dst;  // NOLINT(*-member-init)
  212|   104M|   typecast_copy(dst, src);
  213|   104M|   return dst;
  214|   104M|}
_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|   104M|inline constexpr void typecast_copy(ToT& out, const FromR& in) {
  189|   104M|   typecast_copy(std::span<ToT, 1>(&out, 1), in);
  190|   104M|}
_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|   104M|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|   104M|   ranges::assert_equal_byte_lengths(out, in);
  178|   104M|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|   104M|}
_ZN5Botan13typecast_copyItTkNS_6ranges16contiguous_rangeENSt3__14spanIKhLm2EEEQaaaasr3stdE26is_default_constructible_vIT_Esr3stdE23is_trivially_copyable_vIS6_Esr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISE_EESF_E4type10value_typeEEEES6_RKSB_:
  210|   224k|inline constexpr ToT typecast_copy(const FromR& src) {
  211|   224k|   ToT dst;  // NOLINT(*-member-init)
  212|   224k|   typecast_copy(dst, src);
  213|   224k|   return dst;
  214|   224k|}
_ZN5Botan13typecast_copyItTkNS_6ranges16contiguous_rangeENSt3__14spanIKhLm2EEEQaaaasr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISD_EESE_E4type10value_typeEEsr3stdE23is_trivially_copyable_vIT_Entsr3std6rangesE5rangeISK_EEEvRSK_RKSA_:
  188|   224k|inline constexpr void typecast_copy(ToT& out, const FromR& in) {
  189|   224k|   typecast_copy(std::span<ToT, 1>(&out, 1), in);
  190|   224k|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeENSt3__14spanItLm1EEETkNS1_16contiguous_rangeENS3_IKhLm2EEEQaasr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISE_EESF_E4type10value_typeEEsr3stdE23is_trivially_copyable_vINS7_IXsr21__is_primary_templateINS8_Iu14__remove_cvrefIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENSG_ISO_EESP_E4type10value_typeEEEEvOSL_RKSB_:
  176|   224k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|   224k|   ranges::assert_equal_byte_lengths(out, in);
  178|   224k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|   224k|}
_ZN5Botan9clear_memIhEEvPT_m:
  118|   378k|inline constexpr void clear_mem(T* ptr, size_t n) {
  119|   378k|   clear_bytes(ptr, sizeof(T) * n);
  120|   378k|}
_ZN5Botan8copy_memITkNS_6ranges23contiguous_output_rangeERNSt3__16vectorIhNS_16secure_allocatorIhEEEETkNS1_16contiguous_rangeENS2_4spanIKhLm18446744073709551615EEEQaasr3stdE9is_same_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISI_EESJ_E4type10value_typeENSB_IXsr21__is_primary_templateINSC_Iu14__remove_cvrefIDTclL_ZNSE_5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENSK_ISS_EEST_E4type10value_typeEEsr3stdE23is_trivially_copyable_vISX_EEEvOSF_RKSP_:
  160|   198k|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|   198k|   ranges::assert_equal_byte_lengths(out, in);
  162|   198k|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 198k]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|   198k|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 198k, False: 0]
  ------------------
  165|   198k|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|   198k|   }
  167|   198k|}
_ZN5Botan8copy_memITkNS_6ranges23contiguous_output_rangeENSt3__14spanIhLm18446744073709551615EEETkNS1_16contiguous_rangeES4_Qaasr3stdE9is_same_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISC_EESD_E4type10value_typeENS5_IXsr21__is_primary_templateINS6_Iu14__remove_cvrefIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENSE_ISM_EESN_E4type10value_typeEEsr3stdE23is_trivially_copyable_vISR_EEEvOS9_RKSJ_:
  160|   197k|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|   197k|   ranges::assert_equal_byte_lengths(out, in);
  162|   197k|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 197k]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|   197k|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 197k, False: 0]
  ------------------
  165|   197k|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|   197k|   }
  167|   197k|}
_ZN5Botan8copy_memImQsr3stdE12is_trivial_vIu7__decayIT_EEEEvPS1_PKS1_m:
  144|  43.9M|inline constexpr void copy_mem(T* out, const T* in, size_t n) {
  145|  43.9M|   BOTAN_ASSERT_IMPLICATION(n > 0, in != nullptr && out != nullptr, "If n > 0 then args are not null");
  ------------------
  |  |  103|  43.9M|   do {                                                                                          \
  |  |  104|  43.9M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                              \
  |  |  105|  87.9M|      if((expr1) && !(expr2)) {                                                                  \
  |  |  ------------------
  |  |  |  Branch (105:10): [True: 43.9M, False: 0]
  |  |  |  Branch (105:23): [True: 43.9M, False: 0]
  |  |  |  Branch (105:23): [True: 43.9M, False: 0]
  |  |  ------------------
  |  |  106|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                                     \
  |  |  107|      0|         Botan::assertion_failure(#expr1 " implies " #expr2, msg, __func__, __FILE__, __LINE__); \
  |  |  108|      0|      }                                                                                          \
  |  |  109|  43.9M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (109:12): [Folded, False: 43.9M]
  |  |  ------------------
  ------------------
  146|       |
  147|  43.9M|   if(in != nullptr && out != nullptr && n > 0) {
  ------------------
  |  Branch (147:7): [True: 43.9M, False: 0]
  |  Branch (147:24): [True: 43.9M, False: 0]
  |  Branch (147:42): [True: 43.9M, False: 0]
  ------------------
  148|  43.9M|      std::memmove(out, in, sizeof(T) * n);
  149|  43.9M|   }
  150|  43.9M|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeERNSt3__14spanImLm18446744073709551615EEETkNS1_16contiguous_rangeENS3_IKhLm18446744073709551615EEEQaasr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISF_EESG_E4type10value_typeEEsr3stdE23is_trivially_copyable_vINS8_IXsr21__is_primary_templateINS9_Iu14__remove_cvrefIDTclL_ZNSB_5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENSH_ISP_EESQ_E4type10value_typeEEEEvOSM_RKSC_:
  176|  1.10M|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  1.10M|   ranges::assert_equal_byte_lengths(out, in);
  178|  1.10M|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  1.10M|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeERNSt3__14spanIhLm18446744073709551615EEETkNS1_16contiguous_rangeENS3_IKmLm18446744073709551615EEEQaasr3stdE23is_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|   550k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|   550k|   ranges::assert_equal_byte_lengths(out, in);
  178|   550k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|   550k|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeERNSt3__14spanIjLm18446744073709551615EEETkNS1_16contiguous_rangeENS3_IKhLm18446744073709551615EEEQaasr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISF_EESG_E4type10value_typeEEsr3stdE23is_trivially_copyable_vINS8_IXsr21__is_primary_templateINS9_Iu14__remove_cvrefIDTclL_ZNSB_5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENSH_ISP_EESQ_E4type10value_typeEEEEvOSM_RKSC_:
  176|  1.65M|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  1.65M|   ranges::assert_equal_byte_lengths(out, in);
  178|  1.65M|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  1.65M|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeERNSt3__15arrayIjLm16EEETkNS1_16contiguous_rangeENS2_4spanIKhLm64EEEQaasr3stdE23is_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|  29.8M|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  29.8M|   ranges::assert_equal_byte_lengths(out, in);
  178|  29.8M|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  29.8M|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeERNSt3__14spanIhLm18446744073709551615EEETkNS1_16contiguous_rangeENS3_IKjLm18446744073709551615EEEQaasr3stdE23is_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|  24.9k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  24.9k|   ranges::assert_equal_byte_lengths(out, in);
  178|  24.9k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  24.9k|}
_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|  4.39k|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|  4.39k|   ranges::assert_equal_byte_lengths(out, in);
  162|  4.39k|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 4.39k]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|  4.39k|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 4.39k, False: 0]
  ------------------
  165|  4.39k|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|  4.39k|   }
  167|  4.39k|}
_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|   139k|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|   139k|   ranges::assert_equal_byte_lengths(out, in);
  162|   139k|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 139k]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|   139k|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 139k, False: 0]
  ------------------
  165|   139k|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|   139k|   }
  167|   139k|}
_ZN5Botan9clear_memImEEvPT_m:
  118|   142k|inline constexpr void clear_mem(T* ptr, size_t n) {
  119|   142k|   clear_bytes(ptr, sizeof(T) * n);
  120|   142k|}
_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|  34.1M|inline constexpr ToT typecast_copy(const FromR& src) {
  211|  34.1M|   ToT dst;  // NOLINT(*-member-init)
  212|  34.1M|   typecast_copy(dst, src);
  213|  34.1M|   return dst;
  214|  34.1M|}
_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|  34.1M|inline constexpr void typecast_copy(ToT& out, const FromR& in) {
  189|  34.1M|   typecast_copy(std::span<ToT, 1>(&out, 1), in);
  190|  34.1M|}
_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|  34.1M|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  34.1M|   ranges::assert_equal_byte_lengths(out, in);
  178|  34.1M|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  34.1M|}
_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|  15.6k|{
  133|  15.6k|   clear_bytes(std::ranges::data(mem), ranges::size_bytes(mem));
  134|  15.6k|}
_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|  5.92k|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|  5.92k|   ranges::assert_equal_byte_lengths(out, in);
  162|  5.92k|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 5.92k]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|  5.92k|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 5.92k, False: 0]
  ------------------
  165|  5.92k|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|  5.92k|   }
  167|  5.92k|}
_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|   135k|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|   135k|   ranges::assert_equal_byte_lengths(out, in);
  162|   135k|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 135k]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|   135k|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 135k, False: 0]
  ------------------
  165|   135k|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|   135k|   }
  167|   135k|}
_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|  51.5k|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|  51.5k|   ranges::assert_equal_byte_lengths(out, in);
  162|  51.5k|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 51.5k]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|  51.5k|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 51.5k, False: 0]
  ------------------
  165|  51.5k|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|  51.5k|   }
  167|  51.5k|}
_ZN5Botan9clear_memITkNS_6ranges23contiguous_output_rangeENSt3__14spanIhLm18446744073709551615EEEEEvOT_Qsr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRS5_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISD_EESE_E4type10value_typeEE:
  132|    859|{
  133|    859|   clear_bytes(std::ranges::data(mem), ranges::size_bytes(mem));
  134|    859|}
_ZN5BotaneOINS_16secure_allocatorIhEES2_EERNSt3__16vectorIhT_EES7_RKNS4_IhT0_EE:
  532|  2.45k|std::vector<uint8_t, Alloc>& operator^=(std::vector<uint8_t, Alloc>& out, const std::vector<uint8_t, Alloc2>& in) {
  533|  2.45k|   if(out.size() < in.size()) {
  ------------------
  |  Branch (533:7): [True: 0, False: 2.45k]
  ------------------
  534|      0|      out.resize(in.size());
  535|      0|   }
  536|       |
  537|  2.45k|   xor_buf(std::span{out}.first(in.size()), in);
  538|  2.45k|   return out;
  539|  2.45k|}
_ZN5Botan7xor_bufITkNS_6ranges23contiguous_output_rangeIhEENSt3__14spanIhLm18446744073709551615EEETkNS1_16contiguous_rangeIhEERKNS3_6vectorIhNS_16secure_allocatorIhEEEEEEvOT_OT0_:
  404|  2.45k|                              ranges::contiguous_range<uint8_t> auto&& in) {
  405|  2.45k|   ranges::assert_equal_byte_lengths(out, in);
  406|       |
  407|  2.45k|   std::span<uint8_t> o(out);
  408|  2.45k|   std::span<const uint8_t> i(in);
  409|       |
  410|  2.45k|   for(; o.size_bytes() >= 32; o = o.subspan(32), i = i.subspan(32)) {
  ------------------
  |  Branch (410:10): [True: 0, False: 2.45k]
  ------------------
  411|      0|      auto x = typecast_copy<std::array<uint64_t, 4>>(o.template first<32>());
  412|      0|      const auto y = typecast_copy<std::array<uint64_t, 4>>(i.template first<32>());
  413|       |
  414|      0|      x[0] ^= y[0];
  415|      0|      x[1] ^= y[1];
  416|      0|      x[2] ^= y[2];
  417|      0|      x[3] ^= y[3];
  418|       |
  419|      0|      typecast_copy(o.template first<32>(), x);
  420|      0|   }
  421|       |
  422|  36.4k|   for(size_t off = 0; off != o.size_bytes(); ++off) {
  ------------------
  |  Branch (422:24): [True: 34.0k, False: 2.45k]
  ------------------
  423|  34.0k|      o[off] ^= i[off];
  424|  34.0k|   }
  425|  2.45k|}
_ZN5Botan19secure_scrub_memoryITkNS_6ranges23contiguous_output_rangeERNSt3__15arrayIhLm16EEEEEvOT_:
   59|    407|void secure_scrub_memory(ranges::contiguous_output_range auto&& data) {
   60|    407|   secure_scrub_memory(std::ranges::data(data), ranges::size_bytes(data));
   61|    407|}
_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|   446k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|   446k|   ranges::assert_equal_byte_lengths(out, in);
  178|   446k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|   446k|}
_ZN5Botan8copy_memITkNS_6ranges23contiguous_output_rangeERNS_10StrongSpanINS_6StrongINSt3__16vectorIhNS4_9allocatorIhEEEENS_16SphincsTreeNode_EJEEEEETkNS1_16contiguous_rangeESA_Qaasr3stdE9is_same_vINS4_11conditionalIXsr21__is_primary_templateINS4_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS4_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS4_26indirectly_readable_traitsISK_EESL_E4type10value_typeENSD_IXsr21__is_primary_templateINSE_Iu14__remove_cvrefIDTclL_ZNSG_5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENSM_ISU_EESV_E4type10value_typeEEsr3stdE23is_trivially_copyable_vISZ_EEEvOSH_RKSR_:
  160|  1.45k|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|  1.45k|   ranges::assert_equal_byte_lengths(out, in);
  162|  1.45k|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 1.45k]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|  1.45k|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 1.45k, False: 0]
  ------------------
  165|  1.45k|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|  1.45k|   }
  167|  1.45k|}
_ZN5Botan8copy_memITkNS_6ranges23contiguous_output_rangeERNSt3__15arrayIhLm16EEETkNS1_16contiguous_rangeENS2_4spanIKhLm18446744073709551615EEEQaasr3stdE9is_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|    139|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|    139|   ranges::assert_equal_byte_lengths(out, in);
  162|    139|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 139]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|    139|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 139, False: 0]
  ------------------
  165|    139|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|    139|   }
  167|    139|}
_ZN5Botan8copy_memITkNS_6ranges23contiguous_output_rangeERNSt3__15arrayIhLm16EEETkNS1_16contiguous_rangeES4_Qaasr3stdE9is_same_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISD_EESE_E4type10value_typeENS6_IXsr21__is_primary_templateINS7_Iu14__remove_cvrefIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENSF_ISN_EESO_E4type10value_typeEEsr3stdE23is_trivially_copyable_vISS_EEEvOSA_RKSK_:
  160|    139|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|    139|   ranges::assert_equal_byte_lengths(out, in);
  162|    139|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 139]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|    139|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 139, False: 0]
  ------------------
  165|    139|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|    139|   }
  167|    139|}
_ZN5Botan7xor_bufITkNS_6ranges23contiguous_output_rangeIhEERNSt3__14spanIhLm18446744073709551615EEETkNS1_16contiguous_rangeIhEES5_TkNS7_IhEES5_EEvOT_OT0_OT1_:
  435|    126|                              ranges::contiguous_range<uint8_t> auto&& in2) {
  436|    126|   ranges::assert_equal_byte_lengths(out, in1, in2);
  437|       |
  438|    126|   std::span o{out};
  439|    126|   std::span i1{in1};
  440|    126|   std::span i2{in2};
  441|       |
  442|    126|   for(; o.size_bytes() >= 32; o = o.subspan(32), i1 = i1.subspan(32), i2 = i2.subspan(32)) {
  ------------------
  |  Branch (442:10): [True: 0, False: 126]
  ------------------
  443|      0|      auto x = typecast_copy<std::array<uint64_t, 4>>(i1.template first<32>());
  444|      0|      const auto y = typecast_copy<std::array<uint64_t, 4>>(i2.template first<32>());
  445|       |
  446|      0|      x[0] ^= y[0];
  447|      0|      x[1] ^= y[1];
  448|      0|      x[2] ^= y[2];
  449|      0|      x[3] ^= y[3];
  450|       |
  451|      0|      typecast_copy(o.template first<32>(), x);
  452|      0|   }
  453|       |
  454|  2.14k|   for(size_t off = 0; off != o.size_bytes(); ++off) {
  ------------------
  |  Branch (454:24): [True: 2.01k, False: 126]
  ------------------
  455|  2.01k|      o[off] = i1[off] ^ i2[off];
  456|  2.01k|   }
  457|    126|}

_ZN5Botan18RFC4880_S2K_FamilyC2ENSt3__110unique_ptrINS_12HashFunctionENS1_14default_deleteIS3_EEEE:
  106|  59.3k|      BOTAN_FUTURE_EXPLICIT RFC4880_S2K_Family(std::unique_ptr<HashFunction> hash) : m_hash(std::move(hash)) {}

_ZNK5Botan14Asymmetric_Key40_signature_element_size_for_DER_encodingEv:
  144|  8.49k|      virtual std::optional<size_t> _signature_element_size_for_DER_encoding() const { return {}; }
_ZN5Botan14Asymmetric_KeyD2Ev:
   62|  27.6k|      virtual ~Asymmetric_Key() = default;

_ZN5Botan6PK_Ops12VerificationD2Ev:
  102|  23.0k|      virtual ~Verification() = default;

_ZN5Botan12PasswordHashD2Ev:
   31|  60.0k|      virtual ~PasswordHash() = default;
_ZN5Botan18PasswordHashFamilyD2Ev:
  213|  60.0k|      virtual ~PasswordHashFamily() = default;

_ZN5Botan6ranges24assert_exact_byte_lengthILm32ETkNS0_14spanable_rangeENSt3__14spanIhLm32EEEEEvRKT0_:
   77|   679k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|   679k|   const std::span s{r};
   79|   679k|   if constexpr(statically_spanable_range<R>) {
   80|   679k|      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|   679k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__15arrayImLm4EEETpTkNS0_14spanable_rangeEJNS2_4spanIhLm32EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|   516k|{
  101|   516k|   const std::span s0{r0};
  102|       |
  103|   516k|   if constexpr(statically_spanable_range<R0>) {
  104|   516k|      constexpr size_t expected_size = s0.size_bytes();
  105|   516k|      (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|   516k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__15arrayImLm4EEEEEmRKT_:
   59|  1.69M|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  1.69M|   return std::span{r}.size_bytes();
   61|  1.69M|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm32ETkNS0_14spanable_rangeENSt3__14spanIKhLm32EEEEEvRKT0_:
   77|  1.30M|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  1.30M|   const std::span s{r};
   79|  1.30M|   if constexpr(statically_spanable_range<R>) {
   80|  1.30M|      static_assert(s.size_bytes() == expected, "memory region does not have expected byte lengths");
   81|       |   } else {
   82|       |      if(s.size_bytes() != expected) {
   83|       |         memory_region_size_violation();
   84|       |      }
   85|       |   }
   86|  1.30M|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__15arrayImLm4EEETpTkNS0_14spanable_rangeEJNS2_4spanIKhLm32EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  1.18M|{
  101|  1.18M|   const std::span s0{r0};
  102|       |
  103|  1.18M|   if constexpr(statically_spanable_range<R0>) {
  104|  1.18M|      constexpr size_t expected_size = s0.size_bytes();
  105|  1.18M|      (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.18M|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm32ETkNS0_14spanable_rangeENSt3__15arrayImLm4EEEEEvRKT0_:
   77|  1.01M|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  1.01M|   const std::span s{r};
   79|  1.01M|   if constexpr(statically_spanable_range<R>) {
   80|  1.01M|      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.01M|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm32EEETpTkNS0_14spanable_rangeEJNS2_5arrayImLm4EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|   965k|{
  101|   965k|   const std::span s0{r0};
  102|       |
  103|   965k|   if constexpr(statically_spanable_range<R0>) {
  104|   965k|      constexpr size_t expected_size = s0.size_bytes();
  105|   965k|      (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|   965k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIhLm32EEEEEmRKT_:
   59|   849k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|   849k|   return std::span{r}.size_bytes();
   61|   849k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm18446744073709551615EEETpTkNS0_14spanable_rangeEJNS3_IKhLm18446744073709551615EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  1.40M|{
  101|  1.40M|   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.40M|   } else {
  107|  1.40M|      const size_t expected_size = s0.size_bytes();
  108|  1.40M|      const bool correct_size =
  109|  1.40M|         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|  1.40M|      if(!correct_size) {
  ------------------
  |  Branch (111:10): [True: 0, False: 1.40M]
  ------------------
  112|      0|         memory_region_size_violation();
  113|      0|      }
  114|  1.40M|   }
  115|  1.40M|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm18446744073709551615EEETpTkNS0_14spanable_rangeEJNS3_IKhLm18446744073709551615EEES6_EEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|   357k|{
  101|   357k|   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|   357k|   } else {
  107|   357k|      const size_t expected_size = s0.size_bytes();
  108|   357k|      const bool correct_size =
  109|   715k|         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  ------------------
  |  Branch (109:11): [True: 357k, False: 0]
  |  Branch (109:11): [True: 357k, False: 0]
  ------------------
  110|       |
  111|   357k|      if(!correct_size) {
  ------------------
  |  Branch (111:10): [True: 0, False: 357k]
  ------------------
  112|      0|         memory_region_size_violation();
  113|      0|      }
  114|   357k|   }
  115|   357k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm2ETkNS0_14spanable_rangeENSt3__14spanIhLm2EEEEEvRKT0_:
   77|   224k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|   224k|   const std::span s{r};
   79|   224k|   if constexpr(statically_spanable_range<R>) {
   80|   224k|      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|   224k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm2EEETpTkNS0_14spanable_rangeEJNS3_IKtLm1EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|   224k|{
  101|   224k|   const std::span s0{r0};
  102|       |
  103|   224k|   if constexpr(statically_spanable_range<R0>) {
  104|   224k|      constexpr size_t expected_size = s0.size_bytes();
  105|   224k|      (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|   224k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm2ETkNS0_14spanable_rangeENSt3__14spanIKtLm1EEEEEvRKT0_:
   77|   224k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|   224k|   const std::span s{r};
   79|   224k|   if constexpr(statically_spanable_range<R>) {
   80|   224k|      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|   224k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIhLm2EEEEEmRKT_:
   59|   224k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|   224k|   return std::span{r}.size_bytes();
   61|   224k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm4ETkNS0_14spanable_rangeENSt3__14spanIhLm4EEEEEvRKT0_:
   77|  9.60M|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  9.60M|   const std::span s{r};
   79|  9.60M|   if constexpr(statically_spanable_range<R>) {
   80|  9.60M|      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.60M|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm4EEETpTkNS0_14spanable_rangeEJNS3_IKjLm1EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  7.10M|{
  101|  7.10M|   const std::span s0{r0};
  102|       |
  103|  7.10M|   if constexpr(statically_spanable_range<R0>) {
  104|  7.10M|      constexpr size_t expected_size = s0.size_bytes();
  105|  7.10M|      (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.10M|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm4ETkNS0_14spanable_rangeENSt3__14spanIKjLm1EEEEEvRKT0_:
   77|  7.10M|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  7.10M|   const std::span s{r};
   79|  7.10M|   if constexpr(statically_spanable_range<R>) {
   80|  7.10M|      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.10M|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIhLm4EEEEEmRKT_:
   59|  7.10M|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  7.10M|   return std::span{r}.size_bytes();
   61|  7.10M|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm8ETkNS0_14spanable_rangeENSt3__14spanIhLm8EEEEEvRKT0_:
   77|  43.9M|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  43.9M|   const std::span s{r};
   79|  43.9M|   if constexpr(statically_spanable_range<R>) {
   80|  43.9M|      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.9M|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm8EEETpTkNS0_14spanable_rangeEJNS3_IKmLm1EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  6.42M|{
  101|  6.42M|   const std::span s0{r0};
  102|       |
  103|  6.42M|   if constexpr(statically_spanable_range<R0>) {
  104|  6.42M|      constexpr size_t expected_size = s0.size_bytes();
  105|  6.42M|      (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.42M|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm8ETkNS0_14spanable_rangeENSt3__14spanIKmLm1EEEEEvRKT0_:
   77|  6.42M|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  6.42M|   const std::span s{r};
   79|  6.42M|   if constexpr(statically_spanable_range<R>) {
   80|  6.42M|      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.42M|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIhLm8EEEEEmRKT_:
   59|  6.42M|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  6.42M|   return std::span{r}.size_bytes();
   61|  6.42M|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIjLm18446744073709551615EEETpTkNS0_14spanable_rangeEJNS3_IKhLm18446744073709551615EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  3.64M|{
  101|  3.64M|   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|  3.64M|   } else {
  107|  3.64M|      const size_t expected_size = s0.size_bytes();
  108|  3.64M|      const bool correct_size =
  109|  3.64M|         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|  3.64M|      if(!correct_size) {
  ------------------
  |  Branch (111:10): [True: 0, False: 3.64M]
  ------------------
  112|      0|         memory_region_size_violation();
  113|      0|      }
  114|  3.64M|   }
  115|  3.64M|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm4ETkNS0_14spanable_rangeENSt3__14spanIKhLm4EEEEEvRKT0_:
   77|   663M|inline constexpr void assert_exact_byte_length(const R& r) {
   78|   663M|   const std::span s{r};
   79|   663M|   if constexpr(statically_spanable_range<R>) {
   80|   663M|      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|   663M|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIjLm1EEETpTkNS0_14spanable_rangeEJNS3_IKhLm4EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|   331M|{
  101|   331M|   const std::span s0{r0};
  102|       |
  103|   331M|   if constexpr(statically_spanable_range<R0>) {
  104|   331M|      constexpr size_t expected_size = s0.size_bytes();
  105|   331M|      (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|   331M|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIjLm1EEEEEmRKT_:
   59|   331M|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|   331M|   return std::span{r}.size_bytes();
   61|   331M|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm18446744073709551615EEETpTkNS0_14spanable_rangeEJNS3_IKjLm18446744073709551615EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|   453k|{
  101|   453k|   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|   453k|   } else {
  107|   453k|      const size_t expected_size = s0.size_bytes();
  108|   453k|      const bool correct_size =
  109|   453k|         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|   453k|      if(!correct_size) {
  ------------------
  |  Branch (111:10): [True: 0, False: 453k]
  ------------------
  112|      0|         memory_region_size_violation();
  113|      0|      }
  114|   453k|   }
  115|   453k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm8ETkNS0_14spanable_rangeENSt3__14spanIKhLm8EEEEEvRKT0_:
   77|   209M|inline constexpr void assert_exact_byte_length(const R& r) {
   78|   209M|   const std::span s{r};
   79|   209M|   if constexpr(statically_spanable_range<R>) {
   80|   209M|      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|   209M|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanImLm1EEETpTkNS0_14spanable_rangeEJNS3_IKhLm8EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|   104M|{
  101|   104M|   const std::span s0{r0};
  102|       |
  103|   104M|   if constexpr(statically_spanable_range<R0>) {
  104|   104M|      constexpr size_t expected_size = s0.size_bytes();
  105|   104M|      (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|   104M|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanImLm1EEEEEmRKT_:
   59|   138M|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|   138M|   return std::span{r}.size_bytes();
   61|   138M|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm16ETkNS0_14spanable_rangeENSt3__14spanIhLm16EEEEEvRKT0_:
   77|  1.10M|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  1.10M|   const std::span s{r};
   79|  1.10M|   if constexpr(statically_spanable_range<R>) {
   80|  1.10M|      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.10M|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm16ETkNS0_14spanable_rangeENSt3__14spanIKhLm16EEEEEvRKT0_:
   77|   330k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|   330k|   const std::span s{r};
   79|   330k|   if constexpr(statically_spanable_range<R>) {
   80|   330k|      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|   330k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanImLm18446744073709551615EEETpTkNS0_14spanable_rangeEJNS3_IKhLm18446744073709551615EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  2.41M|{
  101|  2.41M|   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.41M|   } else {
  107|  2.41M|      const size_t expected_size = s0.size_bytes();
  108|  2.41M|      const bool correct_size =
  109|  2.41M|         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|  2.41M|      if(!correct_size) {
  ------------------
  |  Branch (111:10): [True: 0, False: 2.41M]
  ------------------
  112|      0|         memory_region_size_violation();
  113|      0|      }
  114|  2.41M|   }
  115|  2.41M|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm2ETkNS0_14spanable_rangeENSt3__14spanIKhLm2EEEEEvRKT0_:
   77|   449k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|   449k|   const std::span s{r};
   79|   449k|   if constexpr(statically_spanable_range<R>) {
   80|   449k|      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|   449k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanItLm1EEETpTkNS0_14spanable_rangeEJNS3_IKhLm2EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|   224k|{
  101|   224k|   const std::span s0{r0};
  102|       |
  103|   224k|   if constexpr(statically_spanable_range<R0>) {
  104|   224k|      constexpr size_t expected_size = s0.size_bytes();
  105|   224k|      (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|   224k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanItLm1EEEEEmRKT_:
   59|   224k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|   224k|   return std::span{r}.size_bytes();
   61|   224k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__16vectorIhNS_16secure_allocatorIhEEEETpTkNS0_14spanable_rangeEJNS2_4spanIKhLm18446744073709551615EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|   198k|{
  101|   198k|   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|   198k|   } else {
  107|   198k|      const size_t expected_size = s0.size_bytes();
  108|   198k|      const bool correct_size =
  109|   198k|         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|   198k|      if(!correct_size) {
  ------------------
  |  Branch (111:10): [True: 0, False: 198k]
  ------------------
  112|      0|         memory_region_size_violation();
  113|      0|      }
  114|   198k|   }
  115|   198k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__16vectorIhNS_16secure_allocatorIhEEEEEEmRKT_:
   59|   396k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|   396k|   return std::span{r}.size_bytes();
   61|   396k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm18446744073709551615EEETpTkNS0_14spanable_rangeEJNS2_6vectorIhNS_16secure_allocatorIhEEEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  2.45k|{
  101|  2.45k|   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.45k|   } else {
  107|  2.45k|      const size_t expected_size = s0.size_bytes();
  108|  2.45k|      const bool correct_size =
  109|  2.45k|         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|  2.45k|      if(!correct_size) {
  ------------------
  |  Branch (111:10): [True: 0, False: 2.45k]
  ------------------
  112|      0|         memory_region_size_violation();
  113|      0|      }
  114|  2.45k|   }
  115|  2.45k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIhLm18446744073709551615EEEEEmRKT_:
   59|  1.25M|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  1.25M|   return std::span{r}.size_bytes();
   61|  1.25M|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm18446744073709551615EEETpTkNS0_14spanable_rangeEJS4_EEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|   197k|{
  101|   197k|   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|   197k|   } else {
  107|   197k|      const size_t expected_size = s0.size_bytes();
  108|   197k|      const bool correct_size =
  109|   197k|         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|   197k|      if(!correct_size) {
  ------------------
  |  Branch (111:10): [True: 0, False: 197k]
  ------------------
  112|      0|         memory_region_size_violation();
  113|      0|      }
  114|   197k|   }
  115|   197k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanImLm18446744073709551615EEEEEmRKT_:
   59|  1.13M|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  1.13M|   return std::span{r}.size_bytes();
   61|  1.13M|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm18446744073709551615EEETpTkNS0_14spanable_rangeEJNS3_IKmLm18446744073709551615EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  1.35M|{
  101|  1.35M|   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.35M|   } else {
  107|  1.35M|      const size_t expected_size = s0.size_bytes();
  108|  1.35M|      const bool correct_size =
  109|  1.35M|         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|  1.35M|      if(!correct_size) {
  ------------------
  |  Branch (111:10): [True: 0, False: 1.35M]
  ------------------
  112|      0|         memory_region_size_violation();
  113|      0|      }
  114|  1.35M|   }
  115|  1.35M|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIjLm18446744073709551615EEEEEmRKT_:
   59|  1.65M|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  1.65M|   return std::span{r}.size_bytes();
   61|  1.65M|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__15arrayIjLm16EEETpTkNS0_14spanable_rangeEJNS2_4spanIKhLm64EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  76.1M|{
  101|  76.1M|   const std::span s0{r0};
  102|       |
  103|  76.1M|   if constexpr(statically_spanable_range<R0>) {
  104|  76.1M|      constexpr size_t expected_size = s0.size_bytes();
  105|  76.1M|      (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|  76.1M|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm64ETkNS0_14spanable_rangeENSt3__14spanIKhLm64EEEEEvRKT0_:
   77|  80.0M|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  80.0M|   const std::span s{r};
   79|  80.0M|   if constexpr(statically_spanable_range<R>) {
   80|  80.0M|      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|  80.0M|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__15arrayIjLm16EEEEEmRKT_:
   59|  29.8M|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  29.8M|   return std::span{r}.size_bytes();
   61|  29.8M|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIjLm16EEETpTkNS0_14spanable_rangeEJNS3_IKhLm64EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  3.87M|{
  101|  3.87M|   const std::span s0{r0};
  102|       |
  103|  3.87M|   if constexpr(statically_spanable_range<R0>) {
  104|  3.87M|      constexpr size_t expected_size = s0.size_bytes();
  105|  3.87M|      (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|  3.87M|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__15arrayImLm16EEETpTkNS0_14spanable_rangeEJNS2_4spanIKhLm128EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  5.81M|{
  101|  5.81M|   const std::span s0{r0};
  102|       |
  103|  5.81M|   if constexpr(statically_spanable_range<R0>) {
  104|  5.81M|      constexpr size_t expected_size = s0.size_bytes();
  105|  5.81M|      (assert_exact_byte_length<expected_size>(rs), ...);
  106|       |   } else {
  107|       |      const size_t expected_size = s0.size_bytes();
  108|       |      const bool correct_size =
  109|       |         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|       |      if(!correct_size) {
  112|       |         memory_region_size_violation();
  113|       |      }
  114|       |   }
  115|  5.81M|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm128ETkNS0_14spanable_rangeENSt3__14spanIKhLm128EEEEEvRKT0_:
   77|  5.81M|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  5.81M|   const std::span s{r};
   79|  5.81M|   if constexpr(statically_spanable_range<R>) {
   80|  5.81M|      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|  5.81M|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__15arrayIhLm1EEETpTkNS0_14spanable_rangeEJS4_EEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|    128|{
  101|    128|   const std::span s0{r0};
  102|       |
  103|    128|   if constexpr(statically_spanable_range<R0>) {
  104|    128|      constexpr size_t expected_size = s0.size_bytes();
  105|    128|      (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|    128|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm1ETkNS0_14spanable_rangeENSt3__15arrayIhLm1EEEEEvRKT0_:
   77|    128|inline constexpr void assert_exact_byte_length(const R& r) {
   78|    128|   const std::span s{r};
   79|    128|   if constexpr(statically_spanable_range<R>) {
   80|    128|      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|    128|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm1ETkNS0_14spanable_rangeENSt3__14spanIhLm1EEEEEvRKT0_:
   77|    256|inline constexpr void assert_exact_byte_length(const R& r) {
   78|    256|   const std::span s{r};
   79|    256|   if constexpr(statically_spanable_range<R>) {
   80|    256|      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|    256|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm8ETkNS0_14spanable_rangeENSt3__15arrayIhLm8EEEEEvRKT0_:
   77|  34.1M|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  34.1M|   const std::span s{r};
   79|  34.1M|   if constexpr(statically_spanable_range<R>) {
   80|  34.1M|      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|  34.1M|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanImLm1EEETpTkNS0_14spanable_rangeEJNS3_IhLm8EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  34.1M|{
  101|  34.1M|   const std::span s0{r0};
  102|       |
  103|  34.1M|   if constexpr(statically_spanable_range<R0>) {
  104|  34.1M|      constexpr size_t expected_size = s0.size_bytes();
  105|  34.1M|      (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|  34.1M|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanImLm18446744073709551615EEETpTkNS0_14spanable_rangeEJNS3_IKmLm18446744073709551615EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  5.92k|{
  101|  5.92k|   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|  5.92k|   } else {
  107|  5.92k|      const size_t expected_size = s0.size_bytes();
  108|  5.92k|      const bool correct_size =
  109|  5.92k|         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|  5.92k|      if(!correct_size) {
  ------------------
  |  Branch (111:10): [True: 0, False: 5.92k]
  ------------------
  112|      0|         memory_region_size_violation();
  113|      0|      }
  114|  5.92k|   }
  115|  5.92k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__16vectorImNS_16secure_allocatorImEEEETpTkNS0_14spanable_rangeEJNS2_4spanImLm18446744073709551615EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|   135k|{
  101|   135k|   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|   135k|   } else {
  107|   135k|      const size_t expected_size = s0.size_bytes();
  108|   135k|      const bool correct_size =
  109|   135k|         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|   135k|      if(!correct_size) {
  ------------------
  |  Branch (111:10): [True: 0, False: 135k]
  ------------------
  112|      0|         memory_region_size_violation();
  113|      0|      }
  114|   135k|   }
  115|   135k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__16vectorImNS_16secure_allocatorImEEEEEEmRKT_:
   59|   271k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|   271k|   return std::span{r}.size_bytes();
   61|   271k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm8ETkNS0_14spanable_rangeENSt3__15arrayImLm1EEEEEvRKT0_:
   77|   893k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|   893k|   const std::span s{r};
   79|   893k|   if constexpr(statically_spanable_range<R>) {
   80|   893k|      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|   893k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanImLm4EEETpTkNS0_14spanable_rangeEJNS2_5arrayImLm4EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  51.5k|{
  101|  51.5k|   const std::span s0{r0};
  102|       |
  103|  51.5k|   if constexpr(statically_spanable_range<R0>) {
  104|  51.5k|      constexpr size_t expected_size = s0.size_bytes();
  105|  51.5k|      (assert_exact_byte_length<expected_size>(rs), ...);
  106|       |   } else {
  107|       |      const size_t expected_size = s0.size_bytes();
  108|       |      const bool correct_size =
  109|       |         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|       |      if(!correct_size) {
  112|       |         memory_region_size_violation();
  113|       |      }
  114|       |   }
  115|  51.5k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanImLm4EEEEEmRKT_:
   59|   103k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|   103k|   return std::span{r}.size_bytes();
   61|   103k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__15arrayIhLm16EEEEEmRKT_:
   59|    963|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|    963|   return std::span{r}.size_bytes();
   61|    963|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__15arrayIhLm8EEETpTkNS0_14spanable_rangeEJNS3_ImLm1EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|   893k|{
  101|   893k|   const std::span s0{r0};
  102|       |
  103|   893k|   if constexpr(statically_spanable_range<R0>) {
  104|   893k|      constexpr size_t expected_size = s0.size_bytes();
  105|   893k|      (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|   893k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__15arrayIhLm8EEEEEmRKT_:
   59|   446k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|   446k|   return std::span{r}.size_bytes();
   61|   446k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__15arrayIhLm16EEETpTkNS0_14spanable_rangeEJNS3_ImLm2EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|    126|{
  101|    126|   const std::span s0{r0};
  102|       |
  103|    126|   if constexpr(statically_spanable_range<R0>) {
  104|    126|      constexpr size_t expected_size = s0.size_bytes();
  105|    126|      (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|    126|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm16ETkNS0_14spanable_rangeENSt3__15arrayImLm2EEEEEvRKT0_:
   77|  10.8k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  10.8k|   const std::span s{r};
   79|  10.8k|   if constexpr(statically_spanable_range<R>) {
   80|  10.8k|      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|  10.8k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm16ETkNS0_14spanable_rangeENSt3__15arrayIhLm16EEEEEvRKT0_:
   77|    139|inline constexpr void assert_exact_byte_length(const R& r) {
   78|    139|   const std::span s{r};
   79|    139|   if constexpr(statically_spanable_range<R>) {
   80|    139|      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|    139|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENS_10StrongSpanINS_6StrongINSt3__16vectorIhNS4_9allocatorIhEEEENS_16SphincsTreeNode_EJEEEEETpTkNS0_14spanable_rangeEJSA_EEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  1.45k|{
  101|  1.45k|   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.45k|   } else {
  107|  1.45k|      const size_t expected_size = s0.size_bytes();
  108|  1.45k|      const bool correct_size =
  109|  1.45k|         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|  1.45k|      if(!correct_size) {
  ------------------
  |  Branch (111:10): [True: 0, False: 1.45k]
  ------------------
  112|      0|         memory_region_size_violation();
  113|      0|      }
  114|  1.45k|   }
  115|  1.45k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENS_10StrongSpanINS_6StrongINSt3__16vectorIhNS4_9allocatorIhEEEENS_16SphincsTreeNode_EJEEEEEEEmRKT_:
   59|  2.90k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  2.90k|   return std::span{r}.size_bytes();
   61|  2.90k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__15arrayImLm2EEETpTkNS0_14spanable_rangeEJNS2_4spanIhLm16EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  10.7k|{
  101|  10.7k|   const std::span s0{r0};
  102|       |
  103|  10.7k|   if constexpr(statically_spanable_range<R0>) {
  104|  10.7k|      constexpr size_t expected_size = s0.size_bytes();
  105|  10.7k|      (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|  10.7k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__15arrayImLm2EEETpTkNS0_14spanable_rangeEJNS2_4spanIKhLm16EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  80.7k|{
  101|  80.7k|   const std::span s0{r0};
  102|       |
  103|  80.7k|   if constexpr(statically_spanable_range<R0>) {
  104|  80.7k|      constexpr size_t expected_size = s0.size_bytes();
  105|  80.7k|      (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|  80.7k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm16EEETpTkNS0_14spanable_rangeEJNS2_5arrayImLm2EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  10.7k|{
  101|  10.7k|   const std::span s0{r0};
  102|       |
  103|  10.7k|   if constexpr(statically_spanable_range<R0>) {
  104|  10.7k|      constexpr size_t expected_size = s0.size_bytes();
  105|  10.7k|      (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|  10.7k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__15arrayIhLm16EEETpTkNS0_14spanable_rangeEJNS2_4spanIKhLm18446744073709551615EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|    139|{
  101|    139|   const std::span s0{r0};
  102|       |
  103|    139|   if constexpr(statically_spanable_range<R0>) {
  104|    139|      constexpr size_t expected_size = s0.size_bytes();
  105|    139|      (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|    139|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm16ETkNS0_14spanable_rangeENSt3__14spanIKhLm18446744073709551615EEEEEvRKT0_:
   77|    139|inline constexpr void assert_exact_byte_length(const R& r) {
   78|    139|   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|    139|   } else {
   82|    139|      if(s.size_bytes() != expected) {
  ------------------
  |  Branch (82:10): [True: 0, False: 139]
  ------------------
   83|      0|         memory_region_size_violation();
   84|      0|      }
   85|    139|   }
   86|    139|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__15arrayIhLm16EEETpTkNS0_14spanable_rangeEJS4_EEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|    139|{
  101|    139|   const std::span s0{r0};
  102|       |
  103|    139|   if constexpr(statically_spanable_range<R0>) {
  104|    139|      constexpr size_t expected_size = s0.size_bytes();
  105|    139|      (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|    139|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm18446744073709551615EEETpTkNS0_14spanable_rangeEJS4_S4_EEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|    126|{
  101|    126|   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|    126|   } else {
  107|    126|      const size_t expected_size = s0.size_bytes();
  108|    126|      const bool correct_size =
  109|    252|         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  ------------------
  |  Branch (109:11): [True: 126, False: 0]
  |  Branch (109:11): [True: 126, False: 0]
  ------------------
  110|       |
  111|    126|      if(!correct_size) {
  ------------------
  |  Branch (111:10): [True: 0, False: 126]
  ------------------
  112|      0|         memory_region_size_violation();
  113|      0|      }
  114|    126|   }
  115|    126|}

_ZN5Botan21RandomNumberGenerator10random_vecITkNS_8concepts21resizable_byte_bufferENSt3__16vectorIhNS_16secure_allocatorIhEEEEEEvRT_m:
  255|  15.6k|      void random_vec(T& v, size_t bytes) {
  256|  15.6k|         v.resize(bytes);
  257|  15.6k|         random_vec(v);
  258|  15.6k|      }
_ZN5Botan21RandomNumberGenerator10random_vecENSt3__14spanIhLm18446744073709551615EEE:
  244|  15.6k|      void random_vec(std::span<uint8_t> v) { this->randomize(v); }
_ZN5Botan21RandomNumberGenerator9randomizeENSt3__14spanIhLm18446744073709551615EEE:
   86|  15.6k|      void randomize(std::span<uint8_t> output) { this->fill_bytes_with_input(output, {}); }
_ZN5Botan21RandomNumberGenerator11add_entropyENSt3__14spanIKhLm18446744073709551615EEE:
  114|  15.6k|      void add_entropy(std::span<const uint8_t> input) { this->fill_bytes_with_input({}, input); }
_ZN5Botan21RandomNumberGenerator9next_byteEv:
  292|  15.6k|      uint8_t next_byte() {
  293|  15.6k|         uint8_t b = 0;
  294|  15.6k|         this->fill_bytes_with_input(std::span(&b, 1), {});
  295|  15.6k|         return b;
  296|  15.6k|      }
_ZN5Botan21RandomNumberGeneratorC2Ev:
   57|  31.3k|      RandomNumberGenerator() = default;
_ZN5Botan21RandomNumberGeneratorD2Ev:
   52|  31.3k|      virtual ~RandomNumberGenerator() = default;
_ZN5Botan21RandomNumberGenerator10random_vecITkNS_8concepts21resizable_byte_bufferENSt3__16vectorIhNS_16secure_allocatorIhEEEEQsr3stdE21default_initializableIT_EEES8_m:
  270|  15.6k|      T random_vec(size_t bytes) {
  271|  15.6k|         T result;
  272|  15.6k|         random_vec(result, bytes);
  273|  15.6k|         return result;
  274|  15.6k|      }

_ZN5Botan16secure_allocatorIhE10deallocateEPhm:
  102|   303k|      void deallocate(T* p, std::size_t n) { deallocate_memory(p, n, sizeof(T)); }
_ZN5Botan16secure_allocatorIhE8allocateEm:
   95|   303k|      T* allocate(std::size_t n) { return static_cast<T*>(allocate_memory(n, sizeof(T))); }
_ZN5Botan16secure_allocatorImE10deallocateEPmm:
  102|   488k|      void deallocate(T* p, std::size_t n) { deallocate_memory(p, n, sizeof(T)); }
_ZN5Botan16secure_allocatorImE8allocateEm:
   95|   488k|      T* allocate(std::size_t n) { return static_cast<T*>(allocate_memory(n, sizeof(T))); }
_ZN5BotanneIhhEEbRKNS_16secure_allocatorIT_EERKNS1_IT0_EE:
  123|  1.76k|inline bool operator!=(const secure_allocator<T>& /*a*/, const secure_allocator<U>& /*b*/) {
  124|  1.76k|   return false;
  125|  1.76k|}
_ZN5Botan7zeroiseIhNS_16secure_allocatorIhEEEEvRNSt3__16vectorIT_T0_EE:
  241|  10.7k|void zeroise(std::vector<T, Alloc>& vec) {
  242|   439k|   for(size_t i = 0; i != vec.size(); ++i) {
  ------------------
  |  Branch (242:22): [True: 429k, False: 10.7k]
  ------------------
  243|   429k|      vec[i] = static_cast<T>(0);
  244|   429k|   }
  245|  10.7k|}
_ZN5Botan16secure_allocatorIjE8allocateEm:
   95|   264k|      T* allocate(std::size_t n) { return static_cast<T*>(allocate_memory(n, sizeof(T))); }
_ZN5Botan16secure_allocatorIjE10deallocateEPjm:
  102|   264k|      void deallocate(T* p, std::size_t n) { deallocate_memory(p, n, sizeof(T)); }
_ZN5Botan3zapIjNS_16secure_allocatorIjEEEEvRNSt3__16vectorIT_T0_EE:
  261|    547|void zap(std::vector<T, Alloc>& vec) {
  262|    547|   zeroise(vec);
  263|    547|   vec.clear();
  264|    547|   vec.shrink_to_fit();
  265|    547|}
_ZN5Botan7zeroiseIjNS_16secure_allocatorIjEEEEvRNSt3__16vectorIT_T0_EE:
  241|    547|void zeroise(std::vector<T, Alloc>& vec) {
  242|    547|   for(size_t i = 0; i != vec.size(); ++i) {
  ------------------
  |  Branch (242:22): [True: 0, False: 547]
  ------------------
  243|      0|      vec[i] = static_cast<T>(0);
  244|      0|   }
  245|    547|}
_ZN5Botan16secure_allocatorItE10deallocateEPtm:
  102|  9.08k|      void deallocate(T* p, std::size_t n) { deallocate_memory(p, n, sizeof(T)); }
_ZN5Botan3zapImNS_16secure_allocatorImEEEEvRNSt3__16vectorIT_T0_EE:
  261|     54|void zap(std::vector<T, Alloc>& vec) {
  262|     54|   zeroise(vec);
  263|     54|   vec.clear();
  264|     54|   vec.shrink_to_fit();
  265|     54|}
_ZN5Botan7zeroiseImNS_16secure_allocatorImEEEEvRNSt3__16vectorIT_T0_EE:
  241|     54|void zeroise(std::vector<T, Alloc>& vec) {
  242|     54|   for(size_t i = 0; i != vec.size(); ++i) {
  ------------------
  |  Branch (242:22): [True: 0, False: 54]
  ------------------
  243|      0|      vec[i] = static_cast<T>(0);
  244|      0|   }
  245|     54|}
_ZN5Botan3zapIhNS_16secure_allocatorIhEEEEvRNSt3__16vectorIT_T0_EE:
  261|    225|void zap(std::vector<T, Alloc>& vec) {
  262|    225|   zeroise(vec);
  263|    225|   vec.clear();
  264|    225|   vec.shrink_to_fit();
  265|    225|}
_ZN5Botan16secure_allocatorItE8allocateEm:
   95|  9.08k|      T* allocate(std::size_t n) { return static_cast<T*>(allocate_memory(n, sizeof(T))); }
_ZN5Botan3zapItNS_16secure_allocatorItEEEEvRNSt3__16vectorIT_T0_EE:
  261|    210|void zap(std::vector<T, Alloc>& vec) {
  262|    210|   zeroise(vec);
  263|    210|   vec.clear();
  264|    210|   vec.shrink_to_fit();
  265|    210|}
_ZN5Botan7zeroiseItNS_16secure_allocatorItEEEEvRNSt3__16vectorIT_T0_EE:
  241|    210|void zeroise(std::vector<T, Alloc>& vec) {
  242|    210|   for(size_t i = 0; i != vec.size(); ++i) {
  ------------------
  |  Branch (242:22): [True: 0, False: 210]
  ------------------
  243|      0|      vec[i] = static_cast<T>(0);
  244|      0|   }
  245|    210|}
_ZN5BotanpLIhNSt3__19allocatorIhEEmEERNS1_6vectorIT_T0_EES8_RKNS1_4pairIPKS5_T1_EE:
  204|  10.1k|std::vector<T, Alloc>& operator+=(std::vector<T, Alloc>& out, const std::pair<const T*, L>& in) {
  205|  10.1k|   if(in.second > 0) {
  ------------------
  |  Branch (205:7): [True: 10.1k, False: 0]
  ------------------
  206|  10.1k|      out.insert(out.end(), in.first, in.first + in.second);
  207|  10.1k|   }
  208|  10.1k|   return out;
  209|  10.1k|}
_ZN5Botan7zeroiseIhNSt3__19allocatorIhEEEEvRNS1_6vectorIT_T0_EE:
  241|  1.57k|void zeroise(std::vector<T, Alloc>& vec) {
  242|  20.1k|   for(size_t i = 0; i != vec.size(); ++i) {
  ------------------
  |  Branch (242:22): [True: 18.5k, False: 1.57k]
  ------------------
  243|  18.5k|      vec[i] = static_cast<T>(0);
  244|  18.5k|   }
  245|  1.57k|}

_ZN5Botan13SM2_PublicKeyC1ERKNS_8EC_GroupERKNS_14EC_AffinePointE:
   27|  8.77k|      SM2_PublicKey(const EC_Group& group, const EC_AffinePoint& public_key) : EC_PublicKey(group, public_key) {}

_ZNK5Botan18Sphincs_Parameters9hash_typeEv:
   71|     64|      Sphincs_Hash_Type hash_type() const { return m_hash_type; }
_ZNK5Botan18Sphincs_Parameters1nEv:
   96|  64.9k|      size_t n() const { return m_n; }
_ZNK5Botan18Sphincs_Parameters1hEv:
  101|     64|      uint32_t h() const { return m_h; }
_ZNK5Botan18Sphincs_Parameters1dEv:
  106|    524|      uint32_t d() const { return m_d; }
_ZNK5Botan18Sphincs_Parameters1aEv:
  114|  28.8k|      uint32_t a() const { return m_a; }
_ZNK5Botan18Sphincs_Parameters1kEv:
  119|  1.31k|      uint32_t k() const { return m_k; }
_ZNK5Botan18Sphincs_Parameters1wEv:
  124|   202k|      uint32_t w() const { return m_w; }
_ZNK5Botan18Sphincs_Parameters16xmss_tree_heightEv:
  135|  1.96k|      uint32_t xmss_tree_height() const { return m_xmss_tree_height; }
_ZNK5Botan18Sphincs_Parameters18ht_signature_bytesEv:
  145|    128|      uint32_t ht_signature_bytes() const { return m_ht_sig_bytes; }
_ZNK5Botan18Sphincs_Parameters5log_wEv:
  150|  20.5k|      uint32_t log_w() const { return m_lg_w; }
_ZNK5Botan18Sphincs_Parameters10wots_len_1Ev:
  155|    920|      uint32_t wots_len_1() const { return m_wots_len1; }
_ZNK5Botan18Sphincs_Parameters10wots_len_2Ev:
  160|  1.38k|      uint32_t wots_len_2() const { return m_wots_len2; }
_ZNK5Botan18Sphincs_Parameters8wots_lenEv:
  165|  20.0k|      uint32_t wots_len() const { return m_wots_len; }
_ZNK5Botan18Sphincs_Parameters10wots_bytesEv:
  170|    460|      uint32_t wots_bytes() const { return m_wots_bytes; }
_ZNK5Botan18Sphincs_Parameters19wots_checksum_bytesEv:
  175|    460|      uint32_t wots_checksum_bytes() const { return m_wots_checksum_bytes; }
_ZNK5Botan18Sphincs_Parameters20fors_signature_bytesEv:
  180|     64|      uint32_t fors_signature_bytes() const { return m_fors_sig_bytes; }
_ZNK5Botan18Sphincs_Parameters18fors_message_bytesEv:
  185|     64|      uint32_t fors_message_bytes() const { return m_fors_message_bytes; }
_ZNK5Botan18Sphincs_Parameters23sphincs_signature_bytesEv:
  190|     64|      uint32_t sphincs_signature_bytes() const { return m_sp_sig_bytes; }
_ZNK5Botan18Sphincs_Parameters16public_key_bytesEv:
  195|     64|      uint32_t public_key_bytes() const { return m_n * 2; }
_ZNK5Botan18Sphincs_Parameters17tree_digest_bytesEv:
  205|     64|      uint32_t tree_digest_bytes() const { return m_tree_digest_bytes; }
_ZNK5Botan18Sphincs_Parameters17leaf_digest_bytesEv:
  210|     64|      uint32_t leaf_digest_bytes() const { return m_leaf_digest_bytes; }
_ZNK5Botan18Sphincs_Parameters18h_msg_digest_bytesEv:
  216|     64|      uint32_t h_msg_digest_bytes() const { return m_h_msg_digest_bytes; }

_ZN5Botan12Stateful_RNGC2ERNS_21RandomNumberGeneratorEm:
   49|  15.6k|            m_underlying_rng(&rng), m_reseed_interval(reseed_interval) {}
_ZNK5Botan12Stateful_RNG13accepts_inputEv:
   91|  15.6k|      bool accepts_input() const final { return true; }

_ZN5Botan12StreamCipher6cipherEPKhPhm:
   61|   143k|      void cipher(const uint8_t in[], uint8_t out[], size_t len) { cipher_bytes(in, out, len); }
_ZN5Botan12StreamCipher8encipherENSt3__14spanIhLm18446744073709551615EEE:
  124|    275|      void encipher(std::span<uint8_t> inout) { cipher(inout.data(), inout.data(), inout.size()); }
_ZN5Botan12StreamCipher6set_ivEPKhm:
  168|  1.44k|      void set_iv(const uint8_t iv[], size_t iv_len) { set_iv_bytes(iv, iv_len); }
_ZN5Botan12StreamCipher6set_ivENSt3__14spanIKhLm18446744073709551615EEE:
  175|    136|      void set_iv(std::span<const uint8_t> iv) { set_iv_bytes(iv.data(), iv.size()); }

_ZN5Botan18unwrap_strong_typeIRtEEDcOT_:
  328|   224k|[[nodiscard]] constexpr decltype(auto) unwrap_strong_type(T&& t) {
  329|   224k|   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|   224k|      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|   224k|}
_ZN5Botan18unwrap_strong_typeIRjEEDcOT_:
  328|  7.10M|[[nodiscard]] constexpr decltype(auto) unwrap_strong_type(T&& t) {
  329|  7.10M|   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|  7.10M|      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|  7.10M|}
_ZN5Botan18unwrap_strong_typeIRmEEDcOT_:
  328|  6.42M|[[nodiscard]] constexpr decltype(auto) unwrap_strong_type(T&& t) {
  329|  6.42M|   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|  6.42M|      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|  6.42M|}
_ZN5Botan16wrap_strong_typeIjRjQoosr3stdE18constructible_fromIT_T0_Eaasr8conceptsE11strong_typeIS2_Esr3stdE18constructible_fromINS2_12wrapped_typeES3_EEEDcOS3_:
  353|   331M|[[nodiscard]] constexpr decltype(auto) wrap_strong_type(ParamT&& t) {
  354|   331M|   if constexpr(std::same_as<std::remove_cvref_t<ParamT>, T>) {
  355|       |      // Noop, if the parameter type already is the desired return type.
  356|   331M|      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|   331M|}
_ZN5Botan16wrap_strong_typeImRmQoosr3stdE18constructible_fromIT_T0_Eaasr8conceptsE11strong_typeIS2_Esr3stdE18constructible_fromINS2_12wrapped_typeES3_EEEDcOS3_:
  353|   138M|[[nodiscard]] constexpr decltype(auto) wrap_strong_type(ParamT&& t) {
  354|   138M|   if constexpr(std::same_as<std::remove_cvref_t<ParamT>, T>) {
  355|       |      // Noop, if the parameter type already is the desired return type.
  356|   138M|      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|   138M|}
_ZN5Botan16wrap_strong_typeItRtQoosr3stdE18constructible_fromIT_T0_Eaasr8conceptsE11strong_typeIS2_Esr3stdE18constructible_fromINS2_12wrapped_typeES3_EEEDcOS3_:
  353|   224k|[[nodiscard]] constexpr decltype(auto) wrap_strong_type(ParamT&& t) {
  354|   224k|   if constexpr(std::same_as<std::remove_cvref_t<ParamT>, T>) {
  355|       |      // Noop, if the parameter type already is the desired return type.
  356|   224k|      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|   224k|}
_ZN5Botan18unwrap_strong_typeIRhEEDcOT_:
  328|    128|[[nodiscard]] constexpr decltype(auto) unwrap_strong_type(T&& t) {
  329|    128|   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|    128|      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|    128|}
_ZN5Botan6detail11Strong_BaseINSt3__16vectorIhNS2_9allocatorIhEEEEEC2EOS7_:
   91|    192|      Strong_Base(Strong_Base&&) noexcept = default;
_ZN5Botan6detail29Container_Strong_Adapter_BaseINSt3__16vectorIhNS2_9allocatorIhEEEEEC2EmQsr8conceptsE19resizable_containerIT_E:
  167|  2.10k|            : Container_Strong_Adapter_Base(T(size)) {}
_ZN5Botan6detail11Strong_BaseINSt3__16vectorIhNS2_9allocatorIhEEEEEC2ES6_:
  105|  2.29k|      constexpr explicit Strong_Base(T v) : m_value(std::move(v)) {}
_ZN5Botan6detail14Strong_AdapterINSt3__16vectorIhNS2_9allocatorIhEEEEE4dataEv:
  279|  2.43k|      decltype(auto) data() noexcept(noexcept(this->get().data())) { return this->get().data(); }
_ZNR5Botan6detail11Strong_BaseINSt3__16vectorIhNS2_9allocatorIhEEEEE3getEv:
  109|  2.82k|      constexpr T& get() & { return m_value; }
_ZNK5Botan6detail29Container_Strong_Adapter_BaseINSt3__16vectorIhNS2_9allocatorIhEEEEE4sizeEv:
  210|   171k|      size_type size() const noexcept(noexcept(this->get().size())) { return this->get().size(); }
_ZNKR5Botan6detail11Strong_BaseINSt3__16vectorIhNS2_9allocatorIhEEEEE3getEv:
  113|   340k|      constexpr const T& get() const& { return m_value; }
_ZNK5Botan6detail14Strong_AdapterINSt3__16vectorIhNS2_9allocatorIhEEEEE4dataEv:
  281|   168k|      decltype(auto) data() const noexcept(noexcept(this->get().data())) { return this->get().data(); }
_ZN5Botan6detail11Strong_BaseINSt3__16vectorIhNS2_9allocatorIhEEEEED2Ev:
  101|  2.80k|      ~Strong_Base() = default;
_ZN5Botan6detail29Container_Strong_Adapter_BaseINSt3__16vectorIhNS2_9allocatorIhEEEEE3endEv:
  186|     64|      decltype(auto) end() noexcept(noexcept(this->get().end())) { return this->get().end(); }
_ZN5Botan6detail29Container_Strong_Adapter_BaseINSt3__16vectorIhNS2_9allocatorIhEEEEEC2INS2_11__wrap_iterIPKhEEEET_SD_:
  173|    192|      Container_Strong_Adapter_Base(InputIt begin, InputIt end) : Container_Strong_Adapter_Base(T(begin, end)) {}
_ZN5Botan16wrap_strong_typeIhRKhQoosr3stdE18constructible_fromIT_T0_Eaasr8conceptsE11strong_typeIS3_Esr3stdE18constructible_fromINS3_12wrapped_typeES4_EEEDcOS4_:
  353|     64|[[nodiscard]] constexpr decltype(auto) wrap_strong_type(ParamT&& t) {
  354|     64|   if constexpr(std::same_as<std::remove_cvref_t<ParamT>, T>) {
  355|       |      // Noop, if the parameter type already is the desired return type.
  356|     64|      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|     64|}
_ZN5Botan6detail11Strong_BaseINSt3__16vectorIhNS2_9allocatorIhEEEEEC2Ev:
   85|    320|      Strong_Base() = default;
_ZN5Botan6detail11Strong_BaseINSt3__16vectorIhNS2_9allocatorIhEEEEEaSEOS7_:
   99|    192|      Strong_Base& operator=(Strong_Base&&) noexcept = default;
_ZN5BotaneOITkNSt3__18integralEjTkNS1_8integralEiJNS_14TreeNodeIndex_ENS_31EnableArithmeticWithPlainNumberEEQsr6detailE14has_capabilityIS3_DpT1_EEEDaRNS_6StrongIT_S5_EET0_:
  904|  12.4k|constexpr auto operator^=(Strong<T1, Tags...>& a, T2 b) {
  905|  12.4k|   a.get() ^= b;
  906|  12.4k|   return a;
  907|  12.4k|}
_ZNR5Botan6detail11Strong_BaseIjE3getEv:
  109|   244k|      constexpr T& get() & { return m_value; }
_ZN5Botan6detail11Strong_BaseIjEC2Ej:
  105|  51.9k|      constexpr explicit Strong_Base(T v) : m_value(std::move(v)) {}
_ZN5BotanplITkNSt3__18integralEjTkNS1_8integralEjJNS_14TreeNodeIndex_ENS_31EnableArithmeticWithPlainNumberEEQsr6detailE14has_capabilityIS3_DpT1_EEEDcNS_6StrongIT_S5_EET0_:
  501|  17.4k|constexpr decltype(auto) operator+(Strong<T1, Tags...> a, T2 b) {
  502|  17.4k|   return Strong<T1, Tags...>(a.get() + b);
  503|  17.4k|}
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_14ForsSignature_EJEEEE4dataEv:
 1167|     64|      decltype(auto) data() noexcept(noexcept(this->m_span.data())) { return this->m_span.data(); }
_ZNK5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_14ForsSignature_EJEEEE4sizeEv:
 1175|     64|      decltype(auto) size() const noexcept(noexcept(this->m_span.size())) { return this->m_span.size(); }
_ZN5Botan10StrongSpanINS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_16SphincsTreeNode_EJEEEE4dataEv:
 1167|  17.9k|      decltype(auto) data() noexcept(noexcept(this->m_span.data())) { return this->m_span.data(); }
_ZNK5Botan10StrongSpanINS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_16SphincsTreeNode_EJEEEE4sizeEv:
 1175|  22.2k|      decltype(auto) size() const noexcept(noexcept(this->m_span.size())) { return this->m_span.size(); }
_ZN5Botan10StrongSpanINS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_16SphincsTreeNode_EJEEEEC2ENS2_4spanIhLm18446744073709551615EEE:
 1108|    992|      explicit StrongSpan(underlying_span span) : m_span(span) {}
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_15ForsLeafSecret_EJEEEEC2ENS2_4spanIKhLm18446744073709551615EEE:
 1108|    992|      explicit StrongSpan(underlying_span span) : m_span(span) {}
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_26SphincsAuthenticationPath_EJEEEEC2ENS2_4spanIKhLm18446744073709551615EEE:
 1108|  1.45k|      explicit StrongSpan(underlying_span span) : m_span(span) {}
_ZNK5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_15ForsLeafSecret_EJEEEE4sizeEv:
 1175|  1.98k|      decltype(auto) size() const noexcept(noexcept(this->m_span.size())) { return this->m_span.size(); }
_ZNK5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_15ForsLeafSecret_EJEEEE4dataEv:
 1171|    992|      decltype(auto) data() const noexcept(noexcept(this->m_span.data())) { return this->m_span.data(); }
_ZNR5Botan6detail11Strong_BaseImE3getEv:
  109|  1.96k|      constexpr T& get() & { return m_value; }
_ZNR5Botan6detail11Strong_BaseIhE3getEv:
  109|   623k|      constexpr T& get() & { return m_value; }
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_25SphincsMessageRandomness_EJEEEE4dataEv:
 1167|     64|      decltype(auto) data() noexcept(noexcept(this->m_span.data())) { return this->m_span.data(); }
_ZNK5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_25SphincsMessageRandomness_EJEEEE4sizeEv:
 1175|     64|      decltype(auto) size() const noexcept(noexcept(this->m_span.size())) { return this->m_span.size(); }
_ZN5Botan6detail11Strong_BaseImEC2Em:
  105|    524|      constexpr explicit Strong_Base(T v) : m_value(std::move(v)) {}
_ZN5BotanssITkNSt3__18integralEjTkNS1_8integralEjJNS_20HypertreeLayerIndex_EEEEDaNS_6StrongIT_DpT1_EET0_:
  455|    524|auto operator<=>(Strong<T1, Tags...> a, T2 b) {
  456|    524|   return a.get() <=> b;
  457|    524|}
_ZN5BotaneqITkNSt3__18integralEjTkNS1_8integralEjJNS_20HypertreeLayerIndex_EEEEDaNS_6StrongIT_DpT1_EET0_:
  477|    460|auto operator==(Strong<T1, Tags...> a, T2 b) {
  478|    460|   return a.get() == b;
  479|    460|}
_ZN5BotanrsITkNSt3__18integralEmTkNS1_8integralEjJNS_21XmssTreeIndexInLayer_ENS_31EnableArithmeticWithPlainNumberEEQsr6detailE14has_capabilityIS3_DpT1_EEEDcNS_6StrongIT_S5_EET0_:
  746|    460|constexpr decltype(auto) operator>>(Strong<T1, Tags...> a, T2 b) {
  747|    460|   return Strong<T1, Tags...>(a.get() >> b);
  748|    460|}
_ZN5BotanppITkNSt3__18integralEjJNS_20HypertreeLayerIndex_EEEEDaRNS_6StrongIT_DpT0_EEi:
 1027|    460|constexpr auto operator++(Strong<T, Tags...>& a, int) {
 1028|    460|   auto tmp = a;
 1029|    460|   ++a.get();
 1030|    460|   return tmp;
 1031|    460|}
_ZNK5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_21SphincsXmssSignature_EJEEEE4sizeEv:
 1175|    128|      decltype(auto) size() const noexcept(noexcept(this->m_span.size())) { return this->m_span.size(); }
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_21SphincsXmssSignature_EJEEEE4dataEv:
 1167|     64|      decltype(auto) data() noexcept(noexcept(this->m_span.data())) { return this->m_span.data(); }
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_14WotsSignature_EJEEEEC2ENS2_4spanIKhLm18446744073709551615EEE:
 1108|    460|      explicit StrongSpan(underlying_span span) : m_span(span) {}
_ZN5Botan10StrongSpanINS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_16SphincsTreeNode_EJEEEEC2ERS8_:
 1113|    460|      StrongSpan(T& strong) : m_span(strong) {}
_ZN5BotaneqINSt3__16vectorIhNS1_9allocatorIhEEEEJNS_16SphincsTreeNode_EEQsr3stdE19equality_comparableIT_EEEbRKNS_6StrongIS7_DpT0_EESD_:
  421|     64|bool operator==(const Strong<T, Tags...>& lhs, const Strong<T, Tags...>& rhs) {
  422|     64|   return lhs.get() == rhs.get();
  423|     64|}
_ZNK5Botan10StrongSpanINS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_16SphincsTreeNode_EJEEEE4dataEv:
 1171|  4.35k|      decltype(auto) data() const noexcept(noexcept(this->m_span.data())) { return this->m_span.data(); }
_ZN5BotaneqITkNSt3__18integralEjTkNS1_8integralEjJNS_14TreeNodeIndex_ENS_31EnableArithmeticWithPlainNumberEEEEDaNS_6StrongIT_DpT1_EET0_:
  477|  16.4k|auto operator==(Strong<T1, Tags...> a, T2 b) {
  478|  16.4k|   return a.get() == b;
  479|  16.4k|}
_ZN5BotananITkNSt3__18integralEjTkNS1_8integralEiJNS_14TreeNodeIndex_ENS_31EnableArithmeticWithPlainNumberEEQsr6detailE14has_capabilityIS3_DpT1_EEEDcNS_6StrongIT_S5_EET0_:
  676|  16.4k|constexpr decltype(auto) operator&(Strong<T1, Tags...> a, T2 b) {
  677|  16.4k|   return Strong<T1, Tags...>(a.get() & b);
  678|  16.4k|}
_ZN5BotanplITkNSt3__18integralEjTkNS1_8integralEiJNS_15TreeLayerIndex_ENS_31EnableArithmeticWithPlainNumberEEQsr6detailE14has_capabilityIS3_DpT1_EEEDcNS_6StrongIT_S5_EET0_:
  501|  16.4k|constexpr decltype(auto) operator+(Strong<T1, Tags...> a, T2 b) {
  502|  16.4k|   return Strong<T1, Tags...>(a.get() + b);
  503|  16.4k|}
_ZN5BotandVITkNSt3__18integralEjTkNS1_8integralEiJNS_14TreeNodeIndex_ENS_31EnableArithmeticWithPlainNumberEEQsr6detailE14has_capabilityIS3_DpT1_EEEDaRNS_6StrongIT_S5_EET0_:
  879|  16.4k|constexpr auto operator/=(Strong<T1, Tags...>& a, T2 b) {
  880|  16.4k|   a.get() /= b;
  881|  16.4k|   return a;
  882|  16.4k|}
_ZNK5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_26SphincsAuthenticationPath_EJEEEE4sizeEv:
 1175|  2.90k|      decltype(auto) size() const noexcept(noexcept(this->m_span.size())) { return this->m_span.size(); }
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_16SphincsTreeNode_EJEEEEC2Ev:
 1104|  2.90k|      StrongSpan() = default;
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_26SphincsAuthenticationPath_EJEEEE4dataEv:
 1167|  1.45k|      decltype(auto) data() noexcept(noexcept(this->m_span.data())) { return this->m_span.data(); }
_ZN5BotanssITkNSt3__18integralEjTkNS1_8integralEjJNS_15TreeLayerIndex_ENS_31EnableArithmeticWithPlainNumberEEEEDaNS_6StrongIT_DpT1_EET0_:
  455|  17.9k|auto operator<=>(Strong<T1, Tags...> a, T2 b) {
  456|  17.9k|   return a.get() <=> b;
  457|  17.9k|}
_ZN5BotanppITkNSt3__18integralEjJNS_15TreeLayerIndex_ENS_31EnableArithmeticWithPlainNumberEEEEDaRNS_6StrongIT_DpT0_EEi:
 1027|  16.4k|constexpr auto operator++(Strong<T, Tags...>& a, int) {
 1028|  16.4k|   auto tmp = a;
 1029|  16.4k|   ++a.get();
 1030|  16.4k|   return tmp;
 1031|  16.4k|}
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_16SphincsTreeNode_EJEEEEC2ITkNS_8concepts22contiguous_strong_typeES8_EERKNS0_IT_EEQsr3stdE9is_same_vITL0__u14__remove_constISD_EE:
 1131|  16.4k|            : m_span(other.get()) {}
_ZNK5Botan10StrongSpanINS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_16SphincsTreeNode_EJEEEE3getEv:
 1157|  16.4k|      underlying_span get() const { return m_span; }
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_16SphincsTreeNode_EJEEEEC2ENS2_4spanIKhLm18446744073709551615EEE:
 1108|  16.4k|      explicit StrongSpan(underlying_span span) : m_span(span) {}
_ZNK5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_16SphincsTreeNode_EJEEEE4sizeEv:
 1175|  65.9k|      decltype(auto) size() const noexcept(noexcept(this->m_span.size())) { return this->m_span.size(); }
_ZNK5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_16SphincsTreeNode_EJEEEE4dataEv:
 1171|  32.9k|      decltype(auto) data() const noexcept(noexcept(this->m_span.data())) { return this->m_span.data(); }
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_14WotsSignature_EJEEEE4dataEv:
 1167|    460|      decltype(auto) data() noexcept(noexcept(this->m_span.data())) { return this->m_span.data(); }
_ZNK5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_14WotsSignature_EJEEEE4sizeEv:
 1175|    460|      decltype(auto) size() const noexcept(noexcept(this->m_span.size())) { return this->m_span.size(); }
_ZN5BotanssITkNSt3__18integralEjTkNS1_8integralEjJNS_15WotsChainIndex_EEEEDaNS_6StrongIT_DpT1_EET0_:
  455|  19.6k|auto operator<=>(Strong<T1, Tags...> a, T2 b) {
  456|  19.6k|   return a.get() <=> b;
  457|  19.6k|}
_ZNKR5Botan6detail11Strong_BaseIhE3getEv:
  113|   350k|      constexpr const T& get() const& { return m_value; }
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_9WotsNode_EJEEEE5beginEv:
 1183|  19.1k|      decltype(auto) begin() noexcept(noexcept(this->m_span.begin())) { return this->m_span.begin(); }
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_9WotsNode_EJEEEE3endEv:
 1191|  19.1k|      decltype(auto) end() noexcept(noexcept(this->m_span.end())) { return this->m_span.end(); }
_ZN5Botan10StrongSpanINS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_18WotsPublicKeyNode_EJEEEE5beginEv:
 1183|  19.1k|      decltype(auto) begin() noexcept(noexcept(this->m_span.begin())) { return this->m_span.begin(); }
_ZN5BotanssIhJNS_14WotsHashIndex_ENS_31EnableArithmeticWithPlainNumberEEQsr3stdE20three_way_comparableIT_EEEDaRKNS_6StrongIS3_DpT0_EES9_:
  433|   165k|auto operator<=>(const Strong<T, Tags...>& lhs, const Strong<T, Tags...>& rhs) {
  434|   165k|   return lhs.get() <=> rhs.get();
  435|   165k|}
_ZN5BotanplITkNSt3__18integralEhTkNS1_8integralEhJNS_14WotsHashIndex_ENS_31EnableArithmeticWithPlainNumberEEQsr6detailE14has_capabilityIS3_DpT1_EEEDcNS_6StrongIT_S5_EET0_:
  501|   165k|constexpr decltype(auto) operator+(Strong<T1, Tags...> a, T2 b) {
  502|   165k|   return Strong<T1, Tags...>(a.get() + b);
  503|   165k|}
_ZN5BotanssITkNSt3__18integralEhTkNS1_8integralEjJNS_14WotsHashIndex_ENS_31EnableArithmeticWithPlainNumberEEEEDaNS_6StrongIT_DpT1_EET0_:
  455|   146k|auto operator<=>(Strong<T1, Tags...> a, T2 b) {
  456|   146k|   return a.get() <=> b;
  457|   146k|}
_ZNK5Botan10StrongSpanINS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_18WotsPublicKeyNode_EJEEEE4sizeEv:
 1175|   439k|      decltype(auto) size() const noexcept(noexcept(this->m_span.size())) { return this->m_span.size(); }
_ZNK5Botan10StrongSpanINS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_18WotsPublicKeyNode_EJEEEE4dataEv:
 1171|   146k|      decltype(auto) data() const noexcept(noexcept(this->m_span.data())) { return this->m_span.data(); }
_ZN5Botan10StrongSpanINS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_18WotsPublicKeyNode_EJEEEE4dataEv:
 1167|   146k|      decltype(auto) data() noexcept(noexcept(this->m_span.data())) { return this->m_span.data(); }
_ZN5BotanppITkNSt3__18integralEjJNS_15WotsChainIndex_EEEEDaRNS_6StrongIT_DpT0_EEi:
 1027|  19.1k|constexpr auto operator++(Strong<T, Tags...>& a, int) {
 1028|  19.1k|   auto tmp = a;
 1029|  19.1k|   ++a.get();
 1030|  19.1k|   return tmp;
 1031|  19.1k|}
_ZN5Botan6detail11Strong_BaseIhEC2Eh:
  105|   184k|      constexpr explicit Strong_Base(T v) : m_value(std::move(v)) {}
_ZN5BotanppITkNSt3__18integralEhJNS_14WotsHashIndex_ENS_31EnableArithmeticWithPlainNumberEEEEDaRNS_6StrongIT_DpT0_EEi:
 1027|   146k|constexpr auto operator++(Strong<T, Tags...>& a, int) {
 1028|   146k|   auto tmp = a;
 1029|   146k|   ++a.get();
 1030|   146k|   return tmp;
 1031|   146k|}
_ZN5Botan10StrongSpanINS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_18WotsPublicKeyNode_EJEEEEC2ENS2_4spanIhLm18446744073709551615EEE:
 1108|  19.1k|      explicit StrongSpan(underlying_span span) : m_span(span) {}
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_9WotsNode_EJEEEEC2ENS2_4spanIKhLm18446744073709551615EEE:
 1108|  19.1k|      explicit StrongSpan(underlying_span span) : m_span(span) {}
_ZN5Botan6detail29Container_Strong_Adapter_BaseINSt3__16vectorIhNS2_9allocatorIhEEEEE7reserveEmQsr8conceptsE20reservable_containerIT_E:
  232|     64|      {
  233|     64|         this->get().reserve(size);
  234|     64|      }
_ZN5Botan18unwrap_strong_typeIRNS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_21SphincsMessagePrefix_EJEEEEEDcOT_:
  328|    192|[[nodiscard]] constexpr decltype(auto) unwrap_strong_type(T&& t) {
  329|       |   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|       |      return std::forward<T>(t);
  332|    192|   } else {
  333|       |      // Unwrap the strong type and return the underlying value.
  334|    192|      return std::forward<T>(t).get();
  335|    192|   }
  336|    192|}
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_15SphincsContext_EJEEEE5beginEv:
 1183|     64|      decltype(auto) begin() noexcept(noexcept(this->m_span.begin())) { return this->m_span.begin(); }
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_15SphincsContext_EJEEEE3endEv:
 1191|     64|      decltype(auto) end() noexcept(noexcept(this->m_span.end())) { return this->m_span.end(); }
_ZNK5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_15SphincsContext_EJEEEE4sizeEv:
 1175|    128|      decltype(auto) size() const noexcept(noexcept(this->m_span.size())) { return this->m_span.size(); }
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_15SphincsContext_EJEEEEC2ERS9_:
 1113|     64|      StrongSpan(T& strong) : m_span(strong) {}
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_25SphincsMessageRandomness_EJEEEEC2ENS2_4spanIKhLm18446744073709551615EEE:
 1108|     64|      explicit StrongSpan(underlying_span span) : m_span(span) {}
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_14ForsSignature_EJEEEEC2ENS2_4spanIKhLm18446744073709551615EEE:
 1108|     64|      explicit StrongSpan(underlying_span span) : m_span(span) {}
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_21SphincsXmssSignature_EJEEEEC2ENS2_4spanIKhLm18446744073709551615EEE:
 1108|     64|      explicit StrongSpan(underlying_span span) : m_span(span) {}

_ZNK5Botan18SymmetricAlgorithm15valid_keylengthEm:
  143|   120k|      bool valid_keylength(size_t length) const { return key_spec().valid_keylength(length); }
_ZNK5Botan24Key_Length_Specification15valid_keylengthEm:
   44|   120k|      bool valid_keylength(size_t length) const {
   45|   120k|         return ((length >= m_min_keylen) && (length <= m_max_keylen) && (length % m_keylen_mod == 0));
  ------------------
  |  Branch (45:18): [True: 120k, False: 0]
  |  Branch (45:46): [True: 120k, False: 0]
  |  Branch (45:74): [True: 120k, False: 0]
  ------------------
   46|   120k|      }
_ZN5Botan24Key_Length_SpecificationC2Em:
   28|    136|      explicit Key_Length_Specification(size_t keylen) : m_min_keylen(keylen), m_max_keylen(keylen), m_keylen_mod(1) {}
_ZN5Botan24Key_Length_SpecificationC2Emmm:
   37|   120k|            m_min_keylen(min_k), m_max_keylen(max_k > 0 ? max_k : min_k), m_keylen_mod(k_mod) {}
  ------------------
  |  Branch (37:47): [True: 93.6k, False: 26.5k]
  ------------------
_ZN5Botan18SymmetricAlgorithm7set_keyEPKhm:
  162|  54.7k|      void set_key(const uint8_t key[], size_t length) { set_key(std::span{key, length}); }
_ZNK5Botan18SymmetricAlgorithm23assert_key_material_setEv:
  180|  2.55M|      void assert_key_material_set() const { assert_key_material_set(has_keying_material()); }
_ZNK5Botan18SymmetricAlgorithm23assert_key_material_setEb:
  186|  2.55M|      void assert_key_material_set(bool predicate) const {
  187|  2.55M|         if(!predicate) {
  ------------------
  |  Branch (187:13): [True: 0, False: 2.55M]
  ------------------
  188|      0|            throw_key_not_set_error();
  189|      0|         }
  190|  2.55M|      }
_ZN5Botan18SymmetricAlgorithmD2Ev:
   90|  79.7k|      virtual ~SymmetricAlgorithm() = default;
_ZN5Botan18SymmetricAlgorithmC2Ev:
   88|  79.7k|      SymmetricAlgorithm() = default;

_ZN5Botan3OID9from_nameENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   66|  18.4k|std::optional<OID> OID::from_name(std::string_view name) {
   67|  18.4k|   if(name.empty()) {
  ------------------
  |  Branch (67:7): [True: 0, False: 18.4k]
  ------------------
   68|      0|      throw Invalid_Argument("OID::from_name argument must be non-empty");
   69|      0|   }
   70|       |
   71|  18.4k|   OID o = OID_Map::global_registry().str2oid(name);
   72|  18.4k|   if(o.has_value()) {
  ------------------
  |  Branch (72:7): [True: 18.4k, False: 0]
  ------------------
   73|  18.4k|      return std::optional(o);
   74|  18.4k|   }
   75|       |
   76|      0|   return std::nullopt;
   77|  18.4k|}
_ZN5Botan3OIDC2ESt16initializer_listIjE:
   98|  18.5k|OID::OID(std::initializer_list<uint32_t> init) : m_id(init) {
   99|  18.5k|   oid_valid_check(m_id);
  100|  18.5k|}
_ZNK5Botan3OID15registered_nameEv:
  149|      3|std::optional<std::string> OID::registered_name() const {
  150|      3|   return OID_Map::global_registry().oid2str(*this);
  151|      3|}
_ZNK5Botan3OID7matchesESt16initializer_listIjE:
  157|      3|bool OID::matches(std::initializer_list<uint32_t> other) const {
  158|       |   // TODO: once all target compilers support it, use std::ranges::equal
  159|      3|   return std::equal(m_id.begin(), m_id.end(), other.begin(), other.end());
  160|      3|}
_ZNK5Botan3OID9hash_codeEv:
  162|      7|uint64_t OID::hash_code() const {
  163|       |   // If this is changed also update gen_oids.py to match
  164|      7|   uint64_t hash = 0x621F302327D9A49A;
  165|     50|   for(auto id : m_id) {
  ------------------
  |  Branch (165:16): [True: 50, False: 7]
  ------------------
  166|     50|      hash *= 193;
  167|     50|      hash += id;
  168|     50|   }
  169|      7|   return hash;
  170|      7|}
_ZNK5Botan3OID11encode_intoERNS_11DER_EncoderE:
  185|      3|void OID::encode_into(DER_Encoder& der) const {
  186|      3|   if(m_id.size() < 2) {
  ------------------
  |  Branch (186:7): [True: 0, False: 3]
  ------------------
  187|      0|      throw Invalid_Argument("OID::encode_into: OID is invalid");
  188|      0|   }
  189|       |
  190|      3|   auto append = [](std::vector<uint8_t>& encoding, uint32_t z) {
  191|      3|      if(z <= 0x7F) {
  192|      3|         encoding.push_back(static_cast<uint8_t>(z));
  193|      3|      } else {
  194|      3|         const size_t z7 = (high_bit(z) + 7 - 1) / 7;
  195|       |
  196|      3|         for(size_t j = 0; j != z7; ++j) {
  197|      3|            uint8_t zp = static_cast<uint8_t>(z >> (7 * (z7 - j - 1)) & 0x7F);
  198|       |
  199|      3|            if(j != z7 - 1) {
  200|      3|               zp |= 0x80;
  201|      3|            }
  202|       |
  203|      3|            encoding.push_back(zp);
  204|      3|         }
  205|      3|      }
  206|      3|   };
  207|       |
  208|      3|   std::vector<uint8_t> encoding;
  209|       |
  210|       |   // We know 40 * root can't overflow because root is between 0 and 2
  211|      3|   auto first = checked_add(40 * m_id[0], m_id[1]);
  212|      3|   BOTAN_ASSERT_NOMSG(first.has_value());
  ------------------
  |  |   77|      3|   do {                                                                     \
  |  |   78|      3|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|      3|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 3]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|      3|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 3]
  |  |  ------------------
  ------------------
  213|       |
  214|      3|   append(encoding, *first);
  215|       |
  216|     15|   for(size_t i = 2; i != m_id.size(); ++i) {
  ------------------
  |  Branch (216:22): [True: 12, False: 3]
  ------------------
  217|     12|      append(encoding, m_id[i]);
  218|     12|   }
  219|      3|   der.add_object(ASN1_Type::ObjectId, ASN1_Class::Universal, encoding);
  220|      3|}
asn1_oid.cpp:_ZN5Botan12_GLOBAL__N_115oid_valid_checkENSt3__14spanIKjLm18446744073709551615EEE:
   26|  18.5k|void oid_valid_check(std::span<const uint32_t> oid) {
   27|  18.5k|   BOTAN_ARG_CHECK(oid.size() >= 2, "OID too short to be valid");
  ------------------
  |  |   35|  18.5k|   do {                                                          \
  |  |   36|  18.5k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  18.5k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 18.5k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  18.5k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 18.5k]
  |  |  ------------------
  ------------------
   28|  18.5k|   BOTAN_ARG_CHECK(oid[0] <= 2, "OID root out of range");
  ------------------
  |  |   35|  18.5k|   do {                                                          \
  |  |   36|  18.5k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  18.5k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 18.5k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  18.5k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 18.5k]
  |  |  ------------------
  ------------------
   29|  18.5k|   BOTAN_ARG_CHECK(oid[1] <= 39 || oid[0] == 2, "OID second arc too large");
  ------------------
  |  |   35|  18.5k|   do {                                                          \
  |  |   36|  18.5k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  18.5k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 18.5k, False: 0]
  |  |  |  Branch (37:12): [True: 0, False: 0]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  18.5k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 18.5k]
  |  |  ------------------
  ------------------
   30|       |   // This last is a limitation of using 32 bit integers when decoding
   31|       |   // not a limitation of ASN.1 object identifiers in general
   32|  18.5k|   BOTAN_ARG_CHECK(oid[1] <= 0xFFFFFFAF, "OID second arc too large");
  ------------------
  |  |   35|  18.5k|   do {                                                          \
  |  |   36|  18.5k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  18.5k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 18.5k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  18.5k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 18.5k]
  |  |  ------------------
  ------------------
   33|  18.5k|}
asn1_oid.cpp:_ZZNK5Botan3OID11encode_intoERNS_11DER_EncoderEENK3$_0clERNSt3__16vectorIhNS4_9allocatorIhEEEEj:
  190|     15|   auto append = [](std::vector<uint8_t>& encoding, uint32_t z) {
  191|     15|      if(z <= 0x7F) {
  ------------------
  |  Branch (191:10): [True: 9, False: 6]
  ------------------
  192|      9|         encoding.push_back(static_cast<uint8_t>(z));
  193|      9|      } else {
  194|      6|         const size_t z7 = (high_bit(z) + 7 - 1) / 7;
  195|       |
  196|     18|         for(size_t j = 0; j != z7; ++j) {
  ------------------
  |  Branch (196:28): [True: 12, False: 6]
  ------------------
  197|     12|            uint8_t zp = static_cast<uint8_t>(z >> (7 * (z7 - j - 1)) & 0x7F);
  198|       |
  199|     12|            if(j != z7 - 1) {
  ------------------
  |  Branch (199:16): [True: 6, False: 6]
  ------------------
  200|      6|               zp |= 0x80;
  201|      6|            }
  202|       |
  203|     12|            encoding.push_back(zp);
  204|     12|         }
  205|      6|      }
  206|     15|   };

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

_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|  18.4k|OID_Map& OID_Map::global_registry() {
   17|  18.4k|   static OID_Map g_map;
   18|  18.4k|   return g_map;
   19|  18.4k|}
_ZN5Botan7OID_Map7oid2strERKNS_3OIDE:
   73|      3|std::optional<std::string> OID_Map::oid2str(const OID& oid) {
   74|      3|   if(auto name = lookup_static_oid(oid)) {
  ------------------
  |  Branch (74:12): [True: 3, False: 0]
  ------------------
   75|      3|      return std::string(*name);
   76|      3|   }
   77|       |
   78|      0|   const lock_guard_type<mutex_type> lock(m_mutex);
   79|       |
   80|      0|   auto i = m_oid2str.find(oid);
   81|      0|   if(i != m_oid2str.end()) {
  ------------------
  |  Branch (81:7): [True: 0, False: 0]
  ------------------
   82|      0|      return i->second;
   83|      0|   }
   84|       |
   85|      0|   return {};
   86|      0|}
_ZN5Botan7OID_Map7str2oidENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   88|  18.4k|OID OID_Map::str2oid(std::string_view str) {
   89|  18.4k|   if(auto oid = lookup_static_oid_name(str)) {
  ------------------
  |  Branch (89:12): [True: 18.4k, False: 0]
  ------------------
   90|  18.4k|      return std::move(*oid);
   91|  18.4k|   }
   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|      3|std::optional<std::string_view> OID_Map::lookup_static_oid(const OID& oid) {
   49|      3|   const uint32_t hc = static_cast<uint32_t>(oid.hash_code() % 858701);
   50|       |
   51|      3|   switch(hc) {
   52|      0|      case 0x01506:
  ------------------
  |  Branch (52:7): [True: 0, False: 3]
  ------------------
   53|      0|         return if_match(oid, {1, 2, 840, 10045, 4, 3, 1}, "ECDSA/SHA-224");
   54|      0|      case 0x01507:
  ------------------
  |  Branch (54:7): [True: 0, False: 3]
  ------------------
   55|      0|         return if_match(oid, {1, 2, 840, 10045, 4, 3, 2}, "ECDSA/SHA-256");
   56|      0|      case 0x01508:
  ------------------
  |  Branch (56:7): [True: 0, False: 3]
  ------------------
   57|      0|         return if_match(oid, {1, 2, 840, 10045, 4, 3, 3}, "ECDSA/SHA-384");
   58|      0|      case 0x01509:
  ------------------
  |  Branch (58:7): [True: 0, False: 3]
  ------------------
   59|      0|         return if_match(oid, {1, 2, 840, 10045, 4, 3, 4}, "ECDSA/SHA-512");
   60|      0|      case 0x04C1E:
  ------------------
  |  Branch (60:7): [True: 0, False: 3]
  ------------------
   61|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 3029, 1, 2, 1}, "ElGamal");
   62|      0|      case 0x04E61:
  ------------------
  |  Branch (62:7): [True: 0, False: 3]
  ------------------
   63|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 3029, 1, 5, 1}, "OpenPGP.Curve25519");
   64|      0|      case 0x0779B:
  ------------------
  |  Branch (64:7): [True: 0, False: 3]
  ------------------
   65|      0|         return if_match(oid, {1, 2, 840, 113549, 2, 5}, "MD5");
   66|      0|      case 0x0779D:
  ------------------
  |  Branch (66:7): [True: 0, False: 3]
  ------------------
   67|      0|         return if_match(oid, {1, 2, 840, 113549, 2, 7}, "HMAC(SHA-1)");
   68|      0|      case 0x0779E:
  ------------------
  |  Branch (68:7): [True: 0, False: 3]
  ------------------
   69|      0|         return if_match(oid, {1, 2, 840, 113549, 2, 8}, "HMAC(SHA-224)");
   70|      0|      case 0x0779F:
  ------------------
  |  Branch (70:7): [True: 0, False: 3]
  ------------------
   71|      0|         return if_match(oid, {1, 2, 840, 113549, 2, 9}, "HMAC(SHA-256)");
   72|      0|      case 0x077A0:
  ------------------
  |  Branch (72:7): [True: 0, False: 3]
  ------------------
   73|      0|         return if_match(oid, {1, 2, 840, 113549, 2, 10}, "HMAC(SHA-384)");
   74|      0|      case 0x077A1:
  ------------------
  |  Branch (74:7): [True: 0, False: 3]
  ------------------
   75|      0|         return if_match(oid, {1, 2, 840, 113549, 2, 11}, "HMAC(SHA-512)");
   76|      0|      case 0x077A3:
  ------------------
  |  Branch (76:7): [True: 0, False: 3]
  ------------------
   77|      0|         return if_match(oid, {1, 2, 840, 113549, 2, 13}, "HMAC(SHA-512-256)");
   78|      0|      case 0x0785E:
  ------------------
  |  Branch (78:7): [True: 0, False: 3]
  ------------------
   79|      0|         return if_match(oid, {1, 2, 840, 113549, 3, 7}, "TripleDES/CBC");
   80|      0|      case 0x0C904:
  ------------------
  |  Branch (80:7): [True: 0, False: 3]
  ------------------
   81|      0|         return if_match(oid, {1, 0, 14888, 3, 0, 5}, "ECKCDSA");
   82|      0|      case 0x11547:
  ------------------
  |  Branch (82:7): [True: 0, False: 3]
  ------------------
   83|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 12, 1, 1}, "SphincsPlus-shake-128s-r3.1");
   84|      0|      case 0x11548:
  ------------------
  |  Branch (84:7): [True: 0, False: 3]
  ------------------
   85|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 12, 1, 2}, "SphincsPlus-shake-128f-r3.1");
   86|      0|      case 0x11549:
  ------------------
  |  Branch (86:7): [True: 0, False: 3]
  ------------------
   87|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 12, 1, 3}, "SphincsPlus-shake-192s-r3.1");
   88|      0|      case 0x1154A:
  ------------------
  |  Branch (88:7): [True: 0, False: 3]
  ------------------
   89|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 12, 1, 4}, "SphincsPlus-shake-192f-r3.1");
   90|      0|      case 0x1154B:
  ------------------
  |  Branch (90:7): [True: 0, False: 3]
  ------------------
   91|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 12, 1, 5}, "SphincsPlus-shake-256s-r3.1");
   92|      0|      case 0x1154C:
  ------------------
  |  Branch (92:7): [True: 0, False: 3]
  ------------------
   93|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 12, 1, 6}, "SphincsPlus-shake-256f-r3.1");
   94|      0|      case 0x11608:
  ------------------
  |  Branch (94:7): [True: 0, False: 3]
  ------------------
   95|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 12, 2, 1}, "SphincsPlus-sha2-128s-r3.1");
   96|      0|      case 0x11609:
  ------------------
  |  Branch (96:7): [True: 0, False: 3]
  ------------------
   97|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 12, 2, 2}, "SphincsPlus-sha2-128f-r3.1");
   98|      0|      case 0x1160A:
  ------------------
  |  Branch (98:7): [True: 0, False: 3]
  ------------------
   99|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 12, 2, 3}, "SphincsPlus-sha2-192s-r3.1");
  100|      0|      case 0x1160B:
  ------------------
  |  Branch (100:7): [True: 0, False: 3]
  ------------------
  101|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 12, 2, 4}, "SphincsPlus-sha2-192f-r3.1");
  102|      0|      case 0x1160C:
  ------------------
  |  Branch (102:7): [True: 0, False: 3]
  ------------------
  103|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 12, 2, 5}, "SphincsPlus-sha2-256s-r3.1");
  104|      0|      case 0x1160D:
  ------------------
  |  Branch (104:7): [True: 0, False: 3]
  ------------------
  105|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 12, 2, 6}, "SphincsPlus-sha2-256f-r3.1");
  106|      0|      case 0x116C9:
  ------------------
  |  Branch (106:7): [True: 0, False: 3]
  ------------------
  107|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 12, 3, 1}, "SphincsPlus-haraka-128s-r3.1");
  108|      0|      case 0x116CA:
  ------------------
  |  Branch (108:7): [True: 0, False: 3]
  ------------------
  109|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 12, 3, 2}, "SphincsPlus-haraka-128f-r3.1");
  110|      0|      case 0x116CB:
  ------------------
  |  Branch (110:7): [True: 0, False: 3]
  ------------------
  111|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 12, 3, 3}, "SphincsPlus-haraka-192s-r3.1");
  112|      0|      case 0x116CC:
  ------------------
  |  Branch (112:7): [True: 0, False: 3]
  ------------------
  113|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 12, 3, 4}, "SphincsPlus-haraka-192f-r3.1");
  114|      0|      case 0x116CD:
  ------------------
  |  Branch (114:7): [True: 0, False: 3]
  ------------------
  115|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 12, 3, 5}, "SphincsPlus-haraka-256s-r3.1");
  116|      0|      case 0x116CE:
  ------------------
  |  Branch (116:7): [True: 0, False: 3]
  ------------------
  117|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 12, 3, 6}, "SphincsPlus-haraka-256f-r3.1");
  118|      0|      case 0x1533B:
  ------------------
  |  Branch (118:7): [True: 0, False: 3]
  ------------------
  119|      0|         return if_match(oid, {1, 2, 156, 10197, 1, 104, 2}, "SM4/CBC");
  120|      0|      case 0x15341:
  ------------------
  |  Branch (120:7): [True: 0, False: 3]
  ------------------
  121|      0|         return if_match(oid, {1, 2, 156, 10197, 1, 104, 8}, "SM4/GCM");
  122|      0|      case 0x1539D:
  ------------------
  |  Branch (122:7): [True: 0, False: 3]
  ------------------
  123|      0|         return if_match(oid, {1, 2, 156, 10197, 1, 104, 100}, "SM4/OCB");
  124|      0|      case 0x187D7:
  ------------------
  |  Branch (124:7): [True: 0, False: 3]
  ------------------
  125|      0|         return if_match(oid, {1, 3, 14, 3, 2, 7}, "DES/CBC");
  126|      0|      case 0x187EA:
  ------------------
  |  Branch (126:7): [True: 0, False: 3]
  ------------------
  127|      0|         return if_match(oid, {1, 3, 14, 3, 2, 26}, "SHA-1");
  128|      0|      case 0x19933:
  ------------------
  |  Branch (128:7): [True: 0, False: 3]
  ------------------
  129|      0|         return if_match(oid, {1, 3, 132, 0, 8}, "secp160r1");
  130|      0|      case 0x19934:
  ------------------
  |  Branch (130:7): [True: 0, False: 3]
  ------------------
  131|      0|         return if_match(oid, {1, 3, 132, 0, 9}, "secp160k1");
  132|      1|      case 0x19935:
  ------------------
  |  Branch (132:7): [True: 1, False: 2]
  ------------------
  133|      1|         return if_match(oid, {1, 3, 132, 0, 10}, "secp256k1");
  134|      0|      case 0x19949:
  ------------------
  |  Branch (134:7): [True: 0, False: 3]
  ------------------
  135|      0|         return if_match(oid, {1, 3, 132, 0, 30}, "secp160r2");
  136|      0|      case 0x1994A:
  ------------------
  |  Branch (136:7): [True: 0, False: 3]
  ------------------
  137|      0|         return if_match(oid, {1, 3, 132, 0, 31}, "secp192k1");
  138|      0|      case 0x1994B:
  ------------------
  |  Branch (138:7): [True: 0, False: 3]
  ------------------
  139|      0|         return if_match(oid, {1, 3, 132, 0, 32}, "secp224k1");
  140|      0|      case 0x1994C:
  ------------------
  |  Branch (140:7): [True: 0, False: 3]
  ------------------
  141|      0|         return if_match(oid, {1, 3, 132, 0, 33}, "secp224r1");
  142|      0|      case 0x1994D:
  ------------------
  |  Branch (142:7): [True: 0, False: 3]
  ------------------
  143|      0|         return if_match(oid, {1, 3, 132, 0, 34}, "secp384r1");
  144|      0|      case 0x1994E:
  ------------------
  |  Branch (144:7): [True: 0, False: 3]
  ------------------
  145|      0|         return if_match(oid, {1, 3, 132, 0, 35}, "secp521r1");
  146|      0|      case 0x199F8:
  ------------------
  |  Branch (146:7): [True: 0, False: 3]
  ------------------
  147|      0|         return if_match(oid, {1, 3, 132, 1, 12}, "ECDH");
  148|      0|      case 0x1E7BF:
  ------------------
  |  Branch (148:7): [True: 0, False: 3]
  ------------------
  149|      0|         return if_match(oid, {1, 2, 156, 10197, 1, 301, 1}, "SM2");
  150|      0|      case 0x1E7C0:
  ------------------
  |  Branch (150:7): [True: 0, False: 3]
  ------------------
  151|      0|         return if_match(oid, {1, 2, 156, 10197, 1, 301, 2}, "SM2_Kex");
  152|      0|      case 0x1E7C1:
  ------------------
  |  Branch (152:7): [True: 0, False: 3]
  ------------------
  153|      0|         return if_match(oid, {1, 2, 156, 10197, 1, 301, 3}, "SM2_Enc");
  154|      0|      case 0x21960:
  ------------------
  |  Branch (154:7): [True: 0, False: 3]
  ------------------
  155|      0|         return if_match(oid, {1, 3, 36, 3, 3, 1, 2}, "RSA/PKCS1v15(RIPEMD-160)");
  156|      0|      case 0x2198A:
  ------------------
  |  Branch (156:7): [True: 0, False: 3]
  ------------------
  157|      0|         return if_match(oid, {1, 2, 840, 113533, 7, 66, 10}, "CAST-128/CBC");
  158|      0|      case 0x2198F:
  ------------------
  |  Branch (158:7): [True: 0, False: 3]
  ------------------
  159|      0|         return if_match(oid, {1, 2, 840, 113533, 7, 66, 15}, "KeyWrap.CAST-128");
  160|      0|      case 0x227C0:
  ------------------
  |  Branch (160:7): [True: 0, False: 3]
  ------------------
  161|      0|         return if_match(oid, {1, 3, 101, 110}, "X25519");
  162|      0|      case 0x227C1:
  ------------------
  |  Branch (162:7): [True: 0, False: 3]
  ------------------
  163|      0|         return if_match(oid, {1, 3, 101, 111}, "X448");
  164|      0|      case 0x227C2:
  ------------------
  |  Branch (164:7): [True: 0, False: 3]
  ------------------
  165|      0|         return if_match(oid, {1, 3, 101, 112}, "Ed25519");
  166|      0|      case 0x227C3:
  ------------------
  |  Branch (166:7): [True: 0, False: 3]
  ------------------
  167|      0|         return if_match(oid, {1, 3, 101, 113}, "Ed448");
  168|      0|      case 0x27565:
  ------------------
  |  Branch (168:7): [True: 0, False: 3]
  ------------------
  169|      0|         return if_match(oid, {1, 3, 6, 1, 5, 5, 7, 48, 1, 1}, "PKIX.OCSP.BasicResponse");
  170|      0|      case 0x27566:
  ------------------
  |  Branch (170:7): [True: 0, False: 3]
  ------------------
  171|      0|         return if_match(oid, {1, 3, 6, 1, 5, 5, 7, 48, 1, 2}, "PKIX.OCSP.Nonce");
  172|      0|      case 0x27569:
  ------------------
  |  Branch (172:7): [True: 0, False: 3]
  ------------------
  173|      0|         return if_match(oid, {1, 3, 6, 1, 5, 5, 7, 48, 1, 5}, "PKIX.OCSP.NoCheck");
  174|      0|      case 0x29F7C:
  ------------------
  |  Branch (174:7): [True: 0, False: 3]
  ------------------
  175|      0|         return if_match(oid, {1, 2, 410, 200004, 1, 100, 4, 3}, "ECKCDSA/SHA-1");
  176|      0|      case 0x29F7D:
  ------------------
  |  Branch (176:7): [True: 0, False: 3]
  ------------------
  177|      0|         return if_match(oid, {1, 2, 410, 200004, 1, 100, 4, 4}, "ECKCDSA/SHA-224");
  178|      0|      case 0x29F7E:
  ------------------
  |  Branch (178:7): [True: 0, False: 3]
  ------------------
  179|      0|         return if_match(oid, {1, 2, 410, 200004, 1, 100, 4, 5}, "ECKCDSA/SHA-256");
  180|      0|      case 0x2AC3B:
  ------------------
  |  Branch (180:7): [True: 0, False: 3]
  ------------------
  181|      0|         return if_match(oid, {2, 5, 29, 32, 0}, "X509v3.AnyPolicy");
  182|      0|      case 0x2B000:
  ------------------
  |  Branch (182:7): [True: 0, False: 3]
  ------------------
  183|      0|         return if_match(oid, {2, 5, 29, 37, 0}, "X509v3.AnyExtendedKeyUsage");
  184|      0|      case 0x2B5C9:
  ------------------
  |  Branch (184:7): [True: 0, False: 3]
  ------------------
  185|      0|         return if_match(oid, {1, 2, 840, 10045, 2, 1}, "ECDSA");
  186|      0|      case 0x2B74B:
  ------------------
  |  Branch (186:7): [True: 0, False: 3]
  ------------------
  187|      0|         return if_match(oid, {1, 2, 840, 10045, 4, 1}, "ECDSA/SHA-1");
  188|      0|      case 0x3474A:
  ------------------
  |  Branch (188:7): [True: 0, False: 3]
  ------------------
  189|      0|         return if_match(oid, {1, 2, 840, 10046, 2, 1}, "DH");
  190|      0|      case 0x38D6D:
  ------------------
  |  Branch (190:7): [True: 0, False: 3]
  ------------------
  191|      0|         return if_match(oid, {1, 2, 643, 7, 1, 2, 1, 1, 1}, "gost_256A");
  192|      0|      case 0x38D6E:
  ------------------
  |  Branch (192:7): [True: 0, False: 3]
  ------------------
  193|      0|         return if_match(oid, {1, 2, 643, 7, 1, 2, 1, 1, 2}, "gost_256B");
  194|      0|      case 0x38E2E:
  ------------------
  |  Branch (194:7): [True: 0, False: 3]
  ------------------
  195|      0|         return if_match(oid, {1, 2, 643, 7, 1, 2, 1, 2, 1}, "gost_512A");
  196|      0|      case 0x38E2F:
  ------------------
  |  Branch (196:7): [True: 0, False: 3]
  ------------------
  197|      0|         return if_match(oid, {1, 2, 643, 7, 1, 2, 1, 2, 2}, "gost_512B");
  198|      0|      case 0x38F2C:
  ------------------
  |  Branch (198:7): [True: 0, False: 3]
  ------------------
  199|      0|         return if_match(oid, {1, 2, 643, 2, 2, 3}, "GOST-34.10/GOST-R-34.11-94");
  200|      0|      case 0x38F3C:
  ------------------
  |  Branch (200:7): [True: 0, False: 3]
  ------------------
  201|      0|         return if_match(oid, {1, 2, 643, 2, 2, 19}, "GOST-34.10");
  202|      0|      case 0x3D7B8:
  ------------------
  |  Branch (202:7): [True: 0, False: 3]
  ------------------
  203|      0|         return if_match(oid, {0, 3, 4401, 5, 3, 1, 9, 6}, "Camellia-128/GCM");
  204|      0|      case 0x3D7CC:
  ------------------
  |  Branch (204:7): [True: 0, False: 3]
  ------------------
  205|      0|         return if_match(oid, {0, 3, 4401, 5, 3, 1, 9, 26}, "Camellia-192/GCM");
  206|      0|      case 0x3D7E0:
  ------------------
  |  Branch (206:7): [True: 0, False: 3]
  ------------------
  207|      0|         return if_match(oid, {0, 3, 4401, 5, 3, 1, 9, 46}, "Camellia-256/GCM");
  208|      0|      case 0x3F20F:
  ------------------
  |  Branch (208:7): [True: 0, False: 3]
  ------------------
  209|      0|         return if_match(oid, {1, 3, 36, 3, 2, 1}, "RIPEMD-160");
  210|      0|      case 0x4266E:
  ------------------
  |  Branch (210:7): [True: 0, False: 3]
  ------------------
  211|      0|         return if_match(oid, {0, 4, 0, 127, 0, 15, 1, 1, 13, 0}, "XMSS");
  212|      0|      case 0x478C4:
  ------------------
  |  Branch (212:7): [True: 0, False: 3]
  ------------------
  213|      0|         return if_match(oid, {1, 2, 410, 200004, 1, 4}, "SEED/CBC");
  214|      1|      case 0x47D98:
  ------------------
  |  Branch (214:7): [True: 1, False: 2]
  ------------------
  215|      1|         return if_match(oid, {1, 2, 156, 10197, 1, 301}, "sm2p256v1");
  216|      0|      case 0x47DFC:
  ------------------
  |  Branch (216:7): [True: 0, False: 3]
  ------------------
  217|      0|         return if_match(oid, {1, 2, 156, 10197, 1, 401}, "SM3");
  218|      0|      case 0x47E60:
  ------------------
  |  Branch (218:7): [True: 0, False: 3]
  ------------------
  219|      0|         return if_match(oid, {1, 2, 156, 10197, 1, 501}, "SM2_Sig/SM3");
  220|      0|      case 0x47E63:
  ------------------
  |  Branch (220:7): [True: 0, False: 3]
  ------------------
  221|      0|         return if_match(oid, {1, 2, 156, 10197, 1, 504}, "RSA/PKCS1v15(SM3)");
  222|      0|      case 0x52B13:
  ------------------
  |  Branch (222:7): [True: 0, False: 3]
  ------------------
  223|      0|         return if_match(oid, {1, 2, 643, 3, 131, 1, 1}, "GOST.INN");
  224|      0|      case 0x635AE:
  ------------------
  |  Branch (224:7): [True: 0, False: 3]
  ------------------
  225|      0|         return if_match(oid, {1, 2, 250, 1, 223, 101, 256, 1}, "frp256v1");
  226|      0|      case 0x6A784:
  ------------------
  |  Branch (226:7): [True: 0, False: 3]
  ------------------
  227|      0|         return if_match(oid, {1, 2, 840, 113549, 1, 12, 10, 1, 1}, "PKCS12.KeyBag");
  228|      0|      case 0x6A785:
  ------------------
  |  Branch (228:7): [True: 0, False: 3]
  ------------------
  229|      0|         return if_match(oid, {1, 2, 840, 113549, 1, 12, 10, 1, 2}, "PKCS12.PKCS8ShroudedKeyBag");
  230|      0|      case 0x6A786:
  ------------------
  |  Branch (230:7): [True: 0, False: 3]
  ------------------
  231|      0|         return if_match(oid, {1, 2, 840, 113549, 1, 12, 10, 1, 3}, "PKCS12.CertBag");
  232|      0|      case 0x6A787:
  ------------------
  |  Branch (232:7): [True: 0, False: 3]
  ------------------
  233|      0|         return if_match(oid, {1, 2, 840, 113549, 1, 12, 10, 1, 4}, "PKCS12.CRLBag");
  234|      0|      case 0x6A788:
  ------------------
  |  Branch (234:7): [True: 0, False: 3]
  ------------------
  235|      0|         return if_match(oid, {1, 2, 840, 113549, 1, 12, 10, 1, 5}, "PKCS12.SecretBag");
  236|      0|      case 0x6A789:
  ------------------
  |  Branch (236:7): [True: 0, False: 3]
  ------------------
  237|      0|         return if_match(oid, {1, 2, 840, 113549, 1, 12, 10, 1, 6}, "PKCS12.SafeContentsBag");
  238|      0|      case 0x6EB86:
  ------------------
  |  Branch (238:7): [True: 0, False: 3]
  ------------------
  239|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 6, 1}, "GOST-34.10-2012-256/SHA-256");
  240|      0|      case 0x6EC47:
  ------------------
  |  Branch (240:7): [True: 0, False: 3]
  ------------------
  241|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 7, 1}, "Kyber-512-r3");
  242|      0|      case 0x6EC48:
  ------------------
  |  Branch (242:7): [True: 0, False: 3]
  ------------------
  243|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 7, 2}, "Kyber-768-r3");
  244|      0|      case 0x6EC49:
  ------------------
  |  Branch (244:7): [True: 0, False: 3]
  ------------------
  245|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 7, 3}, "Kyber-1024-r3");
  246|      0|      case 0x6EDC9:
  ------------------
  |  Branch (246:7): [True: 0, False: 3]
  ------------------
  247|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 9, 1}, "Dilithium-4x4-r3");
  248|      0|      case 0x6EDCA:
  ------------------
  |  Branch (248:7): [True: 0, False: 3]
  ------------------
  249|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 9, 2}, "Dilithium-6x5-r3");
  250|      0|      case 0x6EDCB:
  ------------------
  |  Branch (250:7): [True: 0, False: 3]
  ------------------
  251|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 9, 3}, "Dilithium-8x7-r3");
  252|      0|      case 0x6EE8A:
  ------------------
  |  Branch (252:7): [True: 0, False: 3]
  ------------------
  253|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 10, 1}, "Dilithium-4x4-AES-r3");
  254|      0|      case 0x6EE8B:
  ------------------
  |  Branch (254:7): [True: 0, False: 3]
  ------------------
  255|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 10, 2}, "Dilithium-6x5-AES-r3");
  256|      0|      case 0x6EE8C:
  ------------------
  |  Branch (256:7): [True: 0, False: 3]
  ------------------
  257|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 10, 3}, "Dilithium-8x7-AES-r3");
  258|      0|      case 0x6EF4B:
  ------------------
  |  Branch (258:7): [True: 0, False: 3]
  ------------------
  259|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 11, 1}, "Kyber-512-90s-r3");
  260|      0|      case 0x6EF4C:
  ------------------
  |  Branch (260:7): [True: 0, False: 3]
  ------------------
  261|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 11, 2}, "Kyber-768-90s-r3");
  262|      0|      case 0x6EF4D:
  ------------------
  |  Branch (262:7): [True: 0, False: 3]
  ------------------
  263|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 11, 3}, "Kyber-1024-90s-r3");
  264|      0|      case 0x6F18E:
  ------------------
  |  Branch (264:7): [True: 0, False: 3]
  ------------------
  265|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 14, 1}, "FrodoKEM-640-SHAKE");
  266|      0|      case 0x6F18F:
  ------------------
  |  Branch (266:7): [True: 0, False: 3]
  ------------------
  267|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 14, 2}, "FrodoKEM-976-SHAKE");
  268|      0|      case 0x6F190:
  ------------------
  |  Branch (268:7): [True: 0, False: 3]
  ------------------
  269|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 14, 3}, "FrodoKEM-1344-SHAKE");
  270|      0|      case 0x6F24F:
  ------------------
  |  Branch (270:7): [True: 0, False: 3]
  ------------------
  271|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 15, 1}, "FrodoKEM-640-AES");
  272|      0|      case 0x6F250:
  ------------------
  |  Branch (272:7): [True: 0, False: 3]
  ------------------
  273|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 15, 2}, "FrodoKEM-976-AES");
  274|      0|      case 0x6F251:
  ------------------
  |  Branch (274:7): [True: 0, False: 3]
  ------------------
  275|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 15, 3}, "FrodoKEM-1344-AES");
  276|      0|      case 0x6F310:
  ------------------
  |  Branch (276:7): [True: 0, False: 3]
  ------------------
  277|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 16, 1}, "eFrodoKEM-640-SHAKE");
  278|      0|      case 0x6F311:
  ------------------
  |  Branch (278:7): [True: 0, False: 3]
  ------------------
  279|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 16, 2}, "eFrodoKEM-976-SHAKE");
  280|      0|      case 0x6F312:
  ------------------
  |  Branch (280:7): [True: 0, False: 3]
  ------------------
  281|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 16, 3}, "eFrodoKEM-1344-SHAKE");
  282|      0|      case 0x6F3D1:
  ------------------
  |  Branch (282:7): [True: 0, False: 3]
  ------------------
  283|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 17, 1}, "eFrodoKEM-640-AES");
  284|      0|      case 0x6F3D2:
  ------------------
  |  Branch (284:7): [True: 0, False: 3]
  ------------------
  285|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 17, 2}, "eFrodoKEM-976-AES");
  286|      0|      case 0x6F3D3:
  ------------------
  |  Branch (286:7): [True: 0, False: 3]
  ------------------
  287|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 17, 3}, "eFrodoKEM-1344-AES");
  288|      0|      case 0x6F492:
  ------------------
  |  Branch (288:7): [True: 0, False: 3]
  ------------------
  289|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 18, 1}, "ClassicMcEliece_6688128pc");
  290|      0|      case 0x6F493:
  ------------------
  |  Branch (290:7): [True: 0, False: 3]
  ------------------
  291|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 18, 2}, "ClassicMcEliece_6688128pcf");
  292|      0|      case 0x6F494:
  ------------------
  |  Branch (292:7): [True: 0, False: 3]
  ------------------
  293|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 18, 3}, "ClassicMcEliece_6960119pc");
  294|      0|      case 0x6F495:
  ------------------
  |  Branch (294:7): [True: 0, False: 3]
  ------------------
  295|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 18, 4}, "ClassicMcEliece_6960119pcf");
  296|      0|      case 0x6F496:
  ------------------
  |  Branch (296:7): [True: 0, False: 3]
  ------------------
  297|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 18, 5}, "ClassicMcEliece_8192128pc");
  298|      0|      case 0x6F497:
  ------------------
  |  Branch (298:7): [True: 0, False: 3]
  ------------------
  299|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 18, 6}, "ClassicMcEliece_8192128pcf");
  300|      0|      case 0x6F79D:
  ------------------
  |  Branch (300:7): [True: 0, False: 3]
  ------------------
  301|      0|         return if_match(oid, {2, 16, 840, 1, 113730, 1, 13}, "Certificate Comment");
  302|      0|      case 0x701A0:
  ------------------
  |  Branch (302:7): [True: 0, False: 3]
  ------------------
  303|      0|         return if_match(oid, {1, 3, 36, 3, 3, 2, 5, 2, 1}, "ECGDSA");
  304|      0|      case 0x70322:
  ------------------
  |  Branch (304:7): [True: 0, False: 3]
  ------------------
  305|      0|         return if_match(oid, {1, 3, 36, 3, 3, 2, 5, 4, 1}, "ECGDSA/RIPEMD-160");
  306|      0|      case 0x70323:
  ------------------
  |  Branch (306:7): [True: 0, False: 3]
  ------------------
  307|      0|         return if_match(oid, {1, 3, 36, 3, 3, 2, 5, 4, 2}, "ECGDSA/SHA-1");
  308|      0|      case 0x70324:
  ------------------
  |  Branch (308:7): [True: 0, False: 3]
  ------------------
  309|      0|         return if_match(oid, {1, 3, 36, 3, 3, 2, 5, 4, 3}, "ECGDSA/SHA-224");
  310|      0|      case 0x70325:
  ------------------
  |  Branch (310:7): [True: 0, False: 3]
  ------------------
  311|      0|         return if_match(oid, {1, 3, 36, 3, 3, 2, 5, 4, 4}, "ECGDSA/SHA-256");
  312|      0|      case 0x70326:
  ------------------
  |  Branch (312:7): [True: 0, False: 3]
  ------------------
  313|      0|         return if_match(oid, {1, 3, 36, 3, 3, 2, 5, 4, 5}, "ECGDSA/SHA-384");
  314|      0|      case 0x70327:
  ------------------
  |  Branch (314:7): [True: 0, False: 3]
  ------------------
  315|      0|         return if_match(oid, {1, 3, 36, 3, 3, 2, 5, 4, 6}, "ECGDSA/SHA-512");
  316|      0|      case 0x72B21:
  ------------------
  |  Branch (316:7): [True: 0, False: 3]
  ------------------
  317|      0|         return if_match(oid, {1, 2, 643, 7, 1, 1, 1, 1}, "GOST-34.10-2012-256");
  318|      0|      case 0x72B22:
  ------------------
  |  Branch (318:7): [True: 0, False: 3]
  ------------------
  319|      0|         return if_match(oid, {1, 2, 643, 7, 1, 1, 1, 2}, "GOST-34.10-2012-512");
  320|      0|      case 0x72BE3:
  ------------------
  |  Branch (320:7): [True: 0, False: 3]
  ------------------
  321|      0|         return if_match(oid, {1, 2, 643, 7, 1, 1, 2, 2}, "Streebog-256");
  322|      0|      case 0x72BE4:
  ------------------
  |  Branch (322:7): [True: 0, False: 3]
  ------------------
  323|      0|         return if_match(oid, {1, 2, 643, 7, 1, 1, 2, 3}, "Streebog-512");
  324|      0|      case 0x72CA4:
  ------------------
  |  Branch (324:7): [True: 0, False: 3]
  ------------------
  325|      0|         return if_match(oid, {1, 2, 643, 7, 1, 1, 3, 2}, "GOST-34.10-2012-256/Streebog-256");
  326|      0|      case 0x72CA5:
  ------------------
  |  Branch (326:7): [True: 0, False: 3]
  ------------------
  327|      0|         return if_match(oid, {1, 2, 643, 7, 1, 1, 3, 3}, "GOST-34.10-2012-512/Streebog-512");
  328|      0|      case 0x7C7C7:
  ------------------
  |  Branch (328:7): [True: 0, False: 3]
  ------------------
  329|      0|         return if_match(oid, {1, 2, 840, 113549, 1, 9, 22, 1}, "PKCS9.X509Certificate");
  330|      0|      case 0x7C7C8:
  ------------------
  |  Branch (330:7): [True: 0, False: 3]
  ------------------
  331|      0|         return if_match(oid, {1, 2, 840, 113549, 1, 9, 22, 2}, "PKCS9.SDSICertificate");
  332|      0|      case 0x7C888:
  ------------------
  |  Branch (332:7): [True: 0, False: 3]
  ------------------
  333|      0|         return if_match(oid, {1, 2, 840, 113549, 1, 9, 23, 1}, "PKCS9.X509CRL");
  334|      0|      case 0x7E10F:
  ------------------
  |  Branch (334:7): [True: 0, False: 3]
  ------------------
  335|      0|         return if_match(oid, {2, 5, 4, 3}, "X520.CommonName");
  336|      0|      case 0x7E110:
  ------------------
  |  Branch (336:7): [True: 0, False: 3]
  ------------------
  337|      0|         return if_match(oid, {2, 5, 4, 4}, "X520.Surname");
  338|      0|      case 0x7E111:
  ------------------
  |  Branch (338:7): [True: 0, False: 3]
  ------------------
  339|      0|         return if_match(oid, {2, 5, 4, 5}, "X520.SerialNumber");
  340|      0|      case 0x7E112:
  ------------------
  |  Branch (340:7): [True: 0, False: 3]
  ------------------
  341|      0|         return if_match(oid, {2, 5, 4, 6}, "X520.Country");
  342|      0|      case 0x7E113:
  ------------------
  |  Branch (342:7): [True: 0, False: 3]
  ------------------
  343|      0|         return if_match(oid, {2, 5, 4, 7}, "X520.Locality");
  344|      0|      case 0x7E114:
  ------------------
  |  Branch (344:7): [True: 0, False: 3]
  ------------------
  345|      0|         return if_match(oid, {2, 5, 4, 8}, "X520.State");
  346|      0|      case 0x7E115:
  ------------------
  |  Branch (346:7): [True: 0, False: 3]
  ------------------
  347|      0|         return if_match(oid, {2, 5, 4, 9}, "X520.StreetAddress");
  348|      0|      case 0x7E116:
  ------------------
  |  Branch (348:7): [True: 0, False: 3]
  ------------------
  349|      0|         return if_match(oid, {2, 5, 4, 10}, "X520.Organization");
  350|      0|      case 0x7E117:
  ------------------
  |  Branch (350:7): [True: 0, False: 3]
  ------------------
  351|      0|         return if_match(oid, {2, 5, 4, 11}, "X520.OrganizationalUnit");
  352|      0|      case 0x7E118:
  ------------------
  |  Branch (352:7): [True: 0, False: 3]
  ------------------
  353|      0|         return if_match(oid, {2, 5, 4, 12}, "X520.Title");
  354|      0|      case 0x7E136:
  ------------------
  |  Branch (354:7): [True: 0, False: 3]
  ------------------
  355|      0|         return if_match(oid, {2, 5, 4, 42}, "X520.GivenName");
  356|      0|      case 0x7E137:
  ------------------
  |  Branch (356:7): [True: 0, False: 3]
  ------------------
  357|      0|         return if_match(oid, {2, 5, 4, 43}, "X520.Initials");
  358|      0|      case 0x7E138:
  ------------------
  |  Branch (358:7): [True: 0, False: 3]
  ------------------
  359|      0|         return if_match(oid, {2, 5, 4, 44}, "X520.GenerationalQualifier");
  360|      0|      case 0x7E13A:
  ------------------
  |  Branch (360:7): [True: 0, False: 3]
  ------------------
  361|      0|         return if_match(oid, {2, 5, 4, 46}, "X520.DNQualifier");
  362|      0|      case 0x7E14D:
  ------------------
  |  Branch (362:7): [True: 0, False: 3]
  ------------------
  363|      0|         return if_match(oid, {2, 5, 4, 65}, "X520.Pseudonym");
  364|      0|      case 0x7F3F3:
  ------------------
  |  Branch (364:7): [True: 0, False: 3]
  ------------------
  365|      0|         return if_match(oid, {2, 5, 29, 14}, "X509v3.SubjectKeyIdentifier");
  366|      0|      case 0x7F3F4:
  ------------------
  |  Branch (366:7): [True: 0, False: 3]
  ------------------
  367|      0|         return if_match(oid, {2, 5, 29, 15}, "X509v3.KeyUsage");
  368|      0|      case 0x7F3F5:
  ------------------
  |  Branch (368:7): [True: 0, False: 3]
  ------------------
  369|      0|         return if_match(oid, {2, 5, 29, 16}, "X509v3.PrivateKeyUsagePeriod");
  370|      0|      case 0x7F3F6:
  ------------------
  |  Branch (370:7): [True: 0, False: 3]
  ------------------
  371|      0|         return if_match(oid, {2, 5, 29, 17}, "X509v3.SubjectAlternativeName");
  372|      0|      case 0x7F3F7:
  ------------------
  |  Branch (372:7): [True: 0, False: 3]
  ------------------
  373|      0|         return if_match(oid, {2, 5, 29, 18}, "X509v3.IssuerAlternativeName");
  374|      0|      case 0x7F3F8:
  ------------------
  |  Branch (374:7): [True: 0, False: 3]
  ------------------
  375|      0|         return if_match(oid, {2, 5, 29, 19}, "X509v3.BasicConstraints");
  376|      0|      case 0x7F3F9:
  ------------------
  |  Branch (376:7): [True: 0, False: 3]
  ------------------
  377|      0|         return if_match(oid, {2, 5, 29, 20}, "X509v3.CRLNumber");
  378|      0|      case 0x7F3FA:
  ------------------
  |  Branch (378:7): [True: 0, False: 3]
  ------------------
  379|      0|         return if_match(oid, {2, 5, 29, 21}, "X509v3.ReasonCode");
  380|      0|      case 0x7F3FC:
  ------------------
  |  Branch (380:7): [True: 0, False: 3]
  ------------------
  381|      0|         return if_match(oid, {2, 5, 29, 23}, "X509v3.HoldInstructionCode");
  382|      0|      case 0x7F3FD:
  ------------------
  |  Branch (382:7): [True: 0, False: 3]
  ------------------
  383|      0|         return if_match(oid, {2, 5, 29, 24}, "X509v3.InvalidityDate");
  384|      0|      case 0x7F401:
  ------------------
  |  Branch (384:7): [True: 0, False: 3]
  ------------------
  385|      0|         return if_match(oid, {2, 5, 29, 28}, "X509v3.CRLIssuingDistributionPoint");
  386|      0|      case 0x7F403:
  ------------------
  |  Branch (386:7): [True: 0, False: 3]
  ------------------
  387|      0|         return if_match(oid, {2, 5, 29, 30}, "X509v3.NameConstraints");
  388|      0|      case 0x7F404:
  ------------------
  |  Branch (388:7): [True: 0, False: 3]
  ------------------
  389|      0|         return if_match(oid, {2, 5, 29, 31}, "X509v3.CRLDistributionPoints");
  390|      0|      case 0x7F405:
  ------------------
  |  Branch (390:7): [True: 0, False: 3]
  ------------------
  391|      0|         return if_match(oid, {2, 5, 29, 32}, "X509v3.CertificatePolicies");
  392|      0|      case 0x7F408:
  ------------------
  |  Branch (392:7): [True: 0, False: 3]
  ------------------
  393|      0|         return if_match(oid, {2, 5, 29, 35}, "X509v3.AuthorityKeyIdentifier");
  394|      0|      case 0x7F409:
  ------------------
  |  Branch (394:7): [True: 0, False: 3]
  ------------------
  395|      0|         return if_match(oid, {2, 5, 29, 36}, "X509v3.PolicyConstraints");
  396|      0|      case 0x7F40A:
  ------------------
  |  Branch (396:7): [True: 0, False: 3]
  ------------------
  397|      0|         return if_match(oid, {2, 5, 29, 37}, "X509v3.ExtendedKeyUsage");
  398|      0|      case 0x7F41D:
  ------------------
  |  Branch (398:7): [True: 0, False: 3]
  ------------------
  399|      0|         return if_match(oid, {2, 5, 29, 56}, "X509v3.NoRevocationAvailable");
  400|      0|      case 0x80B84:
  ------------------
  |  Branch (400:7): [True: 0, False: 3]
  ------------------
  401|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 3, 2, 1}, "AES-128/OCB");
  402|      0|      case 0x80B85:
  ------------------
  |  Branch (402:7): [True: 0, False: 3]
  ------------------
  403|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 3, 2, 2}, "AES-192/OCB");
  404|      0|      case 0x80B86:
  ------------------
  |  Branch (404:7): [True: 0, False: 3]
  ------------------
  405|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 3, 2, 3}, "AES-256/OCB");
  406|      0|      case 0x80B87:
  ------------------
  |  Branch (406:7): [True: 0, False: 3]
  ------------------
  407|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 3, 2, 4}, "Serpent/OCB");
  408|      0|      case 0x80B88:
  ------------------
  |  Branch (408:7): [True: 0, False: 3]
  ------------------
  409|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 3, 2, 5}, "Twofish/OCB");
  410|      0|      case 0x80B89:
  ------------------
  |  Branch (410:7): [True: 0, False: 3]
  ------------------
  411|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 3, 2, 6}, "Camellia-128/OCB");
  412|      0|      case 0x80B8A:
  ------------------
  |  Branch (412:7): [True: 0, False: 3]
  ------------------
  413|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 3, 2, 7}, "Camellia-192/OCB");
  414|      0|      case 0x80B8B:
  ------------------
  |  Branch (414:7): [True: 0, False: 3]
  ------------------
  415|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 3, 2, 8}, "Camellia-256/OCB");
  416|      0|      case 0x80D06:
  ------------------
  |  Branch (416:7): [True: 0, False: 3]
  ------------------
  417|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 3, 4, 1}, "AES-128/SIV");
  418|      0|      case 0x80D07:
  ------------------
  |  Branch (418:7): [True: 0, False: 3]
  ------------------
  419|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 3, 4, 2}, "AES-192/SIV");
  420|      0|      case 0x80D08:
  ------------------
  |  Branch (420:7): [True: 0, False: 3]
  ------------------
  421|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 3, 4, 3}, "AES-256/SIV");
  422|      0|      case 0x80D09:
  ------------------
  |  Branch (422:7): [True: 0, False: 3]
  ------------------
  423|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 3, 4, 4}, "Serpent/SIV");
  424|      0|      case 0x80D0A:
  ------------------
  |  Branch (424:7): [True: 0, False: 3]
  ------------------
  425|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 3, 4, 5}, "Twofish/SIV");
  426|      0|      case 0x80D0B:
  ------------------
  |  Branch (426:7): [True: 0, False: 3]
  ------------------
  427|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 3, 4, 6}, "Camellia-128/SIV");
  428|      0|      case 0x80D0C:
  ------------------
  |  Branch (428:7): [True: 0, False: 3]
  ------------------
  429|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 3, 4, 7}, "Camellia-192/SIV");
  430|      0|      case 0x80D0D:
  ------------------
  |  Branch (430:7): [True: 0, False: 3]
  ------------------
  431|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 3, 4, 8}, "Camellia-256/SIV");
  432|      0|      case 0x80D0E:
  ------------------
  |  Branch (432:7): [True: 0, False: 3]
  ------------------
  433|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 3, 4, 9}, "SM4/SIV");
  434|      0|      case 0x84C6A:
  ------------------
  |  Branch (434:7): [True: 0, False: 3]
  ------------------
  435|      0|         return if_match(oid, {1, 2, 392, 200011, 61, 1, 1, 1, 2}, "Camellia-128/CBC");
  436|      0|      case 0x84C6B:
  ------------------
  |  Branch (436:7): [True: 0, False: 3]
  ------------------
  437|      0|         return if_match(oid, {1, 2, 392, 200011, 61, 1, 1, 1, 3}, "Camellia-192/CBC");
  438|      0|      case 0x84C6C:
  ------------------
  |  Branch (438:7): [True: 0, False: 3]
  ------------------
  439|      0|         return if_match(oid, {1, 2, 392, 200011, 61, 1, 1, 1, 4}, "Camellia-256/CBC");
  440|      0|      case 0x88CD3:
  ------------------
  |  Branch (440:7): [True: 0, False: 3]
  ------------------
  441|      0|         return if_match(oid, {1, 2, 840, 113549, 1, 9, 16, 3, 6}, "KeyWrap.TripleDES");
  442|      0|      case 0x88CD5:
  ------------------
  |  Branch (442:7): [True: 0, False: 3]
  ------------------
  443|      0|         return if_match(oid, {1, 2, 840, 113549, 1, 9, 16, 3, 8}, "Compression.Zlib");
  444|      0|      case 0x88CDE:
  ------------------
  |  Branch (444:7): [True: 0, False: 3]
  ------------------
  445|      0|         return if_match(oid, {1, 2, 840, 113549, 1, 9, 16, 3, 17}, "HSS-LMS");
  446|      0|      case 0x88CDF:
  ------------------
  |  Branch (446:7): [True: 0, False: 3]
  ------------------
  447|      0|         return if_match(oid, {1, 2, 840, 113549, 1, 9, 16, 3, 18}, "ChaCha20Poly1305");
  448|      0|      case 0x92296:
  ------------------
  |  Branch (448:7): [True: 0, False: 3]
  ------------------
  449|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 1, 2}, "AES-128/CBC");
  450|      0|      case 0x92299:
  ------------------
  |  Branch (450:7): [True: 0, False: 3]
  ------------------
  451|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 1, 5}, "KeyWrap.AES-128");
  452|      0|      case 0x9229A:
  ------------------
  |  Branch (452:7): [True: 0, False: 3]
  ------------------
  453|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 1, 6}, "AES-128/GCM");
  454|      0|      case 0x9229B:
  ------------------
  |  Branch (454:7): [True: 0, False: 3]
  ------------------
  455|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 1, 7}, "AES-128/CCM");
  456|      0|      case 0x922AA:
  ------------------
  |  Branch (456:7): [True: 0, False: 3]
  ------------------
  457|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 1, 22}, "AES-192/CBC");
  458|      0|      case 0x922AD:
  ------------------
  |  Branch (458:7): [True: 0, False: 3]
  ------------------
  459|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 1, 25}, "KeyWrap.AES-192");
  460|      0|      case 0x922AE:
  ------------------
  |  Branch (460:7): [True: 0, False: 3]
  ------------------
  461|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 1, 26}, "AES-192/GCM");
  462|      0|      case 0x922AF:
  ------------------
  |  Branch (462:7): [True: 0, False: 3]
  ------------------
  463|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 1, 27}, "AES-192/CCM");
  464|      0|      case 0x922BE:
  ------------------
  |  Branch (464:7): [True: 0, False: 3]
  ------------------
  465|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 1, 42}, "AES-256/CBC");
  466|      0|      case 0x922C1:
  ------------------
  |  Branch (466:7): [True: 0, False: 3]
  ------------------
  467|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 1, 45}, "KeyWrap.AES-256");
  468|      0|      case 0x922C2:
  ------------------
  |  Branch (468:7): [True: 0, False: 3]
  ------------------
  469|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 1, 46}, "AES-256/GCM");
  470|      0|      case 0x922C3:
  ------------------
  |  Branch (470:7): [True: 0, False: 3]
  ------------------
  471|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 1, 47}, "AES-256/CCM");
  472|      0|      case 0x92356:
  ------------------
  |  Branch (472:7): [True: 0, False: 3]
  ------------------
  473|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 2, 1}, "SHA-256");
  474|      0|      case 0x92357:
  ------------------
  |  Branch (474:7): [True: 0, False: 3]
  ------------------
  475|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 2, 2}, "SHA-384");
  476|      0|      case 0x92358:
  ------------------
  |  Branch (476:7): [True: 0, False: 3]
  ------------------
  477|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 2, 3}, "SHA-512");
  478|      0|      case 0x92359:
  ------------------
  |  Branch (478:7): [True: 0, False: 3]
  ------------------
  479|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 2, 4}, "SHA-224");
  480|      0|      case 0x9235B:
  ------------------
  |  Branch (480:7): [True: 0, False: 3]
  ------------------
  481|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 2, 6}, "SHA-512-256");
  482|      0|      case 0x9235C:
  ------------------
  |  Branch (482:7): [True: 0, False: 3]
  ------------------
  483|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 2, 7}, "SHA-3(224)");
  484|      0|      case 0x9235D:
  ------------------
  |  Branch (484:7): [True: 0, False: 3]
  ------------------
  485|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 2, 8}, "SHA-3(256)");
  486|      0|      case 0x9235E:
  ------------------
  |  Branch (486:7): [True: 0, False: 3]
  ------------------
  487|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 2, 9}, "SHA-3(384)");
  488|      0|      case 0x9235F:
  ------------------
  |  Branch (488:7): [True: 0, False: 3]
  ------------------
  489|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 2, 10}, "SHA-3(512)");
  490|      0|      case 0x92360:
  ------------------
  |  Branch (490:7): [True: 0, False: 3]
  ------------------
  491|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 2, 11}, "SHAKE-128");
  492|      0|      case 0x92361:
  ------------------
  |  Branch (492:7): [True: 0, False: 3]
  ------------------
  493|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 2, 12}, "SHAKE-256");
  494|      0|      case 0x92417:
  ------------------
  |  Branch (494:7): [True: 0, False: 3]
  ------------------
  495|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 1}, "DSA/SHA-224");
  496|      0|      case 0x92418:
  ------------------
  |  Branch (496:7): [True: 0, False: 3]
  ------------------
  497|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 2}, "DSA/SHA-256");
  498|      0|      case 0x92419:
  ------------------
  |  Branch (498:7): [True: 0, False: 3]
  ------------------
  499|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 3}, "DSA/SHA-384");
  500|      0|      case 0x9241A:
  ------------------
  |  Branch (500:7): [True: 0, False: 3]
  ------------------
  501|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 4}, "DSA/SHA-512");
  502|      0|      case 0x9241B:
  ------------------
  |  Branch (502:7): [True: 0, False: 3]
  ------------------
  503|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 5}, "DSA/SHA-3(224)");
  504|      0|      case 0x9241C:
  ------------------
  |  Branch (504:7): [True: 0, False: 3]
  ------------------
  505|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 6}, "DSA/SHA-3(256)");
  506|      0|      case 0x9241D:
  ------------------
  |  Branch (506:7): [True: 0, False: 3]
  ------------------
  507|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 7}, "DSA/SHA-3(384)");
  508|      0|      case 0x9241E:
  ------------------
  |  Branch (508:7): [True: 0, False: 3]
  ------------------
  509|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 8}, "DSA/SHA-3(512)");
  510|      0|      case 0x9241F:
  ------------------
  |  Branch (510:7): [True: 0, False: 3]
  ------------------
  511|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 9}, "ECDSA/SHA-3(224)");
  512|      0|      case 0x92420:
  ------------------
  |  Branch (512:7): [True: 0, False: 3]
  ------------------
  513|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 10}, "ECDSA/SHA-3(256)");
  514|      0|      case 0x92421:
  ------------------
  |  Branch (514:7): [True: 0, False: 3]
  ------------------
  515|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 11}, "ECDSA/SHA-3(384)");
  516|      0|      case 0x92422:
  ------------------
  |  Branch (516:7): [True: 0, False: 3]
  ------------------
  517|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 12}, "ECDSA/SHA-3(512)");
  518|      0|      case 0x92423:
  ------------------
  |  Branch (518:7): [True: 0, False: 3]
  ------------------
  519|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 13}, "RSA/PKCS1v15(SHA-3(224))");
  520|      0|      case 0x92424:
  ------------------
  |  Branch (520:7): [True: 0, False: 3]
  ------------------
  521|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 14}, "RSA/PKCS1v15(SHA-3(256))");
  522|      0|      case 0x92425:
  ------------------
  |  Branch (522:7): [True: 0, False: 3]
  ------------------
  523|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 15}, "RSA/PKCS1v15(SHA-3(384))");
  524|      0|      case 0x92426:
  ------------------
  |  Branch (524:7): [True: 0, False: 3]
  ------------------
  525|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 16}, "RSA/PKCS1v15(SHA-3(512))");
  526|      0|      case 0x92427:
  ------------------
  |  Branch (526:7): [True: 0, False: 3]
  ------------------
  527|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 17}, "ML-DSA-4x4");
  528|      0|      case 0x92428:
  ------------------
  |  Branch (528:7): [True: 0, False: 3]
  ------------------
  529|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 18}, "ML-DSA-6x5");
  530|      0|      case 0x92429:
  ------------------
  |  Branch (530:7): [True: 0, False: 3]
  ------------------
  531|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 19}, "ML-DSA-8x7");
  532|      0|      case 0x9242A:
  ------------------
  |  Branch (532:7): [True: 0, False: 3]
  ------------------
  533|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 20}, "SLH-DSA-SHA2-128s");
  534|      0|      case 0x9242B:
  ------------------
  |  Branch (534:7): [True: 0, False: 3]
  ------------------
  535|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 21}, "SLH-DSA-SHA2-128f");
  536|      0|      case 0x9242C:
  ------------------
  |  Branch (536:7): [True: 0, False: 3]
  ------------------
  537|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 22}, "SLH-DSA-SHA2-192s");
  538|      0|      case 0x9242D:
  ------------------
  |  Branch (538:7): [True: 0, False: 3]
  ------------------
  539|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 23}, "SLH-DSA-SHA2-192f");
  540|      0|      case 0x9242E:
  ------------------
  |  Branch (540:7): [True: 0, False: 3]
  ------------------
  541|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 24}, "SLH-DSA-SHA2-256s");
  542|      0|      case 0x9242F:
  ------------------
  |  Branch (542:7): [True: 0, False: 3]
  ------------------
  543|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 25}, "SLH-DSA-SHA2-256f");
  544|      0|      case 0x92430:
  ------------------
  |  Branch (544:7): [True: 0, False: 3]
  ------------------
  545|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 26}, "SLH-DSA-SHAKE-128s");
  546|      0|      case 0x92431:
  ------------------
  |  Branch (546:7): [True: 0, False: 3]
  ------------------
  547|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 27}, "SLH-DSA-SHAKE-128f");
  548|      0|      case 0x92432:
  ------------------
  |  Branch (548:7): [True: 0, False: 3]
  ------------------
  549|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 28}, "SLH-DSA-SHAKE-192s");
  550|      0|      case 0x92433:
  ------------------
  |  Branch (550:7): [True: 0, False: 3]
  ------------------
  551|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 29}, "SLH-DSA-SHAKE-192f");
  552|      0|      case 0x92434:
  ------------------
  |  Branch (552:7): [True: 0, False: 3]
  ------------------
  553|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 30}, "SLH-DSA-SHAKE-256s");
  554|      0|      case 0x92435:
  ------------------
  |  Branch (554:7): [True: 0, False: 3]
  ------------------
  555|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 31}, "SLH-DSA-SHAKE-256f");
  556|      0|      case 0x924D8:
  ------------------
  |  Branch (556:7): [True: 0, False: 3]
  ------------------
  557|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 4, 1}, "ML-KEM-512");
  558|      0|      case 0x924D9:
  ------------------
  |  Branch (558:7): [True: 0, False: 3]
  ------------------
  559|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 4, 2}, "ML-KEM-768");
  560|      0|      case 0x924DA:
  ------------------
  |  Branch (560:7): [True: 0, False: 3]
  ------------------
  561|      0|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 4, 3}, "ML-KEM-1024");
  562|      0|      case 0x9479F:
  ------------------
  |  Branch (562:7): [True: 0, False: 3]
  ------------------
  563|      0|         return if_match(oid, {1, 3, 6, 1, 5, 5, 7, 1, 1}, "PKIX.AuthorityInformationAccess");
  564|      0|      case 0x947A5:
  ------------------
  |  Branch (564:7): [True: 0, False: 3]
  ------------------
  565|      0|         return if_match(oid, {1, 3, 6, 1, 5, 5, 7, 1, 7}, "PKIX.IpAddrBlocks");
  566|      0|      case 0x947A6:
  ------------------
  |  Branch (566:7): [True: 0, False: 3]
  ------------------
  567|      0|         return if_match(oid, {1, 3, 6, 1, 5, 5, 7, 1, 8}, "PKIX.AutonomousSysIds");
  568|      0|      case 0x947B8:
  ------------------
  |  Branch (568:7): [True: 0, False: 3]
  ------------------
  569|      0|         return if_match(oid, {1, 3, 6, 1, 5, 5, 7, 1, 26}, "PKIX.TNAuthList");
  570|      0|      case 0x94921:
  ------------------
  |  Branch (570:7): [True: 0, False: 3]
  ------------------
  571|      0|         return if_match(oid, {1, 3, 6, 1, 5, 5, 7, 3, 1}, "PKIX.ServerAuth");
  572|      0|      case 0x94922:
  ------------------
  |  Branch (572:7): [True: 0, False: 3]
  ------------------
  573|      0|         return if_match(oid, {1, 3, 6, 1, 5, 5, 7, 3, 2}, "PKIX.ClientAuth");
  574|      0|      case 0x94923:
  ------------------
  |  Branch (574:7): [True: 0, False: 3]
  ------------------
  575|      0|         return if_match(oid, {1, 3, 6, 1, 5, 5, 7, 3, 3}, "PKIX.CodeSigning");
  576|      0|      case 0x94924:
  ------------------
  |  Branch (576:7): [True: 0, False: 3]
  ------------------
  577|      0|         return if_match(oid, {1, 3, 6, 1, 5, 5, 7, 3, 4}, "PKIX.EmailProtection");
  578|      0|      case 0x94925:
  ------------------
  |  Branch (578:7): [True: 0, False: 3]
  ------------------
  579|      0|         return if_match(oid, {1, 3, 6, 1, 5, 5, 7, 3, 5}, "PKIX.IPsecEndSystem");
  580|      0|      case 0x94926:
  ------------------
  |  Branch (580:7): [True: 0, False: 3]
  ------------------
  581|      0|         return if_match(oid, {1, 3, 6, 1, 5, 5, 7, 3, 6}, "PKIX.IPsecTunnel");
  582|      0|      case 0x94927:
  ------------------
  |  Branch (582:7): [True: 0, False: 3]
  ------------------
  583|      0|         return if_match(oid, {1, 3, 6, 1, 5, 5, 7, 3, 7}, "PKIX.IPsecUser");
  584|      0|      case 0x94928:
  ------------------
  |  Branch (584:7): [True: 0, False: 3]
  ------------------
  585|      0|         return if_match(oid, {1, 3, 6, 1, 5, 5, 7, 3, 8}, "PKIX.TimeStamping");
  586|      0|      case 0x94929:
  ------------------
  |  Branch (586:7): [True: 0, False: 3]
  ------------------
  587|      0|         return if_match(oid, {1, 3, 6, 1, 5, 5, 7, 3, 9}, "PKIX.OCSPSigning");
  588|      0|      case 0x94CEA:
  ------------------
  |  Branch (588:7): [True: 0, False: 3]
  ------------------
  589|      0|         return if_match(oid, {1, 3, 6, 1, 5, 5, 7, 8, 5}, "PKIX.XMPPAddr");
  590|      0|      case 0x94CEE:
  ------------------
  |  Branch (590:7): [True: 0, False: 3]
  ------------------
  591|      0|         return if_match(oid, {1, 3, 6, 1, 5, 5, 7, 8, 9}, "PKIX.SmtpUTF8Mailbox");
  592|      0|      case 0x954DB:
  ------------------
  |  Branch (592:7): [True: 0, False: 3]
  ------------------
  593|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 311, 20, 2, 2}, "Microsoft SmartcardLogon");
  594|      0|      case 0x954DC:
  ------------------
  |  Branch (594:7): [True: 0, False: 3]
  ------------------
  595|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 311, 20, 2, 3}, "Microsoft UPN");
  596|      0|      case 0x96B0E:
  ------------------
  |  Branch (596:7): [True: 0, False: 3]
  ------------------
  597|      0|         return if_match(oid, {1, 3, 6, 1, 5, 5, 7, 48, 1}, "PKIX.OCSP");
  598|      0|      case 0x96B0F:
  ------------------
  |  Branch (598:7): [True: 0, False: 3]
  ------------------
  599|      0|         return if_match(oid, {1, 3, 6, 1, 5, 5, 7, 48, 2}, "PKIX.CertificateAuthorityIssuers");
  600|      0|      case 0x96C77:
  ------------------
  |  Branch (600:7): [True: 0, False: 3]
  ------------------
  601|      0|         return if_match(oid, {1, 2, 840, 113549, 1, 12, 1, 3}, "PBE-SHA1-3DES");
  602|      0|      case 0x96C78:
  ------------------
  |  Branch (602:7): [True: 0, False: 3]
  ------------------
  603|      0|         return if_match(oid, {1, 2, 840, 113549, 1, 12, 1, 4}, "PBE-SHA1-2DES");
  604|      0|      case 0x9A008:
  ------------------
  |  Branch (604:7): [True: 0, False: 3]
  ------------------
  605|      0|         return if_match(oid, {1, 3, 36, 3, 3, 2, 8, 1, 1, 1}, "brainpool160r1");
  606|      0|      case 0x9A00A:
  ------------------
  |  Branch (606:7): [True: 0, False: 3]
  ------------------
  607|      0|         return if_match(oid, {1, 3, 36, 3, 3, 2, 8, 1, 1, 3}, "brainpool192r1");
  608|      0|      case 0x9A00C:
  ------------------
  |  Branch (608:7): [True: 0, False: 3]
  ------------------
  609|      0|         return if_match(oid, {1, 3, 36, 3, 3, 2, 8, 1, 1, 5}, "brainpool224r1");
  610|      0|      case 0x9A00E:
  ------------------
  |  Branch (610:7): [True: 0, False: 3]
  ------------------
  611|      0|         return if_match(oid, {1, 3, 36, 3, 3, 2, 8, 1, 1, 7}, "brainpool256r1");
  612|      0|      case 0x9A010:
  ------------------
  |  Branch (612:7): [True: 0, False: 3]
  ------------------
  613|      0|         return if_match(oid, {1, 3, 36, 3, 3, 2, 8, 1, 1, 9}, "brainpool320r1");
  614|      0|      case 0x9A012:
  ------------------
  |  Branch (614:7): [True: 0, False: 3]
  ------------------
  615|      0|         return if_match(oid, {1, 3, 36, 3, 3, 2, 8, 1, 1, 11}, "brainpool384r1");
  616|      0|      case 0x9A014:
  ------------------
  |  Branch (616:7): [True: 0, False: 3]
  ------------------
  617|      0|         return if_match(oid, {1, 3, 36, 3, 3, 2, 8, 1, 1, 13}, "brainpool512r1");
  618|      0|      case 0xA0D61:
  ------------------
  |  Branch (618:7): [True: 0, False: 3]
  ------------------
  619|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 3}, "McEliece");
  620|      0|      case 0xA0D63:
  ------------------
  |  Branch (620:7): [True: 0, False: 3]
  ------------------
  621|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 5}, "XMSS-draft6");
  622|      0|      case 0xA0D66:
  ------------------
  |  Branch (622:7): [True: 0, False: 3]
  ------------------
  623|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 8}, "XMSS-draft12");
  624|      0|      case 0xA0D6B:
  ------------------
  |  Branch (624:7): [True: 0, False: 3]
  ------------------
  625|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 13}, "HSS-LMS-Private-Key");
  626|      0|      case 0xA0EE1:
  ------------------
  |  Branch (626:7): [True: 0, False: 3]
  ------------------
  627|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 3, 1}, "Serpent/CBC");
  628|      0|      case 0xA0EE2:
  ------------------
  |  Branch (628:7): [True: 0, False: 3]
  ------------------
  629|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 3, 2}, "Threefish-512/CBC");
  630|      0|      case 0xA0EE3:
  ------------------
  |  Branch (630:7): [True: 0, False: 3]
  ------------------
  631|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 3, 3}, "Twofish/CBC");
  632|      0|      case 0xA0F45:
  ------------------
  |  Branch (632:7): [True: 0, False: 3]
  ------------------
  633|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 3, 101}, "Serpent/GCM");
  634|      0|      case 0xA0F46:
  ------------------
  |  Branch (634:7): [True: 0, False: 3]
  ------------------
  635|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 3, 102}, "Twofish/GCM");
  636|      0|      case 0xA0FA2:
  ------------------
  |  Branch (636:7): [True: 0, False: 3]
  ------------------
  637|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 4, 1}, "numsp256d1");
  638|      0|      case 0xA0FA3:
  ------------------
  |  Branch (638:7): [True: 0, False: 3]
  ------------------
  639|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 4, 2}, "numsp384d1");
  640|      0|      case 0xA0FA4:
  ------------------
  |  Branch (640:7): [True: 0, False: 3]
  ------------------
  641|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 4, 3}, "numsp512d1");
  642|      0|      case 0xA244B:
  ------------------
  |  Branch (642:7): [True: 0, False: 3]
  ------------------
  643|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 22554, 5, 1, 1}, "ClassicMcEliece_348864");
  644|      0|      case 0xA244C:
  ------------------
  |  Branch (644:7): [True: 0, False: 3]
  ------------------
  645|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 22554, 5, 1, 2}, "ClassicMcEliece_348864f");
  646|      0|      case 0xA244D:
  ------------------
  |  Branch (646:7): [True: 0, False: 3]
  ------------------
  647|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 22554, 5, 1, 3}, "ClassicMcEliece_460896");
  648|      0|      case 0xA244E:
  ------------------
  |  Branch (648:7): [True: 0, False: 3]
  ------------------
  649|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 22554, 5, 1, 4}, "ClassicMcEliece_460896f");
  650|      0|      case 0xA244F:
  ------------------
  |  Branch (650:7): [True: 0, False: 3]
  ------------------
  651|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 22554, 5, 1, 5}, "ClassicMcEliece_6688128");
  652|      0|      case 0xA2450:
  ------------------
  |  Branch (652:7): [True: 0, False: 3]
  ------------------
  653|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 22554, 5, 1, 6}, "ClassicMcEliece_6688128f");
  654|      0|      case 0xA2451:
  ------------------
  |  Branch (654:7): [True: 0, False: 3]
  ------------------
  655|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 22554, 5, 1, 7}, "ClassicMcEliece_6960119");
  656|      0|      case 0xA2452:
  ------------------
  |  Branch (656:7): [True: 0, False: 3]
  ------------------
  657|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 22554, 5, 1, 8}, "ClassicMcEliece_6960119f");
  658|      0|      case 0xA2453:
  ------------------
  |  Branch (658:7): [True: 0, False: 3]
  ------------------
  659|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 22554, 5, 1, 9}, "ClassicMcEliece_8192128");
  660|      0|      case 0xA2454:
  ------------------
  |  Branch (660:7): [True: 0, False: 3]
  ------------------
  661|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 22554, 5, 1, 10}, "ClassicMcEliece_8192128f");
  662|      0|      case 0xAF989:
  ------------------
  |  Branch (662:7): [True: 0, False: 3]
  ------------------
  663|      0|         return if_match(oid, {1, 2, 840, 113549, 1, 1, 1}, "RSA");
  664|      0|      case 0xAF98A:
  ------------------
  |  Branch (664:7): [True: 0, False: 3]
  ------------------
  665|      0|         return if_match(oid, {1, 2, 840, 113549, 1, 1, 2}, "RSA/PKCS1v15(MD2)");
  666|      0|      case 0xAF98C:
  ------------------
  |  Branch (666:7): [True: 0, False: 3]
  ------------------
  667|      0|         return if_match(oid, {1, 2, 840, 113549, 1, 1, 4}, "RSA/PKCS1v15(MD5)");
  668|      0|      case 0xAF98D:
  ------------------
  |  Branch (668:7): [True: 0, False: 3]
  ------------------
  669|      0|         return if_match(oid, {1, 2, 840, 113549, 1, 1, 5}, "RSA/PKCS1v15(SHA-1)");
  670|      0|      case 0xAF98F:
  ------------------
  |  Branch (670:7): [True: 0, False: 3]
  ------------------
  671|      0|         return if_match(oid, {1, 2, 840, 113549, 1, 1, 7}, "RSA/OAEP");
  672|      0|      case 0xAF990:
  ------------------
  |  Branch (672:7): [True: 0, False: 3]
  ------------------
  673|      0|         return if_match(oid, {1, 2, 840, 113549, 1, 1, 8}, "MGF1");
  674|      0|      case 0xAF992:
  ------------------
  |  Branch (674:7): [True: 0, False: 3]
  ------------------
  675|      0|         return if_match(oid, {1, 2, 840, 113549, 1, 1, 10}, "RSA/PSS");
  676|      0|      case 0xAF993:
  ------------------
  |  Branch (676:7): [True: 0, False: 3]
  ------------------
  677|      0|         return if_match(oid, {1, 2, 840, 113549, 1, 1, 11}, "RSA/PKCS1v15(SHA-256)");
  678|      0|      case 0xAF994:
  ------------------
  |  Branch (678:7): [True: 0, False: 3]
  ------------------
  679|      0|         return if_match(oid, {1, 2, 840, 113549, 1, 1, 12}, "RSA/PKCS1v15(SHA-384)");
  680|      0|      case 0xAF995:
  ------------------
  |  Branch (680:7): [True: 0, False: 3]
  ------------------
  681|      0|         return if_match(oid, {1, 2, 840, 113549, 1, 1, 13}, "RSA/PKCS1v15(SHA-512)");
  682|      0|      case 0xAF996:
  ------------------
  |  Branch (682:7): [True: 0, False: 3]
  ------------------
  683|      0|         return if_match(oid, {1, 2, 840, 113549, 1, 1, 14}, "RSA/PKCS1v15(SHA-224)");
  684|      0|      case 0xAF998:
  ------------------
  |  Branch (684:7): [True: 0, False: 3]
  ------------------
  685|      0|         return if_match(oid, {1, 2, 840, 113549, 1, 1, 16}, "RSA/PKCS1v15(SHA-512-256)");
  686|      0|      case 0xAFC98:
  ------------------
  |  Branch (686:7): [True: 0, False: 3]
  ------------------
  687|      0|         return if_match(oid, {1, 2, 840, 113549, 1, 5, 12}, "PKCS5.PBKDF2");
  688|      0|      case 0xAFC99:
  ------------------
  |  Branch (688:7): [True: 0, False: 3]
  ------------------
  689|      0|         return if_match(oid, {1, 2, 840, 113549, 1, 5, 13}, "PBE-PKCS5v20");
  690|      0|      case 0xAFE0F:
  ------------------
  |  Branch (690:7): [True: 0, False: 3]
  ------------------
  691|      0|         return if_match(oid, {1, 2, 840, 113549, 1, 7, 1}, "PKCS7.Data");
  692|      0|      case 0xAFE14:
  ------------------
  |  Branch (692:7): [True: 0, False: 3]
  ------------------
  693|      0|         return if_match(oid, {1, 2, 840, 113549, 1, 7, 6}, "PKCS7.EncryptedData");
  694|      0|      case 0xAFF91:
  ------------------
  |  Branch (694:7): [True: 0, False: 3]
  ------------------
  695|      0|         return if_match(oid, {1, 2, 840, 113549, 1, 9, 1}, "PKCS9.EmailAddress");
  696|      0|      case 0xAFF92:
  ------------------
  |  Branch (696:7): [True: 0, False: 3]
  ------------------
  697|      0|         return if_match(oid, {1, 2, 840, 113549, 1, 9, 2}, "PKCS9.UnstructuredName");
  698|      0|      case 0xAFF93:
  ------------------
  |  Branch (698:7): [True: 0, False: 3]
  ------------------
  699|      0|         return if_match(oid, {1, 2, 840, 113549, 1, 9, 3}, "PKCS9.ContentType");
  700|      0|      case 0xAFF94:
  ------------------
  |  Branch (700:7): [True: 0, False: 3]
  ------------------
  701|      0|         return if_match(oid, {1, 2, 840, 113549, 1, 9, 4}, "PKCS9.MessageDigest");
  702|      0|      case 0xAFF97:
  ------------------
  |  Branch (702:7): [True: 0, False: 3]
  ------------------
  703|      0|         return if_match(oid, {1, 2, 840, 113549, 1, 9, 7}, "PKCS9.ChallengePassword");
  704|      0|      case 0xAFF9E:
  ------------------
  |  Branch (704:7): [True: 0, False: 3]
  ------------------
  705|      0|         return if_match(oid, {1, 2, 840, 113549, 1, 9, 14}, "PKCS9.ExtensionRequest");
  706|      0|      case 0xAFFA4:
  ------------------
  |  Branch (706:7): [True: 0, False: 3]
  ------------------
  707|      0|         return if_match(oid, {1, 2, 840, 113549, 1, 9, 20}, "PKCS9.FriendlyName");
  708|      0|      case 0xAFFA5:
  ------------------
  |  Branch (708:7): [True: 0, False: 3]
  ------------------
  709|      0|         return if_match(oid, {1, 2, 840, 113549, 1, 9, 21}, "PKCS9.LocalKeyId");
  710|      0|      case 0xC0226:
  ------------------
  |  Branch (710:7): [True: 0, False: 3]
  ------------------
  711|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 11591, 4, 11}, "Scrypt");
  712|      0|      case 0xC0A67:
  ------------------
  |  Branch (712:7): [True: 0, False: 3]
  ------------------
  713|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 11591, 15, 1}, "OpenPGP.Ed25519");
  714|      0|      case 0xC4CE5:
  ------------------
  |  Branch (714:7): [True: 0, False: 3]
  ------------------
  715|      0|         return if_match(oid, {1, 2, 643, 100, 1}, "GOST.OGRN");
  716|      0|      case 0xC4D53:
  ------------------
  |  Branch (716:7): [True: 0, False: 3]
  ------------------
  717|      0|         return if_match(oid, {1, 2, 643, 100, 111}, "GOST.SubjectSigningTool");
  718|      0|      case 0xC4D54:
  ------------------
  |  Branch (718:7): [True: 0, False: 3]
  ------------------
  719|      0|         return if_match(oid, {1, 2, 643, 100, 112}, "GOST.IssuerSigningTool");
  720|      0|      case 0xC9C50:
  ------------------
  |  Branch (720:7): [True: 0, False: 3]
  ------------------
  721|      0|         return if_match(oid, {1, 2, 840, 10045, 3, 1, 1}, "secp192r1");
  722|      0|      case 0xC9C51:
  ------------------
  |  Branch (722:7): [True: 0, False: 3]
  ------------------
  723|      0|         return if_match(oid, {1, 2, 840, 10045, 3, 1, 2}, "x962_p192v2");
  724|      0|      case 0xC9C52:
  ------------------
  |  Branch (724:7): [True: 0, False: 3]
  ------------------
  725|      0|         return if_match(oid, {1, 2, 840, 10045, 3, 1, 3}, "x962_p192v3");
  726|      0|      case 0xC9C53:
  ------------------
  |  Branch (726:7): [True: 0, False: 3]
  ------------------
  727|      0|         return if_match(oid, {1, 2, 840, 10045, 3, 1, 4}, "x962_p239v1");
  728|      0|      case 0xC9C54:
  ------------------
  |  Branch (728:7): [True: 0, False: 3]
  ------------------
  729|      0|         return if_match(oid, {1, 2, 840, 10045, 3, 1, 5}, "x962_p239v2");
  730|      0|      case 0xC9C55:
  ------------------
  |  Branch (730:7): [True: 0, False: 3]
  ------------------
  731|      0|         return if_match(oid, {1, 2, 840, 10045, 3, 1, 6}, "x962_p239v3");
  732|      1|      case 0xC9C56:
  ------------------
  |  Branch (732:7): [True: 1, False: 2]
  ------------------
  733|      1|         return if_match(oid, {1, 2, 840, 10045, 3, 1, 7}, "secp256r1");
  734|      0|      case 0xCFA13:
  ------------------
  |  Branch (734:7): [True: 0, False: 3]
  ------------------
  735|      0|         return if_match(oid, {1, 2, 840, 10040, 4, 1}, "DSA");
  736|      0|      case 0xCFA15:
  ------------------
  |  Branch (736:7): [True: 0, False: 3]
  ------------------
  737|      0|         return if_match(oid, {1, 2, 840, 10040, 4, 3}, "DSA/SHA-1");
  738|      0|      default:
  ------------------
  |  Branch (738:7): [True: 0, False: 3]
  ------------------
  739|      0|         return {};
  740|      3|   }
  741|      3|}
_ZN5Botan7OID_Map22lookup_static_oid_nameENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  744|  18.4k|std::optional<OID> OID_Map::lookup_static_oid_name(std::string_view req) {
  745|  18.4k|   const uint32_t hc = hash_oid_name(req);
  746|       |
  747|  18.4k|   switch(hc) {
  748|      0|      case 0x00545:
  ------------------
  |  Branch (748:7): [True: 0, False: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  755|      0|         return if_match(req, "MD5", {1, 2, 840, 113549, 2, 5});
  756|      0|      case 0x02293:
  ------------------
  |  Branch (756:7): [True: 0, False: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  761|      0|         return if_match(req, "secp160k1", {1, 3, 132, 0, 9});
  762|      0|      case 0x044B3:
  ------------------
  |  Branch (762:7): [True: 0, False: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  765|      0|         return if_match(req, "secp160r1", {1, 3, 132, 0, 8});
  766|      0|      case 0x048B3:
  ------------------
  |  Branch (766:7): [True: 0, False: 18.4k]
  ------------------
  767|      0|         return if_match(req, "secp160r2", {1, 3, 132, 0, 30});
  768|      0|      case 0x05CDA:
  ------------------
  |  Branch (768:7): [True: 0, False: 18.4k]
  ------------------
  769|      0|         return if_match(req, "X520.Country", {2, 5, 4, 6});
  770|      0|      case 0x07783:
  ------------------
  |  Branch (770:7): [True: 0, False: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  777|      0|         return if_match(req, "DES/CBC", {1, 3, 14, 3, 2, 7});
  778|      0|      case 0x0B2D6:
  ------------------
  |  Branch (778:7): [True: 0, False: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  799|      0|         return if_match(req, "secp192k1", {1, 3, 132, 0, 31});
  800|      0|      case 0x113D6:
  ------------------
  |  Branch (800:7): [True: 0, False: 18.4k]
  ------------------
  801|      0|         return if_match(req, "X520.DNQualifier", {2, 5, 4, 46});
  802|      0|      case 0x11A7A:
  ------------------
  |  Branch (802:7): [True: 0, False: 18.4k]
  ------------------
  803|      0|         return if_match(req, "secp192r1", {1, 2, 840, 10045, 3, 1, 1});
  804|      0|      case 0x12096:
  ------------------
  |  Branch (804:7): [True: 0, False: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  807|      0|         return if_match(req, "X520.GenerationalQualifier", {2, 5, 4, 44});
  808|      0|      case 0x1445B:
  ------------------
  |  Branch (808:7): [True: 0, False: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  821|      0|         return if_match(req, "X509v3.AnyExtendedKeyUsage", {2, 5, 29, 37, 0});
  822|      0|      case 0x175EF:
  ------------------
  |  Branch (822:7): [True: 0, False: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  825|      0|         return if_match(req, "X520.GivenName", {2, 5, 4, 42});
  826|      0|      case 0x17AD9:
  ------------------
  |  Branch (826:7): [True: 0, False: 18.4k]
  ------------------
  827|      0|         return if_match(req, "RSA/PKCS1v15(SM3)", {1, 2, 156, 10197, 1, 504});
  828|      0|      case 0x17CE2:
  ------------------
  |  Branch (828:7): [True: 0, False: 18.4k]
  ------------------
  829|      0|         return if_match(req, "SLH-DSA-SHA2-256f", {2, 16, 840, 1, 101, 3, 4, 3, 25});
  830|      0|      case 0x17CEF:
  ------------------
  |  Branch (830:7): [True: 0, False: 18.4k]
  ------------------
  831|      0|         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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  837|      0|         return if_match(req, "X509v3.InvalidityDate", {2, 5, 29, 24});
  838|      0|      case 0x19851:
  ------------------
  |  Branch (838:7): [True: 0, False: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  849|      0|         return if_match(req, "ML-KEM-512", {2, 16, 840, 1, 101, 3, 4, 4, 1});
  850|      0|      case 0x2216B:
  ------------------
  |  Branch (850:7): [True: 0, False: 18.4k]
  ------------------
  851|      0|         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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  855|      0|         return if_match(req, "X520.Initials", {2, 5, 4, 43});
  856|      0|      case 0x271AC:
  ------------------
  |  Branch (856:7): [True: 0, False: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  885|      0|         return if_match(req, "PBE-SHA1-2DES", {1, 2, 840, 113549, 1, 12, 1, 4});
  886|      0|      case 0x3133E:
  ------------------
  |  Branch (886:7): [True: 0, False: 18.4k]
  ------------------
  887|      0|         return if_match(req, "SLH-DSA-SHA2-128f", {2, 16, 840, 1, 101, 3, 4, 3, 21});
  888|      0|      case 0x3134B:
  ------------------
  |  Branch (888:7): [True: 0, False: 18.4k]
  ------------------
  889|      0|         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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  897|      0|         return if_match(req, "secp384r1", {1, 3, 132, 0, 34});
  898|      0|      case 0x32899:
  ------------------
  |  Branch (898:7): [True: 0, False: 18.4k]
  ------------------
  899|      0|         return if_match(req, "TripleDES/CBC", {1, 2, 840, 113549, 3, 7});
  900|      0|      case 0x33C9C:
  ------------------
  |  Branch (900:7): [True: 0, False: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  907|      0|         return if_match(req, "Ed25519", {1, 3, 101, 112});
  908|      0|      case 0x3649D:
  ------------------
  |  Branch (908:7): [True: 0, False: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  917|      0|         return if_match(req, "Ed448", {1, 3, 101, 113});
  918|      0|      case 0x3A438:
  ------------------
  |  Branch (918:7): [True: 0, False: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  921|      0|         return if_match(req, "DH", {1, 2, 840, 10046, 2, 1});
  922|      0|      case 0x3AC83:
  ------------------
  |  Branch (922:7): [True: 0, False: 18.4k]
  ------------------
  923|      0|         return if_match(req, "MGF1", {1, 2, 840, 113549, 1, 1, 8});
  924|      0|      case 0x3ACBA:
  ------------------
  |  Branch (924:7): [True: 0, False: 18.4k]
  ------------------
  925|      0|         return if_match(req, "X509v3.IssuerAlternativeName", {2, 5, 29, 18});
  926|      0|      case 0x3B273:
  ------------------
  |  Branch (926:7): [True: 0, False: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  929|      0|         return if_match(req, "X509v3.PrivateKeyUsagePeriod", {2, 5, 29, 16});
  930|      0|      case 0x3BC8A:
  ------------------
  |  Branch (930:7): [True: 0, False: 18.4k]
  ------------------
  931|      0|         return if_match(req, "SLH-DSA-SHAKE-192f", {2, 16, 840, 1, 101, 3, 4, 3, 29});
  932|      0|      case 0x3BC97:
  ------------------
  |  Branch (932:7): [True: 0, False: 18.4k]
  ------------------
  933|      0|         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: 18.4k]
  ------------------
  935|      0|         return if_match(req, "DSA", {1, 2, 840, 10040, 4, 1});
  936|      0|      case 0x3E249:
  ------------------
  |  Branch (936:7): [True: 0, False: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  941|      0|         return if_match(req, "GOST.OGRN", {1, 2, 643, 100, 1});
  942|      0|      case 0x3F99F:
  ------------------
  |  Branch (942:7): [True: 0, False: 18.4k]
  ------------------
  943|      0|         return if_match(req, "X509v3.BasicConstraints", {2, 5, 29, 19});
  944|      0|      case 0x40726:
  ------------------
  |  Branch (944:7): [True: 0, False: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  951|      0|         return if_match(req, "X509v3.CRLDistributionPoints", {2, 5, 29, 31});
  952|      0|      case 0x437FB:
  ------------------
  |  Branch (952:7): [True: 0, False: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  967|      0|         return if_match(req, "X509v3.ReasonCode", {2, 5, 29, 21});
  968|      0|      case 0x45DA5:
  ------------------
  |  Branch (968:7): [True: 0, False: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  971|      0|         return if_match(req, "X509v3.PolicyConstraints", {2, 5, 29, 36});
  972|      0|      case 0x480F7:
  ------------------
  |  Branch (972:7): [True: 0, False: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  991|      0|         return if_match(req, "X509v3.AnyPolicy", {2, 5, 29, 32, 0});
  992|      0|      case 0x4DE49:
  ------------------
  |  Branch (992:7): [True: 0, False: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
  997|      0|         return if_match(req, "RSA", {1, 2, 840, 113549, 1, 1, 1});
  998|      0|      case 0x501CB:
  ------------------
  |  Branch (998:7): [True: 0, False: 18.4k]
  ------------------
  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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 1045|      0|         return if_match(req, "X509v3.SubjectKeyIdentifier", {2, 5, 29, 14});
 1046|      0|      case 0x5A1E1:
  ------------------
  |  Branch (1046:7): [True: 0, False: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 1049|      0|         return if_match(req, "X520.CommonName", {2, 5, 4, 3});
 1050|      0|      case 0x5A990:
  ------------------
  |  Branch (1050:7): [True: 0, False: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 1055|      0|         return if_match(req, "X520.Surname", {2, 5, 4, 4});
 1056|      0|      case 0x5AF2C:
  ------------------
  |  Branch (1056:7): [True: 0, False: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 1059|      0|         return if_match(req, "X509v3.KeyUsage", {2, 5, 29, 15});
 1060|      0|      case 0x5BDDB:
  ------------------
  |  Branch (1060:7): [True: 0, False: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 1069|      0|         return if_match(req, "X520.SerialNumber", {2, 5, 4, 5});
 1070|      0|      case 0x5D375:
  ------------------
  |  Branch (1070:7): [True: 0, False: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 1079|      0|         return if_match(req, "SM2", {1, 2, 156, 10197, 1, 301, 1});
 1080|      0|      case 0x5ED05:
  ------------------
  |  Branch (1080:7): [True: 0, False: 18.4k]
  ------------------
 1081|      0|         return if_match(req, "SM3", {1, 2, 156, 10197, 1, 401});
 1082|      0|      case 0x5FDC6:
  ------------------
  |  Branch (1082:7): [True: 0, False: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 1091|      0|         return if_match(req, "OpenPGP.Ed25519", {1, 3, 6, 1, 4, 1, 11591, 15, 1});
 1092|  8.77k|      case 0x652E7:
  ------------------
  |  Branch (1092:7): [True: 8.77k, False: 9.71k]
  ------------------
 1093|  8.77k|         return if_match(req, "sm2p256v1", {1, 2, 156, 10197, 1, 301});
 1094|      0|      case 0x6697B:
  ------------------
  |  Branch (1094:7): [True: 0, False: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 1097|      0|         return if_match(req, "X520.State", {2, 5, 4, 8});
 1098|      0|      case 0x67B9B:
  ------------------
  |  Branch (1098:7): [True: 0, False: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 1107|      0|         return if_match(req, "X509v3.SubjectAlternativeName", {2, 5, 29, 17});
 1108|      0|      case 0x692F8:
  ------------------
  |  Branch (1108:7): [True: 0, False: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 1113|      0|         return if_match(req, "PKIX.IpAddrBlocks", {1, 3, 6, 1, 5, 5, 7, 1, 7});
 1114|      0|      case 0x6A7CA:
  ------------------
  |  Branch (1114:7): [True: 0, False: 18.4k]
  ------------------
 1115|      0|         return if_match(req, "ECDSA", {1, 2, 840, 10045, 2, 1});
 1116|      0|      case 0x6BD26:
  ------------------
  |  Branch (1116:7): [True: 0, False: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 1159|      0|         return if_match(req, "secp224k1", {1, 3, 132, 0, 32});
 1160|      0|      case 0x781B9:
  ------------------
  |  Branch (1160:7): [True: 0, False: 18.4k]
  ------------------
 1161|      0|         return if_match(req, "secp224r1", {1, 3, 132, 0, 33});
 1162|      0|      case 0x78ABE:
  ------------------
  |  Branch (1162:7): [True: 0, False: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 1169|      0|         return if_match(req, "X509v3.ExtendedKeyUsage", {2, 5, 29, 37});
 1170|      0|      case 0x7AE67:
  ------------------
  |  Branch (1170:7): [True: 0, False: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 1175|      0|         return if_match(req, "SphincsPlus-sha2-192s-r3.1", {1, 3, 6, 1, 4, 1, 25258, 1, 12, 2, 3});
 1176|      0|      case 0x7BB0A:
  ------------------
  |  Branch (1176:7): [True: 0, False: 18.4k]
  ------------------
 1177|      0|         return if_match(req, "SLH-DSA-SHAKE-256f", {2, 16, 840, 1, 101, 3, 4, 3, 31});
 1178|      0|      case 0x7BB17:
  ------------------
  |  Branch (1178:7): [True: 0, False: 18.4k]
  ------------------
 1179|      0|         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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 1185|      0|         return if_match(req, "SphincsPlus-shake-192s-r3.1", {1, 3, 6, 1, 4, 1, 25258, 1, 12, 1, 3});
 1186|      0|      case 0x7DB91:
  ------------------
  |  Branch (1186:7): [True: 0, False: 18.4k]
  ------------------
 1187|      0|         return if_match(req, "GOST-34.10", {1, 2, 643, 2, 2, 19});
 1188|      0|      case 0x7E319:
  ------------------
  |  Branch (1188:7): [True: 0, False: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 1197|      0|         return if_match(req, "X520.Organization", {2, 5, 4, 10});
 1198|      0|      case 0x80340:
  ------------------
  |  Branch (1198:7): [True: 0, False: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 1213|      0|         return if_match(req, "ClassicMcEliece_6960119pcf", {1, 3, 6, 1, 4, 1, 25258, 1, 18, 4});
 1214|  2.42k|      case 0x84CA4:
  ------------------
  |  Branch (1214:7): [True: 2.42k, False: 16.0k]
  ------------------
 1215|  2.42k|         return if_match(req, "secp256k1", {1, 3, 132, 0, 10});
 1216|  7.29k|      case 0x85381:
  ------------------
  |  Branch (1216:7): [True: 7.29k, False: 11.1k]
  ------------------
 1217|  7.29k|         return if_match(req, "secp256r1", {1, 2, 840, 10045, 3, 1, 7});
 1218|      0|      case 0x854FC:
  ------------------
  |  Branch (1218:7): [True: 0, False: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 1231|      0|         return if_match(req, "X509v3.AuthorityKeyIdentifier", {2, 5, 29, 35});
 1232|      0|      case 0x889B1:
  ------------------
  |  Branch (1232:7): [True: 0, False: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 1243|      0|         return if_match(req, "X509v3.NoRevocationAvailable", {2, 5, 29, 56});
 1244|      0|      case 0x8CE3D:
  ------------------
  |  Branch (1244:7): [True: 0, False: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 1247|      0|         return if_match(req, "ECKCDSA", {1, 0, 14888, 3, 0, 5});
 1248|      0|      case 0x8E0C1:
  ------------------
  |  Branch (1248:7): [True: 0, False: 18.4k]
  ------------------
 1249|      0|         return if_match(req, "X509v3.CertificatePolicies", {2, 5, 29, 32});
 1250|      0|      case 0x8E39A:
  ------------------
  |  Branch (1250:7): [True: 0, False: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 1263|      0|         return if_match(req, "X25519", {1, 3, 101, 110});
 1264|      0|      case 0x91DC4:
  ------------------
  |  Branch (1264:7): [True: 0, False: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 1269|      0|         return if_match(req, "AES-192/SIV", {1, 3, 6, 1, 4, 1, 25258, 3, 4, 2});
 1270|      0|      case 0x95166:
  ------------------
  |  Branch (1270:7): [True: 0, False: 18.4k]
  ------------------
 1271|      0|         return if_match(req, "SLH-DSA-SHAKE-128f", {2, 16, 840, 1, 101, 3, 4, 3, 27});
 1272|      0|      case 0x95173:
  ------------------
  |  Branch (1272:7): [True: 0, False: 18.4k]
  ------------------
 1273|      0|         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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 1283|      0|         return if_match(req, "SEED/CBC", {1, 2, 410, 200004, 1, 4});
 1284|      0|      case 0x980E7:
  ------------------
  |  Branch (1284:7): [True: 0, False: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 1287|      0|         return if_match(req, "GOST.SubjectSigningTool", {1, 2, 643, 100, 111});
 1288|      0|      case 0x98B03:
  ------------------
  |  Branch (1288:7): [True: 0, False: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 1297|      0|         return if_match(req, "X520.OrganizationalUnit", {2, 5, 4, 11});
 1298|      0|      case 0x9B851:
  ------------------
  |  Branch (1298:7): [True: 0, False: 18.4k]
  ------------------
 1299|      0|         return if_match(req, "OpenPGP.Curve25519", {1, 3, 6, 1, 4, 1, 3029, 1, 5, 1});
 1300|      0|      case 0x9C80B:
  ------------------
  |  Branch (1300:7): [True: 0, False: 18.4k]
  ------------------
 1301|      0|         return if_match(req, "SLH-DSA-SHA2-192f", {2, 16, 840, 1, 101, 3, 4, 3, 23});
 1302|      0|      case 0x9C818:
  ------------------
  |  Branch (1302:7): [True: 0, False: 18.4k]
  ------------------
 1303|      0|         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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 1311|      0|         return if_match(req, "RIPEMD-160", {1, 3, 36, 3, 2, 1});
 1312|      0|      case 0x9D503:
  ------------------
  |  Branch (1312:7): [True: 0, False: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 1319|      0|         return if_match(req, "X448", {1, 3, 101, 111});
 1320|      0|      case 0x9F7E2:
  ------------------
  |  Branch (1320:7): [True: 0, False: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 1327|      0|         return if_match(req, "X509v3.CRLNumber", {2, 5, 29, 20});
 1328|      0|      case 0xA3005:
  ------------------
  |  Branch (1328:7): [True: 0, False: 18.4k]
  ------------------
 1329|      0|         return if_match(req, "X520.Title", {2, 5, 4, 12});
 1330|      0|      case 0xA323F:
  ------------------
  |  Branch (1330:7): [True: 0, False: 18.4k]
  ------------------
 1331|      0|         return if_match(req, "X509v3.NameConstraints", {2, 5, 29, 30});
 1332|      0|      case 0xA3C55:
  ------------------
  |  Branch (1332:7): [True: 0, False: 18.4k]
  ------------------
 1333|      0|         return if_match(req, "X520.Pseudonym", {2, 5, 4, 65});
 1334|      0|      case 0xA4809:
  ------------------
  |  Branch (1334:7): [True: 0, False: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 1337|      0|         return if_match(req, "secp521r1", {1, 3, 132, 0, 35});
 1338|      0|      case 0xA5DA9:
  ------------------
  |  Branch (1338:7): [True: 0, False: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 1353|      0|         return if_match(req, "GOST.IssuerSigningTool", {1, 2, 643, 100, 112});
 1354|      0|      case 0xABD24:
  ------------------
  |  Branch (1354:7): [True: 0, False: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 1367|      0|         return if_match(req, "ECDH", {1, 3, 132, 1, 12});
 1368|      0|      case 0xAFA6A:
  ------------------
  |  Branch (1368:7): [True: 0, False: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 1375|      0|         return if_match(req, "X520.Locality", {2, 5, 4, 7});
 1376|      0|      case 0xB2FBD:
  ------------------
  |  Branch (1376:7): [True: 0, False: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 1391|      0|         return if_match(req, "X509v3.CRLIssuingDistributionPoint", {2, 5, 29, 28});
 1392|      0|      case 0xB72D4:
  ------------------
  |  Branch (1392:7): [True: 0, False: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 1397|      0|         return if_match(req, "PKIX.CodeSigning", {1, 3, 6, 1, 5, 5, 7, 3, 3});
 1398|      0|      case 0xB8CB9:
  ------------------
  |  Branch (1398:7): [True: 0, False: 18.4k]
  ------------------
 1399|      0|         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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 1407|      0|         return if_match(req, "X520.StreetAddress", {2, 5, 4, 9});
 1408|      0|      case 0xBCB45:
  ------------------
  |  Branch (1408:7): [True: 0, False: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 1417|      0|         return if_match(req, "X509v3.HoldInstructionCode", {2, 5, 29, 23});
 1418|      0|      case 0xBDCA9:
  ------------------
  |  Branch (1418:7): [True: 0, False: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 1429|      0|         return if_match(req, "SHA-1", {1, 3, 14, 3, 2, 26});
 1430|      0|      case 0xC28D1:
  ------------------
  |  Branch (1430:7): [True: 0, False: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 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: 18.4k]
  ------------------
 1435|      0|         return {};
 1436|  18.4k|   }
 1437|  18.4k|}
_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|      3|std::optional<std::string_view> if_match(const OID& oid, std::initializer_list<uint32_t> val, std::string_view name) {
   19|      3|   if(oid.matches(val)) {
  ------------------
  |  Branch (19:7): [True: 3, False: 0]
  ------------------
   20|      3|      return name;
   21|      3|   } else {
   22|      0|      return {};
   23|      0|   }
   24|      3|}
static_oids.cpp:_ZN5Botan12_GLOBAL__N_113hash_oid_nameENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   34|  18.4k|uint32_t hash_oid_name(std::string_view s) {
   35|  18.4k|   uint64_t hash = 0x8188B31879A4879A;
   36|       |
   37|   166k|   for(const char c : s) {
  ------------------
  |  Branch (37:21): [True: 166k, False: 18.4k]
  ------------------
   38|   166k|      hash *= 251;
   39|   166k|      hash += c;
   40|   166k|   }
   41|       |
   42|  18.4k|   return static_cast<uint32_t>(hash % 805289);
   43|  18.4k|}
static_oids.cpp:_ZN5Botan12_GLOBAL__N_18if_matchENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEES5_St16initializer_listIjE:
   26|  18.4k|std::optional<OID> if_match(std::string_view req, std::string_view actual, std::initializer_list<uint32_t> oid) {
   27|  18.4k|   if(req == actual) {
  ------------------
  |  Branch (27:7): [True: 18.4k, False: 0]
  ------------------
   28|  18.4k|      return OID(oid);
   29|  18.4k|   } else {
   30|      0|      return {};
   31|      0|   }
   32|  18.4k|}

_ZN5Botan20Buffered_Computation6updateENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   14|  4.39k|void Buffered_Computation::update(std::string_view str) {
   15|  4.39k|   add_data(as_span_of_bytes(str));
   16|  4.39k|}
_ZN5Botan20Buffered_Computation9update_leEj:
   42|  59.4k|void Buffered_Computation::update_le(uint32_t val) {
   43|  59.4k|   uint8_t inb[sizeof(val)];
   44|  59.4k|   store_le(val, inb);
   45|  59.4k|   add_data({inb, sizeof(inb)});
   46|  59.4k|}
_ZN5Botan20Buffered_Computation9update_leEm:
   48|  73.7k|void Buffered_Computation::update_le(uint64_t val) {
   49|  73.7k|   uint8_t inb[sizeof(val)];
   50|  73.7k|   store_le(val, inb);
   51|  73.7k|   add_data({inb, sizeof(inb)});
   52|  73.7k|}
_ZN5Botan20Buffered_Computation5finalENSt3__14spanIhLm18446744073709551615EEE:
   54|   383k|void Buffered_Computation::final(std::span<uint8_t> out) {
   55|   383k|   BOTAN_ARG_CHECK(out.size() >= output_length(), "Output buffer has insufficient capacity");
  ------------------
  |  |   35|   383k|   do {                                                          \
  |  |   36|   383k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|   383k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 383k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|   383k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 383k]
  |  |  ------------------
  ------------------
   56|       |   // Pass exactly output_length() bytes so that an oversized buffer has the
   57|       |   // result written to its leading bytes with the remainder left untouched.
   58|   383k|   final_result(out.first(output_length()));
   59|   383k|}

_ZN5Botan18SymmetricAlgorithm7set_keyENSt3__14spanIKhLm18446744073709551615EEE:
   22|   120k|void SymmetricAlgorithm::set_key(std::span<const uint8_t> key) {
   23|   120k|   if(!valid_keylength(key.size())) {
  ------------------
  |  Branch (23:7): [True: 0, False: 120k]
  ------------------
   24|      0|      throw Invalid_Key_Length(name(), key.size());
   25|      0|   }
   26|   120k|   key_schedule(key);
   27|   120k|}

_ZNK5Botan7AES_12811parallelismEv:
  807|    241|size_t AES_128::parallelism() const {
  808|    241|   return aes_parallelism();
  809|    241|}
_ZNK5Botan7AES_19211parallelismEv:
  811|    246|size_t AES_192::parallelism() const {
  812|    246|   return aes_parallelism();
  813|    246|}
_ZNK5Botan7AES_25611parallelismEv:
  815|    202|size_t AES_256::parallelism() const {
  816|    202|   return aes_parallelism();
  817|    202|}
_ZNK5Botan7AES_12819has_keying_materialEv:
  819|  62.0k|bool AES_128::has_keying_material() const {
  820|  62.0k|   return !m_EK.empty();
  821|  62.0k|}
_ZNK5Botan7AES_19219has_keying_materialEv:
  823|   136k|bool AES_192::has_keying_material() const {
  824|   136k|   return !m_EK.empty();
  825|   136k|}
_ZNK5Botan7AES_25619has_keying_materialEv:
  827|  69.7k|bool AES_256::has_keying_material() const {
  828|  69.7k|   return !m_EK.empty();
  829|  69.7k|}
_ZNK5Botan7AES_1289encrypt_nEPKhPhm:
  831|  27.7k|void AES_128::encrypt_n(const uint8_t in[], uint8_t out[], size_t blocks) const {
  832|  27.7k|   assert_key_material_set();
  833|       |
  834|       |#if defined(BOTAN_HAS_AES_VAES)
  835|       |   if(CPUID::has(CPUID::Feature::AVX2_AES)) {
  836|       |      return x86_vaes_encrypt_n(in, out, blocks);
  837|       |   }
  838|       |#endif
  839|       |
  840|       |#if defined(BOTAN_HAS_HW_AES_SUPPORT)
  841|       |   if(CPUID::has(CPUID::Feature::HW_AES)) {
  842|       |      return hw_aes_encrypt_n(in, out, blocks);
  843|       |   }
  844|       |#endif
  845|       |
  846|       |#if defined(BOTAN_HAS_AES_VPERM)
  847|       |   if(CPUID::has(CPUID::Feature::SIMD_4X32)) {
  848|       |      return vperm_encrypt_n(in, out, blocks);
  849|       |   }
  850|       |#endif
  851|       |
  852|  27.7k|   aes_encrypt_n(in, out, blocks, m_EK);
  853|  27.7k|}
_ZNK5Botan7AES_1289decrypt_nEPKhPhm:
  855|  15.5k|void AES_128::decrypt_n(const uint8_t in[], uint8_t out[], size_t blocks) const {
  856|  15.5k|   assert_key_material_set();
  857|       |
  858|       |#if defined(BOTAN_HAS_AES_VAES)
  859|       |   if(CPUID::has(CPUID::Feature::AVX2_AES)) {
  860|       |      return x86_vaes_decrypt_n(in, out, blocks);
  861|       |   }
  862|       |#endif
  863|       |
  864|       |#if defined(BOTAN_HAS_HW_AES_SUPPORT)
  865|       |   if(CPUID::has(CPUID::Feature::HW_AES)) {
  866|       |      return hw_aes_decrypt_n(in, out, blocks);
  867|       |   }
  868|       |#endif
  869|       |
  870|       |#if defined(BOTAN_HAS_AES_VPERM)
  871|       |   if(CPUID::has(CPUID::Feature::SIMD_4X32)) {
  872|       |      return vperm_decrypt_n(in, out, blocks);
  873|       |   }
  874|       |#endif
  875|       |
  876|  15.5k|   aes_decrypt_n(in, out, blocks, m_DK);
  877|  15.5k|}
_ZN5Botan7AES_12812key_scheduleENSt3__14spanIKhLm18446744073709551615EEE:
  879|  4.67k|void AES_128::key_schedule(std::span<const uint8_t> key) {
  880|       |#if defined(BOTAN_HAS_AES_NI)
  881|       |   if(CPUID::has(CPUID::Feature::AESNI)) {
  882|       |      return aesni_key_schedule(key.data(), key.size());
  883|       |   }
  884|       |#endif
  885|       |
  886|       |#if defined(BOTAN_HAS_AES_VAES)
  887|       |   if(CPUID::has(CPUID::Feature::AVX2_AES)) {
  888|       |      return aes_key_schedule(key.data(), key.size(), m_EK, m_DK, true);
  889|       |   }
  890|       |#endif
  891|       |
  892|       |#if defined(BOTAN_HAS_HW_AES_SUPPORT)
  893|       |   if(CPUID::has(CPUID::Feature::HW_AES)) {
  894|       |      constexpr bool is_little_endian = std::endian::native == std::endian::little;
  895|       |      return aes_key_schedule(key.data(), key.size(), m_EK, m_DK, is_little_endian);
  896|       |   }
  897|       |#endif
  898|       |
  899|       |#if defined(BOTAN_HAS_AES_VPERM)
  900|       |   if(CPUID::has(CPUID::Feature::SIMD_4X32)) {
  901|       |      return vperm_key_schedule(key.data(), key.size());
  902|       |   }
  903|       |#endif
  904|       |
  905|  4.67k|   aes_key_schedule(key.data(), key.size(), m_EK, m_DK);
  906|  4.67k|}
_ZN5Botan7AES_1285clearEv:
  908|     19|void AES_128::clear() {
  909|     19|   zap(m_EK);
  910|     19|   zap(m_DK);
  911|     19|}
_ZNK5Botan7AES_1929encrypt_nEPKhPhm:
  913|   107k|void AES_192::encrypt_n(const uint8_t in[], uint8_t out[], size_t blocks) const {
  914|   107k|   assert_key_material_set();
  915|       |
  916|       |#if defined(BOTAN_HAS_AES_VAES)
  917|       |   if(CPUID::has(CPUID::Feature::AVX2_AES)) {
  918|       |      return x86_vaes_encrypt_n(in, out, blocks);
  919|       |   }
  920|       |#endif
  921|       |
  922|       |#if defined(BOTAN_HAS_HW_AES_SUPPORT)
  923|       |   if(CPUID::has(CPUID::Feature::HW_AES)) {
  924|       |      return hw_aes_encrypt_n(in, out, blocks);
  925|       |   }
  926|       |#endif
  927|       |
  928|       |#if defined(BOTAN_HAS_AES_VPERM)
  929|       |   if(CPUID::has(CPUID::Feature::SIMD_4X32)) {
  930|       |      return vperm_encrypt_n(in, out, blocks);
  931|       |   }
  932|       |#endif
  933|       |
  934|   107k|   aes_encrypt_n(in, out, blocks, m_EK);
  935|   107k|}
_ZNK5Botan7AES_1929decrypt_nEPKhPhm:
  937|  3.17k|void AES_192::decrypt_n(const uint8_t in[], uint8_t out[], size_t blocks) const {
  938|  3.17k|   assert_key_material_set();
  939|       |
  940|       |#if defined(BOTAN_HAS_AES_VAES)
  941|       |   if(CPUID::has(CPUID::Feature::AVX2_AES)) {
  942|       |      return x86_vaes_decrypt_n(in, out, blocks);
  943|       |   }
  944|       |#endif
  945|       |
  946|       |#if defined(BOTAN_HAS_HW_AES_SUPPORT)
  947|       |   if(CPUID::has(CPUID::Feature::HW_AES)) {
  948|       |      return hw_aes_decrypt_n(in, out, blocks);
  949|       |   }
  950|       |#endif
  951|       |
  952|       |#if defined(BOTAN_HAS_AES_VPERM)
  953|       |   if(CPUID::has(CPUID::Feature::SIMD_4X32)) {
  954|       |      return vperm_decrypt_n(in, out, blocks);
  955|       |   }
  956|       |#endif
  957|       |
  958|  3.17k|   aes_decrypt_n(in, out, blocks, m_DK);
  959|  3.17k|}
_ZN5Botan7AES_19212key_scheduleENSt3__14spanIKhLm18446744073709551615EEE:
  961|  8.26k|void AES_192::key_schedule(std::span<const uint8_t> key) {
  962|       |#if defined(BOTAN_HAS_AES_NI)
  963|       |   if(CPUID::has(CPUID::Feature::AESNI)) {
  964|       |      return aesni_key_schedule(key.data(), key.size());
  965|       |   }
  966|       |#endif
  967|       |
  968|       |#if defined(BOTAN_HAS_AES_VAES)
  969|       |   if(CPUID::has(CPUID::Feature::AVX2_AES)) {
  970|       |      return aes_key_schedule(key.data(), key.size(), m_EK, m_DK, true);
  971|       |   }
  972|       |#endif
  973|       |
  974|       |#if defined(BOTAN_HAS_HW_AES_SUPPORT)
  975|       |   if(CPUID::has(CPUID::Feature::HW_AES)) {
  976|       |      constexpr bool is_little_endian = std::endian::native == std::endian::little;
  977|       |      return aes_key_schedule(key.data(), key.size(), m_EK, m_DK, is_little_endian);
  978|       |   }
  979|       |#endif
  980|       |
  981|       |#if defined(BOTAN_HAS_AES_VPERM)
  982|       |   if(CPUID::has(CPUID::Feature::SIMD_4X32)) {
  983|       |      return vperm_key_schedule(key.data(), key.size());
  984|       |   }
  985|       |#endif
  986|       |
  987|  8.26k|   aes_key_schedule(key.data(), key.size(), m_EK, m_DK);
  988|  8.26k|}
_ZN5Botan7AES_1925clearEv:
  990|     15|void AES_192::clear() {
  991|     15|   zap(m_EK);
  992|     15|   zap(m_DK);
  993|     15|}
_ZNK5Botan7AES_2569encrypt_nEPKhPhm:
  995|  54.1k|void AES_256::encrypt_n(const uint8_t in[], uint8_t out[], size_t blocks) const {
  996|  54.1k|   assert_key_material_set();
  997|       |
  998|       |#if defined(BOTAN_HAS_AES_VAES)
  999|       |   if(CPUID::has(CPUID::Feature::AVX2_AES)) {
 1000|       |      return x86_vaes_encrypt_n(in, out, blocks);
 1001|       |   }
 1002|       |#endif
 1003|       |
 1004|       |#if defined(BOTAN_HAS_HW_AES_SUPPORT)
 1005|       |   if(CPUID::has(CPUID::Feature::HW_AES)) {
 1006|       |      return hw_aes_encrypt_n(in, out, blocks);
 1007|       |   }
 1008|       |#endif
 1009|       |
 1010|       |#if defined(BOTAN_HAS_AES_VPERM)
 1011|       |   if(CPUID::has(CPUID::Feature::SIMD_4X32)) {
 1012|       |      return vperm_encrypt_n(in, out, blocks);
 1013|       |   }
 1014|       |#endif
 1015|       |
 1016|  54.1k|   aes_encrypt_n(in, out, blocks, m_EK);
 1017|  54.1k|}
_ZNK5Botan7AES_2569decrypt_nEPKhPhm:
 1019|  2.18k|void AES_256::decrypt_n(const uint8_t in[], uint8_t out[], size_t blocks) const {
 1020|  2.18k|   assert_key_material_set();
 1021|       |
 1022|       |#if defined(BOTAN_HAS_AES_VAES)
 1023|       |   if(CPUID::has(CPUID::Feature::AVX2_AES)) {
 1024|       |      return x86_vaes_decrypt_n(in, out, blocks);
 1025|       |   }
 1026|       |#endif
 1027|       |
 1028|       |#if defined(BOTAN_HAS_HW_AES_SUPPORT)
 1029|       |   if(CPUID::has(CPUID::Feature::HW_AES)) {
 1030|       |      return hw_aes_decrypt_n(in, out, blocks);
 1031|       |   }
 1032|       |#endif
 1033|       |
 1034|       |#if defined(BOTAN_HAS_AES_VPERM)
 1035|       |   if(CPUID::has(CPUID::Feature::SIMD_4X32)) {
 1036|       |      return vperm_decrypt_n(in, out, blocks);
 1037|       |   }
 1038|       |#endif
 1039|       |
 1040|  2.18k|   aes_decrypt_n(in, out, blocks, m_DK);
 1041|  2.18k|}
_ZN5Botan7AES_25612key_scheduleENSt3__14spanIKhLm18446744073709551615EEE:
 1043|  2.58k|void AES_256::key_schedule(std::span<const uint8_t> key) {
 1044|       |#if defined(BOTAN_HAS_AES_NI)
 1045|       |   if(CPUID::has(CPUID::Feature::AESNI)) {
 1046|       |      return aesni_key_schedule(key.data(), key.size());
 1047|       |   }
 1048|       |#endif
 1049|       |
 1050|       |#if defined(BOTAN_HAS_AES_VAES)
 1051|       |   if(CPUID::has(CPUID::Feature::AVX2_AES)) {
 1052|       |      return aes_key_schedule(key.data(), key.size(), m_EK, m_DK, true);
 1053|       |   }
 1054|       |#endif
 1055|       |
 1056|       |#if defined(BOTAN_HAS_HW_AES_SUPPORT)
 1057|       |   if(CPUID::has(CPUID::Feature::HW_AES)) {
 1058|       |      constexpr bool is_little_endian = std::endian::native == std::endian::little;
 1059|       |      return aes_key_schedule(key.data(), key.size(), m_EK, m_DK, is_little_endian);
 1060|       |   }
 1061|       |#endif
 1062|       |
 1063|       |#if defined(BOTAN_HAS_AES_VPERM)
 1064|       |   if(CPUID::has(CPUID::Feature::SIMD_4X32)) {
 1065|       |      return vperm_key_schedule(key.data(), key.size());
 1066|       |   }
 1067|       |#endif
 1068|       |
 1069|  2.58k|   aes_key_schedule(key.data(), key.size(), m_EK, m_DK);
 1070|  2.58k|}
_ZN5Botan7AES_2565clearEv:
 1072|     23|void AES_256::clear() {
 1073|     23|   zap(m_EK);
 1074|     23|   zap(m_DK);
 1075|     23|}
aes.cpp:_ZN5Botan12_GLOBAL__N_115aes_parallelismEv:
  748|    689|size_t aes_parallelism() {
  749|       |#if defined(BOTAN_HAS_AES_VAES)
  750|       |   if(CPUID::has(CPUID::Feature::AVX2_AES)) {
  751|       |      return 8;  // pipelined
  752|       |   }
  753|       |#endif
  754|       |
  755|       |#if defined(BOTAN_HAS_HW_AES_SUPPORT)
  756|       |   if(CPUID::has(CPUID::Feature::HW_AES)) {
  757|       |      return 4;  // pipelined
  758|       |   }
  759|       |#endif
  760|       |
  761|       |#if defined(BOTAN_HAS_AES_VPERM)
  762|       |   if(CPUID::has(CPUID::Feature::SIMD_4X32)) {
  763|       |      return 2;  // pipelined
  764|       |   }
  765|       |#endif
  766|       |
  767|       |   // bitsliced:
  768|    689|   return 2;
  769|    689|}
aes.cpp:_ZN5Botan12_GLOBAL__N_113aes_encrypt_nEPKhPhmRKNSt3__16vectorIjNS_16secure_allocatorIjEEEE:
  512|   189k|void aes_encrypt_n(const uint8_t in[], uint8_t out[], size_t blocks, const secure_vector<uint32_t>& EK) {
  513|   189k|   BOTAN_ASSERT(EK.size() == 44 || EK.size() == 52 || EK.size() == 60, "Key was set");
  ------------------
  |  |   64|   189k|   do {                                                                                 \
  |  |   65|   189k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|   595k|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:12): [True: 27.7k, False: 161k]
  |  |  |  Branch (66:12): [True: 107k, False: 54.1k]
  |  |  |  Branch (66:12): [True: 54.1k, False: 0]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|   189k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 189k]
  |  |  ------------------
  ------------------
  514|       |
  515|   189k|   const size_t rounds = (EK.size() - 4) / 4;
  516|       |
  517|   189k|   uint32_t KS[13 * 8] = {0};  // actual maximum is (rounds - 1) * 8
  518|  2.32M|   for(size_t i = 0; i < rounds - 1; i += 1) {
  ------------------
  |  Branch (518:22): [True: 2.13M, False: 189k]
  ------------------
  519|  2.13M|      ks_expand(&KS[8 * i], EK.data(), 4 * i + 4);
  520|  2.13M|   }
  521|       |
  522|   189k|   const size_t BLOCK_SIZE = 16;
  523|   189k|   const size_t BITSLICED_BLOCKS = 8 * sizeof(uint32_t) / BLOCK_SIZE;
  524|       |
  525|   441k|   while(blocks > 0) {
  ------------------
  |  Branch (525:10): [True: 252k, False: 189k]
  ------------------
  526|   252k|      const size_t this_loop = std::min(blocks, BITSLICED_BLOCKS);
  527|       |
  528|   252k|      uint32_t B[8] = {0};
  529|       |
  530|   252k|      load_be(B, in, this_loop * 4);
  531|       |
  532|   252k|      CT::poison(B, 8);
  533|       |
  534|  2.26M|      for(size_t i = 0; i != 8; ++i) {
  ------------------
  |  Branch (534:25): [True: 2.01M, False: 252k]
  ------------------
  535|  2.01M|         B[i] ^= EK[i % 4];
  536|  2.01M|      }
  537|       |
  538|   252k|      bit_transpose(B);
  539|       |
  540|  3.09M|      for(size_t r = 0; r != rounds - 1; ++r) {
  ------------------
  |  Branch (540:25): [True: 2.84M, False: 252k]
  ------------------
  541|  2.84M|         AES_SBOX(B);
  542|  2.84M|         shift_rows(B);
  543|  2.84M|         mix_columns(B);
  544|       |
  545|  25.5M|         for(size_t i = 0; i != 8; ++i) {
  ------------------
  |  Branch (545:28): [True: 22.7M, False: 2.84M]
  ------------------
  546|  22.7M|            B[i] ^= KS[8 * r + i];
  547|  22.7M|         }
  548|  2.84M|      }
  549|       |
  550|       |      // Final round:
  551|   252k|      AES_SBOX(B);
  552|   252k|      shift_rows(B);
  553|   252k|      bit_transpose(B);
  554|       |
  555|  2.26M|      for(size_t i = 0; i != 8; ++i) {
  ------------------
  |  Branch (555:25): [True: 2.01M, False: 252k]
  ------------------
  556|  2.01M|         B[i] ^= EK[4 * rounds + i % 4];
  557|  2.01M|      }
  558|       |
  559|   252k|      CT::unpoison(B, 8);
  560|       |
  561|   252k|      copy_out_be(std::span(out, this_loop * 4 * sizeof(uint32_t)), B);
  562|       |
  563|   252k|      in += this_loop * BLOCK_SIZE;
  564|   252k|      out += this_loop * BLOCK_SIZE;
  565|   252k|      blocks -= this_loop;
  566|   252k|   }
  567|   189k|}
aes.cpp:_ZN5Botan12_GLOBAL__N_19ks_expandEPjPKjm:
  390|  2.34M|inline void ks_expand(uint32_t B[8], const uint32_t K[], size_t r) {
  391|       |   /*
  392|       |   This is bit_transpose of K[r..r+4] || K[r..r+4], we can save some computation
  393|       |   due to knowing the first and second halves are the same data.
  394|       |   */
  395|  11.7M|   for(size_t i = 0; i != 4; ++i) {
  ------------------
  |  Branch (395:22): [True: 9.37M, False: 2.34M]
  ------------------
  396|  9.37M|      B[i] = K[r + i];
  397|  9.37M|   }
  398|       |
  399|  2.34M|   swap_bits<uint32_t>(B[1], B[0], 0x55555555, 1);
  400|  2.34M|   swap_bits<uint32_t>(B[3], B[2], 0x55555555, 1);
  401|       |
  402|  2.34M|   swap_bits<uint32_t>(B[2], B[0], 0x33333333, 2);
  403|  2.34M|   swap_bits<uint32_t>(B[3], B[1], 0x33333333, 2);
  404|       |
  405|  2.34M|   B[4] = B[0];
  406|  2.34M|   B[5] = B[1];
  407|  2.34M|   B[6] = B[2];
  408|  2.34M|   B[7] = B[3];
  409|       |
  410|  2.34M|   swap_bits<uint32_t>(B[4], B[0], 0x0F0F0F0F, 4);
  411|  2.34M|   swap_bits<uint32_t>(B[5], B[1], 0x0F0F0F0F, 4);
  412|  2.34M|   swap_bits<uint32_t>(B[6], B[2], 0x0F0F0F0F, 4);
  413|  2.34M|   swap_bits<uint32_t>(B[7], B[3], 0x0F0F0F0F, 4);
  414|  2.34M|}
aes.cpp:_ZN5Botan12_GLOBAL__N_113bit_transposeEPj:
  373|   671k|inline void bit_transpose(uint32_t B[8]) {
  374|   671k|   swap_bits<uint32_t>(B[1], B[0], 0x55555555, 1);
  375|   671k|   swap_bits<uint32_t>(B[3], B[2], 0x55555555, 1);
  376|   671k|   swap_bits<uint32_t>(B[5], B[4], 0x55555555, 1);
  377|   671k|   swap_bits<uint32_t>(B[7], B[6], 0x55555555, 1);
  378|       |
  379|   671k|   swap_bits<uint32_t>(B[2], B[0], 0x33333333, 2);
  380|   671k|   swap_bits<uint32_t>(B[3], B[1], 0x33333333, 2);
  381|   671k|   swap_bits<uint32_t>(B[6], B[4], 0x33333333, 2);
  382|   671k|   swap_bits<uint32_t>(B[7], B[5], 0x33333333, 2);
  383|       |
  384|   671k|   swap_bits<uint32_t>(B[4], B[0], 0x0F0F0F0F, 4);
  385|   671k|   swap_bits<uint32_t>(B[5], B[1], 0x0F0F0F0F, 4);
  386|   671k|   swap_bits<uint32_t>(B[6], B[2], 0x0F0F0F0F, 4);
  387|   671k|   swap_bits<uint32_t>(B[7], B[3], 0x0F0F0F0F, 4);
  388|   671k|}
aes.cpp:_ZN5Botan12_GLOBAL__N_18AES_SBOXEPj:
   92|  3.24M|void AES_SBOX(uint32_t V[8]) {
   93|  3.24M|   const uint32_t U0 = V[0];
   94|  3.24M|   const uint32_t U1 = V[1];
   95|  3.24M|   const uint32_t U2 = V[2];
   96|  3.24M|   const uint32_t U3 = V[3];
   97|  3.24M|   const uint32_t U4 = V[4];
   98|  3.24M|   const uint32_t U5 = V[5];
   99|  3.24M|   const uint32_t U6 = V[6];
  100|  3.24M|   const uint32_t U7 = V[7];
  101|       |
  102|  3.24M|   const uint32_t y14 = U3 ^ U5;
  103|  3.24M|   const uint32_t y13 = U0 ^ U6;
  104|  3.24M|   const uint32_t y9 = U0 ^ U3;
  105|  3.24M|   const uint32_t y8 = U0 ^ U5;
  106|  3.24M|   const uint32_t t0 = U1 ^ U2;
  107|  3.24M|   const uint32_t y1 = t0 ^ U7;
  108|  3.24M|   const uint32_t y4 = y1 ^ U3;
  109|  3.24M|   const uint32_t y12 = y13 ^ y14;
  110|  3.24M|   const uint32_t y2 = y1 ^ U0;
  111|  3.24M|   const uint32_t y5 = y1 ^ U6;
  112|  3.24M|   const uint32_t y3 = y5 ^ y8;
  113|  3.24M|   const uint32_t t1 = U4 ^ y12;
  114|  3.24M|   const uint32_t y15 = t1 ^ U5;
  115|  3.24M|   const uint32_t y20 = t1 ^ U1;
  116|  3.24M|   const uint32_t y6 = y15 ^ U7;
  117|  3.24M|   const uint32_t y10 = y15 ^ t0;
  118|  3.24M|   const uint32_t y11 = y20 ^ y9;
  119|  3.24M|   const uint32_t y7 = U7 ^ y11;
  120|  3.24M|   const uint32_t y17 = y10 ^ y11;
  121|  3.24M|   const uint32_t y19 = y10 ^ y8;
  122|  3.24M|   const uint32_t y16 = t0 ^ y11;
  123|  3.24M|   const uint32_t y21 = y13 ^ y16;
  124|  3.24M|   const uint32_t y18 = U0 ^ y16;
  125|  3.24M|   const uint32_t t2 = y12 & y15;
  126|  3.24M|   const uint32_t t3 = y3 & y6;
  127|  3.24M|   const uint32_t t4 = t3 ^ t2;
  128|  3.24M|   const uint32_t t5 = y4 & U7;
  129|  3.24M|   const uint32_t t6 = t5 ^ t2;
  130|  3.24M|   const uint32_t t7 = y13 & y16;
  131|  3.24M|   const uint32_t t8 = y5 & y1;
  132|  3.24M|   const uint32_t t9 = t8 ^ t7;
  133|  3.24M|   const uint32_t t10 = y2 & y7;
  134|  3.24M|   const uint32_t t11 = t10 ^ t7;
  135|  3.24M|   const uint32_t t12 = y9 & y11;
  136|  3.24M|   const uint32_t t13 = y14 & y17;
  137|  3.24M|   const uint32_t t14 = t13 ^ t12;
  138|  3.24M|   const uint32_t t15 = y8 & y10;
  139|  3.24M|   const uint32_t t16 = t15 ^ t12;
  140|  3.24M|   const uint32_t t17 = t4 ^ y20;
  141|  3.24M|   const uint32_t t18 = t6 ^ t16;
  142|  3.24M|   const uint32_t t19 = t9 ^ t14;
  143|  3.24M|   const uint32_t t20 = t11 ^ t16;
  144|  3.24M|   const uint32_t t21 = t17 ^ t14;
  145|  3.24M|   const uint32_t t22 = t18 ^ y19;
  146|  3.24M|   const uint32_t t23 = t19 ^ y21;
  147|  3.24M|   const uint32_t t24 = t20 ^ y18;
  148|  3.24M|   const uint32_t t25 = t21 ^ t22;
  149|  3.24M|   const uint32_t t26 = t21 & t23;
  150|  3.24M|   const uint32_t t27 = t24 ^ t26;
  151|  3.24M|   const uint32_t t28 = t25 & t27;
  152|  3.24M|   const uint32_t t29 = t28 ^ t22;
  153|  3.24M|   const uint32_t t30 = t23 ^ t24;
  154|  3.24M|   const uint32_t t31 = t22 ^ t26;
  155|  3.24M|   const uint32_t t32 = t31 & t30;
  156|  3.24M|   const uint32_t t33 = t32 ^ t24;
  157|  3.24M|   const uint32_t t34 = t23 ^ t33;
  158|  3.24M|   const uint32_t t35 = t27 ^ t33;
  159|  3.24M|   const uint32_t t36 = t24 & t35;
  160|  3.24M|   const uint32_t t37 = t36 ^ t34;
  161|  3.24M|   const uint32_t t38 = t27 ^ t36;
  162|  3.24M|   const uint32_t t39 = t29 & t38;
  163|  3.24M|   const uint32_t t40 = t25 ^ t39;
  164|  3.24M|   const uint32_t t41 = t40 ^ t37;
  165|  3.24M|   const uint32_t t42 = t29 ^ t33;
  166|  3.24M|   const uint32_t t43 = t29 ^ t40;
  167|  3.24M|   const uint32_t t44 = t33 ^ t37;
  168|  3.24M|   const uint32_t t45 = t42 ^ t41;
  169|  3.24M|   const uint32_t z0 = t44 & y15;
  170|  3.24M|   const uint32_t z1 = t37 & y6;
  171|  3.24M|   const uint32_t z2 = t33 & U7;
  172|  3.24M|   const uint32_t z3 = t43 & y16;
  173|  3.24M|   const uint32_t z4 = t40 & y1;
  174|  3.24M|   const uint32_t z5 = t29 & y7;
  175|  3.24M|   const uint32_t z6 = t42 & y11;
  176|  3.24M|   const uint32_t z7 = t45 & y17;
  177|  3.24M|   const uint32_t z8 = t41 & y10;
  178|  3.24M|   const uint32_t z9 = t44 & y12;
  179|  3.24M|   const uint32_t z10 = t37 & y3;
  180|  3.24M|   const uint32_t z11 = t33 & y4;
  181|  3.24M|   const uint32_t z12 = t43 & y13;
  182|  3.24M|   const uint32_t z13 = t40 & y5;
  183|  3.24M|   const uint32_t z14 = t29 & y2;
  184|  3.24M|   const uint32_t z15 = t42 & y9;
  185|  3.24M|   const uint32_t z16 = t45 & y14;
  186|  3.24M|   const uint32_t z17 = t41 & y8;
  187|  3.24M|   const uint32_t tc1 = z15 ^ z16;
  188|  3.24M|   const uint32_t tc2 = z10 ^ tc1;
  189|  3.24M|   const uint32_t tc3 = z9 ^ tc2;
  190|  3.24M|   const uint32_t tc4 = z0 ^ z2;
  191|  3.24M|   const uint32_t tc5 = z1 ^ z0;
  192|  3.24M|   const uint32_t tc6 = z3 ^ z4;
  193|  3.24M|   const uint32_t tc7 = z12 ^ tc4;
  194|  3.24M|   const uint32_t tc8 = z7 ^ tc6;
  195|  3.24M|   const uint32_t tc9 = z8 ^ tc7;
  196|  3.24M|   const uint32_t tc10 = tc8 ^ tc9;
  197|  3.24M|   const uint32_t tc11 = tc6 ^ tc5;
  198|  3.24M|   const uint32_t tc12 = z3 ^ z5;
  199|  3.24M|   const uint32_t tc13 = z13 ^ tc1;
  200|  3.24M|   const uint32_t tc14 = tc4 ^ tc12;
  201|  3.24M|   const uint32_t S3 = tc3 ^ tc11;
  202|  3.24M|   const uint32_t tc16 = z6 ^ tc8;
  203|  3.24M|   const uint32_t tc17 = z14 ^ tc10;
  204|  3.24M|   const uint32_t tc18 = ~tc13 ^ tc14;
  205|  3.24M|   const uint32_t S7 = z12 ^ tc18;
  206|  3.24M|   const uint32_t tc20 = z15 ^ tc16;
  207|  3.24M|   const uint32_t tc21 = tc2 ^ z11;
  208|  3.24M|   const uint32_t S0 = tc3 ^ tc16;
  209|  3.24M|   const uint32_t S6 = tc10 ^ tc18;
  210|  3.24M|   const uint32_t S4 = tc14 ^ S3;
  211|  3.24M|   const uint32_t S1 = ~(S3 ^ tc16);
  212|  3.24M|   const uint32_t tc26 = tc17 ^ tc20;
  213|  3.24M|   const uint32_t S2 = ~(tc26 ^ z17);
  214|  3.24M|   const uint32_t S5 = tc21 ^ tc17;
  215|       |
  216|  3.24M|   V[0] = S0;
  217|  3.24M|   V[1] = S1;
  218|  3.24M|   V[2] = S2;
  219|  3.24M|   V[3] = S3;
  220|  3.24M|   V[4] = S4;
  221|  3.24M|   V[5] = S5;
  222|  3.24M|   V[6] = S6;
  223|  3.24M|   V[7] = S7;
  224|  3.24M|}
aes.cpp:_ZN5Botan12_GLOBAL__N_110shift_rowsEPj:
  416|  3.09M|inline void shift_rows(uint32_t B[8]) {
  417|       |   // 3 0 1 2 7 4 5 6 10 11 8 9 14 15 12 13 17 18 19 16 21 22 23 20 24 25 26 27 28 29 30 31
  418|  3.09M|   if constexpr(HasNative64BitRegisters) {
  419|  15.4M|      for(size_t i = 0; i != 8; i += 2) {
  ------------------
  |  Branch (419:25): [True: 12.3M, False: 3.09M]
  ------------------
  420|  12.3M|         uint64_t x = (static_cast<uint64_t>(B[i]) << 32) | B[i + 1];
  421|  12.3M|         x = bit_permute_step<uint64_t>(x, 0x0022331100223311, 2);
  422|  12.3M|         x = bit_permute_step<uint64_t>(x, 0x0055005500550055, 1);
  423|  12.3M|         B[i] = static_cast<uint32_t>(x >> 32);
  424|  12.3M|         B[i + 1] = static_cast<uint32_t>(x);
  425|  12.3M|      }
  426|       |   } else {
  427|       |      for(size_t i = 0; i != 8; ++i) {
  428|       |         uint32_t x = B[i];
  429|       |         x = bit_permute_step<uint32_t>(x, 0x00223311, 2);
  430|       |         x = bit_permute_step<uint32_t>(x, 0x00550055, 1);
  431|       |         B[i] = x;
  432|       |      }
  433|       |   }
  434|  3.09M|}
aes.cpp:_ZN5Botan12_GLOBAL__N_111mix_columnsEPj:
  457|  3.65M|inline void mix_columns(uint32_t B[8]) {
  458|       |   // carry high bits in B[0] to positions in 0x1b == 0b11011
  459|  3.65M|   const uint32_t X2[8] = {
  460|  3.65M|      B[1],
  461|  3.65M|      B[2],
  462|  3.65M|      B[3],
  463|  3.65M|      B[4] ^ B[0],
  464|  3.65M|      B[5] ^ B[0],
  465|  3.65M|      B[6],
  466|  3.65M|      B[7] ^ B[0],
  467|  3.65M|      B[0],
  468|  3.65M|   };
  469|       |
  470|  32.9M|   for(size_t i = 0; i != 8; i++) {
  ------------------
  |  Branch (470:22): [True: 29.2M, False: 3.65M]
  ------------------
  471|  29.2M|      const uint32_t X3 = B[i] ^ X2[i];
  472|  29.2M|      B[i] = X2[i] ^ rotr<8>(B[i]) ^ rotr<16>(B[i]) ^ rotr<24>(X3);
  473|  29.2M|   }
  474|  3.65M|}
aes.cpp:_ZN5Botan12_GLOBAL__N_113aes_decrypt_nEPKhPhmRKNSt3__16vectorIjNS_16secure_allocatorIjEEEE:
  572|  20.9k|void aes_decrypt_n(const uint8_t in[], uint8_t out[], size_t blocks, const secure_vector<uint32_t>& DK) {
  573|  20.9k|   BOTAN_ASSERT(DK.size() == 44 || DK.size() == 52 || DK.size() == 60, "Key was set");
  ------------------
  |  |   64|  20.9k|   do {                                                                                 \
  |  |   65|  20.9k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|  49.4k|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:12): [True: 15.5k, False: 5.36k]
  |  |  |  Branch (66:12): [True: 3.17k, False: 2.18k]
  |  |  |  Branch (66:12): [True: 2.18k, False: 0]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|  20.9k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 20.9k]
  |  |  ------------------
  ------------------
  574|       |
  575|  20.9k|   const size_t rounds = (DK.size() - 4) / 4;
  576|       |
  577|  20.9k|   uint32_t KS[13 * 8] = {0};  // actual maximum is (rounds - 1) * 8
  578|   224k|   for(size_t i = 0; i < rounds - 1; i += 1) {
  ------------------
  |  Branch (578:22): [True: 203k, False: 20.9k]
  ------------------
  579|   203k|      ks_expand(&KS[8 * i], DK.data(), 4 * i + 4);
  580|   203k|   }
  581|       |
  582|  20.9k|   const size_t BLOCK_SIZE = 16;
  583|  20.9k|   const size_t BITSLICED_BLOCKS = 8 * sizeof(uint32_t) / BLOCK_SIZE;
  584|       |
  585|   104k|   while(blocks > 0) {
  ------------------
  |  Branch (585:10): [True: 83.6k, False: 20.9k]
  ------------------
  586|  83.6k|      const size_t this_loop = std::min(blocks, BITSLICED_BLOCKS);
  587|       |
  588|  83.6k|      uint32_t B[8] = {0};
  589|       |
  590|  83.6k|      load_be(B, in, this_loop * 4);
  591|       |
  592|  83.6k|      CT::poison(B, 8);
  593|       |
  594|   752k|      for(size_t i = 0; i != 8; ++i) {
  ------------------
  |  Branch (594:25): [True: 668k, False: 83.6k]
  ------------------
  595|   668k|         B[i] ^= DK[i % 4];
  596|   668k|      }
  597|       |
  598|  83.6k|      bit_transpose(B);
  599|       |
  600|   896k|      for(size_t r = 0; r != rounds - 1; ++r) {
  ------------------
  |  Branch (600:25): [True: 812k, False: 83.6k]
  ------------------
  601|   812k|         AES_INV_SBOX(B);
  602|   812k|         inv_shift_rows(B);
  603|   812k|         inv_mix_columns(B);
  604|       |
  605|  7.31M|         for(size_t i = 0; i != 8; ++i) {
  ------------------
  |  Branch (605:28): [True: 6.50M, False: 812k]
  ------------------
  606|  6.50M|            B[i] ^= KS[8 * r + i];
  607|  6.50M|         }
  608|   812k|      }
  609|       |
  610|       |      // Final round:
  611|  83.6k|      AES_INV_SBOX(B);
  612|  83.6k|      inv_shift_rows(B);
  613|  83.6k|      bit_transpose(B);
  614|       |
  615|   752k|      for(size_t i = 0; i != 8; ++i) {
  ------------------
  |  Branch (615:25): [True: 668k, False: 83.6k]
  ------------------
  616|   668k|         B[i] ^= DK[4 * rounds + i % 4];
  617|   668k|      }
  618|       |
  619|  83.6k|      CT::unpoison(B, 8);
  620|       |
  621|  83.6k|      copy_out_be(std::span(out, this_loop * 4 * sizeof(uint32_t)), B);
  622|       |
  623|  83.6k|      in += this_loop * BLOCK_SIZE;
  624|  83.6k|      out += this_loop * BLOCK_SIZE;
  625|  83.6k|      blocks -= this_loop;
  626|  83.6k|   }
  627|  20.9k|}
aes.cpp:_ZN5Botan12_GLOBAL__N_112AES_INV_SBOXEPj:
  231|   896k|void AES_INV_SBOX(uint32_t V[8]) {
  232|   896k|   const uint32_t U0 = V[0];
  233|   896k|   const uint32_t U1 = V[1];
  234|   896k|   const uint32_t U2 = V[2];
  235|   896k|   const uint32_t U3 = V[3];
  236|   896k|   const uint32_t U4 = V[4];
  237|   896k|   const uint32_t U5 = V[5];
  238|   896k|   const uint32_t U6 = V[6];
  239|   896k|   const uint32_t U7 = V[7];
  240|       |
  241|   896k|   const uint32_t Y0 = U0 ^ U3;
  242|   896k|   const uint32_t Y2 = ~(U1 ^ U3);
  243|   896k|   const uint32_t Y4 = U0 ^ Y2;
  244|   896k|   const uint32_t RTL0 = U6 ^ U7;
  245|   896k|   const uint32_t Y1 = Y2 ^ RTL0;
  246|   896k|   const uint32_t Y7 = ~(U2 ^ Y1);
  247|   896k|   const uint32_t RTL1 = U3 ^ U4;
  248|   896k|   const uint32_t Y6 = ~(U7 ^ RTL1);
  249|   896k|   const uint32_t Y3 = Y1 ^ RTL1;
  250|   896k|   const uint32_t RTL2 = ~(U0 ^ U2);
  251|   896k|   const uint32_t Y5 = U5 ^ RTL2;
  252|   896k|   const uint32_t sa1 = Y0 ^ Y2;
  253|   896k|   const uint32_t sa0 = Y1 ^ Y3;
  254|   896k|   const uint32_t sb1 = Y4 ^ Y6;
  255|   896k|   const uint32_t sb0 = Y5 ^ Y7;
  256|   896k|   const uint32_t ah = Y0 ^ Y1;
  257|   896k|   const uint32_t al = Y2 ^ Y3;
  258|   896k|   const uint32_t aa = sa0 ^ sa1;
  259|   896k|   const uint32_t bh = Y4 ^ Y5;
  260|   896k|   const uint32_t bl = Y6 ^ Y7;
  261|   896k|   const uint32_t bb = sb0 ^ sb1;
  262|   896k|   const uint32_t ab20 = sa0 ^ sb0;
  263|   896k|   const uint32_t ab22 = al ^ bl;
  264|   896k|   const uint32_t ab23 = Y3 ^ Y7;
  265|   896k|   const uint32_t ab21 = sa1 ^ sb1;
  266|   896k|   const uint32_t abcd1 = ah & bh;
  267|   896k|   const uint32_t rr1 = Y0 & Y4;
  268|   896k|   const uint32_t ph11 = ab20 ^ abcd1;
  269|   896k|   const uint32_t t01 = Y1 & Y5;
  270|   896k|   const uint32_t ph01 = t01 ^ abcd1;
  271|   896k|   const uint32_t abcd2 = al & bl;
  272|   896k|   const uint32_t r1 = Y2 & Y6;
  273|   896k|   const uint32_t pl11 = ab22 ^ abcd2;
  274|   896k|   const uint32_t r2 = Y3 & Y7;
  275|   896k|   const uint32_t pl01 = r2 ^ abcd2;
  276|   896k|   const uint32_t r3 = sa0 & sb0;
  277|   896k|   const uint32_t vr1 = aa & bb;
  278|   896k|   const uint32_t pr1 = vr1 ^ r3;
  279|   896k|   const uint32_t wr1 = sa1 & sb1;
  280|   896k|   const uint32_t qr1 = wr1 ^ r3;
  281|   896k|   const uint32_t ab0 = ph11 ^ rr1;
  282|   896k|   const uint32_t ab1 = ph01 ^ ab21;
  283|   896k|   const uint32_t ab2 = pl11 ^ r1;
  284|   896k|   const uint32_t ab3 = pl01 ^ qr1;
  285|   896k|   const uint32_t cp1 = ab0 ^ pr1;
  286|   896k|   const uint32_t cp2 = ab1 ^ qr1;
  287|   896k|   const uint32_t cp3 = ab2 ^ pr1;
  288|   896k|   const uint32_t cp4 = ab3 ^ ab23;
  289|   896k|   const uint32_t tinv1 = cp3 ^ cp4;
  290|   896k|   const uint32_t tinv2 = cp3 & cp1;
  291|   896k|   const uint32_t tinv3 = cp2 ^ tinv2;
  292|   896k|   const uint32_t tinv4 = cp1 ^ cp2;
  293|   896k|   const uint32_t tinv5 = cp4 ^ tinv2;
  294|   896k|   const uint32_t tinv6 = tinv5 & tinv4;
  295|   896k|   const uint32_t tinv7 = tinv3 & tinv1;
  296|   896k|   const uint32_t d2 = cp4 ^ tinv7;
  297|   896k|   const uint32_t d0 = cp2 ^ tinv6;
  298|   896k|   const uint32_t tinv8 = cp1 & cp4;
  299|   896k|   const uint32_t tinv9 = tinv4 & tinv8;
  300|   896k|   const uint32_t tinv10 = tinv4 ^ tinv2;
  301|   896k|   const uint32_t d1 = tinv9 ^ tinv10;
  302|   896k|   const uint32_t tinv11 = cp2 & cp3;
  303|   896k|   const uint32_t tinv12 = tinv1 & tinv11;
  304|   896k|   const uint32_t tinv13 = tinv1 ^ tinv2;
  305|   896k|   const uint32_t d3 = tinv12 ^ tinv13;
  306|   896k|   const uint32_t sd1 = d1 ^ d3;
  307|   896k|   const uint32_t sd0 = d0 ^ d2;
  308|   896k|   const uint32_t dl = d0 ^ d1;  // NOLINT(misc-confusable-identifiers)
  309|   896k|   const uint32_t dh = d2 ^ d3;
  310|   896k|   const uint32_t dd = sd0 ^ sd1;
  311|   896k|   const uint32_t abcd3 = dh & bh;
  312|   896k|   const uint32_t rr2 = d3 & Y4;
  313|   896k|   const uint32_t t02 = d2 & Y5;
  314|   896k|   const uint32_t abcd4 = dl & bl;
  315|   896k|   const uint32_t r4 = d1 & Y6;
  316|   896k|   const uint32_t r5 = d0 & Y7;
  317|   896k|   const uint32_t r6 = sd0 & sb0;
  318|   896k|   const uint32_t vr2 = dd & bb;
  319|   896k|   const uint32_t wr2 = sd1 & sb1;
  320|   896k|   const uint32_t abcd5 = dh & ah;
  321|   896k|   const uint32_t r7 = d3 & Y0;
  322|   896k|   const uint32_t r8 = d2 & Y1;
  323|   896k|   const uint32_t abcd6 = dl & al;
  324|   896k|   const uint32_t r9 = d1 & Y2;
  325|   896k|   const uint32_t r10 = d0 & Y3;
  326|   896k|   const uint32_t r11 = sd0 & sa0;
  327|   896k|   const uint32_t vr3 = dd & aa;
  328|   896k|   const uint32_t wr3 = sd1 & sa1;
  329|   896k|   const uint32_t ph12 = rr2 ^ abcd3;
  330|   896k|   const uint32_t ph02 = t02 ^ abcd3;
  331|   896k|   const uint32_t pl12 = r4 ^ abcd4;
  332|   896k|   const uint32_t pl02 = r5 ^ abcd4;
  333|   896k|   const uint32_t pr2 = vr2 ^ r6;
  334|   896k|   const uint32_t qr2 = wr2 ^ r6;
  335|   896k|   const uint32_t p0 = ph12 ^ pr2;
  336|   896k|   const uint32_t p1 = ph02 ^ qr2;
  337|   896k|   const uint32_t p2 = pl12 ^ pr2;
  338|   896k|   const uint32_t p3 = pl02 ^ qr2;
  339|   896k|   const uint32_t ph13 = r7 ^ abcd5;
  340|   896k|   const uint32_t ph03 = r8 ^ abcd5;
  341|   896k|   const uint32_t pl13 = r9 ^ abcd6;
  342|   896k|   const uint32_t pl03 = r10 ^ abcd6;
  343|   896k|   const uint32_t pr3 = vr3 ^ r11;
  344|   896k|   const uint32_t qr3 = wr3 ^ r11;
  345|   896k|   const uint32_t p4 = ph13 ^ pr3;
  346|   896k|   const uint32_t S7 = ph03 ^ qr3;
  347|   896k|   const uint32_t p6 = pl13 ^ pr3;
  348|   896k|   const uint32_t p7 = pl03 ^ qr3;
  349|   896k|   const uint32_t S3 = p1 ^ p6;
  350|   896k|   const uint32_t S6 = p2 ^ p6;
  351|   896k|   const uint32_t S0 = p3 ^ p6;
  352|   896k|   const uint32_t X11 = p0 ^ p2;
  353|   896k|   const uint32_t S5 = S0 ^ X11;
  354|   896k|   const uint32_t X13 = p4 ^ p7;
  355|   896k|   const uint32_t X14 = X11 ^ X13;
  356|   896k|   const uint32_t S1 = S3 ^ X14;
  357|   896k|   const uint32_t X16 = p1 ^ S7;
  358|   896k|   const uint32_t S2 = X14 ^ X16;
  359|   896k|   const uint32_t X18 = p0 ^ p4;
  360|   896k|   const uint32_t X19 = S5 ^ X16;
  361|   896k|   const uint32_t S4 = X18 ^ X19;
  362|       |
  363|   896k|   V[0] = S0;
  364|   896k|   V[1] = S1;
  365|   896k|   V[2] = S2;
  366|   896k|   V[3] = S3;
  367|   896k|   V[4] = S4;
  368|   896k|   V[5] = S5;
  369|   896k|   V[6] = S6;
  370|   896k|   V[7] = S7;
  371|   896k|}
aes.cpp:_ZN5Botan12_GLOBAL__N_114inv_shift_rowsEPj:
  436|   896k|inline void inv_shift_rows(uint32_t B[8]) {
  437|       |   // Inverse of shift_rows, just inverting the steps
  438|       |
  439|   896k|   if constexpr(HasNative64BitRegisters) {
  440|  4.48M|      for(size_t i = 0; i != 8; i += 2) {
  ------------------
  |  Branch (440:25): [True: 3.58M, False: 896k]
  ------------------
  441|  3.58M|         uint64_t x = (static_cast<uint64_t>(B[i]) << 32) | B[i + 1];
  442|  3.58M|         x = bit_permute_step<uint64_t>(x, 0x0055005500550055, 1);
  443|  3.58M|         x = bit_permute_step<uint64_t>(x, 0x0022331100223311, 2);
  444|  3.58M|         B[i] = static_cast<uint32_t>(x >> 32);
  445|  3.58M|         B[i + 1] = static_cast<uint32_t>(x);
  446|  3.58M|      }
  447|       |   } else {
  448|       |      for(size_t i = 0; i != 8; ++i) {
  449|       |         uint32_t x = B[i];
  450|       |         x = bit_permute_step<uint32_t>(x, 0x00550055, 1);
  451|       |         x = bit_permute_step<uint32_t>(x, 0x00223311, 2);
  452|       |         B[i] = x;
  453|       |      }
  454|       |   }
  455|   896k|}
aes.cpp:_ZN5Botan12_GLOBAL__N_115inv_mix_columnsEPj:
  476|   812k|void inv_mix_columns(uint32_t B[8]) {
  477|       |   /*
  478|       |   OpenSSL's bsaes implementation credits Jussi Kivilinna with the lovely
  479|       |   matrix decomposition
  480|       |
  481|       |   | 0e 0b 0d 09 |   | 02 03 01 01 |   | 05 00 04 00 |
  482|       |   | 09 0e 0b 0d | = | 01 02 03 01 | x | 00 05 00 04 |
  483|       |   | 0d 09 0e 0b |   | 01 01 02 03 |   | 04 00 05 00 |
  484|       |   | 0b 0d 09 0e |   | 03 01 01 02 |   | 00 04 00 05 |
  485|       |
  486|       |   Notice the first component is simply the MixColumns matrix. So we can
  487|       |   multiply first by (05,00,04,00) then perform MixColumns to get the equivalent
  488|       |   of InvMixColumn.
  489|       |   */
  490|   812k|   const uint32_t X4[8] = {
  491|   812k|      B[2],
  492|   812k|      B[3],
  493|   812k|      B[4] ^ B[0],
  494|   812k|      B[5] ^ B[0] ^ B[1],
  495|   812k|      B[6] ^ B[1],
  496|   812k|      B[7] ^ B[0],
  497|   812k|      B[0] ^ B[1],
  498|   812k|      B[1],
  499|   812k|   };
  500|       |
  501|  7.31M|   for(size_t i = 0; i != 8; i++) {
  ------------------
  |  Branch (501:22): [True: 6.50M, False: 812k]
  ------------------
  502|  6.50M|      const uint32_t X5 = X4[i] ^ B[i];
  503|  6.50M|      B[i] = X5 ^ rotr<16>(X4[i]);
  504|  6.50M|   }
  505|       |
  506|   812k|   mix_columns(B);
  507|   812k|}
aes.cpp:_ZN5Botan12_GLOBAL__N_116aes_key_scheduleEPKhmRNSt3__16vectorIjNS_16secure_allocatorIjEEEES8_b:
  678|  15.5k|                      bool bswap_keys = false) {
  679|  15.5k|   static const uint32_t RC[10] = {0x01000000,
  680|  15.5k|                                   0x02000000,
  681|  15.5k|                                   0x04000000,
  682|  15.5k|                                   0x08000000,
  683|  15.5k|                                   0x10000000,
  684|  15.5k|                                   0x20000000,
  685|  15.5k|                                   0x40000000,
  686|  15.5k|                                   0x80000000,
  687|  15.5k|                                   0x1B000000,
  688|  15.5k|                                   0x36000000};
  689|       |
  690|  15.5k|   const size_t X = length / 4;
  691|       |
  692|       |   // Can't happen, but make static analyzers happy
  693|  15.5k|   BOTAN_ASSERT_NOMSG(X == 4 || X == 6 || X == 8);
  ------------------
  |  |   77|  15.5k|   do {                                                                     \
  |  |   78|  15.5k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  44.4k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:12): [True: 4.67k, False: 10.8k]
  |  |  |  Branch (79:12): [True: 8.26k, False: 2.58k]
  |  |  |  Branch (79:12): [True: 2.58k, False: 0]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  15.5k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 15.5k]
  |  |  ------------------
  ------------------
  694|       |
  695|  15.5k|   const size_t rounds = (length / 4) + 6;
  696|       |
  697|       |   // Help the optimizer
  698|  15.5k|   BOTAN_ASSERT_NOMSG(rounds == 10 || rounds == 12 || rounds == 14);
  ------------------
  |  |   77|  15.5k|   do {                                                                     \
  |  |   78|  15.5k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  44.4k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:12): [True: 4.67k, False: 10.8k]
  |  |  |  Branch (79:12): [True: 8.26k, False: 2.58k]
  |  |  |  Branch (79:12): [True: 2.58k, False: 0]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  15.5k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 15.5k]
  |  |  ------------------
  ------------------
  699|       |
  700|  15.5k|   CT::poison(key, length);
  701|       |
  702|  15.5k|   const size_t KS_len = length + 28;
  703|  15.5k|   EK.resize(KS_len);
  704|  15.5k|   DK.resize(KS_len);
  705|       |
  706|   104k|   for(size_t i = 0; i != X; ++i) {
  ------------------
  |  Branch (706:22): [True: 88.9k, False: 15.5k]
  ------------------
  707|  88.9k|      EK[i] = load_be<uint32_t>(key, i);
  708|  88.9k|   }
  709|       |
  710|   146k|   for(size_t i = X; i < 4 * (rounds + 1); i += X) {
  ------------------
  |  Branch (710:22): [True: 130k, False: 15.5k]
  ------------------
  711|   130k|      EK[i] = EK[i - X] ^ RC[(i - X) / X] ^ rotl<8>(SE_word(EK[i - 1]));
  712|       |
  713|   701k|      for(size_t j = 1; j != X && (i + j) < EK.size(); ++j) {
  ------------------
  |  Branch (713:25): [True: 581k, False: 120k]
  |  Branch (713:35): [True: 570k, False: 10.8k]
  ------------------
  714|   570k|         EK[i + j] = EK[i + j - X];
  715|       |
  716|   570k|         if(X == 8 && j == 4) {
  ------------------
  |  Branch (716:13): [True: 116k, False: 454k]
  |  Branch (716:23): [True: 15.5k, False: 100k]
  ------------------
  717|  15.5k|            EK[i + j] ^= SE_word(EK[i + j - 1]);
  718|   554k|         } else {
  719|   554k|            EK[i + j] ^= EK[i + j - 1];
  720|   554k|         }
  721|   570k|      }
  722|   130k|   }
  723|       |
  724|   213k|   for(size_t i = 0; i != 4 * (rounds + 1); i += 4) {
  ------------------
  |  Branch (724:22): [True: 197k, False: 15.5k]
  ------------------
  725|   197k|      DK[i] = EK[4 * rounds - i];
  726|   197k|      DK[i + 1] = EK[4 * rounds - i + 1];
  727|   197k|      DK[i + 2] = EK[4 * rounds - i + 2];
  728|   197k|      DK[i + 3] = EK[4 * rounds - i + 3];
  729|   197k|   }
  730|       |
  731|   182k|   for(size_t i = 4; i != 4 * rounds; i += 4) {
  ------------------
  |  Branch (731:22): [True: 166k, False: 15.5k]
  ------------------
  732|   166k|      InvMixColumn_x4(&DK[i]);
  733|   166k|   }
  734|       |
  735|  15.5k|   if(bswap_keys) {
  ------------------
  |  Branch (735:7): [True: 0, False: 15.5k]
  ------------------
  736|       |      // HW AES on little endian needs the subkeys to be byte reversed
  737|      0|      for(size_t i = 0; i != KS_len; ++i) {
  ------------------
  |  Branch (737:25): [True: 0, False: 0]
  ------------------
  738|      0|         EK[i] = reverse_bytes(EK[i]);
  739|      0|         DK[i] = reverse_bytes(DK[i]);
  740|      0|      }
  741|      0|   }
  742|       |
  743|  15.5k|   CT::unpoison(EK.data(), EK.size());
  744|  15.5k|   CT::unpoison(DK.data(), DK.size());
  745|  15.5k|   CT::unpoison(key, length);
  746|  15.5k|}
aes.cpp:_ZN5Botan12_GLOBAL__N_17SE_wordEj:
  656|   146k|uint32_t SE_word(uint32_t x) {
  657|   146k|   uint32_t I[8] = {0};
  658|       |
  659|  1.31M|   for(size_t i = 0; i != 8; ++i) {
  ------------------
  |  Branch (659:22): [True: 1.17M, False: 146k]
  ------------------
  660|  1.17M|      I[i] = (x >> (7 - i)) & 0x01010101;
  661|  1.17M|   }
  662|       |
  663|   146k|   AES_SBOX(I);
  664|       |
  665|   146k|   x = 0;
  666|       |
  667|  1.31M|   for(size_t i = 0; i != 8; ++i) {
  ------------------
  |  Branch (667:22): [True: 1.17M, False: 146k]
  ------------------
  668|  1.17M|      x |= ((I[i] & 0x01010101) << (7 - i));
  669|  1.17M|   }
  670|       |
  671|   146k|   return x;
  672|   146k|}
aes.cpp:_ZN5Botan12_GLOBAL__N_115InvMixColumn_x4EPj:
  649|   166k|void InvMixColumn_x4(uint32_t x[4]) {
  650|   166k|   x[0] = InvMixColumn(x[0]);
  651|   166k|   x[1] = InvMixColumn(x[1]);
  652|   166k|   x[2] = InvMixColumn(x[2]);
  653|   166k|   x[3] = InvMixColumn(x[3]);
  654|   166k|}
aes.cpp:_ZN5Botan12_GLOBAL__N_112InvMixColumnEj:
  637|   666k|inline uint32_t InvMixColumn(uint32_t s1) {
  638|   666k|   const uint32_t s2 = xtime32(s1);
  639|   666k|   const uint32_t s4 = xtime32(s2);
  640|   666k|   const uint32_t s8 = xtime32(s4);
  641|   666k|   const uint32_t s9 = s8 ^ s1;
  642|   666k|   const uint32_t s11 = s9 ^ s2;
  643|   666k|   const uint32_t s13 = s9 ^ s4;
  644|   666k|   const uint32_t s14 = s8 ^ s4 ^ s2;
  645|       |
  646|   666k|   return s14 ^ rotr<8>(s9) ^ rotr<16>(s13) ^ rotr<24>(s11);
  647|   666k|}
aes.cpp:_ZN5Botan12_GLOBAL__N_17xtime32Ej:
  629|  1.99M|inline uint32_t xtime32(uint32_t s) {
  630|  1.99M|   const uint32_t lo_bit = 0x01010101;
  631|  1.99M|   const uint32_t mask = 0x7F7F7F7F;
  632|  1.99M|   const uint32_t poly = 0x1B;
  633|       |
  634|  1.99M|   return ((s & mask) << 1) ^ (((s >> 7) & lo_bit) * poly);
  635|  1.99M|}

_ZN5Botan11BlockCipher6createENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEES5_:
   96|  57.0k|std::unique_ptr<BlockCipher> BlockCipher::create(std::string_view algo, std::string_view provider) {
   97|       |#if defined(BOTAN_HAS_COMMONCRYPTO)
   98|       |   if(provider.empty() || provider == "commoncrypto") {
   99|       |      if(auto bc = make_commoncrypto_block_cipher(algo))
  100|       |         return bc;
  101|       |
  102|       |      if(!provider.empty())
  103|       |         return nullptr;
  104|       |   }
  105|       |#endif
  106|       |
  107|       |   // TODO: CryptoAPI
  108|       |   // TODO: /dev/crypto
  109|       |
  110|       |   // Only base providers from here on out
  111|  57.0k|   if(provider.empty() == false && provider != "base") {
  ------------------
  |  Branch (111:7): [True: 0, False: 57.0k]
  |  Branch (111:36): [True: 0, False: 0]
  ------------------
  112|      0|      return nullptr;
  113|      0|   }
  114|       |
  115|  57.0k|#if defined(BOTAN_HAS_AES)
  116|  57.0k|   if(algo == "AES-128") {
  ------------------
  |  Branch (116:7): [True: 4.65k, False: 52.3k]
  ------------------
  117|  4.65k|      return std::make_unique<AES_128>();
  118|  4.65k|   }
  119|       |
  120|  52.3k|   if(algo == "AES-192") {
  ------------------
  |  Branch (120:7): [True: 8.24k, False: 44.1k]
  ------------------
  121|  8.24k|      return std::make_unique<AES_192>();
  122|  8.24k|   }
  123|       |
  124|  44.1k|   if(algo == "AES-256") {
  ------------------
  |  Branch (124:7): [True: 2.56k, False: 41.5k]
  ------------------
  125|  2.56k|      return std::make_unique<AES_256>();
  126|  2.56k|   }
  127|  41.5k|#endif
  128|       |
  129|       |#if defined(BOTAN_HAS_ARIA)
  130|       |   if(algo == "ARIA-128") {
  131|       |      return std::make_unique<ARIA_128>();
  132|       |   }
  133|       |
  134|       |   if(algo == "ARIA-192") {
  135|       |      return std::make_unique<ARIA_192>();
  136|       |   }
  137|       |
  138|       |   if(algo == "ARIA-256") {
  139|       |      return std::make_unique<ARIA_256>();
  140|       |   }
  141|       |#endif
  142|       |
  143|       |#if defined(BOTAN_HAS_SERPENT)
  144|       |   if(algo == "Serpent") {
  145|       |      return std::make_unique<Serpent>();
  146|       |   }
  147|       |#endif
  148|       |
  149|       |#if defined(BOTAN_HAS_SHACAL2)
  150|       |   if(algo == "SHACAL2") {
  151|       |      return std::make_unique<SHACAL2>();
  152|       |   }
  153|       |#endif
  154|       |
  155|  41.5k|#if defined(BOTAN_HAS_TWOFISH)
  156|  41.5k|   if(algo == "Twofish") {
  ------------------
  |  Branch (156:7): [True: 5.16k, False: 36.4k]
  ------------------
  157|  5.16k|      return std::make_unique<Twofish>();
  158|  5.16k|   }
  159|  36.4k|#endif
  160|       |
  161|       |#if defined(BOTAN_HAS_THREEFISH_512)
  162|       |   if(algo == "Threefish-512") {
  163|       |      return std::make_unique<Threefish_512>();
  164|       |   }
  165|       |#endif
  166|       |
  167|  36.4k|#if defined(BOTAN_HAS_BLOWFISH)
  168|  36.4k|   if(algo == "Blowfish") {
  ------------------
  |  Branch (168:7): [True: 1.61k, False: 34.8k]
  ------------------
  169|  1.61k|      return std::make_unique<Blowfish>();
  170|  1.61k|   }
  171|  34.8k|#endif
  172|       |
  173|  34.8k|#if defined(BOTAN_HAS_CAMELLIA)
  174|  34.8k|   if(algo == "Camellia-128") {
  ------------------
  |  Branch (174:7): [True: 3.73k, False: 31.0k]
  ------------------
  175|  3.73k|      return std::make_unique<Camellia_128>();
  176|  3.73k|   }
  177|       |
  178|  31.0k|   if(algo == "Camellia-192") {
  ------------------
  |  Branch (178:7): [True: 242, False: 30.8k]
  ------------------
  179|    242|      return std::make_unique<Camellia_192>();
  180|    242|   }
  181|       |
  182|  30.8k|   if(algo == "Camellia-256") {
  ------------------
  |  Branch (182:7): [True: 438, False: 30.3k]
  ------------------
  183|    438|      return std::make_unique<Camellia_256>();
  184|    438|   }
  185|  30.3k|#endif
  186|       |
  187|  30.3k|#if defined(BOTAN_HAS_DES)
  188|  30.3k|   if(algo == "DES") {
  ------------------
  |  Branch (188:7): [True: 0, False: 30.3k]
  ------------------
  189|      0|      return std::make_unique<DES>();
  190|      0|   }
  191|       |
  192|  30.3k|   if(algo == "TripleDES" || algo == "3DES" || algo == "DES-EDE") {
  ------------------
  |  Branch (192:7): [True: 6.32k, False: 24.0k]
  |  Branch (192:30): [True: 0, False: 24.0k]
  |  Branch (192:48): [True: 0, False: 24.0k]
  ------------------
  193|  6.32k|      return std::make_unique<TripleDES>();
  194|  6.32k|   }
  195|  24.0k|#endif
  196|       |
  197|       |#if defined(BOTAN_HAS_NOEKEON)
  198|       |   if(algo == "Noekeon") {
  199|       |      return std::make_unique<Noekeon>();
  200|       |   }
  201|       |#endif
  202|       |
  203|  24.0k|#if defined(BOTAN_HAS_CAST_128)
  204|  24.0k|   if(algo == "CAST-128" || algo == "CAST5") {
  ------------------
  |  Branch (204:7): [True: 17.4k, False: 6.61k]
  |  Branch (204:29): [True: 0, False: 6.61k]
  ------------------
  205|  17.4k|      return std::make_unique<CAST_128>();
  206|  17.4k|   }
  207|  6.61k|#endif
  208|       |
  209|  6.61k|#if defined(BOTAN_HAS_IDEA)
  210|  6.61k|   if(algo == "IDEA") {
  ------------------
  |  Branch (210:7): [True: 5.73k, False: 886]
  ------------------
  211|  5.73k|      return std::make_unique<IDEA>();
  212|  5.73k|   }
  213|    886|#endif
  214|       |
  215|       |#if defined(BOTAN_HAS_KUZNYECHIK)
  216|       |   if(algo == "Kuznyechik") {
  217|       |      return std::make_unique<Kuznyechik>();
  218|       |   }
  219|       |#endif
  220|       |
  221|       |#if defined(BOTAN_HAS_SEED)
  222|       |   if(algo == "SEED") {
  223|       |      return std::make_unique<SEED>();
  224|       |   }
  225|       |#endif
  226|       |
  227|    886|#if defined(BOTAN_HAS_SM4)
  228|    886|   if(algo == "SM4") {
  ------------------
  |  Branch (228:7): [True: 886, False: 0]
  ------------------
  229|    886|      return std::make_unique<SM4>();
  230|    886|   }
  231|      0|#endif
  232|       |
  233|      0|   const SCAN_Name req(algo);
  234|       |
  235|       |#if defined(BOTAN_HAS_GOST_28147_89)
  236|       |   if(req.algo_name() == "GOST-28147-89") {
  237|       |      return std::make_unique<GOST_28147_89>(req.arg(0, "R3411_94_TestParam"));
  238|       |   }
  239|       |#endif
  240|       |
  241|       |#if defined(BOTAN_HAS_CASCADE)
  242|       |   if(req.algo_name() == "Cascade" && req.arg_count() == 2) {
  243|       |      auto c1 = BlockCipher::create(req.arg(0));
  244|       |      auto c2 = BlockCipher::create(req.arg(1));
  245|       |
  246|       |      if(c1 && c2) {
  247|       |         return std::make_unique<Cascade_Cipher>(std::move(c1), std::move(c2));
  248|       |      }
  249|       |   }
  250|       |#endif
  251|       |
  252|       |#if defined(BOTAN_HAS_LION)
  253|       |   if(req.algo_name() == "Lion" && req.arg_count_between(2, 3)) {
  254|       |      auto hash = HashFunction::create(req.arg(0));
  255|       |      auto stream = StreamCipher::create(req.arg(1));
  256|       |
  257|       |      if(hash && stream) {
  258|       |         const size_t block_size = req.arg_as_integer(2, 1024);
  259|       |         return std::make_unique<Lion>(std::move(hash), std::move(stream), block_size);
  260|       |      }
  261|       |   }
  262|       |#endif
  263|       |
  264|      0|   BOTAN_UNUSED(req);
  ------------------
  |  |  144|      0|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
  265|      0|   BOTAN_UNUSED(provider);
  ------------------
  |  |  144|      0|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
  266|       |
  267|      0|   return nullptr;
  268|    886|}

_ZNK5Botan8Blowfish9encrypt_nEPKhPhm:
  156|   182k|void Blowfish::encrypt_n(const uint8_t in[], uint8_t out[], size_t blocks) const {
  157|   182k|   assert_key_material_set();
  158|       |
  159|   218k|   while(blocks >= 4) {
  ------------------
  |  Branch (159:10): [True: 35.9k, False: 182k]
  ------------------
  160|  35.9k|      uint32_t L0 = load_be<uint32_t>(in, 0);
  161|  35.9k|      uint32_t R0 = load_be<uint32_t>(in, 1);
  162|  35.9k|      uint32_t L1 = load_be<uint32_t>(in, 2);
  163|  35.9k|      uint32_t R1 = load_be<uint32_t>(in, 3);
  164|  35.9k|      uint32_t L2 = load_be<uint32_t>(in, 4);
  165|  35.9k|      uint32_t R2 = load_be<uint32_t>(in, 5);
  166|  35.9k|      uint32_t L3 = load_be<uint32_t>(in, 6);
  167|  35.9k|      uint32_t R3 = load_be<uint32_t>(in, 7);
  168|       |
  169|   323k|      for(size_t r = 0; r != 16; r += 2) {
  ------------------
  |  Branch (169:25): [True: 287k, False: 35.9k]
  ------------------
  170|   287k|         L0 ^= m_P[r];
  171|   287k|         L1 ^= m_P[r];
  172|   287k|         L2 ^= m_P[r];
  173|   287k|         L3 ^= m_P[r];
  174|   287k|         R0 ^= BFF(L0, m_S);
  175|   287k|         R1 ^= BFF(L1, m_S);
  176|   287k|         R2 ^= BFF(L2, m_S);
  177|   287k|         R3 ^= BFF(L3, m_S);
  178|       |
  179|   287k|         R0 ^= m_P[r + 1];
  180|   287k|         R1 ^= m_P[r + 1];
  181|   287k|         R2 ^= m_P[r + 1];
  182|   287k|         R3 ^= m_P[r + 1];
  183|   287k|         L0 ^= BFF(R0, m_S);
  184|   287k|         L1 ^= BFF(R1, m_S);
  185|   287k|         L2 ^= BFF(R2, m_S);
  186|   287k|         L3 ^= BFF(R3, m_S);
  187|   287k|      }
  188|       |
  189|  35.9k|      L0 ^= m_P[16];
  190|  35.9k|      R0 ^= m_P[17];
  191|  35.9k|      L1 ^= m_P[16];
  192|  35.9k|      R1 ^= m_P[17];
  193|  35.9k|      L2 ^= m_P[16];
  194|  35.9k|      R2 ^= m_P[17];
  195|  35.9k|      L3 ^= m_P[16];
  196|  35.9k|      R3 ^= m_P[17];
  197|       |
  198|  35.9k|      store_be(out, R0, L0, R1, L1, R2, L2, R3, L3);
  199|       |
  200|  35.9k|      in += 4 * BLOCK_SIZE;
  201|  35.9k|      out += 4 * BLOCK_SIZE;
  202|  35.9k|      blocks -= 4;
  203|  35.9k|   }
  204|       |
  205|   329k|   while(blocks > 0) {
  ------------------
  |  Branch (205:10): [True: 146k, False: 182k]
  ------------------
  206|   146k|      uint32_t L = load_be<uint32_t>(in, 0);
  207|   146k|      uint32_t R = load_be<uint32_t>(in, 1);
  208|       |
  209|  1.32M|      for(size_t r = 0; r != 16; r += 2) {
  ------------------
  |  Branch (209:25): [True: 1.17M, False: 146k]
  ------------------
  210|  1.17M|         L ^= m_P[r];
  211|  1.17M|         R ^= BFF(L, m_S);
  212|       |
  213|  1.17M|         R ^= m_P[r + 1];
  214|  1.17M|         L ^= BFF(R, m_S);
  215|  1.17M|      }
  216|       |
  217|   146k|      L ^= m_P[16];
  218|   146k|      R ^= m_P[17];
  219|       |
  220|   146k|      store_be(out, R, L);
  221|       |
  222|   146k|      in += BLOCK_SIZE;
  223|   146k|      out += BLOCK_SIZE;
  224|   146k|      blocks--;
  225|   146k|   }
  226|   182k|}
_ZNK5Botan8Blowfish19has_keying_materialEv:
  304|   247k|bool Blowfish::has_keying_material() const {
  305|   247k|   return !m_P.empty();
  306|   247k|}
_ZN5Botan8Blowfish12key_scheduleENSt3__14spanIKhLm18446744073709551615EEE:
  311|  1.46k|void Blowfish::key_schedule(std::span<const uint8_t> key) {
  312|  1.46k|   m_P.resize(18);
  313|  1.46k|   copy_mem(m_P.data(), P_INIT, 18);
  314|       |
  315|  1.46k|   m_S.resize(1024);
  316|  1.46k|   copy_mem(m_S.data(), S_INIT, 1024);
  317|       |
  318|  1.46k|   key_expansion(key.data(), key.size(), nullptr, 0);
  319|  1.46k|}
_ZN5Botan8Blowfish13key_expansionEPKhmS2_m:
  321|  1.46k|void Blowfish::key_expansion(const uint8_t key[], size_t length, const uint8_t salt[], size_t salt_length) {
  322|  1.46k|   BOTAN_ASSERT_NOMSG(length > 0);
  ------------------
  |  |   77|  1.46k|   do {                                                                     \
  |  |   78|  1.46k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  1.46k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 1.46k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  1.46k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 1.46k]
  |  |  ------------------
  ------------------
  323|  1.46k|   BOTAN_ASSERT_NOMSG(salt_length % 4 == 0);
  ------------------
  |  |   77|  1.46k|   do {                                                                     \
  |  |   78|  1.46k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  1.46k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 1.46k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  1.46k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 1.46k]
  |  |  ------------------
  ------------------
  324|       |
  325|  27.8k|   for(size_t i = 0, j = 0; i != 18; ++i, j += 4) {
  ------------------
  |  Branch (325:29): [True: 26.3k, False: 1.46k]
  ------------------
  326|  26.3k|      m_P[i] ^= make_uint32(key[(j) % length], key[(j + 1) % length], key[(j + 2) % length], key[(j + 3) % length]);
  327|  26.3k|   }
  328|       |
  329|  1.46k|   const size_t P_salt_offset = (salt_length > 0) ? 18 % (salt_length / 4) : 0;
  ------------------
  |  Branch (329:33): [True: 0, False: 1.46k]
  ------------------
  330|       |
  331|  1.46k|   uint32_t L = 0;
  332|  1.46k|   uint32_t R = 0;
  333|  1.46k|   generate_sbox(m_P, L, R, salt, salt_length, 0);
  334|  1.46k|   generate_sbox(m_S, L, R, salt, salt_length, P_salt_offset);
  335|  1.46k|}
_ZNK5Botan8Blowfish13generate_sboxERNSt3__16vectorIjNS_16secure_allocatorIjEEEERjS7_PKhmm:
  377|  2.93k|                             size_t salt_off) const {
  378|   766k|   for(size_t i = 0; i != box.size(); i += 2) {
  ------------------
  |  Branch (378:22): [True: 763k, False: 2.93k]
  ------------------
  379|   763k|      if(salt_length > 0) {
  ------------------
  |  Branch (379:10): [True: 0, False: 763k]
  ------------------
  380|      0|         L ^= load_be<uint32_t>(salt, (i + salt_off) % (salt_length / 4));
  381|      0|         R ^= load_be<uint32_t>(salt, (i + salt_off + 1) % (salt_length / 4));
  382|      0|      }
  383|       |
  384|  6.87M|      for(size_t r = 0; r != 16; r += 2) {
  ------------------
  |  Branch (384:25): [True: 6.11M, False: 763k]
  ------------------
  385|  6.11M|         L ^= m_P[r];
  386|  6.11M|         R ^= BFF(L, m_S);
  387|       |
  388|  6.11M|         R ^= m_P[r + 1];
  389|  6.11M|         L ^= BFF(R, m_S);
  390|  6.11M|      }
  391|       |
  392|       |      // Must read-then-write since sometimes sbox parameter is m_P
  393|   763k|      const uint32_t T = R;
  394|   763k|      R = L ^ m_P[16];
  395|   763k|      L = T ^ m_P[17];
  396|   763k|      box[i] = L;
  397|   763k|      box[i + 1] = R;
  398|   763k|   }
  399|  2.93k|}
_ZN5Botan8Blowfish5clearEv:
  404|     34|void Blowfish::clear() {
  405|     34|   zap(m_P);
  406|     34|   zap(m_S);
  407|     34|}
blowfish.cpp:_ZN5Botan12_GLOBAL__N_13BFFEjRKNSt3__16vectorIjNS_16secure_allocatorIjEEEE:
  142|  16.8M|inline uint32_t BFF(uint32_t X, const secure_vector<uint32_t>& S) {
  143|  16.8M|   const uint32_t s0 = S[get_byte<0>(X)];
  144|  16.8M|   const uint32_t s1 = S[get_byte<1>(X) + 256];
  145|  16.8M|   const uint32_t s2 = S[get_byte<2>(X) + 512];
  146|  16.8M|   const uint32_t s3 = S[get_byte<3>(X) + 768];
  147|       |
  148|  16.8M|   return (((s0 + s1) ^ s2) + s3);
  149|  16.8M|}

_ZNK5Botan12Camellia_1289encrypt_nEPKhPhm:
  431|   635k|void Camellia_128::encrypt_n(const uint8_t in[], uint8_t out[], size_t blocks) const {
  432|   635k|   assert_key_material_set();
  433|       |
  434|       |#if defined(BOTAN_HAS_CAMELLIA_AVX512_GFNI)
  435|       |   if(CPUID::has(CPUID::Feature::AVX512, CPUID::Feature::GFNI)) {
  436|       |      return avx512_gfni_encrypt(in, out, blocks, m_SK);
  437|       |   }
  438|       |#endif
  439|       |
  440|       |#if defined(BOTAN_HAS_CAMELLIA_AVX2_GFNI)
  441|       |   if(CPUID::has(CPUID::Feature::GFNI)) {
  442|       |      return avx2_gfni_encrypt(in, out, blocks, m_SK);
  443|       |   }
  444|       |#endif
  445|       |
  446|       |#if defined(BOTAN_HAS_CAMELLIA_HWAES)
  447|       |   if(CPUID::has(CPUID::Feature::HW_AES)) {
  448|       |      return hwaes_encrypt(in, out, blocks, m_SK);
  449|       |   }
  450|       |#endif
  451|       |
  452|   635k|   Camellia_F::encrypt(in, out, blocks, m_SK, 9);
  453|   635k|}
_ZNK5Botan12Camellia_1929encrypt_nEPKhPhm:
  455|  1.56k|void Camellia_192::encrypt_n(const uint8_t in[], uint8_t out[], size_t blocks) const {
  456|  1.56k|   assert_key_material_set();
  457|       |
  458|       |#if defined(BOTAN_HAS_CAMELLIA_AVX512_GFNI)
  459|       |   if(CPUID::has(CPUID::Feature::AVX512, CPUID::Feature::GFNI)) {
  460|       |      return avx512_gfni_encrypt(in, out, blocks, m_SK);
  461|       |   }
  462|       |#endif
  463|       |
  464|       |#if defined(BOTAN_HAS_CAMELLIA_AVX2_GFNI)
  465|       |   if(CPUID::has(CPUID::Feature::GFNI)) {
  466|       |      return avx2_gfni_encrypt(in, out, blocks, m_SK);
  467|       |   }
  468|       |#endif
  469|       |
  470|       |#if defined(BOTAN_HAS_CAMELLIA_HWAES)
  471|       |   if(CPUID::has(CPUID::Feature::HW_AES)) {
  472|       |      return hwaes_encrypt(in, out, blocks, m_SK);
  473|       |   }
  474|       |#endif
  475|       |
  476|  1.56k|   Camellia_F::encrypt(in, out, blocks, m_SK, 12);
  477|  1.56k|}
_ZNK5Botan12Camellia_2569encrypt_nEPKhPhm:
  479|  60.8k|void Camellia_256::encrypt_n(const uint8_t in[], uint8_t out[], size_t blocks) const {
  480|  60.8k|   assert_key_material_set();
  481|       |
  482|       |#if defined(BOTAN_HAS_CAMELLIA_AVX512_GFNI)
  483|       |   if(CPUID::has(CPUID::Feature::AVX512, CPUID::Feature::GFNI)) {
  484|       |      return avx512_gfni_encrypt(in, out, blocks, m_SK);
  485|       |   }
  486|       |#endif
  487|       |
  488|       |#if defined(BOTAN_HAS_CAMELLIA_AVX2_GFNI)
  489|       |   if(CPUID::has(CPUID::Feature::GFNI)) {
  490|       |      return avx2_gfni_encrypt(in, out, blocks, m_SK);
  491|       |   }
  492|       |#endif
  493|       |
  494|       |#if defined(BOTAN_HAS_CAMELLIA_HWAES)
  495|       |   if(CPUID::has(CPUID::Feature::HW_AES)) {
  496|       |      return hwaes_encrypt(in, out, blocks, m_SK);
  497|       |   }
  498|       |#endif
  499|       |
  500|  60.8k|   Camellia_F::encrypt(in, out, blocks, m_SK, 12);
  501|  60.8k|}
_ZNK5Botan12Camellia_1289decrypt_nEPKhPhm:
  503|    253|void Camellia_128::decrypt_n(const uint8_t in[], uint8_t out[], size_t blocks) const {
  504|    253|   assert_key_material_set();
  505|       |
  506|       |#if defined(BOTAN_HAS_CAMELLIA_AVX512_GFNI)
  507|       |   if(CPUID::has(CPUID::Feature::AVX512, CPUID::Feature::GFNI)) {
  508|       |      return avx512_gfni_decrypt(in, out, blocks, m_SK);
  509|       |   }
  510|       |#endif
  511|       |
  512|       |#if defined(BOTAN_HAS_CAMELLIA_AVX2_GFNI)
  513|       |   if(CPUID::has(CPUID::Feature::GFNI)) {
  514|       |      return avx2_gfni_decrypt(in, out, blocks, m_SK);
  515|       |   }
  516|       |#endif
  517|       |
  518|       |#if defined(BOTAN_HAS_CAMELLIA_HWAES)
  519|       |   if(CPUID::has(CPUID::Feature::HW_AES)) {
  520|       |      return hwaes_decrypt(in, out, blocks, m_SK);
  521|       |   }
  522|       |#endif
  523|       |
  524|    253|   Camellia_F::decrypt(in, out, blocks, m_SK, 9);
  525|    253|}
_ZNK5Botan12Camellia_1929decrypt_nEPKhPhm:
  527|  13.2k|void Camellia_192::decrypt_n(const uint8_t in[], uint8_t out[], size_t blocks) const {
  528|  13.2k|   assert_key_material_set();
  529|       |
  530|       |#if defined(BOTAN_HAS_CAMELLIA_AVX512_GFNI)
  531|       |   if(CPUID::has(CPUID::Feature::AVX512, CPUID::Feature::GFNI)) {
  532|       |      return avx512_gfni_decrypt(in, out, blocks, m_SK);
  533|       |   }
  534|       |#endif
  535|       |
  536|       |#if defined(BOTAN_HAS_CAMELLIA_AVX2_GFNI)
  537|       |   if(CPUID::has(CPUID::Feature::GFNI)) {
  538|       |      return avx2_gfni_decrypt(in, out, blocks, m_SK);
  539|       |   }
  540|       |#endif
  541|       |
  542|       |#if defined(BOTAN_HAS_CAMELLIA_HWAES)
  543|       |   if(CPUID::has(CPUID::Feature::HW_AES)) {
  544|       |      return hwaes_decrypt(in, out, blocks, m_SK);
  545|       |   }
  546|       |#endif
  547|       |
  548|  13.2k|   Camellia_F::decrypt(in, out, blocks, m_SK, 12);
  549|  13.2k|}
_ZNK5Botan12Camellia_2569decrypt_nEPKhPhm:
  551|  7.63k|void Camellia_256::decrypt_n(const uint8_t in[], uint8_t out[], size_t blocks) const {
  552|  7.63k|   assert_key_material_set();
  553|       |
  554|       |#if defined(BOTAN_HAS_CAMELLIA_AVX512_GFNI)
  555|       |   if(CPUID::has(CPUID::Feature::AVX512, CPUID::Feature::GFNI)) {
  556|       |      return avx512_gfni_decrypt(in, out, blocks, m_SK);
  557|       |   }
  558|       |#endif
  559|       |
  560|       |#if defined(BOTAN_HAS_CAMELLIA_AVX2_GFNI)
  561|       |   if(CPUID::has(CPUID::Feature::GFNI)) {
  562|       |      return avx2_gfni_decrypt(in, out, blocks, m_SK);
  563|       |   }
  564|       |#endif
  565|       |
  566|       |#if defined(BOTAN_HAS_CAMELLIA_HWAES)
  567|       |   if(CPUID::has(CPUID::Feature::HW_AES)) {
  568|       |      return hwaes_decrypt(in, out, blocks, m_SK);
  569|       |   }
  570|       |#endif
  571|       |
  572|  7.63k|   Camellia_F::decrypt(in, out, blocks, m_SK, 12);
  573|  7.63k|}
_ZNK5Botan12Camellia_12819has_keying_materialEv:
  575|   636k|bool Camellia_128::has_keying_material() const {
  576|   636k|   return !m_SK.empty();
  577|   636k|}
_ZNK5Botan12Camellia_19219has_keying_materialEv:
  579|  27.2k|bool Camellia_192::has_keying_material() const {
  580|  27.2k|   return !m_SK.empty();
  581|  27.2k|}
_ZNK5Botan12Camellia_25619has_keying_materialEv:
  583|   101k|bool Camellia_256::has_keying_material() const {
  584|   101k|   return !m_SK.empty();
  585|   101k|}
_ZN5Botan12Camellia_12812key_scheduleENSt3__14spanIKhLm18446744073709551615EEE:
  587|  3.75k|void Camellia_128::key_schedule(std::span<const uint8_t> key) {
  588|  3.75k|   Camellia_F::key_schedule(m_SK, key);
  589|  3.75k|}
_ZN5Botan12Camellia_19212key_scheduleENSt3__14spanIKhLm18446744073709551615EEE:
  591|    260|void Camellia_192::key_schedule(std::span<const uint8_t> key) {
  592|    260|   Camellia_F::key_schedule(m_SK, key);
  593|    260|}
_ZN5Botan12Camellia_25612key_scheduleENSt3__14spanIKhLm18446744073709551615EEE:
  595|    454|void Camellia_256::key_schedule(std::span<const uint8_t> key) {
  596|    454|   Camellia_F::key_schedule(m_SK, key);
  597|    454|}
_ZN5Botan12Camellia_1285clearEv:
  599|     20|void Camellia_128::clear() {
  600|     20|   zap(m_SK);
  601|     20|}
_ZN5Botan12Camellia_1925clearEv:
  603|     18|void Camellia_192::clear() {
  604|     18|   zap(m_SK);
  605|     18|}
_ZN5Botan12Camellia_2565clearEv:
  607|     16|void Camellia_256::clear() {
  608|     16|   zap(m_SK);
  609|     16|}
_ZNK5Botan12Camellia_12811parallelismEv:
  623|    139|size_t Camellia_128::parallelism() const {
  624|    139|   return Camellia_F::parallelism();
  625|    139|}
_ZNK5Botan12Camellia_19211parallelismEv:
  627|    164|size_t Camellia_192::parallelism() const {
  628|    164|   return Camellia_F::parallelism();
  629|    164|}
_ZNK5Botan12Camellia_25611parallelismEv:
  631|    283|size_t Camellia_256::parallelism() const {
  632|    283|   return Camellia_F::parallelism();
  633|    283|}
camellia.cpp:_ZN5Botan12_GLOBAL__N_110Camellia_F7encryptEPKhPhmRKNSt3__16vectorImNS_16secure_allocatorImEEEEm:
  173|   697k|void encrypt(const uint8_t in[], uint8_t out[], size_t blocks, const secure_vector<uint64_t>& SK, size_t rounds) {
  174|   697k|   prefetch_arrays(SBOX1, SBOX2, SBOX3, SBOX4);
  175|       |
  176|  1.45M|   for(size_t i = 0; i < blocks; ++i) {
  ------------------
  |  Branch (176:22): [True: 761k, False: 697k]
  ------------------
  177|   761k|      uint64_t D1 = load_be<uint64_t>(in, 2 * i + 0);
  178|   761k|      uint64_t D2 = load_be<uint64_t>(in, 2 * i + 1);
  179|       |
  180|   761k|      const uint64_t* K = SK.data();
  181|       |
  182|   761k|      D1 ^= *K++;
  183|   761k|      D2 ^= *K++;
  184|       |
  185|   761k|      D2 ^= F(D1, *K++);
  186|   761k|      D1 ^= F(D2, *K++);
  187|       |
  188|  6.46M|      for(size_t r = 1; r != rounds - 1; ++r) {
  ------------------
  |  Branch (188:25): [True: 5.70M, False: 761k]
  ------------------
  189|  5.70M|         if(r % 3 == 0) {
  ------------------
  |  Branch (189:13): [True: 1.64M, False: 4.05M]
  ------------------
  190|  1.64M|            D1 = FL(D1, *K++);
  191|  1.64M|            D2 = FLINV(D2, *K++);
  192|  1.64M|         }
  193|       |
  194|  5.70M|         D2 ^= F(D1, *K++);
  195|  5.70M|         D1 ^= F(D2, *K++);
  196|  5.70M|      }
  197|       |
  198|   761k|      D2 ^= F(D1, *K++);
  199|   761k|      D1 ^= F(D2, *K++);
  200|       |
  201|   761k|      D2 ^= *K++;
  202|   761k|      D1 ^= *K++;
  203|       |
  204|   761k|      store_be(out + 16 * i, D2, D1);
  205|   761k|   }
  206|   697k|}
camellia.cpp:_ZN5Botan12_GLOBAL__N_110Camellia_F1FEmm:
  118|  16.4M|uint64_t F(uint64_t v, uint64_t K) {
  119|  16.4M|   const uint64_t x = v ^ K;
  120|       |
  121|  16.4M|   return P(SBOX1[get_byte<0>(x)],
  122|  16.4M|            SBOX2[get_byte<1>(x)],
  123|  16.4M|            SBOX3[get_byte<2>(x)],
  124|  16.4M|            SBOX4[get_byte<3>(x)],
  125|  16.4M|            SBOX2[get_byte<4>(x)],
  126|  16.4M|            SBOX3[get_byte<5>(x)],
  127|  16.4M|            SBOX4[get_byte<6>(x)],
  128|  16.4M|            SBOX1[get_byte<7>(x)]);
  129|  16.4M|}
camellia.cpp:_ZN5Botan12_GLOBAL__N_110Camellia_F1PEhhhhhhhh:
   96|  16.4M|inline uint64_t P(uint8_t z1, uint8_t z2, uint8_t z3, uint8_t z4, uint8_t z5, uint8_t z6, uint8_t z7, uint8_t z8) {
   97|  16.4M|   constexpr uint64_t M1 = 0x0101010001000001;
   98|  16.4M|   constexpr uint64_t M2 = 0x0001010101010000;
   99|  16.4M|   constexpr uint64_t M3 = 0x0100010100010100;
  100|  16.4M|   constexpr uint64_t M4 = 0x0101000100000101;
  101|  16.4M|   constexpr uint64_t M5 = 0x0001010100010101;
  102|  16.4M|   constexpr uint64_t M6 = 0x0100010101000101;
  103|  16.4M|   constexpr uint64_t M7 = 0x0101000101010001;
  104|  16.4M|   constexpr uint64_t M8 = 0x0101010001010100;
  105|       |
  106|  16.4M|   const uint64_t Z1 = M1 * z1;
  107|  16.4M|   const uint64_t Z2 = M2 * z2;
  108|  16.4M|   const uint64_t Z3 = M3 * z3;
  109|  16.4M|   const uint64_t Z4 = M4 * z4;
  110|  16.4M|   const uint64_t Z5 = M5 * z5;
  111|  16.4M|   const uint64_t Z6 = M6 * z6;
  112|  16.4M|   const uint64_t Z7 = M7 * z7;
  113|  16.4M|   const uint64_t Z8 = M8 * z8;
  114|       |
  115|  16.4M|   return Z1 ^ Z2 ^ Z3 ^ Z4 ^ Z5 ^ Z6 ^ Z7 ^ Z8;
  116|  16.4M|}
camellia.cpp:_ZN5Botan12_GLOBAL__N_110Camellia_F2FLEmm:
  144|  1.89M|inline uint64_t FL(uint64_t v, uint64_t K) {
  145|  1.89M|   uint32_t x1 = static_cast<uint32_t>(v >> 32);
  146|  1.89M|   uint32_t x2 = static_cast<uint32_t>(v & 0xFFFFFFFF);
  147|       |
  148|  1.89M|   const uint32_t k1 = static_cast<uint32_t>(K >> 32);
  149|  1.89M|   const uint32_t k2 = static_cast<uint32_t>(K & 0xFFFFFFFF);
  150|       |
  151|  1.89M|   x2 ^= rotl<1>(x1 & k1);
  152|  1.89M|   x1 ^= (x2 | k2);
  153|       |
  154|  1.89M|   return ((static_cast<uint64_t>(x1) << 32) | x2);
  155|  1.89M|}
camellia.cpp:_ZN5Botan12_GLOBAL__N_110Camellia_F5FLINVEmm:
  157|  1.89M|inline uint64_t FLINV(uint64_t v, uint64_t K) {
  158|  1.89M|   uint32_t x1 = static_cast<uint32_t>(v >> 32);
  159|  1.89M|   uint32_t x2 = static_cast<uint32_t>(v & 0xFFFFFFFF);
  160|       |
  161|  1.89M|   const uint32_t k1 = static_cast<uint32_t>(K >> 32);
  162|  1.89M|   const uint32_t k2 = static_cast<uint32_t>(K & 0xFFFFFFFF);
  163|       |
  164|  1.89M|   x1 ^= (x2 | k2);
  165|  1.89M|   x2 ^= rotl<1>(x1 & k1);
  166|       |
  167|  1.89M|   return ((static_cast<uint64_t>(x1) << 32) | x2);
  168|  1.89M|}
camellia.cpp:_ZN5Botan12_GLOBAL__N_110Camellia_F7decryptEPKhPhmRKNSt3__16vectorImNS_16secure_allocatorImEEEEm:
  211|  21.1k|void decrypt(const uint8_t in[], uint8_t out[], size_t blocks, const secure_vector<uint64_t>& SK, size_t rounds) {
  212|  21.1k|   prefetch_arrays(SBOX1, SBOX2, SBOX3, SBOX4);
  213|       |
  214|   105k|   for(size_t i = 0; i < blocks; ++i) {
  ------------------
  |  Branch (214:22): [True: 84.4k, False: 21.1k]
  ------------------
  215|  84.4k|      uint64_t D1 = load_be<uint64_t>(in, 2 * i + 0);
  216|  84.4k|      uint64_t D2 = load_be<uint64_t>(in, 2 * i + 1);
  217|       |
  218|  84.4k|      const uint64_t* K = &SK[SK.size() - 1];
  219|       |
  220|  84.4k|      D2 ^= *K--;
  221|  84.4k|      D1 ^= *K--;
  222|       |
  223|  84.4k|      D2 ^= F(D1, *K--);
  224|  84.4k|      D1 ^= F(D2, *K--);
  225|       |
  226|   926k|      for(size_t r = 1; r != rounds - 1; ++r) {
  ------------------
  |  Branch (226:25): [True: 841k, False: 84.4k]
  ------------------
  227|   841k|         if(r % 3 == 0) {
  ------------------
  |  Branch (227:13): [True: 252k, False: 589k]
  ------------------
  228|   252k|            D1 = FL(D1, *K--);
  229|   252k|            D2 = FLINV(D2, *K--);
  230|   252k|         }
  231|       |
  232|   841k|         D2 ^= F(D1, *K--);
  233|   841k|         D1 ^= F(D2, *K--);
  234|   841k|      }
  235|       |
  236|  84.4k|      D2 ^= F(D1, *K--);
  237|  84.4k|      D1 ^= F(D2, *K--);
  238|       |
  239|  84.4k|      D1 ^= *K--;
  240|  84.4k|      D2 ^= *K;
  241|       |
  242|  84.4k|      store_be(out + 16 * i, D2, D1);
  243|  84.4k|   }
  244|  21.1k|}
camellia.cpp:_ZN5Botan12_GLOBAL__N_110Camellia_F12key_scheduleERNSt3__16vectorImNS_16secure_allocatorImEEEENS2_4spanIKhLm18446744073709551615EEE:
  263|  4.46k|void key_schedule(secure_vector<uint64_t>& SK, std::span<const uint8_t> key) {
  264|  4.46k|   prefetch_arrays(SBOX1);
  265|       |
  266|  4.46k|   constexpr uint64_t Sigma1 = 0xA09E667F3BCC908B;
  267|  4.46k|   constexpr uint64_t Sigma2 = 0xB67AE8584CAA73B2;
  268|  4.46k|   constexpr uint64_t Sigma3 = 0xC6EF372FE94F82BE;
  269|  4.46k|   constexpr uint64_t Sigma4 = 0x54FF53A5F1D36F1C;
  270|  4.46k|   constexpr uint64_t Sigma5 = 0x10E527FADE682D1D;
  271|  4.46k|   constexpr uint64_t Sigma6 = 0xB05688C2B3E6C1FD;
  272|       |
  273|  4.46k|   const uint64_t KL_H = load_be<uint64_t>(key.data(), 0);
  274|  4.46k|   const uint64_t KL_L = load_be<uint64_t>(key.data(), 1);
  275|       |
  276|  4.46k|   const uint64_t KR_H = (key.size() >= 24) ? load_be<uint64_t>(key.data(), 2) : 0;
  ------------------
  |  Branch (276:26): [True: 714, False: 3.75k]
  ------------------
  277|       |
  278|  4.46k|   const uint64_t KR_L = [&]() -> uint64_t {
  279|  4.46k|      if(key.size() == 32) {
  280|  4.46k|         return load_be<uint64_t>(key.data(), 3);
  281|  4.46k|      } else if(key.size() == 24) {
  282|  4.46k|         return ~KR_H;
  283|  4.46k|      } else {
  284|  4.46k|         return 0;
  285|  4.46k|      }
  286|  4.46k|   }();
  287|       |
  288|  4.46k|   uint64_t D1 = KL_H ^ KR_H;
  289|  4.46k|   uint64_t D2 = KL_L ^ KR_L;
  290|  4.46k|   D2 ^= F_1tab(D1, Sigma1);
  291|  4.46k|   D1 ^= F_1tab(D2, Sigma2);
  292|  4.46k|   D1 ^= KL_H;
  293|  4.46k|   D2 ^= KL_L;
  294|  4.46k|   D2 ^= F_1tab(D1, Sigma3);
  295|  4.46k|   D1 ^= F_1tab(D2, Sigma4);
  296|       |
  297|  4.46k|   const uint64_t KA_H = D1;
  298|  4.46k|   const uint64_t KA_L = D2;
  299|       |
  300|  4.46k|   D1 = KA_H ^ KR_H;
  301|  4.46k|   D2 = KA_L ^ KR_L;
  302|  4.46k|   D2 ^= F_1tab(D1, Sigma5);
  303|  4.46k|   D1 ^= F_1tab(D2, Sigma6);
  304|       |
  305|  4.46k|   const uint64_t KB_H = D1;
  306|  4.46k|   const uint64_t KB_L = D2;
  307|       |
  308|  4.46k|   if(key.size() == 16) {
  ------------------
  |  Branch (308:7): [True: 3.75k, False: 714]
  ------------------
  309|  3.75k|      SK.resize(26);
  310|       |
  311|  3.75k|      SK[0] = KL_H;
  312|  3.75k|      SK[1] = KL_L;
  313|  3.75k|      SK[2] = KA_H;
  314|  3.75k|      SK[3] = KA_L;
  315|  3.75k|      SK[4] = left_rot_hi(KL_H, KL_L, 15);
  316|  3.75k|      SK[5] = left_rot_lo(KL_H, KL_L, 15);
  317|  3.75k|      SK[6] = left_rot_hi(KA_H, KA_L, 15);
  318|  3.75k|      SK[7] = left_rot_lo(KA_H, KA_L, 15);
  319|  3.75k|      SK[8] = left_rot_hi(KA_H, KA_L, 30);
  320|  3.75k|      SK[9] = left_rot_lo(KA_H, KA_L, 30);
  321|  3.75k|      SK[10] = left_rot_hi(KL_H, KL_L, 45);
  322|  3.75k|      SK[11] = left_rot_lo(KL_H, KL_L, 45);
  323|  3.75k|      SK[12] = left_rot_hi(KA_H, KA_L, 45);
  324|  3.75k|      SK[13] = left_rot_lo(KL_H, KL_L, 60);
  325|  3.75k|      SK[14] = left_rot_hi(KA_H, KA_L, 60);
  326|  3.75k|      SK[15] = left_rot_lo(KA_H, KA_L, 60);
  327|  3.75k|      SK[16] = left_rot_lo(KL_H, KL_L, 77);
  328|  3.75k|      SK[17] = left_rot_hi(KL_H, KL_L, 77);
  329|  3.75k|      SK[18] = left_rot_lo(KL_H, KL_L, 94);
  330|  3.75k|      SK[19] = left_rot_hi(KL_H, KL_L, 94);
  331|  3.75k|      SK[20] = left_rot_lo(KA_H, KA_L, 94);
  332|  3.75k|      SK[21] = left_rot_hi(KA_H, KA_L, 94);
  333|  3.75k|      SK[22] = left_rot_lo(KL_H, KL_L, 111);
  334|  3.75k|      SK[23] = left_rot_hi(KL_H, KL_L, 111);
  335|  3.75k|      SK[24] = left_rot_lo(KA_H, KA_L, 111);
  336|  3.75k|      SK[25] = left_rot_hi(KA_H, KA_L, 111);
  337|  3.75k|   } else {
  338|    714|      SK.resize(34);
  339|       |
  340|    714|      SK[0] = KL_H;
  341|    714|      SK[1] = KL_L;
  342|    714|      SK[2] = KB_H;
  343|    714|      SK[3] = KB_L;
  344|       |
  345|    714|      SK[4] = left_rot_hi(KR_H, KR_L, 15);
  346|    714|      SK[5] = left_rot_lo(KR_H, KR_L, 15);
  347|    714|      SK[6] = left_rot_hi(KA_H, KA_L, 15);
  348|    714|      SK[7] = left_rot_lo(KA_H, KA_L, 15);
  349|       |
  350|    714|      SK[8] = left_rot_hi(KR_H, KR_L, 30);
  351|    714|      SK[9] = left_rot_lo(KR_H, KR_L, 30);
  352|    714|      SK[10] = left_rot_hi(KB_H, KB_L, 30);
  353|    714|      SK[11] = left_rot_lo(KB_H, KB_L, 30);
  354|       |
  355|    714|      SK[12] = left_rot_hi(KL_H, KL_L, 45);
  356|    714|      SK[13] = left_rot_lo(KL_H, KL_L, 45);
  357|    714|      SK[14] = left_rot_hi(KA_H, KA_L, 45);
  358|    714|      SK[15] = left_rot_lo(KA_H, KA_L, 45);
  359|       |
  360|    714|      SK[16] = left_rot_hi(KL_H, KL_L, 60);
  361|    714|      SK[17] = left_rot_lo(KL_H, KL_L, 60);
  362|    714|      SK[18] = left_rot_hi(KR_H, KR_L, 60);
  363|    714|      SK[19] = left_rot_lo(KR_H, KR_L, 60);
  364|    714|      SK[20] = left_rot_hi(KB_H, KB_L, 60);
  365|    714|      SK[21] = left_rot_lo(KB_H, KB_L, 60);
  366|       |
  367|    714|      SK[22] = left_rot_lo(KL_H, KL_L, 77);
  368|    714|      SK[23] = left_rot_hi(KL_H, KL_L, 77);
  369|    714|      SK[24] = left_rot_lo(KA_H, KA_L, 77);
  370|    714|      SK[25] = left_rot_hi(KA_H, KA_L, 77);
  371|       |
  372|    714|      SK[26] = left_rot_lo(KR_H, KR_L, 94);
  373|    714|      SK[27] = left_rot_hi(KR_H, KR_L, 94);
  374|    714|      SK[28] = left_rot_lo(KA_H, KA_L, 94);
  375|    714|      SK[29] = left_rot_hi(KA_H, KA_L, 94);
  376|    714|      SK[30] = left_rot_lo(KL_H, KL_L, 111);
  377|    714|      SK[31] = left_rot_hi(KL_H, KL_L, 111);
  378|    714|      SK[32] = left_rot_lo(KB_H, KB_L, 111);
  379|    714|      SK[33] = left_rot_hi(KB_H, KB_L, 111);
  380|    714|   }
  381|  4.46k|}
camellia.cpp:_ZZN5Botan12_GLOBAL__N_110Camellia_F12key_scheduleERNSt3__16vectorImNS_16secure_allocatorImEEEENS2_4spanIKhLm18446744073709551615EEEENK3$_0clEv:
  278|  4.46k|   const uint64_t KR_L = [&]() -> uint64_t {
  279|  4.46k|      if(key.size() == 32) {
  ------------------
  |  Branch (279:10): [True: 454, False: 4.01k]
  ------------------
  280|    454|         return load_be<uint64_t>(key.data(), 3);
  281|  4.01k|      } else if(key.size() == 24) {
  ------------------
  |  Branch (281:17): [True: 260, False: 3.75k]
  ------------------
  282|    260|         return ~KR_H;
  283|  3.75k|      } else {
  284|  3.75k|         return 0;
  285|  3.75k|      }
  286|  4.46k|   }();
camellia.cpp:_ZN5Botan12_GLOBAL__N_110Camellia_F6F_1tabEmm:
  131|  26.8k|uint64_t F_1tab(uint64_t v, uint64_t K) {
  132|  26.8k|   const uint64_t x = v ^ K;
  133|       |
  134|  26.8k|   return P(SBOX1[get_byte<0>(x)],
  135|  26.8k|            rotl<1>(SBOX1[get_byte<1>(x)]),
  136|  26.8k|            rotl<7>(SBOX1[get_byte<2>(x)]),
  137|  26.8k|            SBOX1[rotl<1>(get_byte<3>(x))],
  138|  26.8k|            rotl<1>(SBOX1[get_byte<4>(x)]),
  139|  26.8k|            rotl<7>(SBOX1[get_byte<5>(x)]),
  140|  26.8k|            SBOX1[rotl<1>(get_byte<6>(x))],
  141|  26.8k|            SBOX1[get_byte<7>(x)]);
  142|  26.8k|}
camellia.cpp:_ZN5Botan12_GLOBAL__N_110Camellia_F11left_rot_hiEmmm:
  246|  52.0k|inline uint64_t left_rot_hi(uint64_t h, uint64_t l, size_t shift) {
  247|  52.0k|   if(shift >= 64) {
  ------------------
  |  Branch (247:7): [True: 23.0k, False: 28.9k]
  ------------------
  248|  23.0k|      shift -= 64;
  249|  23.0k|   }
  250|  52.0k|   return (h << shift) | (l >> (64 - shift));
  251|  52.0k|}
camellia.cpp:_ZN5Botan12_GLOBAL__N_110Camellia_F11left_rot_loEmmm:
  253|  52.0k|inline uint64_t left_rot_lo(uint64_t h, uint64_t l, size_t shift) {
  254|  52.0k|   if(shift >= 64) {
  ------------------
  |  Branch (254:7): [True: 23.0k, False: 28.9k]
  ------------------
  255|  23.0k|      shift -= 64;
  256|  23.0k|   }
  257|  52.0k|   return (h >> (64 - shift)) | (l << shift);
  258|  52.0k|}
camellia.cpp:_ZN5Botan12_GLOBAL__N_110Camellia_F11parallelismEv:
  405|    586|size_t parallelism() {
  406|       |#if defined(BOTAN_HAS_CAMELLIA_AVX512_GFNI)
  407|       |   if(CPUID::has(CPUID::Feature::AVX512, CPUID::Feature::GFNI)) {
  408|       |      return 16;
  409|       |   }
  410|       |#endif
  411|       |
  412|       |#if defined(BOTAN_HAS_CAMELLIA_AVX2_GFNI)
  413|       |   if(CPUID::has(CPUID::Feature::GFNI)) {
  414|       |      return 4;
  415|       |   }
  416|       |#endif
  417|       |
  418|       |#if defined(BOTAN_HAS_CAMELLIA_HWAES)
  419|       |   if(CPUID::has(CPUID::Feature::HW_AES)) {
  420|       |      return 2;
  421|       |   }
  422|       |#endif
  423|       |
  424|    586|   return 1;
  425|    586|}

_ZNK5Botan8CAST_1289encrypt_nEPKhPhm:
  187|   324k|void CAST_128::encrypt_n(const uint8_t in[], uint8_t out[], size_t blocks) const {
  188|   324k|   assert_key_material_set();
  189|       |
  190|   430k|   while(blocks >= 2) {
  ------------------
  |  Branch (190:10): [True: 106k, False: 324k]
  ------------------
  191|   106k|      uint32_t L0 = 0;
  192|   106k|      uint32_t R0 = 0;
  193|   106k|      uint32_t L1 = 0;
  194|   106k|      uint32_t R1 = 0;
  195|   106k|      load_be(in, L0, R0, L1, R1);
  196|       |
  197|   106k|      L0 ^= F1(R0, m_MK[0], m_RK[0]);
  198|   106k|      L1 ^= F1(R1, m_MK[0], m_RK[0]);
  199|   106k|      R0 ^= F2(L0, m_MK[1], m_RK[1]);
  200|   106k|      R1 ^= F2(L1, m_MK[1], m_RK[1]);
  201|   106k|      L0 ^= F3(R0, m_MK[2], m_RK[2]);
  202|   106k|      L1 ^= F3(R1, m_MK[2], m_RK[2]);
  203|   106k|      R0 ^= F1(L0, m_MK[3], m_RK[3]);
  204|   106k|      R1 ^= F1(L1, m_MK[3], m_RK[3]);
  205|   106k|      L0 ^= F2(R0, m_MK[4], m_RK[4]);
  206|   106k|      L1 ^= F2(R1, m_MK[4], m_RK[4]);
  207|   106k|      R0 ^= F3(L0, m_MK[5], m_RK[5]);
  208|   106k|      R1 ^= F3(L1, m_MK[5], m_RK[5]);
  209|   106k|      L0 ^= F1(R0, m_MK[6], m_RK[6]);
  210|   106k|      L1 ^= F1(R1, m_MK[6], m_RK[6]);
  211|   106k|      R0 ^= F2(L0, m_MK[7], m_RK[7]);
  212|   106k|      R1 ^= F2(L1, m_MK[7], m_RK[7]);
  213|   106k|      L0 ^= F3(R0, m_MK[8], m_RK[8]);
  214|   106k|      L1 ^= F3(R1, m_MK[8], m_RK[8]);
  215|   106k|      R0 ^= F1(L0, m_MK[9], m_RK[9]);
  216|   106k|      R1 ^= F1(L1, m_MK[9], m_RK[9]);
  217|   106k|      L0 ^= F2(R0, m_MK[10], m_RK[10]);
  218|   106k|      L1 ^= F2(R1, m_MK[10], m_RK[10]);
  219|   106k|      R0 ^= F3(L0, m_MK[11], m_RK[11]);
  220|   106k|      R1 ^= F3(L1, m_MK[11], m_RK[11]);
  221|   106k|      L0 ^= F1(R0, m_MK[12], m_RK[12]);
  222|   106k|      L1 ^= F1(R1, m_MK[12], m_RK[12]);
  223|   106k|      R0 ^= F2(L0, m_MK[13], m_RK[13]);
  224|   106k|      R1 ^= F2(L1, m_MK[13], m_RK[13]);
  225|   106k|      L0 ^= F3(R0, m_MK[14], m_RK[14]);
  226|   106k|      L1 ^= F3(R1, m_MK[14], m_RK[14]);
  227|   106k|      R0 ^= F1(L0, m_MK[15], m_RK[15]);
  228|   106k|      R1 ^= F1(L1, m_MK[15], m_RK[15]);
  229|       |
  230|   106k|      store_be(out, R0, L0, R1, L1);
  231|       |
  232|   106k|      blocks -= 2;
  233|   106k|      out += 2 * BLOCK_SIZE;
  234|   106k|      in += 2 * BLOCK_SIZE;
  235|   106k|   }
  236|       |
  237|   324k|   if(blocks > 0) {
  ------------------
  |  Branch (237:7): [True: 271k, False: 53.2k]
  ------------------
  238|   271k|      uint32_t L = 0;
  239|   271k|      uint32_t R = 0;
  240|   271k|      load_be(in, L, R);
  241|       |
  242|   271k|      L ^= F1(R, m_MK[0], m_RK[0]);
  243|   271k|      R ^= F2(L, m_MK[1], m_RK[1]);
  244|   271k|      L ^= F3(R, m_MK[2], m_RK[2]);
  245|   271k|      R ^= F1(L, m_MK[3], m_RK[3]);
  246|   271k|      L ^= F2(R, m_MK[4], m_RK[4]);
  247|   271k|      R ^= F3(L, m_MK[5], m_RK[5]);
  248|   271k|      L ^= F1(R, m_MK[6], m_RK[6]);
  249|   271k|      R ^= F2(L, m_MK[7], m_RK[7]);
  250|   271k|      L ^= F3(R, m_MK[8], m_RK[8]);
  251|   271k|      R ^= F1(L, m_MK[9], m_RK[9]);
  252|   271k|      L ^= F2(R, m_MK[10], m_RK[10]);
  253|   271k|      R ^= F3(L, m_MK[11], m_RK[11]);
  254|   271k|      L ^= F1(R, m_MK[12], m_RK[12]);
  255|   271k|      R ^= F2(L, m_MK[13], m_RK[13]);
  256|   271k|      L ^= F3(R, m_MK[14], m_RK[14]);
  257|   271k|      R ^= F1(L, m_MK[15], m_RK[15]);
  258|       |
  259|   271k|      store_be(out, R, L);
  260|   271k|   }
  261|   324k|}
_ZNK5Botan8CAST_12819has_keying_materialEv:
  342|   413k|bool CAST_128::has_keying_material() const {
  343|   413k|   return !m_RK.empty();
  344|   413k|}
_ZN5Botan8CAST_12812key_scheduleENSt3__14spanIKhLm18446744073709551615EEE:
  349|  17.3k|void CAST_128::key_schedule(std::span<const uint8_t> key) {
  350|  17.3k|   m_MK.resize(48);
  351|  17.3k|   m_RK.resize(48);
  352|       |
  353|  17.3k|   secure_vector<uint8_t> key16(16);
  354|  17.3k|   copy_mem(key16.data(), key.data(), key.size());
  355|       |
  356|  17.3k|   secure_vector<uint32_t> X(4);
  357|  86.9k|   for(size_t i = 0; i != 4; ++i) {
  ------------------
  |  Branch (357:22): [True: 69.5k, False: 17.3k]
  ------------------
  358|  69.5k|      X[i] = load_be<uint32_t>(key16.data(), i);
  359|  69.5k|   }
  360|       |
  361|  17.3k|   cast_ks(m_MK, X);
  362|       |
  363|  17.3k|   secure_vector<uint32_t> RK32(48);
  364|  17.3k|   cast_ks(RK32, X);
  365|       |
  366|   295k|   for(size_t i = 0; i != 16; ++i) {
  ------------------
  |  Branch (366:22): [True: 278k, False: 17.3k]
  ------------------
  367|   278k|      m_RK[i] = RK32[i] % 32;
  368|   278k|   }
  369|  17.3k|}
_ZN5Botan8CAST_1285clearEv:
  371|    181|void CAST_128::clear() {
  372|    181|   zap(m_MK);
  373|    181|   zap(m_RK);
  374|    181|}
_ZN5Botan8CAST_1287cast_ksERNSt3__16vectorIjNS_16secure_allocatorIjEEEES6_:
  379|  34.7k|void CAST_128::cast_ks(secure_vector<uint32_t>& K, secure_vector<uint32_t>& X) {
  380|  34.7k|   alignas(256) static const uint32_t S5[256] = {
  381|  34.7k|      0x7EC90C04, 0x2C6E74B9, 0x9B0E66DF, 0xA6337911, 0xB86A7FFF, 0x1DD358F5, 0x44DD9D44, 0x1731167F, 0x08FBF1FA,
  382|  34.7k|      0xE7F511CC, 0xD2051B00, 0x735ABA00, 0x2AB722D8, 0x386381CB, 0xACF6243A, 0x69BEFD7A, 0xE6A2E77F, 0xF0C720CD,
  383|  34.7k|      0xC4494816, 0xCCF5C180, 0x38851640, 0x15B0A848, 0xE68B18CB, 0x4CAADEFF, 0x5F480A01, 0x0412B2AA, 0x259814FC,
  384|  34.7k|      0x41D0EFE2, 0x4E40B48D, 0x248EB6FB, 0x8DBA1CFE, 0x41A99B02, 0x1A550A04, 0xBA8F65CB, 0x7251F4E7, 0x95A51725,
  385|  34.7k|      0xC106ECD7, 0x97A5980A, 0xC539B9AA, 0x4D79FE6A, 0xF2F3F763, 0x68AF8040, 0xED0C9E56, 0x11B4958B, 0xE1EB5A88,
  386|  34.7k|      0x8709E6B0, 0xD7E07156, 0x4E29FEA7, 0x6366E52D, 0x02D1C000, 0xC4AC8E05, 0x9377F571, 0x0C05372A, 0x578535F2,
  387|  34.7k|      0x2261BE02, 0xD642A0C9, 0xDF13A280, 0x74B55BD2, 0x682199C0, 0xD421E5EC, 0x53FB3CE8, 0xC8ADEDB3, 0x28A87FC9,
  388|  34.7k|      0x3D959981, 0x5C1FF900, 0xFE38D399, 0x0C4EFF0B, 0x062407EA, 0xAA2F4FB1, 0x4FB96976, 0x90C79505, 0xB0A8A774,
  389|  34.7k|      0xEF55A1FF, 0xE59CA2C2, 0xA6B62D27, 0xE66A4263, 0xDF65001F, 0x0EC50966, 0xDFDD55BC, 0x29DE0655, 0x911E739A,
  390|  34.7k|      0x17AF8975, 0x32C7911C, 0x89F89468, 0x0D01E980, 0x524755F4, 0x03B63CC9, 0x0CC844B2, 0xBCF3F0AA, 0x87AC36E9,
  391|  34.7k|      0xE53A7426, 0x01B3D82B, 0x1A9E7449, 0x64EE2D7E, 0xCDDBB1DA, 0x01C94910, 0xB868BF80, 0x0D26F3FD, 0x9342EDE7,
  392|  34.7k|      0x04A5C284, 0x636737B6, 0x50F5B616, 0xF24766E3, 0x8ECA36C1, 0x136E05DB, 0xFEF18391, 0xFB887A37, 0xD6E7F7D4,
  393|  34.7k|      0xC7FB7DC9, 0x3063FCDF, 0xB6F589DE, 0xEC2941DA, 0x26E46695, 0xB7566419, 0xF654EFC5, 0xD08D58B7, 0x48925401,
  394|  34.7k|      0xC1BACB7F, 0xE5FF550F, 0xB6083049, 0x5BB5D0E8, 0x87D72E5A, 0xAB6A6EE1, 0x223A66CE, 0xC62BF3CD, 0x9E0885F9,
  395|  34.7k|      0x68CB3E47, 0x086C010F, 0xA21DE820, 0xD18B69DE, 0xF3F65777, 0xFA02C3F6, 0x407EDAC3, 0xCBB3D550, 0x1793084D,
  396|  34.7k|      0xB0D70EBA, 0x0AB378D5, 0xD951FB0C, 0xDED7DA56, 0x4124BBE4, 0x94CA0B56, 0x0F5755D1, 0xE0E1E56E, 0x6184B5BE,
  397|  34.7k|      0x580A249F, 0x94F74BC0, 0xE327888E, 0x9F7B5561, 0xC3DC0280, 0x05687715, 0x646C6BD7, 0x44904DB3, 0x66B4F0A3,
  398|  34.7k|      0xC0F1648A, 0x697ED5AF, 0x49E92FF6, 0x309E374F, 0x2CB6356A, 0x85808573, 0x4991F840, 0x76F0AE02, 0x083BE84D,
  399|  34.7k|      0x28421C9A, 0x44489406, 0x736E4CB8, 0xC1092910, 0x8BC95FC6, 0x7D869CF4, 0x134F616F, 0x2E77118D, 0xB31B2BE1,
  400|  34.7k|      0xAA90B472, 0x3CA5D717, 0x7D161BBA, 0x9CAD9010, 0xAF462BA2, 0x9FE459D2, 0x45D34559, 0xD9F2DA13, 0xDBC65487,
  401|  34.7k|      0xF3E4F94E, 0x176D486F, 0x097C13EA, 0x631DA5C7, 0x445F7382, 0x175683F4, 0xCDC66A97, 0x70BE0288, 0xB3CDCF72,
  402|  34.7k|      0x6E5DD2F3, 0x20936079, 0x459B80A5, 0xBE60E2DB, 0xA9C23101, 0xEBA5315C, 0x224E42F2, 0x1C5C1572, 0xF6721B2C,
  403|  34.7k|      0x1AD2FFF3, 0x8C25404E, 0x324ED72F, 0x4067B7FD, 0x0523138E, 0x5CA3BC78, 0xDC0FD66E, 0x75922283, 0x784D6B17,
  404|  34.7k|      0x58EBB16E, 0x44094F85, 0x3F481D87, 0xFCFEAE7B, 0x77B5FF76, 0x8C2302BF, 0xAAF47556, 0x5F46B02A, 0x2B092801,
  405|  34.7k|      0x3D38F5F7, 0x0CA81F36, 0x52AF4A8A, 0x66D5E7C0, 0xDF3B0874, 0x95055110, 0x1B5AD7A8, 0xF61ED5AD, 0x6CF6E479,
  406|  34.7k|      0x20758184, 0xD0CEFA65, 0x88F7BE58, 0x4A046826, 0x0FF6F8F3, 0xA09C7F70, 0x5346ABA0, 0x5CE96C28, 0xE176EDA3,
  407|  34.7k|      0x6BAC307F, 0x376829D2, 0x85360FA9, 0x17E3FE2A, 0x24B79767, 0xF5A96B20, 0xD6CD2595, 0x68FF1EBF, 0x7555442C,
  408|  34.7k|      0xF19F06BE, 0xF9E0659A, 0xEEB9491D, 0x34010718, 0xBB30CAB8, 0xE822FE15, 0x88570983, 0x750E6249, 0xDA627E55,
  409|  34.7k|      0x5E76FFA8, 0xB1534546, 0x6D47DE08, 0xEFE9E7D4};
  410|       |
  411|  34.7k|   alignas(256) static const uint32_t S6[256] = {
  412|  34.7k|      0xF6FA8F9D, 0x2CAC6CE1, 0x4CA34867, 0xE2337F7C, 0x95DB08E7, 0x016843B4, 0xECED5CBC, 0x325553AC, 0xBF9F0960,
  413|  34.7k|      0xDFA1E2ED, 0x83F0579D, 0x63ED86B9, 0x1AB6A6B8, 0xDE5EBE39, 0xF38FF732, 0x8989B138, 0x33F14961, 0xC01937BD,
  414|  34.7k|      0xF506C6DA, 0xE4625E7E, 0xA308EA99, 0x4E23E33C, 0x79CBD7CC, 0x48A14367, 0xA3149619, 0xFEC94BD5, 0xA114174A,
  415|  34.7k|      0xEAA01866, 0xA084DB2D, 0x09A8486F, 0xA888614A, 0x2900AF98, 0x01665991, 0xE1992863, 0xC8F30C60, 0x2E78EF3C,
  416|  34.7k|      0xD0D51932, 0xCF0FEC14, 0xF7CA07D2, 0xD0A82072, 0xFD41197E, 0x9305A6B0, 0xE86BE3DA, 0x74BED3CD, 0x372DA53C,
  417|  34.7k|      0x4C7F4448, 0xDAB5D440, 0x6DBA0EC3, 0x083919A7, 0x9FBAEED9, 0x49DBCFB0, 0x4E670C53, 0x5C3D9C01, 0x64BDB941,
  418|  34.7k|      0x2C0E636A, 0xBA7DD9CD, 0xEA6F7388, 0xE70BC762, 0x35F29ADB, 0x5C4CDD8D, 0xF0D48D8C, 0xB88153E2, 0x08A19866,
  419|  34.7k|      0x1AE2EAC8, 0x284CAF89, 0xAA928223, 0x9334BE53, 0x3B3A21BF, 0x16434BE3, 0x9AEA3906, 0xEFE8C36E, 0xF890CDD9,
  420|  34.7k|      0x80226DAE, 0xC340A4A3, 0xDF7E9C09, 0xA694A807, 0x5B7C5ECC, 0x221DB3A6, 0x9A69A02F, 0x68818A54, 0xCEB2296F,
  421|  34.7k|      0x53C0843A, 0xFE893655, 0x25BFE68A, 0xB4628ABC, 0xCF222EBF, 0x25AC6F48, 0xA9A99387, 0x53BDDB65, 0xE76FFBE7,
  422|  34.7k|      0xE967FD78, 0x0BA93563, 0x8E342BC1, 0xE8A11BE9, 0x4980740D, 0xC8087DFC, 0x8DE4BF99, 0xA11101A0, 0x7FD37975,
  423|  34.7k|      0xDA5A26C0, 0xE81F994F, 0x9528CD89, 0xFD339FED, 0xB87834BF, 0x5F04456D, 0x22258698, 0xC9C4C83B, 0x2DC156BE,
  424|  34.7k|      0x4F628DAA, 0x57F55EC5, 0xE2220ABE, 0xD2916EBF, 0x4EC75B95, 0x24F2C3C0, 0x42D15D99, 0xCD0D7FA0, 0x7B6E27FF,
  425|  34.7k|      0xA8DC8AF0, 0x7345C106, 0xF41E232F, 0x35162386, 0xE6EA8926, 0x3333B094, 0x157EC6F2, 0x372B74AF, 0x692573E4,
  426|  34.7k|      0xE9A9D848, 0xF3160289, 0x3A62EF1D, 0xA787E238, 0xF3A5F676, 0x74364853, 0x20951063, 0x4576698D, 0xB6FAD407,
  427|  34.7k|      0x592AF950, 0x36F73523, 0x4CFB6E87, 0x7DA4CEC0, 0x6C152DAA, 0xCB0396A8, 0xC50DFE5D, 0xFCD707AB, 0x0921C42F,
  428|  34.7k|      0x89DFF0BB, 0x5FE2BE78, 0x448F4F33, 0x754613C9, 0x2B05D08D, 0x48B9D585, 0xDC049441, 0xC8098F9B, 0x7DEDE786,
  429|  34.7k|      0xC39A3373, 0x42410005, 0x6A091751, 0x0EF3C8A6, 0x890072D6, 0x28207682, 0xA9A9F7BE, 0xBF32679D, 0xD45B5B75,
  430|  34.7k|      0xB353FD00, 0xCBB0E358, 0x830F220A, 0x1F8FB214, 0xD372CF08, 0xCC3C4A13, 0x8CF63166, 0x061C87BE, 0x88C98F88,
  431|  34.7k|      0x6062E397, 0x47CF8E7A, 0xB6C85283, 0x3CC2ACFB, 0x3FC06976, 0x4E8F0252, 0x64D8314D, 0xDA3870E3, 0x1E665459,
  432|  34.7k|      0xC10908F0, 0x513021A5, 0x6C5B68B7, 0x822F8AA0, 0x3007CD3E, 0x74719EEF, 0xDC872681, 0x073340D4, 0x7E432FD9,
  433|  34.7k|      0x0C5EC241, 0x8809286C, 0xF592D891, 0x08A930F6, 0x957EF305, 0xB7FBFFBD, 0xC266E96F, 0x6FE4AC98, 0xB173ECC0,
  434|  34.7k|      0xBC60B42A, 0x953498DA, 0xFBA1AE12, 0x2D4BD736, 0x0F25FAAB, 0xA4F3FCEB, 0xE2969123, 0x257F0C3D, 0x9348AF49,
  435|  34.7k|      0x361400BC, 0xE8816F4A, 0x3814F200, 0xA3F94043, 0x9C7A54C2, 0xBC704F57, 0xDA41E7F9, 0xC25AD33A, 0x54F4A084,
  436|  34.7k|      0xB17F5505, 0x59357CBE, 0xEDBD15C8, 0x7F97C5AB, 0xBA5AC7B5, 0xB6F6DEAF, 0x3A479C3A, 0x5302DA25, 0x653D7E6A,
  437|  34.7k|      0x54268D49, 0x51A477EA, 0x5017D55B, 0xD7D25D88, 0x44136C76, 0x0404A8C8, 0xB8E5A121, 0xB81A928A, 0x60ED5869,
  438|  34.7k|      0x97C55B96, 0xEAEC991B, 0x29935913, 0x01FDB7F1, 0x088E8DFA, 0x9AB6F6F5, 0x3B4CBF9F, 0x4A5DE3AB, 0xE6051D35,
  439|  34.7k|      0xA0E1D855, 0xD36B4CF1, 0xF544EDEB, 0xB0E93524, 0xBEBB8FBD, 0xA2D762CF, 0x49C92F54, 0x38B5F331, 0x7128A454,
  440|  34.7k|      0x48392905, 0xA65B1DB8, 0x851C97BD, 0xD675CF2F};
  441|       |
  442|  34.7k|   alignas(256) static const uint32_t S7[256] = {
  443|  34.7k|      0x85E04019, 0x332BF567, 0x662DBFFF, 0xCFC65693, 0x2A8D7F6F, 0xAB9BC912, 0xDE6008A1, 0x2028DA1F, 0x0227BCE7,
  444|  34.7k|      0x4D642916, 0x18FAC300, 0x50F18B82, 0x2CB2CB11, 0xB232E75C, 0x4B3695F2, 0xB28707DE, 0xA05FBCF6, 0xCD4181E9,
  445|  34.7k|      0xE150210C, 0xE24EF1BD, 0xB168C381, 0xFDE4E789, 0x5C79B0D8, 0x1E8BFD43, 0x4D495001, 0x38BE4341, 0x913CEE1D,
  446|  34.7k|      0x92A79C3F, 0x089766BE, 0xBAEEADF4, 0x1286BECF, 0xB6EACB19, 0x2660C200, 0x7565BDE4, 0x64241F7A, 0x8248DCA9,
  447|  34.7k|      0xC3B3AD66, 0x28136086, 0x0BD8DFA8, 0x356D1CF2, 0x107789BE, 0xB3B2E9CE, 0x0502AA8F, 0x0BC0351E, 0x166BF52A,
  448|  34.7k|      0xEB12FF82, 0xE3486911, 0xD34D7516, 0x4E7B3AFF, 0x5F43671B, 0x9CF6E037, 0x4981AC83, 0x334266CE, 0x8C9341B7,
  449|  34.7k|      0xD0D854C0, 0xCB3A6C88, 0x47BC2829, 0x4725BA37, 0xA66AD22B, 0x7AD61F1E, 0x0C5CBAFA, 0x4437F107, 0xB6E79962,
  450|  34.7k|      0x42D2D816, 0x0A961288, 0xE1A5C06E, 0x13749E67, 0x72FC081A, 0xB1D139F7, 0xF9583745, 0xCF19DF58, 0xBEC3F756,
  451|  34.7k|      0xC06EBA30, 0x07211B24, 0x45C28829, 0xC95E317F, 0xBC8EC511, 0x38BC46E9, 0xC6E6FA14, 0xBAE8584A, 0xAD4EBC46,
  452|  34.7k|      0x468F508B, 0x7829435F, 0xF124183B, 0x821DBA9F, 0xAFF60FF4, 0xEA2C4E6D, 0x16E39264, 0x92544A8B, 0x009B4FC3,
  453|  34.7k|      0xABA68CED, 0x9AC96F78, 0x06A5B79A, 0xB2856E6E, 0x1AEC3CA9, 0xBE838688, 0x0E0804E9, 0x55F1BE56, 0xE7E5363B,
  454|  34.7k|      0xB3A1F25D, 0xF7DEBB85, 0x61FE033C, 0x16746233, 0x3C034C28, 0xDA6D0C74, 0x79AAC56C, 0x3CE4E1AD, 0x51F0C802,
  455|  34.7k|      0x98F8F35A, 0x1626A49F, 0xEED82B29, 0x1D382FE3, 0x0C4FB99A, 0xBB325778, 0x3EC6D97B, 0x6E77A6A9, 0xCB658B5C,
  456|  34.7k|      0xD45230C7, 0x2BD1408B, 0x60C03EB7, 0xB9068D78, 0xA33754F4, 0xF430C87D, 0xC8A71302, 0xB96D8C32, 0xEBD4E7BE,
  457|  34.7k|      0xBE8B9D2D, 0x7979FB06, 0xE7225308, 0x8B75CF77, 0x11EF8DA4, 0xE083C858, 0x8D6B786F, 0x5A6317A6, 0xFA5CF7A0,
  458|  34.7k|      0x5DDA0033, 0xF28EBFB0, 0xF5B9C310, 0xA0EAC280, 0x08B9767A, 0xA3D9D2B0, 0x79D34217, 0x021A718D, 0x9AC6336A,
  459|  34.7k|      0x2711FD60, 0x438050E3, 0x069908A8, 0x3D7FEDC4, 0x826D2BEF, 0x4EEB8476, 0x488DCF25, 0x36C9D566, 0x28E74E41,
  460|  34.7k|      0xC2610ACA, 0x3D49A9CF, 0xBAE3B9DF, 0xB65F8DE6, 0x92AEAF64, 0x3AC7D5E6, 0x9EA80509, 0xF22B017D, 0xA4173F70,
  461|  34.7k|      0xDD1E16C3, 0x15E0D7F9, 0x50B1B887, 0x2B9F4FD5, 0x625ABA82, 0x6A017962, 0x2EC01B9C, 0x15488AA9, 0xD716E740,
  462|  34.7k|      0x40055A2C, 0x93D29A22, 0xE32DBF9A, 0x058745B9, 0x3453DC1E, 0xD699296E, 0x496CFF6F, 0x1C9F4986, 0xDFE2ED07,
  463|  34.7k|      0xB87242D1, 0x19DE7EAE, 0x053E561A, 0x15AD6F8C, 0x66626C1C, 0x7154C24C, 0xEA082B2A, 0x93EB2939, 0x17DCB0F0,
  464|  34.7k|      0x58D4F2AE, 0x9EA294FB, 0x52CF564C, 0x9883FE66, 0x2EC40581, 0x763953C3, 0x01D6692E, 0xD3A0C108, 0xA1E7160E,
  465|  34.7k|      0xE4F2DFA6, 0x693ED285, 0x74904698, 0x4C2B0EDD, 0x4F757656, 0x5D393378, 0xA132234F, 0x3D321C5D, 0xC3F5E194,
  466|  34.7k|      0x4B269301, 0xC79F022F, 0x3C997E7E, 0x5E4F9504, 0x3FFAFBBD, 0x76F7AD0E, 0x296693F4, 0x3D1FCE6F, 0xC61E45BE,
  467|  34.7k|      0xD3B5AB34, 0xF72BF9B7, 0x1B0434C0, 0x4E72B567, 0x5592A33D, 0xB5229301, 0xCFD2A87F, 0x60AEB767, 0x1814386B,
  468|  34.7k|      0x30BCC33D, 0x38A0C07D, 0xFD1606F2, 0xC363519B, 0x589DD390, 0x5479F8E6, 0x1CB8D647, 0x97FD61A9, 0xEA7759F4,
  469|  34.7k|      0x2D57539D, 0x569A58CF, 0xE84E63AD, 0x462E1B78, 0x6580F87E, 0xF3817914, 0x91DA55F4, 0x40A230F3, 0xD1988F35,
  470|  34.7k|      0xB6E318D2, 0x3FFA50BC, 0x3D40F021, 0xC3C0BDAE, 0x4958C24C, 0x518F36B2, 0x84B1D370, 0x0FEDCE83, 0x878DDADA,
  471|  34.7k|      0xF2A279C7, 0x94E01BE8, 0x90716F4B, 0x954B8AA3};
  472|       |
  473|  34.7k|   alignas(256) static const uint32_t S8[256] = {
  474|  34.7k|      0xE216300D, 0xBBDDFFFC, 0xA7EBDABD, 0x35648095, 0x7789F8B7, 0xE6C1121B, 0x0E241600, 0x052CE8B5, 0x11A9CFB0,
  475|  34.7k|      0xE5952F11, 0xECE7990A, 0x9386D174, 0x2A42931C, 0x76E38111, 0xB12DEF3A, 0x37DDDDFC, 0xDE9ADEB1, 0x0A0CC32C,
  476|  34.7k|      0xBE197029, 0x84A00940, 0xBB243A0F, 0xB4D137CF, 0xB44E79F0, 0x049EEDFD, 0x0B15A15D, 0x480D3168, 0x8BBBDE5A,
  477|  34.7k|      0x669DED42, 0xC7ECE831, 0x3F8F95E7, 0x72DF191B, 0x7580330D, 0x94074251, 0x5C7DCDFA, 0xABBE6D63, 0xAA402164,
  478|  34.7k|      0xB301D40A, 0x02E7D1CA, 0x53571DAE, 0x7A3182A2, 0x12A8DDEC, 0xFDAA335D, 0x176F43E8, 0x71FB46D4, 0x38129022,
  479|  34.7k|      0xCE949AD4, 0xB84769AD, 0x965BD862, 0x82F3D055, 0x66FB9767, 0x15B80B4E, 0x1D5B47A0, 0x4CFDE06F, 0xC28EC4B8,
  480|  34.7k|      0x57E8726E, 0x647A78FC, 0x99865D44, 0x608BD593, 0x6C200E03, 0x39DC5FF6, 0x5D0B00A3, 0xAE63AFF2, 0x7E8BD632,
  481|  34.7k|      0x70108C0C, 0xBBD35049, 0x2998DF04, 0x980CF42A, 0x9B6DF491, 0x9E7EDD53, 0x06918548, 0x58CB7E07, 0x3B74EF2E,
  482|  34.7k|      0x522FFFB1, 0xD24708CC, 0x1C7E27CD, 0xA4EB215B, 0x3CF1D2E2, 0x19B47A38, 0x424F7618, 0x35856039, 0x9D17DEE7,
  483|  34.7k|      0x27EB35E6, 0xC9AFF67B, 0x36BAF5B8, 0x09C467CD, 0xC18910B1, 0xE11DBF7B, 0x06CD1AF8, 0x7170C608, 0x2D5E3354,
  484|  34.7k|      0xD4DE495A, 0x64C6D006, 0xBCC0C62C, 0x3DD00DB3, 0x708F8F34, 0x77D51B42, 0x264F620F, 0x24B8D2BF, 0x15C1B79E,
  485|  34.7k|      0x46A52564, 0xF8D7E54E, 0x3E378160, 0x7895CDA5, 0x859C15A5, 0xE6459788, 0xC37BC75F, 0xDB07BA0C, 0x0676A3AB,
  486|  34.7k|      0x7F229B1E, 0x31842E7B, 0x24259FD7, 0xF8BEF472, 0x835FFCB8, 0x6DF4C1F2, 0x96F5B195, 0xFD0AF0FC, 0xB0FE134C,
  487|  34.7k|      0xE2506D3D, 0x4F9B12EA, 0xF215F225, 0xA223736F, 0x9FB4C428, 0x25D04979, 0x34C713F8, 0xC4618187, 0xEA7A6E98,
  488|  34.7k|      0x7CD16EFC, 0x1436876C, 0xF1544107, 0xBEDEEE14, 0x56E9AF27, 0xA04AA441, 0x3CF7C899, 0x92ECBAE6, 0xDD67016D,
  489|  34.7k|      0x151682EB, 0xA842EEDF, 0xFDBA60B4, 0xF1907B75, 0x20E3030F, 0x24D8C29E, 0xE139673B, 0xEFA63FB8, 0x71873054,
  490|  34.7k|      0xB6F2CF3B, 0x9F326442, 0xCB15A4CC, 0xB01A4504, 0xF1E47D8D, 0x844A1BE5, 0xBAE7DFDC, 0x42CBDA70, 0xCD7DAE0A,
  491|  34.7k|      0x57E85B7A, 0xD53F5AF6, 0x20CF4D8C, 0xCEA4D428, 0x79D130A4, 0x3486EBFB, 0x33D3CDDC, 0x77853B53, 0x37EFFCB5,
  492|  34.7k|      0xC5068778, 0xE580B3E6, 0x4E68B8F4, 0xC5C8B37E, 0x0D809EA2, 0x398FEB7C, 0x132A4F94, 0x43B7950E, 0x2FEE7D1C,
  493|  34.7k|      0x223613BD, 0xDD06CAA2, 0x37DF932B, 0xC4248289, 0xACF3EBC3, 0x5715F6B7, 0xEF3478DD, 0xF267616F, 0xC148CBE4,
  494|  34.7k|      0x9052815E, 0x5E410FAB, 0xB48A2465, 0x2EDA7FA4, 0xE87B40E4, 0xE98EA084, 0x5889E9E1, 0xEFD390FC, 0xDD07D35B,
  495|  34.7k|      0xDB485694, 0x38D7E5B2, 0x57720101, 0x730EDEBC, 0x5B643113, 0x94917E4F, 0x503C2FBA, 0x646F1282, 0x7523D24A,
  496|  34.7k|      0xE0779695, 0xF9C17A8F, 0x7A5B2121, 0xD187B896, 0x29263A4D, 0xBA510CDF, 0x81F47C9F, 0xAD1163ED, 0xEA7B5965,
  497|  34.7k|      0x1A00726E, 0x11403092, 0x00DA6D77, 0x4A0CDD61, 0xAD1F4603, 0x605BDFB0, 0x9EEDC364, 0x22EBE6A8, 0xCEE7D28A,
  498|  34.7k|      0xA0E736A0, 0x5564A6B9, 0x10853209, 0xC7EB8F37, 0x2DE705CA, 0x8951570F, 0xDF09822B, 0xBD691A6C, 0xAA12E4F2,
  499|  34.7k|      0x87451C0F, 0xE0F6A27A, 0x3ADA4819, 0x4CF1764F, 0x0D771C2B, 0x67CDB156, 0x350D8384, 0x5938FA0F, 0x42399EF3,
  500|  34.7k|      0x36997B07, 0x0E84093D, 0x4AA93E61, 0x8360D87B, 0x1FA98B0C, 0x1149382C, 0xE97625A5, 0x0614D1B7, 0x0E25244B,
  501|  34.7k|      0x0C768347, 0x589E8D82, 0x0D2059D1, 0xA466BB1E, 0xF8DA0A82, 0x04F19130, 0xBA6E4EC0, 0x99265164, 0x1EE7230D,
  502|  34.7k|      0x50B2AD80, 0xEAEE6801, 0x8DB2A283, 0xEA8BF59E};
  503|       |
  504|  34.7k|   class ByteReader final {
  505|  34.7k|      public:
  506|  34.7k|         uint8_t operator()(size_t i) const { return static_cast<uint8_t>(m_X[i / 4] >> (8 * (3 - (i % 4)))); }
  507|       |
  508|  34.7k|         explicit ByteReader(const uint32_t* x) : m_X(x) {}
  509|       |
  510|  34.7k|      private:
  511|  34.7k|         const uint32_t* m_X;
  512|  34.7k|   };
  513|       |
  514|  34.7k|   secure_vector<uint32_t> Z(4);
  515|  34.7k|   const ByteReader x(X.data());
  516|  34.7k|   const ByteReader z(Z.data());
  517|       |
  518|  34.7k|   Z[0] = X[0] ^ S5[x(13)] ^ S6[x(15)] ^ S7[x(12)] ^ S8[x(14)] ^ S7[x(8)];
  519|  34.7k|   Z[1] = X[2] ^ S5[z(0)] ^ S6[z(2)] ^ S7[z(1)] ^ S8[z(3)] ^ S8[x(10)];
  520|  34.7k|   Z[2] = X[3] ^ S5[z(7)] ^ S6[z(6)] ^ S7[z(5)] ^ S8[z(4)] ^ S5[x(9)];
  521|  34.7k|   Z[3] = X[1] ^ S5[z(10)] ^ S6[z(9)] ^ S7[z(11)] ^ S8[z(8)] ^ S6[x(11)];
  522|  34.7k|   K[0] = S5[z(8)] ^ S6[z(9)] ^ S7[z(7)] ^ S8[z(6)] ^ S5[z(2)];
  523|  34.7k|   K[1] = S5[z(10)] ^ S6[z(11)] ^ S7[z(5)] ^ S8[z(4)] ^ S6[z(6)];
  524|  34.7k|   K[2] = S5[z(12)] ^ S6[z(13)] ^ S7[z(3)] ^ S8[z(2)] ^ S7[z(9)];
  525|  34.7k|   K[3] = S5[z(14)] ^ S6[z(15)] ^ S7[z(1)] ^ S8[z(0)] ^ S8[z(12)];
  526|  34.7k|   X[0] = Z[2] ^ S5[z(5)] ^ S6[z(7)] ^ S7[z(4)] ^ S8[z(6)] ^ S7[z(0)];
  527|  34.7k|   X[1] = Z[0] ^ S5[x(0)] ^ S6[x(2)] ^ S7[x(1)] ^ S8[x(3)] ^ S8[z(2)];
  528|  34.7k|   X[2] = Z[1] ^ S5[x(7)] ^ S6[x(6)] ^ S7[x(5)] ^ S8[x(4)] ^ S5[z(1)];
  529|  34.7k|   X[3] = Z[3] ^ S5[x(10)] ^ S6[x(9)] ^ S7[x(11)] ^ S8[x(8)] ^ S6[z(3)];
  530|  34.7k|   K[4] = S5[x(3)] ^ S6[x(2)] ^ S7[x(12)] ^ S8[x(13)] ^ S5[x(8)];
  531|  34.7k|   K[5] = S5[x(1)] ^ S6[x(0)] ^ S7[x(14)] ^ S8[x(15)] ^ S6[x(13)];
  532|  34.7k|   K[6] = S5[x(7)] ^ S6[x(6)] ^ S7[x(8)] ^ S8[x(9)] ^ S7[x(3)];
  533|  34.7k|   K[7] = S5[x(5)] ^ S6[x(4)] ^ S7[x(10)] ^ S8[x(11)] ^ S8[x(7)];
  534|  34.7k|   Z[0] = X[0] ^ S5[x(13)] ^ S6[x(15)] ^ S7[x(12)] ^ S8[x(14)] ^ S7[x(8)];
  535|  34.7k|   Z[1] = X[2] ^ S5[z(0)] ^ S6[z(2)] ^ S7[z(1)] ^ S8[z(3)] ^ S8[x(10)];
  536|  34.7k|   Z[2] = X[3] ^ S5[z(7)] ^ S6[z(6)] ^ S7[z(5)] ^ S8[z(4)] ^ S5[x(9)];
  537|  34.7k|   Z[3] = X[1] ^ S5[z(10)] ^ S6[z(9)] ^ S7[z(11)] ^ S8[z(8)] ^ S6[x(11)];
  538|  34.7k|   K[8] = S5[z(3)] ^ S6[z(2)] ^ S7[z(12)] ^ S8[z(13)] ^ S5[z(9)];
  539|  34.7k|   K[9] = S5[z(1)] ^ S6[z(0)] ^ S7[z(14)] ^ S8[z(15)] ^ S6[z(12)];
  540|  34.7k|   K[10] = S5[z(7)] ^ S6[z(6)] ^ S7[z(8)] ^ S8[z(9)] ^ S7[z(2)];
  541|  34.7k|   K[11] = S5[z(5)] ^ S6[z(4)] ^ S7[z(10)] ^ S8[z(11)] ^ S8[z(6)];
  542|  34.7k|   X[0] = Z[2] ^ S5[z(5)] ^ S6[z(7)] ^ S7[z(4)] ^ S8[z(6)] ^ S7[z(0)];
  543|  34.7k|   X[1] = Z[0] ^ S5[x(0)] ^ S6[x(2)] ^ S7[x(1)] ^ S8[x(3)] ^ S8[z(2)];
  544|  34.7k|   X[2] = Z[1] ^ S5[x(7)] ^ S6[x(6)] ^ S7[x(5)] ^ S8[x(4)] ^ S5[z(1)];
  545|  34.7k|   X[3] = Z[3] ^ S5[x(10)] ^ S6[x(9)] ^ S7[x(11)] ^ S8[x(8)] ^ S6[z(3)];
  546|  34.7k|   K[12] = S5[x(8)] ^ S6[x(9)] ^ S7[x(7)] ^ S8[x(6)] ^ S5[x(3)];
  547|  34.7k|   K[13] = S5[x(10)] ^ S6[x(11)] ^ S7[x(5)] ^ S8[x(4)] ^ S6[x(7)];
  548|  34.7k|   K[14] = S5[x(12)] ^ S6[x(13)] ^ S7[x(3)] ^ S8[x(2)] ^ S7[x(8)];
  549|  34.7k|   K[15] = S5[x(14)] ^ S6[x(15)] ^ S7[x(1)] ^ S8[x(0)] ^ S8[x(13)];
  550|  34.7k|}
cast128.cpp:_ZN5Botan12_GLOBAL__N_12F1Ejjh:
  145|  2.90M|inline uint32_t F1(uint32_t R, uint32_t MK, uint8_t RK) {
  146|  2.90M|   const uint32_t T = rotl_var(MK + R, RK);
  147|  2.90M|   const uint32_t S1 = CAST_SBOX1[get_byte<0>(T)];
  148|  2.90M|   const uint32_t S2 = CAST_SBOX2[get_byte<1>(T)];
  149|  2.90M|   const uint32_t S3 = CAST_SBOX3[get_byte<2>(T)];
  150|  2.90M|   const uint32_t S4 = CAST_SBOX4[get_byte<3>(T)];
  151|       |
  152|  2.90M|   return (S1 ^ S2) - S3 + S4;
  153|  2.90M|}
cast128.cpp:_ZN5Botan12_GLOBAL__N_12F2Ejjh:
  158|  2.42M|inline uint32_t F2(uint32_t R, uint32_t MK, uint8_t RK) {
  159|  2.42M|   const uint32_t T = rotl_var(MK ^ R, RK);
  160|  2.42M|   const uint32_t S1 = CAST_SBOX1[get_byte<0>(T)];
  161|  2.42M|   const uint32_t S2 = CAST_SBOX2[get_byte<1>(T)];
  162|  2.42M|   const uint32_t S3 = CAST_SBOX3[get_byte<2>(T)];
  163|  2.42M|   const uint32_t S4 = CAST_SBOX4[get_byte<3>(T)];
  164|       |
  165|  2.42M|   return (S1 - S2 + S3) ^ S4;
  166|  2.42M|}
cast128.cpp:_ZN5Botan12_GLOBAL__N_12F3Ejjh:
  171|  2.42M|inline uint32_t F3(uint32_t R, uint32_t MK, uint8_t RK) {
  172|  2.42M|   const uint32_t T = rotl_var(MK - R, RK);
  173|       |
  174|  2.42M|   const uint32_t S1 = CAST_SBOX1[get_byte<0>(T)];
  175|  2.42M|   const uint32_t S2 = CAST_SBOX2[get_byte<1>(T)];
  176|  2.42M|   const uint32_t S3 = CAST_SBOX3[get_byte<2>(T)];
  177|  2.42M|   const uint32_t S4 = CAST_SBOX4[get_byte<3>(T)];
  178|       |
  179|  2.42M|   return ((S1 + S2) ^ S3) - S4;
  180|  2.42M|}
cast128.cpp:_ZZN5Botan8CAST_1287cast_ksERNSt3__16vectorIjNS_16secure_allocatorIjEEEES6_EN10ByteReaderC2EPKj:
  508|  69.5k|         explicit ByteReader(const uint32_t* x) : m_X(x) {}
cast128.cpp:_ZZN5Botan8CAST_1287cast_ksERNSt3__16vectorIjNS_16secure_allocatorIjEEEES6_ENK10ByteReaderclEm:
  506|  5.56M|         uint8_t operator()(size_t i) const { return static_cast<uint8_t>(m_X[i / 4] >> (8 * (3 - (i % 4)))); }

_ZNK5Botan9TripleDES9encrypt_nEPKhPhm:
  769|   203k|void TripleDES::encrypt_n(const uint8_t in[], uint8_t out[], size_t blocks) const {
  770|   203k|   assert_key_material_set();
  771|       |
  772|   203k|   const uint32_t* k1 = m_round_key.data();
  773|   203k|   const uint32_t* k2 = k1 + 16 * 48;
  774|   203k|   const uint32_t* k3 = k2 + 16 * 48;
  775|       |
  776|   203k|   uint32_t B[64];
  777|       |
  778|   209k|   while(blocks >= 32) {
  ------------------
  |  Branch (778:10): [True: 6.52k, False: 203k]
  ------------------
  779|  6.52k|      transpose_in(B, in, 32);
  780|  6.52k|      des_encrypt(&B[0], &B[32], k1);
  781|  6.52k|      des_decrypt(&B[32], &B[0], k2);
  782|  6.52k|      des_encrypt(&B[0], &B[32], k3);
  783|  6.52k|      transpose_out(out, B, 32);
  784|       |
  785|  6.52k|      in += 32 * BLOCK_SIZE;
  786|  6.52k|      out += 32 * BLOCK_SIZE;
  787|  6.52k|      blocks -= 32;
  788|  6.52k|   }
  789|       |
  790|   203k|   if(blocks > 0) {
  ------------------
  |  Branch (790:7): [True: 201k, False: 1.63k]
  ------------------
  791|   201k|      transpose_in(B, in, blocks);
  792|   201k|      des_encrypt(&B[0], &B[32], k1);
  793|   201k|      des_decrypt(&B[32], &B[0], k2);
  794|   201k|      des_encrypt(&B[0], &B[32], k3);
  795|   201k|      transpose_out(out, B, blocks);
  796|   201k|   }
  797|   203k|}
_ZNK5Botan9TripleDES19has_keying_materialEv:
  832|   207k|bool TripleDES::has_keying_material() const {
  833|   207k|   return !m_round_key.empty();
  834|   207k|}
_ZN5Botan9TripleDES12key_scheduleENSt3__14spanIKhLm18446744073709551615EEE:
  839|  5.83k|void TripleDES::key_schedule(std::span<const uint8_t> key) {
  840|  5.83k|   m_round_key.resize(3 * 16 * 48);
  841|  5.83k|   des_key_schedule(m_round_key.data(), key.first(8).data());
  842|  5.83k|   des_key_schedule(m_round_key.data() + 16 * 48, key.subspan(8, 8).data());
  843|       |
  844|  5.83k|   if(key.size() == 24) {
  ------------------
  |  Branch (844:7): [True: 5.83k, False: 0]
  ------------------
  845|  5.83k|      des_key_schedule(m_round_key.data() + 2 * 16 * 48, key.last(8).data());
  846|  5.83k|   } else {
  847|      0|      copy_mem(m_round_key.data() + 2 * 16 * 48, m_round_key.data(), 16 * 48);
  848|      0|   }
  849|  5.83k|}
_ZN5Botan9TripleDES5clearEv:
  851|     88|void TripleDES::clear() {
  852|     88|   zap(m_round_key);
  853|     88|}
des.cpp:_ZN5Botan12_GLOBAL__N_112transpose_inEPjPKhm:
  537|   208k|void transpose_in(uint32_t B[64], const uint8_t in[], size_t n_blocks) {
  538|   208k|   uint64_t M[32] = {};
  539|       |
  540|   208k|   load_be<uint64_t>(M, in, n_blocks);
  541|       |
  542|   208k|   des_transpose(M);
  543|       |
  544|       |   // clang-format off
  545|   208k|   static constexpr uint8_t IP[64] = {
  546|   208k|      57, 49, 41, 33, 25, 17, 9,  1,
  547|   208k|      59, 51, 43, 35, 27, 19, 11, 3,
  548|   208k|      61, 53, 45, 37, 29, 21, 13, 5,
  549|   208k|      63, 55, 47, 39, 31, 23, 15, 7,
  550|   208k|      56, 48, 40, 32, 24, 16, 8,  0,
  551|   208k|      58, 50, 42, 34, 26, 18, 10, 2,
  552|   208k|      60, 52, 44, 36, 28, 20, 12, 4,
  553|   208k|      62, 54, 46, 38, 30, 22, 14, 6
  554|   208k|   };
  555|       |   // clang-format on
  556|       |
  557|  13.5M|   for(size_t i = 0; i < 64; ++i) {
  ------------------
  |  Branch (557:22): [True: 13.3M, False: 208k]
  ------------------
  558|  13.3M|      const uint8_t src = IP[i];
  559|  13.3M|      if(src < 32) {
  ------------------
  |  Branch (559:10): [True: 6.65M, False: 6.65M]
  ------------------
  560|  6.65M|         B[i] = static_cast<uint32_t>(M[31 - src] >> 32);
  561|  6.65M|      } else {
  562|  6.65M|         B[i] = static_cast<uint32_t>(M[63 - src]);
  563|  6.65M|      }
  564|  13.3M|   }
  565|   208k|}
des.cpp:_ZN5Botan12_GLOBAL__N_113des_transposeEPm:
  509|   416k|void des_transpose(uint64_t M[32]) {
  510|  7.07M|   for(size_t i = 0; i != 16; ++i) {
  ------------------
  |  Branch (510:22): [True: 6.65M, False: 416k]
  ------------------
  511|  6.65M|      swap_bits<uint64_t>(M[i], M[i + 16], 0x0000FFFF0000FFFF, 16);
  512|  6.65M|   }
  513|       |
  514|  1.24M|   for(size_t i = 0; i != 32; i += 16) {
  ------------------
  |  Branch (514:22): [True: 832k, False: 416k]
  ------------------
  515|  7.48M|      for(size_t j = 0; j != 8; ++j) {
  ------------------
  |  Branch (515:25): [True: 6.65M, False: 832k]
  ------------------
  516|  6.65M|         swap_bits<uint64_t>(M[i + j], M[i + j + 8], 0x00FF00FF00FF00FF, 8);
  517|  6.65M|      }
  518|   832k|   }
  519|       |
  520|  2.08M|   for(size_t i = 0; i != 32; i += 8) {
  ------------------
  |  Branch (520:22): [True: 1.66M, False: 416k]
  ------------------
  521|  8.32M|      for(size_t j = 0; j != 4; ++j) {
  ------------------
  |  Branch (521:25): [True: 6.65M, False: 1.66M]
  ------------------
  522|  6.65M|         swap_bits<uint64_t>(M[i + j + 0], M[i + j + 4], 0x0F0F0F0F0F0F0F0F, 4);
  523|  6.65M|      }
  524|  1.66M|   }
  525|       |
  526|  3.74M|   for(size_t i = 0; i != 32; i += 4) {
  ------------------
  |  Branch (526:22): [True: 3.32M, False: 416k]
  ------------------
  527|  9.98M|      for(size_t j = 0; j != 2; ++j) {
  ------------------
  |  Branch (527:25): [True: 6.65M, False: 3.32M]
  ------------------
  528|  6.65M|         swap_bits<uint64_t>(M[i + j + 0], M[i + j + 2], 0x3333333333333333, 2);
  529|  6.65M|      }
  530|  3.32M|   }
  531|       |
  532|  7.07M|   for(size_t i = 0; i != 32; i += 2) {
  ------------------
  |  Branch (532:22): [True: 6.65M, False: 416k]
  ------------------
  533|  6.65M|      swap_bits<uint64_t>(M[i], M[i + 1], 0x5555555555555555, 1);
  534|  6.65M|   }
  535|   416k|}
des.cpp:_ZN5Botan12_GLOBAL__N_111des_encryptEPjS1_PKj:
  638|   416k|void des_encrypt(uint32_t L[32], uint32_t R[32], const uint32_t round_key[]) {
  639|  3.74M|   for(size_t round = 0; round < 16; round += 2) {
  ------------------
  |  Branch (639:26): [True: 3.32M, False: 416k]
  ------------------
  640|  3.32M|      des_round(L, R, &round_key[round * 48]);
  641|  3.32M|      des_round(R, L, &round_key[(round + 1) * 48]);
  642|  3.32M|   }
  643|   416k|}
des.cpp:_ZN5Botan12_GLOBAL__N_19des_roundEPjPKjS3_:
  602|  9.98M|void des_round(uint32_t L[32], const uint32_t R[32], const uint32_t RK[48]) {
  603|       |   // clang-format off
  604|  9.98M|   SBox1(R[31] ^ RK[ 0], R[ 0] ^ RK[ 1], R[ 1] ^ RK[ 2],
  605|  9.98M|         R[ 2] ^ RK[ 3], R[ 3] ^ RK[ 4], R[ 4] ^ RK[ 5],
  606|  9.98M|         L[ 8], L[16], L[22], L[30]);
  607|       |
  608|  9.98M|   SBox2(R[ 3] ^ RK[ 6], R[ 4] ^ RK[ 7], R[ 5] ^ RK[ 8],
  609|  9.98M|         R[ 6] ^ RK[ 9], R[ 7] ^ RK[10], R[ 8] ^ RK[11],
  610|  9.98M|         L[12], L[27], L[ 1], L[17]);
  611|       |
  612|  9.98M|   SBox3(R[ 7] ^ RK[12], R[ 8] ^ RK[13], R[ 9] ^ RK[14],
  613|  9.98M|         R[10] ^ RK[15], R[11] ^ RK[16], R[12] ^ RK[17],
  614|  9.98M|         L[23], L[15], L[29], L[ 5]);
  615|       |
  616|  9.98M|   SBox4(R[11] ^ RK[18], R[12] ^ RK[19], R[13] ^ RK[20],
  617|  9.98M|         R[14] ^ RK[21], R[15] ^ RK[22], R[16] ^ RK[23],
  618|  9.98M|         L[25], L[19], L[ 9], L[ 0]);
  619|       |
  620|  9.98M|   SBox5(R[15] ^ RK[24], R[16] ^ RK[25], R[17] ^ RK[26],
  621|  9.98M|         R[18] ^ RK[27], R[19] ^ RK[28], R[20] ^ RK[29],
  622|  9.98M|         L[ 7], L[13], L[24], L[ 2]);
  623|       |
  624|  9.98M|   SBox6(R[19] ^ RK[30], R[20] ^ RK[31], R[21] ^ RK[32],
  625|  9.98M|         R[22] ^ RK[33], R[23] ^ RK[34], R[24] ^ RK[35],
  626|  9.98M|         L[ 3], L[28], L[10], L[18]);
  627|       |
  628|  9.98M|   SBox7(R[23] ^ RK[36], R[24] ^ RK[37], R[25] ^ RK[38],
  629|  9.98M|         R[26] ^ RK[39], R[27] ^ RK[40], R[28] ^ RK[41],
  630|  9.98M|         L[31], L[11], L[21], L[ 6]);
  631|       |
  632|  9.98M|   SBox8(R[27] ^ RK[42], R[28] ^ RK[43], R[29] ^ RK[44],
  633|  9.98M|         R[30] ^ RK[45], R[31] ^ RK[46], R[ 0] ^ RK[47],
  634|  9.98M|         L[ 4], L[26], L[14], L[20]);
  635|       |   // clang-format on
  636|  9.98M|}
des.cpp:_ZN5Botan12_GLOBAL__N_15SBox1ITkNS0_9BitsliceTEjEEvT_S2_S2_S2_S2_S2_RS2_S3_S3_S3_:
   38|  9.98M|BOTAN_FORCE_INLINE void SBox1(T a1, T a2, T a3, T a4, T a5, T a6, T& out1, T& out2, T& out3, T& out4) {
   39|  9.98M|   const T x1 = a1 & ~a5;
   40|  9.98M|   const T x2 = a4 ^ x1;
   41|  9.98M|   const T x3 = a3 | a6;
   42|  9.98M|   const T x4 = a1 ^ a3;
   43|  9.98M|   const T x5 = x3 & x4;
   44|  9.98M|   const T x6 = a4 ^ x5;
   45|  9.98M|   const T x7 = x6 & ~x2;
   46|       |
   47|  9.98M|   const T x8 = a5 ^ a6;
   48|  9.98M|   const T x9 = a3 ^ x8;
   49|  9.98M|   const T x10 = x2 & ~x9;
   50|  9.98M|   const T x11 = a6 | x5;
   51|  9.98M|   const T x12 = x10 ^ x11;
   52|  9.98M|   const T x13 = x12 & ~x7;
   53|       |
   54|  9.98M|   const T x14 = a1 | a6;
   55|  9.98M|   const T x15 = x12 | x14;
   56|  9.98M|   const T x16 = a5 & ~x6;
   57|  9.98M|   const T x17 = x15 ^ x16;
   58|       |
   59|  9.98M|   const T x18 = a4 & ~x14;
   60|  9.98M|   const T x19 = x16 ^ x18;
   61|  9.98M|   const T x20 = x8 & ~x4;
   62|  9.98M|   const T x21 = x19 | x20;
   63|       |
   64|  9.98M|   const T x22 = a3 & ~x1;
   65|  9.98M|   const T x23 = x2 ^ x15;
   66|  9.98M|   const T x24 = x23 & ~x22;
   67|  9.98M|   const T x25 = ~x24;
   68|  9.98M|   const T x26 = x3 & x12;
   69|  9.98M|   const T x27 = x25 ^ x26;
   70|  9.98M|   const T x28 = x17 & ~a2;
   71|  9.98M|   const T x29 = x28 ^ x27;
   72|  9.98M|   out3 ^= x29;
   73|       |
   74|  9.98M|   const T x30 = x8 ^ x24;
   75|  9.98M|   const T x31 = x16 | x30;
   76|  9.98M|   const T x32 = x3 ^ x31;
   77|  9.98M|   const T x33 = a1 ^ x32;
   78|  9.98M|   const T x34 = x27 ^ x33;
   79|  9.98M|   const T x35 = x7 | a2;
   80|  9.98M|   const T x36 = x35 ^ x34;
   81|  9.98M|   out1 ^= x36;
   82|       |
   83|  9.98M|   const T x37 = x2 & ~x21;
   84|  9.98M|   const T x38 = x30 ^ x37;
   85|  9.98M|   const T x39 = x16 ^ x32;
   86|  9.98M|   const T x40 = x34 & ~x39;
   87|  9.98M|   const T x41 = x38 ^ x40;
   88|  9.98M|   const T x42 = a2 & ~x13;
   89|  9.98M|   const T x43 = x42 ^ x41;
   90|  9.98M|   out2 ^= x43;
   91|       |
   92|  9.98M|   const T x44 = x9 ^ x20;
   93|  9.98M|   const T x45 = x14 ^ x40;
   94|  9.98M|   const T x46 = x45 & ~x44;
   95|  9.98M|   const T x47 = x41 ^ x46;
   96|  9.98M|   const T x48 = x47 | a2;
   97|  9.98M|   const T x49 = x48 ^ x21;
   98|  9.98M|   out4 ^= x49;
   99|  9.98M|}
des.cpp:_ZN5Botan12_GLOBAL__N_15SBox2ITkNS0_9BitsliceTEjEEvT_S2_S2_S2_S2_S2_RS2_S3_S3_S3_:
  102|  9.98M|BOTAN_FORCE_INLINE void SBox2(T a1, T a2, T a3, T a4, T a5, T a6, T& out1, T& out2, T& out3, T& out4) {
  103|  9.98M|   const T x1 = a2 ^ a5;
  104|       |
  105|  9.98M|   const T x2 = a1 & ~a6;
  106|  9.98M|   const T x3 = a5 & ~x2;
  107|  9.98M|   const T x4 = a2 | x3;
  108|       |
  109|  9.98M|   const T x5 = x1 & ~a6;
  110|  9.98M|   const T x6 = a1 & x1;
  111|  9.98M|   const T x7 = a5 ^ x6;
  112|  9.98M|   const T x8 = x7 & ~x5;
  113|       |
  114|  9.98M|   const T x9 = a3 & a6;
  115|  9.98M|   const T x10 = x3 ^ x5;
  116|  9.98M|   const T x11 = x4 & x10;
  117|  9.98M|   const T x12 = x11 & ~x9;
  118|       |
  119|  9.98M|   const T x13 = a3 & x11;
  120|  9.98M|   const T x14 = ~a1;
  121|  9.98M|   const T x15 = x13 ^ x14;
  122|  9.98M|   const T x16 = a6 ^ x1;
  123|  9.98M|   const T x17 = x16 & ~x9;
  124|  9.98M|   const T x18 = x15 ^ x17;
  125|  9.98M|   const T x19 = a4 & ~x12;
  126|  9.98M|   const T x20 = x19 ^ x18;
  127|  9.98M|   out2 ^= x20;
  128|       |
  129|  9.98M|   const T x21 = a2 & ~x17;
  130|  9.98M|   const T x22 = x7 ^ x21;
  131|  9.98M|   const T x23 = x15 & ~x22;
  132|  9.98M|   const T x24 = a3 ^ x16;
  133|  9.98M|   const T x25 = x23 ^ x24;
  134|  9.98M|   const T x26 = x4 & ~a4;
  135|  9.98M|   const T x27 = x26 ^ x25;
  136|  9.98M|   out1 ^= x27;
  137|       |
  138|  9.98M|   const T x28 = a2 & ~x9;
  139|  9.98M|   const T x29 = x24 | x28;
  140|  9.98M|   const T x30 = x4 ^ x18;
  141|  9.98M|   const T x31 = x9 | x30;
  142|  9.98M|   const T x32 = x29 ^ x31;
  143|       |
  144|  9.98M|   const T x33 = x11 ^ x18;
  145|  9.98M|   const T x34 = x25 ^ x33;
  146|  9.98M|   const T x35 = x31 & x34;
  147|  9.98M|   const T x36 = x1 & x29;
  148|  9.98M|   const T x37 = x35 ^ x36;
  149|  9.98M|   const T x38 = x37 | a4;
  150|  9.98M|   const T x39 = x38 ^ x32;
  151|  9.98M|   out3 ^= x39;
  152|       |
  153|  9.98M|   const T x40 = x37 & ~x22;
  154|  9.98M|   const T x41 = x16 | x30;
  155|  9.98M|   const T x42 = x40 ^ x41;
  156|  9.98M|   const T x43 = x8 | a4;
  157|  9.98M|   const T x44 = x43 ^ x42;
  158|  9.98M|   out4 ^= x44;
  159|  9.98M|}
des.cpp:_ZN5Botan12_GLOBAL__N_15SBox3ITkNS0_9BitsliceTEjEEvT_S2_S2_S2_S2_S2_RS2_S3_S3_S3_:
  162|  9.98M|BOTAN_FORCE_INLINE void SBox3(T a1, T a2, T a3, T a4, T a5, T a6, T& out1, T& out2, T& out3, T& out4) {
  163|  9.98M|   const T x1 = a1 & ~a2;
  164|  9.98M|   const T x2 = a3 ^ a6;
  165|  9.98M|   const T x3 = x1 | x2;
  166|  9.98M|   const T x4 = a4 ^ a6;
  167|  9.98M|   const T x5 = x4 & ~a1;
  168|  9.98M|   const T x6 = x3 ^ x5;
  169|       |
  170|  9.98M|   const T x7 = a2 ^ x2;
  171|  9.98M|   const T x8 = x7 & ~a6;
  172|  9.98M|   const T x9 = x3 ^ x8;
  173|  9.98M|   const T x10 = x6 & ~x9;
  174|       |
  175|  9.98M|   const T x11 = a6 & x6;
  176|  9.98M|   const T x12 = a4 | x11;
  177|  9.98M|   const T x13 = a1 & x12;
  178|  9.98M|   const T x14 = x7 ^ x13;
  179|  9.98M|   const T x15 = x6 & ~a5;
  180|  9.98M|   const T x16 = x15 ^ x14;
  181|  9.98M|   out4 ^= x16;
  182|       |
  183|  9.98M|   const T x17 = x2 & x4;
  184|  9.98M|   const T x18 = a1 ^ a4;
  185|  9.98M|   const T x19 = x9 ^ x18;
  186|  9.98M|   const T x20 = a3 | x19;
  187|  9.98M|   const T x21 = x20 & ~x17;
  188|       |
  189|  9.98M|   const T x22 = x5 | x18;
  190|  9.98M|   const T x23 = x14 & ~x22;
  191|  9.98M|   const T x24 = a4 & a6;
  192|  9.98M|   const T x25 = x24 & ~a2;
  193|  9.98M|   const T x26 = x23 ^ x25;
  194|       |
  195|  9.98M|   const T x27 = x9 & x26;
  196|  9.98M|   const T x28 = x7 | x24;
  197|  9.98M|   const T x29 = x28 & ~x27;
  198|  9.98M|   const T x30 = a1 ^ x29;
  199|  9.98M|   const T x31 = x21 & a5;
  200|  9.98M|   const T x32 = x31 ^ x30;
  201|  9.98M|   out2 ^= x32;
  202|       |
  203|  9.98M|   const T x33 = x6 & ~a2;
  204|  9.98M|   const T x34 = x33 & ~a3;
  205|  9.98M|   const T x35 = ~x7;
  206|  9.98M|   const T x36 = x22 ^ x35;
  207|  9.98M|   const T x37 = x34 ^ x36;
  208|  9.98M|   const T x38 = a5 & ~x10;
  209|  9.98M|   const T x39 = x38 ^ x37;
  210|  9.98M|   out1 ^= x39;
  211|       |
  212|  9.98M|   const T x40 = x34 | x36;
  213|  9.98M|   const T x41 = x5 | x33;
  214|  9.98M|   const T x42 = x40 ^ x41;
  215|  9.98M|   const T x43 = a4 & ~x6;
  216|  9.98M|   const T x44 = x42 | x43;
  217|  9.98M|   const T x45 = a5 & ~x26;
  218|  9.98M|   const T x46 = x45 ^ x44;
  219|  9.98M|   out3 ^= x46;
  220|  9.98M|}
des.cpp:_ZN5Botan12_GLOBAL__N_15SBox4ITkNS0_9BitsliceTEjEEvT_S2_S2_S2_S2_S2_RS2_S3_S3_S3_:
  223|  9.98M|BOTAN_FORCE_INLINE void SBox4(T a1, T a2, T a3, T a4, T a5, T a6, T& out1, T& out2, T& out3, T& out4) {
  224|  9.98M|   const T x1 = a1 ^ a3;
  225|  9.98M|   const T x2 = a3 ^ a5;
  226|  9.98M|   const T x3 = a2 | a4;
  227|  9.98M|   const T x4 = a5 ^ x3;
  228|  9.98M|   const T x5 = x2 & ~x4;
  229|  9.98M|   const T x6 = x2 & ~a2;
  230|  9.98M|   const T x7 = a4 ^ x6;
  231|  9.98M|   const T x8 = x1 | x7;
  232|  9.98M|   const T x9 = x8 & ~x5;
  233|  9.98M|   const T x10 = a2 ^ x9;
  234|       |
  235|  9.98M|   const T x11 = x7 & x10;
  236|  9.98M|   const T x12 = x2 & ~x11;
  237|  9.98M|   const T x13 = x1 ^ x10;
  238|  9.98M|   const T x14 = x13 & ~x12;
  239|  9.98M|   const T x15 = x5 ^ x14;
  240|       |
  241|  9.98M|   const T x16 = a2 ^ a4;
  242|  9.98M|   const T x17 = a5 | x6;
  243|  9.98M|   const T x18 = x13 ^ x17;
  244|  9.98M|   const T x19 = x18 & ~x16;
  245|  9.98M|   const T x20 = x9 ^ x19;
  246|  9.98M|   const T x21 = a6 & ~x15;
  247|  9.98M|   const T x22 = x21 ^ x20;
  248|  9.98M|   out1 ^= x22;
  249|       |
  250|  9.98M|   const T x23 = ~x20;
  251|  9.98M|   const T x24 = x15 & ~a6;
  252|  9.98M|   const T x25 = x24 ^ x23;
  253|  9.98M|   out2 ^= x25;
  254|       |
  255|  9.98M|   const T x26 = x15 ^ x23;
  256|  9.98M|   const T x27 = x26 & ~x16;
  257|  9.98M|   const T x28 = x11 | x27;
  258|  9.98M|   const T x29 = x18 ^ x28;
  259|  9.98M|   const T x30 = x10 | a6;
  260|  9.98M|   const T x31 = x30 ^ x29;
  261|  9.98M|   out3 ^= x31;
  262|       |
  263|  9.98M|   const T x32 = a6 & x10;
  264|  9.98M|   const T x33 = x32 ^ x29;
  265|  9.98M|   out4 ^= x33;
  266|  9.98M|}
des.cpp:_ZN5Botan12_GLOBAL__N_15SBox5ITkNS0_9BitsliceTEjEEvT_S2_S2_S2_S2_S2_RS2_S3_S3_S3_:
  269|  9.98M|BOTAN_FORCE_INLINE void SBox5(T a1, T a2, T a3, T a4, T a5, T a6, T& out1, T& out2, T& out3, T& out4) {
  270|  9.98M|   const T x1 = a1 | a3;
  271|  9.98M|   const T x2 = x1 & ~a6;
  272|  9.98M|   const T x3 = a1 ^ x2;
  273|  9.98M|   const T x4 = a3 ^ x3;
  274|  9.98M|   const T x5 = a4 | x4;
  275|       |
  276|  9.98M|   const T x6 = x2 & ~a4;
  277|  9.98M|   const T x7 = a3 ^ x6;
  278|  9.98M|   const T x8 = a5 & x7;
  279|  9.98M|   const T x9 = a1 | x4;
  280|  9.98M|   const T x10 = x8 ^ x9;
  281|  9.98M|   const T x11 = a4 ^ x10;
  282|       |
  283|  9.98M|   const T x12 = a6 ^ x11;
  284|  9.98M|   const T x13 = x3 | x12;
  285|  9.98M|   const T x14 = a5 & x13;
  286|  9.98M|   const T x15 = x3 ^ x14;
  287|  9.98M|   const T x16 = a4 & x9;
  288|  9.98M|   const T x17 = x15 ^ x16;
  289|       |
  290|  9.98M|   const T x18 = x13 & ~a1;
  291|  9.98M|   const T x19 = x7 ^ x18;
  292|  9.98M|   const T x20 = a5 ^ x5;
  293|  9.98M|   const T x21 = x20 & ~x19;
  294|  9.98M|   const T x22 = ~x21;
  295|  9.98M|   const T x23 = x22 & ~a2;
  296|  9.98M|   const T x24 = x23 ^ x11;
  297|  9.98M|   out3 ^= x24;
  298|       |
  299|  9.98M|   const T x25 = x7 & ~x14;
  300|  9.98M|   const T x26 = x18 ^ x20;
  301|  9.98M|   const T x27 = x17 | x26;
  302|  9.98M|   const T x28 = x27 & ~x25;
  303|  9.98M|   const T x29 = x5 & ~x28;
  304|       |
  305|  9.98M|   const T x30 = x12 & x28;
  306|  9.98M|   const T x31 = x20 ^ x30;
  307|  9.98M|   const T x32 = x7 & x9;
  308|  9.98M|   const T x33 = x31 | x32;
  309|  9.98M|   const T x34 = x14 ^ x33;
  310|  9.98M|   const T x35 = x34 & a2;
  311|  9.98M|   const T x36 = x35 ^ x17;
  312|  9.98M|   out4 ^= x36;
  313|       |
  314|  9.98M|   const T x37 = x1 ^ x28;
  315|  9.98M|   const T x38 = a1 ^ x37;
  316|  9.98M|   const T x39 = a4 & x31;
  317|  9.98M|   const T x40 = x38 ^ x39;
  318|  9.98M|   const T x41 = x29 | a2;
  319|  9.98M|   const T x42 = x41 ^ x40;
  320|  9.98M|   out1 ^= x42;
  321|       |
  322|  9.98M|   const T x43 = x5 ^ x7;
  323|  9.98M|   const T x44 = x43 & ~x40;
  324|  9.98M|   const T x45 = x3 ^ x31;
  325|  9.98M|   const T x46 = x44 ^ x45;
  326|  9.98M|   const T x47 = x5 & a2;
  327|  9.98M|   const T x48 = x47 ^ x46;
  328|  9.98M|   out2 ^= x48;
  329|  9.98M|}
des.cpp:_ZN5Botan12_GLOBAL__N_15SBox6ITkNS0_9BitsliceTEjEEvT_S2_S2_S2_S2_S2_RS2_S3_S3_S3_:
  332|  9.98M|BOTAN_FORCE_INLINE void SBox6(T a1, T a2, T a3, T a4, T a5, T a6, T& out1, T& out2, T& out3, T& out4) {
  333|  9.98M|   const T x1 = a2 ^ a5;
  334|       |
  335|  9.98M|   const T x2 = a2 | a6;
  336|  9.98M|   const T x3 = a1 & x2;
  337|  9.98M|   const T x4 = x1 ^ x3;
  338|  9.98M|   const T x5 = a6 ^ x4;
  339|  9.98M|   const T x6 = a5 & ~x5;
  340|       |
  341|  9.98M|   const T x7 = a1 & x5;
  342|  9.98M|   const T x8 = a2 ^ x7;
  343|  9.98M|   const T x9 = a1 ^ a3;
  344|  9.98M|   const T x10 = x8 | x9;
  345|  9.98M|   const T x11 = x4 ^ x10;
  346|       |
  347|  9.98M|   const T x12 = a3 & x11;
  348|  9.98M|   const T x13 = x12 & ~a6;
  349|  9.98M|   const T x14 = x6 | x8;
  350|  9.98M|   const T x15 = x13 ^ x14;
  351|  9.98M|   const T x16 = x15 & a4;
  352|  9.98M|   const T x17 = x16 ^ x11;
  353|  9.98M|   out4 ^= x17;
  354|       |
  355|  9.98M|   const T x18 = a2 ^ x10;
  356|  9.98M|   const T x19 = a6 & ~x18;
  357|  9.98M|   const T x20 = a3 ^ x19;
  358|  9.98M|   const T x21 = a5 & ~x12;
  359|  9.98M|   const T x22 = x20 | x21;
  360|       |
  361|  9.98M|   const T x23 = a2 | x9;
  362|  9.98M|   const T x24 = x15 ^ x23;
  363|  9.98M|   const T x25 = x3 | x22;
  364|  9.98M|   const T x26 = x24 ^ x25;
  365|       |
  366|  9.98M|   const T x27 = a1 | x11;
  367|  9.98M|   const T x28 = x14 & x27;
  368|  9.98M|   const T x29 = x20 ^ x28;
  369|  9.98M|   const T x30 = x29 & ~x13;
  370|  9.98M|   const T x31 = x6 | a4;
  371|  9.98M|   const T x32 = x31 ^ x30;
  372|  9.98M|   out3 ^= x32;
  373|       |
  374|  9.98M|   const T x33 = x4 ^ x29;
  375|  9.98M|   const T x34 = a5 & ~x33;
  376|  9.98M|   const T x35 = ~x23;
  377|  9.98M|   const T x36 = x18 ^ x35;
  378|  9.98M|   const T x37 = x34 ^ x36;
  379|  9.98M|   const T x38 = x37 & ~a4;
  380|  9.98M|   const T x39 = x38 ^ x26;
  381|  9.98M|   out2 ^= x39;
  382|       |
  383|  9.98M|   const T x40 = a6 ^ x7;
  384|  9.98M|   const T x41 = a1 ^ x20;
  385|  9.98M|   const T x42 = x40 & x41;
  386|  9.98M|   const T x43 = x12 ^ x36;
  387|  9.98M|   const T x44 = x42 ^ x43;
  388|  9.98M|   const T x45 = x22 & ~a4;
  389|  9.98M|   const T x46 = x45 ^ x44;
  390|  9.98M|   out1 ^= x46;
  391|  9.98M|}
des.cpp:_ZN5Botan12_GLOBAL__N_15SBox7ITkNS0_9BitsliceTEjEEvT_S2_S2_S2_S2_S2_RS2_S3_S3_S3_:
  394|  9.98M|BOTAN_FORCE_INLINE void SBox7(T a1, T a2, T a3, T a4, T a5, T a6, T& out1, T& out2, T& out3, T& out4) {
  395|  9.98M|   const T x1 = a4 ^ a5;
  396|  9.98M|   const T x2 = a3 ^ x1;
  397|  9.98M|   const T x3 = a6 & x2;
  398|  9.98M|   const T x4 = a4 & x1;
  399|  9.98M|   const T x5 = a2 ^ x4;
  400|  9.98M|   const T x6 = x3 & x5;
  401|       |
  402|  9.98M|   const T x7 = a6 & x4;
  403|  9.98M|   const T x8 = a3 ^ x7;
  404|  9.98M|   const T x9 = x5 | x8;
  405|  9.98M|   const T x10 = a6 ^ x1;
  406|  9.98M|   const T x11 = x9 ^ x10;
  407|  9.98M|   const T x12 = a1 & ~x6;
  408|  9.98M|   const T x13 = x12 ^ x11;
  409|  9.98M|   out4 ^= x13;
  410|       |
  411|  9.98M|   const T x14 = a5 & ~x2;
  412|  9.98M|   const T x15 = x5 | x14;
  413|  9.98M|   const T x16 = x3 ^ x8;
  414|  9.98M|   const T x17 = x15 ^ x16;
  415|       |
  416|  9.98M|   const T x18 = x3 ^ x10;
  417|  9.98M|   const T x19 = a4 & ~x18;
  418|  9.98M|   const T x20 = x5 & ~x19;
  419|  9.98M|   const T x21 = a5 ^ x16;
  420|  9.98M|   const T x22 = x20 ^ x21;
  421|       |
  422|  9.98M|   const T x23 = x18 & ~x7;
  423|  9.98M|   const T x24 = x19 | x23;
  424|  9.98M|   const T x25 = a2 ^ x9;
  425|  9.98M|   const T x26 = x22 & x25;
  426|  9.98M|   const T x27 = x24 ^ x26;
  427|  9.98M|   const T x28 = x27 & a1;
  428|  9.98M|   const T x29 = x28 ^ x22;
  429|  9.98M|   out3 ^= x29;
  430|       |
  431|  9.98M|   const T x30 = x5 & ~a3;
  432|  9.98M|   const T x31 = x23 | x30;
  433|  9.98M|   const T x32 = x4 | x22;
  434|  9.98M|   const T x33 = x31 & x32;
  435|  9.98M|   const T x34 = x27 ^ x33;
  436|       |
  437|  9.98M|   const T x35 = x17 | x24;
  438|  9.98M|   const T x36 = x14 ^ x35;
  439|  9.98M|   const T x37 = a6 & x36;
  440|  9.98M|   const T x38 = x33 ^ x37;
  441|  9.98M|   const T x39 = x38 & ~a1;
  442|  9.98M|   const T x40 = x39 ^ x17;
  443|  9.98M|   out1 ^= x40;
  444|       |
  445|  9.98M|   const T x41 = ~x37;
  446|  9.98M|   const T x42 = a2 | x41;
  447|  9.98M|   const T x43 = x17 ^ x33;
  448|  9.98M|   const T x44 = x42 ^ x43;
  449|  9.98M|   const T x45 = x34 | a1;
  450|  9.98M|   const T x46 = x45 ^ x44;
  451|  9.98M|   out2 ^= x46;
  452|  9.98M|}
des.cpp:_ZN5Botan12_GLOBAL__N_15SBox8ITkNS0_9BitsliceTEjEEvT_S2_S2_S2_S2_S2_RS2_S3_S3_S3_:
  455|  9.98M|BOTAN_FORCE_INLINE void SBox8(T a1, T a2, T a3, T a4, T a5, T a6, T& out1, T& out2, T& out3, T& out4) {
  456|  9.98M|   const T x1 = a3 & ~a2;
  457|  9.98M|   const T x2 = a5 & ~a3;
  458|  9.98M|   const T x3 = a4 ^ x2;
  459|  9.98M|   const T x4 = a1 & x3;
  460|  9.98M|   const T x5 = x4 & ~x1;
  461|       |
  462|  9.98M|   const T x6 = a2 & ~x3;
  463|  9.98M|   const T x7 = a1 | x6;
  464|  9.98M|   const T x8 = a2 & ~a3;
  465|  9.98M|   const T x9 = a5 ^ x8;
  466|  9.98M|   const T x10 = x7 & x9;
  467|  9.98M|   const T x11 = x4 | x10;
  468|       |
  469|  9.98M|   const T x12 = ~x3;
  470|  9.98M|   const T x13 = x10 ^ x12;
  471|  9.98M|   const T x14 = a3 & ~x7;
  472|  9.98M|   const T x15 = x13 ^ x14;
  473|  9.98M|   const T x16 = x1 ^ x15;
  474|  9.98M|   const T x17 = x5 | a6;
  475|  9.98M|   const T x18 = x17 ^ x16;
  476|  9.98M|   out2 ^= x18;
  477|       |
  478|  9.98M|   const T x19 = a1 ^ x16;
  479|  9.98M|   const T x20 = a5 & x19;
  480|  9.98M|   const T x21 = a2 ^ x15;
  481|  9.98M|   const T x22 = x20 ^ x21;
  482|  9.98M|   const T x23 = x6 ^ x22;
  483|       |
  484|  9.98M|   const T x24 = x11 ^ x22;
  485|  9.98M|   const T x25 = a2 | x24;
  486|  9.98M|   const T x26 = a5 ^ x19;
  487|  9.98M|   const T x27 = x25 ^ x26;
  488|  9.98M|   const T x28 = x11 & a6;
  489|  9.98M|   const T x29 = x28 ^ x27;
  490|  9.98M|   out3 ^= x29;
  491|       |
  492|  9.98M|   const T x30 = x9 ^ x23;
  493|  9.98M|   const T x31 = a4 | x21;
  494|  9.98M|   const T x32 = x30 ^ x31;
  495|  9.98M|   const T x33 = a1 ^ x32;
  496|  9.98M|   const T x34 = x33 & a6;
  497|  9.98M|   const T x35 = x34 ^ x23;
  498|  9.98M|   out4 ^= x35;
  499|       |
  500|  9.98M|   const T x36 = x30 & ~a4;
  501|  9.98M|   const T x37 = x27 & x36;
  502|  9.98M|   const T x38 = x5 ^ x32;
  503|  9.98M|   const T x39 = x37 ^ x38;
  504|  9.98M|   const T x40 = x39 | a6;
  505|  9.98M|   const T x41 = x40 ^ x23;
  506|  9.98M|   out1 ^= x41;
  507|  9.98M|}
des.cpp:_ZN5Botan12_GLOBAL__N_113transpose_outEPhPKjm:
  567|   208k|void transpose_out(uint8_t out[], const uint32_t B[64], size_t n_blocks) {
  568|       |   // clang-format off
  569|   208k|   static constexpr uint8_t FP[64] = {
  570|   208k|      39, 7, 47, 15, 55, 23, 63, 31,
  571|   208k|      38, 6, 46, 14, 54, 22, 62, 30,
  572|   208k|      37, 5, 45, 13, 53, 21, 61, 29,
  573|   208k|      36, 4, 44, 12, 52, 20, 60, 28,
  574|   208k|      35, 3, 43, 11, 51, 19, 59, 27,
  575|   208k|      34, 2, 42, 10, 50, 18, 58, 26,
  576|   208k|      33, 1, 41,  9, 49, 17, 57, 25,
  577|   208k|      32, 0, 40,  8, 48, 16, 56, 24
  578|   208k|   };
  579|       |   // clang-format on
  580|       |
  581|   208k|   uint64_t M[32];
  582|  6.86M|   for(size_t i = 0; i != 32; ++i) {
  ------------------
  |  Branch (582:22): [True: 6.65M, False: 208k]
  ------------------
  583|       |      // XOR with 32 here absorbs the DES output swap into the FP
  584|  6.65M|      M[i] = (static_cast<uint64_t>(B[FP[31 - i] ^ 32]) << 32) | B[FP[63 - i] ^ 32];
  585|  6.65M|   }
  586|       |
  587|   208k|   des_transpose(M);
  588|       |
  589|   618k|   for(size_t i = 0; i != n_blocks; ++i) {
  ------------------
  |  Branch (589:22): [True: 410k, False: 208k]
  ------------------
  590|   410k|      store_be(out + i * 8, M[i]);
  591|   410k|   }
  592|   208k|}
des.cpp:_ZN5Botan12_GLOBAL__N_111des_decryptEPjS1_PKj:
  645|   208k|void des_decrypt(uint32_t L[32], uint32_t R[32], const uint32_t round_key[]) {
  646|  1.87M|   for(size_t round = 16; round > 0; round -= 2) {
  ------------------
  |  Branch (646:27): [True: 1.66M, False: 208k]
  ------------------
  647|  1.66M|      des_round(L, R, &round_key[(round - 1) * 48]);
  648|  1.66M|      des_round(R, L, &round_key[(round - 2) * 48]);
  649|  1.66M|   }
  650|   208k|}
des.cpp:_ZN5Botan12_GLOBAL__N_116des_key_scheduleEPjPKh:
  656|  17.5k|void des_key_schedule(uint32_t round_key[], const uint8_t key[8]) {
  657|  17.5k|   static const uint8_t ROT[16] = {1, 1, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 1};
  658|       |
  659|  17.5k|   uint32_t C = ((key[7] & 0x80) << 20) | ((key[6] & 0x80) << 19) | ((key[5] & 0x80) << 18) | ((key[4] & 0x80) << 17) |
  660|  17.5k|                ((key[3] & 0x80) << 16) | ((key[2] & 0x80) << 15) | ((key[1] & 0x80) << 14) | ((key[0] & 0x80) << 13) |
  661|  17.5k|                ((key[7] & 0x40) << 13) | ((key[6] & 0x40) << 12) | ((key[5] & 0x40) << 11) | ((key[4] & 0x40) << 10) |
  662|  17.5k|                ((key[3] & 0x40) << 9) | ((key[2] & 0x40) << 8) | ((key[1] & 0x40) << 7) | ((key[0] & 0x40) << 6) |
  663|  17.5k|                ((key[7] & 0x20) << 6) | ((key[6] & 0x20) << 5) | ((key[5] & 0x20) << 4) | ((key[4] & 0x20) << 3) |
  664|  17.5k|                ((key[3] & 0x20) << 2) | ((key[2] & 0x20) << 1) | ((key[1] & 0x20)) | ((key[0] & 0x20) >> 1) |
  665|  17.5k|                ((key[7] & 0x10) >> 1) | ((key[6] & 0x10) >> 2) | ((key[5] & 0x10) >> 3) | ((key[4] & 0x10) >> 4);
  666|  17.5k|   uint32_t D = ((key[7] & 0x02) << 26) | ((key[6] & 0x02) << 25) | ((key[5] & 0x02) << 24) | ((key[4] & 0x02) << 23) |
  667|  17.5k|                ((key[3] & 0x02) << 22) | ((key[2] & 0x02) << 21) | ((key[1] & 0x02) << 20) | ((key[0] & 0x02) << 19) |
  668|  17.5k|                ((key[7] & 0x04) << 17) | ((key[6] & 0x04) << 16) | ((key[5] & 0x04) << 15) | ((key[4] & 0x04) << 14) |
  669|  17.5k|                ((key[3] & 0x04) << 13) | ((key[2] & 0x04) << 12) | ((key[1] & 0x04) << 11) | ((key[0] & 0x04) << 10) |
  670|  17.5k|                ((key[7] & 0x08) << 8) | ((key[6] & 0x08) << 7) | ((key[5] & 0x08) << 6) | ((key[4] & 0x08) << 5) |
  671|  17.5k|                ((key[3] & 0x08) << 4) | ((key[2] & 0x08) << 3) | ((key[1] & 0x08) << 2) | ((key[0] & 0x08) << 1) |
  672|  17.5k|                ((key[3] & 0x10) >> 1) | ((key[2] & 0x10) >> 2) | ((key[1] & 0x10) >> 3) | ((key[0] & 0x10) >> 4);
  673|       |
  674|  17.5k|   static const uint8_t PC2_C[24] = {13, 16, 10, 23, 0,  4, 2,  27, 14, 5,  20, 9,
  675|  17.5k|                                     22, 18, 11, 3,  25, 7, 15, 6,  26, 19, 12, 1};
  676|       |
  677|  17.5k|   static const uint8_t PC2_D[24] = {12, 23, 2,  8,  18, 26, 1,  11, 22, 16, 4, 19,
  678|  17.5k|                                     15, 20, 10, 27, 5,  24, 17, 13, 21, 7,  0, 3};
  679|       |
  680|   297k|   for(size_t i = 0; i != 16; ++i) {
  ------------------
  |  Branch (680:22): [True: 280k, False: 17.5k]
  ------------------
  681|   280k|      C = ((C << ROT[i]) | (C >> (28 - ROT[i]))) & 0x0FFFFFFF;
  682|   280k|      D = ((D << ROT[i]) | (D >> (28 - ROT[i]))) & 0x0FFFFFFF;
  683|       |
  684|   280k|      uint32_t* rk = &round_key[i * 48];
  685|       |
  686|  7.00M|      for(size_t j = 0; j < 24; ++j) {
  ------------------
  |  Branch (686:25): [True: 6.72M, False: 280k]
  ------------------
  687|  6.72M|         const uint32_t bit = (C >> (27 - PC2_C[j])) & 1;
  688|  6.72M|         rk[j] = static_cast<uint32_t>(0) - bit;
  689|  6.72M|      }
  690|       |
  691|  7.00M|      for(size_t j = 0; j < 24; ++j) {
  ------------------
  |  Branch (691:25): [True: 6.72M, False: 280k]
  ------------------
  692|  6.72M|         const uint32_t bit = (D >> (27 - PC2_D[j])) & 1;
  693|  6.72M|         rk[24 + j] = static_cast<uint32_t>(0) - bit;
  694|  6.72M|      }
  695|   280k|   }
  696|  17.5k|}

_ZNK5Botan4IDEA11parallelismEv:
  108|  2.99k|size_t IDEA::parallelism() const {
  109|       |#if defined(BOTAN_HAS_IDEA_AVX2)
  110|       |   if(CPUID::has(CPUID::Feature::AVX2)) {
  111|       |      return 16;
  112|       |   }
  113|       |#endif
  114|       |
  115|       |#if defined(BOTAN_HAS_IDEA_SSE2)
  116|       |   if(CPUID::has(CPUID::Feature::SSE2)) {
  117|       |      return 8;
  118|       |   }
  119|       |#endif
  120|       |
  121|  2.99k|   return 1;
  122|  2.99k|}
_ZNK5Botan4IDEA9encrypt_nEPKhPhm:
  143|  46.4k|void IDEA::encrypt_n(const uint8_t in[], uint8_t out[], size_t blocks) const {
  144|  46.4k|   assert_key_material_set();
  145|       |
  146|       |#if defined(BOTAN_HAS_IDEA_AVX2)
  147|       |   if(CPUID::has(CPUID::Feature::AVX2)) {
  148|       |      while(blocks >= 16) {
  149|       |         avx2_idea_op_16(in, out, m_EK.data());
  150|       |         in += 16 * BLOCK_SIZE;
  151|       |         out += 16 * BLOCK_SIZE;
  152|       |         blocks -= 16;
  153|       |      }
  154|       |   }
  155|       |#endif
  156|       |
  157|       |#if defined(BOTAN_HAS_IDEA_SSE2)
  158|       |   if(CPUID::has(CPUID::Feature::SSE2)) {
  159|       |      while(blocks >= 8) {
  160|       |         sse2_idea_op_8(in, out, m_EK.data());
  161|       |         in += 8 * BLOCK_SIZE;
  162|       |         out += 8 * BLOCK_SIZE;
  163|       |         blocks -= 8;
  164|       |      }
  165|       |   }
  166|       |#endif
  167|       |
  168|  46.4k|   idea_op(in, out, blocks, m_EK.data());
  169|  46.4k|}
_ZNK5Botan4IDEA19has_keying_materialEv:
  202|  49.5k|bool IDEA::has_keying_material() const {
  203|  49.5k|   return !m_EK.empty();
  204|  49.5k|}
_ZN5Botan4IDEA12key_scheduleENSt3__14spanIKhLm18446744073709551615EEE:
  209|  4.54k|void IDEA::key_schedule(std::span<const uint8_t> key) {
  210|  4.54k|   m_EK.resize(52);
  211|  4.54k|   m_DK.resize(52);
  212|       |
  213|  4.54k|   CT::poison(key.data(), 16);
  214|  4.54k|   CT::poison(m_EK.data(), 52);
  215|  4.54k|   CT::poison(m_DK.data(), 52);
  216|       |
  217|  4.54k|   secure_vector<uint64_t> K(2);
  218|       |
  219|  4.54k|   K[0] = load_be<uint64_t>(key.data(), 0);
  220|  4.54k|   K[1] = load_be<uint64_t>(key.data(), 1);
  221|       |
  222|  31.8k|   for(size_t off = 0; off != 48; off += 8) {
  ------------------
  |  Branch (222:24): [True: 27.2k, False: 4.54k]
  ------------------
  223|   245k|      for(size_t i = 0; i != 8; ++i) {
  ------------------
  |  Branch (223:25): [True: 218k, False: 27.2k]
  ------------------
  224|   218k|         m_EK[off + i] = static_cast<uint16_t>(K[i / 4] >> (48 - 16 * (i % 4)));
  225|   218k|      }
  226|       |
  227|  27.2k|      const uint64_t Kx = (K[0] >> 39);
  228|  27.2k|      const uint64_t Ky = (K[1] >> 39);
  229|       |
  230|  27.2k|      K[0] = (K[0] << 25) | Ky;
  231|  27.2k|      K[1] = (K[1] << 25) | Kx;
  232|  27.2k|   }
  233|       |
  234|  22.7k|   for(size_t i = 0; i != 4; ++i) {
  ------------------
  |  Branch (234:22): [True: 18.1k, False: 4.54k]
  ------------------
  235|  18.1k|      m_EK[48 + i] = static_cast<uint16_t>(K[i / 4] >> (48 - 16 * (i % 4)));
  236|  18.1k|   }
  237|       |
  238|  4.54k|   m_DK[0] = mul_inv(m_EK[48]);
  239|  4.54k|   m_DK[1] = -m_EK[49];
  240|  4.54k|   m_DK[2] = -m_EK[50];
  241|  4.54k|   m_DK[3] = mul_inv(m_EK[51]);
  242|       |
  243|  40.8k|   for(size_t i = 0; i != 8 * 6; i += 6) {
  ------------------
  |  Branch (243:22): [True: 36.3k, False: 4.54k]
  ------------------
  244|  36.3k|      m_DK[i + 4] = m_EK[46 - i];
  245|  36.3k|      m_DK[i + 5] = m_EK[47 - i];
  246|  36.3k|      m_DK[i + 6] = mul_inv(m_EK[42 - i]);
  247|  36.3k|      m_DK[i + 7] = -m_EK[44 - i];
  248|  36.3k|      m_DK[i + 8] = -m_EK[43 - i];
  249|  36.3k|      m_DK[i + 9] = mul_inv(m_EK[45 - i]);
  250|  36.3k|   }
  251|       |
  252|  4.54k|   std::swap(m_DK[49], m_DK[50]);
  253|       |
  254|  4.54k|   CT::unpoison(key.data(), 16);
  255|  4.54k|   CT::unpoison(m_EK.data(), 52);
  256|  4.54k|   CT::unpoison(m_DK.data(), 52);
  257|  4.54k|}
_ZN5Botan4IDEA5clearEv:
  259|    105|void IDEA::clear() {
  260|    105|   zap(m_EK);
  261|    105|   zap(m_DK);
  262|    105|}
idea.cpp:_ZN5Botan12_GLOBAL__N_17idea_opEPKhPhmPKt:
   60|  46.4k|void idea_op(const uint8_t in[], uint8_t out[], size_t blocks, const uint16_t K[52]) {
   61|  46.4k|   const size_t BLOCK_SIZE = 8;
   62|       |
   63|  46.4k|   CT::poison(in, blocks * 8);
   64|  46.4k|   CT::poison(out, blocks * 8);
   65|  46.4k|   CT::poison(K, 52);
   66|       |
   67|   102k|   for(size_t i = 0; i < blocks; ++i) {
  ------------------
  |  Branch (67:22): [True: 56.2k, False: 46.4k]
  ------------------
   68|  56.2k|      uint16_t X1 = 0;
   69|  56.2k|      uint16_t X2 = 0;
   70|  56.2k|      uint16_t X3 = 0;
   71|  56.2k|      uint16_t X4 = 0;
   72|  56.2k|      load_be(in + BLOCK_SIZE * i, X1, X2, X3, X4);
   73|       |
   74|   505k|      for(size_t j = 0; j != 8; ++j) {
  ------------------
  |  Branch (74:25): [True: 449k, False: 56.2k]
  ------------------
   75|   449k|         X1 = mul(X1, K[6 * j + 0]);
   76|   449k|         X2 += K[6 * j + 1];
   77|   449k|         X3 += K[6 * j + 2];
   78|   449k|         X4 = mul(X4, K[6 * j + 3]);
   79|       |
   80|   449k|         const uint16_t T0 = X3;
   81|   449k|         X3 = mul(X3 ^ X1, K[6 * j + 4]);
   82|       |
   83|   449k|         const uint16_t T1 = X2;
   84|   449k|         X2 = mul((X2 ^ X4) + X3, K[6 * j + 5]);
   85|   449k|         X3 += X2;
   86|       |
   87|   449k|         X1 ^= X2;
   88|   449k|         X4 ^= X3;
   89|   449k|         X2 ^= T0;
   90|   449k|         X3 ^= T1;
   91|   449k|      }
   92|       |
   93|  56.2k|      X1 = mul(X1, K[48]);
   94|  56.2k|      X2 += K[50];
   95|  56.2k|      X3 += K[49];
   96|  56.2k|      X4 = mul(X4, K[51]);
   97|       |
   98|  56.2k|      store_be(out + BLOCK_SIZE * i, X1, X3, X2, X4);
   99|  56.2k|   }
  100|       |
  101|  46.4k|   CT::unpoison(in, blocks * 8);
  102|  46.4k|   CT::unpoison(out, blocks * 8);
  103|  46.4k|   CT::unpoison(K, 52);
  104|  46.4k|}
idea.cpp:_ZN5Botan12_GLOBAL__N_13mulEtt:
   24|  4.36M|inline uint16_t mul(uint16_t x, uint16_t y) {
   25|  4.36M|   uint32_t P = static_cast<uint32_t>(x) * y;
   26|  4.36M|   const uint16_t P_is_zero = static_cast<uint16_t>(ct_is_zero(P));
   27|       |
   28|  4.36M|   P = (P & 0xFFFF) - (P >> 16);
   29|  4.36M|   const uint16_t R1 = static_cast<uint16_t>(P - (P >> 16));
   30|  4.36M|   const uint16_t R0 = 1 - x - y;
   31|       |
   32|  4.36M|   return choose(P_is_zero, R0, R1);
   33|  4.36M|}
idea.cpp:_ZN5Botan12_GLOBAL__N_17mul_invEt:
   46|  81.7k|uint16_t mul_inv(uint16_t x) {
   47|  81.7k|   uint16_t y = x;
   48|       |
   49|  1.30M|   for(size_t i = 0; i != 15; ++i) {
  ------------------
  |  Branch (49:22): [True: 1.22M, False: 81.7k]
  ------------------
   50|  1.22M|      y = mul(y, y);  // square
   51|  1.22M|      y = mul(y, x);
   52|  1.22M|   }
   53|       |
   54|  81.7k|   return y;
   55|  81.7k|}

_ZNK5Botan3SM49encrypt_nEPKhPhm:
  159|  4.06k|void SM4::encrypt_n(const uint8_t in[], uint8_t out[], size_t blocks) const {
  160|  4.06k|   assert_key_material_set();
  161|       |
  162|       |#if defined(BOTAN_HAS_SM4_ARMV8)
  163|       |   if(CPUID::has(CPUID::Feature::SM4)) {
  164|       |      return sm4_armv8_encrypt(in, out, blocks);
  165|       |   }
  166|       |#endif
  167|       |
  168|       |#if defined(BOTAN_HAS_SM4_X86)
  169|       |   if(CPUID::has(CPUID::Feature::SM4)) {
  170|       |      return sm4_x86_encrypt(in, out, blocks);
  171|       |   }
  172|       |#endif
  173|       |
  174|       |#if defined(BOTAN_HAS_SM4_AVX512_GFNI)
  175|       |   if(CPUID::has(CPUID::Feature::AVX512, CPUID::Feature::GFNI)) {
  176|       |      return sm4_avx512_gfni_encrypt(in, out, blocks);
  177|       |   }
  178|       |#endif
  179|       |
  180|       |#if defined(BOTAN_HAS_SM4_GFNI)
  181|       |   if(CPUID::has(CPUID::Feature::GFNI)) {
  182|       |      return sm4_gfni_encrypt(in, out, blocks);
  183|       |   }
  184|       |#endif
  185|       |
  186|       |#if defined(BOTAN_HAS_SM4_HWAES)
  187|       |   if(CPUID::has(CPUID::Feature::HW_AES)) {
  188|       |      return sm4_hwaes_encrypt(in, out, blocks);
  189|       |   }
  190|       |#endif
  191|       |
  192|  5.10k|   while(blocks >= 2) {
  ------------------
  |  Branch (192:10): [True: 1.04k, False: 4.06k]
  ------------------
  193|  1.04k|      uint32_t B0 = load_be<uint32_t>(in, 0);
  194|  1.04k|      uint32_t B1 = load_be<uint32_t>(in, 1);
  195|  1.04k|      uint32_t B2 = load_be<uint32_t>(in, 2);
  196|  1.04k|      uint32_t B3 = load_be<uint32_t>(in, 3);
  197|       |
  198|  1.04k|      uint32_t C0 = load_be<uint32_t>(in, 4);
  199|  1.04k|      uint32_t C1 = load_be<uint32_t>(in, 5);
  200|  1.04k|      uint32_t C2 = load_be<uint32_t>(in, 6);
  201|  1.04k|      uint32_t C3 = load_be<uint32_t>(in, 7);
  202|       |
  203|  1.04k|      SM4_E<0>(B0, B1, B2, B3, C0, C1, C2, C3, m_RK, SM4_T_slow);
  204|  1.04k|      SM4_E<1>(B0, B1, B2, B3, C0, C1, C2, C3, m_RK, SM4_T);
  205|  1.04k|      SM4_E<2>(B0, B1, B2, B3, C0, C1, C2, C3, m_RK, SM4_T);
  206|  1.04k|      SM4_E<3>(B0, B1, B2, B3, C0, C1, C2, C3, m_RK, SM4_T);
  207|  1.04k|      SM4_E<4>(B0, B1, B2, B3, C0, C1, C2, C3, m_RK, SM4_T);
  208|  1.04k|      SM4_E<5>(B0, B1, B2, B3, C0, C1, C2, C3, m_RK, SM4_T);
  209|  1.04k|      SM4_E<6>(B0, B1, B2, B3, C0, C1, C2, C3, m_RK, SM4_T);
  210|  1.04k|      SM4_E<7>(B0, B1, B2, B3, C0, C1, C2, C3, m_RK, SM4_T_slow);
  211|       |
  212|  1.04k|      store_be(out, B3, B2, B1, B0, C3, C2, C1, C0);
  213|       |
  214|  1.04k|      in += 2 * BLOCK_SIZE;
  215|  1.04k|      out += 2 * BLOCK_SIZE;
  216|  1.04k|      blocks -= 2;
  217|  1.04k|   }
  218|       |
  219|  7.60k|   for(size_t i = 0; i != blocks; ++i) {
  ------------------
  |  Branch (219:22): [True: 3.54k, False: 4.06k]
  ------------------
  220|  3.54k|      uint32_t B0 = load_be<uint32_t>(in, 0);
  221|  3.54k|      uint32_t B1 = load_be<uint32_t>(in, 1);
  222|  3.54k|      uint32_t B2 = load_be<uint32_t>(in, 2);
  223|  3.54k|      uint32_t B3 = load_be<uint32_t>(in, 3);
  224|       |
  225|  3.54k|      SM4_E<0>(B0, B1, B2, B3, m_RK, SM4_T_slow);
  226|  3.54k|      SM4_E<1>(B0, B1, B2, B3, m_RK, SM4_T);
  227|  3.54k|      SM4_E<2>(B0, B1, B2, B3, m_RK, SM4_T);
  228|  3.54k|      SM4_E<3>(B0, B1, B2, B3, m_RK, SM4_T);
  229|  3.54k|      SM4_E<4>(B0, B1, B2, B3, m_RK, SM4_T);
  230|  3.54k|      SM4_E<5>(B0, B1, B2, B3, m_RK, SM4_T);
  231|  3.54k|      SM4_E<6>(B0, B1, B2, B3, m_RK, SM4_T);
  232|  3.54k|      SM4_E<7>(B0, B1, B2, B3, m_RK, SM4_T_slow);
  233|       |
  234|  3.54k|      store_be(out, B3, B2, B1, B0);
  235|       |
  236|  3.54k|      in += BLOCK_SIZE;
  237|  3.54k|      out += BLOCK_SIZE;
  238|  3.54k|   }
  239|  4.06k|}
_ZNK5Botan3SM49decrypt_nEPKhPhm:
  244|  1.03k|void SM4::decrypt_n(const uint8_t in[], uint8_t out[], size_t blocks) const {
  245|  1.03k|   assert_key_material_set();
  246|       |
  247|       |#if defined(BOTAN_HAS_SM4_ARMV8)
  248|       |   if(CPUID::has(CPUID::Feature::SM4)) {
  249|       |      return sm4_armv8_decrypt(in, out, blocks);
  250|       |   }
  251|       |#endif
  252|       |
  253|       |#if defined(BOTAN_HAS_SM4_X86)
  254|       |   if(CPUID::has(CPUID::Feature::SM4)) {
  255|       |      return sm4_x86_decrypt(in, out, blocks);
  256|       |   }
  257|       |#endif
  258|       |
  259|       |#if defined(BOTAN_HAS_SM4_AVX512_GFNI)
  260|       |   if(CPUID::has(CPUID::Feature::AVX512, CPUID::Feature::GFNI)) {
  261|       |      return sm4_avx512_gfni_decrypt(in, out, blocks);
  262|       |   }
  263|       |#endif
  264|       |
  265|       |#if defined(BOTAN_HAS_SM4_GFNI)
  266|       |   if(CPUID::has(CPUID::Feature::GFNI)) {
  267|       |      return sm4_gfni_decrypt(in, out, blocks);
  268|       |   }
  269|       |#endif
  270|       |
  271|       |#if defined(BOTAN_HAS_SM4_HWAES)
  272|       |   if(CPUID::has(CPUID::Feature::HW_AES)) {
  273|       |      return sm4_hwaes_decrypt(in, out, blocks);
  274|       |   }
  275|       |#endif
  276|       |
  277|  3.06k|   while(blocks >= 2) {
  ------------------
  |  Branch (277:10): [True: 2.03k, False: 1.03k]
  ------------------
  278|  2.03k|      uint32_t B0 = load_be<uint32_t>(in, 0);
  279|  2.03k|      uint32_t B1 = load_be<uint32_t>(in, 1);
  280|  2.03k|      uint32_t B2 = load_be<uint32_t>(in, 2);
  281|  2.03k|      uint32_t B3 = load_be<uint32_t>(in, 3);
  282|       |
  283|  2.03k|      uint32_t C0 = load_be<uint32_t>(in, 4);
  284|  2.03k|      uint32_t C1 = load_be<uint32_t>(in, 5);
  285|  2.03k|      uint32_t C2 = load_be<uint32_t>(in, 6);
  286|  2.03k|      uint32_t C3 = load_be<uint32_t>(in, 7);
  287|       |
  288|  2.03k|      SM4_D<7>(B0, B1, B2, B3, C0, C1, C2, C3, m_RK, SM4_T_slow);
  289|  2.03k|      SM4_D<6>(B0, B1, B2, B3, C0, C1, C2, C3, m_RK, SM4_T);
  290|  2.03k|      SM4_D<5>(B0, B1, B2, B3, C0, C1, C2, C3, m_RK, SM4_T);
  291|  2.03k|      SM4_D<4>(B0, B1, B2, B3, C0, C1, C2, C3, m_RK, SM4_T);
  292|  2.03k|      SM4_D<3>(B0, B1, B2, B3, C0, C1, C2, C3, m_RK, SM4_T);
  293|  2.03k|      SM4_D<2>(B0, B1, B2, B3, C0, C1, C2, C3, m_RK, SM4_T);
  294|  2.03k|      SM4_D<1>(B0, B1, B2, B3, C0, C1, C2, C3, m_RK, SM4_T);
  295|  2.03k|      SM4_D<0>(B0, B1, B2, B3, C0, C1, C2, C3, m_RK, SM4_T_slow);
  296|       |
  297|  2.03k|      store_be(out, B3, B2, B1, B0, C3, C2, C1, C0);
  298|       |
  299|  2.03k|      in += 2 * BLOCK_SIZE;
  300|  2.03k|      out += 2 * BLOCK_SIZE;
  301|  2.03k|      blocks -= 2;
  302|  2.03k|   }
  303|       |
  304|  1.03k|   for(size_t i = 0; i != blocks; ++i) {
  ------------------
  |  Branch (304:22): [True: 9, False: 1.03k]
  ------------------
  305|      9|      uint32_t B0 = load_be<uint32_t>(in, 0);
  306|      9|      uint32_t B1 = load_be<uint32_t>(in, 1);
  307|      9|      uint32_t B2 = load_be<uint32_t>(in, 2);
  308|      9|      uint32_t B3 = load_be<uint32_t>(in, 3);
  309|       |
  310|      9|      SM4_D<7>(B0, B1, B2, B3, m_RK, SM4_T_slow);
  311|      9|      SM4_D<6>(B0, B1, B2, B3, m_RK, SM4_T);
  312|      9|      SM4_D<5>(B0, B1, B2, B3, m_RK, SM4_T);
  313|      9|      SM4_D<4>(B0, B1, B2, B3, m_RK, SM4_T);
  314|      9|      SM4_D<3>(B0, B1, B2, B3, m_RK, SM4_T);
  315|      9|      SM4_D<2>(B0, B1, B2, B3, m_RK, SM4_T);
  316|      9|      SM4_D<1>(B0, B1, B2, B3, m_RK, SM4_T);
  317|      9|      SM4_D<0>(B0, B1, B2, B3, m_RK, SM4_T_slow);
  318|       |
  319|      9|      store_be(out, B3, B2, B1, B0);
  320|       |
  321|      9|      in += BLOCK_SIZE;
  322|      9|      out += BLOCK_SIZE;
  323|      9|   }
  324|  1.03k|}
_ZNK5Botan3SM419has_keying_materialEv:
  326|  5.72k|bool SM4::has_keying_material() const {
  327|  5.72k|   return !m_RK.empty();
  328|  5.72k|}
_ZN5Botan3SM46SM4_TpEj:
  335|  28.6k|uint32_t SM4::SM4_Tp(uint32_t b) {
  336|       |#if defined(BOTAN_HAS_SM4_HWAES)
  337|       |   if(CPUID::has(CPUID::Feature::HW_AES)) {
  338|       |      const uint32_t t = sm4_hwaes_sbox(b);
  339|       |      // L' linear transform
  340|       |      return t ^ rotl<13>(t) ^ rotl<23>(t);
  341|       |   }
  342|       |#endif
  343|       |
  344|  28.6k|   const uint8_t b0 = get_byte<0>(b);
  345|  28.6k|   const uint8_t b1 = get_byte<1>(b);
  346|  28.6k|   const uint8_t b2 = get_byte<2>(b);
  347|  28.6k|   const uint8_t b3 = get_byte<3>(b);
  348|       |
  349|  28.6k|   uint8_t t0 = 0;
  350|  28.6k|   uint8_t t1 = 0;
  351|  28.6k|   uint8_t t2 = 0;
  352|  28.6k|   uint8_t t3 = 0;
  353|  7.35M|   for(size_t i = 0; i != 256; ++i) {
  ------------------
  |  Branch (353:22): [True: 7.32M, False: 28.6k]
  ------------------
  354|  7.32M|      const uint8_t i8 = static_cast<uint8_t>(i);
  355|  7.32M|      const uint8_t s = SM4_SBOX[i];
  356|  7.32M|      t0 |= CT::Mask<uint8_t>::is_equal(i8, b0).if_set_return(s);
  357|  7.32M|      t1 |= CT::Mask<uint8_t>::is_equal(i8, b1).if_set_return(s);
  358|  7.32M|      t2 |= CT::Mask<uint8_t>::is_equal(i8, b2).if_set_return(s);
  359|  7.32M|      t3 |= CT::Mask<uint8_t>::is_equal(i8, b3).if_set_return(s);
  360|  7.32M|   }
  361|       |
  362|  28.6k|   const uint32_t t = make_uint32(t0, t1, t2, t3);
  363|       |   // L' linear transform
  364|  28.6k|   return t ^ rotl<13>(t) ^ rotl<23>(t);
  365|  28.6k|}
_ZN5Botan3SM412key_scheduleENSt3__14spanIKhLm18446744073709551615EEE:
  367|    894|void SM4::key_schedule(std::span<const uint8_t> key) {
  368|       |   // System parameter or family key
  369|    894|   const uint32_t FK[4] = {0xa3b1bac6, 0x56aa3350, 0x677d9197, 0xb27022dc};
  370|       |
  371|    894|   const uint32_t CK[32] = {0x00070E15, 0x1C232A31, 0x383F464D, 0x545B6269, 0x70777E85, 0x8C939AA1, 0xA8AFB6BD,
  372|    894|                            0xC4CBD2D9, 0xE0E7EEF5, 0xFC030A11, 0x181F262D, 0x343B4249, 0x50575E65, 0x6C737A81,
  373|    894|                            0x888F969D, 0xA4ABB2B9, 0xC0C7CED5, 0xDCE3EAF1, 0xF8FF060D, 0x141B2229, 0x30373E45,
  374|    894|                            0x4C535A61, 0x686F767D, 0x848B9299, 0xA0A7AEB5, 0xBCC3CAD1, 0xD8DFE6ED, 0xF4FB0209,
  375|    894|                            0x10171E25, 0x2C333A41, 0x484F565D, 0x646B7279};
  376|       |
  377|    894|   uint32_t K0 = load_be<uint32_t>(key.data(), 0) ^ FK[0];
  378|    894|   uint32_t K1 = load_be<uint32_t>(key.data(), 1) ^ FK[1];
  379|    894|   uint32_t K2 = load_be<uint32_t>(key.data(), 2) ^ FK[2];
  380|    894|   uint32_t K3 = load_be<uint32_t>(key.data(), 3) ^ FK[3];
  381|       |
  382|    894|   m_RK.resize(32);
  383|       |
  384|  8.04k|   for(size_t i = 0; i != 32; i += 4) {
  ------------------
  |  Branch (384:22): [True: 7.15k, False: 894]
  ------------------
  385|  7.15k|      K0 ^= SM4_Tp(K1 ^ K2 ^ K3 ^ CK[i + 0]);
  386|  7.15k|      K1 ^= SM4_Tp(K0 ^ K2 ^ K3 ^ CK[i + 1]);
  387|  7.15k|      K2 ^= SM4_Tp(K0 ^ K1 ^ K3 ^ CK[i + 2]);
  388|  7.15k|      K3 ^= SM4_Tp(K0 ^ K1 ^ K2 ^ CK[i + 3]);
  389|  7.15k|      m_RK[i + 0] = K0;
  390|  7.15k|      m_RK[i + 1] = K1;
  391|  7.15k|      m_RK[i + 2] = K2;
  392|  7.15k|      m_RK[i + 3] = K3;
  393|  7.15k|   }
  394|    894|}
_ZN5Botan3SM45clearEv:
  396|      8|void SM4::clear() {
  397|      8|   zap(m_RK);
  398|      8|}
_ZNK5Botan3SM411parallelismEv:
  400|    133|size_t SM4::parallelism() const {
  401|       |#if defined(BOTAN_HAS_SM4_ARMV8)
  402|       |   if(CPUID::has(CPUID::Feature::SM4)) {
  403|       |      return 4;
  404|       |   }
  405|       |#endif
  406|       |
  407|       |#if defined(BOTAN_HAS_SM4_X86)
  408|       |   if(CPUID::has(CPUID::Feature::SM4)) {
  409|       |      return 8;
  410|       |   }
  411|       |#endif
  412|       |
  413|       |#if defined(BOTAN_HAS_SM4_AVX512_GFNI)
  414|       |   if(CPUID::has(CPUID::Feature::AVX512, CPUID::Feature::GFNI)) {
  415|       |      return 16;
  416|       |   }
  417|       |#endif
  418|       |
  419|       |#if defined(BOTAN_HAS_SM4_GFNI)
  420|       |   if(CPUID::has(CPUID::Feature::GFNI)) {
  421|       |      return 8;
  422|       |   }
  423|       |#endif
  424|       |
  425|       |#if defined(BOTAN_HAS_SM4_HWAES)
  426|       |   if(CPUID::has(CPUID::Feature::HW_AES)) {
  427|       |      return 4;
  428|       |   }
  429|       |#endif
  430|       |
  431|    133|   return 1;
  432|    133|}
sm4.cpp:_ZN5Botan12_GLOBAL__N_110SM4_T_slowEj:
   78|  77.6k|inline uint32_t SM4_T_slow(uint32_t b) {
   79|  77.6k|   const uint32_t t = make_uint32(
   80|  77.6k|      SM4_SBOX[get_byte<0>(b)], SM4_SBOX[get_byte<1>(b)], SM4_SBOX[get_byte<2>(b)], SM4_SBOX[get_byte<3>(b)]);
   81|       |
   82|       |   // L linear transform
   83|  77.6k|   return t ^ rotl<2>(t) ^ rotl<10>(t) ^ rotl<18>(t) ^ rotl<24>(t);
   84|  77.6k|}
sm4.cpp:_ZN5Botan12_GLOBAL__N_15SM4_TEj:
   86|   233k|inline uint32_t SM4_T(uint32_t b) {
   87|   233k|   const uint32_t s0 = SM4_SBOX_T[get_byte<0>(b)];
   88|   233k|   const uint32_t s1 = SM4_SBOX_T[get_byte<1>(b)];
   89|   233k|   const uint32_t s2 = SM4_SBOX_T[get_byte<2>(b)];
   90|   233k|   const uint32_t s3 = SM4_SBOX_T[get_byte<3>(b)];
   91|   233k|   return (s0) ^ rotr<8>(s1) ^ rotr<16>(s2) ^ rotr<24>(s3);
   92|   233k|}
sm4.cpp:_ZN5Botan12_GLOBAL__N_15SM4_EILm0EFjjEEEvRjS3_S3_S3_S3_S3_S3_S3_RKNSt3__16vectorIjNS_16secure_allocatorIjEEEERT0_:
  113|  1.04k|                              F& f) {
  114|  1.04k|   B0 ^= f(B1 ^ B2 ^ B3 ^ RK[4 * R + 0]);
  115|  1.04k|   C0 ^= f(C1 ^ C2 ^ C3 ^ RK[4 * R + 0]);
  116|  1.04k|   B1 ^= f(B2 ^ B3 ^ B0 ^ RK[4 * R + 1]);
  117|  1.04k|   C1 ^= f(C2 ^ C3 ^ C0 ^ RK[4 * R + 1]);
  118|  1.04k|   B2 ^= f(B3 ^ B0 ^ B1 ^ RK[4 * R + 2]);
  119|  1.04k|   C2 ^= f(C3 ^ C0 ^ C1 ^ RK[4 * R + 2]);
  120|  1.04k|   B3 ^= f(B0 ^ B1 ^ B2 ^ RK[4 * R + 3]);
  121|  1.04k|   C3 ^= f(C0 ^ C1 ^ C2 ^ RK[4 * R + 3]);
  122|  1.04k|}
sm4.cpp:_ZN5Botan12_GLOBAL__N_15SM4_EILm1EFjjEEEvRjS3_S3_S3_S3_S3_S3_S3_RKNSt3__16vectorIjNS_16secure_allocatorIjEEEERT0_:
  113|  1.04k|                              F& f) {
  114|  1.04k|   B0 ^= f(B1 ^ B2 ^ B3 ^ RK[4 * R + 0]);
  115|  1.04k|   C0 ^= f(C1 ^ C2 ^ C3 ^ RK[4 * R + 0]);
  116|  1.04k|   B1 ^= f(B2 ^ B3 ^ B0 ^ RK[4 * R + 1]);
  117|  1.04k|   C1 ^= f(C2 ^ C3 ^ C0 ^ RK[4 * R + 1]);
  118|  1.04k|   B2 ^= f(B3 ^ B0 ^ B1 ^ RK[4 * R + 2]);
  119|  1.04k|   C2 ^= f(C3 ^ C0 ^ C1 ^ RK[4 * R + 2]);
  120|  1.04k|   B3 ^= f(B0 ^ B1 ^ B2 ^ RK[4 * R + 3]);
  121|  1.04k|   C3 ^= f(C0 ^ C1 ^ C2 ^ RK[4 * R + 3]);
  122|  1.04k|}
sm4.cpp:_ZN5Botan12_GLOBAL__N_15SM4_EILm2EFjjEEEvRjS3_S3_S3_S3_S3_S3_S3_RKNSt3__16vectorIjNS_16secure_allocatorIjEEEERT0_:
  113|  1.04k|                              F& f) {
  114|  1.04k|   B0 ^= f(B1 ^ B2 ^ B3 ^ RK[4 * R + 0]);
  115|  1.04k|   C0 ^= f(C1 ^ C2 ^ C3 ^ RK[4 * R + 0]);
  116|  1.04k|   B1 ^= f(B2 ^ B3 ^ B0 ^ RK[4 * R + 1]);
  117|  1.04k|   C1 ^= f(C2 ^ C3 ^ C0 ^ RK[4 * R + 1]);
  118|  1.04k|   B2 ^= f(B3 ^ B0 ^ B1 ^ RK[4 * R + 2]);
  119|  1.04k|   C2 ^= f(C3 ^ C0 ^ C1 ^ RK[4 * R + 2]);
  120|  1.04k|   B3 ^= f(B0 ^ B1 ^ B2 ^ RK[4 * R + 3]);
  121|  1.04k|   C3 ^= f(C0 ^ C1 ^ C2 ^ RK[4 * R + 3]);
  122|  1.04k|}
sm4.cpp:_ZN5Botan12_GLOBAL__N_15SM4_EILm3EFjjEEEvRjS3_S3_S3_S3_S3_S3_S3_RKNSt3__16vectorIjNS_16secure_allocatorIjEEEERT0_:
  113|  1.04k|                              F& f) {
  114|  1.04k|   B0 ^= f(B1 ^ B2 ^ B3 ^ RK[4 * R + 0]);
  115|  1.04k|   C0 ^= f(C1 ^ C2 ^ C3 ^ RK[4 * R + 0]);
  116|  1.04k|   B1 ^= f(B2 ^ B3 ^ B0 ^ RK[4 * R + 1]);
  117|  1.04k|   C1 ^= f(C2 ^ C3 ^ C0 ^ RK[4 * R + 1]);
  118|  1.04k|   B2 ^= f(B3 ^ B0 ^ B1 ^ RK[4 * R + 2]);
  119|  1.04k|   C2 ^= f(C3 ^ C0 ^ C1 ^ RK[4 * R + 2]);
  120|  1.04k|   B3 ^= f(B0 ^ B1 ^ B2 ^ RK[4 * R + 3]);
  121|  1.04k|   C3 ^= f(C0 ^ C1 ^ C2 ^ RK[4 * R + 3]);
  122|  1.04k|}
sm4.cpp:_ZN5Botan12_GLOBAL__N_15SM4_EILm4EFjjEEEvRjS3_S3_S3_S3_S3_S3_S3_RKNSt3__16vectorIjNS_16secure_allocatorIjEEEERT0_:
  113|  1.04k|                              F& f) {
  114|  1.04k|   B0 ^= f(B1 ^ B2 ^ B3 ^ RK[4 * R + 0]);
  115|  1.04k|   C0 ^= f(C1 ^ C2 ^ C3 ^ RK[4 * R + 0]);
  116|  1.04k|   B1 ^= f(B2 ^ B3 ^ B0 ^ RK[4 * R + 1]);
  117|  1.04k|   C1 ^= f(C2 ^ C3 ^ C0 ^ RK[4 * R + 1]);
  118|  1.04k|   B2 ^= f(B3 ^ B0 ^ B1 ^ RK[4 * R + 2]);
  119|  1.04k|   C2 ^= f(C3 ^ C0 ^ C1 ^ RK[4 * R + 2]);
  120|  1.04k|   B3 ^= f(B0 ^ B1 ^ B2 ^ RK[4 * R + 3]);
  121|  1.04k|   C3 ^= f(C0 ^ C1 ^ C2 ^ RK[4 * R + 3]);
  122|  1.04k|}
sm4.cpp:_ZN5Botan12_GLOBAL__N_15SM4_EILm5EFjjEEEvRjS3_S3_S3_S3_S3_S3_S3_RKNSt3__16vectorIjNS_16secure_allocatorIjEEEERT0_:
  113|  1.04k|                              F& f) {
  114|  1.04k|   B0 ^= f(B1 ^ B2 ^ B3 ^ RK[4 * R + 0]);
  115|  1.04k|   C0 ^= f(C1 ^ C2 ^ C3 ^ RK[4 * R + 0]);
  116|  1.04k|   B1 ^= f(B2 ^ B3 ^ B0 ^ RK[4 * R + 1]);
  117|  1.04k|   C1 ^= f(C2 ^ C3 ^ C0 ^ RK[4 * R + 1]);
  118|  1.04k|   B2 ^= f(B3 ^ B0 ^ B1 ^ RK[4 * R + 2]);
  119|  1.04k|   C2 ^= f(C3 ^ C0 ^ C1 ^ RK[4 * R + 2]);
  120|  1.04k|   B3 ^= f(B0 ^ B1 ^ B2 ^ RK[4 * R + 3]);
  121|  1.04k|   C3 ^= f(C0 ^ C1 ^ C2 ^ RK[4 * R + 3]);
  122|  1.04k|}
sm4.cpp:_ZN5Botan12_GLOBAL__N_15SM4_EILm6EFjjEEEvRjS3_S3_S3_S3_S3_S3_S3_RKNSt3__16vectorIjNS_16secure_allocatorIjEEEERT0_:
  113|  1.04k|                              F& f) {
  114|  1.04k|   B0 ^= f(B1 ^ B2 ^ B3 ^ RK[4 * R + 0]);
  115|  1.04k|   C0 ^= f(C1 ^ C2 ^ C3 ^ RK[4 * R + 0]);
  116|  1.04k|   B1 ^= f(B2 ^ B3 ^ B0 ^ RK[4 * R + 1]);
  117|  1.04k|   C1 ^= f(C2 ^ C3 ^ C0 ^ RK[4 * R + 1]);
  118|  1.04k|   B2 ^= f(B3 ^ B0 ^ B1 ^ RK[4 * R + 2]);
  119|  1.04k|   C2 ^= f(C3 ^ C0 ^ C1 ^ RK[4 * R + 2]);
  120|  1.04k|   B3 ^= f(B0 ^ B1 ^ B2 ^ RK[4 * R + 3]);
  121|  1.04k|   C3 ^= f(C0 ^ C1 ^ C2 ^ RK[4 * R + 3]);
  122|  1.04k|}
sm4.cpp:_ZN5Botan12_GLOBAL__N_15SM4_EILm7EFjjEEEvRjS3_S3_S3_S3_S3_S3_S3_RKNSt3__16vectorIjNS_16secure_allocatorIjEEEERT0_:
  113|  1.04k|                              F& f) {
  114|  1.04k|   B0 ^= f(B1 ^ B2 ^ B3 ^ RK[4 * R + 0]);
  115|  1.04k|   C0 ^= f(C1 ^ C2 ^ C3 ^ RK[4 * R + 0]);
  116|  1.04k|   B1 ^= f(B2 ^ B3 ^ B0 ^ RK[4 * R + 1]);
  117|  1.04k|   C1 ^= f(C2 ^ C3 ^ C0 ^ RK[4 * R + 1]);
  118|  1.04k|   B2 ^= f(B3 ^ B0 ^ B1 ^ RK[4 * R + 2]);
  119|  1.04k|   C2 ^= f(C3 ^ C0 ^ C1 ^ RK[4 * R + 2]);
  120|  1.04k|   B3 ^= f(B0 ^ B1 ^ B2 ^ RK[4 * R + 3]);
  121|  1.04k|   C3 ^= f(C0 ^ C1 ^ C2 ^ RK[4 * R + 3]);
  122|  1.04k|}
sm4.cpp:_ZN5Botan12_GLOBAL__N_15SM4_EILm0EFjjEEEvRjS3_S3_S3_RKNSt3__16vectorIjNS_16secure_allocatorIjEEEERT0_:
   96|  3.54k|   uint32_t& B0, uint32_t& B1, uint32_t& B2, uint32_t& B3, const secure_vector<uint32_t>& RK, F& f) {
   97|  3.54k|   B0 ^= f(B1 ^ B2 ^ B3 ^ RK[4 * R + 0]);
   98|  3.54k|   B1 ^= f(B2 ^ B3 ^ B0 ^ RK[4 * R + 1]);
   99|  3.54k|   B2 ^= f(B3 ^ B0 ^ B1 ^ RK[4 * R + 2]);
  100|  3.54k|   B3 ^= f(B0 ^ B1 ^ B2 ^ RK[4 * R + 3]);
  101|  3.54k|}
sm4.cpp:_ZN5Botan12_GLOBAL__N_15SM4_EILm1EFjjEEEvRjS3_S3_S3_RKNSt3__16vectorIjNS_16secure_allocatorIjEEEERT0_:
   96|  3.54k|   uint32_t& B0, uint32_t& B1, uint32_t& B2, uint32_t& B3, const secure_vector<uint32_t>& RK, F& f) {
   97|  3.54k|   B0 ^= f(B1 ^ B2 ^ B3 ^ RK[4 * R + 0]);
   98|  3.54k|   B1 ^= f(B2 ^ B3 ^ B0 ^ RK[4 * R + 1]);
   99|  3.54k|   B2 ^= f(B3 ^ B0 ^ B1 ^ RK[4 * R + 2]);
  100|  3.54k|   B3 ^= f(B0 ^ B1 ^ B2 ^ RK[4 * R + 3]);
  101|  3.54k|}
sm4.cpp:_ZN5Botan12_GLOBAL__N_15SM4_EILm2EFjjEEEvRjS3_S3_S3_RKNSt3__16vectorIjNS_16secure_allocatorIjEEEERT0_:
   96|  3.54k|   uint32_t& B0, uint32_t& B1, uint32_t& B2, uint32_t& B3, const secure_vector<uint32_t>& RK, F& f) {
   97|  3.54k|   B0 ^= f(B1 ^ B2 ^ B3 ^ RK[4 * R + 0]);
   98|  3.54k|   B1 ^= f(B2 ^ B3 ^ B0 ^ RK[4 * R + 1]);
   99|  3.54k|   B2 ^= f(B3 ^ B0 ^ B1 ^ RK[4 * R + 2]);
  100|  3.54k|   B3 ^= f(B0 ^ B1 ^ B2 ^ RK[4 * R + 3]);
  101|  3.54k|}
sm4.cpp:_ZN5Botan12_GLOBAL__N_15SM4_EILm3EFjjEEEvRjS3_S3_S3_RKNSt3__16vectorIjNS_16secure_allocatorIjEEEERT0_:
   96|  3.54k|   uint32_t& B0, uint32_t& B1, uint32_t& B2, uint32_t& B3, const secure_vector<uint32_t>& RK, F& f) {
   97|  3.54k|   B0 ^= f(B1 ^ B2 ^ B3 ^ RK[4 * R + 0]);
   98|  3.54k|   B1 ^= f(B2 ^ B3 ^ B0 ^ RK[4 * R + 1]);
   99|  3.54k|   B2 ^= f(B3 ^ B0 ^ B1 ^ RK[4 * R + 2]);
  100|  3.54k|   B3 ^= f(B0 ^ B1 ^ B2 ^ RK[4 * R + 3]);
  101|  3.54k|}
sm4.cpp:_ZN5Botan12_GLOBAL__N_15SM4_EILm4EFjjEEEvRjS3_S3_S3_RKNSt3__16vectorIjNS_16secure_allocatorIjEEEERT0_:
   96|  3.54k|   uint32_t& B0, uint32_t& B1, uint32_t& B2, uint32_t& B3, const secure_vector<uint32_t>& RK, F& f) {
   97|  3.54k|   B0 ^= f(B1 ^ B2 ^ B3 ^ RK[4 * R + 0]);
   98|  3.54k|   B1 ^= f(B2 ^ B3 ^ B0 ^ RK[4 * R + 1]);
   99|  3.54k|   B2 ^= f(B3 ^ B0 ^ B1 ^ RK[4 * R + 2]);
  100|  3.54k|   B3 ^= f(B0 ^ B1 ^ B2 ^ RK[4 * R + 3]);
  101|  3.54k|}
sm4.cpp:_ZN5Botan12_GLOBAL__N_15SM4_EILm5EFjjEEEvRjS3_S3_S3_RKNSt3__16vectorIjNS_16secure_allocatorIjEEEERT0_:
   96|  3.54k|   uint32_t& B0, uint32_t& B1, uint32_t& B2, uint32_t& B3, const secure_vector<uint32_t>& RK, F& f) {
   97|  3.54k|   B0 ^= f(B1 ^ B2 ^ B3 ^ RK[4 * R + 0]);
   98|  3.54k|   B1 ^= f(B2 ^ B3 ^ B0 ^ RK[4 * R + 1]);
   99|  3.54k|   B2 ^= f(B3 ^ B0 ^ B1 ^ RK[4 * R + 2]);
  100|  3.54k|   B3 ^= f(B0 ^ B1 ^ B2 ^ RK[4 * R + 3]);
  101|  3.54k|}
sm4.cpp:_ZN5Botan12_GLOBAL__N_15SM4_EILm6EFjjEEEvRjS3_S3_S3_RKNSt3__16vectorIjNS_16secure_allocatorIjEEEERT0_:
   96|  3.54k|   uint32_t& B0, uint32_t& B1, uint32_t& B2, uint32_t& B3, const secure_vector<uint32_t>& RK, F& f) {
   97|  3.54k|   B0 ^= f(B1 ^ B2 ^ B3 ^ RK[4 * R + 0]);
   98|  3.54k|   B1 ^= f(B2 ^ B3 ^ B0 ^ RK[4 * R + 1]);
   99|  3.54k|   B2 ^= f(B3 ^ B0 ^ B1 ^ RK[4 * R + 2]);
  100|  3.54k|   B3 ^= f(B0 ^ B1 ^ B2 ^ RK[4 * R + 3]);
  101|  3.54k|}
sm4.cpp:_ZN5Botan12_GLOBAL__N_15SM4_EILm7EFjjEEEvRjS3_S3_S3_RKNSt3__16vectorIjNS_16secure_allocatorIjEEEERT0_:
   96|  3.54k|   uint32_t& B0, uint32_t& B1, uint32_t& B2, uint32_t& B3, const secure_vector<uint32_t>& RK, F& f) {
   97|  3.54k|   B0 ^= f(B1 ^ B2 ^ B3 ^ RK[4 * R + 0]);
   98|  3.54k|   B1 ^= f(B2 ^ B3 ^ B0 ^ RK[4 * R + 1]);
   99|  3.54k|   B2 ^= f(B3 ^ B0 ^ B1 ^ RK[4 * R + 2]);
  100|  3.54k|   B3 ^= f(B0 ^ B1 ^ B2 ^ RK[4 * R + 3]);
  101|  3.54k|}
sm4.cpp:_ZN5Botan12_GLOBAL__N_15SM4_DILm7EFjjEEEvRjS3_S3_S3_S3_S3_S3_S3_RKNSt3__16vectorIjNS_16secure_allocatorIjEEEERT0_:
  143|  2.03k|                              F& f) {
  144|  2.03k|   B0 ^= f(B1 ^ B2 ^ B3 ^ RK[4 * R + 3]);
  145|  2.03k|   C0 ^= f(C1 ^ C2 ^ C3 ^ RK[4 * R + 3]);
  146|  2.03k|   B1 ^= f(B2 ^ B3 ^ B0 ^ RK[4 * R + 2]);
  147|  2.03k|   C1 ^= f(C2 ^ C3 ^ C0 ^ RK[4 * R + 2]);
  148|  2.03k|   B2 ^= f(B3 ^ B0 ^ B1 ^ RK[4 * R + 1]);
  149|  2.03k|   C2 ^= f(C3 ^ C0 ^ C1 ^ RK[4 * R + 1]);
  150|  2.03k|   B3 ^= f(B0 ^ B1 ^ B2 ^ RK[4 * R + 0]);
  151|  2.03k|   C3 ^= f(C0 ^ C1 ^ C2 ^ RK[4 * R + 0]);
  152|  2.03k|}
sm4.cpp:_ZN5Botan12_GLOBAL__N_15SM4_DILm6EFjjEEEvRjS3_S3_S3_S3_S3_S3_S3_RKNSt3__16vectorIjNS_16secure_allocatorIjEEEERT0_:
  143|  2.03k|                              F& f) {
  144|  2.03k|   B0 ^= f(B1 ^ B2 ^ B3 ^ RK[4 * R + 3]);
  145|  2.03k|   C0 ^= f(C1 ^ C2 ^ C3 ^ RK[4 * R + 3]);
  146|  2.03k|   B1 ^= f(B2 ^ B3 ^ B0 ^ RK[4 * R + 2]);
  147|  2.03k|   C1 ^= f(C2 ^ C3 ^ C0 ^ RK[4 * R + 2]);
  148|  2.03k|   B2 ^= f(B3 ^ B0 ^ B1 ^ RK[4 * R + 1]);
  149|  2.03k|   C2 ^= f(C3 ^ C0 ^ C1 ^ RK[4 * R + 1]);
  150|  2.03k|   B3 ^= f(B0 ^ B1 ^ B2 ^ RK[4 * R + 0]);
  151|  2.03k|   C3 ^= f(C0 ^ C1 ^ C2 ^ RK[4 * R + 0]);
  152|  2.03k|}
sm4.cpp:_ZN5Botan12_GLOBAL__N_15SM4_DILm5EFjjEEEvRjS3_S3_S3_S3_S3_S3_S3_RKNSt3__16vectorIjNS_16secure_allocatorIjEEEERT0_:
  143|  2.03k|                              F& f) {
  144|  2.03k|   B0 ^= f(B1 ^ B2 ^ B3 ^ RK[4 * R + 3]);
  145|  2.03k|   C0 ^= f(C1 ^ C2 ^ C3 ^ RK[4 * R + 3]);
  146|  2.03k|   B1 ^= f(B2 ^ B3 ^ B0 ^ RK[4 * R + 2]);
  147|  2.03k|   C1 ^= f(C2 ^ C3 ^ C0 ^ RK[4 * R + 2]);
  148|  2.03k|   B2 ^= f(B3 ^ B0 ^ B1 ^ RK[4 * R + 1]);
  149|  2.03k|   C2 ^= f(C3 ^ C0 ^ C1 ^ RK[4 * R + 1]);
  150|  2.03k|   B3 ^= f(B0 ^ B1 ^ B2 ^ RK[4 * R + 0]);
  151|  2.03k|   C3 ^= f(C0 ^ C1 ^ C2 ^ RK[4 * R + 0]);
  152|  2.03k|}
sm4.cpp:_ZN5Botan12_GLOBAL__N_15SM4_DILm4EFjjEEEvRjS3_S3_S3_S3_S3_S3_S3_RKNSt3__16vectorIjNS_16secure_allocatorIjEEEERT0_:
  143|  2.03k|                              F& f) {
  144|  2.03k|   B0 ^= f(B1 ^ B2 ^ B3 ^ RK[4 * R + 3]);
  145|  2.03k|   C0 ^= f(C1 ^ C2 ^ C3 ^ RK[4 * R + 3]);
  146|  2.03k|   B1 ^= f(B2 ^ B3 ^ B0 ^ RK[4 * R + 2]);
  147|  2.03k|   C1 ^= f(C2 ^ C3 ^ C0 ^ RK[4 * R + 2]);
  148|  2.03k|   B2 ^= f(B3 ^ B0 ^ B1 ^ RK[4 * R + 1]);
  149|  2.03k|   C2 ^= f(C3 ^ C0 ^ C1 ^ RK[4 * R + 1]);
  150|  2.03k|   B3 ^= f(B0 ^ B1 ^ B2 ^ RK[4 * R + 0]);
  151|  2.03k|   C3 ^= f(C0 ^ C1 ^ C2 ^ RK[4 * R + 0]);
  152|  2.03k|}
sm4.cpp:_ZN5Botan12_GLOBAL__N_15SM4_DILm3EFjjEEEvRjS3_S3_S3_S3_S3_S3_S3_RKNSt3__16vectorIjNS_16secure_allocatorIjEEEERT0_:
  143|  2.03k|                              F& f) {
  144|  2.03k|   B0 ^= f(B1 ^ B2 ^ B3 ^ RK[4 * R + 3]);
  145|  2.03k|   C0 ^= f(C1 ^ C2 ^ C3 ^ RK[4 * R + 3]);
  146|  2.03k|   B1 ^= f(B2 ^ B3 ^ B0 ^ RK[4 * R + 2]);
  147|  2.03k|   C1 ^= f(C2 ^ C3 ^ C0 ^ RK[4 * R + 2]);
  148|  2.03k|   B2 ^= f(B3 ^ B0 ^ B1 ^ RK[4 * R + 1]);
  149|  2.03k|   C2 ^= f(C3 ^ C0 ^ C1 ^ RK[4 * R + 1]);
  150|  2.03k|   B3 ^= f(B0 ^ B1 ^ B2 ^ RK[4 * R + 0]);
  151|  2.03k|   C3 ^= f(C0 ^ C1 ^ C2 ^ RK[4 * R + 0]);
  152|  2.03k|}
sm4.cpp:_ZN5Botan12_GLOBAL__N_15SM4_DILm2EFjjEEEvRjS3_S3_S3_S3_S3_S3_S3_RKNSt3__16vectorIjNS_16secure_allocatorIjEEEERT0_:
  143|  2.03k|                              F& f) {
  144|  2.03k|   B0 ^= f(B1 ^ B2 ^ B3 ^ RK[4 * R + 3]);
  145|  2.03k|   C0 ^= f(C1 ^ C2 ^ C3 ^ RK[4 * R + 3]);
  146|  2.03k|   B1 ^= f(B2 ^ B3 ^ B0 ^ RK[4 * R + 2]);
  147|  2.03k|   C1 ^= f(C2 ^ C3 ^ C0 ^ RK[4 * R + 2]);
  148|  2.03k|   B2 ^= f(B3 ^ B0 ^ B1 ^ RK[4 * R + 1]);
  149|  2.03k|   C2 ^= f(C3 ^ C0 ^ C1 ^ RK[4 * R + 1]);
  150|  2.03k|   B3 ^= f(B0 ^ B1 ^ B2 ^ RK[4 * R + 0]);
  151|  2.03k|   C3 ^= f(C0 ^ C1 ^ C2 ^ RK[4 * R + 0]);
  152|  2.03k|}
sm4.cpp:_ZN5Botan12_GLOBAL__N_15SM4_DILm1EFjjEEEvRjS3_S3_S3_S3_S3_S3_S3_RKNSt3__16vectorIjNS_16secure_allocatorIjEEEERT0_:
  143|  2.03k|                              F& f) {
  144|  2.03k|   B0 ^= f(B1 ^ B2 ^ B3 ^ RK[4 * R + 3]);
  145|  2.03k|   C0 ^= f(C1 ^ C2 ^ C3 ^ RK[4 * R + 3]);
  146|  2.03k|   B1 ^= f(B2 ^ B3 ^ B0 ^ RK[4 * R + 2]);
  147|  2.03k|   C1 ^= f(C2 ^ C3 ^ C0 ^ RK[4 * R + 2]);
  148|  2.03k|   B2 ^= f(B3 ^ B0 ^ B1 ^ RK[4 * R + 1]);
  149|  2.03k|   C2 ^= f(C3 ^ C0 ^ C1 ^ RK[4 * R + 1]);
  150|  2.03k|   B3 ^= f(B0 ^ B1 ^ B2 ^ RK[4 * R + 0]);
  151|  2.03k|   C3 ^= f(C0 ^ C1 ^ C2 ^ RK[4 * R + 0]);
  152|  2.03k|}
sm4.cpp:_ZN5Botan12_GLOBAL__N_15SM4_DILm0EFjjEEEvRjS3_S3_S3_S3_S3_S3_S3_RKNSt3__16vectorIjNS_16secure_allocatorIjEEEERT0_:
  143|  2.03k|                              F& f) {
  144|  2.03k|   B0 ^= f(B1 ^ B2 ^ B3 ^ RK[4 * R + 3]);
  145|  2.03k|   C0 ^= f(C1 ^ C2 ^ C3 ^ RK[4 * R + 3]);
  146|  2.03k|   B1 ^= f(B2 ^ B3 ^ B0 ^ RK[4 * R + 2]);
  147|  2.03k|   C1 ^= f(C2 ^ C3 ^ C0 ^ RK[4 * R + 2]);
  148|  2.03k|   B2 ^= f(B3 ^ B0 ^ B1 ^ RK[4 * R + 1]);
  149|  2.03k|   C2 ^= f(C3 ^ C0 ^ C1 ^ RK[4 * R + 1]);
  150|  2.03k|   B3 ^= f(B0 ^ B1 ^ B2 ^ RK[4 * R + 0]);
  151|  2.03k|   C3 ^= f(C0 ^ C1 ^ C2 ^ RK[4 * R + 0]);
  152|  2.03k|}
sm4.cpp:_ZN5Botan12_GLOBAL__N_15SM4_DILm7EFjjEEEvRjS3_S3_S3_RKNSt3__16vectorIjNS_16secure_allocatorIjEEEERT0_:
  126|      9|   uint32_t& B0, uint32_t& B1, uint32_t& B2, uint32_t& B3, const secure_vector<uint32_t>& RK, F& f) {
  127|      9|   B0 ^= f(B1 ^ B2 ^ B3 ^ RK[4 * R + 3]);
  128|      9|   B1 ^= f(B2 ^ B3 ^ B0 ^ RK[4 * R + 2]);
  129|      9|   B2 ^= f(B3 ^ B0 ^ B1 ^ RK[4 * R + 1]);
  130|      9|   B3 ^= f(B0 ^ B1 ^ B2 ^ RK[4 * R + 0]);
  131|      9|}
sm4.cpp:_ZN5Botan12_GLOBAL__N_15SM4_DILm6EFjjEEEvRjS3_S3_S3_RKNSt3__16vectorIjNS_16secure_allocatorIjEEEERT0_:
  126|      9|   uint32_t& B0, uint32_t& B1, uint32_t& B2, uint32_t& B3, const secure_vector<uint32_t>& RK, F& f) {
  127|      9|   B0 ^= f(B1 ^ B2 ^ B3 ^ RK[4 * R + 3]);
  128|      9|   B1 ^= f(B2 ^ B3 ^ B0 ^ RK[4 * R + 2]);
  129|      9|   B2 ^= f(B3 ^ B0 ^ B1 ^ RK[4 * R + 1]);
  130|      9|   B3 ^= f(B0 ^ B1 ^ B2 ^ RK[4 * R + 0]);
  131|      9|}
sm4.cpp:_ZN5Botan12_GLOBAL__N_15SM4_DILm5EFjjEEEvRjS3_S3_S3_RKNSt3__16vectorIjNS_16secure_allocatorIjEEEERT0_:
  126|      9|   uint32_t& B0, uint32_t& B1, uint32_t& B2, uint32_t& B3, const secure_vector<uint32_t>& RK, F& f) {
  127|      9|   B0 ^= f(B1 ^ B2 ^ B3 ^ RK[4 * R + 3]);
  128|      9|   B1 ^= f(B2 ^ B3 ^ B0 ^ RK[4 * R + 2]);
  129|      9|   B2 ^= f(B3 ^ B0 ^ B1 ^ RK[4 * R + 1]);
  130|      9|   B3 ^= f(B0 ^ B1 ^ B2 ^ RK[4 * R + 0]);
  131|      9|}
sm4.cpp:_ZN5Botan12_GLOBAL__N_15SM4_DILm4EFjjEEEvRjS3_S3_S3_RKNSt3__16vectorIjNS_16secure_allocatorIjEEEERT0_:
  126|      9|   uint32_t& B0, uint32_t& B1, uint32_t& B2, uint32_t& B3, const secure_vector<uint32_t>& RK, F& f) {
  127|      9|   B0 ^= f(B1 ^ B2 ^ B3 ^ RK[4 * R + 3]);
  128|      9|   B1 ^= f(B2 ^ B3 ^ B0 ^ RK[4 * R + 2]);
  129|      9|   B2 ^= f(B3 ^ B0 ^ B1 ^ RK[4 * R + 1]);
  130|      9|   B3 ^= f(B0 ^ B1 ^ B2 ^ RK[4 * R + 0]);
  131|      9|}
sm4.cpp:_ZN5Botan12_GLOBAL__N_15SM4_DILm3EFjjEEEvRjS3_S3_S3_RKNSt3__16vectorIjNS_16secure_allocatorIjEEEERT0_:
  126|      9|   uint32_t& B0, uint32_t& B1, uint32_t& B2, uint32_t& B3, const secure_vector<uint32_t>& RK, F& f) {
  127|      9|   B0 ^= f(B1 ^ B2 ^ B3 ^ RK[4 * R + 3]);
  128|      9|   B1 ^= f(B2 ^ B3 ^ B0 ^ RK[4 * R + 2]);
  129|      9|   B2 ^= f(B3 ^ B0 ^ B1 ^ RK[4 * R + 1]);
  130|      9|   B3 ^= f(B0 ^ B1 ^ B2 ^ RK[4 * R + 0]);
  131|      9|}
sm4.cpp:_ZN5Botan12_GLOBAL__N_15SM4_DILm2EFjjEEEvRjS3_S3_S3_RKNSt3__16vectorIjNS_16secure_allocatorIjEEEERT0_:
  126|      9|   uint32_t& B0, uint32_t& B1, uint32_t& B2, uint32_t& B3, const secure_vector<uint32_t>& RK, F& f) {
  127|      9|   B0 ^= f(B1 ^ B2 ^ B3 ^ RK[4 * R + 3]);
  128|      9|   B1 ^= f(B2 ^ B3 ^ B0 ^ RK[4 * R + 2]);
  129|      9|   B2 ^= f(B3 ^ B0 ^ B1 ^ RK[4 * R + 1]);
  130|      9|   B3 ^= f(B0 ^ B1 ^ B2 ^ RK[4 * R + 0]);
  131|      9|}
sm4.cpp:_ZN5Botan12_GLOBAL__N_15SM4_DILm1EFjjEEEvRjS3_S3_S3_RKNSt3__16vectorIjNS_16secure_allocatorIjEEEERT0_:
  126|      9|   uint32_t& B0, uint32_t& B1, uint32_t& B2, uint32_t& B3, const secure_vector<uint32_t>& RK, F& f) {
  127|      9|   B0 ^= f(B1 ^ B2 ^ B3 ^ RK[4 * R + 3]);
  128|      9|   B1 ^= f(B2 ^ B3 ^ B0 ^ RK[4 * R + 2]);
  129|      9|   B2 ^= f(B3 ^ B0 ^ B1 ^ RK[4 * R + 1]);
  130|      9|   B3 ^= f(B0 ^ B1 ^ B2 ^ RK[4 * R + 0]);
  131|      9|}
sm4.cpp:_ZN5Botan12_GLOBAL__N_15SM4_DILm0EFjjEEEvRjS3_S3_S3_RKNSt3__16vectorIjNS_16secure_allocatorIjEEEERT0_:
  126|      9|   uint32_t& B0, uint32_t& B1, uint32_t& B2, uint32_t& B3, const secure_vector<uint32_t>& RK, F& f) {
  127|      9|   B0 ^= f(B1 ^ B2 ^ B3 ^ RK[4 * R + 3]);
  128|      9|   B1 ^= f(B2 ^ B3 ^ B0 ^ RK[4 * R + 2]);
  129|      9|   B2 ^= f(B3 ^ B0 ^ B1 ^ RK[4 * R + 1]);
  130|      9|   B3 ^= f(B0 ^ B1 ^ B2 ^ RK[4 * R + 0]);
  131|      9|}

_ZNK5Botan7Twofish9encrypt_nEPKhPhm:
  173|   182k|void Twofish::encrypt_n(const uint8_t in[], uint8_t out[], size_t blocks) const {
  174|   182k|   assert_key_material_set();
  175|       |
  176|       |#if defined(BOTAN_HAS_TWOFISH_AVX512)
  177|       |   if(!m_QS.empty()) {
  178|       |      while(blocks >= 16) {
  179|       |         avx512_encrypt_16(in, out);
  180|       |         in += 16 * BLOCK_SIZE;
  181|       |         out += 16 * BLOCK_SIZE;
  182|       |         blocks -= 16;
  183|       |      }
  184|       |   }
  185|       |#endif
  186|       |
  187|   262k|   while(blocks >= 2) {
  ------------------
  |  Branch (187:10): [True: 79.5k, False: 182k]
  ------------------
  188|  79.5k|      uint32_t A0 = 0;
  189|  79.5k|      uint32_t B0 = 0;
  190|  79.5k|      uint32_t C0 = 0;
  191|  79.5k|      uint32_t D0 = 0;
  192|  79.5k|      uint32_t A1 = 0;
  193|  79.5k|      uint32_t B1 = 0;
  194|  79.5k|      uint32_t C1 = 0;
  195|  79.5k|      uint32_t D1 = 0;
  196|  79.5k|      load_le(in, A0, B0, C0, D0, A1, B1, C1, D1);
  197|       |
  198|  79.5k|      A0 ^= m_RK[0];
  199|  79.5k|      A1 ^= m_RK[0];
  200|  79.5k|      B0 ^= m_RK[1];
  201|  79.5k|      B1 ^= m_RK[1];
  202|  79.5k|      C0 ^= m_RK[2];
  203|  79.5k|      C1 ^= m_RK[2];
  204|  79.5k|      D0 ^= m_RK[3];
  205|  79.5k|      D1 ^= m_RK[3];
  206|       |
  207|   715k|      for(size_t k = 8; k != 40; k += 4) {
  ------------------
  |  Branch (207:25): [True: 636k, False: 79.5k]
  ------------------
  208|   636k|         TF_E(A0, B0, C0, D0, m_RK[k + 0], m_RK[k + 1], m_SB);
  209|   636k|         TF_E(A1, B1, C1, D1, m_RK[k + 0], m_RK[k + 1], m_SB);
  210|       |
  211|   636k|         TF_E(C0, D0, A0, B0, m_RK[k + 2], m_RK[k + 3], m_SB);
  212|   636k|         TF_E(C1, D1, A1, B1, m_RK[k + 2], m_RK[k + 3], m_SB);
  213|   636k|      }
  214|       |
  215|  79.5k|      C0 ^= m_RK[4];
  216|  79.5k|      C1 ^= m_RK[4];
  217|  79.5k|      D0 ^= m_RK[5];
  218|  79.5k|      D1 ^= m_RK[5];
  219|  79.5k|      A0 ^= m_RK[6];
  220|  79.5k|      A1 ^= m_RK[6];
  221|  79.5k|      B0 ^= m_RK[7];
  222|  79.5k|      B1 ^= m_RK[7];
  223|       |
  224|  79.5k|      store_le(out, C0, D0, A0, B0, C1, D1, A1, B1);
  225|       |
  226|  79.5k|      blocks -= 2;
  227|  79.5k|      out += 2 * BLOCK_SIZE;
  228|  79.5k|      in += 2 * BLOCK_SIZE;
  229|  79.5k|   }
  230|       |
  231|   182k|   if(blocks > 0) {
  ------------------
  |  Branch (231:7): [True: 142k, False: 39.7k]
  ------------------
  232|   142k|      uint32_t A = 0;
  233|   142k|      uint32_t B = 0;
  234|   142k|      uint32_t C = 0;
  235|   142k|      uint32_t D = 0;
  236|   142k|      load_le(in, A, B, C, D);
  237|       |
  238|   142k|      A ^= m_RK[0];
  239|   142k|      B ^= m_RK[1];
  240|   142k|      C ^= m_RK[2];
  241|   142k|      D ^= m_RK[3];
  242|       |
  243|  1.28M|      for(size_t k = 8; k != 40; k += 4) {
  ------------------
  |  Branch (243:25): [True: 1.14M, False: 142k]
  ------------------
  244|  1.14M|         TF_E(A, B, C, D, m_RK[k], m_RK[k + 1], m_SB);
  245|  1.14M|         TF_E(C, D, A, B, m_RK[k + 2], m_RK[k + 3], m_SB);
  246|  1.14M|      }
  247|       |
  248|   142k|      C ^= m_RK[4];
  249|   142k|      D ^= m_RK[5];
  250|   142k|      A ^= m_RK[6];
  251|   142k|      B ^= m_RK[7];
  252|       |
  253|   142k|      store_le(out, C, D, A, B);
  254|   142k|   }
  255|   182k|}
_ZNK5Botan7Twofish9decrypt_nEPKhPhm:
  260|  22.2k|void Twofish::decrypt_n(const uint8_t in[], uint8_t out[], size_t blocks) const {
  261|  22.2k|   assert_key_material_set();
  262|       |
  263|       |#if defined(BOTAN_HAS_TWOFISH_AVX512)
  264|       |   if(!m_QS.empty()) {
  265|       |      while(blocks >= 16) {
  266|       |         avx512_decrypt_16(in, out);
  267|       |         in += 16 * BLOCK_SIZE;
  268|       |         out += 16 * BLOCK_SIZE;
  269|       |         blocks -= 16;
  270|       |      }
  271|       |   }
  272|       |#endif
  273|       |
  274|  66.7k|   while(blocks >= 2) {
  ------------------
  |  Branch (274:10): [True: 44.5k, False: 22.2k]
  ------------------
  275|  44.5k|      uint32_t A0 = 0;
  276|  44.5k|      uint32_t B0 = 0;
  277|  44.5k|      uint32_t C0 = 0;
  278|  44.5k|      uint32_t D0 = 0;
  279|  44.5k|      uint32_t A1 = 0;
  280|  44.5k|      uint32_t B1 = 0;
  281|  44.5k|      uint32_t C1 = 0;
  282|  44.5k|      uint32_t D1 = 0;
  283|  44.5k|      load_le(in, A0, B0, C0, D0, A1, B1, C1, D1);
  284|       |
  285|  44.5k|      A0 ^= m_RK[4];
  286|  44.5k|      A1 ^= m_RK[4];
  287|  44.5k|      B0 ^= m_RK[5];
  288|  44.5k|      B1 ^= m_RK[5];
  289|  44.5k|      C0 ^= m_RK[6];
  290|  44.5k|      C1 ^= m_RK[6];
  291|  44.5k|      D0 ^= m_RK[7];
  292|  44.5k|      D1 ^= m_RK[7];
  293|       |
  294|   400k|      for(size_t k = 40; k != 8; k -= 4) {
  ------------------
  |  Branch (294:26): [True: 356k, False: 44.5k]
  ------------------
  295|   356k|         TF_D(A0, B0, C0, D0, m_RK[k - 2], m_RK[k - 1], m_SB);
  296|   356k|         TF_D(A1, B1, C1, D1, m_RK[k - 2], m_RK[k - 1], m_SB);
  297|       |
  298|   356k|         TF_D(C0, D0, A0, B0, m_RK[k - 4], m_RK[k - 3], m_SB);
  299|   356k|         TF_D(C1, D1, A1, B1, m_RK[k - 4], m_RK[k - 3], m_SB);
  300|   356k|      }
  301|       |
  302|  44.5k|      C0 ^= m_RK[0];
  303|  44.5k|      C1 ^= m_RK[0];
  304|  44.5k|      D0 ^= m_RK[1];
  305|  44.5k|      D1 ^= m_RK[1];
  306|  44.5k|      A0 ^= m_RK[2];
  307|  44.5k|      A1 ^= m_RK[2];
  308|  44.5k|      B0 ^= m_RK[3];
  309|  44.5k|      B1 ^= m_RK[3];
  310|       |
  311|  44.5k|      store_le(out, C0, D0, A0, B0, C1, D1, A1, B1);
  312|       |
  313|  44.5k|      blocks -= 2;
  314|  44.5k|      out += 2 * BLOCK_SIZE;
  315|  44.5k|      in += 2 * BLOCK_SIZE;
  316|  44.5k|   }
  317|       |
  318|  22.2k|   if(blocks > 0) {
  ------------------
  |  Branch (318:7): [True: 14, False: 22.2k]
  ------------------
  319|     14|      uint32_t A = 0;
  320|     14|      uint32_t B = 0;
  321|     14|      uint32_t C = 0;
  322|     14|      uint32_t D = 0;
  323|     14|      load_le(in, A, B, C, D);
  324|       |
  325|     14|      A ^= m_RK[4];
  326|     14|      B ^= m_RK[5];
  327|     14|      C ^= m_RK[6];
  328|     14|      D ^= m_RK[7];
  329|       |
  330|    126|      for(size_t k = 40; k != 8; k -= 4) {
  ------------------
  |  Branch (330:26): [True: 112, False: 14]
  ------------------
  331|    112|         TF_D(A, B, C, D, m_RK[k - 2], m_RK[k - 1], m_SB);
  332|    112|         TF_D(C, D, A, B, m_RK[k - 4], m_RK[k - 3], m_SB);
  333|    112|      }
  334|       |
  335|     14|      C ^= m_RK[0];
  336|     14|      D ^= m_RK[1];
  337|     14|      A ^= m_RK[2];
  338|     14|      B ^= m_RK[3];
  339|       |
  340|     14|      store_le(out, C, D, A, B);
  341|     14|   }
  342|  22.2k|}
_ZNK5Botan7Twofish19has_keying_materialEv:
  344|   292k|bool Twofish::has_keying_material() const {
  345|   292k|   return !m_SB.empty();
  346|   292k|}
_ZNK5Botan7Twofish11parallelismEv:
  357|    347|size_t Twofish::parallelism() const {
  358|       |#if defined(BOTAN_HAS_TWOFISH_AVX512)
  359|       |   if(CPUID::has(CPUID::Feature::AVX512, CPUID::Feature::GFNI)) {
  360|       |      return 16;
  361|       |   }
  362|       |#endif
  363|    347|   return 1;
  364|    347|}
_ZN5Botan7Twofish12key_scheduleENSt3__14spanIKhLm18446744073709551615EEE:
  369|  5.20k|void Twofish::key_schedule(std::span<const uint8_t> key) {
  370|  5.20k|   using namespace Twofish_KS;
  371|       |
  372|       |   // Reed-Solomon matrix for key schedule (Twofish paper Section 4.3)
  373|       |   // in column-major form
  374|       |
  375|       |   // clang-format off
  376|  5.20k|   constexpr uint32_t RS32[8] = {
  377|  5.20k|      0x01A402A4,
  378|  5.20k|      0xA456A155,
  379|  5.20k|      0x5582FC87,
  380|  5.20k|      0x87F3C15A,
  381|  5.20k|      0x5A1E4758,
  382|  5.20k|      0x58C6AEDB,
  383|  5.20k|      0xDB683D9E,
  384|  5.20k|      0x9EE51903
  385|  5.20k|   };
  386|       |   // clang-format on
  387|       |
  388|  5.20k|   m_RK.resize(40);
  389|       |
  390|  5.20k|   secure_vector<uint8_t> S(16);
  391|       |
  392|   171k|   for(size_t i = 0; i != key.size(); ++i) {
  ------------------
  |  Branch (392:22): [True: 166k, False: 5.20k]
  ------------------
  393|   166k|      const uint8_t ki = key[i];
  394|   166k|      const size_t s_off = 4 * (i / 8);
  395|       |
  396|   166k|      const uint32_t p = gf_mul_rs32(RS32[i % 8], ki);
  397|       |
  398|   166k|      S[s_off + 0] ^= get_byte<0>(p);
  399|   166k|      S[s_off + 1] ^= get_byte<1>(p);
  400|   166k|      S[s_off + 2] ^= get_byte<2>(p);
  401|   166k|      S[s_off + 3] ^= get_byte<3>(p);
  402|   166k|   }
  403|       |
  404|  5.20k|   secure_vector<uint8_t> QS(1024);
  405|       |
  406|  5.20k|   if(key.size() == 16) {
  ------------------
  |  Branch (406:7): [True: 0, False: 5.20k]
  ------------------
  407|      0|      for(size_t i = 0; i != 256; ++i) {
  ------------------
  |  Branch (407:25): [True: 0, False: 0]
  ------------------
  408|      0|         QS[i] = Q1[Q0[Q0[i] ^ S[0]] ^ S[4]];
  409|      0|         QS[256 + i] = Q0[Q0[Q1[i] ^ S[1]] ^ S[5]];
  410|      0|         QS[512 + i] = Q1[Q1[Q0[i] ^ S[2]] ^ S[6]];
  411|      0|         QS[768 + i] = Q0[Q1[Q1[i] ^ S[3]] ^ S[7]];
  412|      0|      }
  413|       |
  414|      0|      for(size_t i = 0; i < 40; i += 2) {
  ------------------
  |  Branch (414:25): [True: 0, False: 0]
  ------------------
  415|      0|         uint32_t X = mds0(Q1[Q0[Q0[i] ^ key[8]] ^ key[0]]) ^ mds1(Q0[Q0[Q1[i] ^ key[9]] ^ key[1]]) ^
  416|      0|                      mds2(Q1[Q1[Q0[i] ^ key[10]] ^ key[2]]) ^ mds3(Q0[Q1[Q1[i] ^ key[11]] ^ key[3]]);
  417|      0|         uint32_t Y = mds0(Q1[Q0[Q0[i + 1] ^ key[12]] ^ key[4]]) ^ mds1(Q0[Q0[Q1[i + 1] ^ key[13]] ^ key[5]]) ^
  418|      0|                      mds2(Q1[Q1[Q0[i + 1] ^ key[14]] ^ key[6]]) ^ mds3(Q0[Q1[Q1[i + 1] ^ key[15]] ^ key[7]]);
  419|      0|         Y = rotl<8>(Y);
  420|      0|         X += Y;
  421|      0|         Y += X;
  422|       |
  423|      0|         m_RK[i] = X;
  424|      0|         m_RK[i + 1] = rotl<9>(Y);
  425|      0|      }
  426|  5.20k|   } else if(key.size() == 24) {
  ------------------
  |  Branch (426:14): [True: 0, False: 5.20k]
  ------------------
  427|      0|      for(size_t i = 0; i != 256; ++i) {
  ------------------
  |  Branch (427:25): [True: 0, False: 0]
  ------------------
  428|      0|         QS[i] = Q1[Q0[Q0[Q1[i] ^ S[0]] ^ S[4]] ^ S[8]];
  429|      0|         QS[256 + i] = Q0[Q0[Q1[Q1[i] ^ S[1]] ^ S[5]] ^ S[9]];
  430|      0|         QS[512 + i] = Q1[Q1[Q0[Q0[i] ^ S[2]] ^ S[6]] ^ S[10]];
  431|      0|         QS[768 + i] = Q0[Q1[Q1[Q0[i] ^ S[3]] ^ S[7]] ^ S[11]];
  432|      0|      }
  433|       |
  434|      0|      for(size_t i = 0; i < 40; i += 2) {
  ------------------
  |  Branch (434:25): [True: 0, False: 0]
  ------------------
  435|      0|         uint32_t X =
  436|      0|            mds0(Q1[Q0[Q0[Q1[i] ^ key[16]] ^ key[8]] ^ key[0]]) ^ mds1(Q0[Q0[Q1[Q1[i] ^ key[17]] ^ key[9]] ^ key[1]]) ^
  437|      0|            mds2(Q1[Q1[Q0[Q0[i] ^ key[18]] ^ key[10]] ^ key[2]]) ^ mds3(Q0[Q1[Q1[Q0[i] ^ key[19]] ^ key[11]] ^ key[3]]);
  438|      0|         uint32_t Y = mds0(Q1[Q0[Q0[Q1[i + 1] ^ key[20]] ^ key[12]] ^ key[4]]) ^
  439|      0|                      mds1(Q0[Q0[Q1[Q1[i + 1] ^ key[21]] ^ key[13]] ^ key[5]]) ^
  440|      0|                      mds2(Q1[Q1[Q0[Q0[i + 1] ^ key[22]] ^ key[14]] ^ key[6]]) ^
  441|      0|                      mds3(Q0[Q1[Q1[Q0[i + 1] ^ key[23]] ^ key[15]] ^ key[7]]);
  442|      0|         Y = rotl<8>(Y);
  443|      0|         X += Y;
  444|      0|         Y += X;
  445|       |
  446|      0|         m_RK[i] = X;
  447|      0|         m_RK[i + 1] = rotl<9>(Y);
  448|      0|      }
  449|  5.20k|   } else if(key.size() == 32) {
  ------------------
  |  Branch (449:14): [True: 5.20k, False: 0]
  ------------------
  450|  1.33M|      for(size_t i = 0; i != 256; ++i) {
  ------------------
  |  Branch (450:25): [True: 1.33M, False: 5.20k]
  ------------------
  451|  1.33M|         QS[i] = Q1[Q0[Q0[Q1[Q1[i] ^ S[0]] ^ S[4]] ^ S[8]] ^ S[12]];
  452|  1.33M|         QS[256 + i] = Q0[Q0[Q1[Q1[Q0[i] ^ S[1]] ^ S[5]] ^ S[9]] ^ S[13]];
  453|  1.33M|         QS[512 + i] = Q1[Q1[Q0[Q0[Q0[i] ^ S[2]] ^ S[6]] ^ S[10]] ^ S[14]];
  454|  1.33M|         QS[768 + i] = Q0[Q1[Q1[Q0[Q1[i] ^ S[3]] ^ S[7]] ^ S[11]] ^ S[15]];
  455|  1.33M|      }
  456|       |
  457|   109k|      for(size_t i = 0; i < 40; i += 2) {
  ------------------
  |  Branch (457:25): [True: 104k, False: 5.20k]
  ------------------
  458|   104k|         uint32_t X = mds0(Q1[Q0[Q0[Q1[Q1[i] ^ key[24]] ^ key[16]] ^ key[8]] ^ key[0]]) ^
  459|   104k|                      mds1(Q0[Q0[Q1[Q1[Q0[i] ^ key[25]] ^ key[17]] ^ key[9]] ^ key[1]]) ^
  460|   104k|                      mds2(Q1[Q1[Q0[Q0[Q0[i] ^ key[26]] ^ key[18]] ^ key[10]] ^ key[2]]) ^
  461|   104k|                      mds3(Q0[Q1[Q1[Q0[Q1[i] ^ key[27]] ^ key[19]] ^ key[11]] ^ key[3]]);
  462|   104k|         uint32_t Y = mds0(Q1[Q0[Q0[Q1[Q1[i + 1] ^ key[28]] ^ key[20]] ^ key[12]] ^ key[4]]) ^
  463|   104k|                      mds1(Q0[Q0[Q1[Q1[Q0[i + 1] ^ key[29]] ^ key[21]] ^ key[13]] ^ key[5]]) ^
  464|   104k|                      mds2(Q1[Q1[Q0[Q0[Q0[i + 1] ^ key[30]] ^ key[22]] ^ key[14]] ^ key[6]]) ^
  465|   104k|                      mds3(Q0[Q1[Q1[Q0[Q1[i + 1] ^ key[31]] ^ key[23]] ^ key[15]] ^ key[7]]);
  466|   104k|         Y = rotl<8>(Y);
  467|   104k|         X += Y;
  468|   104k|         Y += X;
  469|       |
  470|   104k|         m_RK[i] = X;
  471|   104k|         m_RK[i + 1] = rotl<9>(Y);
  472|   104k|      }
  473|  5.20k|   }
  474|       |
  475|  5.20k|   m_SB.resize(1024);
  476|  1.33M|   for(size_t i = 0; i != 256; ++i) {
  ------------------
  |  Branch (476:22): [True: 1.33M, False: 5.20k]
  ------------------
  477|  1.33M|      m_SB[i] = mds0(QS[i]);
  478|  1.33M|      m_SB[256 + i] = mds1(QS[256 + i]);
  479|  1.33M|      m_SB[512 + i] = mds2(QS[512 + i]);
  480|  1.33M|      m_SB[768 + i] = mds3(QS[768 + i]);
  481|  1.33M|   }
  482|       |
  483|       |#if defined(BOTAN_HAS_TWOFISH_AVX512)
  484|       |   if(CPUID::has(CPUID::Feature::AVX512, CPUID::Feature::GFNI)) {
  485|       |      m_QS = std::move(QS);
  486|       |   }
  487|       |#endif
  488|  5.20k|}
_ZN5Botan7Twofish5clearEv:
  493|     44|void Twofish::clear() {
  494|     44|   zap(m_SB);
  495|     44|   zap(m_RK);
  496|     44|   zap(m_QS);
  497|     44|}
twofish.cpp:_ZN5Botan12_GLOBAL__N_14TF_EEjjRjS1_jjRKNSt3__16vectorIjNS_16secure_allocatorIjEEEE:
  139|  4.82M|   uint32_t A, uint32_t B, uint32_t& C, uint32_t& D, uint32_t RK1, uint32_t RK2, const secure_vector<uint32_t>& SB) {
  140|  4.82M|   uint32_t X = SB[get_byte<3>(A)] ^ SB[256 + get_byte<2>(A)] ^ SB[512 + get_byte<1>(A)] ^ SB[768 + get_byte<0>(A)];
  141|  4.82M|   uint32_t Y = SB[get_byte<0>(B)] ^ SB[256 + get_byte<3>(B)] ^ SB[512 + get_byte<2>(B)] ^ SB[768 + get_byte<1>(B)];
  142|       |
  143|  4.82M|   X += Y;
  144|  4.82M|   Y += X;
  145|       |
  146|  4.82M|   X += RK1;
  147|  4.82M|   Y += RK2;
  148|       |
  149|  4.82M|   C = rotr<1>(C ^ X);
  150|  4.82M|   D = rotl<1>(D) ^ Y;
  151|  4.82M|}
twofish.cpp:_ZN5Botan12_GLOBAL__N_14TF_DEjjRjS1_jjRKNSt3__16vectorIjNS_16secure_allocatorIjEEEE:
  154|  1.42M|   uint32_t A, uint32_t B, uint32_t& C, uint32_t& D, uint32_t RK1, uint32_t RK2, const secure_vector<uint32_t>& SB) {
  155|  1.42M|   uint32_t X = SB[get_byte<3>(A)] ^ SB[256 + get_byte<2>(A)] ^ SB[512 + get_byte<1>(A)] ^ SB[768 + get_byte<0>(A)];
  156|  1.42M|   uint32_t Y = SB[get_byte<0>(B)] ^ SB[256 + get_byte<3>(B)] ^ SB[512 + get_byte<2>(B)] ^ SB[768 + get_byte<1>(B)];
  157|       |
  158|  1.42M|   X += Y;
  159|  1.42M|   Y += X;
  160|       |
  161|  1.42M|   X += RK1;
  162|  1.42M|   Y += RK2;
  163|       |
  164|  1.42M|   C = rotl<1>(C) ^ X;
  165|  1.42M|   D = rotr<1>(D ^ Y);
  166|  1.42M|}
twofish.cpp:_ZN5Botan12_GLOBAL__N_110Twofish_KS11gf_mul_rs32Ejh:
  121|   166k|inline uint32_t gf_mul_rs32(uint32_t rs, uint8_t k) {
  122|   166k|   constexpr uint32_t lo_bit = 0x01010101;
  123|   166k|   constexpr uint32_t mask = 0x7F7F7F7F;
  124|   166k|   constexpr uint32_t poly = 0x4D;
  125|       |
  126|   166k|   uint32_t r = 0;
  127|  1.50M|   for(size_t i = 0; i != 8; ++i) {
  ------------------
  |  Branch (127:22): [True: 1.33M, False: 166k]
  ------------------
  128|  1.33M|      const auto k_lo = CT::Mask<uint32_t>::expand(k & 1);
  129|  1.33M|      r ^= k_lo.if_set_return(rs);
  130|  1.33M|      rs = ((rs & mask) << 1) ^ (((rs >> 7) & lo_bit) * poly);
  131|  1.33M|      k >>= 1;
  132|  1.33M|   }
  133|   166k|   return r;
  134|   166k|}
twofish.cpp:_ZN5Botan12_GLOBAL__N_110Twofish_KS4mds0Eh:
   92|  1.54M|inline uint32_t mds0(uint8_t q) {
   93|  1.54M|   const uint8_t q_div_x = mds_div_x(q);
   94|  1.54M|   const uint8_t q5b = q ^ mds_div_x(q_div_x);
   95|  1.54M|   const uint8_t qef = q5b ^ q_div_x;
   96|  1.54M|   return make_uint32(qef, qef, q5b, q);
   97|  1.54M|}
twofish.cpp:_ZN5Botan12_GLOBAL__N_110Twofish_KS9mds_div_xEh:
   88|  12.3M|inline uint8_t mds_div_x(uint8_t q) {
   89|  12.3M|   return (q >> 1) ^ (CT::value_barrier<uint8_t>(q & 1) * 0xB4);
   90|  12.3M|}
twofish.cpp:_ZN5Botan12_GLOBAL__N_110Twofish_KS4mds1Eh:
   99|  1.54M|inline uint32_t mds1(uint8_t q) {
  100|  1.54M|   const uint8_t q_div_x = mds_div_x(q);
  101|  1.54M|   const uint8_t q5b = q ^ mds_div_x(q_div_x);
  102|  1.54M|   const uint8_t qef = q5b ^ q_div_x;
  103|  1.54M|   return make_uint32(q, q5b, qef, qef);
  104|  1.54M|}
twofish.cpp:_ZN5Botan12_GLOBAL__N_110Twofish_KS4mds2Eh:
  106|  1.54M|inline uint32_t mds2(uint8_t q) {
  107|  1.54M|   const uint8_t q_div_x = mds_div_x(q);
  108|  1.54M|   const uint8_t q5b = q ^ mds_div_x(q_div_x);
  109|  1.54M|   const uint8_t qef = q5b ^ q_div_x;
  110|  1.54M|   return make_uint32(qef, q, qef, q5b);
  111|  1.54M|}
twofish.cpp:_ZN5Botan12_GLOBAL__N_110Twofish_KS4mds3Eh:
  113|  1.54M|inline uint32_t mds3(uint8_t q) {
  114|  1.54M|   const uint8_t q_div_x = mds_div_x(q);
  115|  1.54M|   const uint8_t q5b = q ^ mds_div_x(q_div_x);
  116|  1.54M|   const uint8_t qef = q5b ^ q_div_x;
  117|  1.54M|   return make_uint32(q5b, qef, q, q5b);
  118|  1.54M|}

_ZN5Botan10hex_encodeEPcPKhmb:
   34|  31.7k|void hex_encode(char output[], const uint8_t input[], size_t input_length, bool uppercase) {
   35|   620k|   for(size_t i = 0; i != input_length; ++i) {
  ------------------
  |  Branch (35:22): [True: 588k, False: 31.7k]
  ------------------
   36|   588k|      const uint16_t h = hex_encode_2nibble(input[i], uppercase);
   37|   588k|      output[2 * i] = get_byte<0>(h);
   38|   588k|      output[2 * i + 1] = get_byte<1>(h);
   39|   588k|   }
   40|  31.7k|}
_ZN5Botan10hex_decodeEPhPKcmRmb:
   75|   252k|size_t hex_decode(uint8_t output[], const char input[], size_t input_length, size_t& input_consumed, bool ignore_ws) {
   76|   252k|   uint8_t* out_ptr = output;
   77|   252k|   bool top_nibble = true;
   78|   252k|   uint8_t next = 0;
   79|       |
   80|   252k|   input_consumed = 0;
   81|       |
   82|   252k|   clear_mem(output, input_length / 2);
   83|       |
   84|  15.2M|   for(size_t i = 0; i != input_length; ++i) {
  ------------------
  |  Branch (84:22): [True: 15.0M, False: 252k]
  ------------------
   85|  15.0M|      const uint8_t bin = hex_char_to_bin(input[i]);
   86|       |
   87|  15.0M|      if(bin >= 0x10) {
  ------------------
  |  Branch (87:10): [True: 0, False: 15.0M]
  ------------------
   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|  15.0M|      if(top_nibble) {
  ------------------
  |  Branch (95:10): [True: 7.52M, False: 7.52M]
  ------------------
   96|  7.52M|         next = bin << 4;
   97|  7.52M|      } else {
   98|  7.52M|         next |= bin;
   99|  7.52M|         *out_ptr = next;
  100|  7.52M|      }
  101|       |
  102|  15.0M|      top_nibble = !top_nibble;
  103|  15.0M|      if(top_nibble) {
  ------------------
  |  Branch (103:10): [True: 7.52M, False: 7.52M]
  ------------------
  104|  7.52M|         ++out_ptr;
  105|  7.52M|         input_consumed = i + 1;
  106|  7.52M|      }
  107|  15.0M|   }
  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|   252k|   while(input_consumed < input_length && hex_char_to_bin(input[input_consumed]) == 0x80) {
  ------------------
  |  Branch (113:10): [True: 0, False: 252k]
  |  Branch (113:43): [True: 0, False: 0]
  ------------------
  114|      0|      ++input_consumed;
  115|      0|   }
  116|       |
  117|   252k|   return (out_ptr - output);
  118|   252k|}
_ZN5Botan10hex_decodeEPhPKcmb:
  120|   252k|size_t hex_decode(uint8_t output[], const char input[], size_t input_length, bool ignore_ws) {
  121|   252k|   size_t consumed = 0;
  122|   252k|   const size_t written = hex_decode(output, input, input_length, consumed, ignore_ws);
  123|       |
  124|   252k|   if(consumed != input_length) {
  ------------------
  |  Branch (124:7): [True: 0, False: 252k]
  ------------------
  125|      0|      throw Invalid_Argument("hex_decode: input did not have full bytes");
  126|      0|   }
  127|       |
  128|   252k|   return written;
  129|   252k|}
_ZN5Botan17hex_decode_lockedEPKcmb:
  142|     18|secure_vector<uint8_t> hex_decode_locked(const char input[], size_t input_length, bool ignore_ws) {
  143|     18|   secure_vector<uint8_t> bin(1 + input_length / 2);
  144|       |
  145|     18|   const size_t written = hex_decode(bin.data(), input, input_length, ignore_ws);
  146|       |
  147|     18|   bin.resize(written);
  148|     18|   return bin;
  149|     18|}
_ZN5Botan17hex_decode_lockedENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEEb:
  151|     16|secure_vector<uint8_t> hex_decode_locked(std::string_view input, bool ignore_ws) {
  152|     16|   return hex_decode_locked(input.data(), input.size(), ignore_ws);
  153|     16|}
_ZN5Botan10hex_decodeEPKcmb:
  155|   252k|std::vector<uint8_t> hex_decode(const char input[], size_t input_length, bool ignore_ws) {
  156|   252k|   std::vector<uint8_t> bin(1 + input_length / 2);
  157|       |
  158|   252k|   const size_t written = hex_decode(bin.data(), input, input_length, ignore_ws);
  159|       |
  160|   252k|   bin.resize(written);
  161|   252k|   return bin;
  162|   252k|}
hex.cpp:_ZN5Botan12_GLOBAL__N_118hex_encode_2nibbleEhb:
   21|   588k|uint16_t hex_encode_2nibble(uint8_t n8, bool uppercase) {
   22|       |   // Offset for upper or lower case 'a' resp
   23|   588k|   const uint16_t a_mask = uppercase ? 0x0707 : 0x2727;
  ------------------
  |  Branch (23:28): [True: 0, False: 588k]
  ------------------
   24|       |
   25|   588k|   const uint16_t n = (static_cast<uint16_t>(n8 & 0xF0) << 4) | (n8 & 0x0F);
   26|       |   // n >= 10? If so add offset
   27|   588k|   const uint16_t diff = swar_lt<uint16_t>(0x0909, n) & a_mask;
   28|       |   // Can't overflow between bytes, so don't need explicit SWAR addition:
   29|   588k|   return n + 0x3030 + diff;
   30|   588k|}
hex.cpp:_ZN5Botan12_GLOBAL__N_115hex_char_to_binEc:
   55|  15.0M|uint8_t hex_char_to_bin(char input) {
   56|       |   // Starts of valid value ranges (v_lo) and their lengths (v_range)
   57|  15.0M|   constexpr uint64_t v_lo = make_uint64(0, '0', 'a', 'A', ' ', '\n', '\t', '\r');
   58|  15.0M|   constexpr uint64_t v_range = make_uint64(0, 10, 6, 6, 1, 1, 1, 1);
   59|  15.0M|   constexpr uint64_t expand8 = 0x0101010101010101;
   60|  15.0M|   constexpr uint64_t top64 = 0x8000000000000000;
   61|       |
   62|  15.0M|   const uint8_t x = static_cast<uint8_t>(input);
   63|  15.0M|   const uint64_t x8 = x * expand8;
   64|       |
   65|  15.0M|   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|  15.0M|   const uint64_t val_v = 0xd0a9c960767773 ^ static_cast<uint64_t>(0xFF - x) << 56;
   69|       |
   70|  15.0M|   return x + static_cast<uint8_t>(val_v >> (8 * index_of_first_set_byte(v_mask)));
   71|  15.0M|}

_ZN9Botan_FFI24ffi_clear_last_exceptionEv:
   85|  15.2M|void ffi_clear_last_exception() {
   86|  15.2M|   g_last_exception_what.clear();
   87|  15.2M|}
_ZN9Botan_FFI26ffi_error_exception_thrownEPKcS1_i:
   89|  2.67k|int ffi_error_exception_thrown(const char* func_name, const char* exn, int rc) {
   90|  2.67k|   g_last_exception_what.assign(exn);
   91|       |
   92|  2.67k|#if defined(BOTAN_HAS_OS_UTILS)
   93|  2.67k|   std::string val;
   94|  2.67k|   if(Botan::OS::read_env_variable(val, "BOTAN_FFI_PRINT_EXCEPTIONS") && !val.empty()) {
  ------------------
  |  Branch (94:7): [True: 0, False: 2.67k]
  |  Branch (94:74): [True: 0, False: 0]
  ------------------
   95|       |      // NOLINTNEXTLINE(*-vararg)
   96|      0|      static_cast<void>(std::fprintf(stderr, "in %s exception '%s' returning %d\n", func_name, exn, rc));
   97|      0|   }
   98|  2.67k|#endif
   99|       |
  100|  2.67k|   return rc;
  101|  2.67k|}
_ZN9Botan_FFI26ffi_error_exception_thrownEPKcS1_N5Botan9ErrorTypeE:
  103|  2.67k|int ffi_error_exception_thrown(const char* func_name, const char* exn, Botan::ErrorType err) {
  104|  2.67k|   return ffi_error_exception_thrown(func_name, exn, ffi_map_error_type(err));
  105|  2.67k|}
botan_ffi_supports_api:
  227|  4.38k|int botan_ffi_supports_api(uint32_t api_version) {
  228|       |   // This is the API introduced in 3.13
  229|  4.38k|   if(api_version == 20260811) {
  ------------------
  |  Branch (229:7): [True: 0, False: 4.38k]
  ------------------
  230|      0|      return BOTAN_FFI_SUCCESS;
  231|      0|   }
  232|       |
  233|       |   // This is the API introduced in 3.12
  234|  4.38k|   if(api_version == 20260506) {
  ------------------
  |  Branch (234:7): [True: 0, False: 4.38k]
  ------------------
  235|      0|      return BOTAN_FFI_SUCCESS;
  236|      0|   }
  237|       |
  238|       |   // This is the API introduced in 3.11
  239|  4.38k|   if(api_version == 20260303) {
  ------------------
  |  Branch (239:7): [True: 0, False: 4.38k]
  ------------------
  240|      0|      return BOTAN_FFI_SUCCESS;
  241|      0|   }
  242|       |
  243|       |   // This is the API introduced in 3.10
  244|  4.38k|   if(api_version == 20250829) {
  ------------------
  |  Branch (244:7): [True: 0, False: 4.38k]
  ------------------
  245|      0|      return BOTAN_FFI_SUCCESS;
  246|      0|   }
  247|       |
  248|       |   // This is the API introduced in 3.8
  249|  4.38k|   if(api_version == 20250506) {
  ------------------
  |  Branch (249:7): [True: 0, False: 4.38k]
  ------------------
  250|      0|      return BOTAN_FFI_SUCCESS;
  251|      0|   }
  252|       |
  253|       |   // This is the API introduced in 3.4
  254|  4.38k|   if(api_version == 20240408) {
  ------------------
  |  Branch (254:7): [True: 0, False: 4.38k]
  ------------------
  255|      0|      return BOTAN_FFI_SUCCESS;
  256|      0|   }
  257|       |
  258|       |   // This is the API introduced in 3.2
  259|  4.38k|   if(api_version == 20231009) {
  ------------------
  |  Branch (259:7): [True: 0, False: 4.38k]
  ------------------
  260|      0|      return BOTAN_FFI_SUCCESS;
  261|      0|   }
  262|       |
  263|       |   // This is the API introduced in 3.1
  264|  4.38k|   if(api_version == 20230711) {
  ------------------
  |  Branch (264:7): [True: 0, False: 4.38k]
  ------------------
  265|      0|      return BOTAN_FFI_SUCCESS;
  266|      0|   }
  267|       |
  268|       |   // This is the API introduced in 3.0
  269|  4.38k|   if(api_version == 20230403) {
  ------------------
  |  Branch (269:7): [True: 0, False: 4.38k]
  ------------------
  270|      0|      return BOTAN_FFI_SUCCESS;
  271|      0|   }
  272|       |
  273|       |   // This is the API introduced in 2.18
  274|  4.38k|   if(api_version == 20210220) {
  ------------------
  |  Branch (274:7): [True: 0, False: 4.38k]
  ------------------
  275|      0|      return BOTAN_FFI_SUCCESS;
  276|      0|   }
  277|       |
  278|       |   // This is the API introduced in 2.13
  279|  4.38k|   if(api_version == 20191214) {
  ------------------
  |  Branch (279:7): [True: 0, False: 4.38k]
  ------------------
  280|      0|      return BOTAN_FFI_SUCCESS;
  281|      0|   }
  282|       |
  283|       |   // This is the API introduced in 2.8
  284|  4.38k|   if(api_version == 20180713) {
  ------------------
  |  Branch (284:7): [True: 4.38k, False: 0]
  ------------------
  285|  4.38k|      return BOTAN_FFI_SUCCESS;
  286|  4.38k|   }
  287|       |
  288|       |   // This is the API introduced in 2.3
  289|      0|   if(api_version == 20170815) {
  ------------------
  |  Branch (289:7): [True: 0, False: 0]
  ------------------
  290|      0|      return BOTAN_FFI_SUCCESS;
  291|      0|   }
  292|       |
  293|       |   // This is the API introduced in 2.1
  294|      0|   if(api_version == 20170327) {
  ------------------
  |  Branch (294:7): [True: 0, False: 0]
  ------------------
  295|      0|      return BOTAN_FFI_SUCCESS;
  296|      0|   }
  297|       |
  298|       |   // This is the API introduced in 2.0
  299|      0|   if(api_version == 20150515) {
  ------------------
  |  Branch (299:7): [True: 0, False: 0]
  ------------------
  300|      0|      return BOTAN_FFI_SUCCESS;
  301|      0|   }
  302|       |
  303|       |   // Something else:
  304|      0|   return -1;
  305|      0|}
botan_scrub_mem:
  340|  5.79M|int botan_scrub_mem(void* mem, size_t bytes) {
  341|  5.79M|   if(bytes > 0 && mem == nullptr) {
  ------------------
  |  Branch (341:7): [True: 3.45M, False: 2.34M]
  |  Branch (341:20): [True: 0, False: 3.45M]
  ------------------
  342|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
  343|      0|   }
  344|  5.79M|   Botan::secure_scrub_memory(mem, bytes);
  345|  5.79M|   return BOTAN_FFI_SUCCESS;
  346|  5.79M|}
botan_hex_encode:
  348|  31.7k|int botan_hex_encode(const uint8_t* in, size_t len, char* out, uint32_t flags) {
  349|  31.7k|   if(len > 0 && (in == nullptr || out == nullptr)) {
  ------------------
  |  Branch (349:7): [True: 31.7k, False: 0]
  |  Branch (349:19): [True: 0, False: 31.7k]
  |  Branch (349:36): [True: 0, False: 31.7k]
  ------------------
  350|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
  351|      0|   }
  352|  31.7k|   return ffi_guard_thunk(__func__, [=]() -> int {
  353|  31.7k|      const bool uppercase = (flags & BOTAN_FFI_HEX_LOWER_CASE) == 0;
  354|  31.7k|      Botan::hex_encode(out, in, len, uppercase);
  355|  31.7k|      return BOTAN_FFI_SUCCESS;
  356|  31.7k|   });
  357|  31.7k|}
botan_hex_decode:
  359|   252k|int botan_hex_decode(const char* hex_str, size_t in_len, uint8_t* out, size_t* out_len) {
  360|   252k|   if(any_null_pointers(hex_str, out_len)) {
  ------------------
  |  Branch (360:7): [True: 0, False: 252k]
  ------------------
  361|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
  362|      0|   }
  363|   252k|   return ffi_guard_thunk(__func__, [=]() -> int {
  364|   252k|      const std::vector<uint8_t> bin = Botan::hex_decode(hex_str, in_len);
  365|   252k|      return Botan_FFI::write_vec_output(out, out_len, bin);
  366|   252k|   });
  367|   252k|}
ffi.cpp:_ZN9Botan_FFI12_GLOBAL__N_118ffi_map_error_typeEN5Botan9ErrorTypeE:
   28|  2.67k|int ffi_map_error_type(Botan::ErrorType err) {
   29|  2.67k|   switch(err) {
  ------------------
  |  Branch (29:11): [True: 2.67k, False: 0]
  ------------------
   30|      0|      case Botan::ErrorType::Unknown:
  ------------------
  |  Branch (30:7): [True: 0, False: 2.67k]
  ------------------
   31|      0|         return BOTAN_FFI_ERROR_UNKNOWN_ERROR;
   32|       |
   33|      0|      case Botan::ErrorType::SystemError:
  ------------------
  |  Branch (33:7): [True: 0, False: 2.67k]
  ------------------
   34|      0|      case Botan::ErrorType::IoError:
  ------------------
  |  Branch (34:7): [True: 0, False: 2.67k]
  ------------------
   35|      0|      case Botan::ErrorType::Pkcs11Error:
  ------------------
  |  Branch (35:7): [True: 0, False: 2.67k]
  ------------------
   36|      0|      case Botan::ErrorType::CommonCryptoError:
  ------------------
  |  Branch (36:7): [True: 0, False: 2.67k]
  ------------------
   37|      0|      case Botan::ErrorType::ZlibError:
  ------------------
  |  Branch (37:7): [True: 0, False: 2.67k]
  ------------------
   38|      0|      case Botan::ErrorType::Bzip2Error:
  ------------------
  |  Branch (38:7): [True: 0, False: 2.67k]
  ------------------
   39|      0|      case Botan::ErrorType::LzmaError:
  ------------------
  |  Branch (39:7): [True: 0, False: 2.67k]
  ------------------
   40|      0|      case Botan::ErrorType::DatabaseError:
  ------------------
  |  Branch (40:7): [True: 0, False: 2.67k]
  ------------------
   41|      0|         return BOTAN_FFI_ERROR_SYSTEM_ERROR;
   42|       |
   43|      0|      case Botan::ErrorType::TPMError:
  ------------------
  |  Branch (43:7): [True: 0, False: 2.67k]
  ------------------
   44|      0|         return BOTAN_FFI_ERROR_TPM_ERROR;
   45|       |
   46|      0|      case Botan::ErrorType::NotImplemented:
  ------------------
  |  Branch (46:7): [True: 0, False: 2.67k]
  ------------------
   47|      0|         return BOTAN_FFI_ERROR_NOT_IMPLEMENTED;
   48|      0|      case Botan::ErrorType::OutOfMemory:
  ------------------
  |  Branch (48:7): [True: 0, False: 2.67k]
  ------------------
   49|      0|         return BOTAN_FFI_ERROR_OUT_OF_MEMORY;
   50|      0|      case Botan::ErrorType::InternalError:
  ------------------
  |  Branch (50:7): [True: 0, False: 2.67k]
  ------------------
   51|      0|         return BOTAN_FFI_ERROR_INTERNAL_ERROR;
   52|      0|      case Botan::ErrorType::InvalidObjectState:
  ------------------
  |  Branch (52:7): [True: 0, False: 2.67k]
  ------------------
   53|      0|         return BOTAN_FFI_ERROR_INVALID_OBJECT_STATE;
   54|      0|      case Botan::ErrorType::KeyNotSet:
  ------------------
  |  Branch (54:7): [True: 0, False: 2.67k]
  ------------------
   55|      0|         return BOTAN_FFI_ERROR_KEY_NOT_SET;
   56|  2.47k|      case Botan::ErrorType::InvalidArgument:
  ------------------
  |  Branch (56:7): [True: 2.47k, False: 200]
  ------------------
   57|  2.47k|      case Botan::ErrorType::InvalidNonceLength:
  ------------------
  |  Branch (57:7): [True: 0, False: 2.67k]
  ------------------
   58|  2.47k|         return BOTAN_FFI_ERROR_BAD_PARAMETER;
   59|       |
   60|      0|      case Botan::ErrorType::EncodingFailure:
  ------------------
  |  Branch (60:7): [True: 0, False: 2.67k]
  ------------------
   61|    200|      case Botan::ErrorType::DecodingFailure:
  ------------------
  |  Branch (61:7): [True: 200, False: 2.47k]
  ------------------
   62|    200|         return BOTAN_FFI_ERROR_INVALID_INPUT;
   63|       |
   64|      0|      case Botan::ErrorType::InvalidTag:
  ------------------
  |  Branch (64:7): [True: 0, False: 2.67k]
  ------------------
   65|      0|         return BOTAN_FFI_ERROR_BAD_MAC;
   66|       |
   67|      0|      case Botan::ErrorType::InvalidKeyLength:
  ------------------
  |  Branch (67:7): [True: 0, False: 2.67k]
  ------------------
   68|      0|         return BOTAN_FFI_ERROR_INVALID_KEY_LENGTH;
   69|      0|      case Botan::ErrorType::LookupError:
  ------------------
  |  Branch (69:7): [True: 0, False: 2.67k]
  ------------------
   70|      0|         return BOTAN_FFI_ERROR_NOT_IMPLEMENTED;
   71|       |
   72|      0|      case Botan::ErrorType::HttpError:
  ------------------
  |  Branch (72:7): [True: 0, False: 2.67k]
  ------------------
   73|      0|         return BOTAN_FFI_ERROR_HTTP_ERROR;
   74|      0|      case Botan::ErrorType::TLSError:
  ------------------
  |  Branch (74:7): [True: 0, False: 2.67k]
  ------------------
   75|      0|         return BOTAN_FFI_ERROR_TLS_ERROR;
   76|      0|      case Botan::ErrorType::RoughtimeError:
  ------------------
  |  Branch (76:7): [True: 0, False: 2.67k]
  ------------------
   77|      0|         return BOTAN_FFI_ERROR_ROUGHTIME_ERROR;
   78|  2.67k|   }
   79|       |
   80|      0|   return BOTAN_FFI_ERROR_UNKNOWN_ERROR;
   81|  2.67k|}
ffi.cpp:_ZZ16botan_hex_encodeENK3$_0clEv:
  352|  31.7k|   return ffi_guard_thunk(__func__, [=]() -> int {
  353|  31.7k|      const bool uppercase = (flags & BOTAN_FFI_HEX_LOWER_CASE) == 0;
  ------------------
  |  |  247|  31.7k|#define BOTAN_FFI_HEX_LOWER_CASE 1
  ------------------
  354|  31.7k|      Botan::hex_encode(out, in, len, uppercase);
  355|  31.7k|      return BOTAN_FFI_SUCCESS;
  356|  31.7k|   });
ffi.cpp:_ZZ16botan_hex_decodeENK3$_0clEv:
  363|   252k|   return ffi_guard_thunk(__func__, [=]() -> int {
  364|   252k|      const std::vector<uint8_t> bin = Botan::hex_decode(hex_str, in_len);
  365|   252k|      return Botan_FFI::write_vec_output(out, out_len, bin);
  366|   252k|   });

botan_block_cipher_init:
   19|  53.7k|int botan_block_cipher_init(botan_block_cipher_t* bc, const char* bc_name) {
   20|  53.7k|   return ffi_guard_thunk(__func__, [=]() -> int {
   21|  53.7k|      if(bc == nullptr || bc_name == nullptr || *bc_name == 0) {
   22|  53.7k|         return BOTAN_FFI_ERROR_NULL_POINTER;
   23|  53.7k|      }
   24|       |
   25|  53.7k|      *bc = nullptr;
   26|       |
   27|  53.7k|      auto cipher = Botan::BlockCipher::create(bc_name);
   28|  53.7k|      if(cipher == nullptr) {
   29|  53.7k|         return BOTAN_FFI_ERROR_NOT_IMPLEMENTED;
   30|  53.7k|      }
   31|       |
   32|  53.7k|      return ffi_new_object(bc, std::move(cipher));
   33|  53.7k|   });
   34|  53.7k|}
botan_block_cipher_destroy:
   39|  53.7k|int botan_block_cipher_destroy(botan_block_cipher_t bc) {
   40|  53.7k|   return BOTAN_FFI_CHECKED_DELETE(bc);
  ------------------
  |  |  188|  53.7k|#define BOTAN_FFI_CHECKED_DELETE(o) ffi_delete_object(o, __func__)
  ------------------
   41|  53.7k|}
botan_block_cipher_set_key:
   50|  53.7k|int botan_block_cipher_set_key(botan_block_cipher_t bc, const uint8_t key[], size_t len) {
   51|  53.7k|   if(key == nullptr) {
  ------------------
  |  Branch (51:7): [True: 0, False: 53.7k]
  ------------------
   52|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
   53|      0|   }
   54|  53.7k|   return BOTAN_FFI_VISIT(bc, [=](auto& b) { b.set_key(key, len); });
  ------------------
  |  |  158|  53.7k|#define BOTAN_FFI_VISIT(obj, lambda) botan_ffi_visit(obj, lambda, __func__)
  ------------------
   55|  53.7k|}
botan_block_cipher_encrypt_blocks:
   76|   763k|int botan_block_cipher_encrypt_blocks(botan_block_cipher_t bc, const uint8_t in[], uint8_t out[], size_t blocks) {
   77|   763k|   if(any_null_pointers(in, out)) {
  ------------------
  |  Branch (77:7): [True: 0, False: 763k]
  ------------------
   78|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
   79|      0|   }
   80|   763k|   return BOTAN_FFI_VISIT(bc, [=](const auto& b) { b.encrypt_n(in, out, blocks); });
  ------------------
  |  |  158|   763k|#define BOTAN_FFI_VISIT(obj, lambda) botan_ffi_visit(obj, lambda, __func__)
  ------------------
   81|   763k|}
ffi_block.cpp:_ZZ23botan_block_cipher_initENK3$_0clEv:
   20|  53.7k|   return ffi_guard_thunk(__func__, [=]() -> int {
   21|  53.7k|      if(bc == nullptr || bc_name == nullptr || *bc_name == 0) {
  ------------------
  |  Branch (21:10): [True: 0, False: 53.7k]
  |  Branch (21:27): [True: 0, False: 53.7k]
  |  Branch (21:49): [True: 0, False: 53.7k]
  ------------------
   22|      0|         return BOTAN_FFI_ERROR_NULL_POINTER;
   23|      0|      }
   24|       |
   25|  53.7k|      *bc = nullptr;
   26|       |
   27|  53.7k|      auto cipher = Botan::BlockCipher::create(bc_name);
   28|  53.7k|      if(cipher == nullptr) {
  ------------------
  |  Branch (28:10): [True: 0, False: 53.7k]
  ------------------
   29|      0|         return BOTAN_FFI_ERROR_NOT_IMPLEMENTED;
   30|      0|      }
   31|       |
   32|  53.7k|      return ffi_new_object(bc, std::move(cipher));
   33|  53.7k|   });

ffi_choose_update_size:
   61|    984|size_t ffi_choose_update_size(Botan::Cipher_Mode& mode) {
   62|    984|   const size_t update_granularity = mode.update_granularity();
   63|    984|   const size_t ideal_update_granularity = mode.ideal_granularity();
   64|    984|   const size_t minimum_final_size = mode.minimum_final_size();
   65|       |
   66|       |   // If the minimum final size is zero, or the update_granularity is
   67|       |   // already greater, just use that.
   68|    984|   if(minimum_final_size == 0 || update_granularity > minimum_final_size) {
  ------------------
  |  Branch (68:7): [True: 0, False: 984]
  |  Branch (68:34): [True: 0, False: 984]
  ------------------
   69|      0|      BOTAN_ASSERT_NOMSG(update_granularity > 0);
  ------------------
  |  |   77|      0|   do {                                                                     \
  |  |   78|      0|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|      0|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|      0|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
   70|      0|      return update_granularity;
   71|      0|   }
   72|       |
   73|       |   // If the ideal granularity is a multiple of the minimum final size, we
   74|       |   // might be able to use that if it stays within the ideal granularity.
   75|    984|   if(ideal_update_granularity % minimum_final_size == 0 && minimum_final_size * 2 <= ideal_update_granularity) {
  ------------------
  |  Branch (75:7): [True: 984, False: 0]
  |  Branch (75:61): [True: 984, False: 0]
  ------------------
   76|    984|      return minimum_final_size * 2;
   77|    984|   }
   78|       |
   79|       |   // Otherwise, try to use the next power of two greater than the minimum
   80|       |   // final size, if the ideal granularity is a multiple of that.
   81|      0|   BOTAN_ASSERT_NOMSG(minimum_final_size <= std::numeric_limits<uint16_t>::max());
  ------------------
  |  |   77|      0|   do {                                                                     \
  |  |   78|      0|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|      0|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|      0|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
   82|      0|   const size_t b1 = size_t(1) << Botan::ceil_log2(static_cast<uint16_t>(minimum_final_size));
   83|      0|   if(ideal_update_granularity % b1 == 0) {
  ------------------
  |  Branch (83:7): [True: 0, False: 0]
  ------------------
   84|      0|      return b1;
   85|      0|   }
   86|       |
   87|       |   // Last resort: Find the next integer greater than the minimum final size
   88|       |   //              for which the ideal granularity is a multiple of.
   89|       |   //              Most sensible cipher modes should never reach this point.
   90|      0|   BOTAN_ASSERT_NOMSG(minimum_final_size < ideal_update_granularity);
  ------------------
  |  |   77|      0|   do {                                                                     \
  |  |   78|      0|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|      0|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|      0|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
   91|      0|   size_t b2 = minimum_final_size + 1;
   92|      0|   for(; b2 < ideal_update_granularity && ideal_update_granularity % b2 != 0; ++b2) {}
  ------------------
  |  Branch (92:10): [True: 0, False: 0]
  |  Branch (92:43): [True: 0, False: 0]
  ------------------
   93|       |
   94|      0|   return b2;
   95|      0|}
botan_cipher_init:
   99|  3.29k|int botan_cipher_init(botan_cipher_t* cipher, const char* cipher_name, uint32_t flags) {
  100|  3.29k|   return ffi_guard_thunk(__func__, [=]() -> int {
  101|  3.29k|      if(any_null_pointers(cipher, cipher_name)) {
  102|  3.29k|         return BOTAN_FFI_ERROR_NULL_POINTER;
  103|  3.29k|      }
  104|  3.29k|      const bool encrypt_p = ((flags & BOTAN_CIPHER_INIT_FLAG_MASK_DIRECTION) == BOTAN_CIPHER_INIT_FLAG_ENCRYPT);
  105|  3.29k|      const Botan::Cipher_Dir dir = encrypt_p ? Botan::Cipher_Dir::Encryption : Botan::Cipher_Dir::Decryption;
  106|       |
  107|  3.29k|      std::unique_ptr<Botan::Cipher_Mode> mode(Botan::Cipher_Mode::create(cipher_name, dir));
  108|  3.29k|      if(!mode) {
  109|  3.29k|         return BOTAN_FFI_ERROR_NOT_IMPLEMENTED;
  110|  3.29k|      }
  111|       |
  112|  3.29k|      const size_t update_size = ffi_choose_update_size(*mode);
  113|  3.29k|      const size_t ideal_update_size = std::max(mode->ideal_granularity(), update_size);
  114|       |
  115|  3.29k|      return ffi_new_object(cipher, std::move(mode), update_size, ideal_update_size);
  116|  3.29k|   });
  117|  3.29k|}
botan_cipher_destroy:
  119|    984|int botan_cipher_destroy(botan_cipher_t cipher) {
  120|    984|   return BOTAN_FFI_CHECKED_DELETE(cipher);
  ------------------
  |  |  188|    984|#define BOTAN_FFI_CHECKED_DELETE(o) ffi_delete_object(o, __func__)
  ------------------
  121|    984|}
botan_cipher_reset:
  130|     34|int botan_cipher_reset(botan_cipher_t cipher) {
  131|     34|   return BOTAN_FFI_VISIT(cipher, [=](auto& c) {
  ------------------
  |  |  158|     34|#define BOTAN_FFI_VISIT(obj, lambda) botan_ffi_visit(obj, lambda, __func__)
  ------------------
  132|     34|      cipher->buf().clear();
  133|     34|      c.reset();
  134|     34|   });
  135|     34|}
botan_cipher_set_key:
  173|    984|int botan_cipher_set_key(botan_cipher_t cipher, const uint8_t* key, size_t key_len) {
  174|    984|   if(key_len > 0 && key == nullptr) {
  ------------------
  |  Branch (174:7): [True: 984, False: 0]
  |  Branch (174:22): [True: 0, False: 984]
  ------------------
  175|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
  176|      0|   }
  177|    984|   return BOTAN_FFI_VISIT(cipher, [=](auto& c) { c.set_key(key, key_len); });
  ------------------
  |  |  158|    984|#define BOTAN_FFI_VISIT(obj, lambda) botan_ffi_visit(obj, lambda, __func__)
  ------------------
  178|    984|}
botan_cipher_start:
  180|  1.01k|int botan_cipher_start(botan_cipher_t cipher_obj, const uint8_t* nonce, size_t nonce_len) {
  181|  1.01k|   if(nonce_len > 0 && nonce == nullptr) {
  ------------------
  |  Branch (181:7): [True: 1.01k, False: 0]
  |  Branch (181:24): [True: 0, False: 1.01k]
  ------------------
  182|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
  183|      0|   }
  184|       |
  185|  1.01k|   return ffi_guard_thunk(__func__, [=]() -> int {
  186|  1.01k|      Botan::Cipher_Mode& cipher = safe_get(cipher_obj);
  187|  1.01k|      cipher.start(nonce, nonce_len);
  188|  1.01k|      return BOTAN_FFI_SUCCESS;
  189|  1.01k|   });
  190|  1.01k|}
botan_cipher_update:
  199|  1.26k|                        size_t* input_consumed) {
  200|  1.26k|   if(any_null_pointers(output_written, input_consumed)) {
  ------------------
  |  Branch (200:7): [True: 0, False: 1.26k]
  ------------------
  201|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
  202|      0|   }
  203|  1.26k|   if(input_size > 0 && input == nullptr) {
  ------------------
  |  Branch (203:7): [True: 1.26k, False: 0]
  |  Branch (203:25): [True: 0, False: 1.26k]
  ------------------
  204|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
  205|      0|   }
  206|  1.26k|   if(output_size > 0 && output == nullptr) {
  ------------------
  |  Branch (206:7): [True: 1.21k, False: 48]
  |  Branch (206:26): [True: 0, False: 1.21k]
  ------------------
  207|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
  208|      0|   }
  209|       |
  210|  1.26k|   return ffi_guard_thunk(__func__, [=]() -> int {
  211|  1.26k|      using namespace Botan;
  212|  1.26k|      Cipher_Mode& cipher = safe_get(cipher_obj);
  213|  1.26k|      secure_vector<uint8_t>& mbuf = cipher_obj->buf();
  214|       |
  215|       |      // If the cipher object's internal buffer contains residual data from
  216|       |      // a previous invocation, we can be sure that botan_cipher_update() was
  217|       |      // called with the final flag set but not enough buffer space was provided
  218|       |      // to accommodate the final output.
  219|  1.26k|      const bool was_finished_before = !mbuf.empty();
  220|  1.26k|      const bool final_input = (flags & BOTAN_CIPHER_UPDATE_FLAG_FINAL) != 0;
  221|       |
  222|       |      // Bring the output variables into a defined state.
  223|  1.26k|      *output_written = 0;
  224|  1.26k|      *input_consumed = 0;
  225|       |
  226|       |      // Once the final flag was set once, it must always be set for
  227|       |      // consecutive invocations.
  228|  1.26k|      if(was_finished_before && !final_input) {
  229|  1.26k|         return BOTAN_FFI_ERROR_INVALID_OBJECT_STATE;
  230|  1.26k|      }
  231|       |
  232|       |      // If the final flag was set in a previous invocation, no more input
  233|       |      // data can be processed.
  234|  1.26k|      if(was_finished_before && input_size > 0) {
  235|  1.26k|         return BOTAN_FFI_ERROR_BAD_PARAMETER;
  236|  1.26k|      }
  237|       |
  238|       |      // Make sure that we always clear the internal buffer before returning
  239|       |      // or aborting this invocation due to an exception.
  240|  1.26k|      auto clean_buffer = scoped_cleanup([&mbuf] { mbuf.clear(); });
  241|       |
  242|  1.26k|      if(final_input) {
  243|       |         // If the final flag is set for the first time, we need to process the
  244|       |         // remaining input data and then finalize the cipher object.
  245|  1.26k|         if(!was_finished_before) {
  246|  1.26k|            *input_consumed = input_size;
  247|  1.26k|            mbuf.resize(input_size);
  248|  1.26k|            copy_mem(mbuf, std::span(input, input_size));
  249|       |
  250|  1.26k|            try {
  251|  1.26k|               cipher.finish(mbuf);
  252|  1.26k|            } catch(Invalid_Authentication_Tag&) {
  253|  1.26k|               return BOTAN_FFI_ERROR_BAD_MAC;
  254|  1.26k|            }
  255|  1.26k|         }
  256|       |
  257|       |         // At this point, the cipher object is finalized (potentially in a
  258|       |         // previous invocation) and we can copy the final output to the caller.
  259|  1.26k|         *output_written = mbuf.size();
  260|       |
  261|       |         // Not enough space to copy the final output out to the caller.
  262|       |         // Inform them how much space we need for a successful operation.
  263|  1.26k|         if(output_size < mbuf.size()) {
  264|       |            // This is the only place where mbuf is not cleared before returning.
  265|  1.26k|            clean_buffer.disengage();
  266|  1.26k|            return BOTAN_FFI_ERROR_INSUFFICIENT_BUFFER_SPACE;
  267|  1.26k|         }
  268|       |
  269|       |         // Copy the final output to the caller, mbuf is cleared afterwards.
  270|  1.26k|         copy_mem(std::span(output, mbuf.size()), mbuf);
  271|  1.26k|      } else {
  272|       |         // Process data in a streamed fashion without finalizing. No data is
  273|       |         // ever retained in the cipher object's internal buffer. If we run out
  274|       |         // of either input data or output capacity, we stop and report that not
  275|       |         // all bytes were processed via *output_written and *input_consumed.
  276|       |
  277|  1.26k|         BufferSlicer in({input, input_size});
  278|  1.26k|         BufferStuffer out({output, output_size});
  279|       |
  280|       |         // Helper function to do blockwise processing of data.
  281|  1.26k|         auto blockwise_update = [&](const size_t granularity) {
  282|  1.26k|            if(granularity == 0) {
  283|  1.26k|               return;
  284|  1.26k|            }
  285|       |
  286|  1.26k|            const size_t expected_output_per_iteration = cipher.requires_entire_message() ? 0 : granularity;
  287|  1.26k|            mbuf.resize(granularity);
  288|       |
  289|  1.26k|            while(in.remaining() >= granularity && out.remaining_capacity() >= expected_output_per_iteration) {
  290|  1.26k|               copy_mem(mbuf, in.take(granularity));
  291|  1.26k|               const auto written_bytes = cipher.process(mbuf);
  292|  1.26k|               BOTAN_DEBUG_ASSERT(written_bytes == expected_output_per_iteration);
  293|  1.26k|               if(written_bytes > 0) {
  294|  1.26k|                  BOTAN_ASSERT_NOMSG(written_bytes <= granularity);
  295|  1.26k|                  copy_mem(out.next(written_bytes), std::span(mbuf).first(written_bytes));
  296|  1.26k|               }
  297|  1.26k|            }
  298|  1.26k|         };
  299|       |
  300|       |         // First, process as much data as possible in chunks of ideal granularity
  301|  1.26k|         blockwise_update(cipher_obj->ideal_update_size());
  302|       |
  303|       |         // Then process the remaining bytes in chunks of update_size() or, in one go
  304|       |         // if update_size() is equal to 1 --> i.e. likely a stream cipher.
  305|  1.26k|         const bool is_stream_cipher = (cipher_obj->update_size() == 1);
  306|  1.26k|         const size_t tail_granularity =
  307|  1.26k|            is_stream_cipher ? std::min(in.remaining(), out.remaining_capacity()) : cipher_obj->update_size();
  308|  1.26k|         BOTAN_DEBUG_ASSERT(tail_granularity < cipher_obj->ideal_update_size());
  309|  1.26k|         blockwise_update(tail_granularity);
  310|       |
  311|       |         // Inform the caller about the amount of data processed.
  312|  1.26k|         *output_written = output_size - out.remaining_capacity();
  313|  1.26k|         *input_consumed = input_size - in.remaining();
  314|  1.26k|      }
  315|       |
  316|  1.26k|      return BOTAN_FFI_SUCCESS;
  317|  1.26k|   });
  318|  1.26k|}
botan_cipher_set_associated_data:
  320|  1.01k|int botan_cipher_set_associated_data(botan_cipher_t cipher, const uint8_t* ad, size_t ad_len) {
  321|  1.01k|   if(ad_len > 0 && ad == nullptr) {
  ------------------
  |  Branch (321:7): [True: 1.01k, False: 0]
  |  Branch (321:21): [True: 0, False: 1.01k]
  ------------------
  322|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
  323|      0|   }
  324|       |
  325|  1.01k|   return BOTAN_FFI_VISIT(cipher, [=](auto& c) {
  ------------------
  |  |  158|  1.01k|#define BOTAN_FFI_VISIT(obj, lambda) botan_ffi_visit(obj, lambda, __func__)
  ------------------
  326|  1.01k|      if(Botan::AEAD_Mode* aead = dynamic_cast<Botan::AEAD_Mode*>(&c)) {
  327|  1.01k|         aead->set_associated_data(ad, ad_len);
  328|  1.01k|         return BOTAN_FFI_SUCCESS;
  329|  1.01k|      }
  330|  1.01k|      return BOTAN_FFI_ERROR_BAD_PARAMETER;
  331|  1.01k|   });
  332|  1.01k|}
botan_cipher_get_update_granularity:
  345|    984|int botan_cipher_get_update_granularity(botan_cipher_t cipher, size_t* ug) {
  346|    984|   if(ug == nullptr) {
  ------------------
  |  Branch (346:7): [True: 0, False: 984]
  ------------------
  347|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
  348|      0|   }
  349|    984|   return BOTAN_FFI_VISIT(cipher, [=](const auto& /*c*/) { *ug = cipher->update_size(); });
  ------------------
  |  |  158|    984|#define BOTAN_FFI_VISIT(obj, lambda) botan_ffi_visit(obj, lambda, __func__)
  ------------------
  350|    984|}
ffi_cipher.cpp:_ZZ17botan_cipher_initENK3$_0clEv:
  100|  3.29k|   return ffi_guard_thunk(__func__, [=]() -> int {
  101|  3.29k|      if(any_null_pointers(cipher, cipher_name)) {
  ------------------
  |  Branch (101:10): [True: 0, False: 3.29k]
  ------------------
  102|      0|         return BOTAN_FFI_ERROR_NULL_POINTER;
  103|      0|      }
  104|  3.29k|      const bool encrypt_p = ((flags & BOTAN_CIPHER_INIT_FLAG_MASK_DIRECTION) == BOTAN_CIPHER_INIT_FLAG_ENCRYPT);
  ------------------
  |  |  676|  3.29k|#define BOTAN_CIPHER_INIT_FLAG_MASK_DIRECTION 1
  ------------------
                    const bool encrypt_p = ((flags & BOTAN_CIPHER_INIT_FLAG_MASK_DIRECTION) == BOTAN_CIPHER_INIT_FLAG_ENCRYPT);
  ------------------
  |  |  677|  3.29k|#define BOTAN_CIPHER_INIT_FLAG_ENCRYPT 0
  ------------------
  105|  3.29k|      const Botan::Cipher_Dir dir = encrypt_p ? Botan::Cipher_Dir::Encryption : Botan::Cipher_Dir::Decryption;
  ------------------
  |  Branch (105:37): [True: 0, False: 3.29k]
  ------------------
  106|       |
  107|  3.29k|      std::unique_ptr<Botan::Cipher_Mode> mode(Botan::Cipher_Mode::create(cipher_name, dir));
  108|  3.29k|      if(!mode) {
  ------------------
  |  Branch (108:10): [True: 0, False: 3.29k]
  ------------------
  109|      0|         return BOTAN_FFI_ERROR_NOT_IMPLEMENTED;
  110|      0|      }
  111|       |
  112|  3.29k|      const size_t update_size = ffi_choose_update_size(*mode);
  113|  3.29k|      const size_t ideal_update_size = std::max(mode->ideal_granularity(), update_size);
  114|       |
  115|  3.29k|      return ffi_new_object(cipher, std::move(mode), update_size, ideal_update_size);
  116|  3.29k|   });
_ZN19botan_cipher_structC2ENSt3__110unique_ptrIN5Botan11Cipher_ModeENS0_14default_deleteIS3_EEEEmm:
   28|    984|            botan_struct(std::move(x)), m_update_size(update_size), m_ideal_update_size(ideal_update_size) {
   29|    984|         BOTAN_DEBUG_ASSERT(ideal_update_size >= update_size);
  ------------------
  |  |  130|    984|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    984|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 984]
  |  |  ------------------
  ------------------
   30|    984|         m_buf.reserve(m_ideal_update_size);
   31|    984|      }
_ZN19botan_cipher_struct3bufEv:
   33|  1.30k|      Botan::secure_vector<uint8_t>& buf() { return m_buf; }
ffi_cipher.cpp:_ZZ18botan_cipher_startENK3$_0clEv:
  185|  1.01k|   return ffi_guard_thunk(__func__, [=]() -> int {
  186|  1.01k|      Botan::Cipher_Mode& cipher = safe_get(cipher_obj);
  187|  1.01k|      cipher.start(nonce, nonce_len);
  188|  1.01k|      return BOTAN_FFI_SUCCESS;
  189|  1.01k|   });
ffi_cipher.cpp:_ZZ19botan_cipher_updateENK3$_0clEv:
  210|  1.26k|   return ffi_guard_thunk(__func__, [=]() -> int {
  211|  1.26k|      using namespace Botan;
  212|  1.26k|      Cipher_Mode& cipher = safe_get(cipher_obj);
  213|  1.26k|      secure_vector<uint8_t>& mbuf = cipher_obj->buf();
  214|       |
  215|       |      // If the cipher object's internal buffer contains residual data from
  216|       |      // a previous invocation, we can be sure that botan_cipher_update() was
  217|       |      // called with the final flag set but not enough buffer space was provided
  218|       |      // to accommodate the final output.
  219|  1.26k|      const bool was_finished_before = !mbuf.empty();
  220|  1.26k|      const bool final_input = (flags & BOTAN_CIPHER_UPDATE_FLAG_FINAL) != 0;
  ------------------
  |  |  771|  1.26k|#define BOTAN_CIPHER_UPDATE_FLAG_FINAL (1U << 0)
  ------------------
  221|       |
  222|       |      // Bring the output variables into a defined state.
  223|  1.26k|      *output_written = 0;
  224|  1.26k|      *input_consumed = 0;
  225|       |
  226|       |      // Once the final flag was set once, it must always be set for
  227|       |      // consecutive invocations.
  228|  1.26k|      if(was_finished_before && !final_input) {
  ------------------
  |  Branch (228:10): [True: 0, False: 1.26k]
  |  Branch (228:33): [True: 0, False: 0]
  ------------------
  229|      0|         return BOTAN_FFI_ERROR_INVALID_OBJECT_STATE;
  230|      0|      }
  231|       |
  232|       |      // If the final flag was set in a previous invocation, no more input
  233|       |      // data can be processed.
  234|  1.26k|      if(was_finished_before && input_size > 0) {
  ------------------
  |  Branch (234:10): [True: 0, False: 1.26k]
  |  Branch (234:33): [True: 0, False: 0]
  ------------------
  235|      0|         return BOTAN_FFI_ERROR_BAD_PARAMETER;
  236|      0|      }
  237|       |
  238|       |      // Make sure that we always clear the internal buffer before returning
  239|       |      // or aborting this invocation due to an exception.
  240|  1.26k|      auto clean_buffer = scoped_cleanup([&mbuf] { mbuf.clear(); });
  241|       |
  242|  1.26k|      if(final_input) {
  ------------------
  |  Branch (242:10): [True: 859, False: 408]
  ------------------
  243|       |         // If the final flag is set for the first time, we need to process the
  244|       |         // remaining input data and then finalize the cipher object.
  245|    859|         if(!was_finished_before) {
  ------------------
  |  Branch (245:13): [True: 859, False: 0]
  ------------------
  246|    859|            *input_consumed = input_size;
  247|    859|            mbuf.resize(input_size);
  248|    859|            copy_mem(mbuf, std::span(input, input_size));
  249|       |
  250|    859|            try {
  251|    859|               cipher.finish(mbuf);
  252|    859|            } catch(Invalid_Authentication_Tag&) {
  253|    859|               return BOTAN_FFI_ERROR_BAD_MAC;
  254|    859|            }
  255|    859|         }
  256|       |
  257|       |         // At this point, the cipher object is finalized (potentially in a
  258|       |         // previous invocation) and we can copy the final output to the caller.
  259|      0|         *output_written = mbuf.size();
  260|       |
  261|       |         // Not enough space to copy the final output out to the caller.
  262|       |         // Inform them how much space we need for a successful operation.
  263|      0|         if(output_size < mbuf.size()) {
  ------------------
  |  Branch (263:13): [True: 0, False: 0]
  ------------------
  264|       |            // This is the only place where mbuf is not cleared before returning.
  265|      0|            clean_buffer.disengage();
  266|      0|            return BOTAN_FFI_ERROR_INSUFFICIENT_BUFFER_SPACE;
  267|      0|         }
  268|       |
  269|       |         // Copy the final output to the caller, mbuf is cleared afterwards.
  270|      0|         copy_mem(std::span(output, mbuf.size()), mbuf);
  271|    408|      } else {
  272|       |         // Process data in a streamed fashion without finalizing. No data is
  273|       |         // ever retained in the cipher object's internal buffer. If we run out
  274|       |         // of either input data or output capacity, we stop and report that not
  275|       |         // all bytes were processed via *output_written and *input_consumed.
  276|       |
  277|    408|         BufferSlicer in({input, input_size});
  278|    408|         BufferStuffer out({output, output_size});
  279|       |
  280|       |         // Helper function to do blockwise processing of data.
  281|    408|         auto blockwise_update = [&](const size_t granularity) {
  282|    408|            if(granularity == 0) {
  283|    408|               return;
  284|    408|            }
  285|       |
  286|    408|            const size_t expected_output_per_iteration = cipher.requires_entire_message() ? 0 : granularity;
  287|    408|            mbuf.resize(granularity);
  288|       |
  289|    408|            while(in.remaining() >= granularity && out.remaining_capacity() >= expected_output_per_iteration) {
  290|    408|               copy_mem(mbuf, in.take(granularity));
  291|    408|               const auto written_bytes = cipher.process(mbuf);
  292|    408|               BOTAN_DEBUG_ASSERT(written_bytes == expected_output_per_iteration);
  293|    408|               if(written_bytes > 0) {
  294|    408|                  BOTAN_ASSERT_NOMSG(written_bytes <= granularity);
  295|    408|                  copy_mem(out.next(written_bytes), std::span(mbuf).first(written_bytes));
  296|    408|               }
  297|    408|            }
  298|    408|         };
  299|       |
  300|       |         // First, process as much data as possible in chunks of ideal granularity
  301|    408|         blockwise_update(cipher_obj->ideal_update_size());
  302|       |
  303|       |         // Then process the remaining bytes in chunks of update_size() or, in one go
  304|       |         // if update_size() is equal to 1 --> i.e. likely a stream cipher.
  305|    408|         const bool is_stream_cipher = (cipher_obj->update_size() == 1);
  306|    408|         const size_t tail_granularity =
  307|    408|            is_stream_cipher ? std::min(in.remaining(), out.remaining_capacity()) : cipher_obj->update_size();
  ------------------
  |  Branch (307:13): [True: 0, False: 408]
  ------------------
  308|    408|         BOTAN_DEBUG_ASSERT(tail_granularity < cipher_obj->ideal_update_size());
  ------------------
  |  |  130|    408|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    408|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 408]
  |  |  ------------------
  ------------------
  309|    408|         blockwise_update(tail_granularity);
  310|       |
  311|       |         // Inform the caller about the amount of data processed.
  312|    408|         *output_written = output_size - out.remaining_capacity();
  313|    408|         *input_consumed = input_size - in.remaining();
  314|    408|      }
  315|       |
  316|    408|      return BOTAN_FFI_SUCCESS;
  317|  1.26k|   });
ffi_cipher.cpp:_ZZZ19botan_cipher_updateENK3$_0clEvENKUlmE_clEm:
  281|    816|         auto blockwise_update = [&](const size_t granularity) {
  282|    816|            if(granularity == 0) {
  ------------------
  |  Branch (282:16): [True: 0, False: 816]
  ------------------
  283|      0|               return;
  284|      0|            }
  285|       |
  286|    816|            const size_t expected_output_per_iteration = cipher.requires_entire_message() ? 0 : granularity;
  ------------------
  |  Branch (286:58): [True: 0, False: 816]
  ------------------
  287|    816|            mbuf.resize(granularity);
  288|       |
  289|   198k|            while(in.remaining() >= granularity && out.remaining_capacity() >= expected_output_per_iteration) {
  ------------------
  |  Branch (289:19): [True: 197k, False: 816]
  |  Branch (289:52): [True: 197k, False: 0]
  ------------------
  290|   197k|               copy_mem(mbuf, in.take(granularity));
  291|   197k|               const auto written_bytes = cipher.process(mbuf);
  292|   197k|               BOTAN_DEBUG_ASSERT(written_bytes == expected_output_per_iteration);
  ------------------
  |  |  130|   197k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|   197k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 197k]
  |  |  ------------------
  ------------------
  293|   197k|               if(written_bytes > 0) {
  ------------------
  |  Branch (293:19): [True: 197k, False: 0]
  ------------------
  294|   197k|                  BOTAN_ASSERT_NOMSG(written_bytes <= granularity);
  ------------------
  |  |   77|   197k|   do {                                                                     \
  |  |   78|   197k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|   197k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 197k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|   197k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 197k]
  |  |  ------------------
  ------------------
  295|   197k|                  copy_mem(out.next(written_bytes), std::span(mbuf).first(written_bytes));
  296|   197k|               }
  297|   197k|            }
  298|    816|         };
_ZNK19botan_cipher_struct17ideal_update_sizeEv:
   37|    408|      size_t ideal_update_size() const { return m_ideal_update_size; }
_ZNK19botan_cipher_struct11update_sizeEv:
   35|  1.80k|      size_t update_size() const { return m_update_size; }
ffi_cipher.cpp:_ZZZ19botan_cipher_updateENK3$_0clEvENKUlvE_clEv:
  240|  1.26k|      auto clean_buffer = scoped_cleanup([&mbuf] { mbuf.clear(); });

botan_hash_init:
   18|  79.3k|int botan_hash_init(botan_hash_t* hash, const char* hash_name, uint32_t flags) {
   19|  79.3k|   return ffi_guard_thunk(__func__, [=]() -> int {
   20|  79.3k|      if(hash == nullptr || hash_name == nullptr || *hash_name == 0) {
   21|  79.3k|         return BOTAN_FFI_ERROR_NULL_POINTER;
   22|  79.3k|      }
   23|  79.3k|      if(flags != 0) {
   24|  79.3k|         return BOTAN_FFI_ERROR_BAD_FLAG;
   25|  79.3k|      }
   26|       |
   27|  79.3k|      auto h = Botan::HashFunction::create(hash_name);
   28|  79.3k|      if(h == nullptr) {
   29|  79.3k|         return BOTAN_FFI_ERROR_NOT_IMPLEMENTED;
   30|  79.3k|      }
   31|       |
   32|  79.3k|      ffi_new_object(hash, std::move(h));
   33|  79.3k|      return BOTAN_FFI_SUCCESS;
   34|  79.3k|   });
   35|  79.3k|}
botan_hash_destroy:
   37|  79.2k|int botan_hash_destroy(botan_hash_t hash) {
   38|  79.2k|   return BOTAN_FFI_CHECKED_DELETE(hash);
  ------------------
  |  |  188|  79.2k|#define BOTAN_FFI_CHECKED_DELETE(o) ffi_delete_object(o, __func__)
  ------------------
   39|  79.2k|}
botan_hash_output_length:
   41|  79.2k|int botan_hash_output_length(botan_hash_t hash, size_t* out) {
   42|  79.2k|   if(out == nullptr) {
  ------------------
  |  Branch (42:7): [True: 0, False: 79.2k]
  ------------------
   43|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
   44|      0|   }
   45|  79.2k|   return BOTAN_FFI_VISIT(hash, [=](const auto& h) { *out = h.output_length(); });
  ------------------
  |  |  158|  79.2k|#define BOTAN_FFI_VISIT(obj, lambda) botan_ffi_visit(obj, lambda, __func__)
  ------------------
   46|  79.2k|}
botan_hash_update:
   66|  13.3M|int botan_hash_update(botan_hash_t hash, const uint8_t* buf, size_t len) {
   67|  13.3M|   if(len == 0) {
  ------------------
  |  Branch (67:7): [True: 11.2k, False: 13.3M]
  ------------------
   68|  11.2k|      return 0;
   69|  11.2k|   }
   70|       |
   71|  13.3M|   if(buf == nullptr) {
  ------------------
  |  Branch (71:7): [True: 0, False: 13.3M]
  ------------------
   72|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
   73|      0|   }
   74|       |
   75|  13.3M|   return BOTAN_FFI_VISIT(hash, [=](auto& h) { h.update(buf, len); });
  ------------------
  |  |  158|  13.3M|#define BOTAN_FFI_VISIT(obj, lambda) botan_ffi_visit(obj, lambda, __func__)
  ------------------
   76|  13.3M|}
botan_hash_final:
   78|  67.5k|int botan_hash_final(botan_hash_t hash, uint8_t out[]) {
   79|  67.5k|   if(out == nullptr) {
  ------------------
  |  Branch (79:7): [True: 0, False: 67.5k]
  ------------------
   80|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
   81|      0|   }
   82|  67.5k|   return BOTAN_FFI_VISIT(hash, [=](auto& h) { h.final(out); });
  ------------------
  |  |  158|  67.5k|#define BOTAN_FFI_VISIT(obj, lambda) botan_ffi_visit(obj, lambda, __func__)
  ------------------
   83|  67.5k|}
ffi_hash.cpp:_ZZ15botan_hash_initENK3$_0clEv:
   19|  79.3k|   return ffi_guard_thunk(__func__, [=]() -> int {
   20|  79.3k|      if(hash == nullptr || hash_name == nullptr || *hash_name == 0) {
  ------------------
  |  Branch (20:10): [True: 0, False: 79.3k]
  |  Branch (20:29): [True: 0, False: 79.3k]
  |  Branch (20:53): [True: 0, False: 79.3k]
  ------------------
   21|      0|         return BOTAN_FFI_ERROR_NULL_POINTER;
   22|      0|      }
   23|  79.3k|      if(flags != 0) {
  ------------------
  |  Branch (23:10): [True: 0, False: 79.3k]
  ------------------
   24|      0|         return BOTAN_FFI_ERROR_BAD_FLAG;
   25|      0|      }
   26|       |
   27|  79.3k|      auto h = Botan::HashFunction::create(hash_name);
   28|  79.3k|      if(h == nullptr) {
  ------------------
  |  Branch (28:10): [True: 99, False: 79.2k]
  ------------------
   29|     99|         return BOTAN_FFI_ERROR_NOT_IMPLEMENTED;
   30|     99|      }
   31|       |
   32|  79.2k|      ffi_new_object(hash, std::move(h));
   33|  79.2k|      return BOTAN_FFI_SUCCESS;
   34|  79.3k|   });

botan_pwdhash:
   63|  65.6k|                  size_t salt_len) {
   64|  65.6k|   if(any_null_pointers(algo, password)) {
  ------------------
  |  Branch (64:7): [True: 0, False: 65.6k]
  ------------------
   65|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
   66|      0|   }
   67|  65.6k|   if(out_len > 0 && out == nullptr) {
  ------------------
  |  Branch (67:7): [True: 65.6k, False: 0]
  |  Branch (67:22): [True: 0, False: 65.6k]
  ------------------
   68|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
   69|      0|   }
   70|  65.6k|   if(salt_len > 0 && salt == nullptr) {
  ------------------
  |  Branch (70:7): [True: 3.01k, False: 62.6k]
  |  Branch (70:23): [True: 0, False: 3.01k]
  ------------------
   71|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
   72|      0|   }
   73|       |
   74|  65.6k|   if(password_len == 0) {
  ------------------
  |  Branch (74:7): [True: 65.0k, False: 585]
  ------------------
   75|  65.0k|      password_len = std::strlen(password);
   76|  65.0k|   }
   77|       |
   78|  65.6k|   return ffi_guard_thunk(__func__, [=]() -> int {
   79|  65.6k|      auto pwdhash_fam = Botan::PasswordHashFamily::create(algo);
   80|       |
   81|  65.6k|      if(!pwdhash_fam) {
   82|  65.6k|         return BOTAN_FFI_ERROR_NOT_IMPLEMENTED;
   83|  65.6k|      }
   84|       |
   85|  65.6k|      auto pwdhash = pwdhash_fam->from_params(param1, param2, param3);
   86|       |
   87|  65.6k|      pwdhash->derive_key(out, out_len, password, password_len, salt, salt_len);
   88|       |
   89|  65.6k|      return BOTAN_FFI_SUCCESS;
   90|  65.6k|   });
   91|  65.6k|}
ffi_kdf.cpp:_ZZ13botan_pwdhashENK3$_0clEv:
   78|  65.6k|   return ffi_guard_thunk(__func__, [=]() -> int {
   79|  65.6k|      auto pwdhash_fam = Botan::PasswordHashFamily::create(algo);
   80|       |
   81|  65.6k|      if(!pwdhash_fam) {
  ------------------
  |  Branch (81:10): [True: 5.60k, False: 60.0k]
  ------------------
   82|  5.60k|         return BOTAN_FFI_ERROR_NOT_IMPLEMENTED;
   83|  5.60k|      }
   84|       |
   85|  60.0k|      auto pwdhash = pwdhash_fam->from_params(param1, param2, param3);
   86|       |
   87|  60.0k|      pwdhash->derive_key(out, out_len, password, password_len, salt, salt_len);
   88|       |
   89|  60.0k|      return BOTAN_FFI_SUCCESS;
   90|  65.6k|   });

botan_mp_init:
   24|  48.1k|int botan_mp_init(botan_mp_t* mp_out) {
   25|  48.1k|   return ffi_guard_thunk(__func__, [=]() -> int {
   26|  48.1k|      if(mp_out == nullptr) {
   27|  48.1k|         return BOTAN_FFI_ERROR_NULL_POINTER;
   28|  48.1k|      }
   29|       |
   30|  48.1k|      auto mp = std::make_unique<Botan::BigInt>();
   31|  48.1k|      return ffi_new_object(mp_out, std::move(mp));
   32|  48.1k|   });
   33|  48.1k|}
botan_mp_from_bin:
   84|  48.1k|int botan_mp_from_bin(botan_mp_t mp, const uint8_t bin[], size_t bin_len) {
   85|  48.1k|   if(bin_len > 0 && bin == nullptr) {
  ------------------
  |  Branch (85:7): [True: 48.1k, False: 0]
  |  Branch (85:22): [True: 0, False: 48.1k]
  ------------------
   86|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
   87|      0|   }
   88|  48.1k|   return BOTAN_FFI_VISIT(mp, [=](auto& bn) { bn._assign_from_bytes({bin, bin_len}); });
  ------------------
  |  |  158|  48.1k|#define BOTAN_FFI_VISIT(obj, lambda) botan_ffi_visit(obj, lambda, __func__)
  ------------------
   89|  48.1k|}
botan_mp_destroy:
  157|  48.1k|int botan_mp_destroy(botan_mp_t mp) {
  158|  48.1k|   return BOTAN_FFI_CHECKED_DELETE(mp);
  ------------------
  |  |  188|  48.1k|#define BOTAN_FFI_CHECKED_DELETE(o) ffi_delete_object(o, __func__)
  ------------------
  159|  48.1k|}
ffi_mp.cpp:_ZZ13botan_mp_initENK3$_0clEv:
   25|  48.1k|   return ffi_guard_thunk(__func__, [=]() -> int {
   26|  48.1k|      if(mp_out == nullptr) {
  ------------------
  |  Branch (26:10): [True: 0, False: 48.1k]
  ------------------
   27|      0|         return BOTAN_FFI_ERROR_NULL_POINTER;
   28|      0|      }
   29|       |
   30|  48.1k|      auto mp = std::make_unique<Botan::BigInt>();
   31|  48.1k|      return ffi_new_object(mp_out, std::move(mp));
   32|  48.1k|   });

botan_pk_op_verify_create:
  162|  23.0k|int botan_pk_op_verify_create(botan_pk_op_verify_t* op, botan_pubkey_t key_obj, const char* hash, uint32_t flags) {
  163|  23.0k|   if(Botan::any_null_pointers(op, hash)) {
  ------------------
  |  Branch (163:7): [True: 0, False: 23.0k]
  ------------------
  164|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
  165|      0|   }
  166|       |
  167|  23.0k|   if(flags != 0 && flags != BOTAN_PUBKEY_DER_FORMAT_SIGNATURE) {
  ------------------
  |  | 3123|      0|#define BOTAN_PUBKEY_DER_FORMAT_SIGNATURE 1
  ------------------
  |  Branch (167:7): [True: 0, False: 23.0k]
  |  Branch (167:21): [True: 0, False: 0]
  ------------------
  168|      0|      return BOTAN_FFI_ERROR_BAD_FLAG;
  169|      0|   }
  170|       |
  171|  23.0k|   return ffi_guard_thunk(__func__, [=]() -> int {
  172|  23.0k|      *op = nullptr;
  173|  23.0k|      const bool use_der = (flags & BOTAN_PUBKEY_DER_FORMAT_SIGNATURE) != 0;
  174|  23.0k|      auto format = use_der ? Botan::Signature_Format::DerSequence : Botan::Signature_Format::Standard;
  175|  23.0k|      auto pk = std::make_unique<Botan::PK_Verifier>(safe_get(key_obj), hash, format);
  176|  23.0k|      return ffi_new_object(op, std::move(pk));
  177|  23.0k|   });
  178|  23.0k|}
botan_pk_op_verify_destroy:
  180|  23.0k|int botan_pk_op_verify_destroy(botan_pk_op_verify_t op) {
  181|  23.0k|   return BOTAN_FFI_CHECKED_DELETE(op);
  ------------------
  |  |  188|  23.0k|#define BOTAN_FFI_CHECKED_DELETE(o) ffi_delete_object(o, __func__)
  ------------------
  182|  23.0k|}
botan_pk_op_verify_update:
  184|  23.0k|int botan_pk_op_verify_update(botan_pk_op_verify_t op, const uint8_t in[], size_t in_len) {
  185|  23.0k|   if(in_len > 0 && in == nullptr) {
  ------------------
  |  Branch (185:7): [True: 23.0k, False: 0]
  |  Branch (185:21): [True: 0, False: 23.0k]
  ------------------
  186|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
  187|      0|   }
  188|       |
  189|  23.0k|   return BOTAN_FFI_VISIT(op, [=](auto& o) { o.update(in, in_len); });
  ------------------
  |  |  158|  23.0k|#define BOTAN_FFI_VISIT(obj, lambda) botan_ffi_visit(obj, lambda, __func__)
  ------------------
  190|  23.0k|}
botan_pk_op_verify_finish:
  192|  23.0k|int botan_pk_op_verify_finish(botan_pk_op_verify_t op, const uint8_t sig[], size_t sig_len) {
  193|  23.0k|   if(sig_len > 0 && sig == nullptr) {
  ------------------
  |  Branch (193:7): [True: 23.0k, False: 0]
  |  Branch (193:22): [True: 0, False: 23.0k]
  ------------------
  194|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
  195|      0|   }
  196|       |
  197|  23.0k|   return BOTAN_FFI_VISIT(op, [=](auto& o) {
  ------------------
  |  |  158|  23.0k|#define BOTAN_FFI_VISIT(obj, lambda) botan_ffi_visit(obj, lambda, __func__)
  ------------------
  198|  23.0k|      const bool legit = o.check_signature(sig, sig_len);
  199|       |
  200|  23.0k|      if(legit) {
  201|  23.0k|         return BOTAN_FFI_SUCCESS;
  202|  23.0k|      } else {
  203|  23.0k|         return BOTAN_FFI_INVALID_VERIFIER;
  204|  23.0k|      }
  205|  23.0k|   });
  206|  23.0k|}
ffi_pk_op.cpp:_ZZ25botan_pk_op_verify_createENK3$_0clEv:
  171|  23.0k|   return ffi_guard_thunk(__func__, [=]() -> int {
  172|  23.0k|      *op = nullptr;
  173|  23.0k|      const bool use_der = (flags & BOTAN_PUBKEY_DER_FORMAT_SIGNATURE) != 0;
  ------------------
  |  | 3123|  23.0k|#define BOTAN_PUBKEY_DER_FORMAT_SIGNATURE 1
  ------------------
  174|  23.0k|      auto format = use_der ? Botan::Signature_Format::DerSequence : Botan::Signature_Format::Standard;
  ------------------
  |  Branch (174:21): [True: 0, False: 23.0k]
  ------------------
  175|  23.0k|      auto pk = std::make_unique<Botan::PK_Verifier>(safe_get(key_obj), hash, format);
  176|  23.0k|      return ffi_new_object(op, std::move(pk));
  177|  23.0k|   });

botan_pubkey_destroy:
  148|  27.7k|int botan_pubkey_destroy(botan_pubkey_t key) {
  149|  27.7k|   return BOTAN_FFI_CHECKED_DELETE(key);
  ------------------
  |  |  188|  27.7k|#define BOTAN_FFI_CHECKED_DELETE(o) ffi_delete_object(o, __func__)
  ------------------
  150|  27.7k|}

botan_pubkey_load_rsa:
  273|  4.53k|int botan_pubkey_load_rsa(botan_pubkey_t* key, botan_mp_t n, botan_mp_t e) {
  274|  4.53k|#if defined(BOTAN_HAS_RSA)
  275|  4.53k|   if(key == nullptr) {
  ------------------
  |  Branch (275:7): [True: 0, False: 4.53k]
  ------------------
  276|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
  277|      0|   }
  278|  4.53k|   *key = nullptr;
  279|  4.53k|   return ffi_guard_thunk(__func__, [=]() -> int {
  280|  4.53k|      auto rsa = std::make_unique<Botan::RSA_PublicKey>(safe_get(n), safe_get(e));
  281|  4.53k|      return ffi_new_object(key, std::move(rsa));
  282|  4.53k|   });
  283|       |#else
  284|       |   BOTAN_UNUSED(key, n, e);
  285|       |   return BOTAN_FFI_ERROR_NOT_IMPLEMENTED;
  286|       |#endif
  287|  4.53k|}
botan_pubkey_load_dsa:
  401|    536|int botan_pubkey_load_dsa(botan_pubkey_t* key, botan_mp_t p, botan_mp_t q, botan_mp_t g, botan_mp_t y) {
  402|    536|#if defined(BOTAN_HAS_DSA)
  403|    536|   if(key == nullptr) {
  ------------------
  |  Branch (403:7): [True: 0, False: 536]
  ------------------
  404|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
  405|      0|   }
  406|    536|   *key = nullptr;
  407|       |
  408|    536|   return ffi_guard_thunk(__func__, [=]() -> int {
  409|    536|      const Botan::DL_Group group(safe_get(p), safe_get(q), safe_get(g));
  410|    536|      auto dsa = std::make_unique<Botan::DSA_PublicKey>(group, safe_get(y));
  411|    536|      return ffi_new_object(key, std::move(dsa));
  412|    536|   });
  413|       |#else
  414|       |   BOTAN_UNUSED(key, p, q, g, y);
  415|       |   return BOTAN_FFI_ERROR_NOT_IMPLEMENTED;
  416|       |#endif
  417|    536|}
botan_pubkey_load_ecdsa:
  468|  9.71k|                            const char* curve_name) {
  469|  9.71k|#if defined(BOTAN_HAS_ECDSA)
  470|  9.71k|   if(Botan::any_null_pointers(key, curve_name)) {
  ------------------
  |  Branch (470:7): [True: 0, False: 9.71k]
  ------------------
  471|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
  472|      0|   }
  473|  9.71k|   *key = nullptr;
  474|       |
  475|  9.71k|   return ffi_guard_thunk(__func__, [=]() -> int {
  476|  9.71k|      std::unique_ptr<Botan::ECDSA_PublicKey> p_key;
  477|       |
  478|  9.71k|      const int rc = pubkey_load_ec(p_key, safe_get(public_x), safe_get(public_y), curve_name);
  479|  9.71k|      if(rc == BOTAN_FFI_SUCCESS) {
  480|  9.71k|         ffi_new_object(key, std::move(p_key));
  481|  9.71k|      }
  482|       |
  483|  9.71k|      return rc;
  484|  9.71k|   });
  485|       |#else
  486|       |   BOTAN_UNUSED(key, public_x, public_y, curve_name);
  487|       |   return BOTAN_FFI_ERROR_NOT_IMPLEMENTED;
  488|       |#endif
  489|  9.71k|}
botan_pubkey_sm2_compute_za:
  727|  4.39k|   uint8_t out[], size_t* out_len, const char* ident, const char* hash_algo, const botan_pubkey_t key) {
  728|  4.39k|   if(Botan::any_null_pointers(out, out_len, ident, hash_algo, key)) {
  ------------------
  |  Branch (728:7): [True: 0, False: 4.39k]
  ------------------
  729|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
  730|      0|   }
  731|       |
  732|  4.39k|#if defined(BOTAN_HAS_SM2)
  733|  4.39k|   return ffi_guard_thunk(__func__, [=]() -> int {
  734|  4.39k|      const Botan::Public_Key& pub_key = safe_get(key);
  735|  4.39k|      const Botan::EC_PublicKey* ec_key = dynamic_cast<const Botan::EC_PublicKey*>(&pub_key);
  736|       |
  737|  4.39k|      if(ec_key == nullptr) {
  738|  4.39k|         return BOTAN_FFI_ERROR_BAD_PARAMETER;
  739|  4.39k|      }
  740|       |
  741|  4.39k|      if(ec_key->algo_name() != "SM2") {
  742|  4.39k|         return BOTAN_FFI_ERROR_BAD_PARAMETER;
  743|  4.39k|      }
  744|       |
  745|  4.39k|      const std::string ident_str(ident);
  746|  4.39k|      std::unique_ptr<Botan::HashFunction> hash = Botan::HashFunction::create_or_throw(hash_algo);
  747|       |
  748|  4.39k|      const auto& pt = ec_key->_public_ec_point();
  749|       |
  750|  4.39k|      const auto za = Botan::sm2_compute_za(*hash, ident_str, ec_key->domain(), pt);
  751|       |
  752|  4.39k|      return write_vec_output(out, out_len, za);
  753|  4.39k|   });
  754|       |#else
  755|       |   return BOTAN_FFI_ERROR_NOT_IMPLEMENTED;
  756|       |#endif
  757|  4.39k|}
botan_pubkey_load_sm2:
  762|  8.77k|                          const char* curve_name) {
  763|  8.77k|#if defined(BOTAN_HAS_SM2)
  764|  8.77k|   if(Botan::any_null_pointers(key, curve_name)) {
  ------------------
  |  Branch (764:7): [True: 0, False: 8.77k]
  ------------------
  765|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
  766|      0|   }
  767|  8.77k|   *key = nullptr;
  768|       |
  769|  8.77k|   return ffi_guard_thunk(__func__, [=]() -> int {
  770|  8.77k|      std::unique_ptr<Botan::SM2_PublicKey> p_key;
  771|  8.77k|      if(pubkey_load_ec(p_key, safe_get(public_x), safe_get(public_y), curve_name) == 0) {
  772|  8.77k|         return ffi_new_object(key, std::move(p_key));
  773|  8.77k|      } else {
  774|  8.77k|         return BOTAN_FFI_ERROR_UNKNOWN_ERROR;
  775|  8.77k|      }
  776|  8.77k|   });
  777|       |#else
  778|       |   BOTAN_UNUSED(key, public_x, public_y, curve_name);
  779|       |   return BOTAN_FFI_ERROR_NOT_IMPLEMENTED;
  780|       |#endif
  781|  8.77k|}
botan_pubkey_load_ed25519:
  915|  4.09k|int botan_pubkey_load_ed25519(botan_pubkey_t* key, const uint8_t pubkey[32]) {
  916|  4.09k|#if defined(BOTAN_HAS_ED25519)
  917|  4.09k|   if(any_null_pointers(key, pubkey)) {
  ------------------
  |  Branch (917:7): [True: 0, False: 4.09k]
  ------------------
  918|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
  919|      0|   }
  920|  4.09k|   *key = nullptr;
  921|  4.09k|   return ffi_guard_thunk(__func__, [=]() -> int {
  922|  4.09k|      const std::vector<uint8_t> pubkey_vec(pubkey, pubkey + 32);
  923|  4.09k|      auto ed25519 = std::make_unique<Botan::Ed25519_PublicKey>(pubkey_vec);
  924|  4.09k|      return ffi_new_object(key, std::move(ed25519));
  925|  4.09k|   });
  926|       |#else
  927|       |   BOTAN_UNUSED(key, pubkey);
  928|       |   return BOTAN_FFI_ERROR_NOT_IMPLEMENTED;
  929|       |#endif
  930|  4.09k|}
botan_pubkey_load_slh_dsa:
 1428|     64|int botan_pubkey_load_slh_dsa(botan_pubkey_t* key, const uint8_t pubkey[], size_t key_len, const char* slhdsa_mode) {
 1429|     64|#if defined(BOTAN_HAS_SLH_DSA_WITH_SHA2) || defined(BOTAN_HAS_SLH_DSA_WITH_SHAKE)
 1430|     64|   if(Botan::any_null_pointers(key, pubkey, slhdsa_mode)) {
  ------------------
  |  Branch (1430:7): [True: 0, False: 64]
  ------------------
 1431|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
 1432|      0|   }
 1433|       |
 1434|     64|   *key = nullptr;
 1435|       |
 1436|     64|   return ffi_guard_thunk(__func__, [=]() -> int {
 1437|     64|      auto mode = Botan::SLH_DSA_Parameters::create(slhdsa_mode);
 1438|     64|      if(!mode.is_slh_dsa()) {
 1439|     64|         return BOTAN_FFI_ERROR_BAD_PARAMETER;
 1440|     64|      }
 1441|       |
 1442|     64|      auto mldsa_key = std::make_unique<Botan::SLH_DSA_PublicKey>(std::span{pubkey, key_len}, mode);
 1443|     64|      return ffi_new_object(key, std::move(mldsa_key));
 1444|     64|   });
 1445|       |#else
 1446|       |   BOTAN_UNUSED(key, key_len, pubkey, slhdsa_mode);
 1447|       |   return BOTAN_FFI_ERROR_NOT_IMPLEMENTED;
 1448|       |#endif
 1449|     64|}
ffi_pkey_algs.cpp:_ZZ21botan_pubkey_load_rsaENK3$_0clEv:
  279|  4.53k|   return ffi_guard_thunk(__func__, [=]() -> int {
  280|  4.53k|      auto rsa = std::make_unique<Botan::RSA_PublicKey>(safe_get(n), safe_get(e));
  281|  4.53k|      return ffi_new_object(key, std::move(rsa));
  282|  4.53k|   });
ffi_pkey_algs.cpp:_ZZ21botan_pubkey_load_dsaENK3$_0clEv:
  408|    536|   return ffi_guard_thunk(__func__, [=]() -> int {
  409|    536|      const Botan::DL_Group group(safe_get(p), safe_get(q), safe_get(g));
  410|    536|      auto dsa = std::make_unique<Botan::DSA_PublicKey>(group, safe_get(y));
  411|    536|      return ffi_new_object(key, std::move(dsa));
  412|    536|   });
ffi_pkey_algs.cpp:_ZZ23botan_pubkey_load_ecdsaENK3$_0clEv:
  475|  9.71k|   return ffi_guard_thunk(__func__, [=]() -> int {
  476|  9.71k|      std::unique_ptr<Botan::ECDSA_PublicKey> p_key;
  477|       |
  478|  9.71k|      const int rc = pubkey_load_ec(p_key, safe_get(public_x), safe_get(public_y), curve_name);
  479|  9.71k|      if(rc == BOTAN_FFI_SUCCESS) {
  ------------------
  |  Branch (479:10): [True: 9.63k, False: 76]
  ------------------
  480|  9.63k|         ffi_new_object(key, std::move(p_key));
  481|  9.63k|      }
  482|       |
  483|  9.71k|      return rc;
  484|  9.71k|   });
ffi_pkey_algs.cpp:_ZN12_GLOBAL__N_114pubkey_load_ecIN5Botan15ECDSA_PublicKeyEEEiRNSt3__110unique_ptrIT_NS3_14default_deleteIS5_EEEERKNS1_6BigIntESC_PKc:
  123|  9.71k|                   const char* curve_name) {
  124|  9.71k|   if(curve_name == nullptr) {
  ------------------
  |  Branch (124:7): [True: 0, False: 9.71k]
  ------------------
  125|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
  126|      0|   }
  127|       |
  128|  9.71k|   if(!Botan::EC_Group::supports_named_group(curve_name)) {
  ------------------
  |  Branch (128:7): [True: 0, False: 9.71k]
  ------------------
  129|      0|      return BOTAN_FFI_ERROR_NOT_IMPLEMENTED;
  130|      0|   }
  131|       |
  132|  9.71k|   const auto group = Botan::EC_Group::from_name(curve_name);
  133|       |
  134|  9.71k|   if(auto pt = Botan::EC_AffinePoint::from_bigint_xy(group, public_x, public_y)) {
  ------------------
  |  Branch (134:12): [True: 9.63k, False: 76]
  ------------------
  135|  9.63k|      key.reset(new ECPublicKey_t(group, pt.value()));
  136|  9.63k|      return BOTAN_FFI_SUCCESS;
  137|  9.63k|   } else {
  138|     76|      return BOTAN_FFI_ERROR_BAD_PARAMETER;
  139|     76|   }
  140|  9.71k|}
ffi_pkey_algs.cpp:_ZZ27botan_pubkey_sm2_compute_zaENK3$_0clEv:
  733|  4.39k|   return ffi_guard_thunk(__func__, [=]() -> int {
  734|  4.39k|      const Botan::Public_Key& pub_key = safe_get(key);
  735|  4.39k|      const Botan::EC_PublicKey* ec_key = dynamic_cast<const Botan::EC_PublicKey*>(&pub_key);
  736|       |
  737|  4.39k|      if(ec_key == nullptr) {
  ------------------
  |  Branch (737:10): [True: 0, False: 4.39k]
  ------------------
  738|      0|         return BOTAN_FFI_ERROR_BAD_PARAMETER;
  739|      0|      }
  740|       |
  741|  4.39k|      if(ec_key->algo_name() != "SM2") {
  ------------------
  |  Branch (741:10): [True: 0, False: 4.39k]
  ------------------
  742|      0|         return BOTAN_FFI_ERROR_BAD_PARAMETER;
  743|      0|      }
  744|       |
  745|  4.39k|      const std::string ident_str(ident);
  746|  4.39k|      std::unique_ptr<Botan::HashFunction> hash = Botan::HashFunction::create_or_throw(hash_algo);
  747|       |
  748|  4.39k|      const auto& pt = ec_key->_public_ec_point();
  749|       |
  750|  4.39k|      const auto za = Botan::sm2_compute_za(*hash, ident_str, ec_key->domain(), pt);
  751|       |
  752|  4.39k|      return write_vec_output(out, out_len, za);
  753|  4.39k|   });
ffi_pkey_algs.cpp:_ZZ21botan_pubkey_load_sm2ENK3$_0clEv:
  769|  8.77k|   return ffi_guard_thunk(__func__, [=]() -> int {
  770|  8.77k|      std::unique_ptr<Botan::SM2_PublicKey> p_key;
  771|  8.77k|      if(pubkey_load_ec(p_key, safe_get(public_x), safe_get(public_y), curve_name) == 0) {
  ------------------
  |  Branch (771:10): [True: 8.77k, False: 0]
  ------------------
  772|  8.77k|         return ffi_new_object(key, std::move(p_key));
  773|  8.77k|      } else {
  774|      0|         return BOTAN_FFI_ERROR_UNKNOWN_ERROR;
  775|      0|      }
  776|  8.77k|   });
ffi_pkey_algs.cpp:_ZN12_GLOBAL__N_114pubkey_load_ecIN5Botan13SM2_PublicKeyEEEiRNSt3__110unique_ptrIT_NS3_14default_deleteIS5_EEEERKNS1_6BigIntESC_PKc:
  123|  8.77k|                   const char* curve_name) {
  124|  8.77k|   if(curve_name == nullptr) {
  ------------------
  |  Branch (124:7): [True: 0, False: 8.77k]
  ------------------
  125|      0|      return BOTAN_FFI_ERROR_NULL_POINTER;
  126|      0|   }
  127|       |
  128|  8.77k|   if(!Botan::EC_Group::supports_named_group(curve_name)) {
  ------------------
  |  Branch (128:7): [True: 0, False: 8.77k]
  ------------------
  129|      0|      return BOTAN_FFI_ERROR_NOT_IMPLEMENTED;
  130|      0|   }
  131|       |
  132|  8.77k|   const auto group = Botan::EC_Group::from_name(curve_name);
  133|       |
  134|  8.77k|   if(auto pt = Botan::EC_AffinePoint::from_bigint_xy(group, public_x, public_y)) {
  ------------------
  |  Branch (134:12): [True: 8.77k, False: 0]
  ------------------
  135|  8.77k|      key.reset(new ECPublicKey_t(group, pt.value()));
  136|  8.77k|      return BOTAN_FFI_SUCCESS;
  137|  8.77k|   } else {
  138|      0|      return BOTAN_FFI_ERROR_BAD_PARAMETER;
  139|      0|   }
  140|  8.77k|}
ffi_pkey_algs.cpp:_ZZ25botan_pubkey_load_ed25519ENK3$_0clEv:
  921|  4.09k|   return ffi_guard_thunk(__func__, [=]() -> int {
  922|  4.09k|      const std::vector<uint8_t> pubkey_vec(pubkey, pubkey + 32);
  923|  4.09k|      auto ed25519 = std::make_unique<Botan::Ed25519_PublicKey>(pubkey_vec);
  924|  4.09k|      return ffi_new_object(key, std::move(ed25519));
  925|  4.09k|   });
ffi_pkey_algs.cpp:_ZZ25botan_pubkey_load_slh_dsaENK3$_0clEv:
 1436|     64|   return ffi_guard_thunk(__func__, [=]() -> int {
 1437|     64|      auto mode = Botan::SLH_DSA_Parameters::create(slhdsa_mode);
 1438|     64|      if(!mode.is_slh_dsa()) {
  ------------------
  |  Branch (1438:10): [True: 0, False: 64]
  ------------------
 1439|      0|         return BOTAN_FFI_ERROR_BAD_PARAMETER;
 1440|      0|      }
 1441|       |
 1442|     64|      auto mldsa_key = std::make_unique<Botan::SLH_DSA_PublicKey>(std::span{pubkey, key_len}, mode);
 1443|     64|      return ffi_new_object(key, std::move(mldsa_key));
 1444|     64|   });

botan_rng_init:
   38|  15.6k|int botan_rng_init(botan_rng_t* rng_out, const char* rng_type) {
   39|  15.6k|   return ffi_guard_thunk(__func__, [=]() -> int {
   40|  15.6k|      if(rng_out == nullptr) {
   41|  15.6k|         return BOTAN_FFI_ERROR_NULL_POINTER;
   42|  15.6k|      }
   43|       |
   44|  15.6k|      const std::string rng_type_s(rng_type != nullptr ? rng_type : "system");
   45|       |
   46|  15.6k|      std::unique_ptr<Botan::RandomNumberGenerator> rng;
   47|       |
   48|  15.6k|      if(rng_type_s == "system") {
   49|  15.6k|         rng = std::make_unique<Botan::System_RNG>();
   50|  15.6k|      } else if(rng_type_s == "user" || rng_type_s == "user-threadsafe") {
   51|  15.6k|         rng = std::make_unique<Botan::AutoSeeded_RNG>();
   52|  15.6k|      } else if(rng_type_s == "null") {
   53|  15.6k|         rng = std::make_unique<Botan::Null_RNG>();
   54|  15.6k|      }
   55|       |#if defined(BOTAN_HAS_PROCESSOR_RNG)
   56|       |      else if((rng_type_s == "rdrand" || rng_type_s == "hwrng") && Botan::Processor_RNG::available()) {
   57|       |         rng = std::make_unique<Botan::Processor_RNG>();
   58|       |      }
   59|       |#endif
   60|       |#if defined(BOTAN_HAS_JITTER_RNG)
   61|       |      else if(rng_type_s == "jitter") {
   62|       |         rng = std::make_unique<Botan::Jitter_RNG>();
   63|       |      }
   64|       |#endif
   65|       |#if defined(BOTAN_HAS_ESDM_RNG)
   66|       |      else if(rng_type_s == "esdm-full") {
   67|       |         rng = std::make_unique<Botan::ESDM_RNG>(false);
   68|       |      } else if(rng_type_s == "esdm-pr") {
   69|       |         rng = std::make_unique<Botan::ESDM_RNG>(true);
   70|       |      }
   71|       |#endif
   72|       |
   73|  15.6k|      if(!rng) {
   74|  15.6k|         return BOTAN_FFI_ERROR_NOT_IMPLEMENTED;
   75|  15.6k|      }
   76|       |
   77|  15.6k|      return ffi_new_object(rng_out, std::move(rng));
   78|  15.6k|   });
   79|  15.6k|}
botan_rng_destroy:
  164|  15.6k|int botan_rng_destroy(botan_rng_t rng) {
  165|  15.6k|   return BOTAN_FFI_CHECKED_DELETE(rng);
  ------------------
  |  |  188|  15.6k|#define BOTAN_FFI_CHECKED_DELETE(o) ffi_delete_object(o, __func__)
  ------------------
  166|  15.6k|}
ffi_rng.cpp:_ZZ14botan_rng_initENK3$_0clEv:
   39|  15.6k|   return ffi_guard_thunk(__func__, [=]() -> int {
   40|  15.6k|      if(rng_out == nullptr) {
  ------------------
  |  Branch (40:10): [True: 0, False: 15.6k]
  ------------------
   41|      0|         return BOTAN_FFI_ERROR_NULL_POINTER;
   42|      0|      }
   43|       |
   44|  15.6k|      const std::string rng_type_s(rng_type != nullptr ? rng_type : "system");
  ------------------
  |  Branch (44:36): [True: 15.6k, False: 0]
  ------------------
   45|       |
   46|  15.6k|      std::unique_ptr<Botan::RandomNumberGenerator> rng;
   47|       |
   48|  15.6k|      if(rng_type_s == "system") {
  ------------------
  |  Branch (48:10): [True: 0, False: 15.6k]
  ------------------
   49|      0|         rng = std::make_unique<Botan::System_RNG>();
   50|  15.6k|      } else if(rng_type_s == "user" || rng_type_s == "user-threadsafe") {
  ------------------
  |  Branch (50:17): [True: 15.6k, False: 0]
  |  Branch (50:41): [True: 0, False: 0]
  ------------------
   51|  15.6k|         rng = std::make_unique<Botan::AutoSeeded_RNG>();
   52|  15.6k|      } else if(rng_type_s == "null") {
  ------------------
  |  Branch (52:17): [True: 0, False: 0]
  ------------------
   53|      0|         rng = std::make_unique<Botan::Null_RNG>();
   54|      0|      }
   55|       |#if defined(BOTAN_HAS_PROCESSOR_RNG)
   56|       |      else if((rng_type_s == "rdrand" || rng_type_s == "hwrng") && Botan::Processor_RNG::available()) {
   57|       |         rng = std::make_unique<Botan::Processor_RNG>();
   58|       |      }
   59|       |#endif
   60|       |#if defined(BOTAN_HAS_JITTER_RNG)
   61|       |      else if(rng_type_s == "jitter") {
   62|       |         rng = std::make_unique<Botan::Jitter_RNG>();
   63|       |      }
   64|       |#endif
   65|       |#if defined(BOTAN_HAS_ESDM_RNG)
   66|       |      else if(rng_type_s == "esdm-full") {
   67|       |         rng = std::make_unique<Botan::ESDM_RNG>(false);
   68|       |      } else if(rng_type_s == "esdm-pr") {
   69|       |         rng = std::make_unique<Botan::ESDM_RNG>(true);
   70|       |      }
   71|       |#endif
   72|       |
   73|  15.6k|      if(!rng) {
  ------------------
  |  Branch (73:10): [True: 0, False: 15.6k]
  ------------------
   74|      0|         return BOTAN_FFI_ERROR_NOT_IMPLEMENTED;
   75|      0|      }
   76|       |
   77|  15.6k|      return ffi_new_object(rng_out, std::move(rng));
   78|  15.6k|   });

_ZN5Botan7BLAKE2bC2Em:
   34|  1.15k|BLAKE2b::BLAKE2b(size_t output_bits) : m_output_bits(output_bits), m_H(blake2b_IV.size()), m_T(), m_F(), m_key_size(0) {
   35|  1.15k|   if(output_bits == 0 || output_bits > 512 || output_bits % 8 != 0) {
  ------------------
  |  Branch (35:7): [True: 0, False: 1.15k]
  |  Branch (35:27): [True: 0, False: 1.15k]
  |  Branch (35:48): [True: 0, False: 1.15k]
  ------------------
   36|      0|      throw Invalid_Argument("Bad output bits size for BLAKE2b");
   37|      0|   }
   38|       |
   39|  1.15k|   state_init();
   40|  1.15k|}
_ZN5Botan7BLAKE2b10state_initEv:
   42|   551k|void BLAKE2b::state_init() {
   43|   551k|   copy_mem(m_H.data(), blake2b_IV.data(), blake2b_IV.size());
   44|   551k|   m_H[0] ^= (0x01010000 | (static_cast<uint8_t>(m_key_size) << 8) | static_cast<uint8_t>(output_length()));
   45|   551k|   m_T[0] = m_T[1] = 0;
   46|   551k|   m_F = 0;
   47|       |
   48|   551k|   m_buffer.clear();
   49|   551k|   if(m_key_size > 0) {
  ------------------
  |  Branch (49:7): [True: 0, False: 551k]
  ------------------
   50|      0|      m_buffer.append(m_padded_key_buffer);
   51|      0|   }
   52|   551k|}
_ZN5Botan7BLAKE2b8compressEPKhmm:
   96|   554k|void BLAKE2b::compress(const uint8_t* input, size_t blocks, uint64_t increment) {
   97|  1.10M|   for(size_t b = 0; b != blocks; ++b) {
  ------------------
  |  Branch (97:22): [True: 554k, False: 554k]
  ------------------
   98|   554k|      m_T[0] += increment;
   99|   554k|      if(m_T[0] < increment) {
  ------------------
  |  Branch (99:10): [True: 0, False: 554k]
  ------------------
  100|      0|         m_T[1]++;
  101|      0|      }
  102|       |
  103|   554k|      uint64_t M[16];
  104|   554k|      uint64_t v[16];
  105|   554k|      load_le(M, input, 16);
  106|       |
  107|   554k|      input += BLAKE2B_BLOCKBYTES;
  108|       |
  109|  4.99M|      for(size_t i = 0; i < 8; i++) {
  ------------------
  |  Branch (109:25): [True: 4.43M, False: 554k]
  ------------------
  110|  4.43M|         v[i] = m_H[i];
  111|  4.43M|      }
  112|  4.99M|      for(size_t i = 0; i != 8; ++i) {
  ------------------
  |  Branch (112:25): [True: 4.43M, False: 554k]
  ------------------
  113|  4.43M|         v[i + 8] = blake2b_IV[i];
  114|  4.43M|      }
  115|       |
  116|   554k|      v[12] ^= m_T[0];
  117|   554k|      v[13] ^= m_T[1];
  118|   554k|      v[14] ^= m_F;
  119|       |
  120|   554k|      ROUND<0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15>(v, M);
  121|   554k|      ROUND<14, 10, 4, 8, 9, 15, 13, 6, 1, 12, 0, 2, 11, 7, 5, 3>(v, M);
  122|   554k|      ROUND<11, 8, 12, 0, 5, 2, 15, 13, 10, 14, 3, 6, 7, 1, 9, 4>(v, M);
  123|   554k|      ROUND<7, 9, 3, 1, 13, 12, 11, 14, 2, 6, 5, 10, 4, 0, 15, 8>(v, M);
  124|   554k|      ROUND<9, 0, 5, 7, 2, 4, 10, 15, 14, 1, 11, 12, 6, 8, 3, 13>(v, M);
  125|   554k|      ROUND<2, 12, 6, 10, 0, 11, 8, 3, 4, 13, 7, 5, 15, 14, 1, 9>(v, M);
  126|   554k|      ROUND<12, 5, 1, 15, 14, 13, 4, 10, 0, 7, 6, 3, 9, 2, 8, 11>(v, M);
  127|   554k|      ROUND<13, 11, 7, 14, 12, 1, 3, 9, 5, 0, 15, 4, 8, 6, 2, 10>(v, M);
  128|   554k|      ROUND<6, 15, 14, 9, 11, 3, 0, 8, 12, 2, 13, 7, 1, 4, 10, 5>(v, M);
  129|   554k|      ROUND<10, 2, 8, 4, 7, 6, 1, 5, 15, 11, 9, 14, 3, 12, 13, 0>(v, M);
  130|   554k|      ROUND<0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15>(v, M);
  131|   554k|      ROUND<14, 10, 4, 8, 9, 15, 13, 6, 1, 12, 0, 2, 11, 7, 5, 3>(v, M);
  132|       |
  133|  4.99M|      for(size_t i = 0; i < 8; i++) {
  ------------------
  |  Branch (133:25): [True: 4.43M, False: 554k]
  ------------------
  134|  4.43M|         m_H[i] ^= v[i] ^ v[i + 8];
  135|  4.43M|      }
  136|   554k|   }
  137|   554k|}
_ZN5Botan7BLAKE2b8add_dataENSt3__14spanIKhLm18446744073709551615EEE:
  139|   684k|void BLAKE2b::add_data(std::span<const uint8_t> input) {
  140|   684k|   BufferSlicer in(input);
  141|       |
  142|  1.37M|   while(!in.empty()) {
  ------------------
  |  Branch (142:10): [True: 687k, False: 684k]
  ------------------
  143|   687k|      if(const auto one_block = m_buffer.handle_unaligned_data(in)) {
  ------------------
  |  Branch (143:21): [True: 4.60k, False: 683k]
  ------------------
  144|  4.60k|         compress(one_block->data(), 1, BLAKE2B_BLOCKBYTES);
  145|  4.60k|      }
  146|       |
  147|   687k|      if(m_buffer.in_alignment()) {
  ------------------
  |  Branch (147:10): [True: 4.60k, False: 683k]
  ------------------
  148|  4.60k|         const auto [aligned_data, full_blocks] = m_buffer.aligned_data_to_process(in);
  149|  4.60k|         if(full_blocks > 0) {
  ------------------
  |  Branch (149:13): [True: 0, False: 4.60k]
  ------------------
  150|      0|            compress(aligned_data.data(), full_blocks, BLAKE2B_BLOCKBYTES);
  151|      0|         }
  152|  4.60k|      }
  153|   687k|   }
  154|   684k|}
_ZN5Botan7BLAKE2b12final_resultENSt3__14spanIhLm18446744073709551615EEE:
  156|   550k|void BLAKE2b::final_result(std::span<uint8_t> output) {
  157|   550k|   const auto pos = m_buffer.elements_in_buffer();
  158|   550k|   m_buffer.fill_up_with_zeros();
  159|       |
  160|   550k|   m_F = 0xFFFFFFFFFFFFFFFF;
  161|   550k|   compress(m_buffer.consume().data(), 1, pos);
  162|   550k|   copy_out_le(output.first(output_length()), m_H);
  163|   550k|   state_init();
  164|   550k|}
blake2b.cpp:_ZN5Botan12_GLOBAL__N_15ROUNDILm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12ELm13ELm14ELm15EEEvPmPKm:
   83|  1.10M|BOTAN_FORCE_INLINE void ROUND(uint64_t* v, const uint64_t* M) {
   84|  1.10M|   G(v[0], v[4], v[8], v[12], M[i0], M[i1]);
   85|  1.10M|   G(v[1], v[5], v[9], v[13], M[i2], M[i3]);
   86|  1.10M|   G(v[2], v[6], v[10], v[14], M[i4], M[i5]);
   87|  1.10M|   G(v[3], v[7], v[11], v[15], M[i6], M[i7]);
   88|  1.10M|   G(v[0], v[5], v[10], v[15], M[i8], M[i9]);
   89|  1.10M|   G(v[1], v[6], v[11], v[12], M[iA], M[iB]);
   90|  1.10M|   G(v[2], v[7], v[8], v[13], M[iC], M[iD]);
   91|  1.10M|   G(v[3], v[4], v[9], v[14], M[iE], M[iF]);
   92|  1.10M|}
blake2b.cpp:_ZN5Botan12_GLOBAL__N_11GERmS1_S1_S1_mm:
   56|  53.2M|BOTAN_FORCE_INLINE void G(uint64_t& a, uint64_t& b, uint64_t& c, uint64_t& d, uint64_t M0, uint64_t M1) {
   57|  53.2M|   a = a + b + M0;
   58|  53.2M|   d = rotr<32>(d ^ a);
   59|  53.2M|   c = c + d;
   60|  53.2M|   b = rotr<24>(b ^ c);
   61|  53.2M|   a = a + b + M1;
   62|  53.2M|   d = rotr<16>(d ^ a);
   63|  53.2M|   c = c + d;
   64|  53.2M|   b = rotr<63>(b ^ c);
   65|  53.2M|}
blake2b.cpp:_ZN5Botan12_GLOBAL__N_15ROUNDILm14ELm10ELm4ELm8ELm9ELm15ELm13ELm6ELm1ELm12ELm0ELm2ELm11ELm7ELm5ELm3EEEvPmPKm:
   83|  1.10M|BOTAN_FORCE_INLINE void ROUND(uint64_t* v, const uint64_t* M) {
   84|  1.10M|   G(v[0], v[4], v[8], v[12], M[i0], M[i1]);
   85|  1.10M|   G(v[1], v[5], v[9], v[13], M[i2], M[i3]);
   86|  1.10M|   G(v[2], v[6], v[10], v[14], M[i4], M[i5]);
   87|  1.10M|   G(v[3], v[7], v[11], v[15], M[i6], M[i7]);
   88|  1.10M|   G(v[0], v[5], v[10], v[15], M[i8], M[i9]);
   89|  1.10M|   G(v[1], v[6], v[11], v[12], M[iA], M[iB]);
   90|  1.10M|   G(v[2], v[7], v[8], v[13], M[iC], M[iD]);
   91|  1.10M|   G(v[3], v[4], v[9], v[14], M[iE], M[iF]);
   92|  1.10M|}
blake2b.cpp:_ZN5Botan12_GLOBAL__N_15ROUNDILm11ELm8ELm12ELm0ELm5ELm2ELm15ELm13ELm10ELm14ELm3ELm6ELm7ELm1ELm9ELm4EEEvPmPKm:
   83|   554k|BOTAN_FORCE_INLINE void ROUND(uint64_t* v, const uint64_t* M) {
   84|   554k|   G(v[0], v[4], v[8], v[12], M[i0], M[i1]);
   85|   554k|   G(v[1], v[5], v[9], v[13], M[i2], M[i3]);
   86|   554k|   G(v[2], v[6], v[10], v[14], M[i4], M[i5]);
   87|   554k|   G(v[3], v[7], v[11], v[15], M[i6], M[i7]);
   88|   554k|   G(v[0], v[5], v[10], v[15], M[i8], M[i9]);
   89|   554k|   G(v[1], v[6], v[11], v[12], M[iA], M[iB]);
   90|   554k|   G(v[2], v[7], v[8], v[13], M[iC], M[iD]);
   91|   554k|   G(v[3], v[4], v[9], v[14], M[iE], M[iF]);
   92|   554k|}
blake2b.cpp:_ZN5Botan12_GLOBAL__N_15ROUNDILm7ELm9ELm3ELm1ELm13ELm12ELm11ELm14ELm2ELm6ELm5ELm10ELm4ELm0ELm15ELm8EEEvPmPKm:
   83|   554k|BOTAN_FORCE_INLINE void ROUND(uint64_t* v, const uint64_t* M) {
   84|   554k|   G(v[0], v[4], v[8], v[12], M[i0], M[i1]);
   85|   554k|   G(v[1], v[5], v[9], v[13], M[i2], M[i3]);
   86|   554k|   G(v[2], v[6], v[10], v[14], M[i4], M[i5]);
   87|   554k|   G(v[3], v[7], v[11], v[15], M[i6], M[i7]);
   88|   554k|   G(v[0], v[5], v[10], v[15], M[i8], M[i9]);
   89|   554k|   G(v[1], v[6], v[11], v[12], M[iA], M[iB]);
   90|   554k|   G(v[2], v[7], v[8], v[13], M[iC], M[iD]);
   91|   554k|   G(v[3], v[4], v[9], v[14], M[iE], M[iF]);
   92|   554k|}
blake2b.cpp:_ZN5Botan12_GLOBAL__N_15ROUNDILm9ELm0ELm5ELm7ELm2ELm4ELm10ELm15ELm14ELm1ELm11ELm12ELm6ELm8ELm3ELm13EEEvPmPKm:
   83|   554k|BOTAN_FORCE_INLINE void ROUND(uint64_t* v, const uint64_t* M) {
   84|   554k|   G(v[0], v[4], v[8], v[12], M[i0], M[i1]);
   85|   554k|   G(v[1], v[5], v[9], v[13], M[i2], M[i3]);
   86|   554k|   G(v[2], v[6], v[10], v[14], M[i4], M[i5]);
   87|   554k|   G(v[3], v[7], v[11], v[15], M[i6], M[i7]);
   88|   554k|   G(v[0], v[5], v[10], v[15], M[i8], M[i9]);
   89|   554k|   G(v[1], v[6], v[11], v[12], M[iA], M[iB]);
   90|   554k|   G(v[2], v[7], v[8], v[13], M[iC], M[iD]);
   91|   554k|   G(v[3], v[4], v[9], v[14], M[iE], M[iF]);
   92|   554k|}
blake2b.cpp:_ZN5Botan12_GLOBAL__N_15ROUNDILm2ELm12ELm6ELm10ELm0ELm11ELm8ELm3ELm4ELm13ELm7ELm5ELm15ELm14ELm1ELm9EEEvPmPKm:
   83|   554k|BOTAN_FORCE_INLINE void ROUND(uint64_t* v, const uint64_t* M) {
   84|   554k|   G(v[0], v[4], v[8], v[12], M[i0], M[i1]);
   85|   554k|   G(v[1], v[5], v[9], v[13], M[i2], M[i3]);
   86|   554k|   G(v[2], v[6], v[10], v[14], M[i4], M[i5]);
   87|   554k|   G(v[3], v[7], v[11], v[15], M[i6], M[i7]);
   88|   554k|   G(v[0], v[5], v[10], v[15], M[i8], M[i9]);
   89|   554k|   G(v[1], v[6], v[11], v[12], M[iA], M[iB]);
   90|   554k|   G(v[2], v[7], v[8], v[13], M[iC], M[iD]);
   91|   554k|   G(v[3], v[4], v[9], v[14], M[iE], M[iF]);
   92|   554k|}
blake2b.cpp:_ZN5Botan12_GLOBAL__N_15ROUNDILm12ELm5ELm1ELm15ELm14ELm13ELm4ELm10ELm0ELm7ELm6ELm3ELm9ELm2ELm8ELm11EEEvPmPKm:
   83|   554k|BOTAN_FORCE_INLINE void ROUND(uint64_t* v, const uint64_t* M) {
   84|   554k|   G(v[0], v[4], v[8], v[12], M[i0], M[i1]);
   85|   554k|   G(v[1], v[5], v[9], v[13], M[i2], M[i3]);
   86|   554k|   G(v[2], v[6], v[10], v[14], M[i4], M[i5]);
   87|   554k|   G(v[3], v[7], v[11], v[15], M[i6], M[i7]);
   88|   554k|   G(v[0], v[5], v[10], v[15], M[i8], M[i9]);
   89|   554k|   G(v[1], v[6], v[11], v[12], M[iA], M[iB]);
   90|   554k|   G(v[2], v[7], v[8], v[13], M[iC], M[iD]);
   91|   554k|   G(v[3], v[4], v[9], v[14], M[iE], M[iF]);
   92|   554k|}
blake2b.cpp:_ZN5Botan12_GLOBAL__N_15ROUNDILm13ELm11ELm7ELm14ELm12ELm1ELm3ELm9ELm5ELm0ELm15ELm4ELm8ELm6ELm2ELm10EEEvPmPKm:
   83|   554k|BOTAN_FORCE_INLINE void ROUND(uint64_t* v, const uint64_t* M) {
   84|   554k|   G(v[0], v[4], v[8], v[12], M[i0], M[i1]);
   85|   554k|   G(v[1], v[5], v[9], v[13], M[i2], M[i3]);
   86|   554k|   G(v[2], v[6], v[10], v[14], M[i4], M[i5]);
   87|   554k|   G(v[3], v[7], v[11], v[15], M[i6], M[i7]);
   88|   554k|   G(v[0], v[5], v[10], v[15], M[i8], M[i9]);
   89|   554k|   G(v[1], v[6], v[11], v[12], M[iA], M[iB]);
   90|   554k|   G(v[2], v[7], v[8], v[13], M[iC], M[iD]);
   91|   554k|   G(v[3], v[4], v[9], v[14], M[iE], M[iF]);
   92|   554k|}
blake2b.cpp:_ZN5Botan12_GLOBAL__N_15ROUNDILm6ELm15ELm14ELm9ELm11ELm3ELm0ELm8ELm12ELm2ELm13ELm7ELm1ELm4ELm10ELm5EEEvPmPKm:
   83|   554k|BOTAN_FORCE_INLINE void ROUND(uint64_t* v, const uint64_t* M) {
   84|   554k|   G(v[0], v[4], v[8], v[12], M[i0], M[i1]);
   85|   554k|   G(v[1], v[5], v[9], v[13], M[i2], M[i3]);
   86|   554k|   G(v[2], v[6], v[10], v[14], M[i4], M[i5]);
   87|   554k|   G(v[3], v[7], v[11], v[15], M[i6], M[i7]);
   88|   554k|   G(v[0], v[5], v[10], v[15], M[i8], M[i9]);
   89|   554k|   G(v[1], v[6], v[11], v[12], M[iA], M[iB]);
   90|   554k|   G(v[2], v[7], v[8], v[13], M[iC], M[iD]);
   91|   554k|   G(v[3], v[4], v[9], v[14], M[iE], M[iF]);
   92|   554k|}
blake2b.cpp:_ZN5Botan12_GLOBAL__N_15ROUNDILm10ELm2ELm8ELm4ELm7ELm6ELm1ELm5ELm15ELm11ELm9ELm14ELm3ELm12ELm13ELm0EEEvPmPKm:
   83|   554k|BOTAN_FORCE_INLINE void ROUND(uint64_t* v, const uint64_t* M) {
   84|   554k|   G(v[0], v[4], v[8], v[12], M[i0], M[i1]);
   85|   554k|   G(v[1], v[5], v[9], v[13], M[i2], M[i3]);
   86|   554k|   G(v[2], v[6], v[10], v[14], M[i4], M[i5]);
   87|   554k|   G(v[3], v[7], v[11], v[15], M[i6], M[i7]);
   88|   554k|   G(v[0], v[5], v[10], v[15], M[i8], M[i9]);
   89|   554k|   G(v[1], v[6], v[11], v[12], M[iA], M[iB]);
   90|   554k|   G(v[2], v[7], v[8], v[13], M[iC], M[iD]);
   91|   554k|   G(v[3], v[4], v[9], v[14], M[iE], M[iF]);
   92|   554k|}

_ZN5Botan5CRC248add_dataENSt3__14spanIKhLm18446744073709551615EEE:
   85|  37.5k|void CRC24::add_data(std::span<const uint8_t> input) {
   86|  37.5k|   uint32_t tmp = m_crc;
   87|       |
   88|       |   // Input is word aligned if WA & input == 0
   89|  37.5k|   static const uint8_t WA = sizeof(size_t) - 1;
   90|       |
   91|       |   // Ensure input is word aligned before processing in parallel
   92|  38.3k|   for(; !input.empty() && (reinterpret_cast<uintptr_t>(input.data()) & WA) > 0; input = input.last(input.size() - 1)) {
  ------------------
  |  Branch (92:10): [True: 37.9k, False: 379]
  |  Branch (92:28): [True: 704, False: 37.2k]
  ------------------
   93|    704|      tmp = process8(tmp, input.front());
   94|    704|   }
   95|       |
   96|  1.69M|   while(input.size() >= 16) {
  ------------------
  |  Branch (96:10): [True: 1.65M, False: 37.5k]
  ------------------
   97|  1.65M|      uint32_t d[4];
   98|  1.65M|      load_le(d, input.data(), 4);
   99|  1.65M|      tmp = process32(tmp, d[0]);
  100|  1.65M|      tmp = process32(tmp, d[1]);
  101|  1.65M|      tmp = process32(tmp, d[2]);
  102|  1.65M|      tmp = process32(tmp, d[3]);
  103|       |
  104|  1.65M|      input = input.last(input.size() - 16);
  105|  1.65M|   }
  106|       |
  107|   209k|   for(; !input.empty(); input = input.last(input.size() - 1)) {
  ------------------
  |  Branch (107:10): [True: 171k, False: 37.5k]
  ------------------
  108|   171k|      tmp = process8(tmp, input.front());
  109|   171k|   }
  110|       |
  111|  37.5k|   m_crc = tmp;
  112|  37.5k|}
_ZN5Botan5CRC2412final_resultENSt3__14spanIhLm18446744073709551615EEE:
  117|  23.4k|void CRC24::final_result(std::span<uint8_t> output) {
  118|  23.4k|   output[0] = get_byte<3>(m_crc);
  119|  23.4k|   output[1] = get_byte<2>(m_crc);
  120|  23.4k|   output[2] = get_byte<1>(m_crc);
  121|  23.4k|   clear();
  122|  23.4k|}
crc24.cpp:_ZN5Botan12_GLOBAL__N_18process8Ejh:
   59|   172k|inline uint32_t process8(uint32_t crc, uint8_t data) {
   60|   172k|   return (crc >> 8) ^ CRC24_T0[get_byte<3>(crc) ^ data];
   61|   172k|}
crc24.cpp:_ZN5Botan12_GLOBAL__N_19process32Ejj:
   63|  6.61M|inline uint32_t process32(uint32_t crc, uint32_t word) {
   64|  6.61M|   const uint32_t sum = crc ^ word;
   65|       |
   66|  6.61M|   return CRC24_T3[get_byte<3>(sum)] ^ CRC24_T2[get_byte<2>(sum)] ^ CRC24_T1[get_byte<1>(sum)] ^
   67|  6.61M|          CRC24_T0[get_byte<0>(sum)];
   68|  6.61M|}

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

_ZN5Botan3MD510compress_nERNSt3__16vectorIjNS_16secure_allocatorIjEEEENS1_4spanIKhLm18446744073709551615EEEm:
   62|  3.41M|void MD5::compress_n(MD5::digest_type& digest, std::span<const uint8_t> input, size_t blocks) {
   63|  3.41M|   uint32_t A = digest[0];
   64|  3.41M|   uint32_t B = digest[1];
   65|  3.41M|   uint32_t C = digest[2];
   66|  3.41M|   uint32_t D = digest[3];
   67|  3.41M|   std::array<uint32_t, 16> M{};
   68|       |
   69|  3.41M|   BufferSlicer in(input);
   70|       |
   71|  6.83M|   for(size_t i = 0; i != blocks; ++i) {
  ------------------
  |  Branch (71:22): [True: 3.42M, False: 3.41M]
  ------------------
   72|  3.42M|      load_le(M, in.take<block_bytes>());
   73|       |
   74|       |      // clang-format off
   75|       |
   76|  3.42M|      FF< 7>(A, B, C, D, M[ 0] + 0xD76AA478);
   77|  3.42M|      FF<12>(D, A, B, C, M[ 1] + 0xE8C7B756);
   78|  3.42M|      FF<17>(C, D, A, B, M[ 2] + 0x242070DB);
   79|  3.42M|      FF<22>(B, C, D, A, M[ 3] + 0xC1BDCEEE);
   80|  3.42M|      FF< 7>(A, B, C, D, M[ 4] + 0xF57C0FAF);
   81|  3.42M|      FF<12>(D, A, B, C, M[ 5] + 0x4787C62A);
   82|  3.42M|      FF<17>(C, D, A, B, M[ 6] + 0xA8304613);
   83|  3.42M|      FF<22>(B, C, D, A, M[ 7] + 0xFD469501);
   84|  3.42M|      FF< 7>(A, B, C, D, M[ 8] + 0x698098D8);
   85|  3.42M|      FF<12>(D, A, B, C, M[ 9] + 0x8B44F7AF);
   86|  3.42M|      FF<17>(C, D, A, B, M[10] + 0xFFFF5BB1);
   87|  3.42M|      FF<22>(B, C, D, A, M[11] + 0x895CD7BE);
   88|  3.42M|      FF< 7>(A, B, C, D, M[12] + 0x6B901122);
   89|  3.42M|      FF<12>(D, A, B, C, M[13] + 0xFD987193);
   90|  3.42M|      FF<17>(C, D, A, B, M[14] + 0xA679438E);
   91|  3.42M|      FF<22>(B, C, D, A, M[15] + 0x49B40821);
   92|       |
   93|  3.42M|      GG< 5>(A, B, C, D, M[ 1] + 0xF61E2562);
   94|  3.42M|      GG< 9>(D, A, B, C, M[ 6] + 0xC040B340);
   95|  3.42M|      GG<14>(C, D, A, B, M[11] + 0x265E5A51);
   96|  3.42M|      GG<20>(B, C, D, A, M[ 0] + 0xE9B6C7AA);
   97|  3.42M|      GG< 5>(A, B, C, D, M[ 5] + 0xD62F105D);
   98|  3.42M|      GG< 9>(D, A, B, C, M[10] + 0x02441453);
   99|  3.42M|      GG<14>(C, D, A, B, M[15] + 0xD8A1E681);
  100|  3.42M|      GG<20>(B, C, D, A, M[ 4] + 0xE7D3FBC8);
  101|  3.42M|      GG< 5>(A, B, C, D, M[ 9] + 0x21E1CDE6);
  102|  3.42M|      GG< 9>(D, A, B, C, M[14] + 0xC33707D6);
  103|  3.42M|      GG<14>(C, D, A, B, M[ 3] + 0xF4D50D87);
  104|  3.42M|      GG<20>(B, C, D, A, M[ 8] + 0x455A14ED);
  105|  3.42M|      GG< 5>(A, B, C, D, M[13] + 0xA9E3E905);
  106|  3.42M|      GG< 9>(D, A, B, C, M[ 2] + 0xFCEFA3F8);
  107|  3.42M|      GG<14>(C, D, A, B, M[ 7] + 0x676F02D9);
  108|  3.42M|      GG<20>(B, C, D, A, M[12] + 0x8D2A4C8A);
  109|       |
  110|  3.42M|      HH< 4>(A, B, C, D, M[ 5] + 0xFFFA3942);
  111|  3.42M|      HH<11>(D, A, B, C, M[ 8] + 0x8771F681);
  112|  3.42M|      HH<16>(C, D, A, B, M[11] + 0x6D9D6122);
  113|  3.42M|      HH<23>(B, C, D, A, M[14] + 0xFDE5380C);
  114|  3.42M|      HH< 4>(A, B, C, D, M[ 1] + 0xA4BEEA44);
  115|  3.42M|      HH<11>(D, A, B, C, M[ 4] + 0x4BDECFA9);
  116|  3.42M|      HH<16>(C, D, A, B, M[ 7] + 0xF6BB4B60);
  117|  3.42M|      HH<23>(B, C, D, A, M[10] + 0xBEBFBC70);
  118|  3.42M|      HH< 4>(A, B, C, D, M[13] + 0x289B7EC6);
  119|  3.42M|      HH<11>(D, A, B, C, M[ 0] + 0xEAA127FA);
  120|  3.42M|      HH<16>(C, D, A, B, M[ 3] + 0xD4EF3085);
  121|  3.42M|      HH<23>(B, C, D, A, M[ 6] + 0x04881D05);
  122|  3.42M|      HH< 4>(A, B, C, D, M[ 9] + 0xD9D4D039);
  123|  3.42M|      HH<11>(D, A, B, C, M[12] + 0xE6DB99E5);
  124|  3.42M|      HH<16>(C, D, A, B, M[15] + 0x1FA27CF8);
  125|  3.42M|      HH<23>(B, C, D, A, M[ 2] + 0xC4AC5665);
  126|       |
  127|  3.42M|      II< 6>(A, B, C, D, M[ 0] + 0xF4292244);
  128|  3.42M|      II<10>(D, A, B, C, M[ 7] + 0x432AFF97);
  129|  3.42M|      II<15>(C, D, A, B, M[14] + 0xAB9423A7);
  130|  3.42M|      II<21>(B, C, D, A, M[ 5] + 0xFC93A039);
  131|  3.42M|      II< 6>(A, B, C, D, M[12] + 0x655B59C3);
  132|  3.42M|      II<10>(D, A, B, C, M[ 3] + 0x8F0CCC92);
  133|  3.42M|      II<15>(C, D, A, B, M[10] + 0xFFEFF47D);
  134|  3.42M|      II<21>(B, C, D, A, M[ 1] + 0x85845DD1);
  135|  3.42M|      II< 6>(A, B, C, D, M[ 8] + 0x6FA87E4F);
  136|  3.42M|      II<10>(D, A, B, C, M[15] + 0xFE2CE6E0);
  137|  3.42M|      II<15>(C, D, A, B, M[ 6] + 0xA3014314);
  138|  3.42M|      II<21>(B, C, D, A, M[13] + 0x4E0811A1);
  139|  3.42M|      II< 6>(A, B, C, D, M[ 4] + 0xF7537E82);
  140|  3.42M|      II<10>(D, A, B, C, M[11] + 0xBD3AF235);
  141|  3.42M|      II<15>(C, D, A, B, M[ 2] + 0x2AD7D2BB);
  142|  3.42M|      II<21>(B, C, D, A, M[ 9] + 0xEB86D391);
  143|       |
  144|       |      // clang-format off
  145|       |
  146|  3.42M|      A = (digest[0] += A);
  147|  3.42M|      B = (digest[1] += B);
  148|  3.42M|      C = (digest[2] += C);
  149|  3.42M|      D = (digest[3] += D);
  150|  3.42M|   }
  151|  3.41M|}
_ZN5Botan3MD54initERNSt3__16vectorIjNS_16secure_allocatorIjEEEE:
  153|  50.9k|void MD5::init(digest_type& digest) {
  154|  50.9k|   digest.assign({0x67452301, 0xEFCDAB89, 0x98BADCFE, 0x10325476});
  155|  50.9k|}
_ZNK5Botan3MD510new_objectEv:
  157|  4.18k|std::unique_ptr<HashFunction> MD5::new_object() const {
  158|  4.18k|   return std::make_unique<MD5>();
  159|  4.18k|}
_ZN5Botan3MD58add_dataENSt3__14spanIKhLm18446744073709551615EEE:
  165|  27.0M|void MD5::add_data(std::span<const uint8_t> input) {
  166|  27.0M|   m_md.update(input);
  167|  27.0M|}
_ZN5Botan3MD512final_resultENSt3__14spanIhLm18446744073709551615EEE:
  169|  21.5k|void MD5::final_result(std::span<uint8_t> output) {
  170|  21.5k|   m_md.final(output);
  171|  21.5k|}
md5.cpp:_ZN5Botan12_GLOBAL__N_12FFILm7EEEvRjjjjj:
   24|  13.6M|inline void FF(uint32_t& A, uint32_t B, uint32_t C, uint32_t D, uint32_t M) {
   25|  13.6M|   A += choose(B, C, D) + M;
   26|  13.6M|   A = rotl<S>(A) + B;
   27|  13.6M|}
md5.cpp:_ZN5Botan12_GLOBAL__N_12FFILm12EEEvRjjjjj:
   24|  13.6M|inline void FF(uint32_t& A, uint32_t B, uint32_t C, uint32_t D, uint32_t M) {
   25|  13.6M|   A += choose(B, C, D) + M;
   26|  13.6M|   A = rotl<S>(A) + B;
   27|  13.6M|}
md5.cpp:_ZN5Botan12_GLOBAL__N_12FFILm17EEEvRjjjjj:
   24|  13.6M|inline void FF(uint32_t& A, uint32_t B, uint32_t C, uint32_t D, uint32_t M) {
   25|  13.6M|   A += choose(B, C, D) + M;
   26|  13.6M|   A = rotl<S>(A) + B;
   27|  13.6M|}
md5.cpp:_ZN5Botan12_GLOBAL__N_12FFILm22EEEvRjjjjj:
   24|  13.6M|inline void FF(uint32_t& A, uint32_t B, uint32_t C, uint32_t D, uint32_t M) {
   25|  13.6M|   A += choose(B, C, D) + M;
   26|  13.6M|   A = rotl<S>(A) + B;
   27|  13.6M|}
md5.cpp:_ZN5Botan12_GLOBAL__N_12GGILm5EEEvRjjjjj:
   33|  13.6M|inline void GG(uint32_t& A, uint32_t B, uint32_t C, uint32_t D, uint32_t M) {
   34|  13.6M|   A += choose(D, B, C) + M;
   35|  13.6M|   A = rotl<S>(A) + B;
   36|  13.6M|}
md5.cpp:_ZN5Botan12_GLOBAL__N_12GGILm9EEEvRjjjjj:
   33|  13.6M|inline void GG(uint32_t& A, uint32_t B, uint32_t C, uint32_t D, uint32_t M) {
   34|  13.6M|   A += choose(D, B, C) + M;
   35|  13.6M|   A = rotl<S>(A) + B;
   36|  13.6M|}
md5.cpp:_ZN5Botan12_GLOBAL__N_12GGILm14EEEvRjjjjj:
   33|  13.6M|inline void GG(uint32_t& A, uint32_t B, uint32_t C, uint32_t D, uint32_t M) {
   34|  13.6M|   A += choose(D, B, C) + M;
   35|  13.6M|   A = rotl<S>(A) + B;
   36|  13.6M|}
md5.cpp:_ZN5Botan12_GLOBAL__N_12GGILm20EEEvRjjjjj:
   33|  13.6M|inline void GG(uint32_t& A, uint32_t B, uint32_t C, uint32_t D, uint32_t M) {
   34|  13.6M|   A += choose(D, B, C) + M;
   35|  13.6M|   A = rotl<S>(A) + B;
   36|  13.6M|}
md5.cpp:_ZN5Botan12_GLOBAL__N_12HHILm4EEEvRjjjjj:
   42|  13.6M|inline void HH(uint32_t& A, uint32_t B, uint32_t C, uint32_t D, uint32_t M) {
   43|  13.6M|   A += (B ^ C ^ D) + M;
   44|  13.6M|   A = rotl<S>(A) + B;
   45|  13.6M|}
md5.cpp:_ZN5Botan12_GLOBAL__N_12HHILm11EEEvRjjjjj:
   42|  13.6M|inline void HH(uint32_t& A, uint32_t B, uint32_t C, uint32_t D, uint32_t M) {
   43|  13.6M|   A += (B ^ C ^ D) + M;
   44|  13.6M|   A = rotl<S>(A) + B;
   45|  13.6M|}
md5.cpp:_ZN5Botan12_GLOBAL__N_12HHILm16EEEvRjjjjj:
   42|  13.6M|inline void HH(uint32_t& A, uint32_t B, uint32_t C, uint32_t D, uint32_t M) {
   43|  13.6M|   A += (B ^ C ^ D) + M;
   44|  13.6M|   A = rotl<S>(A) + B;
   45|  13.6M|}
md5.cpp:_ZN5Botan12_GLOBAL__N_12HHILm23EEEvRjjjjj:
   42|  13.6M|inline void HH(uint32_t& A, uint32_t B, uint32_t C, uint32_t D, uint32_t M) {
   43|  13.6M|   A += (B ^ C ^ D) + M;
   44|  13.6M|   A = rotl<S>(A) + B;
   45|  13.6M|}
md5.cpp:_ZN5Botan12_GLOBAL__N_12IIILm6EEEvRjjjjj:
   51|  13.6M|inline void II(uint32_t& A, uint32_t B, uint32_t C, uint32_t D, uint32_t M) {
   52|       |   // This expr is choose(D, B ^ C, ~C), but that is slower
   53|  13.6M|   A += (C ^ (B | ~D)) + M;
   54|  13.6M|   A = rotl<S>(A) + B;
   55|  13.6M|}
md5.cpp:_ZN5Botan12_GLOBAL__N_12IIILm10EEEvRjjjjj:
   51|  13.6M|inline void II(uint32_t& A, uint32_t B, uint32_t C, uint32_t D, uint32_t M) {
   52|       |   // This expr is choose(D, B ^ C, ~C), but that is slower
   53|  13.6M|   A += (C ^ (B | ~D)) + M;
   54|  13.6M|   A = rotl<S>(A) + B;
   55|  13.6M|}
md5.cpp:_ZN5Botan12_GLOBAL__N_12IIILm15EEEvRjjjjj:
   51|  13.6M|inline void II(uint32_t& A, uint32_t B, uint32_t C, uint32_t D, uint32_t M) {
   52|       |   // This expr is choose(D, B ^ C, ~C), but that is slower
   53|  13.6M|   A += (C ^ (B | ~D)) + M;
   54|  13.6M|   A = rotl<S>(A) + B;
   55|  13.6M|}
md5.cpp:_ZN5Botan12_GLOBAL__N_12IIILm21EEEvRjjjjj:
   51|  13.6M|inline void II(uint32_t& A, uint32_t B, uint32_t C, uint32_t D, uint32_t M) {
   52|       |   // This expr is choose(D, B ^ C, ~C), but that is slower
   53|  13.6M|   A += (C ^ (B | ~D)) + M;
   54|  13.6M|   A = rotl<S>(A) + B;
   55|  13.6M|}

_ZN5Botan10RIPEMD_16010compress_nERNSt3__16vectorIjNS_16secure_allocatorIjEEEENS1_4spanIKhLm18446744073709551615EEEm:
   76|  26.2M|void RIPEMD_160::compress_n(digest_type& digest, std::span<const uint8_t> input, size_t blocks) {
   77|  26.2M|   constexpr uint32_t MAGIC2 = 0x5A827999;
   78|  26.2M|   constexpr uint32_t MAGIC3 = 0x6ED9EBA1;
   79|  26.2M|   constexpr uint32_t MAGIC4 = 0x8F1BBCDC;
   80|  26.2M|   constexpr uint32_t MAGIC5 = 0xA953FD4E;
   81|  26.2M|   constexpr uint32_t MAGIC6 = 0x50A28BE6;
   82|  26.2M|   constexpr uint32_t MAGIC7 = 0x5C4DD124;
   83|  26.2M|   constexpr uint32_t MAGIC8 = 0x6D703EF3;
   84|  26.2M|   constexpr uint32_t MAGIC9 = 0x7A6D76E9;
   85|       |
   86|  26.2M|   std::array<uint32_t, 16> M{};
   87|       |
   88|  26.2M|   BufferSlicer in(input);
   89|       |
   90|  52.6M|   for(size_t i = 0; i != blocks; ++i) {
  ------------------
  |  Branch (90:22): [True: 26.4M, False: 26.2M]
  ------------------
   91|  26.4M|      load_le(M, in.take<block_bytes>());
   92|       |
   93|  26.4M|      uint32_t A1 = digest[0];
   94|  26.4M|      uint32_t B1 = digest[1];
   95|  26.4M|      uint32_t C1 = digest[2];
   96|  26.4M|      uint32_t D1 = digest[3];
   97|  26.4M|      uint32_t E1 = digest[4];
   98|       |
   99|  26.4M|      uint32_t A2 = A1;
  100|  26.4M|      uint32_t B2 = B1;
  101|  26.4M|      uint32_t C2 = C1;
  102|  26.4M|      uint32_t D2 = D1;
  103|  26.4M|      uint32_t E2 = E1;
  104|       |
  105|       |      // clang-format off
  106|       |
  107|  26.4M|      F1<11>(A1, B1, C1, D1, E1, M[ 0]);
  108|  26.4M|      F5< 8>(A2, B2, C2, D2, E2, M[ 5] + MAGIC6);
  109|  26.4M|      F1<14>(E1, A1, B1, C1, D1, M[ 1]);
  110|  26.4M|      F5< 9>(E2, A2, B2, C2, D2, M[14] + MAGIC6);
  111|  26.4M|      F1<15>(D1, E1, A1, B1, C1, M[ 2]);
  112|  26.4M|      F5< 9>(D2, E2, A2, B2, C2, M[ 7] + MAGIC6);
  113|  26.4M|      F1<12>(C1, D1, E1, A1, B1, M[ 3]);
  114|  26.4M|      F5<11>(C2, D2, E2, A2, B2, M[ 0] + MAGIC6);
  115|  26.4M|      F1< 5>(B1, C1, D1, E1, A1, M[ 4]);
  116|  26.4M|      F5<13>(B2, C2, D2, E2, A2, M[ 9] + MAGIC6);
  117|  26.4M|      F1< 8>(A1, B1, C1, D1, E1, M[ 5]);
  118|  26.4M|      F5<15>(A2, B2, C2, D2, E2, M[ 2] + MAGIC6);
  119|  26.4M|      F1< 7>(E1, A1, B1, C1, D1, M[ 6]);
  120|  26.4M|      F5<15>(E2, A2, B2, C2, D2, M[11] + MAGIC6);
  121|  26.4M|      F1< 9>(D1, E1, A1, B1, C1, M[ 7]);
  122|  26.4M|      F5< 5>(D2, E2, A2, B2, C2, M[ 4] + MAGIC6);
  123|  26.4M|      F1<11>(C1, D1, E1, A1, B1, M[ 8]);
  124|  26.4M|      F5< 7>(C2, D2, E2, A2, B2, M[13] + MAGIC6);
  125|  26.4M|      F1<13>(B1, C1, D1, E1, A1, M[ 9]);
  126|  26.4M|      F5< 7>(B2, C2, D2, E2, A2, M[ 6] + MAGIC6);
  127|  26.4M|      F1<14>(A1, B1, C1, D1, E1, M[10]);
  128|  26.4M|      F5< 8>(A2, B2, C2, D2, E2, M[15] + MAGIC6);
  129|  26.4M|      F1<15>(E1, A1, B1, C1, D1, M[11]);
  130|  26.4M|      F5<11>(E2, A2, B2, C2, D2, M[ 8] + MAGIC6);
  131|  26.4M|      F1< 6>(D1, E1, A1, B1, C1, M[12]);
  132|  26.4M|      F5<14>(D2, E2, A2, B2, C2, M[ 1] + MAGIC6);
  133|  26.4M|      F1< 7>(C1, D1, E1, A1, B1, M[13]);
  134|  26.4M|      F5<14>(C2, D2, E2, A2, B2, M[10] + MAGIC6);
  135|  26.4M|      F1< 9>(B1, C1, D1, E1, A1, M[14]);
  136|  26.4M|      F5<12>(B2, C2, D2, E2, A2, M[ 3] + MAGIC6);
  137|  26.4M|      F1< 8>(A1, B1, C1, D1, E1, M[15]);
  138|  26.4M|      F5< 6>(A2, B2, C2, D2, E2, M[12] + MAGIC6);
  139|       |
  140|  26.4M|      F2< 7>(E1, A1, B1, C1, D1, M[ 7] + MAGIC2);
  141|  26.4M|      F4< 9>(E2, A2, B2, C2, D2, M[ 6] + MAGIC7);
  142|  26.4M|      F2< 6>(D1, E1, A1, B1, C1, M[ 4] + MAGIC2);
  143|  26.4M|      F4<13>(D2, E2, A2, B2, C2, M[11] + MAGIC7);
  144|  26.4M|      F2< 8>(C1, D1, E1, A1, B1, M[13] + MAGIC2);
  145|  26.4M|      F4<15>(C2, D2, E2, A2, B2, M[ 3] + MAGIC7);
  146|  26.4M|      F2<13>(B1, C1, D1, E1, A1, M[ 1] + MAGIC2);
  147|  26.4M|      F4< 7>(B2, C2, D2, E2, A2, M[ 7] + MAGIC7);
  148|  26.4M|      F2<11>(A1, B1, C1, D1, E1, M[10] + MAGIC2);
  149|  26.4M|      F4<12>(A2, B2, C2, D2, E2, M[ 0] + MAGIC7);
  150|  26.4M|      F2< 9>(E1, A1, B1, C1, D1, M[ 6] + MAGIC2);
  151|  26.4M|      F4< 8>(E2, A2, B2, C2, D2, M[13] + MAGIC7);
  152|  26.4M|      F2< 7>(D1, E1, A1, B1, C1, M[15] + MAGIC2);
  153|  26.4M|      F4< 9>(D2, E2, A2, B2, C2, M[ 5] + MAGIC7);
  154|  26.4M|      F2<15>(C1, D1, E1, A1, B1, M[ 3] + MAGIC2);
  155|  26.4M|      F4<11>(C2, D2, E2, A2, B2, M[10] + MAGIC7);
  156|  26.4M|      F2< 7>(B1, C1, D1, E1, A1, M[12] + MAGIC2);
  157|  26.4M|      F4< 7>(B2, C2, D2, E2, A2, M[14] + MAGIC7);
  158|  26.4M|      F2<12>(A1, B1, C1, D1, E1, M[ 0] + MAGIC2);
  159|  26.4M|      F4< 7>(A2, B2, C2, D2, E2, M[15] + MAGIC7);
  160|  26.4M|      F2<15>(E1, A1, B1, C1, D1, M[ 9] + MAGIC2);
  161|  26.4M|      F4<12>(E2, A2, B2, C2, D2, M[ 8] + MAGIC7);
  162|  26.4M|      F2< 9>(D1, E1, A1, B1, C1, M[ 5] + MAGIC2);
  163|  26.4M|      F4< 7>(D2, E2, A2, B2, C2, M[12] + MAGIC7);
  164|  26.4M|      F2<11>(C1, D1, E1, A1, B1, M[ 2] + MAGIC2);
  165|  26.4M|      F4< 6>(C2, D2, E2, A2, B2, M[ 4] + MAGIC7);
  166|  26.4M|      F2< 7>(B1, C1, D1, E1, A1, M[14] + MAGIC2);
  167|  26.4M|      F4<15>(B2, C2, D2, E2, A2, M[ 9] + MAGIC7);
  168|  26.4M|      F2<13>(A1, B1, C1, D1, E1, M[11] + MAGIC2);
  169|  26.4M|      F4<13>(A2, B2, C2, D2, E2, M[ 1] + MAGIC7);
  170|  26.4M|      F2<12>(E1, A1, B1, C1, D1, M[ 8] + MAGIC2);
  171|  26.4M|      F4<11>(E2, A2, B2, C2, D2, M[ 2] + MAGIC7);
  172|       |
  173|  26.4M|      F3<11>(D1, E1, A1, B1, C1, M[ 3] + MAGIC3);
  174|  26.4M|      F3< 9>(D2, E2, A2, B2, C2, M[15] + MAGIC8);
  175|  26.4M|      F3<13>(C1, D1, E1, A1, B1, M[10] + MAGIC3);
  176|  26.4M|      F3< 7>(C2, D2, E2, A2, B2, M[ 5] + MAGIC8);
  177|  26.4M|      F3< 6>(B1, C1, D1, E1, A1, M[14] + MAGIC3);
  178|  26.4M|      F3<15>(B2, C2, D2, E2, A2, M[ 1] + MAGIC8);
  179|  26.4M|      F3< 7>(A1, B1, C1, D1, E1, M[ 4] + MAGIC3);
  180|  26.4M|      F3<11>(A2, B2, C2, D2, E2, M[ 3] + MAGIC8);
  181|  26.4M|      F3<14>(E1, A1, B1, C1, D1, M[ 9] + MAGIC3);
  182|  26.4M|      F3< 8>(E2, A2, B2, C2, D2, M[ 7] + MAGIC8);
  183|  26.4M|      F3< 9>(D1, E1, A1, B1, C1, M[15] + MAGIC3);
  184|  26.4M|      F3< 6>(D2, E2, A2, B2, C2, M[14] + MAGIC8);
  185|  26.4M|      F3<13>(C1, D1, E1, A1, B1, M[ 8] + MAGIC3);
  186|  26.4M|      F3< 6>(C2, D2, E2, A2, B2, M[ 6] + MAGIC8);
  187|  26.4M|      F3<15>(B1, C1, D1, E1, A1, M[ 1] + MAGIC3);
  188|  26.4M|      F3<14>(B2, C2, D2, E2, A2, M[ 9] + MAGIC8);
  189|  26.4M|      F3<14>(A1, B1, C1, D1, E1, M[ 2] + MAGIC3);
  190|  26.4M|      F3<12>(A2, B2, C2, D2, E2, M[11] + MAGIC8);
  191|  26.4M|      F3< 8>(E1, A1, B1, C1, D1, M[ 7] + MAGIC3);
  192|  26.4M|      F3<13>(E2, A2, B2, C2, D2, M[ 8] + MAGIC8);
  193|  26.4M|      F3<13>(D1, E1, A1, B1, C1, M[ 0] + MAGIC3);
  194|  26.4M|      F3< 5>(D2, E2, A2, B2, C2, M[12] + MAGIC8);
  195|  26.4M|      F3< 6>(C1, D1, E1, A1, B1, M[ 6] + MAGIC3);
  196|  26.4M|      F3<14>(C2, D2, E2, A2, B2, M[ 2] + MAGIC8);
  197|  26.4M|      F3< 5>(B1, C1, D1, E1, A1, M[13] + MAGIC3);
  198|  26.4M|      F3<13>(B2, C2, D2, E2, A2, M[10] + MAGIC8);
  199|  26.4M|      F3<12>(A1, B1, C1, D1, E1, M[11] + MAGIC3);
  200|  26.4M|      F3<13>(A2, B2, C2, D2, E2, M[ 0] + MAGIC8);
  201|  26.4M|      F3< 7>(E1, A1, B1, C1, D1, M[ 5] + MAGIC3);
  202|  26.4M|      F3< 7>(E2, A2, B2, C2, D2, M[ 4] + MAGIC8);
  203|  26.4M|      F3< 5>(D1, E1, A1, B1, C1, M[12] + MAGIC3);
  204|  26.4M|      F3< 5>(D2, E2, A2, B2, C2, M[13] + MAGIC8);
  205|       |
  206|  26.4M|      F4<11>(C1, D1, E1, A1, B1, M[ 1] + MAGIC4);
  207|  26.4M|      F2<15>(C2, D2, E2, A2, B2, M[ 8] + MAGIC9);
  208|  26.4M|      F4<12>(B1, C1, D1, E1, A1, M[ 9] + MAGIC4);
  209|  26.4M|      F2< 5>(B2, C2, D2, E2, A2, M[ 6] + MAGIC9);
  210|  26.4M|      F4<14>(A1, B1, C1, D1, E1, M[11] + MAGIC4);
  211|  26.4M|      F2< 8>(A2, B2, C2, D2, E2, M[ 4] + MAGIC9);
  212|  26.4M|      F4<15>(E1, A1, B1, C1, D1, M[10] + MAGIC4);
  213|  26.4M|      F2<11>(E2, A2, B2, C2, D2, M[ 1] + MAGIC9);
  214|  26.4M|      F4<14>(D1, E1, A1, B1, C1, M[ 0] + MAGIC4);
  215|  26.4M|      F2<14>(D2, E2, A2, B2, C2, M[ 3] + MAGIC9);
  216|  26.4M|      F4<15>(C1, D1, E1, A1, B1, M[ 8] + MAGIC4);
  217|  26.4M|      F2<14>(C2, D2, E2, A2, B2, M[11] + MAGIC9);
  218|  26.4M|      F4< 9>(B1, C1, D1, E1, A1, M[12] + MAGIC4);
  219|  26.4M|      F2< 6>(B2, C2, D2, E2, A2, M[15] + MAGIC9);
  220|  26.4M|      F4< 8>(A1, B1, C1, D1, E1, M[ 4] + MAGIC4);
  221|  26.4M|      F2<14>(A2, B2, C2, D2, E2, M[ 0] + MAGIC9);
  222|  26.4M|      F4< 9>(E1, A1, B1, C1, D1, M[13] + MAGIC4);
  223|  26.4M|      F2< 6>(E2, A2, B2, C2, D2, M[ 5] + MAGIC9);
  224|  26.4M|      F4<14>(D1, E1, A1, B1, C1, M[ 3] + MAGIC4);
  225|  26.4M|      F2< 9>(D2, E2, A2, B2, C2, M[12] + MAGIC9);
  226|  26.4M|      F4< 5>(C1, D1, E1, A1, B1, M[ 7] + MAGIC4);
  227|  26.4M|      F2<12>(C2, D2, E2, A2, B2, M[ 2] + MAGIC9);
  228|  26.4M|      F4< 6>(B1, C1, D1, E1, A1, M[15] + MAGIC4);
  229|  26.4M|      F2< 9>(B2, C2, D2, E2, A2, M[13] + MAGIC9);
  230|  26.4M|      F4< 8>(A1, B1, C1, D1, E1, M[14] + MAGIC4);
  231|  26.4M|      F2<12>(A2, B2, C2, D2, E2, M[ 9] + MAGIC9);
  232|  26.4M|      F4< 6>(E1, A1, B1, C1, D1, M[ 5] + MAGIC4);
  233|  26.4M|      F2< 5>(E2, A2, B2, C2, D2, M[ 7] + MAGIC9);
  234|  26.4M|      F4< 5>(D1, E1, A1, B1, C1, M[ 6] + MAGIC4);
  235|  26.4M|      F2<15>(D2, E2, A2, B2, C2, M[10] + MAGIC9);
  236|  26.4M|      F4<12>(C1, D1, E1, A1, B1, M[ 2] + MAGIC4);
  237|  26.4M|      F2< 8>(C2, D2, E2, A2, B2, M[14] + MAGIC9);
  238|       |
  239|  26.4M|      F5< 9>(B1, C1, D1, E1, A1, M[ 4] + MAGIC5);
  240|  26.4M|      F1< 8>(B2, C2, D2, E2, A2, M[12]);
  241|  26.4M|      F5<15>(A1, B1, C1, D1, E1, M[ 0] + MAGIC5);
  242|  26.4M|      F1< 5>(A2, B2, C2, D2, E2, M[15]);
  243|  26.4M|      F5< 5>(E1, A1, B1, C1, D1, M[ 5] + MAGIC5);
  244|  26.4M|      F1<12>(E2, A2, B2, C2, D2, M[10]);
  245|  26.4M|      F5<11>(D1, E1, A1, B1, C1, M[ 9] + MAGIC5);
  246|  26.4M|      F1< 9>(D2, E2, A2, B2, C2, M[ 4]);
  247|  26.4M|      F5< 6>(C1, D1, E1, A1, B1, M[ 7] + MAGIC5);
  248|  26.4M|      F1<12>(C2, D2, E2, A2, B2, M[ 1]);
  249|  26.4M|      F5< 8>(B1, C1, D1, E1, A1, M[12] + MAGIC5);
  250|  26.4M|      F1< 5>(B2, C2, D2, E2, A2, M[ 5]);
  251|  26.4M|      F5<13>(A1, B1, C1, D1, E1, M[ 2] + MAGIC5);
  252|  26.4M|      F1<14>(A2, B2, C2, D2, E2, M[ 8]);
  253|  26.4M|      F5<12>(E1, A1, B1, C1, D1, M[10] + MAGIC5);
  254|  26.4M|      F1< 6>(E2, A2, B2, C2, D2, M[ 7]);
  255|  26.4M|      F5< 5>(D1, E1, A1, B1, C1, M[14] + MAGIC5);
  256|  26.4M|      F1< 8>(D2, E2, A2, B2, C2, M[ 6]);
  257|  26.4M|      F5<12>(C1, D1, E1, A1, B1, M[ 1] + MAGIC5);
  258|  26.4M|      F1<13>(C2, D2, E2, A2, B2, M[ 2]);
  259|  26.4M|      F5<13>(B1, C1, D1, E1, A1, M[ 3] + MAGIC5);
  260|  26.4M|      F1< 6>(B2, C2, D2, E2, A2, M[13]);
  261|  26.4M|      F5<14>(A1, B1, C1, D1, E1, M[ 8] + MAGIC5);
  262|  26.4M|      F1< 5>(A2, B2, C2, D2, E2, M[14]);
  263|  26.4M|      F5<11>(E1, A1, B1, C1, D1, M[11] + MAGIC5);
  264|  26.4M|      F1<15>(E2, A2, B2, C2, D2, M[ 0]);
  265|  26.4M|      F5< 8>(D1, E1, A1, B1, C1, M[ 6] + MAGIC5);
  266|  26.4M|      F1<13>(D2, E2, A2, B2, C2, M[ 3]);
  267|  26.4M|      F5< 5>(C1, D1, E1, A1, B1, M[15] + MAGIC5);
  268|  26.4M|      F1<11>(C2, D2, E2, A2, B2, M[ 9]);
  269|  26.4M|      F5< 6>(B1, C1, D1, E1, A1, M[13] + MAGIC5);
  270|  26.4M|      F1<11>(B2, C2, D2, E2, A2, M[11]);
  271|       |
  272|       |      // clang-format on
  273|       |
  274|  26.4M|      C1 = digest[1] + C1 + D2;
  275|  26.4M|      digest[1] = digest[2] + D1 + E2;
  276|  26.4M|      digest[2] = digest[3] + E1 + A2;
  277|  26.4M|      digest[3] = digest[4] + A1 + B2;
  278|  26.4M|      digest[4] = digest[0] + B1 + C2;
  279|  26.4M|      digest[0] = C1;
  280|  26.4M|   }
  281|  26.2M|}
_ZN5Botan10RIPEMD_1604initERNSt3__16vectorIjNS_16secure_allocatorIjEEEE:
  283|  8.73k|void RIPEMD_160::init(digest_type& digest) {
  284|  8.73k|   digest.assign({0x67452301, 0xEFCDAB89, 0x98BADCFE, 0x10325476, 0xC3D2E1F0});
  285|  8.73k|}
_ZNK5Botan10RIPEMD_16010new_objectEv:
  287|  1.87k|std::unique_ptr<HashFunction> RIPEMD_160::new_object() const {
  288|  1.87k|   return std::make_unique<RIPEMD_160>();
  289|  1.87k|}
_ZN5Botan10RIPEMD_1608add_dataENSt3__14spanIKhLm18446744073709551615EEE:
  295|   189M|void RIPEMD_160::add_data(std::span<const uint8_t> input) {
  296|   189M|   m_md.update(input);
  297|   189M|}
_ZN5Botan10RIPEMD_16012final_resultENSt3__14spanIhLm18446744073709551615EEE:
  299|  3.42k|void RIPEMD_160::final_result(std::span<uint8_t> output) {
  300|  3.42k|   m_md.final(output);
  301|  3.42k|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F1ILm11EEEvRjjS2_jjj:
   25|   105M|inline void F1(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   26|   105M|   A += (B ^ C ^ D) + M;
   27|   105M|   A = rotl<S>(A) + E;
   28|   105M|   C = rotl<10>(C);
   29|   105M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F5ILm8EEEvRjjS2_jjj:
   65|   105M|inline void F5(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   66|   105M|   A += (B ^ (C | ~D)) + M;
   67|   105M|   A = rotl<S>(A) + E;
   68|   105M|   C = rotl<10>(C);
   69|   105M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F1ILm14EEEvRjjS2_jjj:
   25|  79.2M|inline void F1(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   26|  79.2M|   A += (B ^ C ^ D) + M;
   27|  79.2M|   A = rotl<S>(A) + E;
   28|  79.2M|   C = rotl<10>(C);
   29|  79.2M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F5ILm9EEEvRjjS2_jjj:
   65|  79.2M|inline void F5(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   66|  79.2M|   A += (B ^ (C | ~D)) + M;
   67|  79.2M|   A = rotl<S>(A) + E;
   68|  79.2M|   C = rotl<10>(C);
   69|  79.2M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F1ILm15EEEvRjjS2_jjj:
   25|  79.2M|inline void F1(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   26|  79.2M|   A += (B ^ C ^ D) + M;
   27|  79.2M|   A = rotl<S>(A) + E;
   28|  79.2M|   C = rotl<10>(C);
   29|  79.2M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F1ILm12EEEvRjjS2_jjj:
   25|  79.2M|inline void F1(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   26|  79.2M|   A += (B ^ C ^ D) + M;
   27|  79.2M|   A = rotl<S>(A) + E;
   28|  79.2M|   C = rotl<10>(C);
   29|  79.2M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F5ILm11EEEvRjjS2_jjj:
   65|   105M|inline void F5(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   66|   105M|   A += (B ^ (C | ~D)) + M;
   67|   105M|   A = rotl<S>(A) + E;
   68|   105M|   C = rotl<10>(C);
   69|   105M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F1ILm5EEEvRjjS2_jjj:
   25|   105M|inline void F1(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   26|   105M|   A += (B ^ C ^ D) + M;
   27|   105M|   A = rotl<S>(A) + E;
   28|   105M|   C = rotl<10>(C);
   29|   105M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F5ILm13EEEvRjjS2_jjj:
   65|  79.2M|inline void F5(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   66|  79.2M|   A += (B ^ (C | ~D)) + M;
   67|  79.2M|   A = rotl<S>(A) + E;
   68|  79.2M|   C = rotl<10>(C);
   69|  79.2M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F1ILm8EEEvRjjS2_jjj:
   25|   105M|inline void F1(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   26|   105M|   A += (B ^ C ^ D) + M;
   27|   105M|   A = rotl<S>(A) + E;
   28|   105M|   C = rotl<10>(C);
   29|   105M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F5ILm15EEEvRjjS2_jjj:
   65|  79.2M|inline void F5(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   66|  79.2M|   A += (B ^ (C | ~D)) + M;
   67|  79.2M|   A = rotl<S>(A) + E;
   68|  79.2M|   C = rotl<10>(C);
   69|  79.2M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F1ILm7EEEvRjjS2_jjj:
   25|  52.8M|inline void F1(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   26|  52.8M|   A += (B ^ C ^ D) + M;
   27|  52.8M|   A = rotl<S>(A) + E;
   28|  52.8M|   C = rotl<10>(C);
   29|  52.8M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F1ILm9EEEvRjjS2_jjj:
   25|  79.2M|inline void F1(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   26|  79.2M|   A += (B ^ C ^ D) + M;
   27|  79.2M|   A = rotl<S>(A) + E;
   28|  79.2M|   C = rotl<10>(C);
   29|  79.2M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F5ILm5EEEvRjjS2_jjj:
   65|   105M|inline void F5(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   66|   105M|   A += (B ^ (C | ~D)) + M;
   67|   105M|   A = rotl<S>(A) + E;
   68|   105M|   C = rotl<10>(C);
   69|   105M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F5ILm7EEEvRjjS2_jjj:
   65|  52.8M|inline void F5(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   66|  52.8M|   A += (B ^ (C | ~D)) + M;
   67|  52.8M|   A = rotl<S>(A) + E;
   68|  52.8M|   C = rotl<10>(C);
   69|  52.8M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F1ILm13EEEvRjjS2_jjj:
   25|  79.2M|inline void F1(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   26|  79.2M|   A += (B ^ C ^ D) + M;
   27|  79.2M|   A = rotl<S>(A) + E;
   28|  79.2M|   C = rotl<10>(C);
   29|  79.2M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F1ILm6EEEvRjjS2_jjj:
   25|  79.2M|inline void F1(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   26|  79.2M|   A += (B ^ C ^ D) + M;
   27|  79.2M|   A = rotl<S>(A) + E;
   28|  79.2M|   C = rotl<10>(C);
   29|  79.2M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F5ILm14EEEvRjjS2_jjj:
   65|  79.2M|inline void F5(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   66|  79.2M|   A += (B ^ (C | ~D)) + M;
   67|  79.2M|   A = rotl<S>(A) + E;
   68|  79.2M|   C = rotl<10>(C);
   69|  79.2M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F5ILm12EEEvRjjS2_jjj:
   65|  79.2M|inline void F5(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   66|  79.2M|   A += (B ^ (C | ~D)) + M;
   67|  79.2M|   A = rotl<S>(A) + E;
   68|  79.2M|   C = rotl<10>(C);
   69|  79.2M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F5ILm6EEEvRjjS2_jjj:
   65|  79.2M|inline void F5(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   66|  79.2M|   A += (B ^ (C | ~D)) + M;
   67|  79.2M|   A = rotl<S>(A) + E;
   68|  79.2M|   C = rotl<10>(C);
   69|  79.2M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F2ILm7EEEvRjjS2_jjj:
   35|   105M|inline void F2(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   36|   105M|   A += choose(B, C, D) + M;
   37|   105M|   A = rotl<S>(A) + E;
   38|   105M|   C = rotl<10>(C);
   39|   105M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F4ILm9EEEvRjjS2_jjj:
   55|   105M|inline void F4(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   56|   105M|   A += choose(D, B, C) + M;
   57|   105M|   A = rotl<S>(A) + E;
   58|   105M|   C = rotl<10>(C);
   59|   105M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F2ILm6EEEvRjjS2_jjj:
   35|  79.2M|inline void F2(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   36|  79.2M|   A += choose(B, C, D) + M;
   37|  79.2M|   A = rotl<S>(A) + E;
   38|  79.2M|   C = rotl<10>(C);
   39|  79.2M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F4ILm13EEEvRjjS2_jjj:
   55|  52.8M|inline void F4(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   56|  52.8M|   A += choose(D, B, C) + M;
   57|  52.8M|   A = rotl<S>(A) + E;
   58|  52.8M|   C = rotl<10>(C);
   59|  52.8M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F2ILm8EEEvRjjS2_jjj:
   35|  79.2M|inline void F2(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   36|  79.2M|   A += choose(B, C, D) + M;
   37|  79.2M|   A = rotl<S>(A) + E;
   38|  79.2M|   C = rotl<10>(C);
   39|  79.2M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F4ILm15EEEvRjjS2_jjj:
   55|   105M|inline void F4(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   56|   105M|   A += choose(D, B, C) + M;
   57|   105M|   A = rotl<S>(A) + E;
   58|   105M|   C = rotl<10>(C);
   59|   105M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F2ILm13EEEvRjjS2_jjj:
   35|  52.8M|inline void F2(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   36|  52.8M|   A += choose(B, C, D) + M;
   37|  52.8M|   A = rotl<S>(A) + E;
   38|  52.8M|   C = rotl<10>(C);
   39|  52.8M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F4ILm7EEEvRjjS2_jjj:
   55|   105M|inline void F4(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   56|   105M|   A += choose(D, B, C) + M;
   57|   105M|   A = rotl<S>(A) + E;
   58|   105M|   C = rotl<10>(C);
   59|   105M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F2ILm11EEEvRjjS2_jjj:
   35|  79.2M|inline void F2(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   36|  79.2M|   A += choose(B, C, D) + M;
   37|  79.2M|   A = rotl<S>(A) + E;
   38|  79.2M|   C = rotl<10>(C);
   39|  79.2M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F4ILm12EEEvRjjS2_jjj:
   55|   105M|inline void F4(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   56|   105M|   A += choose(D, B, C) + M;
   57|   105M|   A = rotl<S>(A) + E;
   58|   105M|   C = rotl<10>(C);
   59|   105M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F2ILm9EEEvRjjS2_jjj:
   35|   105M|inline void F2(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   36|   105M|   A += choose(B, C, D) + M;
   37|   105M|   A = rotl<S>(A) + E;
   38|   105M|   C = rotl<10>(C);
   39|   105M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F4ILm8EEEvRjjS2_jjj:
   55|  79.2M|inline void F4(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   56|  79.2M|   A += choose(D, B, C) + M;
   57|  79.2M|   A = rotl<S>(A) + E;
   58|  79.2M|   C = rotl<10>(C);
   59|  79.2M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F2ILm15EEEvRjjS2_jjj:
   35|   105M|inline void F2(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   36|   105M|   A += choose(B, C, D) + M;
   37|   105M|   A = rotl<S>(A) + E;
   38|   105M|   C = rotl<10>(C);
   39|   105M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F4ILm11EEEvRjjS2_jjj:
   55|  79.2M|inline void F4(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   56|  79.2M|   A += choose(D, B, C) + M;
   57|  79.2M|   A = rotl<S>(A) + E;
   58|  79.2M|   C = rotl<10>(C);
   59|  79.2M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F2ILm12EEEvRjjS2_jjj:
   35|   105M|inline void F2(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   36|   105M|   A += choose(B, C, D) + M;
   37|   105M|   A = rotl<S>(A) + E;
   38|   105M|   C = rotl<10>(C);
   39|   105M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F4ILm6EEEvRjjS2_jjj:
   55|  79.2M|inline void F4(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   56|  79.2M|   A += choose(D, B, C) + M;
   57|  79.2M|   A = rotl<S>(A) + E;
   58|  79.2M|   C = rotl<10>(C);
   59|  79.2M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F3ILm11EEEvRjjS2_jjj:
   45|  52.8M|inline void F3(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   46|  52.8M|   A += (D ^ (B | ~C)) + M;
   47|  52.8M|   A = rotl<S>(A) + E;
   48|  52.8M|   C = rotl<10>(C);
   49|  52.8M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F3ILm9EEEvRjjS2_jjj:
   45|  52.8M|inline void F3(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   46|  52.8M|   A += (D ^ (B | ~C)) + M;
   47|  52.8M|   A = rotl<S>(A) + E;
   48|  52.8M|   C = rotl<10>(C);
   49|  52.8M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F3ILm13EEEvRjjS2_jjj:
   45|   158M|inline void F3(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   46|   158M|   A += (D ^ (B | ~C)) + M;
   47|   158M|   A = rotl<S>(A) + E;
   48|   158M|   C = rotl<10>(C);
   49|   158M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F3ILm7EEEvRjjS2_jjj:
   45|   105M|inline void F3(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   46|   105M|   A += (D ^ (B | ~C)) + M;
   47|   105M|   A = rotl<S>(A) + E;
   48|   105M|   C = rotl<10>(C);
   49|   105M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F3ILm6EEEvRjjS2_jjj:
   45|   105M|inline void F3(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   46|   105M|   A += (D ^ (B | ~C)) + M;
   47|   105M|   A = rotl<S>(A) + E;
   48|   105M|   C = rotl<10>(C);
   49|   105M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F3ILm15EEEvRjjS2_jjj:
   45|  52.8M|inline void F3(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   46|  52.8M|   A += (D ^ (B | ~C)) + M;
   47|  52.8M|   A = rotl<S>(A) + E;
   48|  52.8M|   C = rotl<10>(C);
   49|  52.8M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F3ILm14EEEvRjjS2_jjj:
   45|   105M|inline void F3(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   46|   105M|   A += (D ^ (B | ~C)) + M;
   47|   105M|   A = rotl<S>(A) + E;
   48|   105M|   C = rotl<10>(C);
   49|   105M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F3ILm8EEEvRjjS2_jjj:
   45|  52.8M|inline void F3(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   46|  52.8M|   A += (D ^ (B | ~C)) + M;
   47|  52.8M|   A = rotl<S>(A) + E;
   48|  52.8M|   C = rotl<10>(C);
   49|  52.8M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F3ILm12EEEvRjjS2_jjj:
   45|  52.8M|inline void F3(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   46|  52.8M|   A += (D ^ (B | ~C)) + M;
   47|  52.8M|   A = rotl<S>(A) + E;
   48|  52.8M|   C = rotl<10>(C);
   49|  52.8M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F3ILm5EEEvRjjS2_jjj:
   45|   105M|inline void F3(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   46|   105M|   A += (D ^ (B | ~C)) + M;
   47|   105M|   A = rotl<S>(A) + E;
   48|   105M|   C = rotl<10>(C);
   49|   105M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F2ILm5EEEvRjjS2_jjj:
   35|  52.8M|inline void F2(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   36|  52.8M|   A += choose(B, C, D) + M;
   37|  52.8M|   A = rotl<S>(A) + E;
   38|  52.8M|   C = rotl<10>(C);
   39|  52.8M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F4ILm14EEEvRjjS2_jjj:
   55|  79.2M|inline void F4(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   56|  79.2M|   A += choose(D, B, C) + M;
   57|  79.2M|   A = rotl<S>(A) + E;
   58|  79.2M|   C = rotl<10>(C);
   59|  79.2M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F2ILm14EEEvRjjS2_jjj:
   35|  79.2M|inline void F2(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   36|  79.2M|   A += choose(B, C, D) + M;
   37|  79.2M|   A = rotl<S>(A) + E;
   38|  79.2M|   C = rotl<10>(C);
   39|  79.2M|}
rmd160.cpp:_ZN5Botan12_GLOBAL__N_12F4ILm5EEEvRjjS2_jjj:
   55|  52.8M|inline void F4(uint32_t& A, uint32_t B, uint32_t& C, uint32_t D, uint32_t E, uint32_t M) {
   56|  52.8M|   A += choose(D, B, C) + M;
   57|  52.8M|   A = rotl<S>(A) + E;
   58|  52.8M|   C = rotl<10>(C);
   59|  52.8M|}

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

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

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

_ZN5Botan5SHA_3C2Em:
   17|  4.60k|      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|  4.60k|   if(output_bits != 224 && output_bits != 256 && output_bits != 384 && output_bits != 512) {
  ------------------
  |  Branch (20:7): [True: 4.60k, False: 0]
  |  Branch (20:29): [True: 2.03k, False: 2.57k]
  |  Branch (20:51): [True: 2.03k, False: 0]
  |  Branch (20:73): [True: 0, False: 2.03k]
  ------------------
   21|      0|      throw Invalid_Argument(fmt("SHA_3: Invalid output length {}", output_bits));
   22|      0|   }
   23|  4.60k|}
_ZNK5Botan5SHA_34nameEv:
   25|    144|std::string SHA_3::name() const {
   26|    144|   return fmt("SHA-3({})", m_output_length * 8);
   27|    144|}
_ZNK5Botan5SHA_310new_objectEv:
   37|  1.54k|std::unique_ptr<HashFunction> SHA_3::new_object() const {
   38|  1.54k|   return std::make_unique<SHA_3>(m_output_length * 8);
   39|  1.54k|}
_ZN5Botan5SHA_38add_dataENSt3__14spanIKhLm18446744073709551615EEE:
   45|  19.7M|void SHA_3::add_data(std::span<const uint8_t> input) {
   46|  19.7M|   m_keccak.absorb(input);
   47|  19.7M|}
_ZN5Botan5SHA_312final_resultENSt3__14spanIhLm18446744073709551615EEE:
   49|  1.73k|void SHA_3::final_result(std::span<uint8_t> output) {
   50|  1.73k|   m_keccak.finish();
   51|  1.73k|   m_keccak.squeeze(output);
   52|  1.73k|   m_keccak.clear();
   53|  1.73k|}

_ZN5Botan9SHAKE_256C2Em:
   45|    128|      m_keccak({.capacity_bits = 512, .padding = KeccakPadding::shake()}), m_output_bits(output_bits) {
   46|    128|   if(output_bits == 0 || output_bits % 8 != 0) {
  ------------------
  |  Branch (46:7): [True: 0, False: 128]
  |  Branch (46:27): [True: 0, False: 128]
  ------------------
   47|      0|      throw Invalid_Argument(fmt("SHAKE_256: Invalid output length {}", output_bits));
   48|      0|   }
   49|    128|}
_ZN5Botan9SHAKE_2568add_dataENSt3__14spanIKhLm18446744073709551615EEE:
   63|   510k|void SHAKE_256::add_data(std::span<const uint8_t> input) {
   64|   510k|   m_keccak.absorb(input);
   65|   510k|}
_ZN5Botan9SHAKE_25612final_resultENSt3__14spanIhLm18446744073709551615EEE:
   67|   164k|void SHAKE_256::final_result(std::span<uint8_t> output) {
   68|   164k|   m_keccak.finish();
   69|   164k|   m_keccak.squeeze(output);
   70|   164k|   clear();
   71|   164k|}

_ZN5Botan3SM310compress_nERNSt3__16vectorIjNS_16secure_allocatorIjEEEENS1_4spanIKhLm18446744073709551615EEEm:
   24|  3.27M|void SM3::compress_n(digest_type& digest, std::span<const uint8_t> input, size_t blocks) {
   25|       |#if defined(BOTAN_HAS_SM3_ARMV8)
   26|       |   if(CPUID::has(CPUID::Feature::SM3)) {
   27|       |      return compress_digest_armv8(digest, input, blocks);
   28|       |   }
   29|       |#endif
   30|       |
   31|       |#if defined(BOTAN_HAS_SM3_X86)
   32|       |   if(CPUID::has(CPUID::Feature::SM3, CPUID::Feature::AVX2)) {
   33|       |      return compress_digest_x86(digest, input, blocks);
   34|       |   }
   35|       |#endif
   36|       |
   37|       |#if defined(BOTAN_HAS_SM3_X86_AVX2_BMI2)
   38|       |   if(CPUID::has(CPUID::Feature::AVX2, CPUID::Feature::BMI)) {
   39|       |      return compress_digest_x86_avx2(digest, input, blocks);
   40|       |   }
   41|       |#endif
   42|       |
   43|  3.27M|   uint32_t A = digest[0];
   44|  3.27M|   uint32_t B = digest[1];
   45|  3.27M|   uint32_t C = digest[2];
   46|  3.27M|   uint32_t D = digest[3];
   47|  3.27M|   uint32_t E = digest[4];
   48|  3.27M|   uint32_t F = digest[5];
   49|  3.27M|   uint32_t G = digest[6];
   50|  3.27M|   uint32_t H = digest[7];
   51|  3.27M|   std::array<uint32_t, 16> W{};
   52|       |
   53|  3.27M|   BufferSlicer in(input);
   54|       |
   55|  6.56M|   for(size_t i = 0; i != blocks; ++i) {
  ------------------
  |  Branch (55:22): [True: 3.29M, False: 3.27M]
  ------------------
   56|  3.29M|      load_be(W, in.take<block_bytes>());
   57|       |
   58|       |      // clang-format off
   59|       |
   60|  3.29M|      R1(A, B, C, D, E, F, G, H, 0x79CC4519, W[ 0], W[ 4]);
   61|  3.29M|      W[ 0] = SM3_E(W[ 0], W[ 7], W[13], W[ 3], W[10]);
   62|  3.29M|      R1(D, A, B, C, H, E, F, G, 0xF3988A32, W[ 1], W[ 5]);
   63|  3.29M|      W[ 1] = SM3_E(W[ 1], W[ 8], W[14], W[ 4], W[11]);
   64|  3.29M|      R1(C, D, A, B, G, H, E, F, 0xE7311465, W[ 2], W[ 6]);
   65|  3.29M|      W[ 2] = SM3_E(W[ 2], W[ 9], W[15], W[ 5], W[12]);
   66|  3.29M|      R1(B, C, D, A, F, G, H, E, 0xCE6228CB, W[ 3], W[ 7]);
   67|  3.29M|      W[ 3] = SM3_E(W[ 3], W[10], W[ 0], W[ 6], W[13]);
   68|  3.29M|      R1(A, B, C, D, E, F, G, H, 0x9CC45197, W[ 4], W[ 8]);
   69|  3.29M|      W[ 4] = SM3_E(W[ 4], W[11], W[ 1], W[ 7], W[14]);
   70|  3.29M|      R1(D, A, B, C, H, E, F, G, 0x3988A32F, W[ 5], W[ 9]);
   71|  3.29M|      W[ 5] = SM3_E(W[ 5], W[12], W[ 2], W[ 8], W[15]);
   72|  3.29M|      R1(C, D, A, B, G, H, E, F, 0x7311465E, W[ 6], W[10]);
   73|  3.29M|      W[ 6] = SM3_E(W[ 6], W[13], W[ 3], W[ 9], W[ 0]);
   74|  3.29M|      R1(B, C, D, A, F, G, H, E, 0xE6228CBC, W[ 7], W[11]);
   75|  3.29M|      W[ 7] = SM3_E(W[ 7], W[14], W[ 4], W[10], W[ 1]);
   76|  3.29M|      R1(A, B, C, D, E, F, G, H, 0xCC451979, W[ 8], W[12]);
   77|  3.29M|      W[ 8] = SM3_E(W[ 8], W[15], W[ 5], W[11], W[ 2]);
   78|  3.29M|      R1(D, A, B, C, H, E, F, G, 0x988A32F3, W[ 9], W[13]);
   79|  3.29M|      W[ 9] = SM3_E(W[ 9], W[ 0], W[ 6], W[12], W[ 3]);
   80|  3.29M|      R1(C, D, A, B, G, H, E, F, 0x311465E7, W[10], W[14]);
   81|  3.29M|      W[10] = SM3_E(W[10], W[ 1], W[ 7], W[13], W[ 4]);
   82|  3.29M|      R1(B, C, D, A, F, G, H, E, 0x6228CBCE, W[11], W[15]);
   83|  3.29M|      W[11] = SM3_E(W[11], W[ 2], W[ 8], W[14], W[ 5]);
   84|  3.29M|      R1(A, B, C, D, E, F, G, H, 0xC451979C, W[12], W[ 0]);
   85|  3.29M|      W[12] = SM3_E(W[12], W[ 3], W[ 9], W[15], W[ 6]);
   86|  3.29M|      R1(D, A, B, C, H, E, F, G, 0x88A32F39, W[13], W[ 1]);
   87|  3.29M|      W[13] = SM3_E(W[13], W[ 4], W[10], W[ 0], W[ 7]);
   88|  3.29M|      R1(C, D, A, B, G, H, E, F, 0x11465E73, W[14], W[ 2]);
   89|  3.29M|      W[14] = SM3_E(W[14], W[ 5], W[11], W[ 1], W[ 8]);
   90|  3.29M|      R1(B, C, D, A, F, G, H, E, 0x228CBCE6, W[15], W[ 3]);
   91|  3.29M|      W[15] = SM3_E(W[15], W[ 6], W[12], W[ 2], W[ 9]);
   92|  3.29M|      R2(A, B, C, D, E, F, G, H, 0x9D8A7A87, W[ 0], W[ 4]);
   93|  3.29M|      W[ 0] = SM3_E(W[ 0], W[ 7], W[13], W[ 3], W[10]);
   94|  3.29M|      R2(D, A, B, C, H, E, F, G, 0x3B14F50F, W[ 1], W[ 5]);
   95|  3.29M|      W[ 1] = SM3_E(W[ 1], W[ 8], W[14], W[ 4], W[11]);
   96|  3.29M|      R2(C, D, A, B, G, H, E, F, 0x7629EA1E, W[ 2], W[ 6]);
   97|  3.29M|      W[ 2] = SM3_E(W[ 2], W[ 9], W[15], W[ 5], W[12]);
   98|  3.29M|      R2(B, C, D, A, F, G, H, E, 0xEC53D43C, W[ 3], W[ 7]);
   99|  3.29M|      W[ 3] = SM3_E(W[ 3], W[10], W[ 0], W[ 6], W[13]);
  100|  3.29M|      R2(A, B, C, D, E, F, G, H, 0xD8A7A879, W[ 4], W[ 8]);
  101|  3.29M|      W[ 4] = SM3_E(W[ 4], W[11], W[ 1], W[ 7], W[14]);
  102|  3.29M|      R2(D, A, B, C, H, E, F, G, 0xB14F50F3, W[ 5], W[ 9]);
  103|  3.29M|      W[ 5] = SM3_E(W[ 5], W[12], W[ 2], W[ 8], W[15]);
  104|  3.29M|      R2(C, D, A, B, G, H, E, F, 0x629EA1E7, W[ 6], W[10]);
  105|  3.29M|      W[ 6] = SM3_E(W[ 6], W[13], W[ 3], W[ 9], W[ 0]);
  106|  3.29M|      R2(B, C, D, A, F, G, H, E, 0xC53D43CE, W[ 7], W[11]);
  107|  3.29M|      W[ 7] = SM3_E(W[ 7], W[14], W[ 4], W[10], W[ 1]);
  108|  3.29M|      R2(A, B, C, D, E, F, G, H, 0x8A7A879D, W[ 8], W[12]);
  109|  3.29M|      W[ 8] = SM3_E(W[ 8], W[15], W[ 5], W[11], W[ 2]);
  110|  3.29M|      R2(D, A, B, C, H, E, F, G, 0x14F50F3B, W[ 9], W[13]);
  111|  3.29M|      W[ 9] = SM3_E(W[ 9], W[ 0], W[ 6], W[12], W[ 3]);
  112|  3.29M|      R2(C, D, A, B, G, H, E, F, 0x29EA1E76, W[10], W[14]);
  113|  3.29M|      W[10] = SM3_E(W[10], W[ 1], W[ 7], W[13], W[ 4]);
  114|  3.29M|      R2(B, C, D, A, F, G, H, E, 0x53D43CEC, W[11], W[15]);
  115|  3.29M|      W[11] = SM3_E(W[11], W[ 2], W[ 8], W[14], W[ 5]);
  116|  3.29M|      R2(A, B, C, D, E, F, G, H, 0xA7A879D8, W[12], W[ 0]);
  117|  3.29M|      W[12] = SM3_E(W[12], W[ 3], W[ 9], W[15], W[ 6]);
  118|  3.29M|      R2(D, A, B, C, H, E, F, G, 0x4F50F3B1, W[13], W[ 1]);
  119|  3.29M|      W[13] = SM3_E(W[13], W[ 4], W[10], W[ 0], W[ 7]);
  120|  3.29M|      R2(C, D, A, B, G, H, E, F, 0x9EA1E762, W[14], W[ 2]);
  121|  3.29M|      W[14] = SM3_E(W[14], W[ 5], W[11], W[ 1], W[ 8]);
  122|  3.29M|      R2(B, C, D, A, F, G, H, E, 0x3D43CEC5, W[15], W[ 3]);
  123|  3.29M|      W[15] = SM3_E(W[15], W[ 6], W[12], W[ 2], W[ 9]);
  124|  3.29M|      R2(A, B, C, D, E, F, G, H, 0x7A879D8A, W[ 0], W[ 4]);
  125|  3.29M|      W[ 0] = SM3_E(W[ 0], W[ 7], W[13], W[ 3], W[10]);
  126|  3.29M|      R2(D, A, B, C, H, E, F, G, 0xF50F3B14, W[ 1], W[ 5]);
  127|  3.29M|      W[ 1] = SM3_E(W[ 1], W[ 8], W[14], W[ 4], W[11]);
  128|  3.29M|      R2(C, D, A, B, G, H, E, F, 0xEA1E7629, W[ 2], W[ 6]);
  129|  3.29M|      W[ 2] = SM3_E(W[ 2], W[ 9], W[15], W[ 5], W[12]);
  130|  3.29M|      R2(B, C, D, A, F, G, H, E, 0xD43CEC53, W[ 3], W[ 7]);
  131|  3.29M|      W[ 3] = SM3_E(W[ 3], W[10], W[ 0], W[ 6], W[13]);
  132|  3.29M|      R2(A, B, C, D, E, F, G, H, 0xA879D8A7, W[ 4], W[ 8]);
  133|  3.29M|      W[ 4] = SM3_E(W[ 4], W[11], W[ 1], W[ 7], W[14]);
  134|  3.29M|      R2(D, A, B, C, H, E, F, G, 0x50F3B14F, W[ 5], W[ 9]);
  135|  3.29M|      W[ 5] = SM3_E(W[ 5], W[12], W[ 2], W[ 8], W[15]);
  136|  3.29M|      R2(C, D, A, B, G, H, E, F, 0xA1E7629E, W[ 6], W[10]);
  137|  3.29M|      W[ 6] = SM3_E(W[ 6], W[13], W[ 3], W[ 9], W[ 0]);
  138|  3.29M|      R2(B, C, D, A, F, G, H, E, 0x43CEC53D, W[ 7], W[11]);
  139|  3.29M|      W[ 7] = SM3_E(W[ 7], W[14], W[ 4], W[10], W[ 1]);
  140|  3.29M|      R2(A, B, C, D, E, F, G, H, 0x879D8A7A, W[ 8], W[12]);
  141|  3.29M|      W[ 8] = SM3_E(W[ 8], W[15], W[ 5], W[11], W[ 2]);
  142|  3.29M|      R2(D, A, B, C, H, E, F, G, 0x0F3B14F5, W[ 9], W[13]);
  143|  3.29M|      W[ 9] = SM3_E(W[ 9], W[ 0], W[ 6], W[12], W[ 3]);
  144|  3.29M|      R2(C, D, A, B, G, H, E, F, 0x1E7629EA, W[10], W[14]);
  145|  3.29M|      W[10] = SM3_E(W[10], W[ 1], W[ 7], W[13], W[ 4]);
  146|  3.29M|      R2(B, C, D, A, F, G, H, E, 0x3CEC53D4, W[11], W[15]);
  147|  3.29M|      W[11] = SM3_E(W[11], W[ 2], W[ 8], W[14], W[ 5]);
  148|  3.29M|      R2(A, B, C, D, E, F, G, H, 0x79D8A7A8, W[12], W[ 0]);
  149|  3.29M|      W[12] = SM3_E(W[12], W[ 3], W[ 9], W[15], W[ 6]);
  150|  3.29M|      R2(D, A, B, C, H, E, F, G, 0xF3B14F50, W[13], W[ 1]);
  151|  3.29M|      W[13] = SM3_E(W[13], W[ 4], W[10], W[ 0], W[ 7]);
  152|  3.29M|      R2(C, D, A, B, G, H, E, F, 0xE7629EA1, W[14], W[ 2]);
  153|  3.29M|      W[14] = SM3_E(W[14], W[ 5], W[11], W[ 1], W[ 8]);
  154|  3.29M|      R2(B, C, D, A, F, G, H, E, 0xCEC53D43, W[15], W[ 3]);
  155|  3.29M|      W[15] = SM3_E(W[15], W[ 6], W[12], W[ 2], W[ 9]);
  156|  3.29M|      R2(A, B, C, D, E, F, G, H, 0x9D8A7A87, W[ 0], W[ 4]);
  157|  3.29M|      W[ 0] = SM3_E(W[ 0], W[ 7], W[13], W[ 3], W[10]);
  158|  3.29M|      R2(D, A, B, C, H, E, F, G, 0x3B14F50F, W[ 1], W[ 5]);
  159|  3.29M|      W[ 1] = SM3_E(W[ 1], W[ 8], W[14], W[ 4], W[11]);
  160|  3.29M|      R2(C, D, A, B, G, H, E, F, 0x7629EA1E, W[ 2], W[ 6]);
  161|  3.29M|      W[ 2] = SM3_E(W[ 2], W[ 9], W[15], W[ 5], W[12]);
  162|  3.29M|      R2(B, C, D, A, F, G, H, E, 0xEC53D43C, W[ 3], W[ 7]);
  163|  3.29M|      W[ 3] = SM3_E(W[ 3], W[10], W[ 0], W[ 6], W[13]);
  164|  3.29M|      R2(A, B, C, D, E, F, G, H, 0xD8A7A879, W[ 4], W[ 8]);
  165|  3.29M|      R2(D, A, B, C, H, E, F, G, 0xB14F50F3, W[ 5], W[ 9]);
  166|  3.29M|      R2(C, D, A, B, G, H, E, F, 0x629EA1E7, W[ 6], W[10]);
  167|  3.29M|      R2(B, C, D, A, F, G, H, E, 0xC53D43CE, W[ 7], W[11]);
  168|  3.29M|      R2(A, B, C, D, E, F, G, H, 0x8A7A879D, W[ 8], W[12]);
  169|  3.29M|      R2(D, A, B, C, H, E, F, G, 0x14F50F3B, W[ 9], W[13]);
  170|  3.29M|      R2(C, D, A, B, G, H, E, F, 0x29EA1E76, W[10], W[14]);
  171|  3.29M|      R2(B, C, D, A, F, G, H, E, 0x53D43CEC, W[11], W[15]);
  172|  3.29M|      R2(A, B, C, D, E, F, G, H, 0xA7A879D8, W[12], W[ 0]);
  173|  3.29M|      R2(D, A, B, C, H, E, F, G, 0x4F50F3B1, W[13], W[ 1]);
  174|  3.29M|      R2(C, D, A, B, G, H, E, F, 0x9EA1E762, W[14], W[ 2]);
  175|  3.29M|      R2(B, C, D, A, F, G, H, E, 0x3D43CEC5, W[15], W[ 3]);
  176|       |
  177|       |      // clang-format on
  178|       |
  179|  3.29M|      A = (digest[0] ^= A);
  180|  3.29M|      B = (digest[1] ^= B);
  181|  3.29M|      C = (digest[2] ^= C);
  182|  3.29M|      D = (digest[3] ^= D);
  183|  3.29M|      E = (digest[4] ^= E);
  184|  3.29M|      F = (digest[5] ^= F);
  185|  3.29M|      G = (digest[6] ^= G);
  186|  3.29M|      H = (digest[7] ^= H);
  187|  3.29M|   }
  188|  3.27M|}
_ZN5Botan3SM34initERNSt3__16vectorIjNS_16secure_allocatorIjEEEE:
  190|  28.9k|void SM3::init(digest_type& digest) {
  191|  28.9k|   digest.assign(
  192|  28.9k|      {0x7380166fUL, 0x4914b2b9UL, 0x172442d7UL, 0xda8a0600UL, 0xa96f30bcUL, 0x163138aaUL, 0xe38dee4dUL, 0xb0fb0e4eUL});
  193|  28.9k|}
_ZNK5Botan3SM310new_objectEv:
  195|  3.50k|std::unique_ptr<HashFunction> SM3::new_object() const {
  196|  3.50k|   return std::make_unique<SM3>();
  197|  3.50k|}
_ZN5Botan3SM38add_dataENSt3__14spanIKhLm18446744073709551615EEE:
  203|  9.48M|void SM3::add_data(std::span<const uint8_t> input) {
  204|  9.48M|   m_md.update(input);
  205|  9.48M|}
_ZN5Botan3SM312final_resultENSt3__14spanIhLm18446744073709551615EEE:
  207|  12.3k|void SM3::final_result(std::span<uint8_t> output) {
  208|  12.3k|   m_md.final(output);
  209|  12.3k|}

_ZN5Botan4CMAC8add_dataENSt3__14spanIKhLm18446744073709551615EEE:
   21|   152k|void CMAC::add_data(std::span<const uint8_t> input) {
   22|   152k|   assert_key_material_set();
   23|       |
   24|   152k|   const size_t bs = output_length();
   25|       |
   26|   152k|   const size_t initial_fill = std::min(m_buffer.size() - m_position, input.size());
   27|   152k|   copy_mem(m_buffer.data() + m_position, input.data(), initial_fill);
   28|       |
   29|   152k|   if(m_position + input.size() > bs) {
  ------------------
  |  Branch (29:7): [True: 134k, False: 18.3k]
  ------------------
   30|   134k|      xor_buf(m_state, m_buffer, bs);
   31|   134k|      m_cipher->encrypt(m_state);
   32|       |
   33|   134k|      BufferSlicer in(input);
   34|   134k|      in.skip(bs - m_position);
   35|   887k|      while(in.remaining() > bs) {
  ------------------
  |  Branch (35:13): [True: 752k, False: 134k]
  ------------------
   36|   752k|         xor_buf(m_state, in.take(bs), bs);
   37|   752k|         m_cipher->encrypt(m_state);
   38|   752k|      }
   39|       |
   40|   134k|      const auto remaining = in.take(in.remaining());
   41|   134k|      copy_mem(m_buffer.data(), remaining.data(), remaining.size());
   42|   134k|      m_position = remaining.size();
   43|   134k|   } else {
   44|  18.3k|      m_position += input.size();
   45|  18.3k|   }
   46|   152k|}
_ZN5Botan4CMAC12final_resultENSt3__14spanIhLm18446744073709551615EEE:
   51|  2.24k|void CMAC::final_result(std::span<uint8_t> mac) {
   52|  2.24k|   xor_buf(m_state, m_buffer, m_position);
   53|       |
   54|  2.24k|   if(m_position == output_length()) {
  ------------------
  |  Branch (54:7): [True: 812, False: 1.43k]
  ------------------
   55|    812|      xor_buf(m_state, m_B, output_length());
   56|  1.43k|   } else {
   57|  1.43k|      m_state[m_position] ^= 0x80;
   58|  1.43k|      xor_buf(m_state, m_P, output_length());
   59|  1.43k|   }
   60|       |
   61|  2.24k|   m_cipher->encrypt(m_state);
   62|       |
   63|  2.24k|   copy_mem(mac.data(), m_state.data(), output_length());
   64|       |
   65|  2.24k|   zeroise(m_state);
   66|  2.24k|   zeroise(m_buffer);
   67|  2.24k|   m_position = 0;
   68|  2.24k|}
_ZNK5Botan4CMAC19has_keying_materialEv:
   81|   152k|bool CMAC::has_keying_material() const {
   82|   152k|   return m_cipher->has_keying_material();
   83|   152k|}
_ZN5Botan4CMAC12key_scheduleENSt3__14spanIKhLm18446744073709551615EEE:
   88|    571|void CMAC::key_schedule(std::span<const uint8_t> key) {
   89|    571|   clear();
   90|    571|   m_cipher->set_key(key);
   91|    571|   m_cipher->encrypt(m_B);
   92|    571|   poly_double_n(m_B.data(), m_B.size());
   93|    571|   poly_double_n(m_P.data(), m_B.data(), m_P.size());
   94|    571|}
_ZN5Botan4CMAC5clearEv:
   99|    571|void CMAC::clear() {
  100|    571|   m_cipher->clear();
  101|    571|   zeroise(m_state);
  102|    571|   zeroise(m_buffer);
  103|    571|   zeroise(m_B);
  104|    571|   zeroise(m_P);
  105|    571|   m_position = 0;
  106|    571|}
_ZN5Botan4CMACC2ENSt3__110unique_ptrINS_11BlockCipherENS1_14default_deleteIS3_EEEE:
  125|    571|CMAC::CMAC(std::unique_ptr<BlockCipher> cipher) : m_cipher(std::move(cipher)), m_block_size(m_cipher->block_size()) {
  126|    571|   if(!poly_double_supported_size(m_block_size)) {
  ------------------
  |  Branch (126:7): [True: 0, False: 571]
  ------------------
  127|      0|      throw Invalid_Argument(fmt("CMAC cannot use the {} bit cipher {}", m_block_size * 8, m_cipher->name()));
  128|      0|   }
  129|       |
  130|    571|   m_state.resize(output_length());
  131|    571|   m_buffer.resize(output_length());
  132|    571|   m_B.resize(output_length());
  133|    571|   m_P.resize(output_length());
  134|    571|   m_position = 0;
  135|    571|}

_ZN5Botan4HMAC8add_dataENSt3__14spanIKhLm18446744073709551615EEE:
   21|   187k|void HMAC::add_data(std::span<const uint8_t> input) {
   22|   187k|   assert_key_material_set();
   23|   187k|   m_hash->update(input);
   24|   187k|}
_ZN5Botan4HMAC12final_resultENSt3__14spanIhLm18446744073709551615EEE:
   29|   109k|void HMAC::final_result(std::span<uint8_t> mac) {
   30|   109k|   assert_key_material_set();
   31|   109k|   m_hash->final(mac);
   32|   109k|   m_hash->update(m_okey);
   33|   109k|   m_hash->update(mac.first(m_hash_output_length));
   34|   109k|   m_hash->final(mac);
   35|   109k|   m_hash->update(m_ikey);
   36|   109k|}
_ZNK5Botan4HMAC8key_specEv:
   48|  62.6k|Key_Length_Specification HMAC::key_spec() const {
   49|       |   // Support very long lengths for things like PBKDF2 and the TLS PRF
   50|  62.6k|   return Key_Length_Specification(0, 8192);
   51|  62.6k|}
_ZNK5Botan4HMAC13output_lengthEv:
   53|   140k|size_t HMAC::output_length() const {
   54|   140k|   return m_hash_output_length;
   55|   140k|}
_ZNK5Botan4HMAC19has_keying_materialEv:
   57|   297k|bool HMAC::has_keying_material() const {
   58|   297k|   return !m_okey.empty();
   59|   297k|}
_ZN5Botan4HMAC12key_scheduleENSt3__14spanIKhLm18446744073709551615EEE:
   64|  62.6k|void HMAC::key_schedule(std::span<const uint8_t> key) {
   65|  62.6k|   const uint8_t ipad = 0x36;
   66|  62.6k|   const uint8_t opad = 0x5C;
   67|       |
   68|  62.6k|   m_hash->clear();
   69|       |
   70|  62.6k|   m_ikey.resize(m_hash_block_size);
   71|  62.6k|   m_okey.resize(m_hash_block_size);
   72|       |
   73|  62.6k|   clear_mem(m_ikey.data(), m_ikey.size());
   74|  62.6k|   clear_mem(m_okey.data(), m_okey.size());
   75|       |
   76|       |   /*
   77|       |   * Sometimes the HMAC key length itself is sensitive, as with PBKDF2 where it
   78|       |   * reveals the length of the passphrase. Make some attempt to hide this to
   79|       |   * side channels. Clearly if the secret is longer than the block size then the
   80|       |   * branch to hash first reveals that. In addition, counting the number of
   81|       |   * compression functions executed reveals the size at the granularity of the
   82|       |   * hash function's block size.
   83|       |   *
   84|       |   * The greater concern is for smaller keys; being able to detect when a
   85|       |   * passphrase is say 4 bytes may assist choosing weaker targets. Even though
   86|       |   * the loop bounds are constant, we can only actually read key[0..length] so
   87|       |   * it doesn't seem possible to make this computation truly constant time.
   88|       |   *
   89|       |   * We don't mind leaking if the length is exactly zero since that's
   90|       |   * trivial to simply check.
   91|       |   */
   92|       |
   93|  62.6k|   if(key.size() > m_hash_block_size) {
  ------------------
  |  Branch (93:7): [True: 0, False: 62.6k]
  ------------------
   94|      0|      m_hash->update(key);
   95|      0|      m_hash->final(m_ikey.data());
   96|  62.6k|   } else if(key.size() >= 20) {
  ------------------
  |  Branch (96:14): [True: 62.6k, False: 0]
  ------------------
   97|       |      // For long keys we just leak the length either it is a cryptovariable
   98|       |      // or a long enough password that just the length is not a useful signal
   99|  62.6k|      copy_mem(std::span{m_ikey}.first(key.size()), key);
  100|  62.6k|   } else if(!key.empty()) {
  ------------------
  |  Branch (100:14): [True: 0, False: 0]
  ------------------
  101|      0|      for(size_t i = 0, i_mod_length = 0; i != m_hash_block_size; ++i) {
  ------------------
  |  Branch (101:43): [True: 0, False: 0]
  ------------------
  102|       |         /*
  103|       |         access key[i % length] but avoiding division due to variable
  104|       |         time computation on some processors.
  105|       |         */
  106|      0|         auto needs_reduction = CT::Mask<size_t>::is_lte(key.size(), i_mod_length);
  107|      0|         i_mod_length = needs_reduction.select(0, i_mod_length);
  108|      0|         const uint8_t kb = key[i_mod_length];
  109|       |
  110|      0|         auto in_range = CT::Mask<size_t>::is_lt(i, key.size());
  111|      0|         m_ikey[i] = static_cast<uint8_t>(in_range.if_set_return(kb));
  112|      0|         i_mod_length += 1;
  113|      0|      }
  114|      0|   }
  115|       |
  116|  8.07M|   for(size_t i = 0; i != m_hash_block_size; ++i) {
  ------------------
  |  Branch (116:22): [True: 8.01M, False: 62.6k]
  ------------------
  117|  8.01M|      m_ikey[i] ^= ipad;
  118|  8.01M|      m_okey[i] = m_ikey[i] ^ ipad ^ opad;
  119|  8.01M|   }
  120|       |
  121|  62.6k|   m_hash->update(m_ikey);
  122|  62.6k|}
_ZN5Botan4HMACC2ENSt3__110unique_ptrINS_12HashFunctionENS1_14default_deleteIS3_EEEE:
  151|  15.6k|      m_hash(std::move(hash)),
  152|  15.6k|      m_hash_output_length(m_hash->output_length()),
  153|  15.6k|      m_hash_block_size(m_hash->hash_block_size()) {
  154|  15.6k|   BOTAN_ARG_CHECK(m_hash_output_length >= 8, "HMAC is not compatible with this hash function");
  ------------------
  |  |   35|  15.6k|   do {                                                          \
  |  |   36|  15.6k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  15.6k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 15.6k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  15.6k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 15.6k]
  |  |  ------------------
  ------------------
  155|  15.6k|   BOTAN_ARG_CHECK(m_hash_block_size >= m_hash_output_length, "HMAC is not compatible with this hash function");
  ------------------
  |  |   35|  15.6k|   do {                                                          \
  |  |   36|  15.6k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  15.6k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 15.6k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  15.6k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 15.6k]
  |  |  ------------------
  ------------------
  156|  15.6k|}

_ZN5Botan25MessageAuthenticationCode6createENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEES5_:
   51|  15.6k|                                                                             std::string_view provider) {
   52|  15.6k|   const SCAN_Name req(algo_spec);
   53|       |
   54|       |#if defined(BOTAN_HAS_BLAKE2BMAC)
   55|       |   if(req.algo_name() == "Blake2b" || req.algo_name() == "BLAKE2b") {
   56|       |      if(provider.empty() || provider == "base") {
   57|       |         return std::make_unique<BLAKE2bMAC>(req.arg_as_integer(0, 512));
   58|       |      }
   59|       |   }
   60|       |#endif
   61|       |
   62|       |#if defined(BOTAN_HAS_GMAC)
   63|       |   if(req.algo_name() == "GMAC" && req.arg_count() == 1) {
   64|       |      if(provider.empty() || provider == "base") {
   65|       |         if(auto bc = BlockCipher::create(req.arg(0))) {
   66|       |            return std::make_unique<GMAC>(std::move(bc));
   67|       |         }
   68|       |      }
   69|       |   }
   70|       |#endif
   71|       |
   72|  15.6k|#if defined(BOTAN_HAS_HMAC)
   73|  15.6k|   if(req.algo_name() == "HMAC" && req.arg_count() == 1) {
  ------------------
  |  Branch (73:7): [True: 15.6k, False: 0]
  |  Branch (73:36): [True: 15.6k, False: 0]
  ------------------
   74|  15.6k|      if(provider.empty() || provider == "base") {
  ------------------
  |  Branch (74:10): [True: 15.6k, False: 0]
  |  Branch (74:30): [True: 0, False: 0]
  ------------------
   75|  15.6k|         if(auto hash = HashFunction::create(req.arg(0))) {
  ------------------
  |  Branch (75:18): [True: 15.6k, False: 0]
  ------------------
   76|  15.6k|            return std::make_unique<HMAC>(std::move(hash));
   77|  15.6k|         }
   78|  15.6k|      }
   79|  15.6k|   }
   80|      0|#endif
   81|       |
   82|       |#if defined(BOTAN_HAS_POLY1305)
   83|       |   if(req.algo_name() == "Poly1305" && req.arg_count() == 0) {
   84|       |      if(provider.empty() || provider == "base") {
   85|       |         return std::make_unique<Poly1305>();
   86|       |      }
   87|       |   }
   88|       |#endif
   89|       |
   90|       |#if defined(BOTAN_HAS_SIPHASH)
   91|       |   if(req.algo_name() == "SipHash") {
   92|       |      if(provider.empty() || provider == "base") {
   93|       |         return std::make_unique<SipHash>(req.arg_as_integer(0, 2), req.arg_as_integer(1, 4));
   94|       |      }
   95|       |   }
   96|       |#endif
   97|       |
   98|      0|#if defined(BOTAN_HAS_CMAC)
   99|      0|   if((req.algo_name() == "CMAC" || req.algo_name() == "OMAC") && req.arg_count() == 1) {
  ------------------
  |  Branch (99:8): [True: 0, False: 0]
  |  Branch (99:37): [True: 0, False: 0]
  |  Branch (99:67): [True: 0, False: 0]
  ------------------
  100|      0|      if(provider.empty() || provider == "base") {
  ------------------
  |  Branch (100:10): [True: 0, False: 0]
  |  Branch (100:30): [True: 0, False: 0]
  ------------------
  101|      0|         if(auto bc = BlockCipher::create(req.arg(0))) {
  ------------------
  |  Branch (101:18): [True: 0, False: 0]
  ------------------
  102|      0|            return std::make_unique<CMAC>(std::move(bc));
  103|      0|         }
  104|      0|      }
  105|      0|   }
  106|      0|#endif
  107|       |
  108|       |#if defined(BOTAN_HAS_ANSI_X919_MAC)
  109|       |   if(req.algo_name() == "X9.19-MAC") {
  110|       |      if(provider.empty() || provider == "base") {
  111|       |         return std::make_unique<ANSI_X919_MAC>();
  112|       |      }
  113|       |   }
  114|       |#endif
  115|       |
  116|      0|#if defined(BOTAN_HAS_KMAC)
  117|      0|   if(req.algo_name() == "KMAC-128") {
  ------------------
  |  Branch (117:7): [True: 0, False: 0]
  ------------------
  118|      0|      if(provider.empty() || provider == "base") {
  ------------------
  |  Branch (118:10): [True: 0, False: 0]
  |  Branch (118:30): [True: 0, False: 0]
  ------------------
  119|      0|         if(req.arg_count() != 1) {
  ------------------
  |  Branch (119:13): [True: 0, False: 0]
  ------------------
  120|      0|            throw Invalid_Argument(
  121|      0|               "invalid algorithm specification for KMAC-128: need exactly one argument for output bit length");
  122|      0|         }
  123|      0|         return std::make_unique<KMAC128>(req.arg_as_integer(0));
  124|      0|      }
  125|      0|   }
  126|       |
  127|      0|   if(req.algo_name() == "KMAC-256") {
  ------------------
  |  Branch (127:7): [True: 0, False: 0]
  ------------------
  128|      0|      if(provider.empty() || provider == "base") {
  ------------------
  |  Branch (128:10): [True: 0, False: 0]
  |  Branch (128:30): [True: 0, False: 0]
  ------------------
  129|      0|         if(req.arg_count() != 1) {
  ------------------
  |  Branch (129:13): [True: 0, False: 0]
  ------------------
  130|      0|            throw Invalid_Argument(
  131|      0|               "invalid algorithm specification for KMAC-256: need exactly one argument for output bit length");
  132|      0|         }
  133|      0|         return std::make_unique<KMAC256>(req.arg_as_integer(0));
  134|      0|      }
  135|      0|   }
  136|      0|#endif
  137|       |
  138|      0|   BOTAN_UNUSED(req);
  ------------------
  |  |  144|      0|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
  139|      0|   BOTAN_UNUSED(provider);
  ------------------
  |  |  144|      0|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
  140|       |
  141|      0|   return nullptr;
  142|      0|}

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

_ZN5Botan6BigIntpLERKS0_:
   16|    827|BigInt& BigInt::operator+=(const BigInt& y) {
   17|    827|   if(&y == this) {
  ------------------
  |  Branch (17:7): [True: 0, False: 827]
  ------------------
   18|      0|      return *this <<= 1;
   19|      0|   }
   20|    827|   return add(y._data(), y.sig_words(), y.sign());
   21|    827|}
_ZN5Botan6BigIntmIERKS0_:
   23|  91.0k|BigInt& BigInt::operator-=(const BigInt& y) {
   24|  91.0k|   if(&y == this) {
  ------------------
  |  Branch (24:7): [True: 0, False: 91.0k]
  ------------------
   25|      0|      this->clear();
   26|      0|      this->set_sign(Positive);
   27|      0|      return *this;
   28|      0|   }
   29|  91.0k|   return sub(y._data(), y.sig_words(), y.sign());
   30|  91.0k|}
_ZN5Botan6BigInt3addEPKmmNS0_4SignE:
   32|  91.9k|BigInt& BigInt::add(const word y[], size_t y_words, Sign y_sign) {
   33|  91.9k|   const size_t x_sw = sig_words();
   34|       |
   35|  91.9k|   grow_to(std::max(x_sw, y_words) + 1);
   36|       |
   37|  91.9k|   if(sign() == y_sign) {
  ------------------
  |  Branch (37:7): [True: 0, False: 91.9k]
  ------------------
   38|      0|      const word carry = bigint_add2(mutable_data(), size() - 1, y, y_words);
   39|      0|      mutable_data()[size() - 1] += carry;
   40|  91.9k|   } else {
   41|  91.9k|      const int32_t relative_size = bigint_cmp(_data(), x_sw, y, y_words);
   42|       |
   43|  91.9k|      if(relative_size >= 0) {
  ------------------
  |  Branch (43:10): [True: 90.2k, False: 1.65k]
  ------------------
   44|       |         // *this >= y
   45|  90.2k|         bigint_sub2(mutable_data(), x_sw, y, y_words);
   46|  90.2k|      } else {
   47|       |         // *this < y: compute *this = y - *this
   48|  1.65k|         bigint_sub2_rev(mutable_data(), y, y_words);
   49|  1.65k|      }
   50|       |
   51|  91.9k|      if(relative_size < 0) {
  ------------------
  |  Branch (51:10): [True: 1.65k, False: 90.2k]
  ------------------
   52|  1.65k|         set_sign(y_sign);
   53|  90.2k|      } else if(relative_size == 0) {
  ------------------
  |  Branch (53:17): [True: 0, False: 90.2k]
  ------------------
   54|      0|         set_sign(Positive);
   55|      0|      }
   56|  91.9k|   }
   57|       |
   58|  91.9k|   return (*this);
   59|  91.9k|}
_ZN5Botan6BigIntlSEm:
  269|  4.24k|BigInt& BigInt::operator<<=(size_t shift) {
  270|  4.24k|   if(shift >= 65536) {
  ------------------
  |  Branch (270:7): [True: 0, False: 4.24k]
  ------------------
  271|      0|      throw Invalid_Argument("BigInt left shift count too large");
  272|      0|   }
  273|       |
  274|  4.24k|   const size_t sw = sig_words();
  275|  4.24k|   const size_t new_size = sw + (shift + WordInfo<word>::bits - 1) / WordInfo<word>::bits;
  276|       |
  277|  4.24k|   m_data.grow_to(new_size);
  278|       |
  279|  4.24k|   bigint_shl1(m_data.mutable_data(), new_size, sw, shift);
  280|       |
  281|  4.24k|   return (*this);
  282|  4.24k|}
_ZN5Botan6BigIntrSEm:
  287|  94.1k|BigInt& BigInt::operator>>=(size_t shift) {
  288|  94.1k|   bigint_shr1(m_data.mutable_data(), m_data.size(), shift);
  289|       |
  290|  94.1k|   if(sig_words() == 0 && m_signedness == Negative) {
  ------------------
  |  Branch (290:7): [True: 0, False: 94.1k]
  |  Branch (290:27): [True: 0, False: 0]
  ------------------
  291|      0|      m_signedness = Positive;
  292|      0|   }
  293|       |
  294|  94.1k|   return (*this);
  295|  94.1k|}

_ZN5Botan6BigInt4add2ERKS0_PKmmNS0_4SignE:
   20|      9|BigInt BigInt::add2(const BigInt& x, const word y[], size_t y_size, BigInt::Sign y_sign) {
   21|      9|   const size_t x_sw = x.sig_words();
   22|       |
   23|      9|   BigInt z = BigInt::with_capacity(std::max(x_sw, y_size) + 1);
   24|       |
   25|      9|   if(x.sign() == y_sign) {
  ------------------
  |  Branch (25:7): [True: 6, False: 3]
  ------------------
   26|      6|      const word carry = bigint_add3(z.mutable_data(), x._data(), x_sw, y, y_size);
   27|      6|      z.mutable_data()[std::max(x_sw, y_size)] += carry;
   28|      6|      z.set_sign(x.sign());
   29|      6|   } else {
   30|      3|      const int32_t relative_size = bigint_cmp(x.data(), x_sw, y, y_size);
   31|       |
   32|      3|      if(relative_size < 0) {
  ------------------
  |  Branch (32:10): [True: 0, False: 3]
  ------------------
   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|      3|      } else if(relative_size == 0) {
  ------------------
  |  Branch (37:17): [True: 0, False: 3]
  ------------------
   38|       |         // Positive zero (nothing to do in this case)
   39|      3|      } 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|      3|         y_size = std::min(x_sw, y_size);
   46|      3|         bigint_sub3(z.mutable_data(), x.data(), x_sw, y, y_size);
   47|      3|         z.set_sign(x.sign());
   48|      3|      }
   49|      3|   }
   50|       |
   51|      9|   return z;
   52|      9|}
_ZN5BotanmlERKNS_6BigIntEm:
   90|  88.5k|BigInt operator*(const BigInt& x, word y) {
   91|  88.5k|   const size_t x_sw = x.sig_words();
   92|       |
   93|  88.5k|   BigInt z = BigInt::with_capacity(x_sw + 1);
   94|       |
   95|  88.5k|   if(x_sw > 0 && y > 0) {
  ------------------
  |  Branch (95:7): [True: 88.5k, False: 0]
  |  Branch (95:19): [True: 88.5k, False: 0]
  ------------------
   96|  88.5k|      bigint_linmul3(z.mutable_data(), x._data(), x_sw, y);
   97|  88.5k|      z.set_sign(x.sign());
   98|  88.5k|   }
   99|       |
  100|  88.5k|   return z;
  101|  88.5k|}
_ZN5BotanrmERKNS_6BigIntES2_:
  134|    493|BigInt operator%(const BigInt& n, const BigInt& mod) {
  135|    493|   if(mod.is_zero()) {
  ------------------
  |  Branch (135:7): [True: 0, False: 493]
  ------------------
  136|      0|      throw Invalid_Argument("BigInt::operator% divide by zero");
  137|      0|   }
  138|    493|   if(mod.signum() < 0) {
  ------------------
  |  Branch (138:7): [True: 0, False: 493]
  ------------------
  139|      0|      throw Invalid_Argument("BigInt::operator% modulus must be > 0");
  140|      0|   }
  141|    493|   if(n.signum() >= 0 && mod.signum() >= 0 && n < mod) {
  ------------------
  |  Branch (141:7): [True: 493, False: 0]
  |  Branch (141:26): [True: 493, False: 0]
  |  Branch (141:47): [True: 0, False: 493]
  ------------------
  142|      0|      return n;
  143|      0|   }
  144|       |
  145|    493|   if(mod.sig_words() == 1) {
  ------------------
  |  Branch (145:7): [True: 0, False: 493]
  ------------------
  146|      0|      return BigInt::from_word(n % mod.word_at(0));
  147|      0|   }
  148|       |
  149|    493|   BigInt q;
  150|    493|   BigInt r;
  151|    493|   vartime_divide(n, mod, q, r);
  152|    493|   return r;
  153|    493|}
_ZN5BotanlsERKNS_6BigIntEm:
  188|  5.90k|BigInt operator<<(const BigInt& x, size_t shift) {
  189|  5.90k|   if(shift >= 65536) {
  ------------------
  |  Branch (189:7): [True: 0, False: 5.90k]
  ------------------
  190|      0|      throw Invalid_Argument("BigInt left shift count too large");
  191|      0|   }
  192|       |
  193|  5.90k|   if(x.is_zero()) {
  ------------------
  |  Branch (193:7): [True: 0, False: 5.90k]
  ------------------
  194|      0|      return BigInt::zero();
  195|      0|   }
  196|       |
  197|  5.90k|   const size_t x_sw = x.sig_words();
  198|       |
  199|  5.90k|   const size_t new_size = x_sw + shift / WordInfo<word>::bits + 1;
  200|  5.90k|   BigInt y = BigInt::with_capacity(new_size);
  201|  5.90k|   bigint_shl2(y.mutable_data(), new_size, x._data(), x_sw, shift);
  202|  5.90k|   y.set_sign(x.sign());
  203|  5.90k|   return y;
  204|  5.90k|}

_ZN5Botan6BigIntC2Em:
   20|      3|BigInt::BigInt(uint64_t n) {
   21|      3|   if constexpr(sizeof(word) == 8) {
   22|      3|      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|}
_ZN5Botan6BigInt13with_capacityEm:
   51|  94.4k|BigInt BigInt::with_capacity(size_t size) {
   52|  94.4k|   BigInt bn;
   53|  94.4k|   bn.grow_to(size);
   54|  94.4k|   return bn;
   55|  94.4k|}
_ZN5Botan6BigInt11from_stringENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   57|     18|BigInt BigInt::from_string(std::string_view str) {
   58|     18|   size_t prefix_bytes = 0;
   59|     18|   bool negative = false;
   60|     18|   size_t radix = 10;
   61|       |
   62|     18|   if(!str.empty() && str[0] == '-') {
  ------------------
  |  Branch (62:7): [True: 18, False: 0]
  |  Branch (62:23): [True: 0, False: 18]
  ------------------
   63|      0|      prefix_bytes += 1;
   64|      0|      negative = true;
   65|      0|   }
   66|       |
   67|     18|   if(str.length() > prefix_bytes + 2 && str[prefix_bytes] == '0' && str[prefix_bytes + 1] == 'x') {
  ------------------
  |  Branch (67:7): [True: 18, False: 0]
  |  Branch (67:42): [True: 18, False: 0]
  |  Branch (67:70): [True: 18, False: 0]
  ------------------
   68|     18|      prefix_bytes += 2;
   69|     18|      radix = 16;
   70|     18|   }
   71|       |
   72|     18|   BigInt r = BigInt::from_radix_digits(str.substr(prefix_bytes), radix);
   73|       |
   74|     18|   if(negative) {
  ------------------
  |  Branch (74:7): [True: 0, False: 18]
  ------------------
   75|      0|      r.set_sign(Negative);
   76|     18|   } else {
   77|     18|      r.set_sign(Positive);
   78|     18|   }
   79|       |
   80|     18|   return r;
   81|     18|}
_ZN5Botan6BigInt10from_bytesENSt3__14spanIKhLm18446744073709551615EEE:
   83|  37.3k|BigInt BigInt::from_bytes(std::span<const uint8_t> input) {
   84|  37.3k|   BigInt r;
   85|  37.3k|   r.assign_from_bytes(input);
   86|  37.3k|   return r;
   87|  37.3k|}
_ZN5Botan6BigInt24from_bytes_with_max_bitsEPKhmm:
   97|    496|BigInt BigInt::from_bytes_with_max_bits(const uint8_t input[], size_t length, size_t max_bits) {
   98|    496|   const size_t input_bits = 8 * length;
   99|       |
  100|    496|   auto bn = BigInt::from_bytes(std::span{input, length});
  101|       |
  102|    496|   if(input_bits > max_bits) {
  ------------------
  |  Branch (102:7): [True: 0, False: 496]
  ------------------
  103|      0|      const size_t bits_to_shift = input_bits - max_bits;
  104|       |
  105|      0|      bn >>= bits_to_shift;
  106|      0|   }
  107|       |
  108|    496|   return bn;
  109|    496|}
_ZNK5Botan6BigInt8cmp_wordEm:
  122|  49.2k|int32_t BigInt::cmp_word(word other) const {
  123|  49.2k|   if(signum() < 0) {
  ------------------
  |  Branch (123:7): [True: 0, False: 49.2k]
  ------------------
  124|      0|      return -1;  // other is positive ...
  125|      0|   }
  126|       |
  127|  49.2k|   const size_t sw = this->sig_words();
  128|  49.2k|   if(sw > 1) {
  ------------------
  |  Branch (128:7): [True: 44.7k, False: 4.40k]
  ------------------
  129|  44.7k|      return 1;  // must be larger since other is just one word ...
  130|  44.7k|   }
  131|       |
  132|  4.40k|   return bigint_cmp(this->_data(), sw, &other, 1);
  133|  49.2k|}
_ZNK5Botan6BigInt3cmpERKS0_b:
  138|  82.2k|int32_t BigInt::cmp(const BigInt& other, bool check_signs) const {
  139|  82.2k|   if(check_signs) {
  ------------------
  |  Branch (139:7): [True: 82.2k, False: 0]
  ------------------
  140|  82.2k|      if(other.signum() >= 0 && this->signum() < 0) {
  ------------------
  |  Branch (140:10): [True: 82.2k, False: 0]
  |  Branch (140:33): [True: 0, False: 82.2k]
  ------------------
  141|      0|         return -1;
  142|      0|      }
  143|       |
  144|  82.2k|      if(other.signum() < 0 && this->signum() >= 0) {
  ------------------
  |  Branch (144:10): [True: 0, False: 82.2k]
  |  Branch (144:32): [True: 0, False: 0]
  ------------------
  145|      0|         return 1;
  146|      0|      }
  147|       |
  148|  82.2k|      if(other.signum() < 0 && this->signum() < 0) {
  ------------------
  |  Branch (148:10): [True: 0, False: 82.2k]
  |  Branch (148:32): [True: 0, False: 0]
  ------------------
  149|      0|         return (-bigint_cmp(this->_data(), this->size(), other._data(), other.size()));
  150|      0|      }
  151|  82.2k|   }
  152|       |
  153|  82.2k|   return bigint_cmp(this->_data(), this->size(), other._data(), other.size());
  154|  82.2k|}
_ZNK5Botan6BigInt8is_equalERKS0_:
  156|    499|bool BigInt::is_equal(const BigInt& other) const {
  157|    499|   if(this->sign() != other.sign()) {
  ------------------
  |  Branch (157:7): [True: 0, False: 499]
  ------------------
  158|      0|      return false;
  159|      0|   }
  160|       |
  161|    499|   return bigint_ct_is_eq(this->_data(), this->size(), other._data(), other.size()).as_bool();
  162|    499|}
_ZNK5Botan6BigInt12is_less_thanERKS0_:
  164|  10.1k|bool BigInt::is_less_than(const BigInt& other) const {
  165|  10.1k|   if(this->signum() < 0 && other.signum() >= 0) {
  ------------------
  |  Branch (165:7): [True: 0, False: 10.1k]
  |  Branch (165:29): [True: 0, False: 0]
  ------------------
  166|      0|      return true;
  167|      0|   }
  168|       |
  169|  10.1k|   if(this->signum() >= 0 && other.signum() < 0) {
  ------------------
  |  Branch (169:7): [True: 10.1k, False: 0]
  |  Branch (169:30): [True: 0, False: 10.1k]
  ------------------
  170|      0|      return false;
  171|      0|   }
  172|       |
  173|  10.1k|   if(other.signum() < 0 && this->signum() < 0) {
  ------------------
  |  Branch (173:7): [True: 0, False: 10.1k]
  |  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|  10.1k|   return bigint_ct_is_lt(this->_data(), this->size(), other._data(), other.size()).as_bool();
  178|  10.1k|}
_ZN5Botan6BigInt4Data11set_to_zeroEv:
  191|  88.5k|void BigInt::Data::set_to_zero() {
  192|  88.5k|   m_reg.resize(m_reg.capacity());
  193|  88.5k|   clear_mem(m_reg.data(), m_reg.size());
  194|  88.5k|   m_sig_words = 0;
  195|  88.5k|}
_ZNK5Botan6BigInt4Data14calc_sig_wordsEv:
  215|   402k|size_t BigInt::Data::calc_sig_words() const {
  216|   402k|   const size_t sz = m_reg.size();
  217|   402k|   size_t sig = sz;
  218|       |
  219|   402k|   word sub = 1;
  220|       |
  221|  13.6M|   for(size_t i = 0; i != sz; ++i) {
  ------------------
  |  Branch (221:22): [True: 13.2M, False: 402k]
  ------------------
  222|  13.2M|      const word w = m_reg[sz - i - 1];
  223|  13.2M|      sub &= ct_is_zero(w);
  224|  13.2M|      sig -= sub;
  225|  13.2M|   }
  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|   402k|   CT::unpoison(sig);
  232|       |
  233|   402k|   return sig;
  234|   402k|}
_ZNK5Botan6BigInt13get_substringEmm:
  239|  90.0k|uint32_t BigInt::get_substring(size_t offset, size_t length) const {
  240|  90.0k|   if(length == 0 || length > 32) {
  ------------------
  |  Branch (240:7): [True: 0, False: 90.0k]
  |  Branch (240:22): [True: 0, False: 90.0k]
  ------------------
  241|      0|      throw Invalid_Argument("BigInt::get_substring invalid substring length");
  242|      0|   }
  243|       |
  244|  90.0k|   const uint32_t mask = 0xFFFFFFFF >> (32 - length);
  245|       |
  246|  90.0k|   const size_t word_offset = offset / WordInfo<word>::bits;
  247|  90.0k|   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|  90.0k|   const word w0 = word_at(word_offset);
  255|       |
  256|  90.0k|   if(wshift == 0 || (offset + length) / WordInfo<word>::bits == word_offset) {
  ------------------
  |  Branch (256:7): [True: 4.65k, False: 85.4k]
  |  Branch (256:22): [True: 83.4k, False: 1.97k]
  ------------------
  257|  88.1k|      return static_cast<uint32_t>(w0 >> wshift) & mask;
  258|  88.1k|   } else {
  259|  1.97k|      const word w1 = word_at(word_offset + 1);
  260|  1.97k|      return static_cast<uint32_t>((w0 >> wshift) | (w1 << (WordInfo<word>::bits - wshift))) & mask;
  261|  1.97k|   }
  262|  90.0k|}
_ZNK5Botan6BigInt5bytesEv:
  294|  62.7k|size_t BigInt::bytes() const {
  295|  62.7k|   return round_up(bits(), 8) / 8;
  296|  62.7k|}
_ZNK5Botan6BigInt13top_bits_freeEv:
  298|  98.1k|size_t BigInt::top_bits_free() const {
  299|  98.1k|   const size_t words = sig_words();
  300|       |
  301|  98.1k|   const word top_word = word_at(words - 1);
  302|  98.1k|   const size_t bits_used = high_bit(CT::value_barrier(top_word));
  303|  98.1k|   CT::unpoison(bits_used);
  304|  98.1k|   return WordInfo<word>::bits - bits_used;
  305|  98.1k|}
_ZNK5Botan6BigInt4bitsEv:
  307|  92.2k|size_t BigInt::bits() const {
  308|  92.2k|   const size_t words = sig_words();
  309|       |
  310|  92.2k|   if(words == 0) {
  ------------------
  |  Branch (310:7): [True: 6, False: 92.2k]
  ------------------
  311|      6|      return 0;
  312|      6|   }
  313|       |
  314|  92.2k|   const size_t full_words = (words - 1) * WordInfo<word>::bits;
  315|  92.2k|   const size_t top_bits = WordInfo<word>::bits - top_bits_free();
  316|       |
  317|  92.2k|   return full_words + top_bits;
  318|  92.2k|}
_ZN5Botan6BigInt12reduce_belowERKS0_RNSt3__16vectorImNS_16secure_allocatorImEEEE:
  329|  5.90k|size_t BigInt::reduce_below(const BigInt& p, secure_vector<word>& ws) {
  330|  5.90k|   if(p.signum() < 0 || this->signum() < 0) {
  ------------------
  |  Branch (330:7): [True: 0, False: 5.90k]
  |  Branch (330:25): [True: 0, False: 5.90k]
  ------------------
  331|      0|      throw Invalid_Argument("BigInt::reduce_below both values must be positive");
  332|      0|   }
  333|       |
  334|  5.90k|   const size_t p_words = p.sig_words();
  335|       |
  336|  5.90k|   if(size() < p_words + 1) {
  ------------------
  |  Branch (336:7): [True: 0, False: 5.90k]
  ------------------
  337|      0|      grow_to(p_words + 1);
  338|      0|   }
  339|       |
  340|  5.90k|   if(ws.size() < p_words + 1) {
  ------------------
  |  Branch (340:7): [True: 5.90k, False: 0]
  ------------------
  341|  5.90k|      ws.resize(p_words + 1);
  342|  5.90k|   }
  343|       |
  344|  5.90k|   clear_mem(ws.data(), ws.size());
  345|       |
  346|  5.90k|   size_t reductions = 0;
  347|       |
  348|  5.90k|   for(;;) {
  349|  5.90k|      const word borrow = bigint_sub3(ws.data(), _data(), p_words + 1, p._data(), p_words);
  350|  5.90k|      if(borrow > 0) {
  ------------------
  |  Branch (350:10): [True: 5.90k, False: 0]
  ------------------
  351|  5.90k|         break;
  352|  5.90k|      }
  353|       |
  354|      0|      ++reductions;
  355|      0|      swap_reg(ws);
  356|      0|   }
  357|       |
  358|  5.90k|   return reductions;
  359|  5.90k|}
_ZNK5Botan6BigInt12serialize_toENSt3__14spanIhLm18446744073709551615EEE:
  395|  56.2k|void BigInt::serialize_to(std::span<uint8_t> output) const {
  396|  56.2k|   BOTAN_ARG_CHECK(this->bytes() <= output.size(), "Insufficient output space");
  ------------------
  |  |   35|  56.2k|   do {                                                          \
  |  |   36|  56.2k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  56.2k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 56.2k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  56.2k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 56.2k]
  |  |  ------------------
  ------------------
  397|       |
  398|  56.2k|   this->binary_encode(output.data(), output.size());
  399|  56.2k|}
_ZNK5Botan6BigInt13binary_encodeEPhm:
  404|  56.2k|void BigInt::binary_encode(uint8_t output[], size_t len) const {
  405|  56.2k|   const size_t full_words = len / sizeof(word);
  406|  56.2k|   const size_t extra_bytes = len % sizeof(word);
  407|       |
  408|   306k|   for(size_t i = 0; i != full_words; ++i) {
  ------------------
  |  Branch (408:22): [True: 250k, False: 56.2k]
  ------------------
  409|   250k|      const word w = word_at(i);
  410|   250k|      store_be(w, output + (len - (i + 1) * sizeof(word)));
  411|   250k|   }
  412|       |
  413|  56.2k|   if(extra_bytes > 0) {
  ------------------
  |  Branch (413:7): [True: 198, False: 56.0k]
  ------------------
  414|    198|      const word w = word_at(full_words);
  415|       |
  416|    989|      for(size_t i = 0; i != extra_bytes; ++i) {
  ------------------
  |  Branch (416:25): [True: 791, False: 198]
  ------------------
  417|    791|         output[extra_bytes - i - 1] = get_byte_var(sizeof(word) - i - 1, w);
  418|    791|      }
  419|    198|   }
  420|  56.2k|}
_ZN5Botan6BigInt17assign_from_bytesENSt3__14spanIKhLm18446744073709551615EEE:
  425|  88.5k|void BigInt::assign_from_bytes(std::span<const uint8_t> bytes) {
  426|  88.5k|   clear();
  427|       |
  428|  88.5k|   const size_t length = bytes.size();
  429|  88.5k|   const size_t full_words = length / sizeof(word);
  430|  88.5k|   const size_t extra_bytes = length % sizeof(word);
  431|       |
  432|  88.5k|   secure_vector<word> reg((round_up(full_words + (extra_bytes > 0 ? 1 : 0), 8)));
  ------------------
  |  Branch (432:52): [True: 6.81k, False: 81.7k]
  ------------------
  433|       |
  434|   529k|   for(size_t i = 0; i != full_words; ++i) {
  ------------------
  |  Branch (434:22): [True: 441k, False: 88.5k]
  ------------------
  435|   441k|      reg[i] = load_be<word>(bytes.last<sizeof(word)>());
  436|   441k|      bytes = bytes.first(bytes.size() - sizeof(word));
  437|   441k|   }
  438|       |
  439|  88.5k|   if(!bytes.empty()) {
  ------------------
  |  Branch (439:7): [True: 6.81k, False: 81.7k]
  ------------------
  440|  6.81k|      BOTAN_ASSERT_NOMSG(extra_bytes == bytes.size());
  ------------------
  |  |   77|  6.81k|   do {                                                                     \
  |  |   78|  6.81k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  6.81k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 6.81k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  6.81k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 6.81k]
  |  |  ------------------
  ------------------
  441|  6.81k|      std::array<uint8_t, sizeof(word)> last_partial_word = {0};
  442|  6.81k|      copy_mem(std::span{last_partial_word}.last(extra_bytes), bytes);
  443|  6.81k|      reg[full_words] = load_be<word>(last_partial_word);
  444|  6.81k|   }
  445|       |
  446|  88.5k|   m_data.swap(reg);
  447|  88.5k|}
_ZN5Botan6BigInt14cond_flip_signEb:
  521|    493|void BigInt::cond_flip_sign(bool predicate) {
  522|       |   // This code is assuming Negative == 0, Positive == 1
  523|       |
  524|    493|   const auto mask = CT::Mask<uint8_t>::expand_bool(predicate);
  525|       |
  526|    493|   const uint8_t current_sign = static_cast<uint8_t>(sign());
  527|       |
  528|    493|   const uint8_t new_sign = mask.select(current_sign ^ 1, current_sign);
  529|       |
  530|    493|   set_sign(static_cast<Sign>(new_sign));
  531|    493|}
_ZNK5Botan6BigInt20_const_time_unpoisonEv:
  559|   386k|void BigInt::_const_time_unpoison() const {
  560|   386k|   CT::unpoison(m_data.const_data(), m_data.size());
  561|   386k|}

_ZN5Botan20vartime_divide_pow2kEmRKNS_6BigIntE:
  232|  5.40k|BigInt vartime_divide_pow2k(size_t k, const BigInt& y_arg) {
  233|  5.40k|   constexpr size_t WB = WordInfo<word>::bits;
  234|       |
  235|  5.40k|   BOTAN_ARG_CHECK(y_arg.signum() != 0, "Cannot divide by zero");
  ------------------
  |  |   35|  5.40k|   do {                                                          \
  |  |   36|  5.40k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  5.40k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 5.40k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  5.40k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 5.40k]
  |  |  ------------------
  ------------------
  236|  5.40k|   BOTAN_ARG_CHECK(y_arg.signum() >= 0, "Negative divisor not supported");
  ------------------
  |  |   35|  5.40k|   do {                                                          \
  |  |   36|  5.40k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  5.40k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 5.40k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  5.40k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 5.40k]
  |  |  ------------------
  ------------------
  237|  5.40k|   BOTAN_ARG_CHECK(k > 1, "Invalid k");
  ------------------
  |  |   35|  5.40k|   do {                                                          \
  |  |   36|  5.40k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  5.40k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 5.40k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  5.40k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 5.40k]
  |  |  ------------------
  ------------------
  238|       |
  239|  5.40k|   BigInt y = y_arg;
  240|       |
  241|  5.40k|   const size_t y_words = y.sig_words();
  242|       |
  243|  5.40k|   BOTAN_ASSERT_NOMSG(y_words > 0);
  ------------------
  |  |   77|  5.40k|   do {                                                                     \
  |  |   78|  5.40k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  5.40k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 5.40k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  5.40k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 5.40k]
  |  |  ------------------
  ------------------
  244|       |
  245|       |   // Calculate shifts needed to normalize y with high bit set
  246|  5.40k|   const size_t shifts = y.top_bits_free();
  247|       |
  248|  5.40k|   if(shifts > 0) {
  ------------------
  |  Branch (248:7): [True: 3.25k, False: 2.14k]
  ------------------
  249|  3.25k|      y <<= shifts;
  250|  3.25k|   }
  251|       |
  252|  5.40k|   BigInt r;
  253|  5.40k|   r.set_bit(k + shifts);  // (2^k) << shifts
  254|       |
  255|       |   // we know y has not changed size, since we only shifted up to set high bit
  256|  5.40k|   const size_t t = y_words - 1;
  257|  5.40k|   const size_t n = std::max(y_words, r.sig_words()) - 1;
  258|       |
  259|  5.40k|   BOTAN_ASSERT_NOMSG(n >= t);
  ------------------
  |  |   77|  5.40k|   do {                                                                     \
  |  |   78|  5.40k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  5.40k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 5.40k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  5.40k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 5.40k]
  |  |  ------------------
  ------------------
  260|       |
  261|  5.40k|   BigInt q = BigInt::zero();
  262|  5.40k|   q.grow_to(n - t + 1);
  263|       |
  264|  5.40k|   word* q_words = q.mutable_data();
  265|       |
  266|  5.40k|   BigInt shifted_y = y << (WB * (n - t));
  267|       |
  268|       |   // Set q_{n-t} to number of times r > shifted_y
  269|  5.40k|   secure_vector<word> ws;
  270|  5.40k|   q_words[n - t] = r.reduce_below(shifted_y, ws);
  271|       |
  272|  5.40k|   const word y_t0 = y.word_at(t);
  273|  5.40k|   const word y_t1 = y.word_at(t - 1);
  274|  5.40k|   BOTAN_DEBUG_ASSERT((y_t0 >> (WB - 1)) == 1);
  ------------------
  |  |  130|  5.40k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  5.40k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 5.40k]
  |  |  ------------------
  ------------------
  275|       |
  276|  5.40k|   const divide_precomp div_y_t0(y_t0);
  277|       |
  278|  92.1k|   for(size_t i = n; i != t; --i) {
  ------------------
  |  Branch (278:22): [True: 86.7k, False: 5.40k]
  ------------------
  279|  86.7k|      const word x_i0 = r.word_at(i);
  280|  86.7k|      const word x_i1 = r.word_at(i - 1);
  281|  86.7k|      const word x_i2 = r.word_at(i - 2);
  282|       |
  283|  86.7k|      word qit = (x_i0 == y_t0) ? WordInfo<word>::max : div_y_t0.vartime_div_2to1(x_i0, x_i1);
  ------------------
  |  Branch (283:18): [True: 1.59k, False: 85.1k]
  ------------------
  284|       |
  285|       |      // Per HAC 14.23, this operation is required at most twice
  286|   104k|      for(size_t j = 0; j != 2; ++j) {
  ------------------
  |  Branch (286:25): [True: 103k, False: 1.01k]
  ------------------
  287|   103k|         if(division_check_vartime(qit, y_t0, y_t1, x_i0, x_i1, x_i2)) {
  ------------------
  |  Branch (287:13): [True: 18.2k, False: 85.7k]
  ------------------
  288|  18.2k|            BOTAN_ASSERT_NOMSG(qit > 0);
  ------------------
  |  |   77|  18.2k|   do {                                                                     \
  |  |   78|  18.2k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  18.2k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 18.2k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  18.2k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 18.2k]
  |  |  ------------------
  ------------------
  289|  18.2k|            qit--;
  290|  85.7k|         } else {
  291|  85.7k|            break;
  292|  85.7k|         }
  293|   103k|      }
  294|       |
  295|  86.7k|      shifted_y >>= WB;
  296|       |      // Now shifted_y == y << (WB * (i-t-1))
  297|       |
  298|       |      /*
  299|       |      * Special case qit == 0 and qit == 1 which occurs relatively often here due to a
  300|       |      * combination of the fixed 2^k and in many cases the typical structure of
  301|       |      * public moduli (as this function is called by Barrett_Reduction::for_public_modulus).
  302|       |      *
  303|       |      * Over the test suite, about 5% of loop iterations have qit == 1 and 10% have qit == 0
  304|       |      */
  305|       |
  306|  86.7k|      if(qit != 0) {
  ------------------
  |  Branch (306:10): [True: 83.9k, False: 2.77k]
  ------------------
  307|  83.9k|         if(qit == 1) {
  ------------------
  |  Branch (307:13): [True: 2.30k, False: 81.6k]
  ------------------
  308|  2.30k|            r -= shifted_y;
  309|  81.6k|         } else {
  310|  81.6k|            r -= qit * shifted_y;
  311|  81.6k|         }
  312|       |
  313|  83.9k|         if(r.signum() < 0) {
  ------------------
  |  Branch (313:13): [True: 827, False: 83.1k]
  ------------------
  314|    827|            BOTAN_ASSERT_NOMSG(qit > 0);
  ------------------
  |  |   77|    827|   do {                                                                     \
  |  |   78|    827|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|    827|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 827]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|    827|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 827]
  |  |  ------------------
  ------------------
  315|    827|            qit--;
  316|    827|            r += shifted_y;
  317|    827|            BOTAN_ASSERT_NOMSG(r.signum() >= 0);
  ------------------
  |  |   77|    827|   do {                                                                     \
  |  |   78|    827|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|    827|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 827]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|    827|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 827]
  |  |  ------------------
  ------------------
  318|    827|         }
  319|  83.9k|      }
  320|       |
  321|  86.7k|      q_words[i - t - 1] = qit;
  322|  86.7k|   }
  323|       |
  324|  5.40k|   return q;
  325|  5.40k|}
_ZN5Botan14vartime_divideERKNS_6BigIntES2_RS0_S3_:
  332|    493|void vartime_divide(const BigInt& x, const BigInt& y_arg, BigInt& q_out, BigInt& r_out) {
  333|    493|   constexpr size_t WB = WordInfo<word>::bits;
  334|       |
  335|    493|   if(y_arg.is_zero()) {
  ------------------
  |  Branch (335:7): [True: 0, False: 493]
  ------------------
  336|      0|      throw Invalid_Argument("vartime_divide: cannot divide by zero");
  337|      0|   }
  338|       |
  339|    493|   const size_t y_words = y_arg.sig_words();
  340|       |
  341|    493|   BOTAN_ASSERT_NOMSG(y_words > 0);
  ------------------
  |  |   77|    493|   do {                                                                     \
  |  |   78|    493|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|    493|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 493]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|    493|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 493]
  |  |  ------------------
  ------------------
  342|       |
  343|    493|   BigInt y = y_arg;
  344|       |
  345|    493|   BigInt r = x;
  346|    493|   BigInt q = BigInt::zero();
  347|    493|   secure_vector<word> ws;
  348|       |
  349|    493|   r.set_sign(BigInt::Positive);
  350|    493|   y.set_sign(BigInt::Positive);
  351|       |
  352|       |   // Calculate shifts needed to normalize y with high bit set
  353|    493|   const size_t shifts = y.top_bits_free();
  354|       |
  355|    493|   if(shifts > 0) {
  ------------------
  |  Branch (355:7): [True: 493, False: 0]
  ------------------
  356|    493|      y <<= shifts;
  357|    493|      r <<= shifts;
  358|    493|   }
  359|       |
  360|       |   // we know y has not changed size, since we only shifted up to set high bit
  361|    493|   const size_t t = y_words - 1;
  362|    493|   const size_t n = std::max(y_words, r.sig_words()) - 1;  // r may have changed size however
  363|       |
  364|    493|   BOTAN_ASSERT_NOMSG(n >= t);
  ------------------
  |  |   77|    493|   do {                                                                     \
  |  |   78|    493|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|    493|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 493]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|    493|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 493]
  |  |  ------------------
  ------------------
  365|       |
  366|    493|   q.grow_to(n - t + 1);
  367|       |
  368|    493|   word* q_words = q.mutable_data();
  369|       |
  370|    493|   BigInt shifted_y = y << (WB * (n - t));
  371|       |
  372|       |   // Set q_{n-t} to number of times r > shifted_y
  373|    493|   q_words[n - t] = r.reduce_below(shifted_y, ws);
  374|       |
  375|    493|   const word y_t0 = y.word_at(t);
  376|    493|   const word y_t1 = y.word_at(t - 1);
  377|    493|   BOTAN_DEBUG_ASSERT((y_t0 >> (WB - 1)) == 1);
  ------------------
  |  |  130|    493|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    493|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 493]
  |  |  ------------------
  ------------------
  378|       |
  379|    493|   const divide_precomp div_y_t0(y_t0);
  380|       |
  381|  7.39k|   for(size_t i = n; i != t; --i) {
  ------------------
  |  Branch (381:22): [True: 6.90k, False: 493]
  ------------------
  382|  6.90k|      const word x_i0 = r.word_at(i);
  383|  6.90k|      const word x_i1 = r.word_at(i - 1);
  384|  6.90k|      const word x_i2 = r.word_at(i - 2);
  385|       |
  386|  6.90k|      word qit = (x_i0 == y_t0) ? WordInfo<word>::max : div_y_t0.vartime_div_2to1(x_i0, x_i1);
  ------------------
  |  Branch (386:18): [True: 0, False: 6.90k]
  ------------------
  387|       |
  388|       |      // Per HAC 14.23, this operation is required at most twice
  389|  10.6k|      for(size_t j = 0; j != 2; ++j) {
  ------------------
  |  Branch (389:25): [True: 10.4k, False: 187]
  ------------------
  390|  10.4k|         if(division_check_vartime(qit, y_t0, y_t1, x_i0, x_i1, x_i2)) {
  ------------------
  |  Branch (390:13): [True: 3.78k, False: 6.71k]
  ------------------
  391|  3.78k|            BOTAN_ASSERT_NOMSG(qit > 0);
  ------------------
  |  |   77|  3.78k|   do {                                                                     \
  |  |   78|  3.78k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  3.78k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 3.78k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  3.78k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 3.78k]
  |  |  ------------------
  ------------------
  392|  3.78k|            qit--;
  393|  6.71k|         } else {
  394|  6.71k|            break;
  395|  6.71k|         }
  396|  10.4k|      }
  397|       |
  398|  6.90k|      shifted_y >>= WB;
  399|       |      // Now shifted_y == y << (WB * (i-t-1))
  400|       |
  401|  6.90k|      if(qit != 0) {
  ------------------
  |  Branch (401:10): [True: 6.90k, False: 0]
  ------------------
  402|  6.90k|         r -= qit * shifted_y;
  403|  6.90k|         if(r.signum() < 0) {
  ------------------
  |  Branch (403:13): [True: 0, False: 6.90k]
  ------------------
  404|      0|            BOTAN_ASSERT_NOMSG(qit > 0);
  ------------------
  |  |   77|      0|   do {                                                                     \
  |  |   78|      0|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|      0|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|      0|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
  405|      0|            qit--;
  406|      0|            r += shifted_y;
  407|      0|            BOTAN_ASSERT_NOMSG(r.signum() >= 0);
  ------------------
  |  |   77|      0|   do {                                                                     \
  |  |   78|      0|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|      0|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|      0|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
  408|      0|         }
  409|  6.90k|      }
  410|       |
  411|  6.90k|      q_words[i - t - 1] = qit;
  412|  6.90k|   }
  413|       |
  414|    493|   if(shifts > 0) {
  ------------------
  |  Branch (414:7): [True: 493, False: 0]
  ------------------
  415|    493|      r >>= shifts;
  416|    493|   }
  417|       |
  418|    493|   sign_fixup(x, y_arg, q, r);
  419|       |
  420|    493|   r_out = r;
  421|    493|   q_out = q;
  422|    493|}
divide.cpp:_ZN5Botan12_GLOBAL__N_110sign_fixupERKNS_6BigIntES3_RS1_S4_:
   21|    493|void sign_fixup(const BigInt& x, const BigInt& y, BigInt& q, BigInt& r) {
   22|    493|   q.cond_flip_sign(x.sign() != y.sign());
   23|       |
   24|    493|   if(x.signum() < 0 && r.signum() != 0) {
  ------------------
  |  Branch (24:7): [True: 0, False: 493]
  |  Branch (24:25): [True: 0, False: 0]
  ------------------
   25|      0|      if(y.signum() > 0) {
  ------------------
  |  Branch (25:10): [True: 0, False: 0]
  ------------------
   26|      0|         q -= 1;
   27|      0|      } else {
   28|      0|         q += 1;
   29|      0|      }
   30|      0|      r = y.abs() - r;
   31|      0|   }
   32|    493|}
divide.cpp:_ZN5Botan12_GLOBAL__N_122division_check_vartimeEmmmmmm:
   34|   114k|inline bool division_check_vartime(word q, word y2, word y1, word x3, word x2, word x1) {
   35|       |   /*
   36|       |   Compute (y3,y2,y1) = (y2,y1) * q
   37|       |   and return true if (y3,y2,y1) > (x3,x2,x1)
   38|       |   */
   39|       |
   40|   114k|   word y3 = 0;
   41|   114k|   y1 = word_madd2(q, y1, &y3);
   42|   114k|   y2 = word_madd2(q, y2, &y3);
   43|       |
   44|   114k|   if(x3 != y3) {
  ------------------
  |  Branch (44:7): [True: 48.9k, False: 65.5k]
  ------------------
   45|  48.9k|      return (y3 > x3);
   46|  48.9k|   }
   47|  65.5k|   if(x2 != y2) {
  ------------------
  |  Branch (47:7): [True: 62.3k, False: 3.12k]
  ------------------
   48|  62.3k|      return (y2 > x2);
   49|  62.3k|   }
   50|  3.12k|   return (y1 > x1);
   51|  65.5k|}

_ZN5Botan17bigint_comba_sqr4EPmPKm:
   17|  23.7M|void bigint_comba_sqr4(word z[8], const word x[4]) {
   18|  23.7M|   word3<word> accum;
   19|       |
   20|  23.7M|   accum.mul(x[0], x[0]);
   21|  23.7M|   z[0] = accum.extract();
   22|  23.7M|   accum.mul_x2(x[0], x[1]);
   23|  23.7M|   z[1] = accum.extract();
   24|  23.7M|   accum.mul_x2(x[0], x[2]);
   25|  23.7M|   accum.mul(x[1], x[1]);
   26|  23.7M|   z[2] = accum.extract();
   27|  23.7M|   accum.mul_x2(x[0], x[3]);
   28|  23.7M|   accum.mul_x2(x[1], x[2]);
   29|  23.7M|   z[3] = accum.extract();
   30|  23.7M|   accum.mul_x2(x[1], x[3]);
   31|  23.7M|   accum.mul(x[2], x[2]);
   32|  23.7M|   z[4] = accum.extract();
   33|  23.7M|   accum.mul_x2(x[2], x[3]);
   34|  23.7M|   z[5] = accum.extract();
   35|  23.7M|   accum.mul(x[3], x[3]);
   36|  23.7M|   z[6] = accum.extract();
   37|  23.7M|   z[7] = accum.extract();
   38|  23.7M|}
_ZN5Botan17bigint_comba_mul4EPmPKmS2_:
   43|  34.8M|void bigint_comba_mul4(word z[8], const word x[4], const word y[4]) {
   44|  34.8M|   word3<word> accum;
   45|       |
   46|  34.8M|   accum.mul(x[0], y[0]);
   47|  34.8M|   z[0] = accum.extract();
   48|  34.8M|   accum.mul(x[0], y[1]);
   49|  34.8M|   accum.mul(x[1], y[0]);
   50|  34.8M|   z[1] = accum.extract();
   51|  34.8M|   accum.mul(x[0], y[2]);
   52|  34.8M|   accum.mul(x[1], y[1]);
   53|  34.8M|   accum.mul(x[2], y[0]);
   54|  34.8M|   z[2] = accum.extract();
   55|  34.8M|   accum.mul(x[0], y[3]);
   56|  34.8M|   accum.mul(x[1], y[2]);
   57|  34.8M|   accum.mul(x[2], y[1]);
   58|  34.8M|   accum.mul(x[3], y[0]);
   59|  34.8M|   z[3] = accum.extract();
   60|  34.8M|   accum.mul(x[1], y[3]);
   61|  34.8M|   accum.mul(x[2], y[2]);
   62|  34.8M|   accum.mul(x[3], y[1]);
   63|  34.8M|   z[4] = accum.extract();
   64|  34.8M|   accum.mul(x[2], y[3]);
   65|  34.8M|   accum.mul(x[3], y[2]);
   66|  34.8M|   z[5] = accum.extract();
   67|  34.8M|   accum.mul(x[3], y[3]);
   68|  34.8M|   z[6] = accum.extract();
   69|  34.8M|   z[7] = accum.extract();
   70|  34.8M|}
_ZN5Botan17bigint_comba_sqr6EPmPKm:
   75|     34|void bigint_comba_sqr6(word z[12], const word x[6]) {
   76|     34|   word3<word> accum;
   77|       |
   78|     34|   accum.mul(x[0], x[0]);
   79|     34|   z[0] = accum.extract();
   80|     34|   accum.mul_x2(x[0], x[1]);
   81|     34|   z[1] = accum.extract();
   82|     34|   accum.mul_x2(x[0], x[2]);
   83|     34|   accum.mul(x[1], x[1]);
   84|     34|   z[2] = accum.extract();
   85|     34|   accum.mul_x2(x[0], x[3]);
   86|     34|   accum.mul_x2(x[1], x[2]);
   87|     34|   z[3] = accum.extract();
   88|     34|   accum.mul_x2(x[0], x[4]);
   89|     34|   accum.mul_x2(x[1], x[3]);
   90|     34|   accum.mul(x[2], x[2]);
   91|     34|   z[4] = accum.extract();
   92|     34|   accum.mul_x2(x[0], x[5]);
   93|     34|   accum.mul_x2(x[1], x[4]);
   94|     34|   accum.mul_x2(x[2], x[3]);
   95|     34|   z[5] = accum.extract();
   96|     34|   accum.mul_x2(x[1], x[5]);
   97|     34|   accum.mul_x2(x[2], x[4]);
   98|     34|   accum.mul(x[3], x[3]);
   99|     34|   z[6] = accum.extract();
  100|     34|   accum.mul_x2(x[2], x[5]);
  101|     34|   accum.mul_x2(x[3], x[4]);
  102|     34|   z[7] = accum.extract();
  103|     34|   accum.mul_x2(x[3], x[5]);
  104|     34|   accum.mul(x[4], x[4]);
  105|     34|   z[8] = accum.extract();
  106|     34|   accum.mul_x2(x[4], x[5]);
  107|     34|   z[9] = accum.extract();
  108|     34|   accum.mul(x[5], x[5]);
  109|     34|   z[10] = accum.extract();
  110|     34|   z[11] = accum.extract();
  111|     34|}
_ZN5Botan17bigint_comba_mul6EPmPKmS2_:
  116|     82|void bigint_comba_mul6(word z[12], const word x[6], const word y[6]) {
  117|     82|   word3<word> accum;
  118|       |
  119|     82|   accum.mul(x[0], y[0]);
  120|     82|   z[0] = accum.extract();
  121|     82|   accum.mul(x[0], y[1]);
  122|     82|   accum.mul(x[1], y[0]);
  123|     82|   z[1] = accum.extract();
  124|     82|   accum.mul(x[0], y[2]);
  125|     82|   accum.mul(x[1], y[1]);
  126|     82|   accum.mul(x[2], y[0]);
  127|     82|   z[2] = accum.extract();
  128|     82|   accum.mul(x[0], y[3]);
  129|     82|   accum.mul(x[1], y[2]);
  130|     82|   accum.mul(x[2], y[1]);
  131|     82|   accum.mul(x[3], y[0]);
  132|     82|   z[3] = accum.extract();
  133|     82|   accum.mul(x[0], y[4]);
  134|     82|   accum.mul(x[1], y[3]);
  135|     82|   accum.mul(x[2], y[2]);
  136|     82|   accum.mul(x[3], y[1]);
  137|     82|   accum.mul(x[4], y[0]);
  138|     82|   z[4] = accum.extract();
  139|     82|   accum.mul(x[0], y[5]);
  140|     82|   accum.mul(x[1], y[4]);
  141|     82|   accum.mul(x[2], y[3]);
  142|     82|   accum.mul(x[3], y[2]);
  143|     82|   accum.mul(x[4], y[1]);
  144|     82|   accum.mul(x[5], y[0]);
  145|     82|   z[5] = accum.extract();
  146|     82|   accum.mul(x[1], y[5]);
  147|     82|   accum.mul(x[2], y[4]);
  148|     82|   accum.mul(x[3], y[3]);
  149|     82|   accum.mul(x[4], y[2]);
  150|     82|   accum.mul(x[5], y[1]);
  151|     82|   z[6] = accum.extract();
  152|     82|   accum.mul(x[2], y[5]);
  153|     82|   accum.mul(x[3], y[4]);
  154|     82|   accum.mul(x[4], y[3]);
  155|     82|   accum.mul(x[5], y[2]);
  156|     82|   z[7] = accum.extract();
  157|     82|   accum.mul(x[3], y[5]);
  158|     82|   accum.mul(x[4], y[4]);
  159|     82|   accum.mul(x[5], y[3]);
  160|     82|   z[8] = accum.extract();
  161|     82|   accum.mul(x[4], y[5]);
  162|     82|   accum.mul(x[5], y[4]);
  163|     82|   z[9] = accum.extract();
  164|     82|   accum.mul(x[5], y[5]);
  165|     82|   z[10] = accum.extract();
  166|     82|   z[11] = accum.extract();
  167|     82|}
_ZN5Botan17bigint_comba_sqr8EPmPKm:
  293|     65|void bigint_comba_sqr8(word z[16], const word x[8]) {
  294|     65|   word3<word> accum;
  295|       |
  296|     65|   accum.mul(x[0], x[0]);
  297|     65|   z[0] = accum.extract();
  298|     65|   accum.mul_x2(x[0], x[1]);
  299|     65|   z[1] = accum.extract();
  300|     65|   accum.mul_x2(x[0], x[2]);
  301|     65|   accum.mul(x[1], x[1]);
  302|     65|   z[2] = accum.extract();
  303|     65|   accum.mul_x2(x[0], x[3]);
  304|     65|   accum.mul_x2(x[1], x[2]);
  305|     65|   z[3] = accum.extract();
  306|     65|   accum.mul_x2(x[0], x[4]);
  307|     65|   accum.mul_x2(x[1], x[3]);
  308|     65|   accum.mul(x[2], x[2]);
  309|     65|   z[4] = accum.extract();
  310|     65|   accum.mul_x2(x[0], x[5]);
  311|     65|   accum.mul_x2(x[1], x[4]);
  312|     65|   accum.mul_x2(x[2], x[3]);
  313|     65|   z[5] = accum.extract();
  314|     65|   accum.mul_x2(x[0], x[6]);
  315|     65|   accum.mul_x2(x[1], x[5]);
  316|     65|   accum.mul_x2(x[2], x[4]);
  317|     65|   accum.mul(x[3], x[3]);
  318|     65|   z[6] = accum.extract();
  319|     65|   accum.mul_x2(x[0], x[7]);
  320|     65|   accum.mul_x2(x[1], x[6]);
  321|     65|   accum.mul_x2(x[2], x[5]);
  322|     65|   accum.mul_x2(x[3], x[4]);
  323|     65|   z[7] = accum.extract();
  324|     65|   accum.mul_x2(x[1], x[7]);
  325|     65|   accum.mul_x2(x[2], x[6]);
  326|     65|   accum.mul_x2(x[3], x[5]);
  327|     65|   accum.mul(x[4], x[4]);
  328|     65|   z[8] = accum.extract();
  329|     65|   accum.mul_x2(x[2], x[7]);
  330|     65|   accum.mul_x2(x[3], x[6]);
  331|     65|   accum.mul_x2(x[4], x[5]);
  332|     65|   z[9] = accum.extract();
  333|     65|   accum.mul_x2(x[3], x[7]);
  334|     65|   accum.mul_x2(x[4], x[6]);
  335|     65|   accum.mul(x[5], x[5]);
  336|     65|   z[10] = accum.extract();
  337|     65|   accum.mul_x2(x[4], x[7]);
  338|     65|   accum.mul_x2(x[5], x[6]);
  339|     65|   z[11] = accum.extract();
  340|     65|   accum.mul_x2(x[5], x[7]);
  341|     65|   accum.mul(x[6], x[6]);
  342|     65|   z[12] = accum.extract();
  343|     65|   accum.mul_x2(x[6], x[7]);
  344|     65|   z[13] = accum.extract();
  345|     65|   accum.mul(x[7], x[7]);
  346|     65|   z[14] = accum.extract();
  347|     65|   z[15] = accum.extract();
  348|     65|}
_ZN5Botan17bigint_comba_mul8EPmPKmS2_:
  353|    737|void bigint_comba_mul8(word z[16], const word x[8], const word y[8]) {
  354|    737|   word3<word> accum;
  355|       |
  356|    737|   accum.mul(x[0], y[0]);
  357|    737|   z[0] = accum.extract();
  358|    737|   accum.mul(x[0], y[1]);
  359|    737|   accum.mul(x[1], y[0]);
  360|    737|   z[1] = accum.extract();
  361|    737|   accum.mul(x[0], y[2]);
  362|    737|   accum.mul(x[1], y[1]);
  363|    737|   accum.mul(x[2], y[0]);
  364|    737|   z[2] = accum.extract();
  365|    737|   accum.mul(x[0], y[3]);
  366|    737|   accum.mul(x[1], y[2]);
  367|    737|   accum.mul(x[2], y[1]);
  368|    737|   accum.mul(x[3], y[0]);
  369|    737|   z[3] = accum.extract();
  370|    737|   accum.mul(x[0], y[4]);
  371|    737|   accum.mul(x[1], y[3]);
  372|    737|   accum.mul(x[2], y[2]);
  373|    737|   accum.mul(x[3], y[1]);
  374|    737|   accum.mul(x[4], y[0]);
  375|    737|   z[4] = accum.extract();
  376|    737|   accum.mul(x[0], y[5]);
  377|    737|   accum.mul(x[1], y[4]);
  378|    737|   accum.mul(x[2], y[3]);
  379|    737|   accum.mul(x[3], y[2]);
  380|    737|   accum.mul(x[4], y[1]);
  381|    737|   accum.mul(x[5], y[0]);
  382|    737|   z[5] = accum.extract();
  383|    737|   accum.mul(x[0], y[6]);
  384|    737|   accum.mul(x[1], y[5]);
  385|    737|   accum.mul(x[2], y[4]);
  386|    737|   accum.mul(x[3], y[3]);
  387|    737|   accum.mul(x[4], y[2]);
  388|    737|   accum.mul(x[5], y[1]);
  389|    737|   accum.mul(x[6], y[0]);
  390|    737|   z[6] = accum.extract();
  391|    737|   accum.mul(x[0], y[7]);
  392|    737|   accum.mul(x[1], y[6]);
  393|    737|   accum.mul(x[2], y[5]);
  394|    737|   accum.mul(x[3], y[4]);
  395|    737|   accum.mul(x[4], y[3]);
  396|    737|   accum.mul(x[5], y[2]);
  397|    737|   accum.mul(x[6], y[1]);
  398|    737|   accum.mul(x[7], y[0]);
  399|    737|   z[7] = accum.extract();
  400|    737|   accum.mul(x[1], y[7]);
  401|    737|   accum.mul(x[2], y[6]);
  402|    737|   accum.mul(x[3], y[5]);
  403|    737|   accum.mul(x[4], y[4]);
  404|    737|   accum.mul(x[5], y[3]);
  405|    737|   accum.mul(x[6], y[2]);
  406|    737|   accum.mul(x[7], y[1]);
  407|    737|   z[8] = accum.extract();
  408|    737|   accum.mul(x[2], y[7]);
  409|    737|   accum.mul(x[3], y[6]);
  410|    737|   accum.mul(x[4], y[5]);
  411|    737|   accum.mul(x[5], y[4]);
  412|    737|   accum.mul(x[6], y[3]);
  413|    737|   accum.mul(x[7], y[2]);
  414|    737|   z[9] = accum.extract();
  415|    737|   accum.mul(x[3], y[7]);
  416|    737|   accum.mul(x[4], y[6]);
  417|    737|   accum.mul(x[5], y[5]);
  418|    737|   accum.mul(x[6], y[4]);
  419|    737|   accum.mul(x[7], y[3]);
  420|    737|   z[10] = accum.extract();
  421|    737|   accum.mul(x[4], y[7]);
  422|    737|   accum.mul(x[5], y[6]);
  423|    737|   accum.mul(x[6], y[5]);
  424|    737|   accum.mul(x[7], y[4]);
  425|    737|   z[11] = accum.extract();
  426|    737|   accum.mul(x[5], y[7]);
  427|    737|   accum.mul(x[6], y[6]);
  428|    737|   accum.mul(x[7], y[5]);
  429|    737|   z[12] = accum.extract();
  430|    737|   accum.mul(x[6], y[7]);
  431|    737|   accum.mul(x[7], y[6]);
  432|    737|   z[13] = accum.extract();
  433|    737|   accum.mul(x[7], y[7]);
  434|    737|   z[14] = accum.extract();
  435|    737|   z[15] = accum.extract();
  436|    737|}
_ZN5Botan17bigint_comba_sqr9EPmPKm:
  441|    116|void bigint_comba_sqr9(word z[18], const word x[9]) {
  442|    116|   word3<word> accum;
  443|       |
  444|    116|   accum.mul(x[0], x[0]);
  445|    116|   z[0] = accum.extract();
  446|    116|   accum.mul_x2(x[0], x[1]);
  447|    116|   z[1] = accum.extract();
  448|    116|   accum.mul_x2(x[0], x[2]);
  449|    116|   accum.mul(x[1], x[1]);
  450|    116|   z[2] = accum.extract();
  451|    116|   accum.mul_x2(x[0], x[3]);
  452|    116|   accum.mul_x2(x[1], x[2]);
  453|    116|   z[3] = accum.extract();
  454|    116|   accum.mul_x2(x[0], x[4]);
  455|    116|   accum.mul_x2(x[1], x[3]);
  456|    116|   accum.mul(x[2], x[2]);
  457|    116|   z[4] = accum.extract();
  458|    116|   accum.mul_x2(x[0], x[5]);
  459|    116|   accum.mul_x2(x[1], x[4]);
  460|    116|   accum.mul_x2(x[2], x[3]);
  461|    116|   z[5] = accum.extract();
  462|    116|   accum.mul_x2(x[0], x[6]);
  463|    116|   accum.mul_x2(x[1], x[5]);
  464|    116|   accum.mul_x2(x[2], x[4]);
  465|    116|   accum.mul(x[3], x[3]);
  466|    116|   z[6] = accum.extract();
  467|    116|   accum.mul_x2(x[0], x[7]);
  468|    116|   accum.mul_x2(x[1], x[6]);
  469|    116|   accum.mul_x2(x[2], x[5]);
  470|    116|   accum.mul_x2(x[3], x[4]);
  471|    116|   z[7] = accum.extract();
  472|    116|   accum.mul_x2(x[0], x[8]);
  473|    116|   accum.mul_x2(x[1], x[7]);
  474|    116|   accum.mul_x2(x[2], x[6]);
  475|    116|   accum.mul_x2(x[3], x[5]);
  476|    116|   accum.mul(x[4], x[4]);
  477|    116|   z[8] = accum.extract();
  478|    116|   accum.mul_x2(x[1], x[8]);
  479|    116|   accum.mul_x2(x[2], x[7]);
  480|    116|   accum.mul_x2(x[3], x[6]);
  481|    116|   accum.mul_x2(x[4], x[5]);
  482|    116|   z[9] = accum.extract();
  483|    116|   accum.mul_x2(x[2], x[8]);
  484|    116|   accum.mul_x2(x[3], x[7]);
  485|    116|   accum.mul_x2(x[4], x[6]);
  486|    116|   accum.mul(x[5], x[5]);
  487|    116|   z[10] = accum.extract();
  488|    116|   accum.mul_x2(x[3], x[8]);
  489|    116|   accum.mul_x2(x[4], x[7]);
  490|    116|   accum.mul_x2(x[5], x[6]);
  491|    116|   z[11] = accum.extract();
  492|    116|   accum.mul_x2(x[4], x[8]);
  493|    116|   accum.mul_x2(x[5], x[7]);
  494|    116|   accum.mul(x[6], x[6]);
  495|    116|   z[12] = accum.extract();
  496|    116|   accum.mul_x2(x[5], x[8]);
  497|    116|   accum.mul_x2(x[6], x[7]);
  498|    116|   z[13] = accum.extract();
  499|    116|   accum.mul_x2(x[6], x[8]);
  500|    116|   accum.mul(x[7], x[7]);
  501|    116|   z[14] = accum.extract();
  502|    116|   accum.mul_x2(x[7], x[8]);
  503|    116|   z[15] = accum.extract();
  504|    116|   accum.mul(x[8], x[8]);
  505|    116|   z[16] = accum.extract();
  506|    116|   z[17] = accum.extract();
  507|    116|}
_ZN5Botan17bigint_comba_mul9EPmPKmS2_:
  512|    506|void bigint_comba_mul9(word z[18], const word x[9], const word y[9]) {
  513|    506|   word3<word> accum;
  514|       |
  515|    506|   accum.mul(x[0], y[0]);
  516|    506|   z[0] = accum.extract();
  517|    506|   accum.mul(x[0], y[1]);
  518|    506|   accum.mul(x[1], y[0]);
  519|    506|   z[1] = accum.extract();
  520|    506|   accum.mul(x[0], y[2]);
  521|    506|   accum.mul(x[1], y[1]);
  522|    506|   accum.mul(x[2], y[0]);
  523|    506|   z[2] = accum.extract();
  524|    506|   accum.mul(x[0], y[3]);
  525|    506|   accum.mul(x[1], y[2]);
  526|    506|   accum.mul(x[2], y[1]);
  527|    506|   accum.mul(x[3], y[0]);
  528|    506|   z[3] = accum.extract();
  529|    506|   accum.mul(x[0], y[4]);
  530|    506|   accum.mul(x[1], y[3]);
  531|    506|   accum.mul(x[2], y[2]);
  532|    506|   accum.mul(x[3], y[1]);
  533|    506|   accum.mul(x[4], y[0]);
  534|    506|   z[4] = accum.extract();
  535|    506|   accum.mul(x[0], y[5]);
  536|    506|   accum.mul(x[1], y[4]);
  537|    506|   accum.mul(x[2], y[3]);
  538|    506|   accum.mul(x[3], y[2]);
  539|    506|   accum.mul(x[4], y[1]);
  540|    506|   accum.mul(x[5], y[0]);
  541|    506|   z[5] = accum.extract();
  542|    506|   accum.mul(x[0], y[6]);
  543|    506|   accum.mul(x[1], y[5]);
  544|    506|   accum.mul(x[2], y[4]);
  545|    506|   accum.mul(x[3], y[3]);
  546|    506|   accum.mul(x[4], y[2]);
  547|    506|   accum.mul(x[5], y[1]);
  548|    506|   accum.mul(x[6], y[0]);
  549|    506|   z[6] = accum.extract();
  550|    506|   accum.mul(x[0], y[7]);
  551|    506|   accum.mul(x[1], y[6]);
  552|    506|   accum.mul(x[2], y[5]);
  553|    506|   accum.mul(x[3], y[4]);
  554|    506|   accum.mul(x[4], y[3]);
  555|    506|   accum.mul(x[5], y[2]);
  556|    506|   accum.mul(x[6], y[1]);
  557|    506|   accum.mul(x[7], y[0]);
  558|    506|   z[7] = accum.extract();
  559|    506|   accum.mul(x[0], y[8]);
  560|    506|   accum.mul(x[1], y[7]);
  561|    506|   accum.mul(x[2], y[6]);
  562|    506|   accum.mul(x[3], y[5]);
  563|    506|   accum.mul(x[4], y[4]);
  564|    506|   accum.mul(x[5], y[3]);
  565|    506|   accum.mul(x[6], y[2]);
  566|    506|   accum.mul(x[7], y[1]);
  567|    506|   accum.mul(x[8], y[0]);
  568|    506|   z[8] = accum.extract();
  569|    506|   accum.mul(x[1], y[8]);
  570|    506|   accum.mul(x[2], y[7]);
  571|    506|   accum.mul(x[3], y[6]);
  572|    506|   accum.mul(x[4], y[5]);
  573|    506|   accum.mul(x[5], y[4]);
  574|    506|   accum.mul(x[6], y[3]);
  575|    506|   accum.mul(x[7], y[2]);
  576|    506|   accum.mul(x[8], y[1]);
  577|    506|   z[9] = accum.extract();
  578|    506|   accum.mul(x[2], y[8]);
  579|    506|   accum.mul(x[3], y[7]);
  580|    506|   accum.mul(x[4], y[6]);
  581|    506|   accum.mul(x[5], y[5]);
  582|    506|   accum.mul(x[6], y[4]);
  583|    506|   accum.mul(x[7], y[3]);
  584|    506|   accum.mul(x[8], y[2]);
  585|    506|   z[10] = accum.extract();
  586|    506|   accum.mul(x[3], y[8]);
  587|    506|   accum.mul(x[4], y[7]);
  588|    506|   accum.mul(x[5], y[6]);
  589|    506|   accum.mul(x[6], y[5]);
  590|    506|   accum.mul(x[7], y[4]);
  591|    506|   accum.mul(x[8], y[3]);
  592|    506|   z[11] = accum.extract();
  593|    506|   accum.mul(x[4], y[8]);
  594|    506|   accum.mul(x[5], y[7]);
  595|    506|   accum.mul(x[6], y[6]);
  596|    506|   accum.mul(x[7], y[5]);
  597|    506|   accum.mul(x[8], y[4]);
  598|    506|   z[12] = accum.extract();
  599|    506|   accum.mul(x[5], y[8]);
  600|    506|   accum.mul(x[6], y[7]);
  601|    506|   accum.mul(x[7], y[6]);
  602|    506|   accum.mul(x[8], y[5]);
  603|    506|   z[13] = accum.extract();
  604|    506|   accum.mul(x[6], y[8]);
  605|    506|   accum.mul(x[7], y[7]);
  606|    506|   accum.mul(x[8], y[6]);
  607|    506|   z[14] = accum.extract();
  608|    506|   accum.mul(x[7], y[8]);
  609|    506|   accum.mul(x[8], y[7]);
  610|    506|   z[15] = accum.extract();
  611|    506|   accum.mul(x[8], y[8]);
  612|    506|   z[16] = accum.extract();
  613|    506|   z[17] = accum.extract();
  614|    506|}
_ZN5Botan18bigint_comba_sqr16EPmPKm:
  619|   110k|void bigint_comba_sqr16(word z[32], const word x[16]) {
  620|   110k|   word3<word> accum;
  621|       |
  622|   110k|   accum.mul(x[0], x[0]);
  623|   110k|   z[0] = accum.extract();
  624|   110k|   accum.mul_x2(x[0], x[1]);
  625|   110k|   z[1] = accum.extract();
  626|   110k|   accum.mul_x2(x[0], x[2]);
  627|   110k|   accum.mul(x[1], x[1]);
  628|   110k|   z[2] = accum.extract();
  629|   110k|   accum.mul_x2(x[0], x[3]);
  630|   110k|   accum.mul_x2(x[1], x[2]);
  631|   110k|   z[3] = accum.extract();
  632|   110k|   accum.mul_x2(x[0], x[4]);
  633|   110k|   accum.mul_x2(x[1], x[3]);
  634|   110k|   accum.mul(x[2], x[2]);
  635|   110k|   z[4] = accum.extract();
  636|   110k|   accum.mul_x2(x[0], x[5]);
  637|   110k|   accum.mul_x2(x[1], x[4]);
  638|   110k|   accum.mul_x2(x[2], x[3]);
  639|   110k|   z[5] = accum.extract();
  640|   110k|   accum.mul_x2(x[0], x[6]);
  641|   110k|   accum.mul_x2(x[1], x[5]);
  642|   110k|   accum.mul_x2(x[2], x[4]);
  643|   110k|   accum.mul(x[3], x[3]);
  644|   110k|   z[6] = accum.extract();
  645|   110k|   accum.mul_x2(x[0], x[7]);
  646|   110k|   accum.mul_x2(x[1], x[6]);
  647|   110k|   accum.mul_x2(x[2], x[5]);
  648|   110k|   accum.mul_x2(x[3], x[4]);
  649|   110k|   z[7] = accum.extract();
  650|   110k|   accum.mul_x2(x[0], x[8]);
  651|   110k|   accum.mul_x2(x[1], x[7]);
  652|   110k|   accum.mul_x2(x[2], x[6]);
  653|   110k|   accum.mul_x2(x[3], x[5]);
  654|   110k|   accum.mul(x[4], x[4]);
  655|   110k|   z[8] = accum.extract();
  656|   110k|   accum.mul_x2(x[0], x[9]);
  657|   110k|   accum.mul_x2(x[1], x[8]);
  658|   110k|   accum.mul_x2(x[2], x[7]);
  659|   110k|   accum.mul_x2(x[3], x[6]);
  660|   110k|   accum.mul_x2(x[4], x[5]);
  661|   110k|   z[9] = accum.extract();
  662|   110k|   accum.mul_x2(x[0], x[10]);
  663|   110k|   accum.mul_x2(x[1], x[9]);
  664|   110k|   accum.mul_x2(x[2], x[8]);
  665|   110k|   accum.mul_x2(x[3], x[7]);
  666|   110k|   accum.mul_x2(x[4], x[6]);
  667|   110k|   accum.mul(x[5], x[5]);
  668|   110k|   z[10] = accum.extract();
  669|   110k|   accum.mul_x2(x[0], x[11]);
  670|   110k|   accum.mul_x2(x[1], x[10]);
  671|   110k|   accum.mul_x2(x[2], x[9]);
  672|   110k|   accum.mul_x2(x[3], x[8]);
  673|   110k|   accum.mul_x2(x[4], x[7]);
  674|   110k|   accum.mul_x2(x[5], x[6]);
  675|   110k|   z[11] = accum.extract();
  676|   110k|   accum.mul_x2(x[0], x[12]);
  677|   110k|   accum.mul_x2(x[1], x[11]);
  678|   110k|   accum.mul_x2(x[2], x[10]);
  679|   110k|   accum.mul_x2(x[3], x[9]);
  680|   110k|   accum.mul_x2(x[4], x[8]);
  681|   110k|   accum.mul_x2(x[5], x[7]);
  682|   110k|   accum.mul(x[6], x[6]);
  683|   110k|   z[12] = accum.extract();
  684|   110k|   accum.mul_x2(x[0], x[13]);
  685|   110k|   accum.mul_x2(x[1], x[12]);
  686|   110k|   accum.mul_x2(x[2], x[11]);
  687|   110k|   accum.mul_x2(x[3], x[10]);
  688|   110k|   accum.mul_x2(x[4], x[9]);
  689|   110k|   accum.mul_x2(x[5], x[8]);
  690|   110k|   accum.mul_x2(x[6], x[7]);
  691|   110k|   z[13] = accum.extract();
  692|   110k|   accum.mul_x2(x[0], x[14]);
  693|   110k|   accum.mul_x2(x[1], x[13]);
  694|   110k|   accum.mul_x2(x[2], x[12]);
  695|   110k|   accum.mul_x2(x[3], x[11]);
  696|   110k|   accum.mul_x2(x[4], x[10]);
  697|   110k|   accum.mul_x2(x[5], x[9]);
  698|   110k|   accum.mul_x2(x[6], x[8]);
  699|   110k|   accum.mul(x[7], x[7]);
  700|   110k|   z[14] = accum.extract();
  701|   110k|   accum.mul_x2(x[0], x[15]);
  702|   110k|   accum.mul_x2(x[1], x[14]);
  703|   110k|   accum.mul_x2(x[2], x[13]);
  704|   110k|   accum.mul_x2(x[3], x[12]);
  705|   110k|   accum.mul_x2(x[4], x[11]);
  706|   110k|   accum.mul_x2(x[5], x[10]);
  707|   110k|   accum.mul_x2(x[6], x[9]);
  708|   110k|   accum.mul_x2(x[7], x[8]);
  709|   110k|   z[15] = accum.extract();
  710|   110k|   accum.mul_x2(x[1], x[15]);
  711|   110k|   accum.mul_x2(x[2], x[14]);
  712|   110k|   accum.mul_x2(x[3], x[13]);
  713|   110k|   accum.mul_x2(x[4], x[12]);
  714|   110k|   accum.mul_x2(x[5], x[11]);
  715|   110k|   accum.mul_x2(x[6], x[10]);
  716|   110k|   accum.mul_x2(x[7], x[9]);
  717|   110k|   accum.mul(x[8], x[8]);
  718|   110k|   z[16] = accum.extract();
  719|   110k|   accum.mul_x2(x[2], x[15]);
  720|   110k|   accum.mul_x2(x[3], x[14]);
  721|   110k|   accum.mul_x2(x[4], x[13]);
  722|   110k|   accum.mul_x2(x[5], x[12]);
  723|   110k|   accum.mul_x2(x[6], x[11]);
  724|   110k|   accum.mul_x2(x[7], x[10]);
  725|   110k|   accum.mul_x2(x[8], x[9]);
  726|   110k|   z[17] = accum.extract();
  727|   110k|   accum.mul_x2(x[3], x[15]);
  728|   110k|   accum.mul_x2(x[4], x[14]);
  729|   110k|   accum.mul_x2(x[5], x[13]);
  730|   110k|   accum.mul_x2(x[6], x[12]);
  731|   110k|   accum.mul_x2(x[7], x[11]);
  732|   110k|   accum.mul_x2(x[8], x[10]);
  733|   110k|   accum.mul(x[9], x[9]);
  734|   110k|   z[18] = accum.extract();
  735|   110k|   accum.mul_x2(x[4], x[15]);
  736|   110k|   accum.mul_x2(x[5], x[14]);
  737|   110k|   accum.mul_x2(x[6], x[13]);
  738|   110k|   accum.mul_x2(x[7], x[12]);
  739|   110k|   accum.mul_x2(x[8], x[11]);
  740|   110k|   accum.mul_x2(x[9], x[10]);
  741|   110k|   z[19] = accum.extract();
  742|   110k|   accum.mul_x2(x[5], x[15]);
  743|   110k|   accum.mul_x2(x[6], x[14]);
  744|   110k|   accum.mul_x2(x[7], x[13]);
  745|   110k|   accum.mul_x2(x[8], x[12]);
  746|   110k|   accum.mul_x2(x[9], x[11]);
  747|   110k|   accum.mul(x[10], x[10]);
  748|   110k|   z[20] = accum.extract();
  749|   110k|   accum.mul_x2(x[6], x[15]);
  750|   110k|   accum.mul_x2(x[7], x[14]);
  751|   110k|   accum.mul_x2(x[8], x[13]);
  752|   110k|   accum.mul_x2(x[9], x[12]);
  753|   110k|   accum.mul_x2(x[10], x[11]);
  754|   110k|   z[21] = accum.extract();
  755|   110k|   accum.mul_x2(x[7], x[15]);
  756|   110k|   accum.mul_x2(x[8], x[14]);
  757|   110k|   accum.mul_x2(x[9], x[13]);
  758|   110k|   accum.mul_x2(x[10], x[12]);
  759|   110k|   accum.mul(x[11], x[11]);
  760|   110k|   z[22] = accum.extract();
  761|   110k|   accum.mul_x2(x[8], x[15]);
  762|   110k|   accum.mul_x2(x[9], x[14]);
  763|   110k|   accum.mul_x2(x[10], x[13]);
  764|   110k|   accum.mul_x2(x[11], x[12]);
  765|   110k|   z[23] = accum.extract();
  766|   110k|   accum.mul_x2(x[9], x[15]);
  767|   110k|   accum.mul_x2(x[10], x[14]);
  768|   110k|   accum.mul_x2(x[11], x[13]);
  769|   110k|   accum.mul(x[12], x[12]);
  770|   110k|   z[24] = accum.extract();
  771|   110k|   accum.mul_x2(x[10], x[15]);
  772|   110k|   accum.mul_x2(x[11], x[14]);
  773|   110k|   accum.mul_x2(x[12], x[13]);
  774|   110k|   z[25] = accum.extract();
  775|   110k|   accum.mul_x2(x[11], x[15]);
  776|   110k|   accum.mul_x2(x[12], x[14]);
  777|   110k|   accum.mul(x[13], x[13]);
  778|   110k|   z[26] = accum.extract();
  779|   110k|   accum.mul_x2(x[12], x[15]);
  780|   110k|   accum.mul_x2(x[13], x[14]);
  781|   110k|   z[27] = accum.extract();
  782|   110k|   accum.mul_x2(x[13], x[15]);
  783|   110k|   accum.mul(x[14], x[14]);
  784|   110k|   z[28] = accum.extract();
  785|   110k|   accum.mul_x2(x[14], x[15]);
  786|   110k|   z[29] = accum.extract();
  787|   110k|   accum.mul(x[15], x[15]);
  788|   110k|   z[30] = accum.extract();
  789|   110k|   z[31] = accum.extract();
  790|   110k|}
_ZN5Botan18bigint_comba_mul16EPmPKmS2_:
  795|  61.6k|void bigint_comba_mul16(word z[32], const word x[16], const word y[16]) {
  796|  61.6k|   word3<word> accum;
  797|       |
  798|  61.6k|   accum.mul(x[0], y[0]);
  799|  61.6k|   z[0] = accum.extract();
  800|  61.6k|   accum.mul(x[0], y[1]);
  801|  61.6k|   accum.mul(x[1], y[0]);
  802|  61.6k|   z[1] = accum.extract();
  803|  61.6k|   accum.mul(x[0], y[2]);
  804|  61.6k|   accum.mul(x[1], y[1]);
  805|  61.6k|   accum.mul(x[2], y[0]);
  806|  61.6k|   z[2] = accum.extract();
  807|  61.6k|   accum.mul(x[0], y[3]);
  808|  61.6k|   accum.mul(x[1], y[2]);
  809|  61.6k|   accum.mul(x[2], y[1]);
  810|  61.6k|   accum.mul(x[3], y[0]);
  811|  61.6k|   z[3] = accum.extract();
  812|  61.6k|   accum.mul(x[0], y[4]);
  813|  61.6k|   accum.mul(x[1], y[3]);
  814|  61.6k|   accum.mul(x[2], y[2]);
  815|  61.6k|   accum.mul(x[3], y[1]);
  816|  61.6k|   accum.mul(x[4], y[0]);
  817|  61.6k|   z[4] = accum.extract();
  818|  61.6k|   accum.mul(x[0], y[5]);
  819|  61.6k|   accum.mul(x[1], y[4]);
  820|  61.6k|   accum.mul(x[2], y[3]);
  821|  61.6k|   accum.mul(x[3], y[2]);
  822|  61.6k|   accum.mul(x[4], y[1]);
  823|  61.6k|   accum.mul(x[5], y[0]);
  824|  61.6k|   z[5] = accum.extract();
  825|  61.6k|   accum.mul(x[0], y[6]);
  826|  61.6k|   accum.mul(x[1], y[5]);
  827|  61.6k|   accum.mul(x[2], y[4]);
  828|  61.6k|   accum.mul(x[3], y[3]);
  829|  61.6k|   accum.mul(x[4], y[2]);
  830|  61.6k|   accum.mul(x[5], y[1]);
  831|  61.6k|   accum.mul(x[6], y[0]);
  832|  61.6k|   z[6] = accum.extract();
  833|  61.6k|   accum.mul(x[0], y[7]);
  834|  61.6k|   accum.mul(x[1], y[6]);
  835|  61.6k|   accum.mul(x[2], y[5]);
  836|  61.6k|   accum.mul(x[3], y[4]);
  837|  61.6k|   accum.mul(x[4], y[3]);
  838|  61.6k|   accum.mul(x[5], y[2]);
  839|  61.6k|   accum.mul(x[6], y[1]);
  840|  61.6k|   accum.mul(x[7], y[0]);
  841|  61.6k|   z[7] = accum.extract();
  842|  61.6k|   accum.mul(x[0], y[8]);
  843|  61.6k|   accum.mul(x[1], y[7]);
  844|  61.6k|   accum.mul(x[2], y[6]);
  845|  61.6k|   accum.mul(x[3], y[5]);
  846|  61.6k|   accum.mul(x[4], y[4]);
  847|  61.6k|   accum.mul(x[5], y[3]);
  848|  61.6k|   accum.mul(x[6], y[2]);
  849|  61.6k|   accum.mul(x[7], y[1]);
  850|  61.6k|   accum.mul(x[8], y[0]);
  851|  61.6k|   z[8] = accum.extract();
  852|  61.6k|   accum.mul(x[0], y[9]);
  853|  61.6k|   accum.mul(x[1], y[8]);
  854|  61.6k|   accum.mul(x[2], y[7]);
  855|  61.6k|   accum.mul(x[3], y[6]);
  856|  61.6k|   accum.mul(x[4], y[5]);
  857|  61.6k|   accum.mul(x[5], y[4]);
  858|  61.6k|   accum.mul(x[6], y[3]);
  859|  61.6k|   accum.mul(x[7], y[2]);
  860|  61.6k|   accum.mul(x[8], y[1]);
  861|  61.6k|   accum.mul(x[9], y[0]);
  862|  61.6k|   z[9] = accum.extract();
  863|  61.6k|   accum.mul(x[0], y[10]);
  864|  61.6k|   accum.mul(x[1], y[9]);
  865|  61.6k|   accum.mul(x[2], y[8]);
  866|  61.6k|   accum.mul(x[3], y[7]);
  867|  61.6k|   accum.mul(x[4], y[6]);
  868|  61.6k|   accum.mul(x[5], y[5]);
  869|  61.6k|   accum.mul(x[6], y[4]);
  870|  61.6k|   accum.mul(x[7], y[3]);
  871|  61.6k|   accum.mul(x[8], y[2]);
  872|  61.6k|   accum.mul(x[9], y[1]);
  873|  61.6k|   accum.mul(x[10], y[0]);
  874|  61.6k|   z[10] = accum.extract();
  875|  61.6k|   accum.mul(x[0], y[11]);
  876|  61.6k|   accum.mul(x[1], y[10]);
  877|  61.6k|   accum.mul(x[2], y[9]);
  878|  61.6k|   accum.mul(x[3], y[8]);
  879|  61.6k|   accum.mul(x[4], y[7]);
  880|  61.6k|   accum.mul(x[5], y[6]);
  881|  61.6k|   accum.mul(x[6], y[5]);
  882|  61.6k|   accum.mul(x[7], y[4]);
  883|  61.6k|   accum.mul(x[8], y[3]);
  884|  61.6k|   accum.mul(x[9], y[2]);
  885|  61.6k|   accum.mul(x[10], y[1]);
  886|  61.6k|   accum.mul(x[11], y[0]);
  887|  61.6k|   z[11] = accum.extract();
  888|  61.6k|   accum.mul(x[0], y[12]);
  889|  61.6k|   accum.mul(x[1], y[11]);
  890|  61.6k|   accum.mul(x[2], y[10]);
  891|  61.6k|   accum.mul(x[3], y[9]);
  892|  61.6k|   accum.mul(x[4], y[8]);
  893|  61.6k|   accum.mul(x[5], y[7]);
  894|  61.6k|   accum.mul(x[6], y[6]);
  895|  61.6k|   accum.mul(x[7], y[5]);
  896|  61.6k|   accum.mul(x[8], y[4]);
  897|  61.6k|   accum.mul(x[9], y[3]);
  898|  61.6k|   accum.mul(x[10], y[2]);
  899|  61.6k|   accum.mul(x[11], y[1]);
  900|  61.6k|   accum.mul(x[12], y[0]);
  901|  61.6k|   z[12] = accum.extract();
  902|  61.6k|   accum.mul(x[0], y[13]);
  903|  61.6k|   accum.mul(x[1], y[12]);
  904|  61.6k|   accum.mul(x[2], y[11]);
  905|  61.6k|   accum.mul(x[3], y[10]);
  906|  61.6k|   accum.mul(x[4], y[9]);
  907|  61.6k|   accum.mul(x[5], y[8]);
  908|  61.6k|   accum.mul(x[6], y[7]);
  909|  61.6k|   accum.mul(x[7], y[6]);
  910|  61.6k|   accum.mul(x[8], y[5]);
  911|  61.6k|   accum.mul(x[9], y[4]);
  912|  61.6k|   accum.mul(x[10], y[3]);
  913|  61.6k|   accum.mul(x[11], y[2]);
  914|  61.6k|   accum.mul(x[12], y[1]);
  915|  61.6k|   accum.mul(x[13], y[0]);
  916|  61.6k|   z[13] = accum.extract();
  917|  61.6k|   accum.mul(x[0], y[14]);
  918|  61.6k|   accum.mul(x[1], y[13]);
  919|  61.6k|   accum.mul(x[2], y[12]);
  920|  61.6k|   accum.mul(x[3], y[11]);
  921|  61.6k|   accum.mul(x[4], y[10]);
  922|  61.6k|   accum.mul(x[5], y[9]);
  923|  61.6k|   accum.mul(x[6], y[8]);
  924|  61.6k|   accum.mul(x[7], y[7]);
  925|  61.6k|   accum.mul(x[8], y[6]);
  926|  61.6k|   accum.mul(x[9], y[5]);
  927|  61.6k|   accum.mul(x[10], y[4]);
  928|  61.6k|   accum.mul(x[11], y[3]);
  929|  61.6k|   accum.mul(x[12], y[2]);
  930|  61.6k|   accum.mul(x[13], y[1]);
  931|  61.6k|   accum.mul(x[14], y[0]);
  932|  61.6k|   z[14] = accum.extract();
  933|  61.6k|   accum.mul(x[0], y[15]);
  934|  61.6k|   accum.mul(x[1], y[14]);
  935|  61.6k|   accum.mul(x[2], y[13]);
  936|  61.6k|   accum.mul(x[3], y[12]);
  937|  61.6k|   accum.mul(x[4], y[11]);
  938|  61.6k|   accum.mul(x[5], y[10]);
  939|  61.6k|   accum.mul(x[6], y[9]);
  940|  61.6k|   accum.mul(x[7], y[8]);
  941|  61.6k|   accum.mul(x[8], y[7]);
  942|  61.6k|   accum.mul(x[9], y[6]);
  943|  61.6k|   accum.mul(x[10], y[5]);
  944|  61.6k|   accum.mul(x[11], y[4]);
  945|  61.6k|   accum.mul(x[12], y[3]);
  946|  61.6k|   accum.mul(x[13], y[2]);
  947|  61.6k|   accum.mul(x[14], y[1]);
  948|  61.6k|   accum.mul(x[15], y[0]);
  949|  61.6k|   z[15] = accum.extract();
  950|  61.6k|   accum.mul(x[1], y[15]);
  951|  61.6k|   accum.mul(x[2], y[14]);
  952|  61.6k|   accum.mul(x[3], y[13]);
  953|  61.6k|   accum.mul(x[4], y[12]);
  954|  61.6k|   accum.mul(x[5], y[11]);
  955|  61.6k|   accum.mul(x[6], y[10]);
  956|  61.6k|   accum.mul(x[7], y[9]);
  957|  61.6k|   accum.mul(x[8], y[8]);
  958|  61.6k|   accum.mul(x[9], y[7]);
  959|  61.6k|   accum.mul(x[10], y[6]);
  960|  61.6k|   accum.mul(x[11], y[5]);
  961|  61.6k|   accum.mul(x[12], y[4]);
  962|  61.6k|   accum.mul(x[13], y[3]);
  963|  61.6k|   accum.mul(x[14], y[2]);
  964|  61.6k|   accum.mul(x[15], y[1]);
  965|  61.6k|   z[16] = accum.extract();
  966|  61.6k|   accum.mul(x[2], y[15]);
  967|  61.6k|   accum.mul(x[3], y[14]);
  968|  61.6k|   accum.mul(x[4], y[13]);
  969|  61.6k|   accum.mul(x[5], y[12]);
  970|  61.6k|   accum.mul(x[6], y[11]);
  971|  61.6k|   accum.mul(x[7], y[10]);
  972|  61.6k|   accum.mul(x[8], y[9]);
  973|  61.6k|   accum.mul(x[9], y[8]);
  974|  61.6k|   accum.mul(x[10], y[7]);
  975|  61.6k|   accum.mul(x[11], y[6]);
  976|  61.6k|   accum.mul(x[12], y[5]);
  977|  61.6k|   accum.mul(x[13], y[4]);
  978|  61.6k|   accum.mul(x[14], y[3]);
  979|  61.6k|   accum.mul(x[15], y[2]);
  980|  61.6k|   z[17] = accum.extract();
  981|  61.6k|   accum.mul(x[3], y[15]);
  982|  61.6k|   accum.mul(x[4], y[14]);
  983|  61.6k|   accum.mul(x[5], y[13]);
  984|  61.6k|   accum.mul(x[6], y[12]);
  985|  61.6k|   accum.mul(x[7], y[11]);
  986|  61.6k|   accum.mul(x[8], y[10]);
  987|  61.6k|   accum.mul(x[9], y[9]);
  988|  61.6k|   accum.mul(x[10], y[8]);
  989|  61.6k|   accum.mul(x[11], y[7]);
  990|  61.6k|   accum.mul(x[12], y[6]);
  991|  61.6k|   accum.mul(x[13], y[5]);
  992|  61.6k|   accum.mul(x[14], y[4]);
  993|  61.6k|   accum.mul(x[15], y[3]);
  994|  61.6k|   z[18] = accum.extract();
  995|  61.6k|   accum.mul(x[4], y[15]);
  996|  61.6k|   accum.mul(x[5], y[14]);
  997|  61.6k|   accum.mul(x[6], y[13]);
  998|  61.6k|   accum.mul(x[7], y[12]);
  999|  61.6k|   accum.mul(x[8], y[11]);
 1000|  61.6k|   accum.mul(x[9], y[10]);
 1001|  61.6k|   accum.mul(x[10], y[9]);
 1002|  61.6k|   accum.mul(x[11], y[8]);
 1003|  61.6k|   accum.mul(x[12], y[7]);
 1004|  61.6k|   accum.mul(x[13], y[6]);
 1005|  61.6k|   accum.mul(x[14], y[5]);
 1006|  61.6k|   accum.mul(x[15], y[4]);
 1007|  61.6k|   z[19] = accum.extract();
 1008|  61.6k|   accum.mul(x[5], y[15]);
 1009|  61.6k|   accum.mul(x[6], y[14]);
 1010|  61.6k|   accum.mul(x[7], y[13]);
 1011|  61.6k|   accum.mul(x[8], y[12]);
 1012|  61.6k|   accum.mul(x[9], y[11]);
 1013|  61.6k|   accum.mul(x[10], y[10]);
 1014|  61.6k|   accum.mul(x[11], y[9]);
 1015|  61.6k|   accum.mul(x[12], y[8]);
 1016|  61.6k|   accum.mul(x[13], y[7]);
 1017|  61.6k|   accum.mul(x[14], y[6]);
 1018|  61.6k|   accum.mul(x[15], y[5]);
 1019|  61.6k|   z[20] = accum.extract();
 1020|  61.6k|   accum.mul(x[6], y[15]);
 1021|  61.6k|   accum.mul(x[7], y[14]);
 1022|  61.6k|   accum.mul(x[8], y[13]);
 1023|  61.6k|   accum.mul(x[9], y[12]);
 1024|  61.6k|   accum.mul(x[10], y[11]);
 1025|  61.6k|   accum.mul(x[11], y[10]);
 1026|  61.6k|   accum.mul(x[12], y[9]);
 1027|  61.6k|   accum.mul(x[13], y[8]);
 1028|  61.6k|   accum.mul(x[14], y[7]);
 1029|  61.6k|   accum.mul(x[15], y[6]);
 1030|  61.6k|   z[21] = accum.extract();
 1031|  61.6k|   accum.mul(x[7], y[15]);
 1032|  61.6k|   accum.mul(x[8], y[14]);
 1033|  61.6k|   accum.mul(x[9], y[13]);
 1034|  61.6k|   accum.mul(x[10], y[12]);
 1035|  61.6k|   accum.mul(x[11], y[11]);
 1036|  61.6k|   accum.mul(x[12], y[10]);
 1037|  61.6k|   accum.mul(x[13], y[9]);
 1038|  61.6k|   accum.mul(x[14], y[8]);
 1039|  61.6k|   accum.mul(x[15], y[7]);
 1040|  61.6k|   z[22] = accum.extract();
 1041|  61.6k|   accum.mul(x[8], y[15]);
 1042|  61.6k|   accum.mul(x[9], y[14]);
 1043|  61.6k|   accum.mul(x[10], y[13]);
 1044|  61.6k|   accum.mul(x[11], y[12]);
 1045|  61.6k|   accum.mul(x[12], y[11]);
 1046|  61.6k|   accum.mul(x[13], y[10]);
 1047|  61.6k|   accum.mul(x[14], y[9]);
 1048|  61.6k|   accum.mul(x[15], y[8]);
 1049|  61.6k|   z[23] = accum.extract();
 1050|  61.6k|   accum.mul(x[9], y[15]);
 1051|  61.6k|   accum.mul(x[10], y[14]);
 1052|  61.6k|   accum.mul(x[11], y[13]);
 1053|  61.6k|   accum.mul(x[12], y[12]);
 1054|  61.6k|   accum.mul(x[13], y[11]);
 1055|  61.6k|   accum.mul(x[14], y[10]);
 1056|  61.6k|   accum.mul(x[15], y[9]);
 1057|  61.6k|   z[24] = accum.extract();
 1058|  61.6k|   accum.mul(x[10], y[15]);
 1059|  61.6k|   accum.mul(x[11], y[14]);
 1060|  61.6k|   accum.mul(x[12], y[13]);
 1061|  61.6k|   accum.mul(x[13], y[12]);
 1062|  61.6k|   accum.mul(x[14], y[11]);
 1063|  61.6k|   accum.mul(x[15], y[10]);
 1064|  61.6k|   z[25] = accum.extract();
 1065|  61.6k|   accum.mul(x[11], y[15]);
 1066|  61.6k|   accum.mul(x[12], y[14]);
 1067|  61.6k|   accum.mul(x[13], y[13]);
 1068|  61.6k|   accum.mul(x[14], y[12]);
 1069|  61.6k|   accum.mul(x[15], y[11]);
 1070|  61.6k|   z[26] = accum.extract();
 1071|  61.6k|   accum.mul(x[12], y[15]);
 1072|  61.6k|   accum.mul(x[13], y[14]);
 1073|  61.6k|   accum.mul(x[14], y[13]);
 1074|  61.6k|   accum.mul(x[15], y[12]);
 1075|  61.6k|   z[27] = accum.extract();
 1076|  61.6k|   accum.mul(x[13], y[15]);
 1077|  61.6k|   accum.mul(x[14], y[14]);
 1078|  61.6k|   accum.mul(x[15], y[13]);
 1079|  61.6k|   z[28] = accum.extract();
 1080|  61.6k|   accum.mul(x[14], y[15]);
 1081|  61.6k|   accum.mul(x[15], y[14]);
 1082|  61.6k|   z[29] = accum.extract();
 1083|  61.6k|   accum.mul(x[15], y[15]);
 1084|  61.6k|   z[30] = accum.extract();
 1085|  61.6k|   z[31] = accum.extract();
 1086|  61.6k|}
_ZN5Botan18bigint_comba_sqr24EPmPKm:
 1091|    366|void bigint_comba_sqr24(word z[48], const word x[24]) {
 1092|    366|   word3<word> accum;
 1093|       |
 1094|    366|   accum.mul(x[0], x[0]);
 1095|    366|   z[0] = accum.extract();
 1096|    366|   accum.mul_x2(x[0], x[1]);
 1097|    366|   z[1] = accum.extract();
 1098|    366|   accum.mul_x2(x[0], x[2]);
 1099|    366|   accum.mul(x[1], x[1]);
 1100|    366|   z[2] = accum.extract();
 1101|    366|   accum.mul_x2(x[0], x[3]);
 1102|    366|   accum.mul_x2(x[1], x[2]);
 1103|    366|   z[3] = accum.extract();
 1104|    366|   accum.mul_x2(x[0], x[4]);
 1105|    366|   accum.mul_x2(x[1], x[3]);
 1106|    366|   accum.mul(x[2], x[2]);
 1107|    366|   z[4] = accum.extract();
 1108|    366|   accum.mul_x2(x[0], x[5]);
 1109|    366|   accum.mul_x2(x[1], x[4]);
 1110|    366|   accum.mul_x2(x[2], x[3]);
 1111|    366|   z[5] = accum.extract();
 1112|    366|   accum.mul_x2(x[0], x[6]);
 1113|    366|   accum.mul_x2(x[1], x[5]);
 1114|    366|   accum.mul_x2(x[2], x[4]);
 1115|    366|   accum.mul(x[3], x[3]);
 1116|    366|   z[6] = accum.extract();
 1117|    366|   accum.mul_x2(x[0], x[7]);
 1118|    366|   accum.mul_x2(x[1], x[6]);
 1119|    366|   accum.mul_x2(x[2], x[5]);
 1120|    366|   accum.mul_x2(x[3], x[4]);
 1121|    366|   z[7] = accum.extract();
 1122|    366|   accum.mul_x2(x[0], x[8]);
 1123|    366|   accum.mul_x2(x[1], x[7]);
 1124|    366|   accum.mul_x2(x[2], x[6]);
 1125|    366|   accum.mul_x2(x[3], x[5]);
 1126|    366|   accum.mul(x[4], x[4]);
 1127|    366|   z[8] = accum.extract();
 1128|    366|   accum.mul_x2(x[0], x[9]);
 1129|    366|   accum.mul_x2(x[1], x[8]);
 1130|    366|   accum.mul_x2(x[2], x[7]);
 1131|    366|   accum.mul_x2(x[3], x[6]);
 1132|    366|   accum.mul_x2(x[4], x[5]);
 1133|    366|   z[9] = accum.extract();
 1134|    366|   accum.mul_x2(x[0], x[10]);
 1135|    366|   accum.mul_x2(x[1], x[9]);
 1136|    366|   accum.mul_x2(x[2], x[8]);
 1137|    366|   accum.mul_x2(x[3], x[7]);
 1138|    366|   accum.mul_x2(x[4], x[6]);
 1139|    366|   accum.mul(x[5], x[5]);
 1140|    366|   z[10] = accum.extract();
 1141|    366|   accum.mul_x2(x[0], x[11]);
 1142|    366|   accum.mul_x2(x[1], x[10]);
 1143|    366|   accum.mul_x2(x[2], x[9]);
 1144|    366|   accum.mul_x2(x[3], x[8]);
 1145|    366|   accum.mul_x2(x[4], x[7]);
 1146|    366|   accum.mul_x2(x[5], x[6]);
 1147|    366|   z[11] = accum.extract();
 1148|    366|   accum.mul_x2(x[0], x[12]);
 1149|    366|   accum.mul_x2(x[1], x[11]);
 1150|    366|   accum.mul_x2(x[2], x[10]);
 1151|    366|   accum.mul_x2(x[3], x[9]);
 1152|    366|   accum.mul_x2(x[4], x[8]);
 1153|    366|   accum.mul_x2(x[5], x[7]);
 1154|    366|   accum.mul(x[6], x[6]);
 1155|    366|   z[12] = accum.extract();
 1156|    366|   accum.mul_x2(x[0], x[13]);
 1157|    366|   accum.mul_x2(x[1], x[12]);
 1158|    366|   accum.mul_x2(x[2], x[11]);
 1159|    366|   accum.mul_x2(x[3], x[10]);
 1160|    366|   accum.mul_x2(x[4], x[9]);
 1161|    366|   accum.mul_x2(x[5], x[8]);
 1162|    366|   accum.mul_x2(x[6], x[7]);
 1163|    366|   z[13] = accum.extract();
 1164|    366|   accum.mul_x2(x[0], x[14]);
 1165|    366|   accum.mul_x2(x[1], x[13]);
 1166|    366|   accum.mul_x2(x[2], x[12]);
 1167|    366|   accum.mul_x2(x[3], x[11]);
 1168|    366|   accum.mul_x2(x[4], x[10]);
 1169|    366|   accum.mul_x2(x[5], x[9]);
 1170|    366|   accum.mul_x2(x[6], x[8]);
 1171|    366|   accum.mul(x[7], x[7]);
 1172|    366|   z[14] = accum.extract();
 1173|    366|   accum.mul_x2(x[0], x[15]);
 1174|    366|   accum.mul_x2(x[1], x[14]);
 1175|    366|   accum.mul_x2(x[2], x[13]);
 1176|    366|   accum.mul_x2(x[3], x[12]);
 1177|    366|   accum.mul_x2(x[4], x[11]);
 1178|    366|   accum.mul_x2(x[5], x[10]);
 1179|    366|   accum.mul_x2(x[6], x[9]);
 1180|    366|   accum.mul_x2(x[7], x[8]);
 1181|    366|   z[15] = accum.extract();
 1182|    366|   accum.mul_x2(x[0], x[16]);
 1183|    366|   accum.mul_x2(x[1], x[15]);
 1184|    366|   accum.mul_x2(x[2], x[14]);
 1185|    366|   accum.mul_x2(x[3], x[13]);
 1186|    366|   accum.mul_x2(x[4], x[12]);
 1187|    366|   accum.mul_x2(x[5], x[11]);
 1188|    366|   accum.mul_x2(x[6], x[10]);
 1189|    366|   accum.mul_x2(x[7], x[9]);
 1190|    366|   accum.mul(x[8], x[8]);
 1191|    366|   z[16] = accum.extract();
 1192|    366|   accum.mul_x2(x[0], x[17]);
 1193|    366|   accum.mul_x2(x[1], x[16]);
 1194|    366|   accum.mul_x2(x[2], x[15]);
 1195|    366|   accum.mul_x2(x[3], x[14]);
 1196|    366|   accum.mul_x2(x[4], x[13]);
 1197|    366|   accum.mul_x2(x[5], x[12]);
 1198|    366|   accum.mul_x2(x[6], x[11]);
 1199|    366|   accum.mul_x2(x[7], x[10]);
 1200|    366|   accum.mul_x2(x[8], x[9]);
 1201|    366|   z[17] = accum.extract();
 1202|    366|   accum.mul_x2(x[0], x[18]);
 1203|    366|   accum.mul_x2(x[1], x[17]);
 1204|    366|   accum.mul_x2(x[2], x[16]);
 1205|    366|   accum.mul_x2(x[3], x[15]);
 1206|    366|   accum.mul_x2(x[4], x[14]);
 1207|    366|   accum.mul_x2(x[5], x[13]);
 1208|    366|   accum.mul_x2(x[6], x[12]);
 1209|    366|   accum.mul_x2(x[7], x[11]);
 1210|    366|   accum.mul_x2(x[8], x[10]);
 1211|    366|   accum.mul(x[9], x[9]);
 1212|    366|   z[18] = accum.extract();
 1213|    366|   accum.mul_x2(x[0], x[19]);
 1214|    366|   accum.mul_x2(x[1], x[18]);
 1215|    366|   accum.mul_x2(x[2], x[17]);
 1216|    366|   accum.mul_x2(x[3], x[16]);
 1217|    366|   accum.mul_x2(x[4], x[15]);
 1218|    366|   accum.mul_x2(x[5], x[14]);
 1219|    366|   accum.mul_x2(x[6], x[13]);
 1220|    366|   accum.mul_x2(x[7], x[12]);
 1221|    366|   accum.mul_x2(x[8], x[11]);
 1222|    366|   accum.mul_x2(x[9], x[10]);
 1223|    366|   z[19] = accum.extract();
 1224|    366|   accum.mul_x2(x[0], x[20]);
 1225|    366|   accum.mul_x2(x[1], x[19]);
 1226|    366|   accum.mul_x2(x[2], x[18]);
 1227|    366|   accum.mul_x2(x[3], x[17]);
 1228|    366|   accum.mul_x2(x[4], x[16]);
 1229|    366|   accum.mul_x2(x[5], x[15]);
 1230|    366|   accum.mul_x2(x[6], x[14]);
 1231|    366|   accum.mul_x2(x[7], x[13]);
 1232|    366|   accum.mul_x2(x[8], x[12]);
 1233|    366|   accum.mul_x2(x[9], x[11]);
 1234|    366|   accum.mul(x[10], x[10]);
 1235|    366|   z[20] = accum.extract();
 1236|    366|   accum.mul_x2(x[0], x[21]);
 1237|    366|   accum.mul_x2(x[1], x[20]);
 1238|    366|   accum.mul_x2(x[2], x[19]);
 1239|    366|   accum.mul_x2(x[3], x[18]);
 1240|    366|   accum.mul_x2(x[4], x[17]);
 1241|    366|   accum.mul_x2(x[5], x[16]);
 1242|    366|   accum.mul_x2(x[6], x[15]);
 1243|    366|   accum.mul_x2(x[7], x[14]);
 1244|    366|   accum.mul_x2(x[8], x[13]);
 1245|    366|   accum.mul_x2(x[9], x[12]);
 1246|    366|   accum.mul_x2(x[10], x[11]);
 1247|    366|   z[21] = accum.extract();
 1248|    366|   accum.mul_x2(x[0], x[22]);
 1249|    366|   accum.mul_x2(x[1], x[21]);
 1250|    366|   accum.mul_x2(x[2], x[20]);
 1251|    366|   accum.mul_x2(x[3], x[19]);
 1252|    366|   accum.mul_x2(x[4], x[18]);
 1253|    366|   accum.mul_x2(x[5], x[17]);
 1254|    366|   accum.mul_x2(x[6], x[16]);
 1255|    366|   accum.mul_x2(x[7], x[15]);
 1256|    366|   accum.mul_x2(x[8], x[14]);
 1257|    366|   accum.mul_x2(x[9], x[13]);
 1258|    366|   accum.mul_x2(x[10], x[12]);
 1259|    366|   accum.mul(x[11], x[11]);
 1260|    366|   z[22] = accum.extract();
 1261|    366|   accum.mul_x2(x[0], x[23]);
 1262|    366|   accum.mul_x2(x[1], x[22]);
 1263|    366|   accum.mul_x2(x[2], x[21]);
 1264|    366|   accum.mul_x2(x[3], x[20]);
 1265|    366|   accum.mul_x2(x[4], x[19]);
 1266|    366|   accum.mul_x2(x[5], x[18]);
 1267|    366|   accum.mul_x2(x[6], x[17]);
 1268|    366|   accum.mul_x2(x[7], x[16]);
 1269|    366|   accum.mul_x2(x[8], x[15]);
 1270|    366|   accum.mul_x2(x[9], x[14]);
 1271|    366|   accum.mul_x2(x[10], x[13]);
 1272|    366|   accum.mul_x2(x[11], x[12]);
 1273|    366|   z[23] = accum.extract();
 1274|    366|   accum.mul_x2(x[1], x[23]);
 1275|    366|   accum.mul_x2(x[2], x[22]);
 1276|    366|   accum.mul_x2(x[3], x[21]);
 1277|    366|   accum.mul_x2(x[4], x[20]);
 1278|    366|   accum.mul_x2(x[5], x[19]);
 1279|    366|   accum.mul_x2(x[6], x[18]);
 1280|    366|   accum.mul_x2(x[7], x[17]);
 1281|    366|   accum.mul_x2(x[8], x[16]);
 1282|    366|   accum.mul_x2(x[9], x[15]);
 1283|    366|   accum.mul_x2(x[10], x[14]);
 1284|    366|   accum.mul_x2(x[11], x[13]);
 1285|    366|   accum.mul(x[12], x[12]);
 1286|    366|   z[24] = accum.extract();
 1287|    366|   accum.mul_x2(x[2], x[23]);
 1288|    366|   accum.mul_x2(x[3], x[22]);
 1289|    366|   accum.mul_x2(x[4], x[21]);
 1290|    366|   accum.mul_x2(x[5], x[20]);
 1291|    366|   accum.mul_x2(x[6], x[19]);
 1292|    366|   accum.mul_x2(x[7], x[18]);
 1293|    366|   accum.mul_x2(x[8], x[17]);
 1294|    366|   accum.mul_x2(x[9], x[16]);
 1295|    366|   accum.mul_x2(x[10], x[15]);
 1296|    366|   accum.mul_x2(x[11], x[14]);
 1297|    366|   accum.mul_x2(x[12], x[13]);
 1298|    366|   z[25] = accum.extract();
 1299|    366|   accum.mul_x2(x[3], x[23]);
 1300|    366|   accum.mul_x2(x[4], x[22]);
 1301|    366|   accum.mul_x2(x[5], x[21]);
 1302|    366|   accum.mul_x2(x[6], x[20]);
 1303|    366|   accum.mul_x2(x[7], x[19]);
 1304|    366|   accum.mul_x2(x[8], x[18]);
 1305|    366|   accum.mul_x2(x[9], x[17]);
 1306|    366|   accum.mul_x2(x[10], x[16]);
 1307|    366|   accum.mul_x2(x[11], x[15]);
 1308|    366|   accum.mul_x2(x[12], x[14]);
 1309|    366|   accum.mul(x[13], x[13]);
 1310|    366|   z[26] = accum.extract();
 1311|    366|   accum.mul_x2(x[4], x[23]);
 1312|    366|   accum.mul_x2(x[5], x[22]);
 1313|    366|   accum.mul_x2(x[6], x[21]);
 1314|    366|   accum.mul_x2(x[7], x[20]);
 1315|    366|   accum.mul_x2(x[8], x[19]);
 1316|    366|   accum.mul_x2(x[9], x[18]);
 1317|    366|   accum.mul_x2(x[10], x[17]);
 1318|    366|   accum.mul_x2(x[11], x[16]);
 1319|    366|   accum.mul_x2(x[12], x[15]);
 1320|    366|   accum.mul_x2(x[13], x[14]);
 1321|    366|   z[27] = accum.extract();
 1322|    366|   accum.mul_x2(x[5], x[23]);
 1323|    366|   accum.mul_x2(x[6], x[22]);
 1324|    366|   accum.mul_x2(x[7], x[21]);
 1325|    366|   accum.mul_x2(x[8], x[20]);
 1326|    366|   accum.mul_x2(x[9], x[19]);
 1327|    366|   accum.mul_x2(x[10], x[18]);
 1328|    366|   accum.mul_x2(x[11], x[17]);
 1329|    366|   accum.mul_x2(x[12], x[16]);
 1330|    366|   accum.mul_x2(x[13], x[15]);
 1331|    366|   accum.mul(x[14], x[14]);
 1332|    366|   z[28] = accum.extract();
 1333|    366|   accum.mul_x2(x[6], x[23]);
 1334|    366|   accum.mul_x2(x[7], x[22]);
 1335|    366|   accum.mul_x2(x[8], x[21]);
 1336|    366|   accum.mul_x2(x[9], x[20]);
 1337|    366|   accum.mul_x2(x[10], x[19]);
 1338|    366|   accum.mul_x2(x[11], x[18]);
 1339|    366|   accum.mul_x2(x[12], x[17]);
 1340|    366|   accum.mul_x2(x[13], x[16]);
 1341|    366|   accum.mul_x2(x[14], x[15]);
 1342|    366|   z[29] = accum.extract();
 1343|    366|   accum.mul_x2(x[7], x[23]);
 1344|    366|   accum.mul_x2(x[8], x[22]);
 1345|    366|   accum.mul_x2(x[9], x[21]);
 1346|    366|   accum.mul_x2(x[10], x[20]);
 1347|    366|   accum.mul_x2(x[11], x[19]);
 1348|    366|   accum.mul_x2(x[12], x[18]);
 1349|    366|   accum.mul_x2(x[13], x[17]);
 1350|    366|   accum.mul_x2(x[14], x[16]);
 1351|    366|   accum.mul(x[15], x[15]);
 1352|    366|   z[30] = accum.extract();
 1353|    366|   accum.mul_x2(x[8], x[23]);
 1354|    366|   accum.mul_x2(x[9], x[22]);
 1355|    366|   accum.mul_x2(x[10], x[21]);
 1356|    366|   accum.mul_x2(x[11], x[20]);
 1357|    366|   accum.mul_x2(x[12], x[19]);
 1358|    366|   accum.mul_x2(x[13], x[18]);
 1359|    366|   accum.mul_x2(x[14], x[17]);
 1360|    366|   accum.mul_x2(x[15], x[16]);
 1361|    366|   z[31] = accum.extract();
 1362|    366|   accum.mul_x2(x[9], x[23]);
 1363|    366|   accum.mul_x2(x[10], x[22]);
 1364|    366|   accum.mul_x2(x[11], x[21]);
 1365|    366|   accum.mul_x2(x[12], x[20]);
 1366|    366|   accum.mul_x2(x[13], x[19]);
 1367|    366|   accum.mul_x2(x[14], x[18]);
 1368|    366|   accum.mul_x2(x[15], x[17]);
 1369|    366|   accum.mul(x[16], x[16]);
 1370|    366|   z[32] = accum.extract();
 1371|    366|   accum.mul_x2(x[10], x[23]);
 1372|    366|   accum.mul_x2(x[11], x[22]);
 1373|    366|   accum.mul_x2(x[12], x[21]);
 1374|    366|   accum.mul_x2(x[13], x[20]);
 1375|    366|   accum.mul_x2(x[14], x[19]);
 1376|    366|   accum.mul_x2(x[15], x[18]);
 1377|    366|   accum.mul_x2(x[16], x[17]);
 1378|    366|   z[33] = accum.extract();
 1379|    366|   accum.mul_x2(x[11], x[23]);
 1380|    366|   accum.mul_x2(x[12], x[22]);
 1381|    366|   accum.mul_x2(x[13], x[21]);
 1382|    366|   accum.mul_x2(x[14], x[20]);
 1383|    366|   accum.mul_x2(x[15], x[19]);
 1384|    366|   accum.mul_x2(x[16], x[18]);
 1385|    366|   accum.mul(x[17], x[17]);
 1386|    366|   z[34] = accum.extract();
 1387|    366|   accum.mul_x2(x[12], x[23]);
 1388|    366|   accum.mul_x2(x[13], x[22]);
 1389|    366|   accum.mul_x2(x[14], x[21]);
 1390|    366|   accum.mul_x2(x[15], x[20]);
 1391|    366|   accum.mul_x2(x[16], x[19]);
 1392|    366|   accum.mul_x2(x[17], x[18]);
 1393|    366|   z[35] = accum.extract();
 1394|    366|   accum.mul_x2(x[13], x[23]);
 1395|    366|   accum.mul_x2(x[14], x[22]);
 1396|    366|   accum.mul_x2(x[15], x[21]);
 1397|    366|   accum.mul_x2(x[16], x[20]);
 1398|    366|   accum.mul_x2(x[17], x[19]);
 1399|    366|   accum.mul(x[18], x[18]);
 1400|    366|   z[36] = accum.extract();
 1401|    366|   accum.mul_x2(x[14], x[23]);
 1402|    366|   accum.mul_x2(x[15], x[22]);
 1403|    366|   accum.mul_x2(x[16], x[21]);
 1404|    366|   accum.mul_x2(x[17], x[20]);
 1405|    366|   accum.mul_x2(x[18], x[19]);
 1406|    366|   z[37] = accum.extract();
 1407|    366|   accum.mul_x2(x[15], x[23]);
 1408|    366|   accum.mul_x2(x[16], x[22]);
 1409|    366|   accum.mul_x2(x[17], x[21]);
 1410|    366|   accum.mul_x2(x[18], x[20]);
 1411|    366|   accum.mul(x[19], x[19]);
 1412|    366|   z[38] = accum.extract();
 1413|    366|   accum.mul_x2(x[16], x[23]);
 1414|    366|   accum.mul_x2(x[17], x[22]);
 1415|    366|   accum.mul_x2(x[18], x[21]);
 1416|    366|   accum.mul_x2(x[19], x[20]);
 1417|    366|   z[39] = accum.extract();
 1418|    366|   accum.mul_x2(x[17], x[23]);
 1419|    366|   accum.mul_x2(x[18], x[22]);
 1420|    366|   accum.mul_x2(x[19], x[21]);
 1421|    366|   accum.mul(x[20], x[20]);
 1422|    366|   z[40] = accum.extract();
 1423|    366|   accum.mul_x2(x[18], x[23]);
 1424|    366|   accum.mul_x2(x[19], x[22]);
 1425|    366|   accum.mul_x2(x[20], x[21]);
 1426|    366|   z[41] = accum.extract();
 1427|    366|   accum.mul_x2(x[19], x[23]);
 1428|    366|   accum.mul_x2(x[20], x[22]);
 1429|    366|   accum.mul(x[21], x[21]);
 1430|    366|   z[42] = accum.extract();
 1431|    366|   accum.mul_x2(x[20], x[23]);
 1432|    366|   accum.mul_x2(x[21], x[22]);
 1433|    366|   z[43] = accum.extract();
 1434|    366|   accum.mul_x2(x[21], x[23]);
 1435|    366|   accum.mul(x[22], x[22]);
 1436|    366|   z[44] = accum.extract();
 1437|    366|   accum.mul_x2(x[22], x[23]);
 1438|    366|   z[45] = accum.extract();
 1439|    366|   accum.mul(x[23], x[23]);
 1440|    366|   z[46] = accum.extract();
 1441|    366|   z[47] = accum.extract();
 1442|    366|}
_ZN5Botan18bigint_comba_mul24EPmPKmS2_:
 1447|     72|void bigint_comba_mul24(word z[48], const word x[24], const word y[24]) {
 1448|     72|   word3<word> accum;
 1449|       |
 1450|     72|   accum.mul(x[0], y[0]);
 1451|     72|   z[0] = accum.extract();
 1452|     72|   accum.mul(x[0], y[1]);
 1453|     72|   accum.mul(x[1], y[0]);
 1454|     72|   z[1] = accum.extract();
 1455|     72|   accum.mul(x[0], y[2]);
 1456|     72|   accum.mul(x[1], y[1]);
 1457|     72|   accum.mul(x[2], y[0]);
 1458|     72|   z[2] = accum.extract();
 1459|     72|   accum.mul(x[0], y[3]);
 1460|     72|   accum.mul(x[1], y[2]);
 1461|     72|   accum.mul(x[2], y[1]);
 1462|     72|   accum.mul(x[3], y[0]);
 1463|     72|   z[3] = accum.extract();
 1464|     72|   accum.mul(x[0], y[4]);
 1465|     72|   accum.mul(x[1], y[3]);
 1466|     72|   accum.mul(x[2], y[2]);
 1467|     72|   accum.mul(x[3], y[1]);
 1468|     72|   accum.mul(x[4], y[0]);
 1469|     72|   z[4] = accum.extract();
 1470|     72|   accum.mul(x[0], y[5]);
 1471|     72|   accum.mul(x[1], y[4]);
 1472|     72|   accum.mul(x[2], y[3]);
 1473|     72|   accum.mul(x[3], y[2]);
 1474|     72|   accum.mul(x[4], y[1]);
 1475|     72|   accum.mul(x[5], y[0]);
 1476|     72|   z[5] = accum.extract();
 1477|     72|   accum.mul(x[0], y[6]);
 1478|     72|   accum.mul(x[1], y[5]);
 1479|     72|   accum.mul(x[2], y[4]);
 1480|     72|   accum.mul(x[3], y[3]);
 1481|     72|   accum.mul(x[4], y[2]);
 1482|     72|   accum.mul(x[5], y[1]);
 1483|     72|   accum.mul(x[6], y[0]);
 1484|     72|   z[6] = accum.extract();
 1485|     72|   accum.mul(x[0], y[7]);
 1486|     72|   accum.mul(x[1], y[6]);
 1487|     72|   accum.mul(x[2], y[5]);
 1488|     72|   accum.mul(x[3], y[4]);
 1489|     72|   accum.mul(x[4], y[3]);
 1490|     72|   accum.mul(x[5], y[2]);
 1491|     72|   accum.mul(x[6], y[1]);
 1492|     72|   accum.mul(x[7], y[0]);
 1493|     72|   z[7] = accum.extract();
 1494|     72|   accum.mul(x[0], y[8]);
 1495|     72|   accum.mul(x[1], y[7]);
 1496|     72|   accum.mul(x[2], y[6]);
 1497|     72|   accum.mul(x[3], y[5]);
 1498|     72|   accum.mul(x[4], y[4]);
 1499|     72|   accum.mul(x[5], y[3]);
 1500|     72|   accum.mul(x[6], y[2]);
 1501|     72|   accum.mul(x[7], y[1]);
 1502|     72|   accum.mul(x[8], y[0]);
 1503|     72|   z[8] = accum.extract();
 1504|     72|   accum.mul(x[0], y[9]);
 1505|     72|   accum.mul(x[1], y[8]);
 1506|     72|   accum.mul(x[2], y[7]);
 1507|     72|   accum.mul(x[3], y[6]);
 1508|     72|   accum.mul(x[4], y[5]);
 1509|     72|   accum.mul(x[5], y[4]);
 1510|     72|   accum.mul(x[6], y[3]);
 1511|     72|   accum.mul(x[7], y[2]);
 1512|     72|   accum.mul(x[8], y[1]);
 1513|     72|   accum.mul(x[9], y[0]);
 1514|     72|   z[9] = accum.extract();
 1515|     72|   accum.mul(x[0], y[10]);
 1516|     72|   accum.mul(x[1], y[9]);
 1517|     72|   accum.mul(x[2], y[8]);
 1518|     72|   accum.mul(x[3], y[7]);
 1519|     72|   accum.mul(x[4], y[6]);
 1520|     72|   accum.mul(x[5], y[5]);
 1521|     72|   accum.mul(x[6], y[4]);
 1522|     72|   accum.mul(x[7], y[3]);
 1523|     72|   accum.mul(x[8], y[2]);
 1524|     72|   accum.mul(x[9], y[1]);
 1525|     72|   accum.mul(x[10], y[0]);
 1526|     72|   z[10] = accum.extract();
 1527|     72|   accum.mul(x[0], y[11]);
 1528|     72|   accum.mul(x[1], y[10]);
 1529|     72|   accum.mul(x[2], y[9]);
 1530|     72|   accum.mul(x[3], y[8]);
 1531|     72|   accum.mul(x[4], y[7]);
 1532|     72|   accum.mul(x[5], y[6]);
 1533|     72|   accum.mul(x[6], y[5]);
 1534|     72|   accum.mul(x[7], y[4]);
 1535|     72|   accum.mul(x[8], y[3]);
 1536|     72|   accum.mul(x[9], y[2]);
 1537|     72|   accum.mul(x[10], y[1]);
 1538|     72|   accum.mul(x[11], y[0]);
 1539|     72|   z[11] = accum.extract();
 1540|     72|   accum.mul(x[0], y[12]);
 1541|     72|   accum.mul(x[1], y[11]);
 1542|     72|   accum.mul(x[2], y[10]);
 1543|     72|   accum.mul(x[3], y[9]);
 1544|     72|   accum.mul(x[4], y[8]);
 1545|     72|   accum.mul(x[5], y[7]);
 1546|     72|   accum.mul(x[6], y[6]);
 1547|     72|   accum.mul(x[7], y[5]);
 1548|     72|   accum.mul(x[8], y[4]);
 1549|     72|   accum.mul(x[9], y[3]);
 1550|     72|   accum.mul(x[10], y[2]);
 1551|     72|   accum.mul(x[11], y[1]);
 1552|     72|   accum.mul(x[12], y[0]);
 1553|     72|   z[12] = accum.extract();
 1554|     72|   accum.mul(x[0], y[13]);
 1555|     72|   accum.mul(x[1], y[12]);
 1556|     72|   accum.mul(x[2], y[11]);
 1557|     72|   accum.mul(x[3], y[10]);
 1558|     72|   accum.mul(x[4], y[9]);
 1559|     72|   accum.mul(x[5], y[8]);
 1560|     72|   accum.mul(x[6], y[7]);
 1561|     72|   accum.mul(x[7], y[6]);
 1562|     72|   accum.mul(x[8], y[5]);
 1563|     72|   accum.mul(x[9], y[4]);
 1564|     72|   accum.mul(x[10], y[3]);
 1565|     72|   accum.mul(x[11], y[2]);
 1566|     72|   accum.mul(x[12], y[1]);
 1567|     72|   accum.mul(x[13], y[0]);
 1568|     72|   z[13] = accum.extract();
 1569|     72|   accum.mul(x[0], y[14]);
 1570|     72|   accum.mul(x[1], y[13]);
 1571|     72|   accum.mul(x[2], y[12]);
 1572|     72|   accum.mul(x[3], y[11]);
 1573|     72|   accum.mul(x[4], y[10]);
 1574|     72|   accum.mul(x[5], y[9]);
 1575|     72|   accum.mul(x[6], y[8]);
 1576|     72|   accum.mul(x[7], y[7]);
 1577|     72|   accum.mul(x[8], y[6]);
 1578|     72|   accum.mul(x[9], y[5]);
 1579|     72|   accum.mul(x[10], y[4]);
 1580|     72|   accum.mul(x[11], y[3]);
 1581|     72|   accum.mul(x[12], y[2]);
 1582|     72|   accum.mul(x[13], y[1]);
 1583|     72|   accum.mul(x[14], y[0]);
 1584|     72|   z[14] = accum.extract();
 1585|     72|   accum.mul(x[0], y[15]);
 1586|     72|   accum.mul(x[1], y[14]);
 1587|     72|   accum.mul(x[2], y[13]);
 1588|     72|   accum.mul(x[3], y[12]);
 1589|     72|   accum.mul(x[4], y[11]);
 1590|     72|   accum.mul(x[5], y[10]);
 1591|     72|   accum.mul(x[6], y[9]);
 1592|     72|   accum.mul(x[7], y[8]);
 1593|     72|   accum.mul(x[8], y[7]);
 1594|     72|   accum.mul(x[9], y[6]);
 1595|     72|   accum.mul(x[10], y[5]);
 1596|     72|   accum.mul(x[11], y[4]);
 1597|     72|   accum.mul(x[12], y[3]);
 1598|     72|   accum.mul(x[13], y[2]);
 1599|     72|   accum.mul(x[14], y[1]);
 1600|     72|   accum.mul(x[15], y[0]);
 1601|     72|   z[15] = accum.extract();
 1602|     72|   accum.mul(x[0], y[16]);
 1603|     72|   accum.mul(x[1], y[15]);
 1604|     72|   accum.mul(x[2], y[14]);
 1605|     72|   accum.mul(x[3], y[13]);
 1606|     72|   accum.mul(x[4], y[12]);
 1607|     72|   accum.mul(x[5], y[11]);
 1608|     72|   accum.mul(x[6], y[10]);
 1609|     72|   accum.mul(x[7], y[9]);
 1610|     72|   accum.mul(x[8], y[8]);
 1611|     72|   accum.mul(x[9], y[7]);
 1612|     72|   accum.mul(x[10], y[6]);
 1613|     72|   accum.mul(x[11], y[5]);
 1614|     72|   accum.mul(x[12], y[4]);
 1615|     72|   accum.mul(x[13], y[3]);
 1616|     72|   accum.mul(x[14], y[2]);
 1617|     72|   accum.mul(x[15], y[1]);
 1618|     72|   accum.mul(x[16], y[0]);
 1619|     72|   z[16] = accum.extract();
 1620|     72|   accum.mul(x[0], y[17]);
 1621|     72|   accum.mul(x[1], y[16]);
 1622|     72|   accum.mul(x[2], y[15]);
 1623|     72|   accum.mul(x[3], y[14]);
 1624|     72|   accum.mul(x[4], y[13]);
 1625|     72|   accum.mul(x[5], y[12]);
 1626|     72|   accum.mul(x[6], y[11]);
 1627|     72|   accum.mul(x[7], y[10]);
 1628|     72|   accum.mul(x[8], y[9]);
 1629|     72|   accum.mul(x[9], y[8]);
 1630|     72|   accum.mul(x[10], y[7]);
 1631|     72|   accum.mul(x[11], y[6]);
 1632|     72|   accum.mul(x[12], y[5]);
 1633|     72|   accum.mul(x[13], y[4]);
 1634|     72|   accum.mul(x[14], y[3]);
 1635|     72|   accum.mul(x[15], y[2]);
 1636|     72|   accum.mul(x[16], y[1]);
 1637|     72|   accum.mul(x[17], y[0]);
 1638|     72|   z[17] = accum.extract();
 1639|     72|   accum.mul(x[0], y[18]);
 1640|     72|   accum.mul(x[1], y[17]);
 1641|     72|   accum.mul(x[2], y[16]);
 1642|     72|   accum.mul(x[3], y[15]);
 1643|     72|   accum.mul(x[4], y[14]);
 1644|     72|   accum.mul(x[5], y[13]);
 1645|     72|   accum.mul(x[6], y[12]);
 1646|     72|   accum.mul(x[7], y[11]);
 1647|     72|   accum.mul(x[8], y[10]);
 1648|     72|   accum.mul(x[9], y[9]);
 1649|     72|   accum.mul(x[10], y[8]);
 1650|     72|   accum.mul(x[11], y[7]);
 1651|     72|   accum.mul(x[12], y[6]);
 1652|     72|   accum.mul(x[13], y[5]);
 1653|     72|   accum.mul(x[14], y[4]);
 1654|     72|   accum.mul(x[15], y[3]);
 1655|     72|   accum.mul(x[16], y[2]);
 1656|     72|   accum.mul(x[17], y[1]);
 1657|     72|   accum.mul(x[18], y[0]);
 1658|     72|   z[18] = accum.extract();
 1659|     72|   accum.mul(x[0], y[19]);
 1660|     72|   accum.mul(x[1], y[18]);
 1661|     72|   accum.mul(x[2], y[17]);
 1662|     72|   accum.mul(x[3], y[16]);
 1663|     72|   accum.mul(x[4], y[15]);
 1664|     72|   accum.mul(x[5], y[14]);
 1665|     72|   accum.mul(x[6], y[13]);
 1666|     72|   accum.mul(x[7], y[12]);
 1667|     72|   accum.mul(x[8], y[11]);
 1668|     72|   accum.mul(x[9], y[10]);
 1669|     72|   accum.mul(x[10], y[9]);
 1670|     72|   accum.mul(x[11], y[8]);
 1671|     72|   accum.mul(x[12], y[7]);
 1672|     72|   accum.mul(x[13], y[6]);
 1673|     72|   accum.mul(x[14], y[5]);
 1674|     72|   accum.mul(x[15], y[4]);
 1675|     72|   accum.mul(x[16], y[3]);
 1676|     72|   accum.mul(x[17], y[2]);
 1677|     72|   accum.mul(x[18], y[1]);
 1678|     72|   accum.mul(x[19], y[0]);
 1679|     72|   z[19] = accum.extract();
 1680|     72|   accum.mul(x[0], y[20]);
 1681|     72|   accum.mul(x[1], y[19]);
 1682|     72|   accum.mul(x[2], y[18]);
 1683|     72|   accum.mul(x[3], y[17]);
 1684|     72|   accum.mul(x[4], y[16]);
 1685|     72|   accum.mul(x[5], y[15]);
 1686|     72|   accum.mul(x[6], y[14]);
 1687|     72|   accum.mul(x[7], y[13]);
 1688|     72|   accum.mul(x[8], y[12]);
 1689|     72|   accum.mul(x[9], y[11]);
 1690|     72|   accum.mul(x[10], y[10]);
 1691|     72|   accum.mul(x[11], y[9]);
 1692|     72|   accum.mul(x[12], y[8]);
 1693|     72|   accum.mul(x[13], y[7]);
 1694|     72|   accum.mul(x[14], y[6]);
 1695|     72|   accum.mul(x[15], y[5]);
 1696|     72|   accum.mul(x[16], y[4]);
 1697|     72|   accum.mul(x[17], y[3]);
 1698|     72|   accum.mul(x[18], y[2]);
 1699|     72|   accum.mul(x[19], y[1]);
 1700|     72|   accum.mul(x[20], y[0]);
 1701|     72|   z[20] = accum.extract();
 1702|     72|   accum.mul(x[0], y[21]);
 1703|     72|   accum.mul(x[1], y[20]);
 1704|     72|   accum.mul(x[2], y[19]);
 1705|     72|   accum.mul(x[3], y[18]);
 1706|     72|   accum.mul(x[4], y[17]);
 1707|     72|   accum.mul(x[5], y[16]);
 1708|     72|   accum.mul(x[6], y[15]);
 1709|     72|   accum.mul(x[7], y[14]);
 1710|     72|   accum.mul(x[8], y[13]);
 1711|     72|   accum.mul(x[9], y[12]);
 1712|     72|   accum.mul(x[10], y[11]);
 1713|     72|   accum.mul(x[11], y[10]);
 1714|     72|   accum.mul(x[12], y[9]);
 1715|     72|   accum.mul(x[13], y[8]);
 1716|     72|   accum.mul(x[14], y[7]);
 1717|     72|   accum.mul(x[15], y[6]);
 1718|     72|   accum.mul(x[16], y[5]);
 1719|     72|   accum.mul(x[17], y[4]);
 1720|     72|   accum.mul(x[18], y[3]);
 1721|     72|   accum.mul(x[19], y[2]);
 1722|     72|   accum.mul(x[20], y[1]);
 1723|     72|   accum.mul(x[21], y[0]);
 1724|     72|   z[21] = accum.extract();
 1725|     72|   accum.mul(x[0], y[22]);
 1726|     72|   accum.mul(x[1], y[21]);
 1727|     72|   accum.mul(x[2], y[20]);
 1728|     72|   accum.mul(x[3], y[19]);
 1729|     72|   accum.mul(x[4], y[18]);
 1730|     72|   accum.mul(x[5], y[17]);
 1731|     72|   accum.mul(x[6], y[16]);
 1732|     72|   accum.mul(x[7], y[15]);
 1733|     72|   accum.mul(x[8], y[14]);
 1734|     72|   accum.mul(x[9], y[13]);
 1735|     72|   accum.mul(x[10], y[12]);
 1736|     72|   accum.mul(x[11], y[11]);
 1737|     72|   accum.mul(x[12], y[10]);
 1738|     72|   accum.mul(x[13], y[9]);
 1739|     72|   accum.mul(x[14], y[8]);
 1740|     72|   accum.mul(x[15], y[7]);
 1741|     72|   accum.mul(x[16], y[6]);
 1742|     72|   accum.mul(x[17], y[5]);
 1743|     72|   accum.mul(x[18], y[4]);
 1744|     72|   accum.mul(x[19], y[3]);
 1745|     72|   accum.mul(x[20], y[2]);
 1746|     72|   accum.mul(x[21], y[1]);
 1747|     72|   accum.mul(x[22], y[0]);
 1748|     72|   z[22] = accum.extract();
 1749|     72|   accum.mul(x[0], y[23]);
 1750|     72|   accum.mul(x[1], y[22]);
 1751|     72|   accum.mul(x[2], y[21]);
 1752|     72|   accum.mul(x[3], y[20]);
 1753|     72|   accum.mul(x[4], y[19]);
 1754|     72|   accum.mul(x[5], y[18]);
 1755|     72|   accum.mul(x[6], y[17]);
 1756|     72|   accum.mul(x[7], y[16]);
 1757|     72|   accum.mul(x[8], y[15]);
 1758|     72|   accum.mul(x[9], y[14]);
 1759|     72|   accum.mul(x[10], y[13]);
 1760|     72|   accum.mul(x[11], y[12]);
 1761|     72|   accum.mul(x[12], y[11]);
 1762|     72|   accum.mul(x[13], y[10]);
 1763|     72|   accum.mul(x[14], y[9]);
 1764|     72|   accum.mul(x[15], y[8]);
 1765|     72|   accum.mul(x[16], y[7]);
 1766|     72|   accum.mul(x[17], y[6]);
 1767|     72|   accum.mul(x[18], y[5]);
 1768|     72|   accum.mul(x[19], y[4]);
 1769|     72|   accum.mul(x[20], y[3]);
 1770|     72|   accum.mul(x[21], y[2]);
 1771|     72|   accum.mul(x[22], y[1]);
 1772|     72|   accum.mul(x[23], y[0]);
 1773|     72|   z[23] = accum.extract();
 1774|     72|   accum.mul(x[1], y[23]);
 1775|     72|   accum.mul(x[2], y[22]);
 1776|     72|   accum.mul(x[3], y[21]);
 1777|     72|   accum.mul(x[4], y[20]);
 1778|     72|   accum.mul(x[5], y[19]);
 1779|     72|   accum.mul(x[6], y[18]);
 1780|     72|   accum.mul(x[7], y[17]);
 1781|     72|   accum.mul(x[8], y[16]);
 1782|     72|   accum.mul(x[9], y[15]);
 1783|     72|   accum.mul(x[10], y[14]);
 1784|     72|   accum.mul(x[11], y[13]);
 1785|     72|   accum.mul(x[12], y[12]);
 1786|     72|   accum.mul(x[13], y[11]);
 1787|     72|   accum.mul(x[14], y[10]);
 1788|     72|   accum.mul(x[15], y[9]);
 1789|     72|   accum.mul(x[16], y[8]);
 1790|     72|   accum.mul(x[17], y[7]);
 1791|     72|   accum.mul(x[18], y[6]);
 1792|     72|   accum.mul(x[19], y[5]);
 1793|     72|   accum.mul(x[20], y[4]);
 1794|     72|   accum.mul(x[21], y[3]);
 1795|     72|   accum.mul(x[22], y[2]);
 1796|     72|   accum.mul(x[23], y[1]);
 1797|     72|   z[24] = accum.extract();
 1798|     72|   accum.mul(x[2], y[23]);
 1799|     72|   accum.mul(x[3], y[22]);
 1800|     72|   accum.mul(x[4], y[21]);
 1801|     72|   accum.mul(x[5], y[20]);
 1802|     72|   accum.mul(x[6], y[19]);
 1803|     72|   accum.mul(x[7], y[18]);
 1804|     72|   accum.mul(x[8], y[17]);
 1805|     72|   accum.mul(x[9], y[16]);
 1806|     72|   accum.mul(x[10], y[15]);
 1807|     72|   accum.mul(x[11], y[14]);
 1808|     72|   accum.mul(x[12], y[13]);
 1809|     72|   accum.mul(x[13], y[12]);
 1810|     72|   accum.mul(x[14], y[11]);
 1811|     72|   accum.mul(x[15], y[10]);
 1812|     72|   accum.mul(x[16], y[9]);
 1813|     72|   accum.mul(x[17], y[8]);
 1814|     72|   accum.mul(x[18], y[7]);
 1815|     72|   accum.mul(x[19], y[6]);
 1816|     72|   accum.mul(x[20], y[5]);
 1817|     72|   accum.mul(x[21], y[4]);
 1818|     72|   accum.mul(x[22], y[3]);
 1819|     72|   accum.mul(x[23], y[2]);
 1820|     72|   z[25] = accum.extract();
 1821|     72|   accum.mul(x[3], y[23]);
 1822|     72|   accum.mul(x[4], y[22]);
 1823|     72|   accum.mul(x[5], y[21]);
 1824|     72|   accum.mul(x[6], y[20]);
 1825|     72|   accum.mul(x[7], y[19]);
 1826|     72|   accum.mul(x[8], y[18]);
 1827|     72|   accum.mul(x[9], y[17]);
 1828|     72|   accum.mul(x[10], y[16]);
 1829|     72|   accum.mul(x[11], y[15]);
 1830|     72|   accum.mul(x[12], y[14]);
 1831|     72|   accum.mul(x[13], y[13]);
 1832|     72|   accum.mul(x[14], y[12]);
 1833|     72|   accum.mul(x[15], y[11]);
 1834|     72|   accum.mul(x[16], y[10]);
 1835|     72|   accum.mul(x[17], y[9]);
 1836|     72|   accum.mul(x[18], y[8]);
 1837|     72|   accum.mul(x[19], y[7]);
 1838|     72|   accum.mul(x[20], y[6]);
 1839|     72|   accum.mul(x[21], y[5]);
 1840|     72|   accum.mul(x[22], y[4]);
 1841|     72|   accum.mul(x[23], y[3]);
 1842|     72|   z[26] = accum.extract();
 1843|     72|   accum.mul(x[4], y[23]);
 1844|     72|   accum.mul(x[5], y[22]);
 1845|     72|   accum.mul(x[6], y[21]);
 1846|     72|   accum.mul(x[7], y[20]);
 1847|     72|   accum.mul(x[8], y[19]);
 1848|     72|   accum.mul(x[9], y[18]);
 1849|     72|   accum.mul(x[10], y[17]);
 1850|     72|   accum.mul(x[11], y[16]);
 1851|     72|   accum.mul(x[12], y[15]);
 1852|     72|   accum.mul(x[13], y[14]);
 1853|     72|   accum.mul(x[14], y[13]);
 1854|     72|   accum.mul(x[15], y[12]);
 1855|     72|   accum.mul(x[16], y[11]);
 1856|     72|   accum.mul(x[17], y[10]);
 1857|     72|   accum.mul(x[18], y[9]);
 1858|     72|   accum.mul(x[19], y[8]);
 1859|     72|   accum.mul(x[20], y[7]);
 1860|     72|   accum.mul(x[21], y[6]);
 1861|     72|   accum.mul(x[22], y[5]);
 1862|     72|   accum.mul(x[23], y[4]);
 1863|     72|   z[27] = accum.extract();
 1864|     72|   accum.mul(x[5], y[23]);
 1865|     72|   accum.mul(x[6], y[22]);
 1866|     72|   accum.mul(x[7], y[21]);
 1867|     72|   accum.mul(x[8], y[20]);
 1868|     72|   accum.mul(x[9], y[19]);
 1869|     72|   accum.mul(x[10], y[18]);
 1870|     72|   accum.mul(x[11], y[17]);
 1871|     72|   accum.mul(x[12], y[16]);
 1872|     72|   accum.mul(x[13], y[15]);
 1873|     72|   accum.mul(x[14], y[14]);
 1874|     72|   accum.mul(x[15], y[13]);
 1875|     72|   accum.mul(x[16], y[12]);
 1876|     72|   accum.mul(x[17], y[11]);
 1877|     72|   accum.mul(x[18], y[10]);
 1878|     72|   accum.mul(x[19], y[9]);
 1879|     72|   accum.mul(x[20], y[8]);
 1880|     72|   accum.mul(x[21], y[7]);
 1881|     72|   accum.mul(x[22], y[6]);
 1882|     72|   accum.mul(x[23], y[5]);
 1883|     72|   z[28] = accum.extract();
 1884|     72|   accum.mul(x[6], y[23]);
 1885|     72|   accum.mul(x[7], y[22]);
 1886|     72|   accum.mul(x[8], y[21]);
 1887|     72|   accum.mul(x[9], y[20]);
 1888|     72|   accum.mul(x[10], y[19]);
 1889|     72|   accum.mul(x[11], y[18]);
 1890|     72|   accum.mul(x[12], y[17]);
 1891|     72|   accum.mul(x[13], y[16]);
 1892|     72|   accum.mul(x[14], y[15]);
 1893|     72|   accum.mul(x[15], y[14]);
 1894|     72|   accum.mul(x[16], y[13]);
 1895|     72|   accum.mul(x[17], y[12]);
 1896|     72|   accum.mul(x[18], y[11]);
 1897|     72|   accum.mul(x[19], y[10]);
 1898|     72|   accum.mul(x[20], y[9]);
 1899|     72|   accum.mul(x[21], y[8]);
 1900|     72|   accum.mul(x[22], y[7]);
 1901|     72|   accum.mul(x[23], y[6]);
 1902|     72|   z[29] = accum.extract();
 1903|     72|   accum.mul(x[7], y[23]);
 1904|     72|   accum.mul(x[8], y[22]);
 1905|     72|   accum.mul(x[9], y[21]);
 1906|     72|   accum.mul(x[10], y[20]);
 1907|     72|   accum.mul(x[11], y[19]);
 1908|     72|   accum.mul(x[12], y[18]);
 1909|     72|   accum.mul(x[13], y[17]);
 1910|     72|   accum.mul(x[14], y[16]);
 1911|     72|   accum.mul(x[15], y[15]);
 1912|     72|   accum.mul(x[16], y[14]);
 1913|     72|   accum.mul(x[17], y[13]);
 1914|     72|   accum.mul(x[18], y[12]);
 1915|     72|   accum.mul(x[19], y[11]);
 1916|     72|   accum.mul(x[20], y[10]);
 1917|     72|   accum.mul(x[21], y[9]);
 1918|     72|   accum.mul(x[22], y[8]);
 1919|     72|   accum.mul(x[23], y[7]);
 1920|     72|   z[30] = accum.extract();
 1921|     72|   accum.mul(x[8], y[23]);
 1922|     72|   accum.mul(x[9], y[22]);
 1923|     72|   accum.mul(x[10], y[21]);
 1924|     72|   accum.mul(x[11], y[20]);
 1925|     72|   accum.mul(x[12], y[19]);
 1926|     72|   accum.mul(x[13], y[18]);
 1927|     72|   accum.mul(x[14], y[17]);
 1928|     72|   accum.mul(x[15], y[16]);
 1929|     72|   accum.mul(x[16], y[15]);
 1930|     72|   accum.mul(x[17], y[14]);
 1931|     72|   accum.mul(x[18], y[13]);
 1932|     72|   accum.mul(x[19], y[12]);
 1933|     72|   accum.mul(x[20], y[11]);
 1934|     72|   accum.mul(x[21], y[10]);
 1935|     72|   accum.mul(x[22], y[9]);
 1936|     72|   accum.mul(x[23], y[8]);
 1937|     72|   z[31] = accum.extract();
 1938|     72|   accum.mul(x[9], y[23]);
 1939|     72|   accum.mul(x[10], y[22]);
 1940|     72|   accum.mul(x[11], y[21]);
 1941|     72|   accum.mul(x[12], y[20]);
 1942|     72|   accum.mul(x[13], y[19]);
 1943|     72|   accum.mul(x[14], y[18]);
 1944|     72|   accum.mul(x[15], y[17]);
 1945|     72|   accum.mul(x[16], y[16]);
 1946|     72|   accum.mul(x[17], y[15]);
 1947|     72|   accum.mul(x[18], y[14]);
 1948|     72|   accum.mul(x[19], y[13]);
 1949|     72|   accum.mul(x[20], y[12]);
 1950|     72|   accum.mul(x[21], y[11]);
 1951|     72|   accum.mul(x[22], y[10]);
 1952|     72|   accum.mul(x[23], y[9]);
 1953|     72|   z[32] = accum.extract();
 1954|     72|   accum.mul(x[10], y[23]);
 1955|     72|   accum.mul(x[11], y[22]);
 1956|     72|   accum.mul(x[12], y[21]);
 1957|     72|   accum.mul(x[13], y[20]);
 1958|     72|   accum.mul(x[14], y[19]);
 1959|     72|   accum.mul(x[15], y[18]);
 1960|     72|   accum.mul(x[16], y[17]);
 1961|     72|   accum.mul(x[17], y[16]);
 1962|     72|   accum.mul(x[18], y[15]);
 1963|     72|   accum.mul(x[19], y[14]);
 1964|     72|   accum.mul(x[20], y[13]);
 1965|     72|   accum.mul(x[21], y[12]);
 1966|     72|   accum.mul(x[22], y[11]);
 1967|     72|   accum.mul(x[23], y[10]);
 1968|     72|   z[33] = accum.extract();
 1969|     72|   accum.mul(x[11], y[23]);
 1970|     72|   accum.mul(x[12], y[22]);
 1971|     72|   accum.mul(x[13], y[21]);
 1972|     72|   accum.mul(x[14], y[20]);
 1973|     72|   accum.mul(x[15], y[19]);
 1974|     72|   accum.mul(x[16], y[18]);
 1975|     72|   accum.mul(x[17], y[17]);
 1976|     72|   accum.mul(x[18], y[16]);
 1977|     72|   accum.mul(x[19], y[15]);
 1978|     72|   accum.mul(x[20], y[14]);
 1979|     72|   accum.mul(x[21], y[13]);
 1980|     72|   accum.mul(x[22], y[12]);
 1981|     72|   accum.mul(x[23], y[11]);
 1982|     72|   z[34] = accum.extract();
 1983|     72|   accum.mul(x[12], y[23]);
 1984|     72|   accum.mul(x[13], y[22]);
 1985|     72|   accum.mul(x[14], y[21]);
 1986|     72|   accum.mul(x[15], y[20]);
 1987|     72|   accum.mul(x[16], y[19]);
 1988|     72|   accum.mul(x[17], y[18]);
 1989|     72|   accum.mul(x[18], y[17]);
 1990|     72|   accum.mul(x[19], y[16]);
 1991|     72|   accum.mul(x[20], y[15]);
 1992|     72|   accum.mul(x[21], y[14]);
 1993|     72|   accum.mul(x[22], y[13]);
 1994|     72|   accum.mul(x[23], y[12]);
 1995|     72|   z[35] = accum.extract();
 1996|     72|   accum.mul(x[13], y[23]);
 1997|     72|   accum.mul(x[14], y[22]);
 1998|     72|   accum.mul(x[15], y[21]);
 1999|     72|   accum.mul(x[16], y[20]);
 2000|     72|   accum.mul(x[17], y[19]);
 2001|     72|   accum.mul(x[18], y[18]);
 2002|     72|   accum.mul(x[19], y[17]);
 2003|     72|   accum.mul(x[20], y[16]);
 2004|     72|   accum.mul(x[21], y[15]);
 2005|     72|   accum.mul(x[22], y[14]);
 2006|     72|   accum.mul(x[23], y[13]);
 2007|     72|   z[36] = accum.extract();
 2008|     72|   accum.mul(x[14], y[23]);
 2009|     72|   accum.mul(x[15], y[22]);
 2010|     72|   accum.mul(x[16], y[21]);
 2011|     72|   accum.mul(x[17], y[20]);
 2012|     72|   accum.mul(x[18], y[19]);
 2013|     72|   accum.mul(x[19], y[18]);
 2014|     72|   accum.mul(x[20], y[17]);
 2015|     72|   accum.mul(x[21], y[16]);
 2016|     72|   accum.mul(x[22], y[15]);
 2017|     72|   accum.mul(x[23], y[14]);
 2018|     72|   z[37] = accum.extract();
 2019|     72|   accum.mul(x[15], y[23]);
 2020|     72|   accum.mul(x[16], y[22]);
 2021|     72|   accum.mul(x[17], y[21]);
 2022|     72|   accum.mul(x[18], y[20]);
 2023|     72|   accum.mul(x[19], y[19]);
 2024|     72|   accum.mul(x[20], y[18]);
 2025|     72|   accum.mul(x[21], y[17]);
 2026|     72|   accum.mul(x[22], y[16]);
 2027|     72|   accum.mul(x[23], y[15]);
 2028|     72|   z[38] = accum.extract();
 2029|     72|   accum.mul(x[16], y[23]);
 2030|     72|   accum.mul(x[17], y[22]);
 2031|     72|   accum.mul(x[18], y[21]);
 2032|     72|   accum.mul(x[19], y[20]);
 2033|     72|   accum.mul(x[20], y[19]);
 2034|     72|   accum.mul(x[21], y[18]);
 2035|     72|   accum.mul(x[22], y[17]);
 2036|     72|   accum.mul(x[23], y[16]);
 2037|     72|   z[39] = accum.extract();
 2038|     72|   accum.mul(x[17], y[23]);
 2039|     72|   accum.mul(x[18], y[22]);
 2040|     72|   accum.mul(x[19], y[21]);
 2041|     72|   accum.mul(x[20], y[20]);
 2042|     72|   accum.mul(x[21], y[19]);
 2043|     72|   accum.mul(x[22], y[18]);
 2044|     72|   accum.mul(x[23], y[17]);
 2045|     72|   z[40] = accum.extract();
 2046|     72|   accum.mul(x[18], y[23]);
 2047|     72|   accum.mul(x[19], y[22]);
 2048|     72|   accum.mul(x[20], y[21]);
 2049|     72|   accum.mul(x[21], y[20]);
 2050|     72|   accum.mul(x[22], y[19]);
 2051|     72|   accum.mul(x[23], y[18]);
 2052|     72|   z[41] = accum.extract();
 2053|     72|   accum.mul(x[19], y[23]);
 2054|     72|   accum.mul(x[20], y[22]);
 2055|     72|   accum.mul(x[21], y[21]);
 2056|     72|   accum.mul(x[22], y[20]);
 2057|     72|   accum.mul(x[23], y[19]);
 2058|     72|   z[42] = accum.extract();
 2059|     72|   accum.mul(x[20], y[23]);
 2060|     72|   accum.mul(x[21], y[22]);
 2061|     72|   accum.mul(x[22], y[21]);
 2062|     72|   accum.mul(x[23], y[20]);
 2063|     72|   z[43] = accum.extract();
 2064|     72|   accum.mul(x[21], y[23]);
 2065|     72|   accum.mul(x[22], y[22]);
 2066|     72|   accum.mul(x[23], y[21]);
 2067|     72|   z[44] = accum.extract();
 2068|     72|   accum.mul(x[22], y[23]);
 2069|     72|   accum.mul(x[23], y[22]);
 2070|     72|   z[45] = accum.extract();
 2071|     72|   accum.mul(x[23], y[23]);
 2072|     72|   z[46] = accum.extract();
 2073|     72|   z[47] = accum.extract();
 2074|     72|}

_ZN5Botan12basecase_mulEPmmPKmmS2_m:
   20|  29.1k|void basecase_mul(word z[], size_t z_size, const word x[], size_t x_size, const word y[], size_t y_size) {
   21|  29.1k|   if(z_size < x_size + y_size) {
  ------------------
  |  Branch (21:7): [True: 0, False: 29.1k]
  ------------------
   22|      0|      throw Invalid_Argument("basecase_mul z_size too small");
   23|      0|   }
   24|       |
   25|  29.1k|   const size_t x_size_8 = x_size - (x_size % 8);
   26|       |
   27|  29.1k|   zeroize_buffer(z, z_size);
   28|       |
   29|   517k|   for(size_t i = 0; i != y_size; ++i) {
  ------------------
  |  Branch (29:22): [True: 488k, False: 29.1k]
  ------------------
   30|   488k|      const word y_i = y[i];
   31|       |
   32|   488k|      word carry = 0;
   33|       |
   34|  1.55M|      for(size_t j = 0; j != x_size_8; j += 8) {
  ------------------
  |  Branch (34:25): [True: 1.06M, False: 488k]
  ------------------
   35|  1.06M|         carry = word8_madd3(z + i + j, x + j, y_i, carry);
   36|  1.06M|      }
   37|       |
   38|  1.15M|      for(size_t j = x_size_8; j != x_size; ++j) {
  ------------------
  |  Branch (38:32): [True: 665k, False: 488k]
  ------------------
   39|   665k|         z[i + j] = word_madd3(x[j], y_i, z[i + j], &carry);
   40|   665k|      }
   41|       |
   42|   488k|      z[x_size + i] = carry;
   43|   488k|   }
   44|  29.1k|}
_ZN5Botan12basecase_sqrEPmmPKmm:
   46|  1.57k|void basecase_sqr(word z[], size_t z_size, const word x[], size_t x_size) {
   47|  1.57k|   if(z_size < 2 * x_size) {
  ------------------
  |  Branch (47:7): [True: 0, False: 1.57k]
  ------------------
   48|      0|      throw Invalid_Argument("basecase_sqr z_size too small");
   49|      0|   }
   50|       |
   51|  1.57k|   const size_t x_size_8 = x_size - (x_size % 8);
   52|       |
   53|  1.57k|   zeroize_buffer(z, z_size);
   54|       |
   55|  24.9k|   for(size_t i = 0; i != x_size; ++i) {
  ------------------
  |  Branch (55:22): [True: 23.3k, False: 1.57k]
  ------------------
   56|  23.3k|      const word x_i = x[i];
   57|       |
   58|  23.3k|      word carry = 0;
   59|       |
   60|  57.8k|      for(size_t j = 0; j != x_size_8; j += 8) {
  ------------------
  |  Branch (60:25): [True: 34.5k, False: 23.3k]
  ------------------
   61|  34.5k|         carry = word8_madd3(z + i + j, x + j, x_i, carry);
   62|  34.5k|      }
   63|       |
   64|   104k|      for(size_t j = x_size_8; j != x_size; ++j) {
  ------------------
  |  Branch (64:32): [True: 81.3k, False: 23.3k]
  ------------------
   65|  81.3k|         z[i + j] = word_madd3(x[j], x_i, z[i + j], &carry);
   66|  81.3k|      }
   67|       |
   68|  23.3k|      z[x_size + i] = carry;
   69|  23.3k|   }
   70|  1.57k|}
_ZN5Botan10bigint_mulEPmmPKmmmS2_mmS0_m:
  292|   126k|                size_t ws_size) {
  293|   126k|   zeroize_buffer(z, z_size);
  294|       |
  295|   126k|   if(x_sw == 1) {
  ------------------
  |  Branch (295:7): [True: 0, False: 126k]
  ------------------
  296|      0|      bigint_linmul3(z, y, y_sw, x[0]);
  297|   126k|   } else if(y_sw == 1) {
  ------------------
  |  Branch (297:14): [True: 0, False: 126k]
  ------------------
  298|      0|      bigint_linmul3(z, x, x_sw, y[0]);
  299|   126k|   } else if(sized_for_comba_mul<4>(x_sw, x_size, y_sw, y_size, z_size)) {
  ------------------
  |  Branch (299:14): [True: 38.8k, False: 87.8k]
  ------------------
  300|  38.8k|      bigint_comba_mul4(z, x, y);
  301|  87.8k|   } else if(sized_for_comba_mul<6>(x_sw, x_size, y_sw, y_size, z_size)) {
  ------------------
  |  Branch (301:14): [True: 82, False: 87.7k]
  ------------------
  302|     82|      bigint_comba_mul6(z, x, y);
  303|  87.7k|   } else if(sized_for_comba_mul<8>(x_sw, x_size, y_sw, y_size, z_size)) {
  ------------------
  |  Branch (303:14): [True: 737, False: 87.0k]
  ------------------
  304|    737|      bigint_comba_mul8(z, x, y);
  305|  87.0k|   } else if(sized_for_comba_mul<9>(x_sw, x_size, y_sw, y_size, z_size)) {
  ------------------
  |  Branch (305:14): [True: 506, False: 86.5k]
  ------------------
  306|    506|      bigint_comba_mul9(z, x, y);
  307|  86.5k|   } else if(sized_for_comba_mul<16>(x_sw, x_size, y_sw, y_size, z_size)) {
  ------------------
  |  Branch (307:14): [True: 58.6k, False: 27.8k]
  ------------------
  308|  58.6k|      bigint_comba_mul16(z, x, y);
  309|  58.6k|   } else if(sized_for_comba_mul<24>(x_sw, x_size, y_sw, y_size, z_size)) {
  ------------------
  |  Branch (309:14): [True: 0, False: 27.8k]
  ------------------
  310|      0|      bigint_comba_mul24(z, x, y);
  311|  27.8k|   } else if(x_sw < KARATSUBA_MULTIPLY_THRESHOLD || y_sw < KARATSUBA_MULTIPLY_THRESHOLD || workspace == nullptr) {
  ------------------
  |  Branch (311:14): [True: 26.7k, False: 1.18k]
  |  Branch (311:53): [True: 0, False: 1.18k]
  |  Branch (311:92): [True: 0, False: 1.18k]
  ------------------
  312|  26.7k|      basecase_mul(z, z_size, x, x_sw, y, y_sw);
  313|  26.7k|   } else {
  314|  1.18k|      const size_t N = karatsuba_size(z_size, x_size, x_sw, y_size, y_sw);
  315|       |
  316|  1.18k|      if(N > 0 && z_size >= 2 * N && ws_size >= 2 * N) {
  ------------------
  |  Branch (316:10): [True: 1.18k, False: 0]
  |  Branch (316:19): [True: 1.18k, False: 0]
  |  Branch (316:38): [True: 1.18k, False: 0]
  ------------------
  317|  1.18k|         karatsuba_mul(z, x, y, N, workspace);
  318|  1.18k|      } else {
  319|      0|         basecase_mul(z, z_size, x, x_sw, y, y_sw);
  320|      0|      }
  321|  1.18k|   }
  322|   126k|}
_ZN5Botan10bigint_sqrEPmmPKmmmS0_m:
  327|  96.9k|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|  96.9k|   zeroize_buffer(z, z_size);
  329|       |
  330|  96.9k|   BOTAN_ASSERT(z_size / 2 >= x_sw, "Output size is sufficient");
  ------------------
  |  |   64|  96.9k|   do {                                                                                 \
  |  |   65|  96.9k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|  96.9k|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 96.9k]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|  96.9k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 96.9k]
  |  |  ------------------
  ------------------
  331|       |
  332|  96.9k|   if(x_sw == 1) {
  ------------------
  |  Branch (332:7): [True: 0, False: 96.9k]
  ------------------
  333|      0|      bigint_linmul3(z, x, x_sw, x[0]);
  334|  96.9k|   } else if(sized_for_comba_sqr<4>(x_sw, x_size, z_size)) {
  ------------------
  |  Branch (334:14): [True: 9, False: 96.9k]
  ------------------
  335|      9|      bigint_comba_sqr4(z, x);
  336|  96.9k|   } else if(sized_for_comba_sqr<6>(x_sw, x_size, z_size)) {
  ------------------
  |  Branch (336:14): [True: 34, False: 96.9k]
  ------------------
  337|     34|      bigint_comba_sqr6(z, x);
  338|  96.9k|   } else if(sized_for_comba_sqr<8>(x_sw, x_size, z_size)) {
  ------------------
  |  Branch (338:14): [True: 65, False: 96.8k]
  ------------------
  339|     65|      bigint_comba_sqr8(z, x);
  340|  96.8k|   } else if(sized_for_comba_sqr<9>(x_sw, x_size, z_size)) {
  ------------------
  |  Branch (340:14): [True: 116, False: 96.7k]
  ------------------
  341|    116|      bigint_comba_sqr9(z, x);
  342|  96.7k|   } else if(sized_for_comba_sqr<16>(x_sw, x_size, z_size)) {
  ------------------
  |  Branch (342:14): [True: 93.0k, False: 3.72k]
  ------------------
  343|  93.0k|      bigint_comba_sqr16(z, x);
  344|  93.0k|   } else if(sized_for_comba_sqr<24>(x_sw, x_size, z_size)) {
  ------------------
  |  Branch (344:14): [True: 0, False: 3.72k]
  ------------------
  345|      0|      bigint_comba_sqr24(z, x);
  346|  3.72k|   } else if(x_size < KARATSUBA_SQUARE_THRESHOLD || workspace == nullptr) {
  ------------------
  |  Branch (346:14): [True: 951, False: 2.77k]
  |  Branch (346:53): [True: 0, False: 2.77k]
  ------------------
  347|    951|      basecase_sqr(z, z_size, x, x_sw);
  348|  2.77k|   } else {
  349|  2.77k|      const size_t N = karatsuba_size(z_size, x_size, x_sw);
  350|       |
  351|  2.77k|      if(N > 0 && z_size >= 2 * N && ws_size >= 2 * N) {
  ------------------
  |  Branch (351:10): [True: 2.36k, False: 408]
  |  Branch (351:19): [True: 2.36k, False: 0]
  |  Branch (351:38): [True: 2.36k, False: 0]
  ------------------
  352|  2.36k|         karatsuba_sqr(z, x, N, workspace);
  353|  2.36k|      } else {
  354|    408|         basecase_sqr(z, z_size, x, x_sw);
  355|    408|      }
  356|  2.77k|   }
  357|  96.9k|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_114karatsuba_sizeEmmmmm:
  203|  1.18k|size_t karatsuba_size(size_t z_size, size_t x_size, size_t x_sw, size_t y_size, size_t y_sw) {
  204|  1.18k|   if(x_sw > x_size || x_sw > y_size || y_sw > x_size || y_sw > y_size) {
  ------------------
  |  Branch (204:7): [True: 0, False: 1.18k]
  |  Branch (204:24): [True: 0, False: 1.18k]
  |  Branch (204:41): [True: 0, False: 1.18k]
  |  Branch (204:58): [True: 0, False: 1.18k]
  ------------------
  205|      0|      return 0;
  206|      0|   }
  207|       |
  208|  1.18k|   if(((x_size == x_sw) && (x_size % 2 != 0)) || ((y_size == y_sw) && (y_size % 2 != 0))) {
  ------------------
  |  Branch (208:8): [True: 252, False: 931]
  |  Branch (208:28): [True: 0, False: 252]
  |  Branch (208:51): [True: 252, False: 931]
  |  Branch (208:71): [True: 0, False: 252]
  ------------------
  209|      0|      return 0;
  210|      0|   }
  211|       |
  212|  1.18k|   const size_t start = (x_sw > y_sw) ? x_sw : y_sw;
  ------------------
  |  Branch (212:25): [True: 399, False: 784]
  ------------------
  213|  1.18k|   const size_t end = (x_size < y_size) ? x_size : y_size;
  ------------------
  |  Branch (213:23): [True: 399, False: 784]
  ------------------
  214|       |
  215|  1.18k|   if(start == end) {
  ------------------
  |  Branch (215:7): [True: 252, False: 931]
  ------------------
  216|    252|      if(start % 2 != 0) {
  ------------------
  |  Branch (216:10): [True: 0, False: 252]
  ------------------
  217|      0|         return 0;
  218|      0|      }
  219|    252|      return start;
  220|    252|   }
  221|       |
  222|  1.72k|   for(size_t j = start; j <= end; ++j) {
  ------------------
  |  Branch (222:26): [True: 1.72k, False: 0]
  ------------------
  223|  1.72k|      if(j % 2 != 0) {
  ------------------
  |  Branch (223:10): [True: 798, False: 931]
  ------------------
  224|    798|         continue;
  225|    798|      }
  226|       |
  227|    931|      if(2 * j > z_size) {
  ------------------
  |  Branch (227:10): [True: 0, False: 931]
  ------------------
  228|      0|         return 0;
  229|      0|      }
  230|       |
  231|    931|      if(x_sw <= j && j <= x_size && y_sw <= j && j <= y_size) {
  ------------------
  |  Branch (231:10): [True: 931, False: 0]
  |  Branch (231:23): [True: 931, False: 0]
  |  Branch (231:38): [True: 931, False: 0]
  |  Branch (231:51): [True: 931, False: 0]
  ------------------
  232|    931|         if(j % 4 == 2 && (j + 2) <= x_size && (j + 2) <= y_size && 2 * (j + 2) <= z_size) {
  ------------------
  |  Branch (232:13): [True: 798, False: 133]
  |  Branch (232:27): [True: 399, False: 399]
  |  Branch (232:48): [True: 399, False: 0]
  |  Branch (232:69): [True: 0, False: 399]
  ------------------
  233|      0|            return j + 2;
  234|      0|         }
  235|    931|         return j;
  236|    931|      }
  237|    931|   }
  238|       |
  239|      0|   return 0;
  240|    931|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_113karatsuba_mulEPmPKmS3_mS1_:
   80|  7.71k|void karatsuba_mul(word z[], const word x[], const word y[], size_t N, word workspace[]) {
   81|  7.71k|   if(N < KARATSUBA_MULTIPLY_THRESHOLD || N % 2 != 0) {
  ------------------
  |  Branch (81:7): [True: 3.53k, False: 4.17k]
  |  Branch (81:43): [True: 1.99k, False: 2.17k]
  ------------------
   82|  5.53k|      switch(N) {
   83|      0|         case 6:
  ------------------
  |  Branch (83:10): [True: 0, False: 5.53k]
  ------------------
   84|      0|            return bigint_comba_mul6(z, x, y);
   85|      0|         case 8:
  ------------------
  |  Branch (85:10): [True: 0, False: 5.53k]
  ------------------
   86|      0|            return bigint_comba_mul8(z, x, y);
   87|      0|         case 9:
  ------------------
  |  Branch (87:10): [True: 0, False: 5.53k]
  ------------------
   88|      0|            return bigint_comba_mul9(z, x, y);
   89|  3.06k|         case 16:
  ------------------
  |  Branch (89:10): [True: 3.06k, False: 2.46k]
  ------------------
   90|  3.06k|            return bigint_comba_mul16(z, x, y);
   91|     72|         case 24:
  ------------------
  |  Branch (91:10): [True: 72, False: 5.46k]
  ------------------
   92|     72|            return bigint_comba_mul24(z, x, y);
   93|  2.39k|         default:
  ------------------
  |  Branch (93:10): [True: 2.39k, False: 3.14k]
  ------------------
   94|  2.39k|            return basecase_mul(z, 2 * N, x, N, y, N);
   95|  5.53k|      }
   96|  5.53k|   }
   97|       |
   98|  2.17k|   const size_t N2 = N / 2;
   99|       |
  100|  2.17k|   const word* x0 = x;
  101|  2.17k|   const word* x1 = x + N2;
  102|  2.17k|   const word* y0 = y;
  103|  2.17k|   const word* y1 = y + N2;
  104|  2.17k|   word* z0 = z;
  105|  2.17k|   word* z1 = z + N;
  106|       |
  107|  2.17k|   word* ws0 = workspace;
  108|  2.17k|   word* ws1 = workspace + N;
  109|       |
  110|  2.17k|   zeroize_buffer(workspace, 2 * N);
  111|       |
  112|       |   /*
  113|       |   * If either of cmp0 or cmp1 is zero then z0 or z1 resp is zero here,
  114|       |   * resulting in a no-op - z0*z1 will be equal to zero so we don't need to do
  115|       |   * anything, zeroize_buffer above already set the correct result.
  116|       |   *
  117|       |   * However we ignore the result of the comparisons and always perform the
  118|       |   * subtractions and recursively multiply to avoid the timing channel.
  119|       |   */
  120|       |
  121|       |   // First compute (X_lo - X_hi)*(Y_hi - Y_lo)
  122|  2.17k|   const auto cmp0 = bigint_sub_abs(z0, x0, x1, N2, workspace);
  123|  2.17k|   const auto cmp1 = bigint_sub_abs(z1, y1, y0, N2, workspace);
  124|  2.17k|   const auto neg_mask = ~(cmp0 ^ cmp1);
  125|       |
  126|  2.17k|   karatsuba_mul(ws0, z0, z1, N2, ws1);
  127|       |
  128|       |   // Compute X_lo * Y_lo
  129|  2.17k|   karatsuba_mul(z0, x0, y0, N2, ws1);
  130|       |
  131|       |   // Compute X_hi * Y_hi
  132|  2.17k|   karatsuba_mul(z1, x1, y1, N2, ws1);
  133|       |
  134|  2.17k|   const word ws_carry = bigint_add3(ws1, z0, N, z1, N);
  135|  2.17k|   word z_carry = bigint_add2(z + N2, N, ws1, N);
  136|       |
  137|  2.17k|   z_carry += bigint_add2(z + N + N2, N2, &ws_carry, 1);
  138|  2.17k|   bigint_add2(z + N + N2, N2, &z_carry, 1);
  139|       |
  140|  2.17k|   zeroize_buffer(workspace + N, N2);
  141|       |
  142|  2.17k|   bigint_cnd_add(neg_mask.value(), z + N2, workspace, 2 * N - N2);
  143|  2.17k|   bigint_cnd_sub((~neg_mask).value(), z + N2, workspace, 2 * N - N2);
  144|  2.17k|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_114karatsuba_sizeEmmm:
  245|  2.77k|size_t karatsuba_size(size_t z_size, size_t x_size, size_t x_sw) {
  246|  2.77k|   if(x_sw == x_size) {
  ------------------
  |  Branch (246:7): [True: 2.01k, False: 755]
  ------------------
  247|  2.01k|      if(x_sw % 2 != 0) {
  ------------------
  |  Branch (247:10): [True: 0, False: 2.01k]
  ------------------
  248|      0|         return 0;
  249|      0|      }
  250|  2.01k|      return x_sw;
  251|  2.01k|   }
  252|       |
  253|  1.16k|   for(size_t j = x_sw; j <= x_size; ++j) {
  ------------------
  |  Branch (253:25): [True: 1.16k, False: 0]
  ------------------
  254|  1.16k|      if(j % 2 != 0) {
  ------------------
  |  Branch (254:10): [True: 408, False: 755]
  ------------------
  255|    408|         continue;
  256|    408|      }
  257|       |
  258|    755|      if(2 * j > z_size) {
  ------------------
  |  Branch (258:10): [True: 408, False: 347]
  ------------------
  259|    408|         return 0;
  260|    408|      }
  261|       |
  262|    347|      if(j % 4 == 2 && (j + 2) <= x_size && 2 * (j + 2) <= z_size) {
  ------------------
  |  Branch (262:10): [True: 214, False: 133]
  |  Branch (262:24): [True: 214, False: 0]
  |  Branch (262:45): [True: 0, False: 214]
  ------------------
  263|      0|         return j + 2;
  264|      0|      }
  265|    347|      return j;
  266|    347|   }
  267|       |
  268|      0|   return 0;
  269|    755|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_113karatsuba_sqrEPmPKmmS1_:
  149|  25.6k|void karatsuba_sqr(word z[], const word x[], size_t N, word workspace[]) {
  150|  25.6k|   if(N < KARATSUBA_SQUARE_THRESHOLD || N % 2 != 0) {
  ------------------
  |  Branch (150:7): [True: 17.8k, False: 7.76k]
  |  Branch (150:41): [True: 0, False: 7.76k]
  ------------------
  151|  17.8k|      switch(N) {
  152|      0|         case 6:
  ------------------
  |  Branch (152:10): [True: 0, False: 17.8k]
  ------------------
  153|      0|            return bigint_comba_sqr6(z, x);
  154|      0|         case 8:
  ------------------
  |  Branch (154:10): [True: 0, False: 17.8k]
  ------------------
  155|      0|            return bigint_comba_sqr8(z, x);
  156|      0|         case 9:
  ------------------
  |  Branch (156:10): [True: 0, False: 17.8k]
  ------------------
  157|      0|            return bigint_comba_sqr9(z, x);
  158|  17.3k|         case 16:
  ------------------
  |  Branch (158:10): [True: 17.3k, False: 580]
  ------------------
  159|  17.3k|            return bigint_comba_sqr16(z, x);
  160|    366|         case 24:
  ------------------
  |  Branch (160:10): [True: 366, False: 17.5k]
  ------------------
  161|    366|            return bigint_comba_sqr24(z, x);
  162|    214|         default:
  ------------------
  |  Branch (162:10): [True: 214, False: 17.6k]
  ------------------
  163|    214|            return basecase_sqr(z, 2 * N, x, N);
  164|  17.8k|      }
  165|  17.8k|   }
  166|       |
  167|  7.76k|   const size_t N2 = N / 2;
  168|       |
  169|  7.76k|   const word* x0 = x;
  170|  7.76k|   const word* x1 = x + N2;
  171|  7.76k|   word* z0 = z;
  172|  7.76k|   word* z1 = z + N;
  173|       |
  174|  7.76k|   word* ws0 = workspace;
  175|  7.76k|   word* ws1 = workspace + N;
  176|       |
  177|  7.76k|   zeroize_buffer(workspace, 2 * N);
  178|       |
  179|       |   // See comment in karatsuba_mul
  180|  7.76k|   bigint_sub_abs(z0, x0, x1, N2, workspace);
  181|  7.76k|   karatsuba_sqr(ws0, z0, N2, ws1);
  182|       |
  183|  7.76k|   karatsuba_sqr(z0, x0, N2, ws1);
  184|  7.76k|   karatsuba_sqr(z1, x1, N2, ws1);
  185|       |
  186|  7.76k|   const word ws_carry = bigint_add3(ws1, z0, N, z1, N);
  187|  7.76k|   word z_carry = bigint_add2(z + N2, N, ws1, N);
  188|       |
  189|  7.76k|   z_carry += bigint_add2(z + N + N2, N2, &ws_carry, 1);
  190|  7.76k|   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|  7.76k|   bigint_sub2(z + N2, 2 * N - N2, ws0, N);
  198|  7.76k|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_mulILm4EEEbmmmmm:
  272|   126k|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|   126k|   return (x_sw <= SZ && x_size >= SZ && y_sw <= SZ && y_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (273:12): [True: 39.8k, False: 86.8k]
  |  Branch (273:26): [True: 39.8k, False: 0]
  |  Branch (273:42): [True: 39.8k, False: 0]
  |  Branch (273:56): [True: 39.8k, False: 0]
  |  Branch (273:72): [True: 38.8k, False: 986]
  ------------------
  274|   126k|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_mulILm6EEEbmmmmm:
  272|  87.8k|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|  87.8k|   return (x_sw <= SZ && x_size >= SZ && y_sw <= SZ && y_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (273:12): [True: 1.06k, False: 86.7k]
  |  Branch (273:26): [True: 1.06k, False: 0]
  |  Branch (273:42): [True: 1.06k, False: 0]
  |  Branch (273:56): [True: 1.06k, False: 0]
  |  Branch (273:72): [True: 82, False: 986]
  ------------------
  274|  87.8k|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_mulILm8EEEbmmmmm:
  272|  87.7k|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|  87.7k|   return (x_sw <= SZ && x_size >= SZ && y_sw <= SZ && y_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (273:12): [True: 1.80k, False: 85.9k]
  |  Branch (273:26): [True: 1.80k, False: 0]
  |  Branch (273:42): [True: 1.80k, False: 0]
  |  Branch (273:56): [True: 1.80k, False: 0]
  |  Branch (273:72): [True: 737, False: 1.06k]
  ------------------
  274|  87.7k|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_mulILm9EEEbmmmmm:
  272|  87.0k|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|  87.0k|   return (x_sw <= SZ && x_size >= SZ && y_sw <= SZ && y_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (273:12): [True: 1.57k, False: 85.4k]
  |  Branch (273:26): [True: 1.57k, False: 0]
  |  Branch (273:42): [True: 1.57k, False: 0]
  |  Branch (273:56): [True: 584, False: 986]
  |  Branch (273:72): [True: 506, False: 78]
  ------------------
  274|  87.0k|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_mulILm16EEEbmmmmm:
  272|  86.5k|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|  86.5k|   return (x_sw <= SZ && x_size >= SZ && y_sw <= SZ && y_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (273:12): [True: 62.8k, False: 23.6k]
  |  Branch (273:26): [True: 61.2k, False: 1.61k]
  |  Branch (273:42): [True: 61.2k, False: 0]
  |  Branch (273:56): [True: 61.2k, False: 0]
  |  Branch (273:72): [True: 58.6k, False: 2.65k]
  ------------------
  274|  86.5k|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_mulILm24EEEbmmmmm:
  272|  27.8k|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|  27.8k|   return (x_sw <= SZ && x_size >= SZ && y_sw <= SZ && y_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (273:12): [True: 26.7k, False: 1.18k]
  |  Branch (273:26): [True: 12.6k, False: 14.0k]
  |  Branch (273:42): [True: 12.6k, False: 0]
  |  Branch (273:56): [True: 12.6k, False: 0]
  |  Branch (273:72): [True: 0, False: 12.6k]
  ------------------
  274|  27.8k|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_sqrILm4EEEbmmm:
  277|  96.9k|inline bool sized_for_comba_sqr(size_t x_sw, size_t x_size, size_t z_size) {
  278|  96.9k|   return (x_sw <= SZ && x_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (278:12): [True: 9, False: 96.9k]
  |  Branch (278:26): [True: 9, False: 0]
  |  Branch (278:42): [True: 9, False: 0]
  ------------------
  279|  96.9k|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_sqrILm6EEEbmmm:
  277|  96.9k|inline bool sized_for_comba_sqr(size_t x_sw, size_t x_size, size_t z_size) {
  278|  96.9k|   return (x_sw <= SZ && x_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (278:12): [True: 34, False: 96.9k]
  |  Branch (278:26): [True: 34, False: 0]
  |  Branch (278:42): [True: 34, False: 0]
  ------------------
  279|  96.9k|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_sqrILm8EEEbmmm:
  277|  96.9k|inline bool sized_for_comba_sqr(size_t x_sw, size_t x_size, size_t z_size) {
  278|  96.9k|   return (x_sw <= SZ && x_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (278:12): [True: 143, False: 96.7k]
  |  Branch (278:26): [True: 143, False: 0]
  |  Branch (278:42): [True: 65, False: 78]
  ------------------
  279|  96.9k|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_sqrILm9EEEbmmm:
  277|  96.8k|inline bool sized_for_comba_sqr(size_t x_sw, size_t x_size, size_t z_size) {
  278|  96.8k|   return (x_sw <= SZ && x_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (278:12): [True: 194, False: 96.6k]
  |  Branch (278:26): [True: 194, False: 0]
  |  Branch (278:42): [True: 116, False: 78]
  ------------------
  279|  96.8k|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_sqrILm16EEEbmmm:
  277|  96.7k|inline bool sized_for_comba_sqr(size_t x_sw, size_t x_size, size_t z_size) {
  278|  96.7k|   return (x_sw <= SZ && x_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (278:12): [True: 93.9k, False: 2.83k]
  |  Branch (278:26): [True: 93.9k, False: 0]
  |  Branch (278:42): [True: 93.0k, False: 885]
  ------------------
  279|  96.7k|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_sqrILm24EEEbmmm:
  277|  3.72k|inline bool sized_for_comba_sqr(size_t x_sw, size_t x_size, size_t z_size) {
  278|  3.72k|   return (x_sw <= SZ && x_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (278:12): [True: 1.57k, False: 2.14k]
  |  Branch (278:26): [True: 906, False: 667]
  |  Branch (278:42): [True: 0, False: 906]
  ------------------
  279|  3.72k|}

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

_ZN5Botan19bigint_monty_redc_4EPmPKmS2_mS0_:
   12|   173k|void bigint_monty_redc_4(word r[4], const word z[8], const word p[4], word p_dash, word ws[4]) {
   13|   173k|   word3<word> accum;
   14|   173k|   accum.add(z[0]);
   15|   173k|   ws[0] = accum.monty_step(p[0], p_dash);
   16|   173k|   accum.mul(ws[0], p[1]);
   17|   173k|   accum.add(z[1]);
   18|   173k|   ws[1] = accum.monty_step(p[0], p_dash);
   19|   173k|   accum.mul(ws[0], p[2]);
   20|   173k|   accum.mul(ws[1], p[1]);
   21|   173k|   accum.add(z[2]);
   22|   173k|   ws[2] = accum.monty_step(p[0], p_dash);
   23|   173k|   accum.mul(ws[0], p[3]);
   24|   173k|   accum.mul(ws[1], p[2]);
   25|   173k|   accum.mul(ws[2], p[1]);
   26|   173k|   accum.add(z[3]);
   27|   173k|   ws[3] = accum.monty_step(p[0], p_dash);
   28|   173k|   accum.mul(ws[1], p[3]);
   29|   173k|   accum.mul(ws[2], p[2]);
   30|   173k|   accum.mul(ws[3], p[1]);
   31|   173k|   accum.add(z[4]);
   32|   173k|   ws[0] = accum.extract();
   33|   173k|   accum.mul(ws[2], p[3]);
   34|   173k|   accum.mul(ws[3], p[2]);
   35|   173k|   accum.add(z[5]);
   36|   173k|   ws[1] = accum.extract();
   37|   173k|   accum.mul(ws[3], p[3]);
   38|   173k|   accum.add(z[6]);
   39|   173k|   ws[2] = accum.extract();
   40|   173k|   accum.add(z[7]);
   41|   173k|   ws[3] = accum.extract();
   42|   173k|   const word w1 = accum.extract();
   43|   173k|   bigint_monty_maybe_sub<4>(r, w1, ws, p);
   44|   173k|}
_ZN5Botan20bigint_monty_redc_16EPmPKmS2_mS0_:
  386|   143k|void bigint_monty_redc_16(word r[16], const word z[32], const word p[16], word p_dash, word ws[16]) {
  387|   143k|   word3<word> accum;
  388|   143k|   accum.add(z[0]);
  389|   143k|   ws[0] = accum.monty_step(p[0], p_dash);
  390|   143k|   accum.mul(ws[0], p[1]);
  391|   143k|   accum.add(z[1]);
  392|   143k|   ws[1] = accum.monty_step(p[0], p_dash);
  393|   143k|   accum.mul(ws[0], p[2]);
  394|   143k|   accum.mul(ws[1], p[1]);
  395|   143k|   accum.add(z[2]);
  396|   143k|   ws[2] = accum.monty_step(p[0], p_dash);
  397|   143k|   accum.mul(ws[0], p[3]);
  398|   143k|   accum.mul(ws[1], p[2]);
  399|   143k|   accum.mul(ws[2], p[1]);
  400|   143k|   accum.add(z[3]);
  401|   143k|   ws[3] = accum.monty_step(p[0], p_dash);
  402|   143k|   accum.mul(ws[0], p[4]);
  403|   143k|   accum.mul(ws[1], p[3]);
  404|   143k|   accum.mul(ws[2], p[2]);
  405|   143k|   accum.mul(ws[3], p[1]);
  406|   143k|   accum.add(z[4]);
  407|   143k|   ws[4] = accum.monty_step(p[0], p_dash);
  408|   143k|   accum.mul(ws[0], p[5]);
  409|   143k|   accum.mul(ws[1], p[4]);
  410|   143k|   accum.mul(ws[2], p[3]);
  411|   143k|   accum.mul(ws[3], p[2]);
  412|   143k|   accum.mul(ws[4], p[1]);
  413|   143k|   accum.add(z[5]);
  414|   143k|   ws[5] = accum.monty_step(p[0], p_dash);
  415|   143k|   accum.mul(ws[0], p[6]);
  416|   143k|   accum.mul(ws[1], p[5]);
  417|   143k|   accum.mul(ws[2], p[4]);
  418|   143k|   accum.mul(ws[3], p[3]);
  419|   143k|   accum.mul(ws[4], p[2]);
  420|   143k|   accum.mul(ws[5], p[1]);
  421|   143k|   accum.add(z[6]);
  422|   143k|   ws[6] = accum.monty_step(p[0], p_dash);
  423|   143k|   accum.mul(ws[0], p[7]);
  424|   143k|   accum.mul(ws[1], p[6]);
  425|   143k|   accum.mul(ws[2], p[5]);
  426|   143k|   accum.mul(ws[3], p[4]);
  427|   143k|   accum.mul(ws[4], p[3]);
  428|   143k|   accum.mul(ws[5], p[2]);
  429|   143k|   accum.mul(ws[6], p[1]);
  430|   143k|   accum.add(z[7]);
  431|   143k|   ws[7] = accum.monty_step(p[0], p_dash);
  432|   143k|   accum.mul(ws[0], p[8]);
  433|   143k|   accum.mul(ws[1], p[7]);
  434|   143k|   accum.mul(ws[2], p[6]);
  435|   143k|   accum.mul(ws[3], p[5]);
  436|   143k|   accum.mul(ws[4], p[4]);
  437|   143k|   accum.mul(ws[5], p[3]);
  438|   143k|   accum.mul(ws[6], p[2]);
  439|   143k|   accum.mul(ws[7], p[1]);
  440|   143k|   accum.add(z[8]);
  441|   143k|   ws[8] = accum.monty_step(p[0], p_dash);
  442|   143k|   accum.mul(ws[0], p[9]);
  443|   143k|   accum.mul(ws[1], p[8]);
  444|   143k|   accum.mul(ws[2], p[7]);
  445|   143k|   accum.mul(ws[3], p[6]);
  446|   143k|   accum.mul(ws[4], p[5]);
  447|   143k|   accum.mul(ws[5], p[4]);
  448|   143k|   accum.mul(ws[6], p[3]);
  449|   143k|   accum.mul(ws[7], p[2]);
  450|   143k|   accum.mul(ws[8], p[1]);
  451|   143k|   accum.add(z[9]);
  452|   143k|   ws[9] = accum.monty_step(p[0], p_dash);
  453|   143k|   accum.mul(ws[0], p[10]);
  454|   143k|   accum.mul(ws[1], p[9]);
  455|   143k|   accum.mul(ws[2], p[8]);
  456|   143k|   accum.mul(ws[3], p[7]);
  457|   143k|   accum.mul(ws[4], p[6]);
  458|   143k|   accum.mul(ws[5], p[5]);
  459|   143k|   accum.mul(ws[6], p[4]);
  460|   143k|   accum.mul(ws[7], p[3]);
  461|   143k|   accum.mul(ws[8], p[2]);
  462|   143k|   accum.mul(ws[9], p[1]);
  463|   143k|   accum.add(z[10]);
  464|   143k|   ws[10] = accum.monty_step(p[0], p_dash);
  465|   143k|   accum.mul(ws[0], p[11]);
  466|   143k|   accum.mul(ws[1], p[10]);
  467|   143k|   accum.mul(ws[2], p[9]);
  468|   143k|   accum.mul(ws[3], p[8]);
  469|   143k|   accum.mul(ws[4], p[7]);
  470|   143k|   accum.mul(ws[5], p[6]);
  471|   143k|   accum.mul(ws[6], p[5]);
  472|   143k|   accum.mul(ws[7], p[4]);
  473|   143k|   accum.mul(ws[8], p[3]);
  474|   143k|   accum.mul(ws[9], p[2]);
  475|   143k|   accum.mul(ws[10], p[1]);
  476|   143k|   accum.add(z[11]);
  477|   143k|   ws[11] = accum.monty_step(p[0], p_dash);
  478|   143k|   accum.mul(ws[0], p[12]);
  479|   143k|   accum.mul(ws[1], p[11]);
  480|   143k|   accum.mul(ws[2], p[10]);
  481|   143k|   accum.mul(ws[3], p[9]);
  482|   143k|   accum.mul(ws[4], p[8]);
  483|   143k|   accum.mul(ws[5], p[7]);
  484|   143k|   accum.mul(ws[6], p[6]);
  485|   143k|   accum.mul(ws[7], p[5]);
  486|   143k|   accum.mul(ws[8], p[4]);
  487|   143k|   accum.mul(ws[9], p[3]);
  488|   143k|   accum.mul(ws[10], p[2]);
  489|   143k|   accum.mul(ws[11], p[1]);
  490|   143k|   accum.add(z[12]);
  491|   143k|   ws[12] = accum.monty_step(p[0], p_dash);
  492|   143k|   accum.mul(ws[0], p[13]);
  493|   143k|   accum.mul(ws[1], p[12]);
  494|   143k|   accum.mul(ws[2], p[11]);
  495|   143k|   accum.mul(ws[3], p[10]);
  496|   143k|   accum.mul(ws[4], p[9]);
  497|   143k|   accum.mul(ws[5], p[8]);
  498|   143k|   accum.mul(ws[6], p[7]);
  499|   143k|   accum.mul(ws[7], p[6]);
  500|   143k|   accum.mul(ws[8], p[5]);
  501|   143k|   accum.mul(ws[9], p[4]);
  502|   143k|   accum.mul(ws[10], p[3]);
  503|   143k|   accum.mul(ws[11], p[2]);
  504|   143k|   accum.mul(ws[12], p[1]);
  505|   143k|   accum.add(z[13]);
  506|   143k|   ws[13] = accum.monty_step(p[0], p_dash);
  507|   143k|   accum.mul(ws[0], p[14]);
  508|   143k|   accum.mul(ws[1], p[13]);
  509|   143k|   accum.mul(ws[2], p[12]);
  510|   143k|   accum.mul(ws[3], p[11]);
  511|   143k|   accum.mul(ws[4], p[10]);
  512|   143k|   accum.mul(ws[5], p[9]);
  513|   143k|   accum.mul(ws[6], p[8]);
  514|   143k|   accum.mul(ws[7], p[7]);
  515|   143k|   accum.mul(ws[8], p[6]);
  516|   143k|   accum.mul(ws[9], p[5]);
  517|   143k|   accum.mul(ws[10], p[4]);
  518|   143k|   accum.mul(ws[11], p[3]);
  519|   143k|   accum.mul(ws[12], p[2]);
  520|   143k|   accum.mul(ws[13], p[1]);
  521|   143k|   accum.add(z[14]);
  522|   143k|   ws[14] = accum.monty_step(p[0], p_dash);
  523|   143k|   accum.mul(ws[0], p[15]);
  524|   143k|   accum.mul(ws[1], p[14]);
  525|   143k|   accum.mul(ws[2], p[13]);
  526|   143k|   accum.mul(ws[3], p[12]);
  527|   143k|   accum.mul(ws[4], p[11]);
  528|   143k|   accum.mul(ws[5], p[10]);
  529|   143k|   accum.mul(ws[6], p[9]);
  530|   143k|   accum.mul(ws[7], p[8]);
  531|   143k|   accum.mul(ws[8], p[7]);
  532|   143k|   accum.mul(ws[9], p[6]);
  533|   143k|   accum.mul(ws[10], p[5]);
  534|   143k|   accum.mul(ws[11], p[4]);
  535|   143k|   accum.mul(ws[12], p[3]);
  536|   143k|   accum.mul(ws[13], p[2]);
  537|   143k|   accum.mul(ws[14], p[1]);
  538|   143k|   accum.add(z[15]);
  539|   143k|   ws[15] = accum.monty_step(p[0], p_dash);
  540|   143k|   accum.mul(ws[1], p[15]);
  541|   143k|   accum.mul(ws[2], p[14]);
  542|   143k|   accum.mul(ws[3], p[13]);
  543|   143k|   accum.mul(ws[4], p[12]);
  544|   143k|   accum.mul(ws[5], p[11]);
  545|   143k|   accum.mul(ws[6], p[10]);
  546|   143k|   accum.mul(ws[7], p[9]);
  547|   143k|   accum.mul(ws[8], p[8]);
  548|   143k|   accum.mul(ws[9], p[7]);
  549|   143k|   accum.mul(ws[10], p[6]);
  550|   143k|   accum.mul(ws[11], p[5]);
  551|   143k|   accum.mul(ws[12], p[4]);
  552|   143k|   accum.mul(ws[13], p[3]);
  553|   143k|   accum.mul(ws[14], p[2]);
  554|   143k|   accum.mul(ws[15], p[1]);
  555|   143k|   accum.add(z[16]);
  556|   143k|   ws[0] = accum.extract();
  557|   143k|   accum.mul(ws[2], p[15]);
  558|   143k|   accum.mul(ws[3], p[14]);
  559|   143k|   accum.mul(ws[4], p[13]);
  560|   143k|   accum.mul(ws[5], p[12]);
  561|   143k|   accum.mul(ws[6], p[11]);
  562|   143k|   accum.mul(ws[7], p[10]);
  563|   143k|   accum.mul(ws[8], p[9]);
  564|   143k|   accum.mul(ws[9], p[8]);
  565|   143k|   accum.mul(ws[10], p[7]);
  566|   143k|   accum.mul(ws[11], p[6]);
  567|   143k|   accum.mul(ws[12], p[5]);
  568|   143k|   accum.mul(ws[13], p[4]);
  569|   143k|   accum.mul(ws[14], p[3]);
  570|   143k|   accum.mul(ws[15], p[2]);
  571|   143k|   accum.add(z[17]);
  572|   143k|   ws[1] = accum.extract();
  573|   143k|   accum.mul(ws[3], p[15]);
  574|   143k|   accum.mul(ws[4], p[14]);
  575|   143k|   accum.mul(ws[5], p[13]);
  576|   143k|   accum.mul(ws[6], p[12]);
  577|   143k|   accum.mul(ws[7], p[11]);
  578|   143k|   accum.mul(ws[8], p[10]);
  579|   143k|   accum.mul(ws[9], p[9]);
  580|   143k|   accum.mul(ws[10], p[8]);
  581|   143k|   accum.mul(ws[11], p[7]);
  582|   143k|   accum.mul(ws[12], p[6]);
  583|   143k|   accum.mul(ws[13], p[5]);
  584|   143k|   accum.mul(ws[14], p[4]);
  585|   143k|   accum.mul(ws[15], p[3]);
  586|   143k|   accum.add(z[18]);
  587|   143k|   ws[2] = accum.extract();
  588|   143k|   accum.mul(ws[4], p[15]);
  589|   143k|   accum.mul(ws[5], p[14]);
  590|   143k|   accum.mul(ws[6], p[13]);
  591|   143k|   accum.mul(ws[7], p[12]);
  592|   143k|   accum.mul(ws[8], p[11]);
  593|   143k|   accum.mul(ws[9], p[10]);
  594|   143k|   accum.mul(ws[10], p[9]);
  595|   143k|   accum.mul(ws[11], p[8]);
  596|   143k|   accum.mul(ws[12], p[7]);
  597|   143k|   accum.mul(ws[13], p[6]);
  598|   143k|   accum.mul(ws[14], p[5]);
  599|   143k|   accum.mul(ws[15], p[4]);
  600|   143k|   accum.add(z[19]);
  601|   143k|   ws[3] = accum.extract();
  602|   143k|   accum.mul(ws[5], p[15]);
  603|   143k|   accum.mul(ws[6], p[14]);
  604|   143k|   accum.mul(ws[7], p[13]);
  605|   143k|   accum.mul(ws[8], p[12]);
  606|   143k|   accum.mul(ws[9], p[11]);
  607|   143k|   accum.mul(ws[10], p[10]);
  608|   143k|   accum.mul(ws[11], p[9]);
  609|   143k|   accum.mul(ws[12], p[8]);
  610|   143k|   accum.mul(ws[13], p[7]);
  611|   143k|   accum.mul(ws[14], p[6]);
  612|   143k|   accum.mul(ws[15], p[5]);
  613|   143k|   accum.add(z[20]);
  614|   143k|   ws[4] = accum.extract();
  615|   143k|   accum.mul(ws[6], p[15]);
  616|   143k|   accum.mul(ws[7], p[14]);
  617|   143k|   accum.mul(ws[8], p[13]);
  618|   143k|   accum.mul(ws[9], p[12]);
  619|   143k|   accum.mul(ws[10], p[11]);
  620|   143k|   accum.mul(ws[11], p[10]);
  621|   143k|   accum.mul(ws[12], p[9]);
  622|   143k|   accum.mul(ws[13], p[8]);
  623|   143k|   accum.mul(ws[14], p[7]);
  624|   143k|   accum.mul(ws[15], p[6]);
  625|   143k|   accum.add(z[21]);
  626|   143k|   ws[5] = accum.extract();
  627|   143k|   accum.mul(ws[7], p[15]);
  628|   143k|   accum.mul(ws[8], p[14]);
  629|   143k|   accum.mul(ws[9], p[13]);
  630|   143k|   accum.mul(ws[10], p[12]);
  631|   143k|   accum.mul(ws[11], p[11]);
  632|   143k|   accum.mul(ws[12], p[10]);
  633|   143k|   accum.mul(ws[13], p[9]);
  634|   143k|   accum.mul(ws[14], p[8]);
  635|   143k|   accum.mul(ws[15], p[7]);
  636|   143k|   accum.add(z[22]);
  637|   143k|   ws[6] = accum.extract();
  638|   143k|   accum.mul(ws[8], p[15]);
  639|   143k|   accum.mul(ws[9], p[14]);
  640|   143k|   accum.mul(ws[10], p[13]);
  641|   143k|   accum.mul(ws[11], p[12]);
  642|   143k|   accum.mul(ws[12], p[11]);
  643|   143k|   accum.mul(ws[13], p[10]);
  644|   143k|   accum.mul(ws[14], p[9]);
  645|   143k|   accum.mul(ws[15], p[8]);
  646|   143k|   accum.add(z[23]);
  647|   143k|   ws[7] = accum.extract();
  648|   143k|   accum.mul(ws[9], p[15]);
  649|   143k|   accum.mul(ws[10], p[14]);
  650|   143k|   accum.mul(ws[11], p[13]);
  651|   143k|   accum.mul(ws[12], p[12]);
  652|   143k|   accum.mul(ws[13], p[11]);
  653|   143k|   accum.mul(ws[14], p[10]);
  654|   143k|   accum.mul(ws[15], p[9]);
  655|   143k|   accum.add(z[24]);
  656|   143k|   ws[8] = accum.extract();
  657|   143k|   accum.mul(ws[10], p[15]);
  658|   143k|   accum.mul(ws[11], p[14]);
  659|   143k|   accum.mul(ws[12], p[13]);
  660|   143k|   accum.mul(ws[13], p[12]);
  661|   143k|   accum.mul(ws[14], p[11]);
  662|   143k|   accum.mul(ws[15], p[10]);
  663|   143k|   accum.add(z[25]);
  664|   143k|   ws[9] = accum.extract();
  665|   143k|   accum.mul(ws[11], p[15]);
  666|   143k|   accum.mul(ws[12], p[14]);
  667|   143k|   accum.mul(ws[13], p[13]);
  668|   143k|   accum.mul(ws[14], p[12]);
  669|   143k|   accum.mul(ws[15], p[11]);
  670|   143k|   accum.add(z[26]);
  671|   143k|   ws[10] = accum.extract();
  672|   143k|   accum.mul(ws[12], p[15]);
  673|   143k|   accum.mul(ws[13], p[14]);
  674|   143k|   accum.mul(ws[14], p[13]);
  675|   143k|   accum.mul(ws[15], p[12]);
  676|   143k|   accum.add(z[27]);
  677|   143k|   ws[11] = accum.extract();
  678|   143k|   accum.mul(ws[13], p[15]);
  679|   143k|   accum.mul(ws[14], p[14]);
  680|   143k|   accum.mul(ws[15], p[13]);
  681|   143k|   accum.add(z[28]);
  682|   143k|   ws[12] = accum.extract();
  683|   143k|   accum.mul(ws[14], p[15]);
  684|   143k|   accum.mul(ws[15], p[14]);
  685|   143k|   accum.add(z[29]);
  686|   143k|   ws[13] = accum.extract();
  687|   143k|   accum.mul(ws[15], p[15]);
  688|   143k|   accum.add(z[30]);
  689|   143k|   ws[14] = accum.extract();
  690|   143k|   accum.add(z[31]);
  691|   143k|   ws[15] = accum.extract();
  692|   143k|   const word w1 = accum.extract();
  693|   143k|   bigint_monty_maybe_sub<16>(r, w1, ws, p);
  694|   143k|}
_ZN5Botan20bigint_monty_redc_32EPmPKmS2_mS0_:
 1350|    171|void bigint_monty_redc_32(word r[32], const word z[64], const word p[32], word p_dash, word ws[32]) {
 1351|    171|   word3<word> accum;
 1352|    171|   accum.add(z[0]);
 1353|    171|   ws[0] = accum.monty_step(p[0], p_dash);
 1354|    171|   accum.mul(ws[0], p[1]);
 1355|    171|   accum.add(z[1]);
 1356|    171|   ws[1] = accum.monty_step(p[0], p_dash);
 1357|    171|   accum.mul(ws[0], p[2]);
 1358|    171|   accum.mul(ws[1], p[1]);
 1359|    171|   accum.add(z[2]);
 1360|    171|   ws[2] = accum.monty_step(p[0], p_dash);
 1361|    171|   accum.mul(ws[0], p[3]);
 1362|    171|   accum.mul(ws[1], p[2]);
 1363|    171|   accum.mul(ws[2], p[1]);
 1364|    171|   accum.add(z[3]);
 1365|    171|   ws[3] = accum.monty_step(p[0], p_dash);
 1366|    171|   accum.mul(ws[0], p[4]);
 1367|    171|   accum.mul(ws[1], p[3]);
 1368|    171|   accum.mul(ws[2], p[2]);
 1369|    171|   accum.mul(ws[3], p[1]);
 1370|    171|   accum.add(z[4]);
 1371|    171|   ws[4] = accum.monty_step(p[0], p_dash);
 1372|    171|   accum.mul(ws[0], p[5]);
 1373|    171|   accum.mul(ws[1], p[4]);
 1374|    171|   accum.mul(ws[2], p[3]);
 1375|    171|   accum.mul(ws[3], p[2]);
 1376|    171|   accum.mul(ws[4], p[1]);
 1377|    171|   accum.add(z[5]);
 1378|    171|   ws[5] = accum.monty_step(p[0], p_dash);
 1379|    171|   accum.mul(ws[0], p[6]);
 1380|    171|   accum.mul(ws[1], p[5]);
 1381|    171|   accum.mul(ws[2], p[4]);
 1382|    171|   accum.mul(ws[3], p[3]);
 1383|    171|   accum.mul(ws[4], p[2]);
 1384|    171|   accum.mul(ws[5], p[1]);
 1385|    171|   accum.add(z[6]);
 1386|    171|   ws[6] = accum.monty_step(p[0], p_dash);
 1387|    171|   accum.mul(ws[0], p[7]);
 1388|    171|   accum.mul(ws[1], p[6]);
 1389|    171|   accum.mul(ws[2], p[5]);
 1390|    171|   accum.mul(ws[3], p[4]);
 1391|    171|   accum.mul(ws[4], p[3]);
 1392|    171|   accum.mul(ws[5], p[2]);
 1393|    171|   accum.mul(ws[6], p[1]);
 1394|    171|   accum.add(z[7]);
 1395|    171|   ws[7] = accum.monty_step(p[0], p_dash);
 1396|    171|   accum.mul(ws[0], p[8]);
 1397|    171|   accum.mul(ws[1], p[7]);
 1398|    171|   accum.mul(ws[2], p[6]);
 1399|    171|   accum.mul(ws[3], p[5]);
 1400|    171|   accum.mul(ws[4], p[4]);
 1401|    171|   accum.mul(ws[5], p[3]);
 1402|    171|   accum.mul(ws[6], p[2]);
 1403|    171|   accum.mul(ws[7], p[1]);
 1404|    171|   accum.add(z[8]);
 1405|    171|   ws[8] = accum.monty_step(p[0], p_dash);
 1406|    171|   accum.mul(ws[0], p[9]);
 1407|    171|   accum.mul(ws[1], p[8]);
 1408|    171|   accum.mul(ws[2], p[7]);
 1409|    171|   accum.mul(ws[3], p[6]);
 1410|    171|   accum.mul(ws[4], p[5]);
 1411|    171|   accum.mul(ws[5], p[4]);
 1412|    171|   accum.mul(ws[6], p[3]);
 1413|    171|   accum.mul(ws[7], p[2]);
 1414|    171|   accum.mul(ws[8], p[1]);
 1415|    171|   accum.add(z[9]);
 1416|    171|   ws[9] = accum.monty_step(p[0], p_dash);
 1417|    171|   accum.mul(ws[0], p[10]);
 1418|    171|   accum.mul(ws[1], p[9]);
 1419|    171|   accum.mul(ws[2], p[8]);
 1420|    171|   accum.mul(ws[3], p[7]);
 1421|    171|   accum.mul(ws[4], p[6]);
 1422|    171|   accum.mul(ws[5], p[5]);
 1423|    171|   accum.mul(ws[6], p[4]);
 1424|    171|   accum.mul(ws[7], p[3]);
 1425|    171|   accum.mul(ws[8], p[2]);
 1426|    171|   accum.mul(ws[9], p[1]);
 1427|    171|   accum.add(z[10]);
 1428|    171|   ws[10] = accum.monty_step(p[0], p_dash);
 1429|    171|   accum.mul(ws[0], p[11]);
 1430|    171|   accum.mul(ws[1], p[10]);
 1431|    171|   accum.mul(ws[2], p[9]);
 1432|    171|   accum.mul(ws[3], p[8]);
 1433|    171|   accum.mul(ws[4], p[7]);
 1434|    171|   accum.mul(ws[5], p[6]);
 1435|    171|   accum.mul(ws[6], p[5]);
 1436|    171|   accum.mul(ws[7], p[4]);
 1437|    171|   accum.mul(ws[8], p[3]);
 1438|    171|   accum.mul(ws[9], p[2]);
 1439|    171|   accum.mul(ws[10], p[1]);
 1440|    171|   accum.add(z[11]);
 1441|    171|   ws[11] = accum.monty_step(p[0], p_dash);
 1442|    171|   accum.mul(ws[0], p[12]);
 1443|    171|   accum.mul(ws[1], p[11]);
 1444|    171|   accum.mul(ws[2], p[10]);
 1445|    171|   accum.mul(ws[3], p[9]);
 1446|    171|   accum.mul(ws[4], p[8]);
 1447|    171|   accum.mul(ws[5], p[7]);
 1448|    171|   accum.mul(ws[6], p[6]);
 1449|    171|   accum.mul(ws[7], p[5]);
 1450|    171|   accum.mul(ws[8], p[4]);
 1451|    171|   accum.mul(ws[9], p[3]);
 1452|    171|   accum.mul(ws[10], p[2]);
 1453|    171|   accum.mul(ws[11], p[1]);
 1454|    171|   accum.add(z[12]);
 1455|    171|   ws[12] = accum.monty_step(p[0], p_dash);
 1456|    171|   accum.mul(ws[0], p[13]);
 1457|    171|   accum.mul(ws[1], p[12]);
 1458|    171|   accum.mul(ws[2], p[11]);
 1459|    171|   accum.mul(ws[3], p[10]);
 1460|    171|   accum.mul(ws[4], p[9]);
 1461|    171|   accum.mul(ws[5], p[8]);
 1462|    171|   accum.mul(ws[6], p[7]);
 1463|    171|   accum.mul(ws[7], p[6]);
 1464|    171|   accum.mul(ws[8], p[5]);
 1465|    171|   accum.mul(ws[9], p[4]);
 1466|    171|   accum.mul(ws[10], p[3]);
 1467|    171|   accum.mul(ws[11], p[2]);
 1468|    171|   accum.mul(ws[12], p[1]);
 1469|    171|   accum.add(z[13]);
 1470|    171|   ws[13] = accum.monty_step(p[0], p_dash);
 1471|    171|   accum.mul(ws[0], p[14]);
 1472|    171|   accum.mul(ws[1], p[13]);
 1473|    171|   accum.mul(ws[2], p[12]);
 1474|    171|   accum.mul(ws[3], p[11]);
 1475|    171|   accum.mul(ws[4], p[10]);
 1476|    171|   accum.mul(ws[5], p[9]);
 1477|    171|   accum.mul(ws[6], p[8]);
 1478|    171|   accum.mul(ws[7], p[7]);
 1479|    171|   accum.mul(ws[8], p[6]);
 1480|    171|   accum.mul(ws[9], p[5]);
 1481|    171|   accum.mul(ws[10], p[4]);
 1482|    171|   accum.mul(ws[11], p[3]);
 1483|    171|   accum.mul(ws[12], p[2]);
 1484|    171|   accum.mul(ws[13], p[1]);
 1485|    171|   accum.add(z[14]);
 1486|    171|   ws[14] = accum.monty_step(p[0], p_dash);
 1487|    171|   accum.mul(ws[0], p[15]);
 1488|    171|   accum.mul(ws[1], p[14]);
 1489|    171|   accum.mul(ws[2], p[13]);
 1490|    171|   accum.mul(ws[3], p[12]);
 1491|    171|   accum.mul(ws[4], p[11]);
 1492|    171|   accum.mul(ws[5], p[10]);
 1493|    171|   accum.mul(ws[6], p[9]);
 1494|    171|   accum.mul(ws[7], p[8]);
 1495|    171|   accum.mul(ws[8], p[7]);
 1496|    171|   accum.mul(ws[9], p[6]);
 1497|    171|   accum.mul(ws[10], p[5]);
 1498|    171|   accum.mul(ws[11], p[4]);
 1499|    171|   accum.mul(ws[12], p[3]);
 1500|    171|   accum.mul(ws[13], p[2]);
 1501|    171|   accum.mul(ws[14], p[1]);
 1502|    171|   accum.add(z[15]);
 1503|    171|   ws[15] = accum.monty_step(p[0], p_dash);
 1504|    171|   accum.mul(ws[0], p[16]);
 1505|    171|   accum.mul(ws[1], p[15]);
 1506|    171|   accum.mul(ws[2], p[14]);
 1507|    171|   accum.mul(ws[3], p[13]);
 1508|    171|   accum.mul(ws[4], p[12]);
 1509|    171|   accum.mul(ws[5], p[11]);
 1510|    171|   accum.mul(ws[6], p[10]);
 1511|    171|   accum.mul(ws[7], p[9]);
 1512|    171|   accum.mul(ws[8], p[8]);
 1513|    171|   accum.mul(ws[9], p[7]);
 1514|    171|   accum.mul(ws[10], p[6]);
 1515|    171|   accum.mul(ws[11], p[5]);
 1516|    171|   accum.mul(ws[12], p[4]);
 1517|    171|   accum.mul(ws[13], p[3]);
 1518|    171|   accum.mul(ws[14], p[2]);
 1519|    171|   accum.mul(ws[15], p[1]);
 1520|    171|   accum.add(z[16]);
 1521|    171|   ws[16] = accum.monty_step(p[0], p_dash);
 1522|    171|   accum.mul(ws[0], p[17]);
 1523|    171|   accum.mul(ws[1], p[16]);
 1524|    171|   accum.mul(ws[2], p[15]);
 1525|    171|   accum.mul(ws[3], p[14]);
 1526|    171|   accum.mul(ws[4], p[13]);
 1527|    171|   accum.mul(ws[5], p[12]);
 1528|    171|   accum.mul(ws[6], p[11]);
 1529|    171|   accum.mul(ws[7], p[10]);
 1530|    171|   accum.mul(ws[8], p[9]);
 1531|    171|   accum.mul(ws[9], p[8]);
 1532|    171|   accum.mul(ws[10], p[7]);
 1533|    171|   accum.mul(ws[11], p[6]);
 1534|    171|   accum.mul(ws[12], p[5]);
 1535|    171|   accum.mul(ws[13], p[4]);
 1536|    171|   accum.mul(ws[14], p[3]);
 1537|    171|   accum.mul(ws[15], p[2]);
 1538|    171|   accum.mul(ws[16], p[1]);
 1539|    171|   accum.add(z[17]);
 1540|    171|   ws[17] = accum.monty_step(p[0], p_dash);
 1541|    171|   accum.mul(ws[0], p[18]);
 1542|    171|   accum.mul(ws[1], p[17]);
 1543|    171|   accum.mul(ws[2], p[16]);
 1544|    171|   accum.mul(ws[3], p[15]);
 1545|    171|   accum.mul(ws[4], p[14]);
 1546|    171|   accum.mul(ws[5], p[13]);
 1547|    171|   accum.mul(ws[6], p[12]);
 1548|    171|   accum.mul(ws[7], p[11]);
 1549|    171|   accum.mul(ws[8], p[10]);
 1550|    171|   accum.mul(ws[9], p[9]);
 1551|    171|   accum.mul(ws[10], p[8]);
 1552|    171|   accum.mul(ws[11], p[7]);
 1553|    171|   accum.mul(ws[12], p[6]);
 1554|    171|   accum.mul(ws[13], p[5]);
 1555|    171|   accum.mul(ws[14], p[4]);
 1556|    171|   accum.mul(ws[15], p[3]);
 1557|    171|   accum.mul(ws[16], p[2]);
 1558|    171|   accum.mul(ws[17], p[1]);
 1559|    171|   accum.add(z[18]);
 1560|    171|   ws[18] = accum.monty_step(p[0], p_dash);
 1561|    171|   accum.mul(ws[0], p[19]);
 1562|    171|   accum.mul(ws[1], p[18]);
 1563|    171|   accum.mul(ws[2], p[17]);
 1564|    171|   accum.mul(ws[3], p[16]);
 1565|    171|   accum.mul(ws[4], p[15]);
 1566|    171|   accum.mul(ws[5], p[14]);
 1567|    171|   accum.mul(ws[6], p[13]);
 1568|    171|   accum.mul(ws[7], p[12]);
 1569|    171|   accum.mul(ws[8], p[11]);
 1570|    171|   accum.mul(ws[9], p[10]);
 1571|    171|   accum.mul(ws[10], p[9]);
 1572|    171|   accum.mul(ws[11], p[8]);
 1573|    171|   accum.mul(ws[12], p[7]);
 1574|    171|   accum.mul(ws[13], p[6]);
 1575|    171|   accum.mul(ws[14], p[5]);
 1576|    171|   accum.mul(ws[15], p[4]);
 1577|    171|   accum.mul(ws[16], p[3]);
 1578|    171|   accum.mul(ws[17], p[2]);
 1579|    171|   accum.mul(ws[18], p[1]);
 1580|    171|   accum.add(z[19]);
 1581|    171|   ws[19] = accum.monty_step(p[0], p_dash);
 1582|    171|   accum.mul(ws[0], p[20]);
 1583|    171|   accum.mul(ws[1], p[19]);
 1584|    171|   accum.mul(ws[2], p[18]);
 1585|    171|   accum.mul(ws[3], p[17]);
 1586|    171|   accum.mul(ws[4], p[16]);
 1587|    171|   accum.mul(ws[5], p[15]);
 1588|    171|   accum.mul(ws[6], p[14]);
 1589|    171|   accum.mul(ws[7], p[13]);
 1590|    171|   accum.mul(ws[8], p[12]);
 1591|    171|   accum.mul(ws[9], p[11]);
 1592|    171|   accum.mul(ws[10], p[10]);
 1593|    171|   accum.mul(ws[11], p[9]);
 1594|    171|   accum.mul(ws[12], p[8]);
 1595|    171|   accum.mul(ws[13], p[7]);
 1596|    171|   accum.mul(ws[14], p[6]);
 1597|    171|   accum.mul(ws[15], p[5]);
 1598|    171|   accum.mul(ws[16], p[4]);
 1599|    171|   accum.mul(ws[17], p[3]);
 1600|    171|   accum.mul(ws[18], p[2]);
 1601|    171|   accum.mul(ws[19], p[1]);
 1602|    171|   accum.add(z[20]);
 1603|    171|   ws[20] = accum.monty_step(p[0], p_dash);
 1604|    171|   accum.mul(ws[0], p[21]);
 1605|    171|   accum.mul(ws[1], p[20]);
 1606|    171|   accum.mul(ws[2], p[19]);
 1607|    171|   accum.mul(ws[3], p[18]);
 1608|    171|   accum.mul(ws[4], p[17]);
 1609|    171|   accum.mul(ws[5], p[16]);
 1610|    171|   accum.mul(ws[6], p[15]);
 1611|    171|   accum.mul(ws[7], p[14]);
 1612|    171|   accum.mul(ws[8], p[13]);
 1613|    171|   accum.mul(ws[9], p[12]);
 1614|    171|   accum.mul(ws[10], p[11]);
 1615|    171|   accum.mul(ws[11], p[10]);
 1616|    171|   accum.mul(ws[12], p[9]);
 1617|    171|   accum.mul(ws[13], p[8]);
 1618|    171|   accum.mul(ws[14], p[7]);
 1619|    171|   accum.mul(ws[15], p[6]);
 1620|    171|   accum.mul(ws[16], p[5]);
 1621|    171|   accum.mul(ws[17], p[4]);
 1622|    171|   accum.mul(ws[18], p[3]);
 1623|    171|   accum.mul(ws[19], p[2]);
 1624|    171|   accum.mul(ws[20], p[1]);
 1625|    171|   accum.add(z[21]);
 1626|    171|   ws[21] = accum.monty_step(p[0], p_dash);
 1627|    171|   accum.mul(ws[0], p[22]);
 1628|    171|   accum.mul(ws[1], p[21]);
 1629|    171|   accum.mul(ws[2], p[20]);
 1630|    171|   accum.mul(ws[3], p[19]);
 1631|    171|   accum.mul(ws[4], p[18]);
 1632|    171|   accum.mul(ws[5], p[17]);
 1633|    171|   accum.mul(ws[6], p[16]);
 1634|    171|   accum.mul(ws[7], p[15]);
 1635|    171|   accum.mul(ws[8], p[14]);
 1636|    171|   accum.mul(ws[9], p[13]);
 1637|    171|   accum.mul(ws[10], p[12]);
 1638|    171|   accum.mul(ws[11], p[11]);
 1639|    171|   accum.mul(ws[12], p[10]);
 1640|    171|   accum.mul(ws[13], p[9]);
 1641|    171|   accum.mul(ws[14], p[8]);
 1642|    171|   accum.mul(ws[15], p[7]);
 1643|    171|   accum.mul(ws[16], p[6]);
 1644|    171|   accum.mul(ws[17], p[5]);
 1645|    171|   accum.mul(ws[18], p[4]);
 1646|    171|   accum.mul(ws[19], p[3]);
 1647|    171|   accum.mul(ws[20], p[2]);
 1648|    171|   accum.mul(ws[21], p[1]);
 1649|    171|   accum.add(z[22]);
 1650|    171|   ws[22] = accum.monty_step(p[0], p_dash);
 1651|    171|   accum.mul(ws[0], p[23]);
 1652|    171|   accum.mul(ws[1], p[22]);
 1653|    171|   accum.mul(ws[2], p[21]);
 1654|    171|   accum.mul(ws[3], p[20]);
 1655|    171|   accum.mul(ws[4], p[19]);
 1656|    171|   accum.mul(ws[5], p[18]);
 1657|    171|   accum.mul(ws[6], p[17]);
 1658|    171|   accum.mul(ws[7], p[16]);
 1659|    171|   accum.mul(ws[8], p[15]);
 1660|    171|   accum.mul(ws[9], p[14]);
 1661|    171|   accum.mul(ws[10], p[13]);
 1662|    171|   accum.mul(ws[11], p[12]);
 1663|    171|   accum.mul(ws[12], p[11]);
 1664|    171|   accum.mul(ws[13], p[10]);
 1665|    171|   accum.mul(ws[14], p[9]);
 1666|    171|   accum.mul(ws[15], p[8]);
 1667|    171|   accum.mul(ws[16], p[7]);
 1668|    171|   accum.mul(ws[17], p[6]);
 1669|    171|   accum.mul(ws[18], p[5]);
 1670|    171|   accum.mul(ws[19], p[4]);
 1671|    171|   accum.mul(ws[20], p[3]);
 1672|    171|   accum.mul(ws[21], p[2]);
 1673|    171|   accum.mul(ws[22], p[1]);
 1674|    171|   accum.add(z[23]);
 1675|    171|   ws[23] = accum.monty_step(p[0], p_dash);
 1676|    171|   accum.mul(ws[0], p[24]);
 1677|    171|   accum.mul(ws[1], p[23]);
 1678|    171|   accum.mul(ws[2], p[22]);
 1679|    171|   accum.mul(ws[3], p[21]);
 1680|    171|   accum.mul(ws[4], p[20]);
 1681|    171|   accum.mul(ws[5], p[19]);
 1682|    171|   accum.mul(ws[6], p[18]);
 1683|    171|   accum.mul(ws[7], p[17]);
 1684|    171|   accum.mul(ws[8], p[16]);
 1685|    171|   accum.mul(ws[9], p[15]);
 1686|    171|   accum.mul(ws[10], p[14]);
 1687|    171|   accum.mul(ws[11], p[13]);
 1688|    171|   accum.mul(ws[12], p[12]);
 1689|    171|   accum.mul(ws[13], p[11]);
 1690|    171|   accum.mul(ws[14], p[10]);
 1691|    171|   accum.mul(ws[15], p[9]);
 1692|    171|   accum.mul(ws[16], p[8]);
 1693|    171|   accum.mul(ws[17], p[7]);
 1694|    171|   accum.mul(ws[18], p[6]);
 1695|    171|   accum.mul(ws[19], p[5]);
 1696|    171|   accum.mul(ws[20], p[4]);
 1697|    171|   accum.mul(ws[21], p[3]);
 1698|    171|   accum.mul(ws[22], p[2]);
 1699|    171|   accum.mul(ws[23], p[1]);
 1700|    171|   accum.add(z[24]);
 1701|    171|   ws[24] = accum.monty_step(p[0], p_dash);
 1702|    171|   accum.mul(ws[0], p[25]);
 1703|    171|   accum.mul(ws[1], p[24]);
 1704|    171|   accum.mul(ws[2], p[23]);
 1705|    171|   accum.mul(ws[3], p[22]);
 1706|    171|   accum.mul(ws[4], p[21]);
 1707|    171|   accum.mul(ws[5], p[20]);
 1708|    171|   accum.mul(ws[6], p[19]);
 1709|    171|   accum.mul(ws[7], p[18]);
 1710|    171|   accum.mul(ws[8], p[17]);
 1711|    171|   accum.mul(ws[9], p[16]);
 1712|    171|   accum.mul(ws[10], p[15]);
 1713|    171|   accum.mul(ws[11], p[14]);
 1714|    171|   accum.mul(ws[12], p[13]);
 1715|    171|   accum.mul(ws[13], p[12]);
 1716|    171|   accum.mul(ws[14], p[11]);
 1717|    171|   accum.mul(ws[15], p[10]);
 1718|    171|   accum.mul(ws[16], p[9]);
 1719|    171|   accum.mul(ws[17], p[8]);
 1720|    171|   accum.mul(ws[18], p[7]);
 1721|    171|   accum.mul(ws[19], p[6]);
 1722|    171|   accum.mul(ws[20], p[5]);
 1723|    171|   accum.mul(ws[21], p[4]);
 1724|    171|   accum.mul(ws[22], p[3]);
 1725|    171|   accum.mul(ws[23], p[2]);
 1726|    171|   accum.mul(ws[24], p[1]);
 1727|    171|   accum.add(z[25]);
 1728|    171|   ws[25] = accum.monty_step(p[0], p_dash);
 1729|    171|   accum.mul(ws[0], p[26]);
 1730|    171|   accum.mul(ws[1], p[25]);
 1731|    171|   accum.mul(ws[2], p[24]);
 1732|    171|   accum.mul(ws[3], p[23]);
 1733|    171|   accum.mul(ws[4], p[22]);
 1734|    171|   accum.mul(ws[5], p[21]);
 1735|    171|   accum.mul(ws[6], p[20]);
 1736|    171|   accum.mul(ws[7], p[19]);
 1737|    171|   accum.mul(ws[8], p[18]);
 1738|    171|   accum.mul(ws[9], p[17]);
 1739|    171|   accum.mul(ws[10], p[16]);
 1740|    171|   accum.mul(ws[11], p[15]);
 1741|    171|   accum.mul(ws[12], p[14]);
 1742|    171|   accum.mul(ws[13], p[13]);
 1743|    171|   accum.mul(ws[14], p[12]);
 1744|    171|   accum.mul(ws[15], p[11]);
 1745|    171|   accum.mul(ws[16], p[10]);
 1746|    171|   accum.mul(ws[17], p[9]);
 1747|    171|   accum.mul(ws[18], p[8]);
 1748|    171|   accum.mul(ws[19], p[7]);
 1749|    171|   accum.mul(ws[20], p[6]);
 1750|    171|   accum.mul(ws[21], p[5]);
 1751|    171|   accum.mul(ws[22], p[4]);
 1752|    171|   accum.mul(ws[23], p[3]);
 1753|    171|   accum.mul(ws[24], p[2]);
 1754|    171|   accum.mul(ws[25], p[1]);
 1755|    171|   accum.add(z[26]);
 1756|    171|   ws[26] = accum.monty_step(p[0], p_dash);
 1757|    171|   accum.mul(ws[0], p[27]);
 1758|    171|   accum.mul(ws[1], p[26]);
 1759|    171|   accum.mul(ws[2], p[25]);
 1760|    171|   accum.mul(ws[3], p[24]);
 1761|    171|   accum.mul(ws[4], p[23]);
 1762|    171|   accum.mul(ws[5], p[22]);
 1763|    171|   accum.mul(ws[6], p[21]);
 1764|    171|   accum.mul(ws[7], p[20]);
 1765|    171|   accum.mul(ws[8], p[19]);
 1766|    171|   accum.mul(ws[9], p[18]);
 1767|    171|   accum.mul(ws[10], p[17]);
 1768|    171|   accum.mul(ws[11], p[16]);
 1769|    171|   accum.mul(ws[12], p[15]);
 1770|    171|   accum.mul(ws[13], p[14]);
 1771|    171|   accum.mul(ws[14], p[13]);
 1772|    171|   accum.mul(ws[15], p[12]);
 1773|    171|   accum.mul(ws[16], p[11]);
 1774|    171|   accum.mul(ws[17], p[10]);
 1775|    171|   accum.mul(ws[18], p[9]);
 1776|    171|   accum.mul(ws[19], p[8]);
 1777|    171|   accum.mul(ws[20], p[7]);
 1778|    171|   accum.mul(ws[21], p[6]);
 1779|    171|   accum.mul(ws[22], p[5]);
 1780|    171|   accum.mul(ws[23], p[4]);
 1781|    171|   accum.mul(ws[24], p[3]);
 1782|    171|   accum.mul(ws[25], p[2]);
 1783|    171|   accum.mul(ws[26], p[1]);
 1784|    171|   accum.add(z[27]);
 1785|    171|   ws[27] = accum.monty_step(p[0], p_dash);
 1786|    171|   accum.mul(ws[0], p[28]);
 1787|    171|   accum.mul(ws[1], p[27]);
 1788|    171|   accum.mul(ws[2], p[26]);
 1789|    171|   accum.mul(ws[3], p[25]);
 1790|    171|   accum.mul(ws[4], p[24]);
 1791|    171|   accum.mul(ws[5], p[23]);
 1792|    171|   accum.mul(ws[6], p[22]);
 1793|    171|   accum.mul(ws[7], p[21]);
 1794|    171|   accum.mul(ws[8], p[20]);
 1795|    171|   accum.mul(ws[9], p[19]);
 1796|    171|   accum.mul(ws[10], p[18]);
 1797|    171|   accum.mul(ws[11], p[17]);
 1798|    171|   accum.mul(ws[12], p[16]);
 1799|    171|   accum.mul(ws[13], p[15]);
 1800|    171|   accum.mul(ws[14], p[14]);
 1801|    171|   accum.mul(ws[15], p[13]);
 1802|    171|   accum.mul(ws[16], p[12]);
 1803|    171|   accum.mul(ws[17], p[11]);
 1804|    171|   accum.mul(ws[18], p[10]);
 1805|    171|   accum.mul(ws[19], p[9]);
 1806|    171|   accum.mul(ws[20], p[8]);
 1807|    171|   accum.mul(ws[21], p[7]);
 1808|    171|   accum.mul(ws[22], p[6]);
 1809|    171|   accum.mul(ws[23], p[5]);
 1810|    171|   accum.mul(ws[24], p[4]);
 1811|    171|   accum.mul(ws[25], p[3]);
 1812|    171|   accum.mul(ws[26], p[2]);
 1813|    171|   accum.mul(ws[27], p[1]);
 1814|    171|   accum.add(z[28]);
 1815|    171|   ws[28] = accum.monty_step(p[0], p_dash);
 1816|    171|   accum.mul(ws[0], p[29]);
 1817|    171|   accum.mul(ws[1], p[28]);
 1818|    171|   accum.mul(ws[2], p[27]);
 1819|    171|   accum.mul(ws[3], p[26]);
 1820|    171|   accum.mul(ws[4], p[25]);
 1821|    171|   accum.mul(ws[5], p[24]);
 1822|    171|   accum.mul(ws[6], p[23]);
 1823|    171|   accum.mul(ws[7], p[22]);
 1824|    171|   accum.mul(ws[8], p[21]);
 1825|    171|   accum.mul(ws[9], p[20]);
 1826|    171|   accum.mul(ws[10], p[19]);
 1827|    171|   accum.mul(ws[11], p[18]);
 1828|    171|   accum.mul(ws[12], p[17]);
 1829|    171|   accum.mul(ws[13], p[16]);
 1830|    171|   accum.mul(ws[14], p[15]);
 1831|    171|   accum.mul(ws[15], p[14]);
 1832|    171|   accum.mul(ws[16], p[13]);
 1833|    171|   accum.mul(ws[17], p[12]);
 1834|    171|   accum.mul(ws[18], p[11]);
 1835|    171|   accum.mul(ws[19], p[10]);
 1836|    171|   accum.mul(ws[20], p[9]);
 1837|    171|   accum.mul(ws[21], p[8]);
 1838|    171|   accum.mul(ws[22], p[7]);
 1839|    171|   accum.mul(ws[23], p[6]);
 1840|    171|   accum.mul(ws[24], p[5]);
 1841|    171|   accum.mul(ws[25], p[4]);
 1842|    171|   accum.mul(ws[26], p[3]);
 1843|    171|   accum.mul(ws[27], p[2]);
 1844|    171|   accum.mul(ws[28], p[1]);
 1845|    171|   accum.add(z[29]);
 1846|    171|   ws[29] = accum.monty_step(p[0], p_dash);
 1847|    171|   accum.mul(ws[0], p[30]);
 1848|    171|   accum.mul(ws[1], p[29]);
 1849|    171|   accum.mul(ws[2], p[28]);
 1850|    171|   accum.mul(ws[3], p[27]);
 1851|    171|   accum.mul(ws[4], p[26]);
 1852|    171|   accum.mul(ws[5], p[25]);
 1853|    171|   accum.mul(ws[6], p[24]);
 1854|    171|   accum.mul(ws[7], p[23]);
 1855|    171|   accum.mul(ws[8], p[22]);
 1856|    171|   accum.mul(ws[9], p[21]);
 1857|    171|   accum.mul(ws[10], p[20]);
 1858|    171|   accum.mul(ws[11], p[19]);
 1859|    171|   accum.mul(ws[12], p[18]);
 1860|    171|   accum.mul(ws[13], p[17]);
 1861|    171|   accum.mul(ws[14], p[16]);
 1862|    171|   accum.mul(ws[15], p[15]);
 1863|    171|   accum.mul(ws[16], p[14]);
 1864|    171|   accum.mul(ws[17], p[13]);
 1865|    171|   accum.mul(ws[18], p[12]);
 1866|    171|   accum.mul(ws[19], p[11]);
 1867|    171|   accum.mul(ws[20], p[10]);
 1868|    171|   accum.mul(ws[21], p[9]);
 1869|    171|   accum.mul(ws[22], p[8]);
 1870|    171|   accum.mul(ws[23], p[7]);
 1871|    171|   accum.mul(ws[24], p[6]);
 1872|    171|   accum.mul(ws[25], p[5]);
 1873|    171|   accum.mul(ws[26], p[4]);
 1874|    171|   accum.mul(ws[27], p[3]);
 1875|    171|   accum.mul(ws[28], p[2]);
 1876|    171|   accum.mul(ws[29], p[1]);
 1877|    171|   accum.add(z[30]);
 1878|    171|   ws[30] = accum.monty_step(p[0], p_dash);
 1879|    171|   accum.mul(ws[0], p[31]);
 1880|    171|   accum.mul(ws[1], p[30]);
 1881|    171|   accum.mul(ws[2], p[29]);
 1882|    171|   accum.mul(ws[3], p[28]);
 1883|    171|   accum.mul(ws[4], p[27]);
 1884|    171|   accum.mul(ws[5], p[26]);
 1885|    171|   accum.mul(ws[6], p[25]);
 1886|    171|   accum.mul(ws[7], p[24]);
 1887|    171|   accum.mul(ws[8], p[23]);
 1888|    171|   accum.mul(ws[9], p[22]);
 1889|    171|   accum.mul(ws[10], p[21]);
 1890|    171|   accum.mul(ws[11], p[20]);
 1891|    171|   accum.mul(ws[12], p[19]);
 1892|    171|   accum.mul(ws[13], p[18]);
 1893|    171|   accum.mul(ws[14], p[17]);
 1894|    171|   accum.mul(ws[15], p[16]);
 1895|    171|   accum.mul(ws[16], p[15]);
 1896|    171|   accum.mul(ws[17], p[14]);
 1897|    171|   accum.mul(ws[18], p[13]);
 1898|    171|   accum.mul(ws[19], p[12]);
 1899|    171|   accum.mul(ws[20], p[11]);
 1900|    171|   accum.mul(ws[21], p[10]);
 1901|    171|   accum.mul(ws[22], p[9]);
 1902|    171|   accum.mul(ws[23], p[8]);
 1903|    171|   accum.mul(ws[24], p[7]);
 1904|    171|   accum.mul(ws[25], p[6]);
 1905|    171|   accum.mul(ws[26], p[5]);
 1906|    171|   accum.mul(ws[27], p[4]);
 1907|    171|   accum.mul(ws[28], p[3]);
 1908|    171|   accum.mul(ws[29], p[2]);
 1909|    171|   accum.mul(ws[30], p[1]);
 1910|    171|   accum.add(z[31]);
 1911|    171|   ws[31] = accum.monty_step(p[0], p_dash);
 1912|    171|   accum.mul(ws[1], p[31]);
 1913|    171|   accum.mul(ws[2], p[30]);
 1914|    171|   accum.mul(ws[3], p[29]);
 1915|    171|   accum.mul(ws[4], p[28]);
 1916|    171|   accum.mul(ws[5], p[27]);
 1917|    171|   accum.mul(ws[6], p[26]);
 1918|    171|   accum.mul(ws[7], p[25]);
 1919|    171|   accum.mul(ws[8], p[24]);
 1920|    171|   accum.mul(ws[9], p[23]);
 1921|    171|   accum.mul(ws[10], p[22]);
 1922|    171|   accum.mul(ws[11], p[21]);
 1923|    171|   accum.mul(ws[12], p[20]);
 1924|    171|   accum.mul(ws[13], p[19]);
 1925|    171|   accum.mul(ws[14], p[18]);
 1926|    171|   accum.mul(ws[15], p[17]);
 1927|    171|   accum.mul(ws[16], p[16]);
 1928|    171|   accum.mul(ws[17], p[15]);
 1929|    171|   accum.mul(ws[18], p[14]);
 1930|    171|   accum.mul(ws[19], p[13]);
 1931|    171|   accum.mul(ws[20], p[12]);
 1932|    171|   accum.mul(ws[21], p[11]);
 1933|    171|   accum.mul(ws[22], p[10]);
 1934|    171|   accum.mul(ws[23], p[9]);
 1935|    171|   accum.mul(ws[24], p[8]);
 1936|    171|   accum.mul(ws[25], p[7]);
 1937|    171|   accum.mul(ws[26], p[6]);
 1938|    171|   accum.mul(ws[27], p[5]);
 1939|    171|   accum.mul(ws[28], p[4]);
 1940|    171|   accum.mul(ws[29], p[3]);
 1941|    171|   accum.mul(ws[30], p[2]);
 1942|    171|   accum.mul(ws[31], p[1]);
 1943|    171|   accum.add(z[32]);
 1944|    171|   ws[0] = accum.extract();
 1945|    171|   accum.mul(ws[2], p[31]);
 1946|    171|   accum.mul(ws[3], p[30]);
 1947|    171|   accum.mul(ws[4], p[29]);
 1948|    171|   accum.mul(ws[5], p[28]);
 1949|    171|   accum.mul(ws[6], p[27]);
 1950|    171|   accum.mul(ws[7], p[26]);
 1951|    171|   accum.mul(ws[8], p[25]);
 1952|    171|   accum.mul(ws[9], p[24]);
 1953|    171|   accum.mul(ws[10], p[23]);
 1954|    171|   accum.mul(ws[11], p[22]);
 1955|    171|   accum.mul(ws[12], p[21]);
 1956|    171|   accum.mul(ws[13], p[20]);
 1957|    171|   accum.mul(ws[14], p[19]);
 1958|    171|   accum.mul(ws[15], p[18]);
 1959|    171|   accum.mul(ws[16], p[17]);
 1960|    171|   accum.mul(ws[17], p[16]);
 1961|    171|   accum.mul(ws[18], p[15]);
 1962|    171|   accum.mul(ws[19], p[14]);
 1963|    171|   accum.mul(ws[20], p[13]);
 1964|    171|   accum.mul(ws[21], p[12]);
 1965|    171|   accum.mul(ws[22], p[11]);
 1966|    171|   accum.mul(ws[23], p[10]);
 1967|    171|   accum.mul(ws[24], p[9]);
 1968|    171|   accum.mul(ws[25], p[8]);
 1969|    171|   accum.mul(ws[26], p[7]);
 1970|    171|   accum.mul(ws[27], p[6]);
 1971|    171|   accum.mul(ws[28], p[5]);
 1972|    171|   accum.mul(ws[29], p[4]);
 1973|    171|   accum.mul(ws[30], p[3]);
 1974|    171|   accum.mul(ws[31], p[2]);
 1975|    171|   accum.add(z[33]);
 1976|    171|   ws[1] = accum.extract();
 1977|    171|   accum.mul(ws[3], p[31]);
 1978|    171|   accum.mul(ws[4], p[30]);
 1979|    171|   accum.mul(ws[5], p[29]);
 1980|    171|   accum.mul(ws[6], p[28]);
 1981|    171|   accum.mul(ws[7], p[27]);
 1982|    171|   accum.mul(ws[8], p[26]);
 1983|    171|   accum.mul(ws[9], p[25]);
 1984|    171|   accum.mul(ws[10], p[24]);
 1985|    171|   accum.mul(ws[11], p[23]);
 1986|    171|   accum.mul(ws[12], p[22]);
 1987|    171|   accum.mul(ws[13], p[21]);
 1988|    171|   accum.mul(ws[14], p[20]);
 1989|    171|   accum.mul(ws[15], p[19]);
 1990|    171|   accum.mul(ws[16], p[18]);
 1991|    171|   accum.mul(ws[17], p[17]);
 1992|    171|   accum.mul(ws[18], p[16]);
 1993|    171|   accum.mul(ws[19], p[15]);
 1994|    171|   accum.mul(ws[20], p[14]);
 1995|    171|   accum.mul(ws[21], p[13]);
 1996|    171|   accum.mul(ws[22], p[12]);
 1997|    171|   accum.mul(ws[23], p[11]);
 1998|    171|   accum.mul(ws[24], p[10]);
 1999|    171|   accum.mul(ws[25], p[9]);
 2000|    171|   accum.mul(ws[26], p[8]);
 2001|    171|   accum.mul(ws[27], p[7]);
 2002|    171|   accum.mul(ws[28], p[6]);
 2003|    171|   accum.mul(ws[29], p[5]);
 2004|    171|   accum.mul(ws[30], p[4]);
 2005|    171|   accum.mul(ws[31], p[3]);
 2006|    171|   accum.add(z[34]);
 2007|    171|   ws[2] = accum.extract();
 2008|    171|   accum.mul(ws[4], p[31]);
 2009|    171|   accum.mul(ws[5], p[30]);
 2010|    171|   accum.mul(ws[6], p[29]);
 2011|    171|   accum.mul(ws[7], p[28]);
 2012|    171|   accum.mul(ws[8], p[27]);
 2013|    171|   accum.mul(ws[9], p[26]);
 2014|    171|   accum.mul(ws[10], p[25]);
 2015|    171|   accum.mul(ws[11], p[24]);
 2016|    171|   accum.mul(ws[12], p[23]);
 2017|    171|   accum.mul(ws[13], p[22]);
 2018|    171|   accum.mul(ws[14], p[21]);
 2019|    171|   accum.mul(ws[15], p[20]);
 2020|    171|   accum.mul(ws[16], p[19]);
 2021|    171|   accum.mul(ws[17], p[18]);
 2022|    171|   accum.mul(ws[18], p[17]);
 2023|    171|   accum.mul(ws[19], p[16]);
 2024|    171|   accum.mul(ws[20], p[15]);
 2025|    171|   accum.mul(ws[21], p[14]);
 2026|    171|   accum.mul(ws[22], p[13]);
 2027|    171|   accum.mul(ws[23], p[12]);
 2028|    171|   accum.mul(ws[24], p[11]);
 2029|    171|   accum.mul(ws[25], p[10]);
 2030|    171|   accum.mul(ws[26], p[9]);
 2031|    171|   accum.mul(ws[27], p[8]);
 2032|    171|   accum.mul(ws[28], p[7]);
 2033|    171|   accum.mul(ws[29], p[6]);
 2034|    171|   accum.mul(ws[30], p[5]);
 2035|    171|   accum.mul(ws[31], p[4]);
 2036|    171|   accum.add(z[35]);
 2037|    171|   ws[3] = accum.extract();
 2038|    171|   accum.mul(ws[5], p[31]);
 2039|    171|   accum.mul(ws[6], p[30]);
 2040|    171|   accum.mul(ws[7], p[29]);
 2041|    171|   accum.mul(ws[8], p[28]);
 2042|    171|   accum.mul(ws[9], p[27]);
 2043|    171|   accum.mul(ws[10], p[26]);
 2044|    171|   accum.mul(ws[11], p[25]);
 2045|    171|   accum.mul(ws[12], p[24]);
 2046|    171|   accum.mul(ws[13], p[23]);
 2047|    171|   accum.mul(ws[14], p[22]);
 2048|    171|   accum.mul(ws[15], p[21]);
 2049|    171|   accum.mul(ws[16], p[20]);
 2050|    171|   accum.mul(ws[17], p[19]);
 2051|    171|   accum.mul(ws[18], p[18]);
 2052|    171|   accum.mul(ws[19], p[17]);
 2053|    171|   accum.mul(ws[20], p[16]);
 2054|    171|   accum.mul(ws[21], p[15]);
 2055|    171|   accum.mul(ws[22], p[14]);
 2056|    171|   accum.mul(ws[23], p[13]);
 2057|    171|   accum.mul(ws[24], p[12]);
 2058|    171|   accum.mul(ws[25], p[11]);
 2059|    171|   accum.mul(ws[26], p[10]);
 2060|    171|   accum.mul(ws[27], p[9]);
 2061|    171|   accum.mul(ws[28], p[8]);
 2062|    171|   accum.mul(ws[29], p[7]);
 2063|    171|   accum.mul(ws[30], p[6]);
 2064|    171|   accum.mul(ws[31], p[5]);
 2065|    171|   accum.add(z[36]);
 2066|    171|   ws[4] = accum.extract();
 2067|    171|   accum.mul(ws[6], p[31]);
 2068|    171|   accum.mul(ws[7], p[30]);
 2069|    171|   accum.mul(ws[8], p[29]);
 2070|    171|   accum.mul(ws[9], p[28]);
 2071|    171|   accum.mul(ws[10], p[27]);
 2072|    171|   accum.mul(ws[11], p[26]);
 2073|    171|   accum.mul(ws[12], p[25]);
 2074|    171|   accum.mul(ws[13], p[24]);
 2075|    171|   accum.mul(ws[14], p[23]);
 2076|    171|   accum.mul(ws[15], p[22]);
 2077|    171|   accum.mul(ws[16], p[21]);
 2078|    171|   accum.mul(ws[17], p[20]);
 2079|    171|   accum.mul(ws[18], p[19]);
 2080|    171|   accum.mul(ws[19], p[18]);
 2081|    171|   accum.mul(ws[20], p[17]);
 2082|    171|   accum.mul(ws[21], p[16]);
 2083|    171|   accum.mul(ws[22], p[15]);
 2084|    171|   accum.mul(ws[23], p[14]);
 2085|    171|   accum.mul(ws[24], p[13]);
 2086|    171|   accum.mul(ws[25], p[12]);
 2087|    171|   accum.mul(ws[26], p[11]);
 2088|    171|   accum.mul(ws[27], p[10]);
 2089|    171|   accum.mul(ws[28], p[9]);
 2090|    171|   accum.mul(ws[29], p[8]);
 2091|    171|   accum.mul(ws[30], p[7]);
 2092|    171|   accum.mul(ws[31], p[6]);
 2093|    171|   accum.add(z[37]);
 2094|    171|   ws[5] = accum.extract();
 2095|    171|   accum.mul(ws[7], p[31]);
 2096|    171|   accum.mul(ws[8], p[30]);
 2097|    171|   accum.mul(ws[9], p[29]);
 2098|    171|   accum.mul(ws[10], p[28]);
 2099|    171|   accum.mul(ws[11], p[27]);
 2100|    171|   accum.mul(ws[12], p[26]);
 2101|    171|   accum.mul(ws[13], p[25]);
 2102|    171|   accum.mul(ws[14], p[24]);
 2103|    171|   accum.mul(ws[15], p[23]);
 2104|    171|   accum.mul(ws[16], p[22]);
 2105|    171|   accum.mul(ws[17], p[21]);
 2106|    171|   accum.mul(ws[18], p[20]);
 2107|    171|   accum.mul(ws[19], p[19]);
 2108|    171|   accum.mul(ws[20], p[18]);
 2109|    171|   accum.mul(ws[21], p[17]);
 2110|    171|   accum.mul(ws[22], p[16]);
 2111|    171|   accum.mul(ws[23], p[15]);
 2112|    171|   accum.mul(ws[24], p[14]);
 2113|    171|   accum.mul(ws[25], p[13]);
 2114|    171|   accum.mul(ws[26], p[12]);
 2115|    171|   accum.mul(ws[27], p[11]);
 2116|    171|   accum.mul(ws[28], p[10]);
 2117|    171|   accum.mul(ws[29], p[9]);
 2118|    171|   accum.mul(ws[30], p[8]);
 2119|    171|   accum.mul(ws[31], p[7]);
 2120|    171|   accum.add(z[38]);
 2121|    171|   ws[6] = accum.extract();
 2122|    171|   accum.mul(ws[8], p[31]);
 2123|    171|   accum.mul(ws[9], p[30]);
 2124|    171|   accum.mul(ws[10], p[29]);
 2125|    171|   accum.mul(ws[11], p[28]);
 2126|    171|   accum.mul(ws[12], p[27]);
 2127|    171|   accum.mul(ws[13], p[26]);
 2128|    171|   accum.mul(ws[14], p[25]);
 2129|    171|   accum.mul(ws[15], p[24]);
 2130|    171|   accum.mul(ws[16], p[23]);
 2131|    171|   accum.mul(ws[17], p[22]);
 2132|    171|   accum.mul(ws[18], p[21]);
 2133|    171|   accum.mul(ws[19], p[20]);
 2134|    171|   accum.mul(ws[20], p[19]);
 2135|    171|   accum.mul(ws[21], p[18]);
 2136|    171|   accum.mul(ws[22], p[17]);
 2137|    171|   accum.mul(ws[23], p[16]);
 2138|    171|   accum.mul(ws[24], p[15]);
 2139|    171|   accum.mul(ws[25], p[14]);
 2140|    171|   accum.mul(ws[26], p[13]);
 2141|    171|   accum.mul(ws[27], p[12]);
 2142|    171|   accum.mul(ws[28], p[11]);
 2143|    171|   accum.mul(ws[29], p[10]);
 2144|    171|   accum.mul(ws[30], p[9]);
 2145|    171|   accum.mul(ws[31], p[8]);
 2146|    171|   accum.add(z[39]);
 2147|    171|   ws[7] = accum.extract();
 2148|    171|   accum.mul(ws[9], p[31]);
 2149|    171|   accum.mul(ws[10], p[30]);
 2150|    171|   accum.mul(ws[11], p[29]);
 2151|    171|   accum.mul(ws[12], p[28]);
 2152|    171|   accum.mul(ws[13], p[27]);
 2153|    171|   accum.mul(ws[14], p[26]);
 2154|    171|   accum.mul(ws[15], p[25]);
 2155|    171|   accum.mul(ws[16], p[24]);
 2156|    171|   accum.mul(ws[17], p[23]);
 2157|    171|   accum.mul(ws[18], p[22]);
 2158|    171|   accum.mul(ws[19], p[21]);
 2159|    171|   accum.mul(ws[20], p[20]);
 2160|    171|   accum.mul(ws[21], p[19]);
 2161|    171|   accum.mul(ws[22], p[18]);
 2162|    171|   accum.mul(ws[23], p[17]);
 2163|    171|   accum.mul(ws[24], p[16]);
 2164|    171|   accum.mul(ws[25], p[15]);
 2165|    171|   accum.mul(ws[26], p[14]);
 2166|    171|   accum.mul(ws[27], p[13]);
 2167|    171|   accum.mul(ws[28], p[12]);
 2168|    171|   accum.mul(ws[29], p[11]);
 2169|    171|   accum.mul(ws[30], p[10]);
 2170|    171|   accum.mul(ws[31], p[9]);
 2171|    171|   accum.add(z[40]);
 2172|    171|   ws[8] = accum.extract();
 2173|    171|   accum.mul(ws[10], p[31]);
 2174|    171|   accum.mul(ws[11], p[30]);
 2175|    171|   accum.mul(ws[12], p[29]);
 2176|    171|   accum.mul(ws[13], p[28]);
 2177|    171|   accum.mul(ws[14], p[27]);
 2178|    171|   accum.mul(ws[15], p[26]);
 2179|    171|   accum.mul(ws[16], p[25]);
 2180|    171|   accum.mul(ws[17], p[24]);
 2181|    171|   accum.mul(ws[18], p[23]);
 2182|    171|   accum.mul(ws[19], p[22]);
 2183|    171|   accum.mul(ws[20], p[21]);
 2184|    171|   accum.mul(ws[21], p[20]);
 2185|    171|   accum.mul(ws[22], p[19]);
 2186|    171|   accum.mul(ws[23], p[18]);
 2187|    171|   accum.mul(ws[24], p[17]);
 2188|    171|   accum.mul(ws[25], p[16]);
 2189|    171|   accum.mul(ws[26], p[15]);
 2190|    171|   accum.mul(ws[27], p[14]);
 2191|    171|   accum.mul(ws[28], p[13]);
 2192|    171|   accum.mul(ws[29], p[12]);
 2193|    171|   accum.mul(ws[30], p[11]);
 2194|    171|   accum.mul(ws[31], p[10]);
 2195|    171|   accum.add(z[41]);
 2196|    171|   ws[9] = accum.extract();
 2197|    171|   accum.mul(ws[11], p[31]);
 2198|    171|   accum.mul(ws[12], p[30]);
 2199|    171|   accum.mul(ws[13], p[29]);
 2200|    171|   accum.mul(ws[14], p[28]);
 2201|    171|   accum.mul(ws[15], p[27]);
 2202|    171|   accum.mul(ws[16], p[26]);
 2203|    171|   accum.mul(ws[17], p[25]);
 2204|    171|   accum.mul(ws[18], p[24]);
 2205|    171|   accum.mul(ws[19], p[23]);
 2206|    171|   accum.mul(ws[20], p[22]);
 2207|    171|   accum.mul(ws[21], p[21]);
 2208|    171|   accum.mul(ws[22], p[20]);
 2209|    171|   accum.mul(ws[23], p[19]);
 2210|    171|   accum.mul(ws[24], p[18]);
 2211|    171|   accum.mul(ws[25], p[17]);
 2212|    171|   accum.mul(ws[26], p[16]);
 2213|    171|   accum.mul(ws[27], p[15]);
 2214|    171|   accum.mul(ws[28], p[14]);
 2215|    171|   accum.mul(ws[29], p[13]);
 2216|    171|   accum.mul(ws[30], p[12]);
 2217|    171|   accum.mul(ws[31], p[11]);
 2218|    171|   accum.add(z[42]);
 2219|    171|   ws[10] = accum.extract();
 2220|    171|   accum.mul(ws[12], p[31]);
 2221|    171|   accum.mul(ws[13], p[30]);
 2222|    171|   accum.mul(ws[14], p[29]);
 2223|    171|   accum.mul(ws[15], p[28]);
 2224|    171|   accum.mul(ws[16], p[27]);
 2225|    171|   accum.mul(ws[17], p[26]);
 2226|    171|   accum.mul(ws[18], p[25]);
 2227|    171|   accum.mul(ws[19], p[24]);
 2228|    171|   accum.mul(ws[20], p[23]);
 2229|    171|   accum.mul(ws[21], p[22]);
 2230|    171|   accum.mul(ws[22], p[21]);
 2231|    171|   accum.mul(ws[23], p[20]);
 2232|    171|   accum.mul(ws[24], p[19]);
 2233|    171|   accum.mul(ws[25], p[18]);
 2234|    171|   accum.mul(ws[26], p[17]);
 2235|    171|   accum.mul(ws[27], p[16]);
 2236|    171|   accum.mul(ws[28], p[15]);
 2237|    171|   accum.mul(ws[29], p[14]);
 2238|    171|   accum.mul(ws[30], p[13]);
 2239|    171|   accum.mul(ws[31], p[12]);
 2240|    171|   accum.add(z[43]);
 2241|    171|   ws[11] = accum.extract();
 2242|    171|   accum.mul(ws[13], p[31]);
 2243|    171|   accum.mul(ws[14], p[30]);
 2244|    171|   accum.mul(ws[15], p[29]);
 2245|    171|   accum.mul(ws[16], p[28]);
 2246|    171|   accum.mul(ws[17], p[27]);
 2247|    171|   accum.mul(ws[18], p[26]);
 2248|    171|   accum.mul(ws[19], p[25]);
 2249|    171|   accum.mul(ws[20], p[24]);
 2250|    171|   accum.mul(ws[21], p[23]);
 2251|    171|   accum.mul(ws[22], p[22]);
 2252|    171|   accum.mul(ws[23], p[21]);
 2253|    171|   accum.mul(ws[24], p[20]);
 2254|    171|   accum.mul(ws[25], p[19]);
 2255|    171|   accum.mul(ws[26], p[18]);
 2256|    171|   accum.mul(ws[27], p[17]);
 2257|    171|   accum.mul(ws[28], p[16]);
 2258|    171|   accum.mul(ws[29], p[15]);
 2259|    171|   accum.mul(ws[30], p[14]);
 2260|    171|   accum.mul(ws[31], p[13]);
 2261|    171|   accum.add(z[44]);
 2262|    171|   ws[12] = accum.extract();
 2263|    171|   accum.mul(ws[14], p[31]);
 2264|    171|   accum.mul(ws[15], p[30]);
 2265|    171|   accum.mul(ws[16], p[29]);
 2266|    171|   accum.mul(ws[17], p[28]);
 2267|    171|   accum.mul(ws[18], p[27]);
 2268|    171|   accum.mul(ws[19], p[26]);
 2269|    171|   accum.mul(ws[20], p[25]);
 2270|    171|   accum.mul(ws[21], p[24]);
 2271|    171|   accum.mul(ws[22], p[23]);
 2272|    171|   accum.mul(ws[23], p[22]);
 2273|    171|   accum.mul(ws[24], p[21]);
 2274|    171|   accum.mul(ws[25], p[20]);
 2275|    171|   accum.mul(ws[26], p[19]);
 2276|    171|   accum.mul(ws[27], p[18]);
 2277|    171|   accum.mul(ws[28], p[17]);
 2278|    171|   accum.mul(ws[29], p[16]);
 2279|    171|   accum.mul(ws[30], p[15]);
 2280|    171|   accum.mul(ws[31], p[14]);
 2281|    171|   accum.add(z[45]);
 2282|    171|   ws[13] = accum.extract();
 2283|    171|   accum.mul(ws[15], p[31]);
 2284|    171|   accum.mul(ws[16], p[30]);
 2285|    171|   accum.mul(ws[17], p[29]);
 2286|    171|   accum.mul(ws[18], p[28]);
 2287|    171|   accum.mul(ws[19], p[27]);
 2288|    171|   accum.mul(ws[20], p[26]);
 2289|    171|   accum.mul(ws[21], p[25]);
 2290|    171|   accum.mul(ws[22], p[24]);
 2291|    171|   accum.mul(ws[23], p[23]);
 2292|    171|   accum.mul(ws[24], p[22]);
 2293|    171|   accum.mul(ws[25], p[21]);
 2294|    171|   accum.mul(ws[26], p[20]);
 2295|    171|   accum.mul(ws[27], p[19]);
 2296|    171|   accum.mul(ws[28], p[18]);
 2297|    171|   accum.mul(ws[29], p[17]);
 2298|    171|   accum.mul(ws[30], p[16]);
 2299|    171|   accum.mul(ws[31], p[15]);
 2300|    171|   accum.add(z[46]);
 2301|    171|   ws[14] = accum.extract();
 2302|    171|   accum.mul(ws[16], p[31]);
 2303|    171|   accum.mul(ws[17], p[30]);
 2304|    171|   accum.mul(ws[18], p[29]);
 2305|    171|   accum.mul(ws[19], p[28]);
 2306|    171|   accum.mul(ws[20], p[27]);
 2307|    171|   accum.mul(ws[21], p[26]);
 2308|    171|   accum.mul(ws[22], p[25]);
 2309|    171|   accum.mul(ws[23], p[24]);
 2310|    171|   accum.mul(ws[24], p[23]);
 2311|    171|   accum.mul(ws[25], p[22]);
 2312|    171|   accum.mul(ws[26], p[21]);
 2313|    171|   accum.mul(ws[27], p[20]);
 2314|    171|   accum.mul(ws[28], p[19]);
 2315|    171|   accum.mul(ws[29], p[18]);
 2316|    171|   accum.mul(ws[30], p[17]);
 2317|    171|   accum.mul(ws[31], p[16]);
 2318|    171|   accum.add(z[47]);
 2319|    171|   ws[15] = accum.extract();
 2320|    171|   accum.mul(ws[17], p[31]);
 2321|    171|   accum.mul(ws[18], p[30]);
 2322|    171|   accum.mul(ws[19], p[29]);
 2323|    171|   accum.mul(ws[20], p[28]);
 2324|    171|   accum.mul(ws[21], p[27]);
 2325|    171|   accum.mul(ws[22], p[26]);
 2326|    171|   accum.mul(ws[23], p[25]);
 2327|    171|   accum.mul(ws[24], p[24]);
 2328|    171|   accum.mul(ws[25], p[23]);
 2329|    171|   accum.mul(ws[26], p[22]);
 2330|    171|   accum.mul(ws[27], p[21]);
 2331|    171|   accum.mul(ws[28], p[20]);
 2332|    171|   accum.mul(ws[29], p[19]);
 2333|    171|   accum.mul(ws[30], p[18]);
 2334|    171|   accum.mul(ws[31], p[17]);
 2335|    171|   accum.add(z[48]);
 2336|    171|   ws[16] = accum.extract();
 2337|    171|   accum.mul(ws[18], p[31]);
 2338|    171|   accum.mul(ws[19], p[30]);
 2339|    171|   accum.mul(ws[20], p[29]);
 2340|    171|   accum.mul(ws[21], p[28]);
 2341|    171|   accum.mul(ws[22], p[27]);
 2342|    171|   accum.mul(ws[23], p[26]);
 2343|    171|   accum.mul(ws[24], p[25]);
 2344|    171|   accum.mul(ws[25], p[24]);
 2345|    171|   accum.mul(ws[26], p[23]);
 2346|    171|   accum.mul(ws[27], p[22]);
 2347|    171|   accum.mul(ws[28], p[21]);
 2348|    171|   accum.mul(ws[29], p[20]);
 2349|    171|   accum.mul(ws[30], p[19]);
 2350|    171|   accum.mul(ws[31], p[18]);
 2351|    171|   accum.add(z[49]);
 2352|    171|   ws[17] = accum.extract();
 2353|    171|   accum.mul(ws[19], p[31]);
 2354|    171|   accum.mul(ws[20], p[30]);
 2355|    171|   accum.mul(ws[21], p[29]);
 2356|    171|   accum.mul(ws[22], p[28]);
 2357|    171|   accum.mul(ws[23], p[27]);
 2358|    171|   accum.mul(ws[24], p[26]);
 2359|    171|   accum.mul(ws[25], p[25]);
 2360|    171|   accum.mul(ws[26], p[24]);
 2361|    171|   accum.mul(ws[27], p[23]);
 2362|    171|   accum.mul(ws[28], p[22]);
 2363|    171|   accum.mul(ws[29], p[21]);
 2364|    171|   accum.mul(ws[30], p[20]);
 2365|    171|   accum.mul(ws[31], p[19]);
 2366|    171|   accum.add(z[50]);
 2367|    171|   ws[18] = accum.extract();
 2368|    171|   accum.mul(ws[20], p[31]);
 2369|    171|   accum.mul(ws[21], p[30]);
 2370|    171|   accum.mul(ws[22], p[29]);
 2371|    171|   accum.mul(ws[23], p[28]);
 2372|    171|   accum.mul(ws[24], p[27]);
 2373|    171|   accum.mul(ws[25], p[26]);
 2374|    171|   accum.mul(ws[26], p[25]);
 2375|    171|   accum.mul(ws[27], p[24]);
 2376|    171|   accum.mul(ws[28], p[23]);
 2377|    171|   accum.mul(ws[29], p[22]);
 2378|    171|   accum.mul(ws[30], p[21]);
 2379|    171|   accum.mul(ws[31], p[20]);
 2380|    171|   accum.add(z[51]);
 2381|    171|   ws[19] = accum.extract();
 2382|    171|   accum.mul(ws[21], p[31]);
 2383|    171|   accum.mul(ws[22], p[30]);
 2384|    171|   accum.mul(ws[23], p[29]);
 2385|    171|   accum.mul(ws[24], p[28]);
 2386|    171|   accum.mul(ws[25], p[27]);
 2387|    171|   accum.mul(ws[26], p[26]);
 2388|    171|   accum.mul(ws[27], p[25]);
 2389|    171|   accum.mul(ws[28], p[24]);
 2390|    171|   accum.mul(ws[29], p[23]);
 2391|    171|   accum.mul(ws[30], p[22]);
 2392|    171|   accum.mul(ws[31], p[21]);
 2393|    171|   accum.add(z[52]);
 2394|    171|   ws[20] = accum.extract();
 2395|    171|   accum.mul(ws[22], p[31]);
 2396|    171|   accum.mul(ws[23], p[30]);
 2397|    171|   accum.mul(ws[24], p[29]);
 2398|    171|   accum.mul(ws[25], p[28]);
 2399|    171|   accum.mul(ws[26], p[27]);
 2400|    171|   accum.mul(ws[27], p[26]);
 2401|    171|   accum.mul(ws[28], p[25]);
 2402|    171|   accum.mul(ws[29], p[24]);
 2403|    171|   accum.mul(ws[30], p[23]);
 2404|    171|   accum.mul(ws[31], p[22]);
 2405|    171|   accum.add(z[53]);
 2406|    171|   ws[21] = accum.extract();
 2407|    171|   accum.mul(ws[23], p[31]);
 2408|    171|   accum.mul(ws[24], p[30]);
 2409|    171|   accum.mul(ws[25], p[29]);
 2410|    171|   accum.mul(ws[26], p[28]);
 2411|    171|   accum.mul(ws[27], p[27]);
 2412|    171|   accum.mul(ws[28], p[26]);
 2413|    171|   accum.mul(ws[29], p[25]);
 2414|    171|   accum.mul(ws[30], p[24]);
 2415|    171|   accum.mul(ws[31], p[23]);
 2416|    171|   accum.add(z[54]);
 2417|    171|   ws[22] = accum.extract();
 2418|    171|   accum.mul(ws[24], p[31]);
 2419|    171|   accum.mul(ws[25], p[30]);
 2420|    171|   accum.mul(ws[26], p[29]);
 2421|    171|   accum.mul(ws[27], p[28]);
 2422|    171|   accum.mul(ws[28], p[27]);
 2423|    171|   accum.mul(ws[29], p[26]);
 2424|    171|   accum.mul(ws[30], p[25]);
 2425|    171|   accum.mul(ws[31], p[24]);
 2426|    171|   accum.add(z[55]);
 2427|    171|   ws[23] = accum.extract();
 2428|    171|   accum.mul(ws[25], p[31]);
 2429|    171|   accum.mul(ws[26], p[30]);
 2430|    171|   accum.mul(ws[27], p[29]);
 2431|    171|   accum.mul(ws[28], p[28]);
 2432|    171|   accum.mul(ws[29], p[27]);
 2433|    171|   accum.mul(ws[30], p[26]);
 2434|    171|   accum.mul(ws[31], p[25]);
 2435|    171|   accum.add(z[56]);
 2436|    171|   ws[24] = accum.extract();
 2437|    171|   accum.mul(ws[26], p[31]);
 2438|    171|   accum.mul(ws[27], p[30]);
 2439|    171|   accum.mul(ws[28], p[29]);
 2440|    171|   accum.mul(ws[29], p[28]);
 2441|    171|   accum.mul(ws[30], p[27]);
 2442|    171|   accum.mul(ws[31], p[26]);
 2443|    171|   accum.add(z[57]);
 2444|    171|   ws[25] = accum.extract();
 2445|    171|   accum.mul(ws[27], p[31]);
 2446|    171|   accum.mul(ws[28], p[30]);
 2447|    171|   accum.mul(ws[29], p[29]);
 2448|    171|   accum.mul(ws[30], p[28]);
 2449|    171|   accum.mul(ws[31], p[27]);
 2450|    171|   accum.add(z[58]);
 2451|    171|   ws[26] = accum.extract();
 2452|    171|   accum.mul(ws[28], p[31]);
 2453|    171|   accum.mul(ws[29], p[30]);
 2454|    171|   accum.mul(ws[30], p[29]);
 2455|    171|   accum.mul(ws[31], p[28]);
 2456|    171|   accum.add(z[59]);
 2457|    171|   ws[27] = accum.extract();
 2458|    171|   accum.mul(ws[29], p[31]);
 2459|    171|   accum.mul(ws[30], p[30]);
 2460|    171|   accum.mul(ws[31], p[29]);
 2461|    171|   accum.add(z[60]);
 2462|    171|   ws[28] = accum.extract();
 2463|    171|   accum.mul(ws[30], p[31]);
 2464|    171|   accum.mul(ws[31], p[30]);
 2465|    171|   accum.add(z[61]);
 2466|    171|   ws[29] = accum.extract();
 2467|    171|   accum.mul(ws[31], p[31]);
 2468|    171|   accum.add(z[62]);
 2469|    171|   ws[30] = accum.extract();
 2470|    171|   accum.add(z[63]);
 2471|    171|   ws[31] = accum.extract();
 2472|    171|   const word w1 = accum.extract();
 2473|    171|   bigint_monty_maybe_sub<32>(r, w1, ws, p);
 2474|    171|}

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

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

_ZN5Botan17Montgomery_Params4DataC2ERKNS_6BigIntERKNS_17Barrett_ReductionE:
   40|  4.87k|Montgomery_Params::Data::Data(const BigInt& p, const Barrett_Reduction& mod_p) {
   41|  4.87k|   if(p.is_even() || p < 3) {
  ------------------
  |  Branch (41:7): [True: 0, False: 4.87k]
  |  Branch (41:22): [True: 0, False: 4.87k]
  ------------------
   42|      0|      throw Invalid_Argument("Montgomery_Params invalid modulus");
   43|      0|   }
   44|       |
   45|  4.87k|   m_p = p;
   46|  4.87k|   m_p_words = m_p.sig_words();
   47|  4.87k|   m_p_dash = monty_inverse(m_p.word_at(0));
   48|       |
   49|  4.87k|   const BigInt r = BigInt::power_of_2(m_p_words * WordInfo<word>::bits);
   50|       |
   51|  4.87k|   m_r1 = mod_p.reduce(r);
   52|  4.87k|   m_r2 = mod_p.square(m_r1);
   53|  4.87k|   m_r3 = mod_p.multiply(m_r1, m_r2);
   54|       |
   55|       |   // Barrett should be at least zero prefixing up to modulus size
   56|  4.87k|   BOTAN_ASSERT_NOMSG(m_r1.size() >= m_p_words);
  ------------------
  |  |   77|  4.87k|   do {                                                                     \
  |  |   78|  4.87k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  4.87k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 4.87k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  4.87k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 4.87k]
  |  |  ------------------
  ------------------
   57|  4.87k|   BOTAN_ASSERT_NOMSG(m_r2.size() >= m_p_words);
  ------------------
  |  |   77|  4.87k|   do {                                                                     \
  |  |   78|  4.87k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  4.87k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 4.87k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  4.87k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 4.87k]
  |  |  ------------------
  ------------------
   58|  4.87k|   BOTAN_ASSERT_NOMSG(m_r3.size() >= m_p_words);
  ------------------
  |  |   77|  4.87k|   do {                                                                     \
  |  |   78|  4.87k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  4.87k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 4.87k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  4.87k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 4.87k]
  |  |  ------------------
  ------------------
   59|  4.87k|}
_ZN5Botan17Montgomery_ParamsC2ERKNS_6BigIntERKNS_17Barrett_ReductionE:
   62|  4.87k|      m_data(std::make_shared<Data>(p, mod_p)) {}
_ZNK5Botan17Montgomery_ParamseqERKS0_:
   67|  49.5k|bool Montgomery_Params::operator==(const Montgomery_Params& other) const {
   68|  49.5k|   if(this->m_data == other.m_data) {
  ------------------
  |  Branch (68:7): [True: 49.5k, False: 0]
  ------------------
   69|  49.5k|      return true;
   70|  49.5k|   }
   71|       |
   72|      0|   return (this->m_data->p() == other.m_data->p());
   73|  49.5k|}
_ZNK5Botan17Montgomery_Params3mulERKNS_6BigIntES3_RNSt3__16vectorImNS_16secure_allocatorImEEEE:
   90|      6|BigInt Montgomery_Params::mul(const BigInt& x, const BigInt& y, secure_vector<word>& ws) const {
   91|      6|   const size_t p_size = this->p_words();
   92|      6|   BigInt z = BigInt::with_capacity(2 * p_size);
   93|      6|   this->mul(z, x, y, ws);
   94|      6|   return z;
   95|      6|}
_ZNK5Botan17Montgomery_Params3mulERNS_6BigIntERKS1_S4_RNSt3__16vectorImNS_16secure_allocatorImEEEE:
   97|      6|void Montgomery_Params::mul(BigInt& z, const BigInt& x, const BigInt& y, secure_vector<word>& ws) const {
   98|      6|   BOTAN_ARG_CHECK(&z != &x && &z != &y, "Montgomery_Params::mul output must not alias inputs");
  ------------------
  |  |   35|      6|   do {                                                          \
  |  |   36|      6|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|     12|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 6, False: 0]
  |  |  |  Branch (37:12): [True: 6, False: 0]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|      6|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 6]
  |  |  ------------------
  ------------------
   99|       |
  100|      6|   const size_t p_size = this->p_words();
  101|       |
  102|      6|   if(ws.size() < 2 * p_size) {
  ------------------
  |  Branch (102:7): [True: 3, False: 3]
  ------------------
  103|      3|      ws.resize(2 * p_size);
  104|      3|   }
  105|       |
  106|      6|   BOTAN_DEBUG_ASSERT(x.sig_words() <= p_size);
  ------------------
  |  |  130|      6|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|      6|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 6]
  |  |  ------------------
  ------------------
  107|      6|   BOTAN_DEBUG_ASSERT(y.sig_words() <= p_size);
  ------------------
  |  |  130|      6|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|      6|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 6]
  |  |  ------------------
  ------------------
  108|       |
  109|      6|   if(z.size() < 2 * p_size) {
  ------------------
  |  Branch (109:7): [True: 0, False: 6]
  ------------------
  110|      0|      z.grow_to(2 * p_size);
  111|      0|   }
  112|       |
  113|      6|   bigint_mul(z.mutable_data(),
  114|      6|              z.size(),
  115|      6|              x._data(),
  116|      6|              x.size(),
  117|      6|              std::min(p_size, x.size()),
  118|      6|              y._data(),
  119|      6|              y.size(),
  120|      6|              std::min(p_size, y.size()),
  121|      6|              ws.data(),
  122|      6|              ws.size());
  123|       |
  124|      6|   bigint_monty_redc_inplace(z.mutable_data(), this->p()._data(), p_size, this->p_dash(), ws.data(), ws.size());
  125|      6|}
_ZNK5Botan17Montgomery_Params6mul_byERNS_6BigIntERKS1_RNSt3__16vectorImNS_16secure_allocatorImEEEE:
  157|  36.8k|void Montgomery_Params::mul_by(BigInt& x, const BigInt& y, secure_vector<word>& ws) const {
  158|  36.8k|   const size_t p_size = this->p_words();
  159|       |
  160|  36.8k|   if(ws.size() < 4 * p_size) {
  ------------------
  |  Branch (160:7): [True: 18.4k, False: 18.4k]
  ------------------
  161|  18.4k|      ws.resize(4 * p_size);
  162|  18.4k|   }
  163|       |
  164|  36.8k|   word* z_data = ws.data();
  165|  36.8k|   word* ws_data = &ws[2 * p_size];
  166|       |
  167|  36.8k|   BOTAN_DEBUG_ASSERT(x.sig_words() <= p_size);
  ------------------
  |  |  130|  36.8k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  36.8k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 36.8k]
  |  |  ------------------
  ------------------
  168|       |
  169|  36.8k|   bigint_mul(z_data,
  170|  36.8k|              2 * p_size,
  171|  36.8k|              x._data(),
  172|  36.8k|              x.size(),
  173|  36.8k|              std::min(p_size, x.size()),
  174|  36.8k|              y._data(),
  175|  36.8k|              y.size(),
  176|  36.8k|              std::min(p_size, y.size()),
  177|  36.8k|              ws_data,
  178|  36.8k|              2 * p_size);
  179|       |
  180|  36.8k|   bigint_monty_redc_inplace(z_data, this->p()._data(), p_size, this->p_dash(), ws_data, 2 * p_size);
  181|       |
  182|  36.8k|   if(x.size() < 2 * p_size) {
  ------------------
  |  Branch (182:7): [True: 0, False: 36.8k]
  ------------------
  183|      0|      x.grow_to(2 * p_size);
  184|      0|   }
  185|  36.8k|   copy_mem(x.mutable_data(), z_data, 2 * p_size);
  186|  36.8k|}
_ZN5Botan14Montgomery_IntC2ERKNS_17Montgomery_ParamsENSt3__16vectorImNS_16secure_allocatorImEEEE:
  227|  9.13k|      m_params(params), m_v(std::move(words)) {
  228|  9.13k|   BOTAN_ASSERT_NOMSG(m_v.size() == m_params.p_words());
  ------------------
  |  |   77|  9.13k|   do {                                                                     \
  |  |   78|  9.13k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  9.13k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 9.13k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  9.13k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 9.13k]
  |  |  ------------------
  ------------------
  229|  9.13k|}
_ZN5Botan14Montgomery_Int3oneERKNS_17Montgomery_ParamsE:
  231|  2.71k|Montgomery_Int Montgomery_Int::one(const Montgomery_Params& params) {
  232|  2.71k|   return Montgomery_Int(params, params.R1(), false);
  233|  2.71k|}
_ZN5Botan14Montgomery_IntC2ERKNS_17Montgomery_ParamsERKNS_6BigIntEb:
  242|  5.92k|      m_params(params), m_v(m_params.p_words()) {
  243|  5.92k|   BOTAN_ARG_CHECK(v.signum() >= 0 && v < m_params.p(), "Input out of range");
  ------------------
  |  |   35|  5.92k|   do {                                                          \
  |  |   36|  5.92k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  11.8k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 5.92k, False: 0]
  |  |  |  Branch (37:12): [True: 5.92k, False: 0]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  5.92k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 5.92k]
  |  |  ------------------
  ------------------
  244|       |
  245|  5.92k|   const size_t p_size = m_params.p_words();
  246|       |
  247|  5.92k|   auto v_span = v._as_span();
  248|       |
  249|  5.92k|   if(v_span.size() > p_size) {
  ------------------
  |  Branch (249:7): [True: 2.81k, False: 3.11k]
  ------------------
  250|       |      // Safe to truncate the span since we already checked v < p
  251|  2.81k|      v_span = v_span.first(p_size);
  252|  2.81k|   }
  253|       |
  254|  5.92k|   BOTAN_ASSERT_NOMSG(m_v.size() >= v_span.size());
  ------------------
  |  |   77|  5.92k|   do {                                                                     \
  |  |   78|  5.92k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  5.92k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 5.92k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  5.92k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 5.92k]
  |  |  ------------------
  ------------------
  255|       |
  256|  5.92k|   copy_mem(std::span{m_v}.first(v_span.size()), v_span);
  257|       |
  258|  5.92k|   if(redc_needed) {
  ------------------
  |  Branch (258:7): [True: 3.20k, False: 2.71k]
  ------------------
  259|  3.20k|      secure_vector<word> ws;
  260|  3.20k|      this->mul_by(m_params.R2()._as_span().first(p_size), ws);
  261|  3.20k|   }
  262|  5.92k|}
_ZNK5Botan14Montgomery_Int5valueEv:
  273|  2.18k|BigInt Montgomery_Int::value() const {
  274|  2.18k|   secure_vector<word> ws(m_params.p_words());
  275|       |
  276|  2.18k|   secure_vector<word> z = m_v;
  277|  2.18k|   z.resize(2 * m_params.p_words());  // zero extend
  278|       |
  279|  2.18k|   bigint_monty_redc_inplace(
  280|  2.18k|      z.data(), m_params.p()._data(), m_params.p_words(), m_params.p_dash(), ws.data(), ws.size());
  281|       |
  282|  2.18k|   return BigInt::_from_words(z);
  283|  2.18k|}
_ZNK5Botan14Montgomery_Int3mulERKS0_RNSt3__16vectorImNS_16secure_allocatorImEEEE:
  320|  9.13k|Montgomery_Int Montgomery_Int::mul(const Montgomery_Int& other, secure_vector<word>& ws) const {
  321|  9.13k|   BOTAN_STATE_CHECK(other.m_params == m_params);
  ------------------
  |  |   51|  9.13k|   do {                                                         \
  |  |   52|  9.13k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|  9.13k|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 9.13k]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|  9.13k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 9.13k]
  |  |  ------------------
  ------------------
  322|       |
  323|  9.13k|   const size_t p_size = m_params.p_words();
  324|  9.13k|   BOTAN_ASSERT_NOMSG(m_v.size() == p_size && other.m_v.size() == p_size);
  ------------------
  |  |   77|  9.13k|   do {                                                                     \
  |  |   78|  9.13k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  18.2k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:12): [True: 9.13k, False: 0]
  |  |  |  Branch (79:12): [True: 9.13k, False: 0]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  9.13k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 9.13k]
  |  |  ------------------
  ------------------
  325|       |
  326|  9.13k|   if(ws.size() < 2 * p_size) {
  ------------------
  |  Branch (326:7): [True: 0, False: 9.13k]
  ------------------
  327|      0|      ws.resize(2 * p_size);
  328|      0|   }
  329|       |
  330|  9.13k|   secure_vector<word> z(2 * p_size);
  331|       |
  332|  9.13k|   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|  9.13k|   bigint_monty_redc_inplace(z.data(), m_params.p()._data(), p_size, m_params.p_dash(), ws.data(), ws.size());
  335|  9.13k|   z.resize(p_size);  // truncate off high zero words
  336|       |
  337|  9.13k|   return Montgomery_Int(m_params, std::move(z));
  338|  9.13k|}
_ZN5Botan14Montgomery_Int6mul_byERKS0_RNSt3__16vectorImNS_16secure_allocatorImEEEE:
  340|  40.3k|Montgomery_Int& Montgomery_Int::mul_by(const Montgomery_Int& other, secure_vector<word>& ws) {
  341|  40.3k|   BOTAN_STATE_CHECK(other.m_params == m_params);
  ------------------
  |  |   51|  40.3k|   do {                                                         \
  |  |   52|  40.3k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|  40.3k|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 40.3k]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|  40.3k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 40.3k]
  |  |  ------------------
  ------------------
  342|  40.3k|   return this->mul_by(std::span{other.m_v}, ws);
  343|  40.3k|}
_ZN5Botan14Montgomery_Int6mul_byENSt3__14spanIKmLm18446744073709551615EEERNS1_6vectorImNS_16secure_allocatorImEEEE:
  345|  43.5k|Montgomery_Int& Montgomery_Int::mul_by(std::span<const word> other, secure_vector<word>& ws) {
  346|  43.5k|   const size_t p_size = m_params.p_words();
  347|  43.5k|   BOTAN_ASSERT_NOMSG(m_v.size() == p_size && other.size() == p_size);
  ------------------
  |  |   77|  43.5k|   do {                                                                     \
  |  |   78|  43.5k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  87.1k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:12): [True: 43.5k, False: 0]
  |  |  |  Branch (79:12): [True: 43.5k, False: 0]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  43.5k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 43.5k]
  |  |  ------------------
  ------------------
  348|       |
  349|  43.5k|   if(ws.size() < 2 * p_size) {
  ------------------
  |  Branch (349:7): [True: 3.20k, False: 40.3k]
  ------------------
  350|  3.20k|      ws.resize(2 * p_size);
  351|  3.20k|   }
  352|       |
  353|  43.5k|   auto do_mul_by = [&](std::span<word> z) {
  354|  43.5k|      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|  43.5k|      bigint_monty_redc_inplace(z.data(), m_params.p()._data(), p_size, m_params.p_dash(), ws.data(), ws.size());
  357|       |
  358|  43.5k|      copy_mem(m_v, z.first(p_size));
  359|  43.5k|   };
  360|       |
  361|  43.5k|   if(p_size <= MontgomeryUseStackLimit) {
  ------------------
  |  Branch (361:7): [True: 43.3k, False: 234]
  ------------------
  362|  43.3k|      std::array<word, 2 * MontgomeryUseStackLimit> z{};
  363|  43.3k|      do_mul_by(z);
  364|  43.3k|   } else {
  365|    234|      secure_vector<word> z(2 * p_size);
  366|    234|      do_mul_by(z);
  367|    234|   }
  368|       |
  369|  43.5k|   return (*this);
  370|  43.5k|}
_ZN5Botan14Montgomery_Int19square_this_n_timesERNSt3__16vectorImNS_16secure_allocatorImEEEEm:
  372|  53.2k|Montgomery_Int& Montgomery_Int::square_this_n_times(secure_vector<word>& ws, size_t n) {
  373|  53.2k|   const size_t p_size = m_params.p_words();
  374|  53.2k|   BOTAN_ASSERT_NOMSG(m_v.size() == p_size);
  ------------------
  |  |   77|  53.2k|   do {                                                                     \
  |  |   78|  53.2k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  53.2k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 53.2k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  53.2k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 53.2k]
  |  |  ------------------
  ------------------
  375|       |
  376|  53.2k|   if(ws.size() < 2 * p_size) {
  ------------------
  |  Branch (376:7): [True: 0, False: 53.2k]
  ------------------
  377|      0|      ws.resize(2 * p_size);
  378|      0|   }
  379|       |
  380|  53.2k|   auto do_sqr_n = [&](std::span<word> z) {
  381|  53.2k|      for(size_t i = 0; i != n; ++i) {
  382|  53.2k|         bigint_sqr(z.data(), 2 * p_size, m_v.data(), p_size, p_size, ws.data(), ws.size());
  383|       |
  384|  53.2k|         bigint_monty_redc_inplace(z.data(), m_params.p()._data(), p_size, m_params.p_dash(), ws.data(), ws.size());
  385|       |
  386|  53.2k|         copy_mem(m_v, std::span{z}.first(p_size));
  387|  53.2k|      }
  388|  53.2k|   };
  389|       |
  390|  53.2k|   if(p_size <= MontgomeryUseStackLimit) {
  ------------------
  |  Branch (390:7): [True: 51.3k, False: 1.87k]
  ------------------
  391|  51.3k|      std::array<word, 2 * MontgomeryUseStackLimit> z{};
  392|  51.3k|      do_sqr_n(z);
  393|  51.3k|   } else {
  394|  1.87k|      secure_vector<word> z(2 * p_size);
  395|  1.87k|      do_sqr_n(z);
  396|  1.87k|   }
  397|       |
  398|  53.2k|   return (*this);
  399|  53.2k|}
_ZNK5Botan14Montgomery_Int6squareERNSt3__16vectorImNS_16secure_allocatorImEEEE:
  401|  4.69k|Montgomery_Int Montgomery_Int::square(secure_vector<word>& ws) const {
  402|  4.69k|   auto z = (*this);
  403|  4.69k|   z.square_this_n_times(ws, 1);
  404|  4.69k|   return z;
  405|  4.69k|}
monty.cpp:_ZZN5Botan14Montgomery_Int6mul_byENSt3__14spanIKmLm18446744073709551615EEERNS1_6vectorImNS_16secure_allocatorImEEEEENK3$_0clENS2_ImLm18446744073709551615EEE:
  353|  43.5k|   auto do_mul_by = [&](std::span<word> z) {
  354|  43.5k|      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|  43.5k|      bigint_monty_redc_inplace(z.data(), m_params.p()._data(), p_size, m_params.p_dash(), ws.data(), ws.size());
  357|       |
  358|  43.5k|      copy_mem(m_v, z.first(p_size));
  359|  43.5k|   };
monty.cpp:_ZZN5Botan14Montgomery_Int19square_this_n_timesERNSt3__16vectorImNS_16secure_allocatorImEEEEmENK3$_0clENS1_4spanImLm18446744073709551615EEE:
  380|  53.2k|   auto do_sqr_n = [&](std::span<word> z) {
  381|   145k|      for(size_t i = 0; i != n; ++i) {
  ------------------
  |  Branch (381:25): [True: 92.0k, False: 53.2k]
  ------------------
  382|  92.0k|         bigint_sqr(z.data(), 2 * p_size, m_v.data(), p_size, p_size, ws.data(), ws.size());
  383|       |
  384|  92.0k|         bigint_monty_redc_inplace(z.data(), m_params.p()._data(), p_size, m_params.p_dash(), ws.data(), ws.size());
  385|       |
  386|  92.0k|         copy_mem(m_v, std::span{z}.first(p_size));
  387|  92.0k|      }
  388|  53.2k|   };

_ZN5Botan31Montgomery_Exponentiation_StateC2ERKNS_14Montgomery_IntEmb:
   36|  2.22k|      m_params(g._params()), m_window_bits(window_bits == 0 ? 4 : window_bits) {
  ------------------
  |  Branch (36:44): [True: 0, False: 2.22k]
  ------------------
   37|  2.22k|   if(m_window_bits < 1 || m_window_bits > 12) {  // really even 8 is too large ...
  ------------------
  |  Branch (37:7): [True: 0, False: 2.22k]
  |  Branch (37:28): [True: 0, False: 2.22k]
  ------------------
   38|      0|      throw Invalid_Argument("Invalid window bits for Montgomery exponentiation");
   39|      0|   }
   40|       |
   41|  2.22k|   const size_t window_size = (static_cast<size_t>(1) << m_window_bits);
   42|       |
   43|  2.22k|   m_g.reserve(window_size);
   44|       |
   45|  2.22k|   m_g.push_back(Montgomery_Int::one(m_params));
   46|       |
   47|  2.22k|   m_g.push_back(g);
   48|       |
   49|  2.22k|   secure_vector<word> ws(2 * m_params.p_words());
   50|       |
   51|  9.64k|   for(size_t i = 2; i != window_size; ++i) {
  ------------------
  |  Branch (51:22): [True: 7.42k, False: 2.22k]
  ------------------
   52|  7.42k|      if(i % 2 == 0) {
  ------------------
  |  Branch (52:10): [True: 3.71k, False: 3.71k]
  ------------------
   53|  3.71k|         m_g.push_back(m_g[i / 2].square(ws));
   54|  3.71k|      } else {
   55|  3.71k|         m_g.push_back(m_g[1].mul(m_g[i - 1], ws));
   56|  3.71k|      }
   57|  7.42k|   }
   58|       |
   59|  2.22k|   if(const_time) {
  ------------------
  |  Branch (59:7): [True: 530, False: 1.69k]
  ------------------
   60|    530|      CT::poison_range(m_g);
   61|    530|   }
   62|  2.22k|}
_ZNK5Botan31Montgomery_Exponentiation_State22exponentiation_vartimeERKNS_6BigIntE:
  118|  1.69k|Montgomery_Int Montgomery_Exponentiation_State::exponentiation_vartime(const BigInt& scalar) const {
  119|  1.69k|   const size_t exp_nibbles = (scalar.bits() + m_window_bits - 1) / m_window_bits;
  120|       |
  121|  1.69k|   secure_vector<word> ws(2 * m_params.p_words());
  122|       |
  123|  1.69k|   if(exp_nibbles == 0) {
  ------------------
  |  Branch (123:7): [True: 0, False: 1.69k]
  ------------------
  124|      0|      return Montgomery_Int::one(m_params);
  125|      0|   }
  126|       |
  127|  1.69k|   Montgomery_Int x = m_g[scalar.get_substring(m_window_bits * (exp_nibbles - 1), m_window_bits)];
  128|       |
  129|  11.3k|   for(size_t i = exp_nibbles - 1; i > 0; --i) {
  ------------------
  |  Branch (129:36): [True: 9.68k, False: 1.69k]
  ------------------
  130|  9.68k|      x.square_this_n_times(ws, m_window_bits);
  131|       |
  132|  9.68k|      const uint32_t nibble = scalar.get_substring(m_window_bits * (i - 1), m_window_bits);
  133|  9.68k|      if(nibble > 0) {
  ------------------
  |  Branch (133:10): [True: 3.68k, False: 6.00k]
  ------------------
  134|  3.68k|         x.mul_by(m_g[nibble], ws);
  135|  3.68k|      }
  136|  9.68k|   }
  137|       |
  138|  1.69k|   CT::unpoison(x);
  139|  1.69k|   return x;
  140|  1.69k|}
_ZN5Botan16monty_precomputeERKNS_14Montgomery_IntEmb:
  144|  2.22k|                                                                        bool const_time) {
  145|  2.22k|   return std::make_shared<const Montgomery_Exponentiation_State>(g, window_bits, const_time);
  146|  2.22k|}
_ZN5Botan16monty_precomputeERKNS_17Montgomery_ParamsERKNS_6BigIntEmb:
  151|  2.22k|                                                                        bool const_time) {
  152|  2.22k|   BOTAN_ARG_CHECK(g.signum() >= 0 && g < params.p(), "Montgomery exponentiation base integer out of range");
  ------------------
  |  |   35|  2.22k|   do {                                                          \
  |  |   36|  2.22k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  4.44k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 2.22k, False: 0]
  |  |  |  Branch (37:12): [True: 2.22k, False: 0]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  2.22k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 2.22k]
  |  |  ------------------
  ------------------
  153|  2.22k|   const Montgomery_Int monty_g(params, g);
  154|  2.22k|   return monty_precompute(monty_g, window_bits, const_time);
  155|  2.22k|}
_ZN5Botan21monty_execute_vartimeERKNS_31Montgomery_Exponentiation_StateERKNS_6BigIntE:
  163|  1.69k|Montgomery_Int monty_execute_vartime(const Montgomery_Exponentiation_State& precomputed_state, const BigInt& k) {
  164|  1.69k|   return precomputed_state.exponentiation_vartime(k);
  165|  1.69k|}
_ZN5Botan15monty_multi_expERKNS_17Montgomery_ParamsERKNS_6BigIntES5_S5_S5_:
  168|    493|   const Montgomery_Params& params_p, const BigInt& x_bn, const BigInt& z1, const BigInt& y_bn, const BigInt& z2) {
  169|    493|   if(z1.signum() < 0 || z2.signum() < 0) {
  ------------------
  |  Branch (169:7): [True: 0, False: 493]
  |  Branch (169:26): [True: 0, False: 493]
  ------------------
  170|      0|      throw Invalid_Argument("multi_exponentiate exponents must be positive");
  171|      0|   }
  172|       |
  173|    493|   const size_t z_bits = round_up(std::max(z1.bits(), z2.bits()), 2);
  174|       |
  175|    493|   secure_vector<word> ws(2 * params_p.p_words());
  176|       |
  177|    493|   const Montgomery_Int one = Montgomery_Int::one(params_p);
  178|       |
  179|    493|   const Montgomery_Int x1(params_p, x_bn);
  180|    493|   const Montgomery_Int x2 = x1.square(ws);
  181|    493|   const Montgomery_Int x3 = x2.mul(x1, ws);
  182|       |
  183|    493|   const Montgomery_Int y1(params_p, y_bn);
  184|    493|   const Montgomery_Int y2 = y1.square(ws);
  185|    493|   const Montgomery_Int y3 = y2.mul(y1, ws);
  186|       |
  187|    493|   const Montgomery_Int y1x1 = y1.mul(x1, ws);
  188|    493|   const Montgomery_Int y1x2 = y1.mul(x2, ws);
  189|    493|   const Montgomery_Int y1x3 = y1.mul(x3, ws);
  190|       |
  191|    493|   const Montgomery_Int y2x1 = y2.mul(x1, ws);
  192|    493|   const Montgomery_Int y2x2 = y2.mul(x2, ws);
  193|    493|   const Montgomery_Int y2x3 = y2.mul(x3, ws);
  194|       |
  195|    493|   const Montgomery_Int y3x1 = y3.mul(x1, ws);
  196|    493|   const Montgomery_Int y3x2 = y3.mul(x2, ws);
  197|    493|   const Montgomery_Int y3x3 = y3.mul(x3, ws);
  198|       |
  199|       |   // NOLINTNEXTLINE(*-const-correctness) bug in clang-tidy
  200|    493|   const Montgomery_Int* M[16] = {&one,
  201|    493|                                  &x1,  // 0001
  202|    493|                                  &x2,  // 0010
  203|    493|                                  &x3,  // 0011
  204|    493|                                  &y1,  // 0100
  205|    493|                                  &y1x1,
  206|    493|                                  &y1x2,
  207|    493|                                  &y1x3,
  208|    493|                                  &y2,  // 1000
  209|    493|                                  &y2x1,
  210|    493|                                  &y2x2,
  211|    493|                                  &y2x3,
  212|    493|                                  &y3,  // 1100
  213|    493|                                  &y3x1,
  214|    493|                                  &y3x2,
  215|    493|                                  &y3x3};
  216|       |
  217|    493|   Montgomery_Int H = one;
  218|       |
  219|  39.8k|   for(size_t i = 0; i != z_bits; i += 2) {
  ------------------
  |  Branch (219:22): [True: 39.3k, False: 493]
  ------------------
  220|  39.3k|      if(i > 0) {
  ------------------
  |  Branch (220:10): [True: 38.8k, False: 493]
  ------------------
  221|  38.8k|         H.square_this_n_times(ws, 2);
  222|  38.8k|      }
  223|       |
  224|  39.3k|      const uint32_t z1_b = z1.get_substring(z_bits - i - 2, 2);
  225|  39.3k|      const uint32_t z2_b = z2.get_substring(z_bits - i - 2, 2);
  226|       |
  227|  39.3k|      const uint32_t z12 = (4 * z2_b) + z1_b;
  228|       |
  229|  39.3k|      if(z12 > 0) {
  ------------------
  |  Branch (229:10): [True: 36.6k, False: 2.65k]
  ------------------
  230|  36.6k|         H.mul_by(*M[z12], ws);
  231|  36.6k|      }
  232|  39.3k|   }
  233|       |
  234|    493|   return H;
  235|    493|}

_ZN5Botan6PCurve15PrimeOrderCurve6Scalar8_zeroizeEv:
   16|   336k|void PrimeOrderCurve::Scalar::_zeroize() {
   17|   336k|   secure_zeroize_buffer(m_value.data(), m_value.size() * sizeof(word));
   18|   336k|}
_ZN5Botan6PCurve15PrimeOrderCurve15for_named_curveENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEE:
   32|      3|std::shared_ptr<const PrimeOrderCurve> PrimeOrderCurve::for_named_curve(std::string_view name) {
   33|      3|#if defined(BOTAN_HAS_PCURVES_SECP256R1)
   34|      3|   if(name == "secp256r1") {
  ------------------
  |  Branch (34:7): [True: 1, False: 2]
  ------------------
   35|      1|      return PCurveInstance::secp256r1();
   36|      1|   }
   37|      2|#endif
   38|       |
   39|      2|#if defined(BOTAN_HAS_PCURVES_SECP384R1)
   40|      2|   if(name == "secp384r1") {
  ------------------
  |  Branch (40:7): [True: 0, False: 2]
  ------------------
   41|      0|      return PCurveInstance::secp384r1();
   42|      0|   }
   43|      2|#endif
   44|       |
   45|      2|#if defined(BOTAN_HAS_PCURVES_SECP521R1)
   46|      2|   if(name == "secp521r1") {
  ------------------
  |  Branch (46:7): [True: 0, False: 2]
  ------------------
   47|      0|      return PCurveInstance::secp521r1();
   48|      0|   }
   49|      2|#endif
   50|       |
   51|       |#if defined(BOTAN_HAS_PCURVES_BRAINPOOL256R1)
   52|       |   if(name == "brainpool256r1") {
   53|       |      return PCurveInstance::brainpool256r1();
   54|       |   }
   55|       |#endif
   56|       |
   57|       |#if defined(BOTAN_HAS_PCURVES_BRAINPOOL384R1)
   58|       |   if(name == "brainpool384r1") {
   59|       |      return PCurveInstance::brainpool384r1();
   60|       |   }
   61|       |#endif
   62|       |
   63|       |#if defined(BOTAN_HAS_PCURVES_BRAINPOOL512R1)
   64|       |   if(name == "brainpool512r1") {
   65|       |      return PCurveInstance::brainpool512r1();
   66|       |   }
   67|       |#endif
   68|       |
   69|       |#if defined(BOTAN_HAS_PCURVES_FRP256V1)
   70|       |   if(name == "frp256v1") {
   71|       |      return PCurveInstance::frp256v1();
   72|       |   }
   73|       |#endif
   74|       |
   75|      2|#if defined(BOTAN_HAS_PCURVES_SECP192R1)
   76|      2|   if(name == "secp192r1") {
  ------------------
  |  Branch (76:7): [True: 0, False: 2]
  ------------------
   77|      0|      return PCurveInstance::secp192r1();
   78|      0|   }
   79|      2|#endif
   80|       |
   81|       |#if defined(BOTAN_HAS_PCURVES_SECP224R1)
   82|       |   if(name == "secp224r1") {
   83|       |      return PCurveInstance::secp224r1();
   84|       |   }
   85|       |#endif
   86|       |
   87|      2|#if defined(BOTAN_HAS_PCURVES_SECP256K1)
   88|      2|   if(name == "secp256k1") {
  ------------------
  |  Branch (88:7): [True: 1, False: 1]
  ------------------
   89|      1|      return PCurveInstance::secp256k1();
   90|      1|   }
   91|      1|#endif
   92|       |
   93|      1|#if defined(BOTAN_HAS_PCURVES_SM2P256V1)
   94|      1|   if(name == "sm2p256v1") {
  ------------------
  |  Branch (94:7): [True: 1, False: 0]
  ------------------
   95|      1|      return PCurveInstance::sm2p256v1();
   96|      1|   }
   97|      0|#endif
   98|       |
   99|       |#if defined(BOTAN_HAS_PCURVES_NUMSP512D1)
  100|       |   if(name == "numsp512d1") {
  101|       |      return PCurveInstance::numsp512d1();
  102|       |   }
  103|       |#endif
  104|       |
  105|      0|   BOTAN_UNUSED(name);
  ------------------
  |  |  144|      0|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
  106|      0|   return {};
  107|      1|}

_ZN5Botan6PCurve14PCurveInstance9secp256k1Ev:
  233|      1|std::shared_ptr<const PrimeOrderCurve> PCurveInstance::secp256k1() {
  234|      1|   return PrimeOrderCurveImpl<secp256k1::Curve>::instance();
  235|      1|}
pcurves_secp256k1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS2_6ParamsES3_E11FieldParamsEE3oneEv:
   28|   247k|      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|  9.17M|      constexpr static std::array<W, N> redc(const std::array<W, 2 * N>& z) {
   31|  9.17M|         return redc_crandall<W, N, C>(std::span{z});
   32|  9.17M|      }
pcurves_secp256k1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS2_6ParamsES3_E11FieldParamsEE8from_repERKNSt3__15arrayImLm4EEE:
   38|  16.5k|      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|  11.9k|      constexpr static std::array<W, N> to_rep(const std::array<W, N>& x) { return x; }

_ZN5Botan6PCurve14PCurveInstance9secp256r1Ev:
  268|      1|std::shared_ptr<const PrimeOrderCurve> PCurveInstance::secp256r1() {
  269|      1|   return PrimeOrderCurveImpl<secp256r1::Curve>::instance();
  270|      1|}
pcurves_secp256r1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS1_9secp256r16ParamsES2_E11FieldParamsEE3oneEv:
   77|   763k|      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|  30.7M|      constexpr static std::array<W, N> redc(const std::array<W, 2 * N>& z) {
   28|  30.7M|         const int64_t X00 = get_uint32(z.data(), 0);
   29|  30.7M|         const int64_t X01 = get_uint32(z.data(), 1);
   30|  30.7M|         const int64_t X02 = get_uint32(z.data(), 2);
   31|  30.7M|         const int64_t X03 = get_uint32(z.data(), 3);
   32|  30.7M|         const int64_t X04 = get_uint32(z.data(), 4);
   33|  30.7M|         const int64_t X05 = get_uint32(z.data(), 5);
   34|  30.7M|         const int64_t X06 = get_uint32(z.data(), 6);
   35|  30.7M|         const int64_t X07 = get_uint32(z.data(), 7);
   36|  30.7M|         const int64_t X08 = get_uint32(z.data(), 8);
   37|  30.7M|         const int64_t X09 = get_uint32(z.data(), 9);
   38|  30.7M|         const int64_t X10 = get_uint32(z.data(), 10);
   39|  30.7M|         const int64_t X11 = get_uint32(z.data(), 11);
   40|  30.7M|         const int64_t X12 = get_uint32(z.data(), 12);
   41|  30.7M|         const int64_t X13 = get_uint32(z.data(), 13);
   42|  30.7M|         const int64_t X14 = get_uint32(z.data(), 14);
   43|  30.7M|         const int64_t X15 = get_uint32(z.data(), 15);
   44|       |
   45|       |         // See SP 800-186 section G.1.2
   46|  30.7M|         const int64_t S0 = P256_4[0] + X00 + X08 + X09 - (X11 + X12 + X13 + X14);
   47|  30.7M|         const int64_t S1 = P256_4[1] + X01 + X09 + X10 - (X12 + X13 + X14 + X15);
   48|  30.7M|         const int64_t S2 = P256_4[2] + X02 + X10 + X11 - (X13 + X14 + X15);
   49|  30.7M|         const int64_t S3 = P256_4[3] + X03 + 2 * (X11 + X12) + X13 - (X15 + X08 + X09);
   50|  30.7M|         const int64_t S4 = P256_4[4] + X04 + 2 * (X12 + X13) + X14 - (X09 + X10);
   51|  30.7M|         const int64_t S5 = P256_4[5] + X05 + 2 * (X13 + X14) + X15 - (X10 + X11);
   52|  30.7M|         const int64_t S6 = P256_4[6] + X06 + X13 + X14 * 3 + X15 * 2 - (X08 + X09);
   53|  30.7M|         const int64_t S7 = P256_4[7] + X07 + X15 * 3 + X08 - (X10 + X11 + X12 + X13);
   54|  30.7M|         const int64_t S8 = P256_4[8];
   55|       |
   56|  30.7M|         std::array<W, N> r = {};
   57|       |
   58|  30.7M|         SolinasAccum sum(r);
   59|       |
   60|  30.7M|         sum.accum(S0);
   61|  30.7M|         sum.accum(S1);
   62|  30.7M|         sum.accum(S2);
   63|  30.7M|         sum.accum(S3);
   64|  30.7M|         sum.accum(S4);
   65|  30.7M|         sum.accum(S5);
   66|  30.7M|         sum.accum(S6);
   67|  30.7M|         sum.accum(S7);
   68|  30.7M|         const auto S = sum.final_carry(S8);
   69|       |
   70|  30.7M|         BOTAN_DEBUG_ASSERT(S <= 8);
  ------------------
  |  |  130|  30.7M|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  30.7M|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 30.7M]
  |  |  ------------------
  ------------------
   71|       |
   72|  30.7M|         solinas_correct_redc<N>(r, P, p256_mul_mod_256(S));
   73|       |
   74|  30.7M|         return r;
   75|  30.7M|      }
pcurves_secp256r1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS1_9secp256r16ParamsES2_E11FieldParamsEE16p256_mul_mod_256Em:
   89|  30.7M|      constexpr static std::array<W, N> p256_mul_mod_256(W i) {
   90|  30.7M|         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|  30.7M|         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|  30.7M|         } else {
  102|  30.7M|            const uint64_t i32 = static_cast<uint64_t>(i) << 32;
  103|  30.7M|            r[3] -= i32;
  104|  30.7M|            r[3] += i;
  105|  30.7M|            r[1] += i32;
  106|  30.7M|            r[0] -= i;
  107|  30.7M|         }
  108|  30.7M|         return r;
  109|  30.7M|      }
pcurves_secp256r1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS1_9secp256r16ParamsES2_E11FieldParamsEE8from_repERKNSt3__15arrayImLm4EEE:
   83|  48.7k|      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|  35.2k|      constexpr static std::array<W, N> to_rep(const std::array<W, N>& x) { return x; }

_ZN5Botan6PCurve14PCurveInstance9sm2p256v1Ev:
  199|      1|std::shared_ptr<const PrimeOrderCurve> PCurveInstance::sm2p256v1() {
  200|      1|   return PrimeOrderCurveImpl<sm2p256v1::Curve>::instance();
  201|      1|}
pcurves_sm2p256v1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS2_6ParamsES3_E11FieldParamsEE3oneEv:
   71|   458k|      constexpr static std::array<W, N> one() { return std::array<W, N>{1}; }
pcurves_sm2p256v1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS2_6ParamsES3_E11FieldParamsEE4redcERKNSt3__15arrayImLm8EEE:
   25|  18.4M|      constexpr static std::array<W, N> redc(const std::array<W, 2 * N>& z) {
   26|  18.4M|         const int64_t X00 = get_uint32(z.data(), 0);
   27|  18.4M|         const int64_t X01 = get_uint32(z.data(), 1);
   28|  18.4M|         const int64_t X02 = get_uint32(z.data(), 2);
   29|  18.4M|         const int64_t X03 = get_uint32(z.data(), 3);
   30|  18.4M|         const int64_t X04 = get_uint32(z.data(), 4);
   31|  18.4M|         const int64_t X05 = get_uint32(z.data(), 5);
   32|  18.4M|         const int64_t X06 = get_uint32(z.data(), 6);
   33|  18.4M|         const int64_t X07 = get_uint32(z.data(), 7);
   34|  18.4M|         const int64_t X08 = get_uint32(z.data(), 8);
   35|  18.4M|         const int64_t X09 = get_uint32(z.data(), 9);
   36|  18.4M|         const int64_t X10 = get_uint32(z.data(), 10);
   37|  18.4M|         const int64_t X11 = get_uint32(z.data(), 11);
   38|  18.4M|         const int64_t X12 = get_uint32(z.data(), 12);
   39|  18.4M|         const int64_t X13 = get_uint32(z.data(), 13);
   40|  18.4M|         const int64_t X14 = get_uint32(z.data(), 14);
   41|  18.4M|         const int64_t X15 = get_uint32(z.data(), 15);
   42|       |
   43|  18.4M|         const int64_t S0 = X00 + X08 + X09 + X10 + X11 + X12 + 2 * (X13 + X14 + X15);
   44|  18.4M|         const int64_t S1 = X01 + X09 + X10 + X11 + X12 + X13 + 2 * (X14 + X15);
   45|  18.4M|         const int64_t S2 = X02 - (X08 + X09 + X13 + X14);
   46|  18.4M|         const int64_t S3 = X03 + X08 + X11 + X12 + 2 * X13 + X14 + X15;
   47|  18.4M|         const int64_t S4 = X04 + X09 + X12 + X13 + 2 * X14 + X15;
   48|  18.4M|         const int64_t S5 = X05 + X10 + X13 + X14 + 2 * X15;
   49|  18.4M|         const int64_t S6 = X06 + X11 + X14 + X15;
   50|  18.4M|         const int64_t S7 = X07 + X08 + X09 + X10 + X11 + 2 * (X12 + X13 + X14 + X15) + X15;
   51|       |
   52|  18.4M|         std::array<W, N> r = {};
   53|       |
   54|  18.4M|         SolinasAccum sum(r);
   55|       |
   56|  18.4M|         sum.accum(S0);
   57|  18.4M|         sum.accum(S1);
   58|  18.4M|         sum.accum(S2);
   59|  18.4M|         sum.accum(S3);
   60|  18.4M|         sum.accum(S4);
   61|  18.4M|         sum.accum(S5);
   62|  18.4M|         sum.accum(S6);
   63|  18.4M|         sum.accum(S7);
   64|  18.4M|         const auto S = sum.final_carry(0);
   65|       |
   66|  18.4M|         solinas_correct_redc<N>(r, P, sm2_mul_mod_256(S));
   67|       |
   68|  18.4M|         return r;
   69|  18.4M|      }
pcurves_sm2p256v1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS2_6ParamsES3_E11FieldParamsEE15sm2_mul_mod_256Em:
   83|  18.4M|      constexpr static std::array<W, N> sm2_mul_mod_256(W i) {
   84|  18.4M|         static_assert(WordInfo<W>::bits == 32 || WordInfo<W>::bits == 64);
   85|       |
   86|       |         // For small i, multiples of P have a simple structure so it's faster to
   87|       |         // compute the value directly vs a (constant time) table lookup
   88|       |
   89|  18.4M|         auto r = P;
   90|       |         if constexpr(WordInfo<W>::bits == 32) {
   91|       |            r[7] -= i;
   92|       |            r[3] -= i;
   93|       |            r[2] += i;
   94|       |            r[0] -= i;
   95|  18.4M|         } else {
   96|  18.4M|            const uint64_t i32 = static_cast<uint64_t>(i) << 32;
   97|  18.4M|            r[3] -= i32;
   98|  18.4M|            r[1] -= i32;
   99|  18.4M|            r[1] += i;
  100|  18.4M|            r[0] -= i;
  101|  18.4M|         }
  102|  18.4M|         return r;
  103|  18.4M|      }
pcurves_sm2p256v1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS2_6ParamsES3_E11FieldParamsEE8from_repERKNSt3__15arrayImLm4EEE:
   77|  47.4k|      constexpr static std::array<W, N> from_rep(const std::array<W, N>& z) { return z; }
pcurves_sm2p256v1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_19sm2p256v112Sm2p256v1RepINS_13EllipticCurveINS2_6ParamsES3_E11FieldParamsEE6to_repERKNSt3__15arrayImLm4EEE:
   73|  30.2k|      constexpr static std::array<W, N> to_rep(const std::array<W, N>& x) { return x; }

_ZN5Botan9AEAD_Mode6createENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEENS_10Cipher_DirES5_:
   63|  6.58k|std::unique_ptr<AEAD_Mode> AEAD_Mode::create(std::string_view algo, Cipher_Dir dir, std::string_view provider) {
   64|  6.58k|   BOTAN_UNUSED(provider);
  ------------------
  |  |  144|  6.58k|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
   65|       |#if defined(BOTAN_HAS_AEAD_CHACHA20_POLY1305)
   66|       |   if(algo == "ChaCha20Poly1305") {
   67|       |      if(dir == Cipher_Dir::Encryption) {
   68|       |         return std::make_unique<ChaCha20Poly1305_Encryption>();
   69|       |      } else {
   70|       |         return std::make_unique<ChaCha20Poly1305_Decryption>();
   71|       |      }
   72|       |   }
   73|       |#endif
   74|       |
   75|       |#if defined(BOTAN_HAS_ASCON_AEAD128)
   76|       |   if(algo == "Ascon-AEAD128") {
   77|       |      if(dir == Cipher_Dir::Encryption) {
   78|       |         return std::make_unique<Ascon_AEAD128_Encryption>();
   79|       |      } else {
   80|       |         return std::make_unique<Ascon_AEAD128_Decryption>();
   81|       |      }
   82|       |   }
   83|       |#endif
   84|       |
   85|  6.58k|   if(algo.find('/') != std::string::npos) {
  ------------------
  |  Branch (85:7): [True: 3.29k, False: 3.29k]
  ------------------
   86|  3.29k|      const std::vector<std::string> algo_parts = split_on(algo, '/');
   87|  3.29k|      if(algo_parts.size() < 2) {
  ------------------
  |  Branch (87:10): [True: 0, False: 3.29k]
  ------------------
   88|      0|         return std::unique_ptr<AEAD_Mode>();
   89|      0|      }
   90|  3.29k|      const std::string_view cipher_name = algo_parts[0];
   91|  3.29k|      const std::vector<std::string> mode_info = parse_algorithm_name(algo_parts[1]);
   92|       |
   93|  3.29k|      if(mode_info.empty()) {
  ------------------
  |  Branch (93:10): [True: 0, False: 3.29k]
  ------------------
   94|      0|         return std::unique_ptr<AEAD_Mode>();
   95|      0|      }
   96|       |
   97|  3.29k|      std::ostringstream mode_name;
   98|       |
   99|  3.29k|      mode_name << mode_info[0] << '(' << cipher_name;
  100|  3.29k|      for(size_t i = 1; i < mode_info.size(); ++i) {
  ------------------
  |  Branch (100:25): [True: 0, False: 3.29k]
  ------------------
  101|      0|         mode_name << ',' << mode_info[i];
  102|      0|      }
  103|  3.29k|      for(size_t i = 2; i < algo_parts.size(); ++i) {
  ------------------
  |  Branch (103:25): [True: 0, False: 3.29k]
  ------------------
  104|      0|         mode_name << ',' << algo_parts[i];
  105|      0|      }
  106|  3.29k|      mode_name << ')';
  107|       |
  108|  3.29k|      return AEAD_Mode::create(mode_name.str(), dir);
  109|  3.29k|   }
  110|       |
  111|  3.29k|#if defined(BOTAN_HAS_BLOCK_CIPHER)
  112|       |
  113|  3.29k|   const SCAN_Name req(algo);
  114|       |
  115|  3.29k|   if(req.arg_count() == 0) {
  ------------------
  |  Branch (115:7): [True: 0, False: 3.29k]
  ------------------
  116|      0|      return std::unique_ptr<AEAD_Mode>();
  117|      0|   }
  118|       |
  119|  3.29k|   auto bc = BlockCipher::create(req.arg(0), provider);
  120|       |
  121|  3.29k|   if(!bc) {
  ------------------
  |  Branch (121:7): [True: 0, False: 3.29k]
  ------------------
  122|      0|      return std::unique_ptr<AEAD_Mode>();
  123|      0|   }
  124|       |
  125|       |   #if defined(BOTAN_HAS_AEAD_CCM)
  126|       |   if(req.algo_name() == "CCM") {
  127|       |      const size_t tag_len = req.arg_as_integer(1, 16);
  128|       |      const size_t L_len = req.arg_as_integer(2, 3);
  129|       |      if(dir == Cipher_Dir::Encryption) {
  130|       |         return std::make_unique<CCM_Encryption>(std::move(bc), tag_len, L_len);
  131|       |      } else {
  132|       |         return std::make_unique<CCM_Decryption>(std::move(bc), tag_len, L_len);
  133|       |      }
  134|       |   }
  135|       |   #endif
  136|       |
  137|  3.29k|   #if defined(BOTAN_HAS_AEAD_GCM)
  138|  3.29k|   if(req.algo_name() == "GCM") {
  ------------------
  |  Branch (138:7): [True: 247, False: 3.04k]
  ------------------
  139|    247|      const size_t tag_len = req.arg_as_integer(1, 16);
  140|    247|      if(dir == Cipher_Dir::Encryption) {
  ------------------
  |  Branch (140:10): [True: 0, False: 247]
  ------------------
  141|      0|         return std::make_unique<GCM_Encryption>(std::move(bc), tag_len);
  142|    247|      } else {
  143|    247|         return std::make_unique<GCM_Decryption>(std::move(bc), tag_len);
  144|    247|      }
  145|    247|   }
  146|  3.04k|   #endif
  147|       |
  148|       |   #if defined(BOTAN_HAS_AEAD_GCM_SIV)
  149|       |   if(req.algo_name() == "GCM-SIV") {
  150|       |      // Unlike GCM the tag length is fixed, so reject eg "AES-128/GCM-SIV(12)"
  151|       |      if(req.arg_count() != 1) {
  152|       |         return std::unique_ptr<AEAD_Mode>();
  153|       |      }
  154|       |      if(dir == Cipher_Dir::Encryption) {
  155|       |         return std::make_unique<GCM_SIV_Encryption>(std::move(bc));
  156|       |      } else {
  157|       |         return std::make_unique<GCM_SIV_Decryption>(std::move(bc));
  158|       |      }
  159|       |   }
  160|       |   #endif
  161|       |
  162|  3.04k|   #if defined(BOTAN_HAS_AEAD_OCB)
  163|  3.04k|   if(req.algo_name() == "OCB") {
  ------------------
  |  Branch (163:7): [True: 2.47k, False: 571]
  ------------------
  164|  2.47k|      const size_t tag_len = req.arg_as_integer(1, 16);
  165|  2.47k|      if(dir == Cipher_Dir::Encryption) {
  ------------------
  |  Branch (165:10): [True: 0, False: 2.47k]
  ------------------
  166|      0|         return std::make_unique<OCB_Encryption>(std::move(bc), tag_len);
  167|  2.47k|      } else {
  168|  2.47k|         return std::make_unique<OCB_Decryption>(std::move(bc), tag_len);
  169|  2.47k|      }
  170|  2.47k|   }
  171|    571|   #endif
  172|       |
  173|    571|   #if defined(BOTAN_HAS_AEAD_EAX)
  174|    571|   if(req.algo_name() == "EAX") {
  ------------------
  |  Branch (174:7): [True: 571, False: 0]
  ------------------
  175|    571|      const size_t tag_len = req.arg_as_integer(1, bc->block_size());
  176|    571|      if(dir == Cipher_Dir::Encryption) {
  ------------------
  |  Branch (176:10): [True: 0, False: 571]
  ------------------
  177|      0|         return std::make_unique<EAX_Encryption>(std::move(bc), tag_len);
  178|    571|      } else {
  179|    571|         return std::make_unique<EAX_Decryption>(std::move(bc), tag_len);
  180|    571|      }
  181|    571|   }
  182|      0|   #endif
  183|       |
  184|       |   #if defined(BOTAN_HAS_AEAD_SIV)
  185|       |   if(req.algo_name() == "SIV") {
  186|       |      if(dir == Cipher_Dir::Encryption) {
  187|       |         return std::make_unique<SIV_Encryption>(std::move(bc));
  188|       |      } else {
  189|       |         return std::make_unique<SIV_Decryption>(std::move(bc));
  190|       |      }
  191|       |   }
  192|       |   #endif
  193|       |
  194|      0|#endif
  195|       |
  196|      0|   return std::unique_ptr<AEAD_Mode>();
  197|    571|}

_ZN5Botan8EAX_ModeC2ENSt3__110unique_ptrINS_11BlockCipherENS1_14default_deleteIS3_EEEEm:
   42|    571|      m_tag_size(tag_size),
   43|    571|      m_cipher(std::move(cipher)),
   44|    571|      m_ctr(std::make_unique<CTR_BE>(m_cipher->new_object())),
   45|    571|      m_cmac(std::make_unique<CMAC>(m_cipher->new_object())) {
   46|    571|   if(m_tag_size < 8 || m_tag_size > m_cmac->output_length()) {
  ------------------
  |  Branch (46:7): [True: 0, False: 571]
  |  Branch (46:25): [True: 0, False: 571]
  ------------------
   47|      0|      throw Invalid_Argument(fmt("Tag size {} is not allowed for {}", tag_size, name()));
   48|      0|   }
   49|    571|}
_ZN5Botan8EAX_Mode5resetEv:
   59|    594|void EAX_Mode::reset() {
   60|    594|   m_nonce_mac.clear();
   61|       |
   62|       |   // Clear out any data added to the CMAC calculation
   63|    594|   try {
   64|    594|      m_cmac->final();
   65|    594|   } catch(Key_Not_Set&) {}
   66|    594|}
_ZNK5Botan8EAX_Mode18update_granularityEv:
   72|    571|size_t EAX_Mode::update_granularity() const {
   73|    571|   return 1;
   74|    571|}
_ZNK5Botan8EAX_Mode17ideal_granularityEv:
   76|  1.14k|size_t EAX_Mode::ideal_granularity() const {
   77|  1.14k|   return m_cipher->parallel_bytes();
   78|  1.14k|}
_ZNK5Botan8EAX_Mode8key_specEv:
   80|    571|Key_Length_Specification EAX_Mode::key_spec() const {
   81|    571|   return m_ctr->key_spec();
   82|    571|}
_ZN5Botan8EAX_Mode12key_scheduleENSt3__14spanIKhLm18446744073709551615EEE:
   91|    571|void EAX_Mode::key_schedule(std::span<const uint8_t> key) {
   92|       |   /*
   93|       |   * These could share the key schedule, which is one nice part of EAX,
   94|       |   * but it's much easier to ignore that here...
   95|       |   */
   96|    571|   m_ctr->set_key(key);
   97|    571|   m_cmac->set_key(key);
   98|       |
   99|       |   // m_ad_mac was precomputed under the previous CMAC key (if any).
  100|       |   // Re-keying invalidates it; AD must be re-set after set_key.
  101|    571|   m_ad_mac.clear();
  102|       |
  103|       |   // Also drop any per-message state.
  104|    571|   reset();
  105|    571|}
_ZN5Botan8EAX_Mode21set_associated_data_nEmNSt3__14spanIKhLm18446744073709551615EEE:
  110|    594|void EAX_Mode::set_associated_data_n(size_t idx, std::span<const uint8_t> ad) {
  111|    594|   BOTAN_ARG_CHECK(idx == 0, "EAX: cannot handle non-zero index in set_associated_data_n");
  ------------------
  |  |   35|    594|   do {                                                          \
  |  |   36|    594|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    594|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 594]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    594|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 594]
  |  |  ------------------
  ------------------
  112|    594|   if(!m_nonce_mac.empty()) {
  ------------------
  |  Branch (112:7): [True: 0, False: 594]
  ------------------
  113|      0|      throw Invalid_State("Cannot set AD for EAX while processing a message");
  114|      0|   }
  115|    594|   m_ad_mac = eax_prf(1, block_size(), *m_cmac, ad.data(), ad.size());
  116|    594|}
_ZN5Botan8EAX_Mode9start_msgEPKhm:
  118|    594|void EAX_Mode::start_msg(const uint8_t nonce[], size_t nonce_len) {
  119|    594|   BOTAN_STATE_CHECK(m_nonce_mac.empty());
  ------------------
  |  |   51|    594|   do {                                                         \
  |  |   52|    594|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|    594|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 594]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|    594|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 594]
  |  |  ------------------
  ------------------
  120|       |
  121|    594|   if(!valid_nonce_length(nonce_len)) {
  ------------------
  |  Branch (121:7): [True: 0, False: 594]
  ------------------
  122|      0|      throw Invalid_IV_Length(name(), nonce_len);
  123|      0|   }
  124|       |
  125|    594|   m_nonce_mac = eax_prf(0, block_size(), *m_cmac, nonce, nonce_len);
  126|       |
  127|    594|   m_ctr->set_iv(m_nonce_mac.data(), m_nonce_mac.size());
  128|       |
  129|  6.12k|   for(size_t i = 0; i != block_size() - 1; ++i) {
  ------------------
  |  Branch (129:22): [True: 5.52k, False: 594]
  ------------------
  130|  5.52k|      m_cmac->update(0);
  131|  5.52k|   }
  132|    594|   m_cmac->update(2);
  133|    594|}
_ZN5Botan14EAX_Decryption11process_msgEPhm:
  170|   132k|size_t EAX_Decryption::process_msg(uint8_t buf[], size_t sz) {
  171|   132k|   BOTAN_STATE_CHECK(!m_nonce_mac.empty());
  ------------------
  |  |   51|   132k|   do {                                                         \
  |  |   52|   132k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|   132k|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 132k]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|   132k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 132k]
  |  |  ------------------
  ------------------
  172|   132k|   m_cmac->update(buf, sz);
  173|   132k|   m_ctr->cipher(buf, buf, sz);
  174|   132k|   return sz;
  175|   132k|}
_ZN5Botan14EAX_Decryption10finish_msgERNSt3__16vectorIhNS_16secure_allocatorIhEEEEm:
  177|    467|void EAX_Decryption::finish_msg(secure_vector<uint8_t>& buffer, size_t offset) {
  178|    467|   BOTAN_STATE_CHECK(!m_nonce_mac.empty());
  ------------------
  |  |   51|    467|   do {                                                         \
  |  |   52|    467|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|    467|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 467]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|    467|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 467]
  |  |  ------------------
  ------------------
  179|    467|   BOTAN_ARG_CHECK(buffer.size() >= offset, "Offset is out of range");
  ------------------
  |  |   35|    467|   do {                                                          \
  |  |   36|    467|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    467|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 467]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    467|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 467]
  |  |  ------------------
  ------------------
  180|    467|   const size_t sz = buffer.size() - offset;
  181|    467|   uint8_t* buf = buffer.data() + offset;
  182|       |
  183|    467|   BOTAN_ARG_CHECK(sz >= tag_size(), "input did not include the tag");
  ------------------
  |  |   35|    467|   do {                                                          \
  |  |   36|    467|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    467|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 467]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    467|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 467]
  |  |  ------------------
  ------------------
  184|       |
  185|    467|   const size_t remaining = sz - tag_size();
  186|       |
  187|    467|   if(remaining > 0) {
  ------------------
  |  Branch (187:7): [True: 454, False: 13]
  ------------------
  188|    454|      m_cmac->update(buf, remaining);
  189|    454|      m_ctr->cipher(buf, buf, remaining);
  190|    454|   }
  191|       |
  192|    467|   const uint8_t* included_tag = &buf[remaining];
  193|       |
  194|    467|   secure_vector<uint8_t> mac = m_cmac->final();
  195|    467|   mac ^= m_nonce_mac;
  196|       |
  197|    467|   if(m_ad_mac.empty()) {
  ------------------
  |  Branch (197:7): [True: 0, False: 467]
  ------------------
  198|      0|      m_ad_mac = eax_prf(1, block_size(), *m_cmac, nullptr, 0);
  199|      0|   }
  200|       |
  201|    467|   mac ^= m_ad_mac;
  202|       |
  203|    467|   const bool accept_mac = CT::is_equal(mac.data(), included_tag, tag_size()).as_bool();
  204|       |
  205|    467|   buffer.resize(offset + remaining);
  206|       |
  207|    467|   m_nonce_mac.clear();
  208|       |
  209|    467|   if(!accept_mac) {
  ------------------
  |  Branch (209:7): [True: 467, False: 0]
  ------------------
  210|    467|      clear_mem(std::span{buffer}.subspan(offset, remaining));
  211|    467|      throw Invalid_Authentication_Tag("EAX tag check failed");
  212|    467|   }
  213|    467|}
eax.cpp:_ZN5Botan12_GLOBAL__N_17eax_prfEhmRNS_25MessageAuthenticationCodeEPKhm:
   27|  1.18k|   uint8_t tag, size_t block_size, MessageAuthenticationCode& mac, const uint8_t in[], size_t length) {
   28|  12.2k|   for(size_t i = 0; i != block_size - 1; ++i) {
  ------------------
  |  Branch (28:22): [True: 11.0k, False: 1.18k]
  ------------------
   29|  11.0k|      mac.update(0);
   30|  11.0k|   }
   31|  1.18k|   mac.update(tag);
   32|  1.18k|   mac.update(in, length);
   33|  1.18k|   return mac.final();
   34|  1.18k|}

_ZN5Botan8GCM_ModeC2ENSt3__110unique_ptrINS_11BlockCipherENS1_14default_deleteIS3_EEEEm:
   27|    247|      m_tag_size(tag_size), m_cipher_name(cipher->name()) {
   28|    247|   if(cipher->block_size() != GCM_BS) {
  ------------------
  |  Branch (28:7): [True: 111, False: 136]
  ------------------
   29|    111|      throw Invalid_Argument("Invalid block cipher for GCM");
   30|    111|   }
   31|       |
   32|       |   /* We allow any of the values 128, 120, 112, 104, or 96 bits as a tag size */
   33|       |   /* 64 bit tag is still supported but deprecated and will be removed in the future */
   34|    136|   if(m_tag_size != 8 && (m_tag_size < 12 || m_tag_size > 16)) {
  ------------------
  |  Branch (34:7): [True: 136, False: 0]
  |  Branch (34:27): [True: 0, False: 136]
  |  Branch (34:46): [True: 0, False: 136]
  ------------------
   35|      0|      throw Invalid_Argument(fmt("{} cannot use a tag of {} bytes", name(), m_tag_size));
   36|      0|   }
   37|       |
   38|    136|   m_ctr = std::make_unique<CTR_BE>(std::move(cipher), 4);
   39|    136|   m_ghash = std::make_unique<GHASH>();
   40|    136|}
_ZN5Botan8GCM_ModeD2Ev:
   42|    136|GCM_Mode::~GCM_Mode() = default;
_ZN5Botan8GCM_Mode5resetEv:
   50|    139|void GCM_Mode::reset() {
   51|    139|   m_ghash->reset_state();
   52|    139|   m_in_msg = false;
   53|    139|}
_ZNK5Botan8GCM_Mode18update_granularityEv:
   63|  10.3k|size_t GCM_Mode::update_granularity() const {
   64|  10.3k|   return 1;
   65|  10.3k|}
_ZNK5Botan8GCM_Mode17ideal_granularityEv:
   67|    272|size_t GCM_Mode::ideal_granularity() const {
   68|    272|   return GCM_BS * std::max<size_t>(2, BlockCipher::ParallelismMult);
   69|    272|}
_ZNK5Botan8GCM_Mode18valid_nonce_lengthEm:
   71|    139|bool GCM_Mode::valid_nonce_length(size_t len) const {
   72|       |   // GCM does not support empty nonces
   73|    139|   return (len > 0);
   74|    139|}
_ZNK5Botan8GCM_Mode8key_specEv:
   76|    136|Key_Length_Specification GCM_Mode::key_spec() const {
   77|    136|   return m_ctr->key_spec();
   78|    136|}
_ZN5Botan8GCM_Mode12key_scheduleENSt3__14spanIKhLm18446744073709551615EEE:
   84|    136|void GCM_Mode::key_schedule(std::span<const uint8_t> key) {
   85|    136|   reset();
   86|    136|   m_ctr->set_key(key);
   87|       |
   88|    136|   std::array<uint8_t, GCM_BS> zeros{};
   89|    136|   m_ctr->set_iv(zeros);
   90|       |
   91|    136|   uint8_t H[GCM_BS] = {0};
   92|    136|   m_ctr->encipher(H);
   93|    136|   m_ghash->set_key(H);
   94|    136|}
_ZN5Botan8GCM_Mode21set_associated_data_nEmNSt3__14spanIKhLm18446744073709551615EEE:
   96|    139|void GCM_Mode::set_associated_data_n(size_t idx, std::span<const uint8_t> ad) {
   97|    139|   BOTAN_ARG_CHECK(idx == 0, "GCM: cannot handle non-zero index in set_associated_data_n");
  ------------------
  |  |   35|    139|   do {                                                          \
  |  |   36|    139|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    139|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 139]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    139|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 139]
  |  |  ------------------
  ------------------
   98|    139|   m_ghash->set_associated_data(ad);
   99|    139|}
_ZN5Botan8GCM_Mode9start_msgEPKhm:
  101|    139|void GCM_Mode::start_msg(const uint8_t nonce[], size_t nonce_len) {
  102|    139|   BOTAN_STATE_CHECK(!m_in_msg);
  ------------------
  |  |   51|    139|   do {                                                         \
  |  |   52|    139|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|    139|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 139]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|    139|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 139]
  |  |  ------------------
  ------------------
  103|       |
  104|    139|   if(!valid_nonce_length(nonce_len)) {
  ------------------
  |  Branch (104:7): [True: 0, False: 139]
  ------------------
  105|      0|      throw Invalid_IV_Length(name(), nonce_len);
  106|      0|   }
  107|       |
  108|    139|   std::array<uint8_t, GCM_BS> y0 = {};
  109|       |
  110|    139|   if(nonce_len == 12) {
  ------------------
  |  Branch (110:7): [True: 139, False: 0]
  ------------------
  111|    139|      copy_mem(y0.data(), nonce, nonce_len);
  112|    139|      y0[15] = 1;
  113|    139|   } else {
  114|      0|      m_ghash->nonce_hash(std::span<uint8_t, GCM_BS>(y0), {nonce, nonce_len});
  115|      0|   }
  116|       |
  117|    139|   m_ctr->set_iv(y0.data(), y0.size());
  118|       |
  119|    139|   clear_mem(y0.data(), y0.size());
  120|    139|   m_ctr->encipher(y0);
  121|       |
  122|    139|   m_ghash->start(y0);
  123|    139|   secure_scrub_memory(y0);
  124|    139|   m_in_msg = true;
  125|    139|}
_ZN5Botan14GCM_Decryption11process_msgEPhm:
  159|  10.2k|size_t GCM_Decryption::process_msg(uint8_t buf[], size_t sz) {
  160|  10.2k|   BOTAN_STATE_CHECK(m_in_msg);
  ------------------
  |  |   51|  10.2k|   do {                                                         \
  |  |   52|  10.2k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|  10.2k|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 10.2k]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|  10.2k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 10.2k]
  |  |  ------------------
  ------------------
  161|  10.2k|   BOTAN_ARG_CHECK(sz % update_granularity() == 0, "Invalid buffer size");
  ------------------
  |  |   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]
  |  |  ------------------
  ------------------
  162|  10.2k|   m_ghash->update({buf, sz});
  163|  10.2k|   m_ctr->cipher(buf, buf, sz);
  164|  10.2k|   return sz;
  165|  10.2k|}
_ZN5Botan14GCM_Decryption10finish_msgERNSt3__16vectorIhNS_16secure_allocatorIhEEEEm:
  167|    126|void GCM_Decryption::finish_msg(secure_vector<uint8_t>& buffer, size_t offset) {
  168|    126|   BOTAN_STATE_CHECK(m_in_msg);
  ------------------
  |  |   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]
  |  |  ------------------
  ------------------
  169|    126|   BOTAN_ARG_CHECK(offset <= buffer.size(), "Invalid offset");
  ------------------
  |  |   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]
  |  |  ------------------
  ------------------
  170|    126|   const size_t sz = buffer.size() - offset;
  171|    126|   uint8_t* buf = buffer.data() + offset;
  172|       |
  173|    126|   BOTAN_ARG_CHECK(sz >= tag_size(), "input did not include the tag");
  ------------------
  |  |   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]
  |  |  ------------------
  ------------------
  174|       |
  175|    126|   const size_t remaining = sz - tag_size();
  176|       |
  177|       |   // handle any final input before the tag
  178|    126|   if(remaining > 0) {
  ------------------
  |  Branch (178:7): [True: 121, False: 5]
  ------------------
  179|    121|      m_ghash->update({buf, remaining});
  180|    121|      m_ctr->cipher(buf, buf, remaining);
  181|    121|   }
  182|       |
  183|    126|   std::array<uint8_t, 16> mac = {0};
  184|    126|   m_ghash->final(std::span(mac).first(tag_size()));
  185|       |
  186|    126|   const uint8_t* included_tag = &buffer[remaining + offset];
  187|       |
  188|    126|   m_in_msg = false;
  189|       |
  190|    126|   if(!CT::is_equal(mac.data(), included_tag, tag_size()).as_bool()) {
  ------------------
  |  Branch (190:7): [True: 126, False: 0]
  ------------------
  191|    126|      clear_mem(std::span{buffer}.subspan(offset, remaining));
  192|    126|      throw Invalid_Authentication_Tag("GCM tag check failed");
  193|    126|   }
  194|       |
  195|      0|   buffer.resize(offset + remaining);
  196|      0|}

_ZN5Botan8OCB_ModeC2ENSt3__110unique_ptrINS_11BlockCipherENS1_14default_deleteIS3_EEEEm:
  166|  2.47k|      m_cipher(std::move(cipher)),
  167|  2.47k|      m_checksum(m_cipher->parallel_bytes()),
  168|  2.47k|      m_ad_hash(m_cipher->block_size()),
  169|  2.47k|      m_tag_size(tag_size),
  170|  2.47k|      m_block_size(m_cipher->block_size()),
  171|  2.47k|      m_par_blocks(m_cipher->parallel_bytes() / m_block_size) {
  172|  2.47k|   const size_t BS = block_size();
  173|       |
  174|       |   /*
  175|       |   * draft-krovetz-ocb-wide-d1 specifies OCB for several other block
  176|       |   * sizes but only 128, 192, 256 and 512 bit are currently supported
  177|       |   * by this implementation.
  178|       |   */
  179|  2.47k|   BOTAN_ARG_CHECK(BS == 16 || BS == 24 || BS == 32 || BS == 64, "Invalid block size for OCB");
  ------------------
  |  |   35|  2.47k|   do {                                                          \
  |  |   36|  2.47k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  14.0k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 277, False: 2.19k]
  |  |  |  Branch (37:12): [True: 0, False: 2.19k]
  |  |  |  Branch (37:12): [True: 0, False: 2.19k]
  |  |  |  Branch (37:12): [True: 0, False: 2.19k]
  |  |  ------------------
  |  |   38|  2.19k|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|  2.19k|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|  2.19k|      }                                                          \
  |  |   41|  2.47k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 2.47k]
  |  |  ------------------
  ------------------
  180|       |
  181|  2.47k|   BOTAN_ARG_CHECK(m_tag_size % 4 == 0 && m_tag_size >= 8 && m_tag_size <= BS && m_tag_size <= 32,
  ------------------
  |  |   35|  2.47k|   do {                                                          \
  |  |   36|  2.47k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  8.25k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 277, False: 2.19k]
  |  |  |  Branch (37:12): [True: 277, False: 0]
  |  |  |  Branch (37:12): [True: 277, False: 0]
  |  |  |  Branch (37:12): [True: 277, False: 0]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  2.47k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 2.47k]
  |  |  ------------------
  ------------------
  182|  2.47k|                   "Invalid OCB tag length");
  183|  2.47k|}
_ZN5Botan8OCB_ModeD2Ev:
  185|    277|OCB_Mode::~OCB_Mode() = default;
_ZN5Botan8OCB_Mode5resetEv:
  194|    551|void OCB_Mode::reset() {
  195|    551|   m_block_index = 0;
  196|    551|   zeroise(m_checksum);
  197|    551|   m_last_nonce.clear();
  198|    551|   m_stretch.clear();
  199|    551|   zeroise(m_nonce_buf);
  200|    551|   zeroise(m_offset);
  201|    551|   if(m_L) {
  ------------------
  |  Branch (201:7): [True: 551, False: 0]
  ------------------
  202|    551|      m_L->reset();
  203|    551|   }
  204|    551|}
_ZNK5Botan8OCB_Mode18valid_nonce_lengthEm:
  206|    285|bool OCB_Mode::valid_nonce_length(size_t length) const {
  207|    285|   if(length == 0) {
  ------------------
  |  Branch (207:7): [True: 0, False: 285]
  ------------------
  208|      0|      return false;
  209|      0|   }
  210|    285|   if(block_size() == 16) {
  ------------------
  |  Branch (210:7): [True: 285, False: 0]
  ------------------
  211|    285|      return length < 16;
  212|    285|   } else {
  213|      0|      return length < (block_size() - 1);
  214|      0|   }
  215|    285|}
_ZNK5Botan8OCB_Mode18update_granularityEv:
  221|  54.5k|size_t OCB_Mode::update_granularity() const {
  222|  54.5k|   return block_size();
  223|  54.5k|}
_ZNK5Botan8OCB_Mode17ideal_granularityEv:
  225|    554|size_t OCB_Mode::ideal_granularity() const {
  226|    554|   return (m_par_blocks * block_size());
  227|    554|}
_ZNK5Botan8OCB_Mode8key_specEv:
  229|    277|Key_Length_Specification OCB_Mode::key_spec() const {
  230|    277|   return m_cipher->key_spec();
  231|    277|}
_ZNK5Botan8OCB_Mode19has_keying_materialEv:
  233|  55.3k|bool OCB_Mode::has_keying_material() const {
  234|  55.3k|   return m_cipher->has_keying_material();
  235|  55.3k|}
_ZN5Botan8OCB_Mode12key_scheduleENSt3__14spanIKhLm18446744073709551615EEE:
  237|    277|void OCB_Mode::key_schedule(std::span<const uint8_t> key) {
  238|    277|   m_cipher->set_key(key);
  239|    277|   m_L = std::make_unique<L_computer>(*m_cipher);
  240|       |
  241|       |   // Drop all key-dependent per-message state: m_last_nonce/m_stretch are
  242|       |   // cached for the update_nonce() fast path and would otherwise allow a
  243|       |   // start_msg() with a same-valued nonce under the new key to silently
  244|       |   // reuse the stretch computed under the previous key.
  245|    277|   reset();
  246|       |
  247|       |   // m_ad_hash was precomputed against the previous L values and cipher
  248|       |   // key. Re-keying invalidates it; AD must be re-set after set_key.
  249|    277|   zeroise(m_ad_hash);
  250|    277|}
_ZN5Botan8OCB_Mode21set_associated_data_nEmNSt3__14spanIKhLm18446744073709551615EEE:
  252|    285|void OCB_Mode::set_associated_data_n(size_t idx, std::span<const uint8_t> ad) {
  253|    285|   BOTAN_ARG_CHECK(idx == 0, "OCB: cannot handle non-zero index in set_associated_data_n");
  ------------------
  |  |   35|    285|   do {                                                          \
  |  |   36|    285|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    285|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 285]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    285|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 285]
  |  |  ------------------
  ------------------
  254|    285|   assert_key_material_set();
  255|    285|   BOTAN_STATE_CHECK(!m_L->initialized());
  ------------------
  |  |   51|    285|   do {                                                         \
  |  |   52|    285|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|    285|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 285]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|    285|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 285]
  |  |  ------------------
  ------------------
  256|    285|   m_ad_hash = ocb_hash(*m_L, *m_cipher, ad.data(), ad.size());
  257|    285|}
_ZN5Botan8OCB_Mode12update_nonceEPKhm:
  259|    285|const secure_vector<uint8_t>& OCB_Mode::update_nonce(const uint8_t nonce[], size_t nonce_len) {
  260|    285|   const size_t BS = block_size();
  261|       |
  262|    285|   BOTAN_ASSERT(BS == 16 || BS == 24 || BS == 32 || BS == 64, "OCB block size is supported");
  ------------------
  |  |   64|    285|   do {                                                                                 \
  |  |   65|    285|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|    855|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:12): [True: 285, False: 0]
  |  |  |  Branch (66:12): [True: 0, False: 0]
  |  |  |  Branch (66:12): [True: 0, False: 0]
  |  |  |  Branch (66:12): [True: 0, False: 0]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|    285|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 285]
  |  |  ------------------
  ------------------
  263|       |
  264|       |   // NOLINTNEXTLINE(readability-avoid-nested-conditional-operator)
  265|    285|   const size_t MASKLEN = (BS == 16 ? 6 : ((BS == 24) ? 7 : 8));
  ------------------
  |  Branch (265:28): [True: 285, False: 0]
  |  Branch (265:44): [True: 0, False: 0]
  ------------------
  266|       |
  267|    285|   const uint8_t BOTTOM_MASK = static_cast<uint8_t>((static_cast<uint16_t>(1) << MASKLEN) - 1);
  268|       |
  269|    285|   m_nonce_buf.resize(BS);
  270|    285|   clear_mem(m_nonce_buf.data(), m_nonce_buf.size());
  271|       |
  272|    285|   copy_mem(&m_nonce_buf[BS - nonce_len], nonce, nonce_len);
  273|    285|   m_nonce_buf[0] = static_cast<uint8_t>(((tag_size() * 8) % (BS * 8)) << (BS <= 16 ? 1 : 0));
  ------------------
  |  Branch (273:76): [True: 285, False: 0]
  ------------------
  274|       |
  275|    285|   m_nonce_buf[BS - nonce_len - 1] ^= 1;
  276|       |
  277|    285|   const uint8_t bottom = m_nonce_buf[BS - 1] & BOTTOM_MASK;
  278|    285|   m_nonce_buf[BS - 1] &= ~BOTTOM_MASK;
  279|       |
  280|    285|   const bool need_new_stretch = (m_last_nonce != m_nonce_buf);
  281|       |
  282|    285|   if(need_new_stretch) {
  ------------------
  |  Branch (282:7): [True: 285, False: 0]
  ------------------
  283|    285|      m_last_nonce = m_nonce_buf;
  284|       |
  285|    285|      m_cipher->encrypt(m_nonce_buf);
  286|       |
  287|       |      /*
  288|       |      The loop bounds (BS vs BS/2) are derived from the relation
  289|       |      between the block size and the MASKLEN. Using the terminology
  290|       |      of draft-krovetz-ocb-wide, we have to derive enough bits in
  291|       |      ShiftedKtop to read up to BLOCKLEN+bottom bits from Stretch.
  292|       |
  293|       |                 +----------+---------+-------+---------+
  294|       |                 | BLOCKLEN | RESIDUE | SHIFT | MASKLEN |
  295|       |                 +----------+---------+-------+---------+
  296|       |                 |       32 |     141 |    17 |    4    |
  297|       |                 |       64 |      27 |    25 |    5    |
  298|       |                 |       96 |    1601 |    33 |    6    |
  299|       |                 |      128 |     135 |     8 |    6    |
  300|       |                 |      192 |     135 |    40 |    7    |
  301|       |                 |      256 |    1061 |     1 |    8    |
  302|       |                 |      384 |    4109 |    80 |    8    |
  303|       |                 |      512 |     293 |   176 |    8    |
  304|       |                 |     1024 |  524355 |   352 |    9    |
  305|       |                 +----------+---------+-------+---------+
  306|       |      */
  307|    285|      if(BS == 16) {
  ------------------
  |  Branch (307:10): [True: 285, False: 0]
  ------------------
  308|  2.56k|         for(size_t i = 0; i != BS / 2; ++i) {
  ------------------
  |  Branch (308:28): [True: 2.28k, False: 285]
  ------------------
  309|  2.28k|            m_nonce_buf.push_back(m_nonce_buf[i] ^ m_nonce_buf[i + 1]);
  310|  2.28k|         }
  311|    285|      } else if(BS == 24) {
  ------------------
  |  Branch (311:17): [True: 0, False: 0]
  ------------------
  312|      0|         for(size_t i = 0; i != 16; ++i) {
  ------------------
  |  Branch (312:28): [True: 0, False: 0]
  ------------------
  313|      0|            m_nonce_buf.push_back(m_nonce_buf[i] ^ m_nonce_buf[i + 5]);
  314|      0|         }
  315|      0|      } else if(BS == 32) {
  ------------------
  |  Branch (315:17): [True: 0, False: 0]
  ------------------
  316|      0|         for(size_t i = 0; i != BS; ++i) {
  ------------------
  |  Branch (316:28): [True: 0, False: 0]
  ------------------
  317|      0|            m_nonce_buf.push_back(m_nonce_buf[i] ^ (m_nonce_buf[i] << 1) ^ (m_nonce_buf[i + 1] >> 7));
  318|      0|         }
  319|      0|      } else if(BS == 64) {
  ------------------
  |  Branch (319:17): [True: 0, False: 0]
  ------------------
  320|      0|         for(size_t i = 0; i != BS / 2; ++i) {
  ------------------
  |  Branch (320:28): [True: 0, False: 0]
  ------------------
  321|      0|            m_nonce_buf.push_back(m_nonce_buf[i] ^ m_nonce_buf[i + 22]);
  322|      0|         }
  323|      0|      }
  324|       |
  325|    285|      m_stretch = m_nonce_buf;
  326|    285|   }
  327|       |
  328|       |   // now set the offset from stretch and bottom
  329|    285|   const size_t shift_bytes = bottom / 8;
  330|    285|   const size_t shift_bits = bottom % 8;
  331|       |
  332|    285|   BOTAN_ASSERT(m_stretch.size() >= BS + shift_bytes + 1, "Size ok");
  ------------------
  |  |   64|    285|   do {                                                                                 \
  |  |   65|    285|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|    285|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 285]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|    285|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 285]
  |  |  ------------------
  ------------------
  333|       |
  334|    285|   m_offset.resize(BS);
  335|  4.84k|   for(size_t i = 0; i != BS; ++i) {
  ------------------
  |  Branch (335:22): [True: 4.56k, False: 285]
  ------------------
  336|  4.56k|      m_offset[i] = (m_stretch[i + shift_bytes] << shift_bits);
  337|  4.56k|      m_offset[i] |= (m_stretch[i + shift_bytes + 1] >> (8 - shift_bits));
  338|  4.56k|   }
  339|       |
  340|    285|   return m_offset;
  341|    285|}
_ZN5Botan8OCB_Mode9start_msgEPKhm:
  343|    285|void OCB_Mode::start_msg(const uint8_t nonce[], size_t nonce_len) {
  344|    285|   if(!valid_nonce_length(nonce_len)) {
  ------------------
  |  Branch (344:7): [True: 0, False: 285]
  ------------------
  345|      0|      throw Invalid_IV_Length(name(), nonce_len);
  346|      0|   }
  347|       |
  348|    285|   assert_key_material_set();
  349|    285|   BOTAN_STATE_CHECK(!m_L->initialized());
  ------------------
  |  |   51|    285|   do {                                                         \
  |  |   52|    285|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|    285|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 285]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|    285|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 285]
  |  |  ------------------
  ------------------
  350|       |
  351|    285|   m_L->init(update_nonce(nonce, nonce_len));
  352|    285|   zeroise(m_checksum);
  353|    285|   m_block_index = 0;
  354|    285|}
_ZN5Botan14OCB_Decryption7decryptEPhm:
  448|  54.5k|void OCB_Decryption::decrypt(uint8_t buffer[], size_t blocks) {
  449|  54.5k|   assert_key_material_set();
  450|  54.5k|   BOTAN_STATE_CHECK(m_L->initialized());
  ------------------
  |  |   51|  54.5k|   do {                                                         \
  |  |   52|  54.5k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|  54.5k|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 54.5k]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|  54.5k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 54.5k]
  |  |  ------------------
  ------------------
  451|       |
  452|  54.5k|   const size_t BS = block_size();
  453|       |
  454|   119k|   while(blocks > 0) {
  ------------------
  |  Branch (454:10): [True: 65.4k, False: 54.5k]
  ------------------
  455|  65.4k|      const size_t proc_blocks = std::min(blocks, par_blocks());
  456|  65.4k|      const size_t proc_bytes = proc_blocks * BS;
  457|       |
  458|  65.4k|      const uint8_t* offsets = m_L->compute_offsets(m_block_index, proc_blocks);
  459|       |
  460|  65.4k|      xor_buf(buffer, offsets, proc_bytes);
  461|  65.4k|      m_cipher->decrypt_n(buffer, buffer, proc_blocks);
  462|  65.4k|      xor_buf(buffer, offsets, proc_bytes);
  463|       |
  464|  65.4k|      xor_buf(m_checksum.data(), buffer, proc_bytes);
  465|       |
  466|  65.4k|      buffer += proc_bytes;
  467|  65.4k|      blocks -= proc_blocks;
  468|  65.4k|      m_block_index += proc_blocks;
  469|  65.4k|   }
  470|  54.5k|}
_ZN5Botan14OCB_Decryption11process_msgEPhm:
  472|  54.2k|size_t OCB_Decryption::process_msg(uint8_t buf[], size_t sz) {
  473|  54.2k|   BOTAN_ARG_CHECK(sz % update_granularity() == 0, "Invalid OCB input size");
  ------------------
  |  |   35|  54.2k|   do {                                                          \
  |  |   36|  54.2k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  54.2k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 54.2k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  54.2k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 54.2k]
  |  |  ------------------
  ------------------
  474|  54.2k|   decrypt(buf, sz / block_size());
  475|  54.2k|   return sz;
  476|  54.2k|}
_ZN5Botan14OCB_Decryption10finish_msgERNSt3__16vectorIhNS_16secure_allocatorIhEEEEm:
  478|    266|void OCB_Decryption::finish_msg(secure_vector<uint8_t>& buffer, size_t offset) {
  479|    266|   assert_key_material_set();
  480|    266|   BOTAN_STATE_CHECK(m_L->initialized());
  ------------------
  |  |   51|    266|   do {                                                         \
  |  |   52|    266|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|    266|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 266]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|    266|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 266]
  |  |  ------------------
  ------------------
  481|       |
  482|    266|   const size_t BS = block_size();
  483|       |
  484|    266|   BOTAN_ARG_CHECK(buffer.size() >= offset, "Offset is out of range");
  ------------------
  |  |   35|    266|   do {                                                          \
  |  |   36|    266|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    266|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 266]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    266|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 266]
  |  |  ------------------
  ------------------
  485|    266|   const size_t sz = buffer.size() - offset;
  486|    266|   uint8_t* buf = buffer.data() + offset;
  487|       |
  488|    266|   BOTAN_ARG_CHECK(sz >= tag_size(), "input did not include the tag");
  ------------------
  |  |   35|    266|   do {                                                          \
  |  |   36|    266|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    266|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 266]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    266|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 266]
  |  |  ------------------
  ------------------
  489|       |
  490|    266|   const size_t remaining = sz - tag_size();
  491|       |
  492|    266|   secure_vector<uint8_t> mac(BS);
  493|       |
  494|    266|   if(remaining > 0) {
  ------------------
  |  Branch (494:7): [True: 253, False: 13]
  ------------------
  495|    253|      const size_t final_full_blocks = remaining / BS;
  496|    253|      const size_t final_bytes = remaining - (final_full_blocks * BS);
  497|       |
  498|    253|      decrypt(buf, final_full_blocks);
  499|    253|      mac ^= m_L->offset();
  500|       |
  501|    253|      if(final_bytes > 0) {
  ------------------
  |  Branch (501:10): [True: 145, False: 108]
  ------------------
  502|    145|         BOTAN_ASSERT(final_bytes < BS, "Only a partial block left");
  ------------------
  |  |   64|    145|   do {                                                                                 \
  |  |   65|    145|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|    145|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 145]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|    145|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 145]
  |  |  ------------------
  ------------------
  503|       |
  504|    145|         uint8_t* remainder = &buf[remaining - final_bytes];
  505|       |
  506|    145|         mac ^= m_L->star();
  507|    145|         secure_vector<uint8_t> pad(BS);
  508|    145|         m_cipher->encrypt(mac, pad);  // P_*
  509|    145|         xor_buf(remainder, pad.data(), final_bytes);
  510|       |
  511|    145|         xor_buf(m_checksum.data(), remainder, final_bytes);
  512|    145|         m_checksum[final_bytes] ^= 0x80;
  513|    145|      }
  514|    253|   } else {
  515|     13|      mac = m_L->offset();
  516|     13|   }
  517|       |
  518|       |   // compute the mac
  519|       |
  520|       |   // fold checksum
  521|  1.79k|   for(size_t i = 0; i != m_checksum.size(); i += BS) {
  ------------------
  |  Branch (521:22): [True: 1.53k, False: 266]
  ------------------
  522|  1.53k|      xor_buf(mac.data(), m_checksum.data() + i, BS);
  523|  1.53k|   }
  524|       |
  525|    266|   mac ^= m_L->dollar();
  526|    266|   m_cipher->encrypt(mac);
  527|    266|   mac ^= m_ad_hash;
  528|       |
  529|    266|   reset();
  530|       |
  531|       |   // compare mac
  532|    266|   const uint8_t* included_tag = &buf[remaining];
  533|       |
  534|    266|   if(!CT::is_equal(mac.data(), included_tag, tag_size()).as_bool()) {
  ------------------
  |  Branch (534:7): [True: 266, False: 0]
  ------------------
  535|    266|      clear_mem(std::span{buffer}.subspan(offset, remaining));
  536|    266|      throw Invalid_Authentication_Tag("OCB tag check failed");
  537|    266|   }
  538|       |
  539|       |   // remove tag from end of message
  540|      0|   buffer.resize(remaining + offset);
  541|      0|}
_ZN5Botan10L_computer5resetEv:
   51|    551|      void reset() { m_offset.clear(); }
_ZNK5Botan10L_computer11initializedEv:
   53|  55.3k|      bool initialized() const { return !m_offset.empty(); }
ocb.cpp:_ZN5Botan12_GLOBAL__N_18ocb_hashERKNS_10L_computerERKNS_11BlockCipherEPKhm:
  132|    285|secure_vector<uint8_t> ocb_hash(const L_computer& L, const BlockCipher& cipher, const uint8_t ad[], size_t ad_len) {
  133|    285|   const size_t BS = cipher.block_size();
  134|    285|   secure_vector<uint8_t> sum(BS);
  135|    285|   secure_vector<uint8_t> offset(BS);
  136|       |
  137|    285|   secure_vector<uint8_t> buf(BS);
  138|       |
  139|    285|   const size_t ad_blocks = (ad_len / BS);
  140|    285|   const size_t ad_remainder = (ad_len % BS);
  141|       |
  142|    293|   for(size_t i = 0; i != ad_blocks; ++i) {
  ------------------
  |  Branch (142:22): [True: 8, False: 285]
  ------------------
  143|       |      // this loop could run in parallel
  144|      8|      offset ^= L.get(var_ctz64(i + 1));
  145|      8|      buf = offset;
  146|      8|      xor_buf(buf.data(), &ad[BS * i], BS);
  147|      8|      cipher.encrypt(buf);
  148|      8|      sum ^= buf;
  149|      8|   }
  150|       |
  151|    285|   if(ad_remainder > 0) {
  ------------------
  |  Branch (151:7): [True: 285, False: 0]
  ------------------
  152|    285|      offset ^= L.star();
  153|    285|      buf = offset;
  154|    285|      xor_buf(buf.data(), &ad[BS * ad_blocks], ad_remainder);
  155|    285|      buf[ad_remainder] ^= 0x80;
  156|    285|      cipher.encrypt(buf);
  157|    285|      sum ^= buf;
  158|    285|   }
  159|       |
  160|    285|   return sum;
  161|    285|}
_ZNK5Botan10L_computer3getEm:
   61|   217k|      const secure_vector<uint8_t>& get(size_t i) const {
   62|   217k|         while(m_L.size() <= i) {
  ------------------
  |  Branch (62:16): [True: 183, False: 217k]
  ------------------
   63|    183|            m_L.push_back(poly_double(m_L.back()));
   64|    183|         }
   65|       |
   66|   217k|         return m_L[i];
   67|   217k|      }
_ZN5Botan10L_computer11poly_doubleERKNSt3__16vectorIhNS_16secure_allocatorIhEEEE:
  114|  2.67k|      static secure_vector<uint8_t> poly_double(const secure_vector<uint8_t>& in) {
  115|  2.67k|         secure_vector<uint8_t> out(in.size());
  116|  2.67k|         poly_double_n(out.data(), in.data(), out.size());
  117|  2.67k|         return out;
  118|  2.67k|      }
_ZN5Botan10L_computer4initERKNSt3__16vectorIhNS_16secure_allocatorIhEEEE:
   49|    285|      void init(const secure_vector<uint8_t>& offset) { m_offset = offset; }
_ZN5Botan10L_computer15compute_offsetsEmm:
   69|  65.4k|      const uint8_t* compute_offsets(uint64_t block_index, size_t blocks) {
   70|  65.4k|         BOTAN_ASSERT(blocks <= m_max_blocks, "OCB offsets");
  ------------------
  |  |   64|  65.4k|   do {                                                                                 \
  |  |   65|  65.4k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|  65.4k|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 65.4k]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|  65.4k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 65.4k]
  |  |  ------------------
  ------------------
   71|       |
   72|  65.4k|         uint8_t* offsets = m_offset_buf.data();
   73|       |
   74|  65.4k|         if(block_index % 4 == 0) {
  ------------------
  |  Branch (74:13): [True: 65.4k, False: 0]
  ------------------
   75|  65.4k|            const secure_vector<uint8_t>& L0 = get(0);
   76|  65.4k|            const secure_vector<uint8_t>& L1 = get(1);
   77|       |
   78|   151k|            while(blocks >= 4) {
  ------------------
  |  Branch (78:19): [True: 86.0k, False: 65.4k]
  ------------------
   79|       |               // ntz(4*i+1) == 0
   80|       |               // ntz(4*i+2) == 1
   81|       |               // ntz(4*i+3) == 0
   82|  86.0k|               block_index += 4;
   83|  86.0k|               const size_t ntz4 = var_ctz64(block_index);
   84|       |
   85|  86.0k|               xor_buf(offsets, m_offset.data(), L0.data(), m_BS);
   86|  86.0k|               offsets += m_BS;
   87|       |
   88|  86.0k|               xor_buf(offsets, offsets - m_BS, L1.data(), m_BS);
   89|  86.0k|               offsets += m_BS;
   90|       |
   91|  86.0k|               xor_buf(m_offset.data(), L1.data(), m_BS);
   92|  86.0k|               copy_mem(offsets, m_offset.data(), m_BS);
   93|  86.0k|               offsets += m_BS;
   94|       |
   95|  86.0k|               xor_buf(m_offset.data(), get(ntz4).data(), m_BS);
   96|  86.0k|               copy_mem(offsets, m_offset.data(), m_BS);
   97|  86.0k|               offsets += m_BS;
   98|       |
   99|  86.0k|               blocks -= 4;
  100|  86.0k|            }
  101|  65.4k|         }
  102|       |
  103|  65.7k|         for(size_t i = 0; i != blocks; ++i) {  // could be done in parallel
  ------------------
  |  Branch (103:28): [True: 342, False: 65.4k]
  ------------------
  104|    342|            const size_t ntz = var_ctz64(block_index + i + 1);
  105|    342|            xor_buf(m_offset.data(), get(ntz).data(), m_BS);
  106|    342|            copy_mem(offsets, m_offset.data(), m_BS);
  107|    342|            offsets += m_BS;
  108|    342|         }
  109|       |
  110|  65.4k|         return m_offset_buf.data();
  111|  65.4k|      }
_ZNK5Botan10L_computer6offsetEv:
   59|    266|      const secure_vector<uint8_t>& offset() const { return m_offset; }
_ZNK5Botan10L_computer4starEv:
   55|    707|      const secure_vector<uint8_t>& star() const { return m_L_star; }
_ZNK5Botan10L_computer6dollarEv:
   57|    543|      const secure_vector<uint8_t>& dollar() const { return m_L_dollar; }
_ZN5Botan10L_computerC2ERKNS_11BlockCipherE:
   25|    277|            m_BS(cipher.block_size()), m_max_blocks(cipher.parallel_bytes() / m_BS) {
   26|    277|         m_L_star.resize(m_BS);
   27|    277|         cipher.encrypt(m_L_star);
   28|    277|         m_L_dollar = poly_double(star());
   29|       |
   30|       |         // Preallocate the m_L vector to the maximum expected size to avoid
   31|       |         // re-allocations during runtime. This had caused a use-after-free in
   32|       |         // earlier versions, due to references into this buffer becoming stale
   33|       |         // in `compute_offset()`, after calling `get()` in the hot path.
   34|       |         //
   35|       |         // Note, that the list member won't be pre-allocated, so the expected
   36|       |         // memory overhead is negligible.
   37|       |         //
   38|       |         // See also https://github.com/randombit/botan/issues/3812
   39|    277|         m_L.reserve(65);
   40|    277|         m_L.push_back(poly_double(dollar()));
   41|       |
   42|  2.21k|         while(m_L.size() < 8) {
  ------------------
  |  Branch (42:16): [True: 1.93k, False: 277]
  ------------------
   43|  1.93k|            m_L.push_back(poly_double(m_L.back()));
   44|  1.93k|         }
   45|       |
   46|    277|         m_offset_buf.resize(m_BS * m_max_blocks);
   47|    277|      }

_ZN5Botan11Cipher_Mode6createENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEENS_10Cipher_DirES5_:
   56|  3.29k|                                                 std::string_view provider) {
   57|       |#if defined(BOTAN_HAS_COMMONCRYPTO)
   58|       |   if(provider.empty() || provider == "commoncrypto") {
   59|       |      if(auto cm = make_commoncrypto_cipher_mode(algo, direction))
   60|       |         return cm;
   61|       |
   62|       |      if(!provider.empty())
   63|       |         return nullptr;
   64|       |   }
   65|       |#endif
   66|       |
   67|  3.29k|   if(provider != "base" && !provider.empty()) {
  ------------------
  |  Branch (67:7): [True: 3.29k, False: 0]
  |  Branch (67:29): [True: 0, False: 3.29k]
  ------------------
   68|      0|      return nullptr;
   69|      0|   }
   70|       |
   71|  3.29k|#if defined(BOTAN_HAS_STREAM_CIPHER)
   72|  3.29k|   if(auto sc = StreamCipher::create(algo)) {
  ------------------
  |  Branch (72:12): [True: 0, False: 3.29k]
  ------------------
   73|      0|      return std::make_unique<Stream_Cipher_Mode>(std::move(sc));
   74|      0|   }
   75|  3.29k|#endif
   76|       |
   77|  3.29k|#if defined(BOTAN_HAS_AEAD_MODES)
   78|  3.29k|   if(auto aead = AEAD_Mode::create(algo, direction)) {
  ------------------
  |  Branch (78:12): [True: 984, False: 2.30k]
  ------------------
   79|    984|      return aead;
   80|    984|   }
   81|  2.30k|#endif
   82|       |
   83|  2.30k|   if(algo.find('/') != std::string::npos) {
  ------------------
  |  Branch (83:7): [True: 0, False: 2.30k]
  ------------------
   84|      0|      const std::vector<std::string> algo_parts = split_on(algo, '/');
   85|      0|      if(algo_parts.size() < 2) {
  ------------------
  |  Branch (85:10): [True: 0, False: 0]
  ------------------
   86|      0|         return std::unique_ptr<Cipher_Mode>();
   87|      0|      }
   88|      0|      const std::string_view cipher_name = algo_parts[0];
   89|      0|      const std::vector<std::string> mode_info = parse_algorithm_name(algo_parts[1]);
   90|       |
   91|      0|      if(mode_info.empty()) {
  ------------------
  |  Branch (91:10): [True: 0, False: 0]
  ------------------
   92|      0|         return std::unique_ptr<Cipher_Mode>();
   93|      0|      }
   94|       |
   95|      0|      std::ostringstream mode_name;
   96|       |
   97|      0|      mode_name << mode_info[0] << '(' << cipher_name;
   98|      0|      for(size_t i = 1; i < mode_info.size(); ++i) {
  ------------------
  |  Branch (98:25): [True: 0, False: 0]
  ------------------
   99|      0|         mode_name << ',' << mode_info[i];
  100|      0|      }
  101|      0|      for(size_t i = 2; i < algo_parts.size(); ++i) {
  ------------------
  |  Branch (101:25): [True: 0, False: 0]
  ------------------
  102|      0|         mode_name << ',' << algo_parts[i];
  103|      0|      }
  104|      0|      mode_name << ')';
  105|       |
  106|      0|      return Cipher_Mode::create(mode_name.str(), direction, provider);
  107|      0|   }
  108|       |
  109|  2.30k|#if defined(BOTAN_HAS_BLOCK_CIPHER)
  110|       |
  111|  2.30k|   const SCAN_Name spec(algo);
  112|       |
  113|  2.30k|   if(spec.arg_count() == 0) {
  ------------------
  |  Branch (113:7): [True: 0, False: 2.30k]
  ------------------
  114|      0|      return std::unique_ptr<Cipher_Mode>();
  115|      0|   }
  116|       |
  117|  2.30k|   auto bc = BlockCipher::create(spec.arg(0), provider);
  118|       |
  119|  2.30k|   if(!bc) {
  ------------------
  |  Branch (119:7): [True: 0, False: 2.30k]
  ------------------
  120|      0|      return std::unique_ptr<Cipher_Mode>();
  121|      0|   }
  122|       |
  123|  2.30k|   #if defined(BOTAN_HAS_MODE_CBC)
  124|  2.30k|   if(spec.algo_name() == "CBC") {
  ------------------
  |  Branch (124:7): [True: 0, False: 2.30k]
  ------------------
  125|      0|      const std::string padding = spec.arg(1, "PKCS7");
  126|       |
  127|      0|      if(padding == "CTS") {
  ------------------
  |  Branch (127:10): [True: 0, False: 0]
  ------------------
  128|      0|         if(direction == Cipher_Dir::Encryption) {
  ------------------
  |  Branch (128:13): [True: 0, False: 0]
  ------------------
  129|      0|            return std::make_unique<CTS_Encryption>(std::move(bc));
  130|      0|         } else {
  131|      0|            return std::make_unique<CTS_Decryption>(std::move(bc));
  132|      0|         }
  133|      0|      } else {
  134|      0|         auto pad = BlockCipherModePaddingMethod::create(padding);
  135|       |
  136|      0|         if(pad) {
  ------------------
  |  Branch (136:13): [True: 0, False: 0]
  ------------------
  137|      0|            if(direction == Cipher_Dir::Encryption) {
  ------------------
  |  Branch (137:16): [True: 0, False: 0]
  ------------------
  138|      0|               return std::make_unique<CBC_Encryption>(std::move(bc), std::move(pad));
  139|      0|            } else {
  140|      0|               return std::make_unique<CBC_Decryption>(std::move(bc), std::move(pad));
  141|      0|            }
  142|      0|         }
  143|      0|      }
  144|      0|   }
  145|  2.30k|   #endif
  146|       |
  147|       |   #if defined(BOTAN_HAS_MODE_XTS)
  148|       |   if(spec.algo_name() == "XTS") {
  149|       |      if(direction == Cipher_Dir::Encryption) {
  150|       |         return std::make_unique<XTS_Encryption>(std::move(bc));
  151|       |      } else {
  152|       |         return std::make_unique<XTS_Decryption>(std::move(bc));
  153|       |      }
  154|       |   }
  155|       |   #endif
  156|       |
  157|  2.30k|   #if defined(BOTAN_HAS_MODE_CFB)
  158|  2.30k|   if(spec.algo_name() == "CFB") {
  ------------------
  |  Branch (158:7): [True: 0, False: 2.30k]
  ------------------
  159|      0|      const size_t feedback_bits = spec.arg_as_integer(1, 8 * bc->block_size());
  160|      0|      if(direction == Cipher_Dir::Encryption) {
  ------------------
  |  Branch (160:10): [True: 0, False: 0]
  ------------------
  161|      0|         return std::make_unique<CFB_Encryption>(std::move(bc), feedback_bits);
  162|      0|      } else {
  163|      0|         return std::make_unique<CFB_Decryption>(std::move(bc), feedback_bits);
  164|      0|      }
  165|      0|   }
  166|  2.30k|   #endif
  167|       |
  168|  2.30k|#endif
  169|       |
  170|  2.30k|   return std::unique_ptr<Cipher_Mode>();
  171|  2.30k|}

_ZN5Botan6Argon26blamkaEPmS1_:
  169|  43.3M|void Argon2::blamka(uint64_t N[128], uint64_t T[128]) {
  170|       |#if defined(BOTAN_HAS_ARGON2_AVX512)
  171|       |   if(CPUID::has(CPUID::Feature::AVX512)) {
  172|       |      return Argon2::blamka_avx512(N, T);
  173|       |   }
  174|       |#endif
  175|       |
  176|       |#if defined(BOTAN_HAS_ARGON2_AVX2)
  177|       |   if(CPUID::has(CPUID::Feature::AVX2)) {
  178|       |      return Argon2::blamka_avx2(N, T);
  179|       |   }
  180|       |#endif
  181|       |
  182|       |#if defined(BOTAN_HAS_ARGON2_SIMD64)
  183|       |   if(CPUID::has(CPUID::Feature::SIMD_2X64)) {
  184|       |      return Argon2::blamka_simd64(N, T);
  185|       |   }
  186|       |#endif
  187|       |
  188|  43.3M|   copy_mem(T, N, 128);
  189|       |
  190|   390M|   for(size_t i = 0; i != 128; i += 16) {
  ------------------
  |  Branch (190:22): [True: 346M, False: 43.3M]
  ------------------
  191|   346M|      blamka_G(T[i + 0], T[i + 4], T[i + 8], T[i + 12]);
  192|   346M|      blamka_G(T[i + 1], T[i + 5], T[i + 9], T[i + 13]);
  193|   346M|      blamka_G(T[i + 2], T[i + 6], T[i + 10], T[i + 14]);
  194|   346M|      blamka_G(T[i + 3], T[i + 7], T[i + 11], T[i + 15]);
  195|       |
  196|   346M|      blamka_G(T[i + 0], T[i + 5], T[i + 10], T[i + 15]);
  197|   346M|      blamka_G(T[i + 1], T[i + 6], T[i + 11], T[i + 12]);
  198|   346M|      blamka_G(T[i + 2], T[i + 7], T[i + 8], T[i + 13]);
  199|   346M|      blamka_G(T[i + 3], T[i + 4], T[i + 9], T[i + 14]);
  200|   346M|   }
  201|       |
  202|   390M|   for(size_t i = 0; i != 128 / 8; i += 2) {
  ------------------
  |  Branch (202:22): [True: 346M, False: 43.3M]
  ------------------
  203|   346M|      blamka_G(T[i + 0], T[i + 32], T[i + 64], T[i + 96]);
  204|   346M|      blamka_G(T[i + 1], T[i + 33], T[i + 65], T[i + 97]);
  205|   346M|      blamka_G(T[i + 16], T[i + 48], T[i + 80], T[i + 112]);
  206|   346M|      blamka_G(T[i + 17], T[i + 49], T[i + 81], T[i + 113]);
  207|       |
  208|   346M|      blamka_G(T[i + 0], T[i + 33], T[i + 80], T[i + 113]);
  209|   346M|      blamka_G(T[i + 1], T[i + 48], T[i + 81], T[i + 96]);
  210|   346M|      blamka_G(T[i + 16], T[i + 49], T[i + 64], T[i + 97]);
  211|   346M|      blamka_G(T[i + 17], T[i + 32], T[i + 65], T[i + 112]);
  212|   346M|   }
  213|       |
  214|  5.59G|   for(size_t i = 0; i != 128; ++i) {
  ------------------
  |  Branch (214:22): [True: 5.55G, False: 43.3M]
  ------------------
  215|  5.55G|      N[i] ^= T[i];
  216|  5.55G|   }
  217|  43.3M|}
_ZNK5Botan6Argon26argon2EPhmPKcmPKhmS5_mS5_m:
  401|    576|                    size_t ad_len) const {
  402|    576|   BOTAN_ARG_CHECK(output_len >= 4 && output_len <= std::numeric_limits<uint32_t>::max(),
  ------------------
  |  |   35|    576|   do {                                                          \
  |  |   36|    576|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  1.15k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 576, False: 0]
  |  |  |  Branch (37:12): [True: 576, False: 0]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    576|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 576]
  |  |  ------------------
  ------------------
  403|    576|                   "Invalid Argon2 output length");
  404|    576|   BOTAN_ARG_CHECK(password_len <= std::numeric_limits<uint32_t>::max(), "Invalid Argon2 password length");
  ------------------
  |  |   35|    576|   do {                                                          \
  |  |   36|    576|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    576|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 576]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    576|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 576]
  |  |  ------------------
  ------------------
  405|    576|   BOTAN_ARG_CHECK(salt_len <= std::numeric_limits<uint32_t>::max(), "Invalid Argon2 salt length");
  ------------------
  |  |   35|    576|   do {                                                          \
  |  |   36|    576|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    576|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 576]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    576|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 576]
  |  |  ------------------
  ------------------
  406|    576|   BOTAN_ARG_CHECK(key_len <= std::numeric_limits<uint32_t>::max(), "Invalid Argon2 key length");
  ------------------
  |  |   35|    576|   do {                                                          \
  |  |   36|    576|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    576|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 576]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    576|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 576]
  |  |  ------------------
  ------------------
  407|    576|   BOTAN_ARG_CHECK(ad_len <= std::numeric_limits<uint32_t>::max(), "Invalid Argon2 ad length");
  ------------------
  |  |   35|    576|   do {                                                          \
  |  |   36|    576|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    576|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 576]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    576|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 576]
  |  |  ------------------
  ------------------
  408|       |
  409|    576|   auto blake2 = HashFunction::create_or_throw("BLAKE2b");
  410|       |
  411|    576|   uint8_t H0[64] = {0};
  412|    576|   argon2_H0(H0,
  413|    576|             *blake2,
  414|    576|             output_len,
  415|    576|             password,
  416|    576|             password_len,
  417|    576|             salt,
  418|    576|             salt_len,
  419|    576|             key,
  420|    576|             key_len,
  421|    576|             ad,
  422|    576|             ad_len,
  423|    576|             m_family,
  424|    576|             m_p,
  425|    576|             m_M,
  426|    576|             m_t);
  427|       |
  428|    576|   const size_t memory = (m_M / (SYNC_POINTS * m_p)) * (SYNC_POINTS * m_p);
  429|       |
  430|    576|   constexpr size_t M_scale = 1024 / 8;
  431|    576|   secure_vector<uint64_t> B(memory * M_scale);
  432|       |
  433|    576|   init_blocks(B, *blake2, H0, memory, m_p);
  434|    576|   process_blocks(B, m_t, memory, m_p, m_family);
  435|       |
  436|    576|   clear_mem(output, output_len);
  437|    576|   extract_key(output, output_len, B, memory, m_p);
  438|    576|}
argon2.cpp:_ZN5Botan12_GLOBAL__N_18blamka_GERmS1_S1_S1_:
  153|  5.55G|BOTAN_FORCE_INLINE void blamka_G(uint64_t& A, uint64_t& B, uint64_t& C, uint64_t& D) {
  154|  5.55G|   A += B + (static_cast<uint64_t>(2) * static_cast<uint32_t>(A)) * static_cast<uint32_t>(B);
  155|  5.55G|   D = rotr<32>(A ^ D);
  156|       |
  157|  5.55G|   C += D + (static_cast<uint64_t>(2) * static_cast<uint32_t>(C)) * static_cast<uint32_t>(D);
  158|  5.55G|   B = rotr<24>(B ^ C);
  159|       |
  160|  5.55G|   A += B + (static_cast<uint64_t>(2) * static_cast<uint32_t>(A)) * static_cast<uint32_t>(B);
  161|  5.55G|   D = rotr<16>(A ^ D);
  162|       |
  163|  5.55G|   C += D + (static_cast<uint64_t>(2) * static_cast<uint32_t>(C)) * static_cast<uint32_t>(D);
  164|  5.55G|   B = rotr<63>(B ^ C);
  165|  5.55G|}
argon2.cpp:_ZN5Botan12_GLOBAL__N_19argon2_H0EPhRNS_12HashFunctionEmPKcmPKhmS7_mS7_mmmmm:
   46|    576|               size_t t) {
   47|    576|   const uint8_t v = 19;  // Argon2 version code
   48|       |
   49|    576|   blake2b.update_le(static_cast<uint32_t>(p));
   50|    576|   blake2b.update_le(static_cast<uint32_t>(output_len));
   51|    576|   blake2b.update_le(static_cast<uint32_t>(M));
   52|    576|   blake2b.update_le(static_cast<uint32_t>(t));
   53|    576|   blake2b.update_le(static_cast<uint32_t>(v));
   54|    576|   blake2b.update_le(static_cast<uint32_t>(y));
   55|       |
   56|    576|   blake2b.update_le(static_cast<uint32_t>(password_len));
   57|    576|   blake2b.update(as_span_of_bytes(password, password_len));
   58|       |
   59|    576|   blake2b.update_le(static_cast<uint32_t>(salt_len));
   60|    576|   blake2b.update(salt, salt_len);
   61|       |
   62|    576|   blake2b.update_le(static_cast<uint32_t>(key_len));
   63|    576|   blake2b.update(key, key_len);
   64|       |
   65|    576|   blake2b.update_le(static_cast<uint32_t>(ad_len));
   66|    576|   blake2b.update(ad, ad_len);
   67|       |
   68|    576|   blake2b.final(H0);
   69|    576|}
argon2.cpp:_ZN5Botan12_GLOBAL__N_111init_blocksERNSt3__16vectorImNS_16secure_allocatorImEEEERNS_12HashFunctionEPKhmm:
  125|    576|   secure_vector<uint64_t>& B, HashFunction& blake2b, const uint8_t H0[64], size_t memory, size_t threads) {
  126|    576|   BOTAN_ASSERT_NOMSG(B.size() >= threads * 256);
  ------------------
  |  |   77|    576|   do {                                                                     \
  |  |   78|    576|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|    576|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 576]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|    576|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 576]
  |  |  ------------------
  ------------------
  127|       |
  128|  9.43k|   for(size_t i = 0; i != threads; ++i) {
  ------------------
  |  Branch (128:22): [True: 8.85k, False: 576]
  ------------------
  129|  8.85k|      const size_t B_off = i * (memory / threads);
  130|       |
  131|  8.85k|      BOTAN_ASSERT_NOMSG(B.size() >= 128 * (B_off + 2));
  ------------------
  |  |   77|  8.85k|   do {                                                                     \
  |  |   78|  8.85k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  8.85k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 8.85k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  8.85k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 8.85k]
  |  |  ------------------
  ------------------
  132|       |
  133|  26.5k|      for(size_t j = 0; j != 2; ++j) {
  ------------------
  |  Branch (133:25): [True: 17.7k, False: 8.85k]
  ------------------
  134|  17.7k|         uint8_t T[64] = {0};
  135|       |
  136|  17.7k|         blake2b.update_le(static_cast<uint32_t>(1024));
  137|  17.7k|         blake2b.update(H0, 64);
  138|  17.7k|         blake2b.update_le(static_cast<uint32_t>(j));
  139|  17.7k|         blake2b.update_le(static_cast<uint32_t>(i));
  140|  17.7k|         blake2b.final(T);
  141|       |
  142|   549k|         for(size_t k = 0; k != 30; ++k) {
  ------------------
  |  Branch (142:28): [True: 531k, False: 17.7k]
  ------------------
  143|   531k|            load_le(&B[128 * (B_off + j) + 4 * k], T, 32 / 8);
  144|   531k|            blake2b.update(T, 64);
  145|   531k|            blake2b.final(T);
  146|   531k|         }
  147|       |
  148|  17.7k|         load_le(&B[128 * (B_off + j) + 4 * 30], T, 64 / 8);
  149|  17.7k|      }
  150|  8.85k|   }
  151|    576|}
argon2.cpp:_ZN5Botan12_GLOBAL__N_114process_blocksERNSt3__16vectorImNS_16secure_allocatorImEEEEmmmh:
  353|    576|void process_blocks(secure_vector<uint64_t>& B, size_t t, size_t memory, size_t threads, uint8_t mode) {
  354|    576|   const size_t lanes = memory / threads;
  355|    576|   const size_t segments = lanes / SYNC_POINTS;
  356|       |
  357|       |#if defined(BOTAN_HAS_THREAD_UTILS)
  358|       |   if(threads > 1) {
  359|       |      auto& thread_pool = Thread_Pool::global_instance();
  360|       |
  361|       |      for(size_t n = 0; n != t; ++n) {
  362|       |         for(size_t slice = 0; slice != SYNC_POINTS; ++slice) {
  363|       |            std::vector<std::future<void>> fut_results;
  364|       |            fut_results.reserve(threads);
  365|       |
  366|       |            for(size_t lane = 0; lane != threads; ++lane) {
  367|       |               fut_results.push_back(thread_pool.run(
  368|       |                  process_block, std::ref(B), n, slice, lane, lanes, segments, threads, mode, memory, t));
  369|       |            }
  370|       |
  371|       |            for(auto& fut : fut_results) {
  372|       |               fut.get();
  373|       |            }
  374|       |         }
  375|       |      }
  376|       |
  377|       |      return;
  378|       |   }
  379|       |#endif
  380|       |
  381|  14.9k|   for(size_t n = 0; n != t; ++n) {
  ------------------
  |  Branch (381:22): [True: 14.3k, False: 576]
  ------------------
  382|  71.9k|      for(size_t slice = 0; slice != SYNC_POINTS; ++slice) {
  ------------------
  |  Branch (382:29): [True: 57.5k, False: 14.3k]
  ------------------
  383|  1.64M|         for(size_t lane = 0; lane != threads; ++lane) {
  ------------------
  |  Branch (383:31): [True: 1.58M, False: 57.5k]
  ------------------
  384|  1.58M|            process_block(B, n, slice, lane, lanes, segments, threads, mode, memory, t);
  385|  1.58M|         }
  386|  57.5k|      }
  387|  14.3k|   }
  388|    576|}
argon2.cpp:_ZN5Botan12_GLOBAL__N_113process_blockERNSt3__16vectorImNS_16secure_allocatorImEEEEmmmmmmhmm:
  306|  1.58M|                   size_t time) {
  307|  1.58M|   uint64_t T[128];
  308|  1.58M|   size_t index = 0;
  309|  1.58M|   if(n == 0 && slice == 0) {
  ------------------
  |  Branch (309:7): [True: 35.4k, False: 1.54M]
  |  Branch (309:17): [True: 8.85k, False: 26.5k]
  ------------------
  310|  8.85k|      index = 2;
  311|  8.85k|   }
  312|       |
  313|  1.58M|   const bool use_2i = mode == 1 || (mode == 2 && n == 0 && slice < SYNC_POINTS / 2);
  ------------------
  |  Branch (313:24): [True: 0, False: 1.58M]
  |  Branch (313:38): [True: 1.58M, False: 0]
  |  Branch (313:51): [True: 35.4k, False: 1.54M]
  |  Branch (313:61): [True: 17.7k, False: 17.7k]
  ------------------
  314|       |
  315|  1.58M|   uint64_t addresses[128];
  316|  1.58M|   size_t address_counter = 1;
  317|       |
  318|  1.58M|   if(use_2i) {
  ------------------
  |  Branch (318:7): [True: 17.7k, False: 1.56M]
  ------------------
  319|  17.7k|      gen_2i_addresses(T, addresses, n, lane, slice, memory, time, mode, address_counter);
  320|  17.7k|   }
  321|       |
  322|  44.8M|   while(index < segments) {
  ------------------
  |  Branch (322:10): [True: 43.3M, False: 1.58M]
  ------------------
  323|  43.3M|      const size_t offset = lane * lanes + slice * segments + index;
  324|       |
  325|  43.3M|      size_t prev = offset - 1;
  326|  43.3M|      if(index == 0 && slice == 0) {
  ------------------
  |  Branch (326:10): [True: 1.57M, False: 41.7M]
  |  Branch (326:24): [True: 387k, False: 1.18M]
  ------------------
  327|   387k|         prev += lanes;
  328|   387k|      }
  329|       |
  330|  43.3M|      if(use_2i && index > 0 && index % 128 == 0) {
  ------------------
  |  Branch (330:10): [True: 2.06M, False: 41.2M]
  |  Branch (330:20): [True: 2.05M, False: 8.85k]
  |  Branch (330:33): [True: 14.3k, False: 2.03M]
  ------------------
  331|  14.3k|         address_counter += 1;
  332|  14.3k|         gen_2i_addresses(T, addresses, n, lane, slice, memory, time, mode, address_counter);
  333|  14.3k|      }
  334|       |
  335|  43.3M|      const uint64_t random = use_2i ? addresses[index % 128] : B.at(128 * prev);
  ------------------
  |  Branch (335:31): [True: 2.06M, False: 41.2M]
  ------------------
  336|  43.3M|      const size_t new_offset = index_alpha(random, lanes, segments, threads, n, slice, lane, index);
  337|       |
  338|  43.3M|      uint64_t N[128];
  339|  5.58G|      for(size_t i = 0; i != 128; ++i) {
  ------------------
  |  Branch (339:25): [True: 5.54G, False: 43.3M]
  ------------------
  340|  5.54G|         N[i] = B[128 * prev + i] ^ B[128 * new_offset + i];
  341|  5.54G|      }
  342|       |
  343|  43.3M|      Argon2::blamka(N, T);
  344|       |
  345|  5.58G|      for(size_t i = 0; i != 128; ++i) {
  ------------------
  |  Branch (345:25): [True: 5.54G, False: 43.3M]
  ------------------
  346|  5.54G|         B[128 * offset + i] ^= N[i];
  347|  5.54G|      }
  348|       |
  349|  43.3M|      index += 1;
  350|  43.3M|   }
  351|  1.58M|}
argon2.cpp:_ZN5Botan12_GLOBAL__N_116gen_2i_addressesEPmS1_mmmmmmm:
  229|  32.0k|                      size_t cnt) {
  230|  32.0k|   clear_mem(B, 128);
  231|       |
  232|  32.0k|   B[0] = n;
  233|  32.0k|   B[1] = lane;
  234|  32.0k|   B[2] = slice;
  235|  32.0k|   B[3] = memory;
  236|  32.0k|   B[4] = time;
  237|  32.0k|   B[5] = mode;
  238|  32.0k|   B[6] = cnt;
  239|       |
  240|  96.0k|   for(size_t r = 0; r != 2; ++r) {
  ------------------
  |  Branch (240:22): [True: 64.0k, False: 32.0k]
  ------------------
  241|  64.0k|      Argon2::blamka(B, T);
  242|  64.0k|   }
  243|  32.0k|}
argon2.cpp:_ZN5Botan12_GLOBAL__N_111index_alphaEmmmmmmmm:
  264|  43.3M|   uint64_t random, size_t lanes, size_t segments, size_t threads, size_t n, size_t slice, size_t lane, size_t index) {
  265|  43.3M|   size_t ref_lane = mod_threads(static_cast<uint32_t>(random >> 32), threads);
  266|       |
  267|  43.3M|   if(n == 0 && slice == 0) {
  ------------------
  |  Branch (267:7): [True: 4.14M, False: 39.1M]
  |  Branch (267:17): [True: 1.02M, False: 3.11M]
  ------------------
  268|  1.02M|      ref_lane = lane;
  269|  1.02M|   }
  270|       |
  271|  43.3M|   size_t m = 3 * segments;
  272|  43.3M|   size_t s = ((slice + 1) % 4) * segments;
  273|       |
  274|  43.3M|   if(lane == ref_lane) {
  ------------------
  |  Branch (274:7): [True: 6.70M, False: 36.6M]
  ------------------
  275|  6.70M|      m += index;
  276|  6.70M|   }
  277|       |
  278|  43.3M|   if(n == 0) {
  ------------------
  |  Branch (278:7): [True: 4.14M, False: 39.1M]
  ------------------
  279|  4.14M|      m = slice * segments;
  280|  4.14M|      s = 0;
  281|  4.14M|      if(slice == 0 || lane == ref_lane) {
  ------------------
  |  Branch (281:10): [True: 1.02M, False: 3.11M]
  |  Branch (281:24): [True: 765k, False: 2.35M]
  ------------------
  282|  1.78M|         m += index;
  283|  1.78M|      }
  284|  4.14M|   }
  285|       |
  286|  43.3M|   if(index == 0 || lane == ref_lane) {
  ------------------
  |  Branch (286:7): [True: 1.57M, False: 41.7M]
  |  Branch (286:21): [True: 6.64M, False: 35.0M]
  ------------------
  287|  8.22M|      m -= 1;
  288|  8.22M|   }
  289|       |
  290|  43.3M|   uint64_t p = static_cast<uint32_t>(random);
  291|  43.3M|   p = (p * p) >> 32;
  292|  43.3M|   p = (p * m) >> 32;
  293|       |
  294|  43.3M|   return static_cast<uint32_t>(ref_lane * lanes + mod_lanes(s + m - (p + 1), lanes));
  295|  43.3M|}
argon2.cpp:_ZN5Botan12_GLOBAL__N_111mod_threadsEjm:
  246|  43.3M|inline size_t mod_threads(uint32_t random, size_t threads) {
  247|  43.3M|   if(is_power_of_2(threads)) {
  ------------------
  |  Branch (247:7): [True: 1.54M, False: 41.7M]
  ------------------
  248|  1.54M|      return random & static_cast<uint32_t>(threads - 1);
  249|  41.7M|   } else {
  250|  41.7M|      return random % threads;
  251|  41.7M|   }
  252|  43.3M|}
argon2.cpp:_ZN5Botan12_GLOBAL__N_19mod_lanesEmm:
  255|  43.3M|inline size_t mod_lanes(uint64_t alpha, size_t lanes) {
  256|  43.3M|   if(is_power_of_2(lanes)) {
  ------------------
  |  Branch (256:7): [True: 7.99M, False: 35.3M]
  ------------------
  257|  7.99M|      return static_cast<size_t>(alpha & static_cast<uint64_t>(lanes - 1));
  258|  35.3M|   } else {
  259|  35.3M|      return alpha % lanes;
  260|  35.3M|   }
  261|  43.3M|}
argon2.cpp:_ZN5Botan12_GLOBAL__N_111extract_keyEPhmRKNSt3__16vectorImNS_16secure_allocatorImEEEEmm:
   71|    576|void extract_key(uint8_t output[], size_t output_len, const secure_vector<uint64_t>& B, size_t memory, size_t threads) {
   72|    576|   const size_t lanes = memory / threads;
   73|       |
   74|    576|   uint64_t sum[128] = {0};
   75|       |
   76|  9.43k|   for(size_t lane = 0; lane != threads; ++lane) {
  ------------------
  |  Branch (76:25): [True: 8.85k, False: 576]
  ------------------
   77|  8.85k|      const size_t start = 128 * (lane * lanes + lanes - 1);
   78|  8.85k|      const size_t end = 128 * (lane * lanes + lanes);
   79|       |
   80|  1.14M|      for(size_t j = start; j != end; ++j) {
  ------------------
  |  Branch (80:29): [True: 1.13M, False: 8.85k]
  ------------------
   81|  1.13M|         sum[j % 128] ^= B[j];
   82|  1.13M|      }
   83|  8.85k|   }
   84|       |
   85|    576|   if(output_len <= 64) {
  ------------------
  |  Branch (85:7): [True: 576, False: 0]
  ------------------
   86|    576|      auto blake2b = HashFunction::create_or_throw(fmt("BLAKE2b({})", output_len * 8));
   87|    576|      blake2b->update_le(static_cast<uint32_t>(output_len));
   88|  74.3k|      for(size_t i = 0; i != 128; ++i) {  // NOLINT(modernize-loop-convert)
  ------------------
  |  Branch (88:25): [True: 73.7k, False: 576]
  ------------------
   89|  73.7k|         blake2b->update_le(sum[i]);
   90|  73.7k|      }
   91|    576|      blake2b->final(output);
   92|    576|   } else {
   93|      0|      secure_vector<uint8_t> T(64);
   94|       |
   95|      0|      auto blake2b = HashFunction::create_or_throw("BLAKE2b(512)");
   96|      0|      blake2b->update_le(static_cast<uint32_t>(output_len));
   97|      0|      for(size_t i = 0; i != 128; ++i) {  // NOLINT(modernize-loop-convert)
  ------------------
  |  Branch (97:25): [True: 0, False: 0]
  ------------------
   98|      0|         blake2b->update_le(sum[i]);
   99|      0|      }
  100|      0|      blake2b->final(std::span{T});
  101|       |
  102|      0|      while(output_len > 64) {
  ------------------
  |  Branch (102:13): [True: 0, False: 0]
  ------------------
  103|      0|         copy_mem(output, T.data(), 32);
  104|      0|         output_len -= 32;
  105|      0|         output += 32;
  106|       |
  107|      0|         if(output_len > 64) {
  ------------------
  |  Branch (107:13): [True: 0, False: 0]
  ------------------
  108|      0|            blake2b->update(T);
  109|      0|            blake2b->final(std::span{T});
  110|      0|         }
  111|      0|      }
  112|       |
  113|      0|      if(output_len == 64) {
  ------------------
  |  Branch (113:10): [True: 0, False: 0]
  ------------------
  114|      0|         blake2b->update(T);
  115|      0|         blake2b->final(output);
  116|      0|      } else {
  117|      0|         auto blake2b_f = HashFunction::create_or_throw(fmt("BLAKE2b({})", output_len * 8));
  118|      0|         blake2b_f->update(T);
  119|      0|         blake2b_f->final(output);
  120|      0|      }
  121|      0|   }
  122|    576|}

_ZN5Botan6Argon2C2Ehmmm:
   37|    737|Argon2::Argon2(uint8_t family, size_t M, size_t t, size_t p) : m_family(family), m_M(M), m_t(t), m_p(p) {
   38|    737|   BOTAN_ARG_CHECK(m_family == 0 || m_family == 1 || m_family == 2, "Invalid Argon2 family parameter");
  ------------------
  |  |   35|    737|   do {                                                          \
  |  |   36|    737|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  2.94k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 0, False: 737]
  |  |  |  Branch (37:12): [True: 0, False: 737]
  |  |  |  Branch (37:12): [True: 737, False: 0]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    737|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 737]
  |  |  ------------------
  ------------------
   39|    737|   BOTAN_ARG_CHECK(m_p >= 1 && m_p <= 128, "Invalid Argon2 threads parameter");
  ------------------
  |  |   35|    737|   do {                                                          \
  |  |   36|    737|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  1.47k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 737, False: 0]
  |  |  |  Branch (37:12): [True: 664, False: 73]
  |  |  ------------------
  |  |   38|     73|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|     73|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|     73|      }                                                          \
  |  |   41|    737|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 737]
  |  |  ------------------
  ------------------
   40|    737|   BOTAN_ARG_CHECK(m_M >= 8 * m_p && m_M <= MAX_ARGON_MEMORY_GB * 1024 * 1024, "Invalid Argon2 M parameter");
  ------------------
  |  |   35|    737|   do {                                                          \
  |  |   36|    737|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  1.40k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 664, False: 73]
  |  |  |  Branch (37:12): [True: 576, False: 88]
  |  |  ------------------
  |  |   38|     88|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|     88|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|     88|      }                                                          \
  |  |   41|    737|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 737]
  |  |  ------------------
  ------------------
   41|    737|   BOTAN_ARG_CHECK(m_t >= 1 && m_t <= std::numeric_limits<uint32_t>::max(), "Invalid Argon2 t parameter");
  ------------------
  |  |   35|    737|   do {                                                          \
  |  |   36|    737|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  1.31k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 576, False: 161]
  |  |  |  Branch (37:12): [True: 576, False: 0]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    737|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 737]
  |  |  ------------------
  ------------------
   42|    737|}
_ZNK5Botan6Argon210derive_keyEPhmPKcmPKhm:
   49|    576|                        size_t salt_len) const {
   50|    576|   argon2(output, output_len, password, password_len, salt, salt_len, nullptr, 0, nullptr, 0);
   51|    576|}
_ZN5Botan13Argon2_FamilyC2Eh:
   70|    737|Argon2_Family::Argon2_Family(uint8_t family) : m_family(family) {
   71|    737|   if(m_family != 0 && m_family != 1 && m_family != 2) {
  ------------------
  |  Branch (71:7): [True: 737, False: 0]
  |  Branch (71:24): [True: 737, False: 0]
  |  Branch (71:41): [True: 0, False: 737]
  ------------------
   72|      0|      throw Invalid_Argument("Unknown Argon2 family identifier");
   73|      0|   }
   74|    737|}
_ZNK5Botan13Argon2_Family11from_paramsEmmm:
  149|    737|std::unique_ptr<PasswordHash> Argon2_Family::from_params(size_t M, size_t t, size_t p) const {
  150|    737|   return std::make_unique<Argon2>(m_family, M, t, p);
  151|    737|}

_ZNK5Botan18RFC4880_S2K_Family11from_paramsEmmm:
  119|  59.3k|                                                              size_t /*unused*/) const {
  120|  59.3k|   return std::make_unique<RFC4880_S2K>(m_hash->new_object(), iterations);
  121|  59.3k|}
_ZN5Botan11RFC4880_S2KC2ENSt3__110unique_ptrINS_12HashFunctionENS1_14default_deleteIS3_EEEEm:
  132|  59.3k|      m_hash(std::move(hash)), m_iterations(iterations) {}
_ZNK5Botan11RFC4880_S2K10derive_keyEPhmPKcmPKhm:
  143|  59.3k|                             size_t salt_len) const {
  144|  59.3k|   pgp_s2k(*m_hash, out, out_len, password, password_len, salt, salt_len, m_iterations);
  145|  59.3k|}
pgp_s2k.cpp:_ZN5Botan12_GLOBAL__N_17pgp_s2kERNS_12HashFunctionEPhmPKcmPKhmm:
   30|  59.3k|             size_t iterations) {
   31|  59.3k|   if(iterations > 1 && salt_len == 0) {
  ------------------
  |  Branch (31:7): [True: 1.23k, False: 58.0k]
  |  Branch (31:25): [True: 0, False: 1.23k]
  ------------------
   32|      0|      throw Invalid_Argument("OpenPGP S2K requires a salt in iterated mode");
   33|      0|   }
   34|       |
   35|  59.3k|   const size_t input_len = add_or_throw(salt_len, password_size, "OpenPGP S2K salt and password are too large");
   36|  59.3k|   secure_vector<uint8_t> input_buf(input_len);
   37|  59.3k|   if(salt_len > 0) {
  ------------------
  |  Branch (37:7): [True: 2.19k, False: 57.1k]
  ------------------
   38|  2.19k|      copy_mem(input_buf.data(), salt, salt_len);
   39|  2.19k|   }
   40|  59.3k|   if(password_size > 0) {
  ------------------
  |  Branch (40:7): [True: 56.0k, False: 3.29k]
  ------------------
   41|  56.0k|      copy_mem(std::span(input_buf).subspan(salt_len), as_span_of_bytes(password, password_size));
   42|  56.0k|   }
   43|       |
   44|  59.3k|   secure_vector<uint8_t> hash_buf(hash.output_length());
   45|       |
   46|  59.3k|   size_t pass = 0;
   47|  59.3k|   size_t generated = 0;
   48|       |
   49|   132k|   while(generated != output_len) {
  ------------------
  |  Branch (49:10): [True: 73.1k, False: 59.3k]
  ------------------
   50|  73.1k|      const size_t output_this_pass = std::min(hash_buf.size(), output_len - generated);
   51|       |
   52|       |      // Preload some number of zero bytes (empty first iteration)
   53|  73.1k|      std::vector<uint8_t> zero_padding(pass);
   54|  73.1k|      hash.update(zero_padding);
   55|       |
   56|       |      // The input is always fully processed even if iterations is very small
   57|  73.1k|      if(!input_buf.empty()) {
  ------------------
  |  Branch (57:10): [True: 68.9k, False: 4.19k]
  ------------------
   58|  68.9k|         size_t left = std::max(iterations, input_buf.size());
   59|   375M|         while(left > 0) {
  ------------------
  |  Branch (59:16): [True: 375M, False: 68.9k]
  ------------------
   60|   375M|            const size_t input_to_take = std::min(left, input_buf.size());
   61|   375M|            hash.update(input_buf.data(), input_to_take);
   62|   375M|            left -= input_to_take;
   63|   375M|         }
   64|  68.9k|      }
   65|       |
   66|  73.1k|      hash.final(hash_buf.data());
   67|  73.1k|      copy_mem(output_buf + generated, hash_buf.data(), output_this_pass);
   68|  73.1k|      generated += output_this_pass;
   69|  73.1k|      ++pass;
   70|  73.1k|   }
   71|  59.3k|}

_ZN5Botan18PasswordHashFamily6createENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEES5_:
   58|  65.6k|std::unique_ptr<PasswordHashFamily> PasswordHashFamily::create(std::string_view algo_spec, std::string_view provider) {
   59|  65.6k|   const SCAN_Name req(algo_spec);
   60|       |
   61|       |#if defined(BOTAN_HAS_PBKDF2)
   62|       |   if(req.algo_name() == "PBKDF2") {
   63|       |      if(provider.empty() || provider == "base") {
   64|       |         if(auto mac = MessageAuthenticationCode::create("HMAC(" + req.arg(0) + ")")) {
   65|       |            return std::make_unique<PBKDF2_Family>(std::move(mac));
   66|       |         }
   67|       |
   68|       |         if(auto mac = MessageAuthenticationCode::create(req.arg(0))) {
   69|       |            return std::make_unique<PBKDF2_Family>(std::move(mac));
   70|       |         }
   71|       |      }
   72|       |
   73|       |      return nullptr;
   74|       |   }
   75|       |#endif
   76|       |
   77|       |#if defined(BOTAN_HAS_SCRYPT)
   78|       |   if(req.algo_name() == "Scrypt") {
   79|       |      return std::make_unique<Scrypt_Family>();
   80|       |   }
   81|       |#endif
   82|       |
   83|  65.6k|#if defined(BOTAN_HAS_ARGON2)
   84|  65.6k|   if(req.algo_name() == "Argon2d") {
  ------------------
  |  Branch (84:7): [True: 0, False: 65.6k]
  ------------------
   85|      0|      return std::make_unique<Argon2_Family>(static_cast<uint8_t>(0));
   86|  65.6k|   } else if(req.algo_name() == "Argon2i") {
  ------------------
  |  Branch (86:14): [True: 0, False: 65.6k]
  ------------------
   87|      0|      return std::make_unique<Argon2_Family>(static_cast<uint8_t>(1));
   88|  65.6k|   } else if(req.algo_name() == "Argon2id") {
  ------------------
  |  Branch (88:14): [True: 737, False: 64.9k]
  ------------------
   89|    737|      return std::make_unique<Argon2_Family>(static_cast<uint8_t>(2));
   90|    737|   }
   91|  64.9k|#endif
   92|       |
   93|       |#if defined(BOTAN_HAS_PBKDF_BCRYPT)
   94|       |   if(req.algo_name() == "Bcrypt-PBKDF") {
   95|       |      return std::make_unique<Bcrypt_PBKDF_Family>();
   96|       |   }
   97|       |#endif
   98|       |
   99|  64.9k|#if defined(BOTAN_HAS_PGP_S2K)
  100|  64.9k|   if(req.algo_name() == "OpenPGP-S2K" && req.arg_count() == 1) {
  ------------------
  |  Branch (100:7): [True: 64.9k, False: 0]
  |  Branch (100:43): [True: 64.9k, False: 0]
  ------------------
  101|  64.9k|      if(auto hash = HashFunction::create(req.arg(0))) {
  ------------------
  |  Branch (101:15): [True: 59.3k, False: 5.60k]
  ------------------
  102|  59.3k|         return std::make_unique<RFC4880_S2K_Family>(std::move(hash));
  103|  59.3k|      }
  104|  64.9k|   }
  105|  5.60k|#endif
  106|       |
  107|       |#if defined(BOTAN_HAS_PKCS12_KDF)
  108|       |   if(req.algo_name() == "PKCS12-KDF" && req.arg_count() == 2) {
  109|       |      if(auto hash = HashFunction::create(req.arg(0))) {
  110|       |         const auto id_param = req.arg_as_integer(1);
  111|       |         return std::make_unique<PKCS12_KDF_Family>(std::move(hash), id_param);
  112|       |      }
  113|       |   }
  114|       |#endif
  115|       |
  116|  5.60k|   BOTAN_UNUSED(req);
  ------------------
  |  |  144|  5.60k|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
  117|  5.60k|   BOTAN_UNUSED(provider);
  ------------------
  |  |  144|  5.60k|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
  118|       |
  119|  5.60k|   return nullptr;
  120|  64.9k|}

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

_ZN5Botan12pkcs_hash_idENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
   78|  4.33k|std::vector<uint8_t> pkcs_hash_id(std::string_view name) {
   79|       |   // Special case for SSL/TLS RSA signatures
   80|  4.33k|   if(name == "Parallel(MD5,SHA-1)") {
  ------------------
  |  Branch (80:7): [True: 0, False: 4.33k]
  ------------------
   81|      0|      return std::vector<uint8_t>();
   82|      0|   }
   83|       |
   84|       |   // If you add a value to this function, also update test_hash_id.cpp
   85|       |
   86|  4.33k|   if(name == "MD5") {
  ------------------
  |  Branch (86:7): [True: 3.47k, False: 869]
  ------------------
   87|  3.47k|      return std::vector<uint8_t>(MD5_PKCS_ID, MD5_PKCS_ID + sizeof(MD5_PKCS_ID));
   88|  3.47k|   }
   89|       |
   90|    869|   if(name == "RIPEMD-160") {
  ------------------
  |  Branch (90:7): [True: 137, False: 732]
  ------------------
   91|    137|      return std::vector<uint8_t>(RIPEMD_160_PKCS_ID, RIPEMD_160_PKCS_ID + sizeof(RIPEMD_160_PKCS_ID));
   92|    137|   }
   93|       |
   94|    732|   if(name == "SHA-1") {
  ------------------
  |  Branch (94:7): [True: 36, False: 696]
  ------------------
   95|     36|      return std::vector<uint8_t>(SHA_1_PKCS_ID, SHA_1_PKCS_ID + sizeof(SHA_1_PKCS_ID));
   96|     36|   }
   97|       |
   98|    696|   if(name == "SHA-224") {
  ------------------
  |  Branch (98:7): [True: 15, False: 681]
  ------------------
   99|     15|      return std::vector<uint8_t>(SHA_224_PKCS_ID, SHA_224_PKCS_ID + sizeof(SHA_224_PKCS_ID));
  100|     15|   }
  101|       |
  102|    681|   if(name == "SHA-256") {
  ------------------
  |  Branch (102:7): [True: 154, False: 527]
  ------------------
  103|    154|      return std::vector<uint8_t>(SHA_256_PKCS_ID, SHA_256_PKCS_ID + sizeof(SHA_256_PKCS_ID));
  104|    154|   }
  105|       |
  106|    527|   if(name == "SHA-384") {
  ------------------
  |  Branch (106:7): [True: 282, False: 245]
  ------------------
  107|    282|      return std::vector<uint8_t>(SHA_384_PKCS_ID, SHA_384_PKCS_ID + sizeof(SHA_384_PKCS_ID));
  108|    282|   }
  109|       |
  110|    245|   if(name == "SHA-512") {
  ------------------
  |  Branch (110:7): [True: 14, False: 231]
  ------------------
  111|     14|      return std::vector<uint8_t>(SHA_512_PKCS_ID, SHA_512_PKCS_ID + sizeof(SHA_512_PKCS_ID));
  112|     14|   }
  113|       |
  114|    231|   if(name == "SHA-512-256") {
  ------------------
  |  Branch (114:7): [True: 0, False: 231]
  ------------------
  115|      0|      return std::vector<uint8_t>(SHA_512_256_PKCS_ID, SHA_512_256_PKCS_ID + sizeof(SHA_512_256_PKCS_ID));
  116|      0|   }
  117|       |
  118|    231|   if(name == "SHA-3(224)") {
  ------------------
  |  Branch (118:7): [True: 0, False: 231]
  ------------------
  119|      0|      return std::vector<uint8_t>(SHA3_224_PKCS_ID, SHA3_224_PKCS_ID + sizeof(SHA3_224_PKCS_ID));
  120|      0|   }
  121|       |
  122|    231|   if(name == "SHA-3(256)") {
  ------------------
  |  Branch (122:7): [True: 11, False: 220]
  ------------------
  123|     11|      return std::vector<uint8_t>(SHA3_256_PKCS_ID, SHA3_256_PKCS_ID + sizeof(SHA3_256_PKCS_ID));
  124|     11|   }
  125|       |
  126|    220|   if(name == "SHA-3(384)") {
  ------------------
  |  Branch (126:7): [True: 0, False: 220]
  ------------------
  127|      0|      return std::vector<uint8_t>(SHA3_384_PKCS_ID, SHA3_384_PKCS_ID + sizeof(SHA3_384_PKCS_ID));
  128|      0|   }
  129|       |
  130|    220|   if(name == "SHA-3(512)") {
  ------------------
  |  Branch (130:7): [True: 14, False: 206]
  ------------------
  131|     14|      return std::vector<uint8_t>(SHA3_512_PKCS_ID, SHA3_512_PKCS_ID + sizeof(SHA3_512_PKCS_ID));
  132|     14|   }
  133|       |
  134|    206|   if(name == "SM3") {
  ------------------
  |  Branch (134:7): [True: 206, False: 0]
  ------------------
  135|    206|      return std::vector<uint8_t>(SM3_PKCS_ID, SM3_PKCS_ID + sizeof(SM3_PKCS_ID));
  136|    206|   }
  137|       |
  138|      0|   throw Invalid_Argument("No PKCS #1 identifier for " + std::string(name));
  139|    206|}

_ZN5Botan15RawHashFunction8add_dataENSt3__14spanIKhLm18446744073709551615EEE:
   14|  10.1k|void RawHashFunction::add_data(std::span<const uint8_t> input) {
   15|  10.1k|   m_bits += std::make_pair(input.data(), input.size());
   16|  10.1k|}
_ZN5Botan15RawHashFunction12final_resultENSt3__14spanIhLm18446744073709551615EEE:
   18|  10.1k|void RawHashFunction::final_result(std::span<uint8_t> out) {
   19|  10.1k|   if(m_output_length > 0 && m_bits.size() != m_output_length) {
  ------------------
  |  Branch (19:7): [True: 9.63k, False: 526]
  |  Branch (19:30): [True: 0, False: 9.63k]
  ------------------
   20|      0|      m_bits.clear();
   21|      0|      throw Invalid_Argument("Raw padding was configured to use a " + std::to_string(m_output_length) +
   22|      0|                             " byte hash but instead was used for a " + std::to_string(m_bits.size()) + " byte hash");
   23|      0|   }
   24|       |
   25|  10.1k|   copy_mem(out.data(), m_bits.data(), m_bits.size());
   26|  10.1k|   m_bits.clear();
   27|  10.1k|}
_ZNK5Botan15RawHashFunction13output_lengthEv:
   41|  10.1k|size_t RawHashFunction::output_length() const {
   42|  10.1k|   if(m_output_length > 0) {
  ------------------
  |  Branch (42:7): [True: 9.63k, False: 526]
  ------------------
   43|  9.63k|      return m_output_length;
   44|  9.63k|   }
   45|    526|   return m_bits.size();
   46|  10.1k|}

_ZN5Botan35PKCS1v15_Raw_SignaturePaddingSchemeC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  103|  4.33k|PKCS1v15_Raw_SignaturePaddingScheme::PKCS1v15_Raw_SignaturePaddingScheme(std::string_view hash_algo) {
  104|  4.33k|   std::unique_ptr<HashFunction> hash(HashFunction::create_or_throw(hash_algo));
  105|  4.33k|   m_hash_id = pkcs_hash_id(hash_algo);
  106|  4.33k|   m_hash_name = hash->name();
  107|  4.33k|   m_hash_output_len = hash->output_length();
  108|  4.33k|}
_ZN5Botan35PKCS1v15_Raw_SignaturePaddingScheme6updateEPKhm:
  110|  4.33k|void PKCS1v15_Raw_SignaturePaddingScheme::update(const uint8_t input[], size_t length) {
  111|  4.33k|   if(length > 0) {
  ------------------
  |  Branch (111:7): [True: 4.33k, False: 0]
  ------------------
  112|       |      // A sanity check to prevent someone from accidentally feeding an entire message
  113|       |      // into PKCS1v15(Raw), which would have to be buffered in memory
  114|  4.33k|      if(m_message.size() + length > 16384 / 8) {
  ------------------
  |  Branch (114:10): [True: 0, False: 4.33k]
  ------------------
  115|      0|         throw Invalid_Argument("PKCS1v15(Raw) message too long");
  116|      0|      }
  117|  4.33k|      m_message.insert(m_message.end(), input, input + length);
  118|  4.33k|   }
  119|  4.33k|}
_ZN5Botan35PKCS1v15_Raw_SignaturePaddingScheme8raw_dataEv:
  121|  4.33k|std::vector<uint8_t> PKCS1v15_Raw_SignaturePaddingScheme::raw_data() {
  122|  4.33k|   std::vector<uint8_t> ret;
  123|  4.33k|   std::swap(ret, m_message);
  124|       |
  125|  4.33k|   if(m_hash_output_len > 0 && ret.size() != m_hash_output_len) {
  ------------------
  |  Branch (125:7): [True: 4.33k, False: 0]
  |  Branch (125:32): [True: 0, False: 4.33k]
  ------------------
  126|      0|      throw Encoding_Error("PKCS1v15_Raw_SignaturePaddingScheme::encoding_of: Bad input length");
  127|      0|   }
  128|       |
  129|  4.33k|   return ret;
  130|  4.33k|}
_ZN5Botan35PKCS1v15_Raw_SignaturePaddingScheme6verifyENSt3__14spanIKhLm18446744073709551615EEES4_m:
  140|  1.69k|                                                 size_t key_bits) {
  141|  1.69k|   if(m_hash_output_len > 0 && raw.size() != m_hash_output_len) {
  ------------------
  |  Branch (141:7): [True: 1.69k, False: 0]
  |  Branch (141:32): [True: 0, False: 1.69k]
  ------------------
  142|      0|      return false;
  143|      0|   }
  144|       |
  145|  1.69k|   try {
  146|  1.69k|      const auto pkcs1 = pkcs1v15_sig_encoding(raw, key_bits, m_hash_id);
  147|  1.69k|      return constant_time_compare(coded, pkcs1);
  148|  1.69k|   } catch(...) {
  149|      0|      return false;
  150|      0|   }
  151|  1.69k|}
pkcs1_sig_padding.cpp:_ZN5Botan12_GLOBAL__N_121pkcs1v15_sig_encodingENSt3__14spanIKhLm18446744073709551615EEEmS4_:
   23|  1.69k|                                           std::span<const uint8_t> hash_id) {
   24|  1.69k|   const size_t output_length = output_bits / 8;
   25|       |
   26|  1.69k|   if(output_length < hash_id.size() + msg.size() + 2 + 8) {
  ------------------
  |  Branch (26:7): [True: 0, False: 1.69k]
  ------------------
   27|      0|      throw Encoding_Error("pkcs1v15_sig_encoding: Output length is too small");
   28|      0|   }
   29|       |
   30|  1.69k|   std::vector<uint8_t> padded(output_length);
   31|  1.69k|   BufferStuffer stuffer(padded);
   32|       |
   33|  1.69k|   stuffer.append(0x01);
   34|  1.69k|   stuffer.append(0xFF, stuffer.remaining_capacity() - (1 + hash_id.size() + msg.size()));
   35|  1.69k|   stuffer.append(0x00);
   36|  1.69k|   stuffer.append(hash_id);
   37|  1.69k|   stuffer.append(msg);
   38|  1.69k|   BOTAN_ASSERT_NOMSG(stuffer.full());
  ------------------
  |  |   77|  1.69k|   do {                                                                     \
  |  |   78|  1.69k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  1.69k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 1.69k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  1.69k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 1.69k]
  |  |  ------------------
  ------------------
   39|       |
   40|  1.69k|   return padded;
   41|  1.69k|}

_ZN5Botan22SignaturePaddingScheme6createENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   35|  4.33k|std::unique_ptr<SignaturePaddingScheme> SignaturePaddingScheme::create(std::string_view algo_spec) {
   36|  4.33k|   const SCAN_Name req(algo_spec);
   37|       |
   38|  4.33k|#if defined(BOTAN_HAS_EMSA_PKCS1)
   39|       |   // TODO(Botan4) Remove all but "PKCS1v15"
   40|  4.33k|   if(req.algo_name() == "EMSA_PKCS1" || req.algo_name() == "PKCS1v15" || req.algo_name() == "EMSA-PKCS1-v1_5" ||
  ------------------
  |  Branch (40:7): [True: 0, False: 4.33k]
  |  Branch (40:42): [True: 0, False: 4.33k]
  |  Branch (40:75): [True: 4.33k, False: 0]
  ------------------
   41|  4.33k|      req.algo_name() == "EMSA3") {
  ------------------
  |  Branch (41:7): [True: 0, False: 0]
  ------------------
   42|  4.33k|      if(req.arg_count() == 2 && req.arg(0) == "Raw") {
  ------------------
  |  Branch (42:10): [True: 4.33k, False: 0]
  |  Branch (42:10): [True: 4.33k, False: 0]
  |  Branch (42:34): [True: 4.33k, False: 0]
  ------------------
   43|  4.33k|         return std::make_unique<PKCS1v15_Raw_SignaturePaddingScheme>(req.arg(1));
   44|  4.33k|      } else if(req.arg_count() == 1) {
  ------------------
  |  Branch (44:17): [True: 0, False: 0]
  ------------------
   45|      0|         if(req.arg(0) == "Raw") {
  ------------------
  |  Branch (45:13): [True: 0, False: 0]
  ------------------
   46|      0|            return std::make_unique<PKCS1v15_Raw_SignaturePaddingScheme>();
   47|      0|         } else {
   48|      0|            if(auto hash = HashFunction::create(req.arg(0))) {
  ------------------
  |  Branch (48:21): [True: 0, False: 0]
  ------------------
   49|      0|               return std::make_unique<PKCS1v15_SignaturePaddingScheme>(std::move(hash));
   50|      0|            }
   51|      0|         }
   52|      0|      }
   53|  4.33k|   }
   54|      0|#endif
   55|       |
   56|       |#if defined(BOTAN_HAS_EMSA_PSSR)
   57|       |   // TODO(Botan4) Remove all but "PSS_Raw"
   58|       |   if(req.algo_name() == "PSS_Raw" || req.algo_name() == "PSSR_Raw") {
   59|       |      if(req.arg_count_between(1, 3) && req.arg(1, "MGF1") == "MGF1") {
   60|       |         if(auto hash = HashFunction::create(req.arg(0))) {
   61|       |            if(req.arg_count() == 3) {
   62|       |               const size_t salt_size = req.arg_as_integer(2, 0);
   63|       |               return std::make_unique<PSS_Raw>(std::move(hash), salt_size);
   64|       |            } else {
   65|       |               return std::make_unique<PSS_Raw>(std::move(hash));
   66|       |            }
   67|       |         }
   68|       |      }
   69|       |   }
   70|       |
   71|       |   // TODO(Botan4) Remove all but "PSS"
   72|       |   if(req.algo_name() == "PSS" || req.algo_name() == "PSSR" || req.algo_name() == "EMSA-PSS" ||
   73|       |      req.algo_name() == "PSS-MGF1" || req.algo_name() == "EMSA4") {
   74|       |      if(req.arg_count_between(1, 3) && req.arg(1, "MGF1") == "MGF1") {
   75|       |         if(auto hash = HashFunction::create(req.arg(0))) {
   76|       |            if(req.arg_count() == 3) {
   77|       |               const size_t salt_size = req.arg_as_integer(2, 0);
   78|       |               return std::make_unique<PSSR>(std::move(hash), salt_size);
   79|       |            } else {
   80|       |               return std::make_unique<PSSR>(std::move(hash));
   81|       |            }
   82|       |         }
   83|       |      }
   84|       |   }
   85|       |#endif
   86|       |
   87|       |#if defined(BOTAN_HAS_ISO_9796)
   88|       |   if(req.algo_name() == "ISO_9796_DS2") {
   89|       |      if(req.arg_count_between(1, 3)) {
   90|       |         const std::string trailer = req.arg(1, "exp");
   91|       |         if(trailer != "imp" && trailer != "exp") {
   92|       |            return nullptr;
   93|       |         }
   94|       |         if(auto hash = HashFunction::create(req.arg(0))) {
   95|       |            const size_t salt_size = req.arg_as_integer(2, hash->output_length());
   96|       |            return std::make_unique<ISO_9796_DS2>(std::move(hash), trailer == "imp", salt_size);
   97|       |         }
   98|       |      }
   99|       |   }
  100|       |   //ISO-9796-2 DS 3 is deterministic and DS2 without a salt
  101|       |   if(req.algo_name() == "ISO_9796_DS3") {
  102|       |      if(req.arg_count_between(1, 2)) {
  103|       |         const std::string trailer = req.arg(1, "exp");
  104|       |         if(trailer != "imp" && trailer != "exp") {
  105|       |            return nullptr;
  106|       |         }
  107|       |         if(auto hash = HashFunction::create(req.arg(0))) {
  108|       |            return std::make_unique<ISO_9796_DS3>(std::move(hash), trailer == "imp");
  109|       |         }
  110|       |      }
  111|       |   }
  112|       |#endif
  113|       |
  114|       |#if defined(BOTAN_HAS_X931_SIGNATURE_PADDING)
  115|       |   // TODO(Botan4) Remove all but "X9.31"
  116|       |   if(req.algo_name() == "EMSA_X931" || req.algo_name() == "EMSA2" || req.algo_name() == "X9.31") {
  117|       |      if(req.arg_count() == 1) {
  118|       |         if(auto hash = HashFunction::create(req.arg(0))) {
  119|       |            return std::make_unique<X931_SignaturePadding>(std::move(hash));
  120|       |         }
  121|       |      }
  122|       |   }
  123|       |#endif
  124|       |
  125|      0|#if defined(BOTAN_HAS_RAW_SIGNATURE_PADDING)
  126|      0|   if(req.algo_name() == "Raw") {
  ------------------
  |  Branch (126:7): [True: 0, False: 0]
  ------------------
  127|      0|      if(req.arg_count() == 0) {
  ------------------
  |  Branch (127:10): [True: 0, False: 0]
  ------------------
  128|      0|         return std::make_unique<SignRawBytes>();
  129|      0|      } else {
  130|      0|         auto hash = HashFunction::create(req.arg(0));
  131|      0|         if(hash) {
  ------------------
  |  Branch (131:13): [True: 0, False: 0]
  ------------------
  132|      0|            return std::make_unique<SignRawBytes>(hash->output_length());
  133|      0|         }
  134|      0|      }
  135|      0|   }
  136|      0|#endif
  137|       |
  138|      0|   return nullptr;
  139|      0|}
_ZN5Botan22SignaturePaddingScheme15create_or_throwENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  141|  4.33k|std::unique_ptr<SignaturePaddingScheme> SignaturePaddingScheme::create_or_throw(std::string_view algo_spec) {
  142|  4.33k|   if(auto padding = SignaturePaddingScheme::create(algo_spec)) {
  ------------------
  |  Branch (142:12): [True: 4.33k, False: 0]
  ------------------
  143|  4.33k|      return padding;
  144|  4.33k|   } else {
  145|      0|      throw Algorithm_Not_Found(algo_spec);
  146|      0|   }
  147|  4.33k|}

_ZN5Botan12DL_PublicKeyC2ERKNS_8DL_GroupERKNS_6BigIntE:
   38|    530|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|    530|   BOTAN_ARG_CHECK(m_public_key > 1 && m_public_key < m_group.get_p(), "Invalid DL public key");
  ------------------
  |  |   35|    530|   do {                                                          \
  |  |   36|    530|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  1.06k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 530, False: 0]
  |  |  |  Branch (37:12): [True: 527, False: 3]
  |  |  ------------------
  |  |   38|      3|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      3|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      3|      }                                                          \
  |  |   41|    530|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 530]
  |  |  ------------------
  ------------------
   41|    530|}

_ZN5Botan8DL_GroupC2ERKNS_6BigIntES3_S3_:
  405|    536|DL_Group::DL_Group(const BigInt& p, const BigInt& q, const BigInt& g) {
  406|    536|   if(q.is_zero()) {
  ------------------
  |  Branch (406:7): [True: 0, False: 536]
  ------------------
  407|      0|      m_data = DL_Group_Data::create(p, g, DL_Group_Source::ExternalSource);
  408|    536|   } else {
  409|    536|      m_data = DL_Group_Data::create(p, q, g, DL_Group_Source::ExternalSource);
  410|    536|   }
  411|    536|}
_ZNK5Botan8DL_Group4dataEv:
  413|  9.12k|const DL_Group_Data& DL_Group::data() const {
  414|  9.12k|   if(m_data) {
  ------------------
  |  Branch (414:7): [True: 9.12k, False: 0]
  ------------------
  415|  9.12k|      return *m_data;
  416|  9.12k|   }
  417|       |
  418|      0|   throw Invalid_State("DL_Group uninitialized");
  419|  9.12k|}
_ZNK5Botan8DL_Group5get_pEv:
  523|    530|const BigInt& DL_Group::get_p() const {
  524|    530|   return data().p();
  525|    530|}
_ZNK5Botan8DL_Group5get_gEv:
  530|    493|const BigInt& DL_Group::get_g() const {
  531|    493|   return data().g();
  532|    493|}
_ZNK5Botan8DL_Group5get_qEv:
  537|  1.51k|const BigInt& DL_Group::get_q() const {
  538|  1.51k|   return data().q();
  539|  1.51k|}
_ZNK5Botan8DL_Group5has_qEv:
  545|    527|bool DL_Group::has_q() const {
  546|    527|   return data().q_is_set();
  547|    527|}
_ZNK5Botan8DL_Group6q_bitsEv:
  557|  1.02k|size_t DL_Group::q_bits() const {
  558|  1.02k|   data().assert_q_is_set("q_bits");
  559|  1.02k|   return data().q_bits();
  560|  1.02k|}
_ZNK5Botan8DL_Group7q_bytesEv:
  562|    526|size_t DL_Group::q_bytes() const {
  563|    526|   data().assert_q_is_set("q_bytes");
  564|    526|   return data().q_bytes();
  565|    526|}
_ZNK5Botan8DL_Group13inverse_mod_qERKNS_6BigIntE:
  592|    496|BigInt DL_Group::inverse_mod_q(const BigInt& x) const {
  593|    496|   data().assert_q_is_set("inverse_mod_q");
  594|       |   // precompute??
  595|    496|   return inverse_mod_public_prime(x, get_q());
  596|    496|}
_ZNK5Botan8DL_Group14multiply_mod_qERKNS_6BigIntES3_:
  603|    986|BigInt DL_Group::multiply_mod_q(const BigInt& x, const BigInt& y) const {
  604|    986|   data().assert_q_is_set("multiply_mod_q");
  605|    986|   return data().reducer_mod_q().multiply(x, y);
  606|    986|}
_ZNK5Botan8DL_Group18multi_exponentiateERKNS_6BigIntES3_S3_:
  618|    493|BigInt DL_Group::multi_exponentiate(const BigInt& x, const BigInt& y, const BigInt& z) const {
  619|    493|   return monty_multi_exp(data().monty_params_p(), get_g(), x, y, z).value();
  620|    493|}
_ZN5Botan13DL_Group_Data6createERKNS_6BigIntES3_S3_NS_15DL_Group_SourceE:
   52|    536|                                                   DL_Group_Source source) {
   53|    536|         check_dl_group_params(p, q, g);
   54|    536|         return std::make_shared<DL_Group_Data>(p, q, g, source);
   55|    536|      }
dl_group.cpp:_ZN5Botan12_GLOBAL__N_121check_dl_group_paramsERKNS_6BigIntES3_S3_:
   38|    536|void check_dl_group_params(const BigInt& p, const BigInt& q, const BigInt& g) {
   39|    536|   check_dl_group_params(p, g);
   40|    536|   if(q.signum() <= 0 || q.is_even() || q.bits() >= p.bits()) {
  ------------------
  |  Branch (40:7): [True: 6, False: 530]
  |  Branch (40:26): [True: 0, False: 530]
  |  Branch (40:41): [True: 0, False: 530]
  ------------------
   41|      0|      throw Decoding_Error("Invalid DL group subgroup order");
   42|      0|   }
   43|    536|}
dl_group.cpp:_ZN5Botan12_GLOBAL__N_121check_dl_group_paramsERKNS_6BigIntES3_:
   29|    536|void check_dl_group_params(const BigInt& p, const BigInt& g) {
   30|    536|   if(p.signum() <= 0 || p.is_even() || p.bits() < 3 || p.bits() > 16384) {
  ------------------
  |  Branch (30:7): [True: 0, False: 536]
  |  Branch (30:26): [True: 3, False: 533]
  |  Branch (30:41): [True: 0, False: 533]
  |  Branch (30:57): [True: 0, False: 533]
  ------------------
   31|      3|      throw Decoding_Error("Invalid DL group prime");
   32|      3|   }
   33|    533|   if(g.signum() <= 0 || g < 2 || g >= p) {
  ------------------
  |  Branch (33:7): [True: 0, False: 533]
  |  Branch (33:26): [True: 0, False: 533]
  |  Branch (33:35): [True: 3, False: 530]
  ------------------
   34|      3|      throw Decoding_Error("Invalid DL group generator");
   35|      3|   }
   36|    533|}
_ZN5Botan13DL_Group_DataC2ERKNS_6BigIntES3_S3_NS_15DL_Group_SourceE:
   65|    530|            m_p(p),
   66|    530|            m_q(q),
   67|    530|            m_g(g),
   68|    530|            m_mod_p(Barrett_Reduction::for_public_modulus(p)),
   69|    530|            m_mod_q(Barrett_Reduction::for_public_modulus(q)),
   70|    530|            m_monty_params(m_p, m_mod_p),
   71|    530|            m_monty(monty_precompute(m_monty_params, m_g, /*window bits=*/4)),
   72|    530|            m_p_bits(p.bits()),
   73|    530|            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|    530|            m_estimated_strength(std::min(dl_work_factor(m_p_bits), m_q_bits / 2)),
   77|    530|            m_exponent_bits(dl_exponent_size(m_p_bits)),
   78|    530|            m_source(source) {}
_ZN5Botan13DL_Group_DataD2Ev:
   94|    530|      ~DL_Group_Data() = default;
_ZNK5Botan13DL_Group_Data1pEv:
  101|    530|      const BigInt& p() const { return m_p; }
_ZNK5Botan13DL_Group_Data1gEv:
  105|    493|      const BigInt& g() const { return m_g; }
_ZNK5Botan13DL_Group_Data1qEv:
  103|  1.51k|      const BigInt& q() const { return m_q; }
_ZNK5Botan13DL_Group_Data14monty_params_pEv:
  114|    493|      const Montgomery_Params& monty_params_p() const { return m_monty_params; }
_ZNK5Botan13DL_Group_Data8q_is_setEv:
  142|  3.55k|      bool q_is_set() const { return m_q_bits > 0; }
_ZNK5Botan13DL_Group_Data15assert_q_is_setENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  144|  3.03k|      void assert_q_is_set(std::string_view function) const {
  145|  3.03k|         if(!q_is_set()) {
  ------------------
  |  Branch (145:13): [True: 0, False: 3.03k]
  ------------------
  146|      0|            throw Invalid_State(fmt("DL_Group::{}: q is not set for this group", function));
  147|      0|         }
  148|  3.03k|      }
_ZNK5Botan13DL_Group_Data6q_bitsEv:
  118|  1.02k|      size_t q_bits() const { return m_q_bits; }
_ZNK5Botan13DL_Group_Data7q_bytesEv:
  122|    526|      size_t q_bytes() const { return (m_q_bits + 7) / 8; }
_ZNK5Botan13DL_Group_Data13reducer_mod_qEv:
  109|    986|      const Barrett_Reduction& reducer_mod_q() const {
  110|    986|         BOTAN_STATE_CHECK(m_mod_q);
  ------------------
  |  |   51|    986|   do {                                                         \
  |  |   52|    986|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|    986|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 986]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|    986|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 986]
  |  |  ------------------
  ------------------
  111|    986|         return *m_mod_q;
  112|    986|      }

_ZNK5Botan13DSA_PublicKey40_signature_element_size_for_DER_encodingEv:
   34|    526|std::optional<size_t> DSA_PublicKey::_signature_element_size_for_DER_encoding() const {
   35|    526|   return m_public_key->group().q_bytes();
   36|    526|}
_ZN5Botan13DSA_PublicKeyC1ERKNS_8DL_GroupERKNS_6BigIntE:
   76|    530|DSA_PublicKey::DSA_PublicKey(const DL_Group& group, const BigInt& y) {
   77|    530|   m_public_key = std::make_shared<DL_PublicKey>(group, y);
   78|       |
   79|    530|   check_dsa_group(m_public_key->group());
   80|    530|}
_ZNK5Botan13DSA_PublicKey22create_verification_opENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEES5_:
  276|    526|                                                                            std::string_view provider) const {
  277|    526|   if(provider == "base" || provider.empty()) {
  ------------------
  |  Branch (277:7): [True: 0, False: 526]
  |  Branch (277:29): [True: 526, False: 0]
  ------------------
  278|    526|      return std::make_unique<DSA_Verification_Operation>(this->m_public_key, params);
  279|    526|   }
  280|      0|   throw Provider_Not_Found(algo_name(), provider);
  281|    526|}
dsa.cpp:_ZN5Botan12_GLOBAL__N_115check_dsa_groupERKNS_8DL_GroupE:
   26|    527|void check_dsa_group(const DL_Group& group) {
   27|    527|   BOTAN_ARG_CHECK(group.has_q(), "Q parameter must be set for DSA");
  ------------------
  |  |   35|    527|   do {                                                          \
  |  |   36|    527|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    527|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 527]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    527|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 527]
  |  |  ------------------
  ------------------
   28|       |   // All versions of FIPS 186 have required that Q be at least 160 bits
   29|    527|   BOTAN_ARG_CHECK(group.q_bits() >= 160, "DSA Q parameter must be at least 160 bits");
  ------------------
  |  |   35|    527|   do {                                                          \
  |  |   36|    527|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    527|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 1, False: 526]
  |  |  ------------------
  |  |   38|      1|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      1|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      1|      }                                                          \
  |  |   41|    527|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 527]
  |  |  ------------------
  ------------------
   30|    527|}
dsa.cpp:_ZN5Botan12_GLOBAL__N_126DSA_Verification_OperationC2ERKNSt3__110shared_ptrIKNS_12DL_PublicKeyEEENS2_17basic_string_viewIcNS2_11char_traitsIcEEEE:
  224|    526|            PK_Ops::Verification_with_Hash(hash_fn), m_key(key) {}
dsa.cpp:_ZN5Botan12_GLOBAL__N_126DSA_Verification_Operation6verifyENSt3__14spanIKhLm18446744073709551615EEES5_:
  235|    526|bool DSA_Verification_Operation::verify(std::span<const uint8_t> input, std::span<const uint8_t> sig) {
  236|    526|   const auto group = m_key->group();
  237|       |
  238|    526|   const BigInt& q = group.get_q();
  239|    526|   const size_t q_bytes = q.bytes();
  240|       |
  241|    526|   if(sig.size() != 2 * q_bytes) {
  ------------------
  |  Branch (241:7): [True: 0, False: 526]
  ------------------
  242|      0|      return false;
  243|      0|   }
  244|       |
  245|    526|   const BigInt r(sig.first(q_bytes));
  246|    526|   BigInt s(sig.last(q_bytes));
  247|       |
  248|    526|   if(r == 0 || r >= q || s == 0 || s >= q) {
  ------------------
  |  Branch (248:7): [True: 1, False: 525]
  |  Branch (248:17): [True: 14, False: 511]
  |  Branch (248:27): [True: 0, False: 511]
  |  Branch (248:37): [True: 15, False: 496]
  ------------------
  249|     30|      return false;
  250|     30|   }
  251|       |
  252|    496|   BigInt i = BigInt::from_bytes_with_max_bits(input.data(), input.size(), group.q_bits());
  253|    496|   if(i >= q) {
  ------------------
  |  Branch (253:7): [True: 248, False: 248]
  ------------------
  254|    248|      i -= q;
  255|    248|   }
  256|       |
  257|    496|   s = group.inverse_mod_q(s);
  258|       |
  259|       |   // Since we already checked for s == 0 above this shouldn't happen
  260|    496|   if(s.is_zero()) {
  ------------------
  |  Branch (260:7): [True: 3, False: 493]
  ------------------
  261|      3|      return false;
  262|      3|   }
  263|       |
  264|    493|   const BigInt sr = group.multiply_mod_q(s, r);
  265|    493|   const BigInt si = group.multiply_mod_q(s, i);
  266|       |
  267|    493|   s = group.multi_exponentiate(si, m_key->public_key(), sr);
  268|       |
  269|       |   // s is too big for Barrett, and verification doesn't need to be const-time
  270|    493|   return (s % group.get_q() == r);
  271|    496|}

_ZN5Botan14EC_AffinePointC2ENSt3__110unique_ptrINS_19EC_AffinePoint_DataENS1_14default_deleteIS3_EEEE:
   16|  18.4k|EC_AffinePoint::EC_AffinePoint(std::unique_ptr<EC_AffinePoint_Data> point) : m_point(std::move(point)) {
   17|  18.4k|   BOTAN_ASSERT_NONNULL(m_point);
  ------------------
  |  |  116|  18.4k|   do {                                                                                   \
  |  |  117|  18.4k|      if((ptr) == nullptr) {                                                              \
  |  |  ------------------
  |  |  |  Branch (117:10): [True: 0, False: 18.4k]
  |  |  ------------------
  |  |  118|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                              \
  |  |  119|      0|         Botan::assertion_failure(#ptr " is not null", "", __func__, __FILE__, __LINE__); \
  |  |  120|      0|      }                                                                                   \
  |  |  121|  18.4k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (121:12): [Folded, False: 18.4k]
  |  |  ------------------
  ------------------
   18|  18.4k|}
_ZN5Botan14EC_AffinePointC2ERKS0_:
   20|  18.4k|EC_AffinePoint::EC_AffinePoint(const EC_AffinePoint& other) : m_point(other.inner().clone()) {}
_ZN5Botan14EC_AffinePointC2EOS0_:
   22|  36.8k|EC_AffinePoint::EC_AffinePoint(EC_AffinePoint&& other) noexcept : m_point(std::move(other.m_point)) {}
_ZNK5Botan14EC_AffinePoint15to_legacy_pointEv:
   46|  18.4k|EC_Point EC_AffinePoint::to_legacy_point() const {
   47|  18.4k|   return m_point->to_legacy_point();
   48|  18.4k|}
_ZN5Botan14EC_AffinePoint14from_bigint_xyERKNS_8EC_GroupERKNS_6BigIntES6_:
   93|  18.4k|std::optional<EC_AffinePoint> EC_AffinePoint::from_bigint_xy(const EC_Group& group, const BigInt& x, const BigInt& y) {
   94|  18.4k|   if(x.signum() < 0 || x >= group.get_p()) {
  ------------------
  |  Branch (94:7): [True: 0, False: 18.4k]
  |  Branch (94:25): [True: 0, False: 18.4k]
  ------------------
   95|      0|      return {};
   96|      0|   }
   97|  18.4k|   if(y.signum() < 0 || y >= group.get_p()) {
  ------------------
  |  Branch (97:7): [True: 0, False: 18.4k]
  |  Branch (97:25): [True: 0, False: 18.4k]
  ------------------
   98|      0|      return {};
   99|      0|   }
  100|       |
  101|  18.4k|   const size_t fe_bytes = group.get_p_bytes();
  102|  18.4k|   std::vector<uint8_t> sec1(1 + 2 * fe_bytes);
  103|  18.4k|   sec1[0] = 0x04;
  104|  18.4k|   x.serialize_to(std::span{sec1}.subspan(1, fe_bytes));
  105|  18.4k|   y.serialize_to(std::span{sec1}.last(fe_bytes));
  106|       |
  107|  18.4k|   return EC_AffinePoint::deserialize_uncompressed(group, sec1);
  108|  18.4k|}
_ZNK5Botan14EC_AffinePoint19field_element_bytesEv:
  110|  4.39k|size_t EC_AffinePoint::field_element_bytes() const {
  111|  4.39k|   return inner().field_element_bytes();
  112|  4.39k|}
_ZNK5Botan14EC_AffinePoint11is_identityEv:
  114|  22.8k|bool EC_AffinePoint::is_identity() const {
  115|  22.8k|   return inner().is_identity();
  116|  22.8k|}
_ZN5Botan14EC_AffinePointD2Ev:
  148|  73.6k|EC_AffinePoint::~EC_AffinePoint() = default;
_ZN5Botan14EC_AffinePoint24deserialize_uncompressedERKNS_8EC_GroupENSt3__14spanIKhLm18446744073709551615EEE:
  199|  18.4k|                                                                       std::span<const uint8_t> bytes) {
  200|  18.4k|   if(auto pt = group._data()->point_deserialize_uncompressed(bytes)) {
  ------------------
  |  Branch (200:12): [True: 18.4k, False: 76]
  ------------------
  201|  18.4k|      return EC_AffinePoint(std::move(pt));
  202|  18.4k|   } else {
  203|     76|      return {};
  204|     76|   }
  205|  18.4k|}
_ZNK5Botan14EC_AffinePoint15serialize_xy_toENSt3__14spanIhLm18446744073709551615EEE:
  268|  4.39k|void EC_AffinePoint::serialize_xy_to(std::span<uint8_t> bytes) const {
  269|  4.39k|   BOTAN_STATE_CHECK(!this->is_identity());
  ------------------
  |  |   51|  4.39k|   do {                                                         \
  |  |   52|  4.39k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|  4.39k|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 4.39k]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|  4.39k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 4.39k]
  |  |  ------------------
  ------------------
  270|  4.39k|   m_point->serialize_xy_to(bytes);
  271|  4.39k|}
_ZNK5Botan14EC_AffinePoint6_groupEv:
  287|  14.0k|const std::shared_ptr<const EC_Group_Data>& EC_AffinePoint::_group() const {
  288|  14.0k|   return inner().group();
  289|  14.0k|}

_ZN5Botan8EC_Group13ec_group_dataEv:
  231|  18.4k|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|  18.4k|   static const Allocator_Initializer g_init_allocator;
  238|  18.4k|   static EC_Group_Data_Map g_ec_data;
  239|  18.4k|   return g_ec_data;
  240|  18.4k|}
_ZN5Botan8EC_Group18load_EC_group_infoEPKcS2_S2_S2_S2_S2_RKNS_3OIDE:
  254|      3|                                                            const OID& oid) {
  255|      3|   BOTAN_ARG_CHECK(oid.has_value(), "EC_Group::load_EC_group_info OID must be set");
  ------------------
  |  |   35|      3|   do {                                                          \
  |  |   36|      3|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|      3|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 3]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|      3|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 3]
  |  |  ------------------
  ------------------
  256|       |
  257|      3|   const BigInt p(p_str);
  258|      3|   const BigInt a(a_str);
  259|      3|   const BigInt b(b_str);
  260|      3|   const BigInt g_x(g_x_str);
  261|      3|   const BigInt g_y(g_y_str);
  262|      3|   const BigInt order(order_str);
  263|      3|   const BigInt cofactor(1);  // implicit
  264|       |
  265|      3|   return EC_Group_Data::create(p, a, b, g_x, g_y, order, cofactor, oid, EC_Group_Source::Builtin);
  266|      3|}
_ZN5Botan8EC_GroupD2Ev:
  412|  69.3k|EC_Group::~EC_Group() = default;
_ZN5Botan8EC_GroupC2ERKS0_:
  414|  32.4k|EC_Group::EC_Group(const EC_Group&) = default;
_ZN5Botan8EC_GroupC2EONSt3__110shared_ptrINS_13EC_Group_DataEEE:
  419|  18.4k|EC_Group::EC_Group(std::shared_ptr<EC_Group_Data>&& data) : m_data(std::move(data)) {}
_ZN5Botan8EC_Group20supports_named_groupENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  422|  18.4k|bool EC_Group::supports_named_group(std::string_view name) {
  423|  18.4k|   if(name.empty()) {
  ------------------
  |  Branch (423:7): [True: 0, False: 18.4k]
  ------------------
  424|      0|      return false;
  425|      0|   }
  426|       |
  427|       |   // Is it one of the groups compiled into the library?
  428|  18.4k|   if(EC_Group::known_named_groups().contains(std::string(name))) {
  ------------------
  |  Branch (428:7): [True: 18.4k, False: 0]
  ------------------
  429|  18.4k|      return true;
  430|  18.4k|   }
  431|       |
  432|       |   // Is it a custom group registered by the application?
  433|      0|   if(auto oid = OID::from_name(name)) {
  ------------------
  |  Branch (433:12): [True: 0, False: 0]
  ------------------
  434|      0|      try {
  435|      0|         if(ec_group_data().lookup(oid.value()) != nullptr) {
  ------------------
  |  Branch (435:13): [True: 0, False: 0]
  ------------------
  436|      0|            return true;
  437|      0|         }
  438|      0|      } catch(Not_Implemented&) {
  439|       |         // This would be thrown for example if the group is a known curve
  440|       |         // but the relevant module that enables it is not compiled in
  441|      0|      }
  442|      0|   }
  443|       |
  444|       |   // Not known
  445|      0|   return false;
  446|      0|}
_ZN5Botan8EC_Group9from_nameENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  478|  18.4k|EC_Group EC_Group::from_name(std::string_view name) {
  479|  18.4k|   std::shared_ptr<EC_Group_Data> data;
  480|       |
  481|  18.4k|   if(auto oid = OID::from_name(name)) {
  ------------------
  |  Branch (481:12): [True: 18.4k, False: 0]
  ------------------
  482|  18.4k|      data = ec_group_data().lookup(oid.value());
  483|  18.4k|   }
  484|       |
  485|  18.4k|   if(!data) {
  ------------------
  |  Branch (485:7): [True: 0, False: 18.4k]
  ------------------
  486|      0|      throw Invalid_Argument(fmt("Unknown EC_Group '{}'", name));
  487|      0|   }
  488|       |
  489|  18.4k|   return EC_Group(std::move(data));
  490|  18.4k|}
_ZNK5Botan8EC_Group4dataEv:
  647|   109k|const EC_Group_Data& EC_Group::data() const {
  648|   109k|   if(m_data == nullptr) {
  ------------------
  |  Branch (648:7): [True: 0, False: 109k]
  ------------------
  649|      0|      throw Invalid_State("EC_Group uninitialized");
  650|      0|   }
  651|   109k|   return *m_data;
  652|   109k|}
_ZNK5Botan8EC_Group11get_p_bytesEv:
  658|  22.8k|size_t EC_Group::get_p_bytes() const {
  659|  22.8k|   return data().p_bytes();
  660|  22.8k|}
_ZNK5Botan8EC_Group15get_order_bytesEv:
  666|  14.0k|size_t EC_Group::get_order_bytes() const {
  667|  14.0k|   return data().order_bytes();
  668|  14.0k|}
_ZNK5Botan8EC_Group5get_pEv:
  670|  36.9k|const BigInt& EC_Group::get_p() const {
  671|  36.9k|   return data().p();
  672|  36.9k|}
_ZNK5Botan8EC_Group5get_aEv:
  674|  4.39k|const BigInt& EC_Group::get_a() const {
  675|  4.39k|   return data().a();
  676|  4.39k|}
_ZNK5Botan8EC_Group5get_bEv:
  678|  4.39k|const BigInt& EC_Group::get_b() const {
  679|  4.39k|   return data().b();
  680|  4.39k|}
_ZNK5Botan8EC_Group7get_g_xEv:
  722|  4.39k|const BigInt& EC_Group::get_g_x() const {
  723|  4.39k|   return data().g_x();
  724|  4.39k|}
_ZNK5Botan8EC_Group7get_g_yEv:
  726|  4.39k|const BigInt& EC_Group::get_g_y() const {
  727|  4.39k|   return data().g_y();
  728|  4.39k|}
_ZNK5Botan8EC_Group13get_curve_oidEv:
  738|  18.4k|const OID& EC_Group::get_curve_oid() const {
  739|  18.4k|   return data().oid();
  740|  18.4k|}
_ZN5Botan8EC_Group9Mul2TableC2ERKNS_14EC_AffinePointE:
  911|  14.0k|EC_Group::Mul2Table::Mul2Table(const EC_AffinePoint& h) : m_tbl(h._group()->make_mul2_table(h._inner())) {}
_ZN5Botan8EC_Group9Mul2TableD2Ev:
  913|  14.0k|EC_Group::Mul2Table::~Mul2Table() = default;
_ZNK5Botan8EC_Group9Mul2Table27mul2_vartime_x_mod_order_eqERKNS_9EC_ScalarES4_S4_:
  926|  13.9k|                                                      const EC_Scalar& y) const {
  927|  13.9k|   return m_tbl->mul2_vartime_x_mod_order_eq(v._inner(), x._inner(), y._inner());
  928|  13.9k|}
_ZNK5Botan8EC_Group9Mul2Table27mul2_vartime_x_mod_order_eqERKNS_9EC_ScalarES4_S4_S4_:
  933|  9.59k|                                                      const EC_Scalar& y) const {
  934|  9.59k|   return this->mul2_vartime_x_mod_order_eq(v, c * x, c * y);
  935|  9.59k|}
_ZN5Botan17EC_Group_Data_Map6lookupERKNS_3OIDE:
   54|  18.4k|      std::shared_ptr<EC_Group_Data> lookup(const OID& oid) {
   55|  18.4k|         const lock_guard_type<mutex_type> lock(m_mutex);
   56|       |
   57|  43.3k|         for(auto i : m_registered_curves) {
  ------------------
  |  Branch (57:21): [True: 43.3k, False: 3]
  ------------------
   58|  43.3k|            if(i->oid() == oid) {
  ------------------
  |  Branch (58:16): [True: 18.4k, False: 24.8k]
  ------------------
   59|  18.4k|               return i;
   60|  18.4k|            }
   61|  43.3k|         }
   62|       |
   63|       |         // Not found, check hardcoded data
   64|      3|         std::shared_ptr<EC_Group_Data> data = EC_Group::EC_group_info(oid);
   65|       |
   66|      3|         if(data) {
  ------------------
  |  Branch (66:13): [True: 3, False: 0]
  ------------------
   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|      3|            if(data->oid() != oid) {
  ------------------
  |  Branch (69:16): [True: 0, False: 3]
  ------------------
   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|      3|            m_registered_curves.push_back(data);
   78|      3|            return data;
   79|      3|         }
   80|       |
   81|       |         // Nope, unknown curve
   82|      0|         return std::shared_ptr<EC_Group_Data>();
   83|      3|      }

_ZN5Botan13EC_Group_DataD2Ev:
   28|      3|EC_Group_Data::~EC_Group_Data() = default;
_ZN5Botan13EC_Group_DataC2ERKNS_6BigIntES3_S3_S3_S3_S3_S3_RKNS_3OIDENS_15EC_Group_SourceE:
   40|      3|      m_p(p),
   41|      3|      m_a(a),
   42|      3|      m_b(b),
   43|      3|      m_g_x(g_x),
   44|      3|      m_g_y(g_y),
   45|      3|      m_order(order),
   46|      3|      m_cofactor(cofactor),
   47|       |#if defined(BOTAN_HAS_LEGACY_EC_POINT)
   48|      3|      m_mod_field(Barrett_Reduction::for_public_modulus(p)),
   49|      3|      m_mod_order(Barrett_Reduction::for_public_modulus(order)),
   50|      3|      m_monty(m_p, m_mod_field),
   51|       |#endif
   52|      3|      m_oid(oid),
   53|      3|      m_p_words(p.sig_words()),
   54|      3|      m_p_bits(p.bits()),
   55|      3|      m_order_bits(order.bits()),
   56|      3|      m_order_bytes((m_order_bits + 7) / 8),
   57|      3|      m_a_is_minus_3(a == p - 3),
   58|      3|      m_a_is_zero(a.is_zero()),
   59|      3|      m_has_cofactor(m_cofactor != 1),
   60|      3|      m_order_is_less_than_p(m_order < p),
   61|      3|      m_source(source) {
   62|       |   // Verify the generator (x, y) satisfies y^2 = x^3 + a*x + b (mod p)
   63|      3|   auto mod_p = Barrett_Reduction::for_public_modulus(p);
   64|      3|   const BigInt y2 = mod_p.square(g_y);
   65|      3|   const BigInt x3_ax_b = mod_p.reduce(mod_p.cube(g_x) + mod_p.multiply(a, g_x) + b);
   66|      3|   if(y2 != x3_ax_b) {
  ------------------
  |  Branch (66:7): [True: 0, False: 3]
  ------------------
   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|      3|   if(!m_oid.empty()) {
  ------------------
  |  Branch (71:7): [True: 3, False: 0]
  ------------------
   72|      3|      DER_Encoder der(m_der_named_curve);
   73|      3|      der.encode(m_oid);
   74|       |
   75|      3|      if(const auto name = m_oid.registered_name()) {
  ------------------
  |  Branch (75:21): [True: 3, False: 0]
  ------------------
   76|       |         // returns nullptr if unknown or not supported
   77|      3|         m_pcurve = PCurve::PrimeOrderCurve::for_named_curve(*name);
   78|      3|      }
   79|      3|      if(m_pcurve) {
  ------------------
  |  Branch (79:10): [True: 3, False: 0]
  ------------------
   80|      3|         m_engine = EC_Group_Engine::Optimized;
   81|      3|      }
   82|      3|   }
   83|       |
   84|       |   // Try a generic pcurves instance
   85|      3|   if(!m_pcurve && !m_has_cofactor) {
  ------------------
  |  Branch (85:7): [True: 0, False: 3]
  |  Branch (85:20): [True: 0, False: 0]
  ------------------
   86|      0|      m_pcurve = PCurve::PrimeOrderCurve::from_params(p, a, b, g_x, g_y, order);
   87|      0|      if(m_pcurve) {
  ------------------
  |  Branch (87:10): [True: 0, False: 0]
  ------------------
   88|      0|         m_engine = EC_Group_Engine::Generic;
   89|      0|      }
   90|       |      // possibly still null here, if parameters unsuitable or if the
   91|       |      // pcurves_generic module wasn't included in the build
   92|      0|   }
   93|       |
   94|      3|#if defined(BOTAN_HAS_LEGACY_EC_POINT)
   95|      3|   secure_vector<word> ws;
   96|      3|   m_a_r = m_monty.mul(a, m_monty.R2(), ws);
   97|      3|   m_b_r = m_monty.mul(b, m_monty.R2(), ws);
   98|      3|   if(!m_pcurve) {
  ------------------
  |  Branch (98:7): [True: 0, False: 3]
  ------------------
   99|      0|      m_engine = EC_Group_Engine::Legacy;
  100|      0|   }
  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|      3|}
_ZN5Botan13EC_Group_Data6createERKNS_6BigIntES3_S3_S3_S3_S3_S3_RKNS_3OIDENS_15EC_Group_SourceE:
  121|      3|                                                     EC_Group_Source source) {
  122|      3|   auto group = std::make_shared<EC_Group_Data>(p, a, b, g_x, g_y, order, cofactor, oid, source);
  123|       |
  124|      3|#if defined(BOTAN_HAS_LEGACY_EC_POINT)
  125|      3|   group->m_curve = CurveGFp(group.get());
  126|      3|   group->m_base_point = EC_Point(group->m_curve, g_x, g_y);
  127|      3|   if(!group->m_pcurve) {
  ------------------
  |  Branch (127:7): [True: 0, False: 3]
  ------------------
  128|      0|      group->m_base_mult = std::make_unique<EC_Point_Base_Point_Precompute>(group->m_base_point, group->m_mod_order);
  129|      0|   }
  130|      3|#endif
  131|       |
  132|      3|   return group;
  133|      3|}
_ZNK5Botan13EC_Group_Data28scalar_from_bytes_with_truncENSt3__14spanIKhLm18446744073709551615EEE:
  243|  9.59k|std::unique_ptr<EC_Scalar_Data> EC_Group_Data::scalar_from_bytes_with_trunc(std::span<const uint8_t> bytes) const {
  244|  9.59k|   const size_t bit_length = 8 * bytes.size();
  245|       |
  246|  9.59k|   if(bit_length < order_bits()) {
  ------------------
  |  Branch (246:7): [True: 861, False: 8.73k]
  ------------------
  247|       |      // No shifting required, but might still need to reduce by modulus
  248|    861|      return this->scalar_from_bytes_mod_order(bytes);
  249|  8.73k|   } else {
  250|  8.73k|      const size_t shift = bit_length - order_bits();
  251|       |
  252|  8.73k|      const size_t new_length = bytes.size() - (shift / 8);
  253|  8.73k|      const size_t bit_shift = shift % 8;
  254|       |
  255|  8.73k|      if(bit_shift == 0) {
  ------------------
  |  Branch (255:10): [True: 8.73k, False: 0]
  ------------------
  256|       |         // Easy case just read different bytes
  257|  8.73k|         return this->scalar_from_bytes_mod_order(bytes.first(new_length));
  258|  8.73k|      } else {
  259|      0|         std::vector<uint8_t> sbytes(new_length);
  260|       |
  261|      0|         uint8_t carry = 0;
  262|      0|         for(size_t i = 0; i != new_length; ++i) {
  ------------------
  |  Branch (262:28): [True: 0, False: 0]
  ------------------
  263|      0|            const uint8_t w = bytes[i];
  264|      0|            sbytes[i] = (w >> bit_shift) | carry;
  265|      0|            carry = w << (8 - bit_shift);
  266|      0|         }
  267|       |
  268|      0|         return this->scalar_from_bytes_mod_order(sbytes);
  269|      0|      }
  270|  8.73k|   }
  271|  9.59k|}
_ZNK5Botan13EC_Group_Data27scalar_from_bytes_mod_orderENSt3__14spanIKhLm18446744073709551615EEE:
  273|  13.9k|std::unique_ptr<EC_Scalar_Data> EC_Group_Data::scalar_from_bytes_mod_order(std::span<const uint8_t> bytes) const {
  274|  13.9k|   if(bytes.size() > 2 * order_bytes()) {
  ------------------
  |  Branch (274:7): [True: 0, False: 13.9k]
  ------------------
  275|      0|      return {};
  276|      0|   }
  277|       |
  278|  13.9k|   if(m_pcurve) {
  ------------------
  |  Branch (278:7): [True: 13.9k, False: 0]
  ------------------
  279|  13.9k|      if(auto s = m_pcurve->scalar_from_wide_bytes(bytes)) {
  ------------------
  |  Branch (279:15): [True: 13.9k, False: 0]
  ------------------
  280|  13.9k|         return std::make_unique<EC_Scalar_Data_PC>(shared_from_this(), std::move(*s));
  281|  13.9k|      } else {
  282|      0|         return {};
  283|      0|      }
  284|  13.9k|   } else {
  285|      0|#if defined(BOTAN_HAS_LEGACY_EC_POINT)
  286|      0|      return std::make_unique<EC_Scalar_Data_BN>(shared_from_this(), m_mod_order.reduce(BigInt(bytes)));
  287|       |#else
  288|       |      throw Not_Implemented("Legacy EC interfaces disabled in this build configuration");
  289|       |#endif
  290|      0|   }
  291|  13.9k|}
_ZNK5Botan13EC_Group_Data18scalar_deserializeENSt3__14spanIKhLm18446744073709551615EEE:
  358|  28.0k|std::unique_ptr<EC_Scalar_Data> EC_Group_Data::scalar_deserialize(std::span<const uint8_t> bytes) const {
  359|  28.0k|   if(bytes.size() != m_order_bytes) {
  ------------------
  |  Branch (359:7): [True: 0, False: 28.0k]
  ------------------
  360|      0|      return nullptr;
  361|      0|   }
  362|       |
  363|  28.0k|   if(m_pcurve) {
  ------------------
  |  Branch (363:7): [True: 28.0k, False: 0]
  ------------------
  364|  28.0k|      if(auto s = m_pcurve->deserialize_scalar(bytes)) {
  ------------------
  |  Branch (364:15): [True: 27.9k, False: 55]
  ------------------
  365|  27.9k|         return std::make_unique<EC_Scalar_Data_PC>(shared_from_this(), *s);
  366|  27.9k|      } else {
  367|     55|         return nullptr;
  368|     55|      }
  369|  28.0k|   } else {
  370|      0|#if defined(BOTAN_HAS_LEGACY_EC_POINT)
  371|      0|      BigInt r(bytes);
  372|       |
  373|      0|      if(r.is_zero() || r >= m_order) {
  ------------------
  |  Branch (373:10): [True: 0, False: 0]
  |  Branch (373:25): [True: 0, False: 0]
  ------------------
  374|      0|         return nullptr;
  375|      0|      }
  376|       |
  377|      0|      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|      0|   }
  382|  28.0k|}
_ZNK5Botan13EC_Group_Data30point_deserialize_uncompressedENSt3__14spanIKhLm18446744073709551615EEE:
  385|  18.4k|   std::span<const uint8_t> bytes) const {
  386|  18.4k|   if(bytes.size() != 1 + 2 * p_bytes() || bytes[0] != 0x04) {
  ------------------
  |  Branch (386:7): [True: 0, False: 18.4k]
  |  Branch (386:44): [True: 0, False: 18.4k]
  ------------------
  387|      0|      return {};
  388|      0|   }
  389|       |
  390|  18.4k|   if(m_pcurve) {
  ------------------
  |  Branch (390:7): [True: 18.4k, False: 0]
  ------------------
  391|  18.4k|      if(auto pt = m_pcurve->deserialize_point_uncompressed(bytes)) {
  ------------------
  |  Branch (391:15): [True: 18.4k, False: 76]
  ------------------
  392|  18.4k|         return std::make_unique<EC_AffinePoint_Data_PC>(shared_from_this(), std::move(*pt));
  393|  18.4k|      } else {
  394|     76|         return {};
  395|     76|      }
  396|  18.4k|   } else {
  397|      0|#if defined(BOTAN_HAS_LEGACY_EC_POINT)
  398|      0|      try {
  399|      0|         auto pt = Botan::OS2ECP(bytes, m_curve);
  400|      0|         return std::make_unique<EC_AffinePoint_Data_BN>(shared_from_this(), std::move(pt));
  401|      0|      } catch(...) {
  402|      0|         return {};
  403|      0|      }
  404|       |#else
  405|       |      throw Not_Implemented("Legacy EC interfaces disabled in this build configuration");
  406|       |#endif
  407|      0|   }
  408|  18.4k|}
_ZNK5Botan13EC_Group_Data15make_mul2_tableERKNS_19EC_AffinePoint_DataE:
  636|  14.0k|std::unique_ptr<EC_Mul2Table_Data> EC_Group_Data::make_mul2_table(const EC_AffinePoint_Data& h) const {
  637|  14.0k|   if(m_pcurve) {
  ------------------
  |  Branch (637:7): [True: 14.0k, False: 0]
  ------------------
  638|  14.0k|      return std::make_unique<EC_Mul2Table_Data_PC>(h);
  639|  14.0k|   } else {
  640|      0|#if defined(BOTAN_HAS_LEGACY_EC_POINT)
  641|      0|      const EC_AffinePoint_Data_BN g(shared_from_this(), this->base_point());
  642|      0|      return std::make_unique<EC_Mul2Table_Data_BN>(g, h);
  643|       |#else
  644|       |      throw Not_Implemented("Legacy EC interfaces disabled in this build configuration");
  645|       |#endif
  646|      0|   }
  647|  14.0k|}

_ZN5Botan17EC_Scalar_Data_PC11checked_refERKNS_14EC_Scalar_DataE:
   14|  69.8k|const EC_Scalar_Data_PC& EC_Scalar_Data_PC::checked_ref(const EC_Scalar_Data& data) {
   15|  69.8k|   const auto* p = dynamic_cast<const EC_Scalar_Data_PC*>(&data);
   16|  69.8k|   if(p == nullptr) {
  ------------------
  |  Branch (16:7): [True: 0, False: 69.8k]
  ------------------
   17|      0|      throw Invalid_State("Failed conversion to EC_Scalar_Data_PC");
   18|      0|   }
   19|  69.8k|   return *p;
   20|  69.8k|}
_ZNK5Botan17EC_Scalar_Data_PC5groupEv:
   22|   172k|const std::shared_ptr<const EC_Group_Data>& EC_Scalar_Data_PC::group() const {
   23|   172k|   return m_group;
   24|   172k|}
_ZNK5Botan17EC_Scalar_Data_PC5cloneEv:
   30|  27.9k|std::unique_ptr<EC_Scalar_Data> EC_Scalar_Data_PC::clone() const {
   31|  27.9k|   return std::make_unique<EC_Scalar_Data_PC>(this->group(), this->value());
   32|  27.9k|}
_ZNK5Botan17EC_Scalar_Data_PC7is_zeroEv:
   34|  32.3k|bool EC_Scalar_Data_PC::is_zero() const {
   35|  32.3k|   const auto& pcurve = this->group()->pcurve();
   36|  32.3k|   return pcurve.scalar_is_zero(m_v);
   37|  32.3k|}
_ZNK5Botan17EC_Scalar_Data_PC14invert_vartimeEv:
   66|  9.59k|std::unique_ptr<EC_Scalar_Data> EC_Scalar_Data_PC::invert_vartime() const {
   67|  9.59k|   return std::make_unique<EC_Scalar_Data_PC>(m_group, m_group->pcurve().scalar_invert_vartime(m_v));
   68|  9.59k|}
_ZNK5Botan17EC_Scalar_Data_PC3addERKNS_14EC_Scalar_DataE:
   70|  4.37k|std::unique_ptr<EC_Scalar_Data> EC_Scalar_Data_PC::add(const EC_Scalar_Data& other) const {
   71|  4.37k|   return std::make_unique<EC_Scalar_Data_PC>(m_group, group()->pcurve().scalar_add(m_v, checked_ref(other).m_v));
   72|  4.37k|}
_ZNK5Botan17EC_Scalar_Data_PC3subERKNS_14EC_Scalar_DataE:
   74|  4.37k|std::unique_ptr<EC_Scalar_Data> EC_Scalar_Data_PC::sub(const EC_Scalar_Data& other) const {
   75|  4.37k|   return std::make_unique<EC_Scalar_Data_PC>(m_group, group()->pcurve().scalar_sub(m_v, checked_ref(other).m_v));
   76|  4.37k|}
_ZNK5Botan17EC_Scalar_Data_PC3mulERKNS_14EC_Scalar_DataE:
   78|  19.1k|std::unique_ptr<EC_Scalar_Data> EC_Scalar_Data_PC::mul(const EC_Scalar_Data& other) const {
   79|  19.1k|   return std::make_unique<EC_Scalar_Data_PC>(m_group, group()->pcurve().scalar_mul(m_v, checked_ref(other).m_v));
   80|  19.1k|}
_ZN5Botan22EC_AffinePoint_Data_PCC2ENSt3__110shared_ptrIKNS_13EC_Group_DataEEENS_6PCurve15PrimeOrderCurve11AffinePointE:
   89|  36.8k|      m_group(std::move(group)), m_pt(std::move(pt)) {
   90|  36.8k|   const auto& pcurve = m_group->pcurve();
   91|       |
   92|  36.8k|   if(!pcurve.affine_point_is_identity(m_pt)) {
  ------------------
  |  Branch (92:7): [True: 36.8k, False: 0]
  ------------------
   93|  36.8k|      m_xy.resize(1 + 2 * field_element_bytes());
   94|  36.8k|      pcurve.serialize_point(m_xy, m_pt);
   95|  36.8k|   }
   96|  36.8k|}
_ZN5Botan22EC_AffinePoint_Data_PC11checked_refERKNS_19EC_AffinePoint_DataE:
   98|  14.0k|const EC_AffinePoint_Data_PC& EC_AffinePoint_Data_PC::checked_ref(const EC_AffinePoint_Data& data) {
   99|  14.0k|   const auto* p = dynamic_cast<const EC_AffinePoint_Data_PC*>(&data);
  100|  14.0k|   if(p == nullptr) {
  ------------------
  |  Branch (100:7): [True: 0, False: 14.0k]
  ------------------
  101|      0|      throw Invalid_State("Failed conversion to EC_AffinePoint_Data_PC");
  102|      0|   }
  103|  14.0k|   return *p;
  104|  14.0k|}
_ZNK5Botan22EC_AffinePoint_Data_PC5cloneEv:
  106|  18.4k|std::unique_ptr<EC_AffinePoint_Data> EC_AffinePoint_Data_PC::clone() const {
  107|  18.4k|   return std::make_unique<EC_AffinePoint_Data_PC>(m_group, m_pt);
  108|  18.4k|}
_ZNK5Botan22EC_AffinePoint_Data_PC5groupEv:
  110|  42.0k|const std::shared_ptr<const EC_Group_Data>& EC_AffinePoint_Data_PC::group() const {
  111|  42.0k|   return m_group;
  112|  42.0k|}
_ZNK5Botan22EC_AffinePoint_Data_PC19field_element_bytesEv:
  130|  64.0k|size_t EC_AffinePoint_Data_PC::field_element_bytes() const {
  131|  64.0k|   return m_group->pcurve().field_element_bytes();
  132|  64.0k|}
_ZNK5Botan22EC_AffinePoint_Data_PC11is_identityEv:
  134|  45.6k|bool EC_AffinePoint_Data_PC::is_identity() const {
  135|  45.6k|   return m_xy.empty();
  136|  45.6k|}
_ZNK5Botan22EC_AffinePoint_Data_PC15serialize_xy_toENSt3__14spanIhLm18446744073709551615EEE:
  152|  4.39k|void EC_AffinePoint_Data_PC::serialize_xy_to(std::span<uint8_t> bytes) const {
  153|  4.39k|   BOTAN_STATE_CHECK(!this->is_identity());
  ------------------
  |  |   51|  4.39k|   do {                                                         \
  |  |   52|  4.39k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|  4.39k|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 4.39k]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|  4.39k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 4.39k]
  |  |  ------------------
  ------------------
  154|  4.39k|   const size_t fe_bytes = this->field_element_bytes();
  155|  4.39k|   BOTAN_ARG_CHECK(bytes.size() == 2 * fe_bytes, "Invalid output size");
  ------------------
  |  |   35|  4.39k|   do {                                                          \
  |  |   36|  4.39k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  4.39k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 4.39k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  4.39k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 4.39k]
  |  |  ------------------
  ------------------
  156|  4.39k|   copy_mem(bytes, std::span{m_xy}.last(2 * fe_bytes));
  157|  4.39k|}
_ZNK5Botan22EC_AffinePoint_Data_PC15to_legacy_pointEv:
  178|  18.4k|EC_Point EC_AffinePoint_Data_PC::to_legacy_point() const {
  179|  18.4k|   if(this->is_identity()) {
  ------------------
  |  Branch (179:7): [True: 0, False: 18.4k]
  ------------------
  180|      0|      return EC_Point(m_group->curve());
  181|  18.4k|   } else {
  182|  18.4k|      const size_t fe_bytes = this->field_element_bytes();
  183|  18.4k|      return EC_Point(m_group->curve(),
  184|  18.4k|                      BigInt::from_bytes(std::span{m_xy}.subspan(1, fe_bytes)),
  185|  18.4k|                      BigInt::from_bytes(std::span{m_xy}.last(fe_bytes)));
  186|  18.4k|   }
  187|  18.4k|}
_ZN5Botan20EC_Mul2Table_Data_PCC2ERKNS_19EC_AffinePoint_DataE:
  190|  14.0k|EC_Mul2Table_Data_PC::EC_Mul2Table_Data_PC(const EC_AffinePoint_Data& q) : m_group(q.group()) {
  191|  14.0k|   BOTAN_ARG_CHECK(q.group() == m_group, "Curve mismatch");
  ------------------
  |  |   35|  14.0k|   do {                                                          \
  |  |   36|  14.0k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  14.0k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 14.0k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  14.0k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 14.0k]
  |  |  ------------------
  ------------------
  192|       |
  193|  14.0k|   const auto& pt_q = EC_AffinePoint_Data_PC::checked_ref(q);
  194|       |
  195|  14.0k|   m_tbl = m_group->pcurve().mul2_setup_g(pt_q.value());
  196|  14.0k|}
_ZNK5Botan20EC_Mul2Table_Data_PC27mul2_vartime_x_mod_order_eqERKNS_14EC_Scalar_DataES3_S3_:
  216|  13.9k|                                                       const EC_Scalar_Data& yd) const {
  217|  13.9k|   BOTAN_ARG_CHECK(xd.group() == m_group && yd.group() == m_group, "Curve mismatch");
  ------------------
  |  |   35|  13.9k|   do {                                                          \
  |  |   36|  13.9k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  27.9k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 13.9k, False: 0]
  |  |  |  Branch (37:12): [True: 13.9k, False: 0]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  13.9k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 13.9k]
  |  |  ------------------
  ------------------
  218|       |
  219|  13.9k|   const auto& v = EC_Scalar_Data_PC::checked_ref(vd);
  220|  13.9k|   const auto& x = EC_Scalar_Data_PC::checked_ref(xd);
  221|  13.9k|   const auto& y = EC_Scalar_Data_PC::checked_ref(yd);
  222|       |
  223|  13.9k|   return m_group->pcurve().mul2_vartime_x_mod_order_eq(*m_tbl, v.value(), x.value(), y.value());
  224|  13.9k|}

_ZN5Botan8EC_Group13EC_group_infoERKNS_3OIDE:
   16|      3|std::shared_ptr<EC_Group_Data> EC_Group::EC_group_info(const OID& oid) {
   17|       |   // secp256r1
   18|      3|   if(oid == OID{1, 2, 840, 10045, 3, 1, 7}) {
  ------------------
  |  Branch (18:7): [True: 1, False: 2]
  ------------------
   19|      1|      return load_EC_group_info(
   20|      1|         "0xFFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF",
   21|      1|         "0xFFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFC",
   22|      1|         "0x5AC635D8AA3A93E7B3EBBD55769886BC651D06B0CC53B0F63BCE3C3E27D2604B",
   23|      1|         "0x6B17D1F2E12C4247F8BCE6E563A440F277037D812DEB33A0F4A13945D898C296",
   24|      1|         "0x4FE342E2FE1A7F9B8EE7EB4A7C0F9E162BCE33576B315ECECBB6406837BF51F5",
   25|      1|         "0xFFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551",
   26|      1|         oid);
   27|      1|   }
   28|       |
   29|       |   // secp384r1
   30|      2|   if(oid == OID{1, 3, 132, 0, 34}) {
  ------------------
  |  Branch (30:7): [True: 0, False: 2]
  ------------------
   31|      0|      return load_EC_group_info(
   32|      0|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFF0000000000000000FFFFFFFF",
   33|      0|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFF0000000000000000FFFFFFFC",
   34|      0|         "0xB3312FA7E23EE7E4988E056BE3F82D19181D9C6EFE8141120314088F5013875AC656398D8A2ED19D2A85C8EDD3EC2AEF",
   35|      0|         "0xAA87CA22BE8B05378EB1C71EF320AD746E1D3B628BA79B9859F741E082542A385502F25DBF55296C3A545E3872760AB7",
   36|      0|         "0x3617DE4A96262C6F5D9E98BF9292DC29F8F41DBD289A147CE9DA3113B5F0B8C00A60B1CE1D7E819D7A431D7C90EA0E5F",
   37|      0|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC7634D81F4372DDF581A0DB248B0A77AECEC196ACCC52973",
   38|      0|         oid);
   39|      0|   }
   40|       |
   41|       |   // secp521r1
   42|      2|   if(oid == OID{1, 3, 132, 0, 35}) {
  ------------------
  |  Branch (42:7): [True: 0, False: 2]
  ------------------
   43|      0|      return load_EC_group_info(
   44|      0|         "0x1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF",
   45|      0|         "0x1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC",
   46|      0|         "0x51953EB9618E1C9A1F929A21A0B68540EEA2DA725B99B315F3B8B489918EF109E156193951EC7E937B1652C0BD3BB1BF073573DF883D2C34F1EF451FD46B503F00",
   47|      0|         "0xC6858E06B70404E9CD9E3ECB662395B4429C648139053FB521F828AF606B4D3DBAA14B5E77EFE75928FE1DC127A2FFA8DE3348B3C1856A429BF97E7E31C2E5BD66",
   48|      0|         "0x11839296A789A3BC0045C8A5FB42C7D1BD998F54449579B446817AFBD17273E662C97EE72995EF42640C550B9013FAD0761353C7086A272C24088BE94769FD16650",
   49|      0|         "0x1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA51868783BF2F966B7FCC0148F709A5D03BB5C9B8899C47AEBB6FB71E91386409",
   50|      0|         oid);
   51|      0|   }
   52|       |
   53|       |   // brainpool160r1
   54|      2|   if(oid == OID{1, 3, 36, 3, 3, 2, 8, 1, 1, 1}) {
  ------------------
  |  Branch (54:7): [True: 0, False: 2]
  ------------------
   55|      0|      return load_EC_group_info(
   56|      0|         "0xE95E4A5F737059DC60DFC7AD95B3D8139515620F",
   57|      0|         "0x340E7BE2A280EB74E2BE61BADA745D97E8F7C300",
   58|      0|         "0x1E589A8595423412134FAA2DBDEC95C8D8675E58",
   59|      0|         "0xBED5AF16EA3F6A4F62938C4631EB5AF7BDBCDBC3",
   60|      0|         "0x1667CB477A1A8EC338F94741669C976316DA6321",
   61|      0|         "0xE95E4A5F737059DC60DF5991D45029409E60FC09",
   62|      0|         oid);
   63|      0|   }
   64|       |
   65|       |   // brainpool192r1
   66|      2|   if(oid == OID{1, 3, 36, 3, 3, 2, 8, 1, 1, 3}) {
  ------------------
  |  Branch (66:7): [True: 0, False: 2]
  ------------------
   67|      0|      return load_EC_group_info(
   68|      0|         "0xC302F41D932A36CDA7A3463093D18DB78FCE476DE1A86297",
   69|      0|         "0x6A91174076B1E0E19C39C031FE8685C1CAE040E5C69A28EF",
   70|      0|         "0x469A28EF7C28CCA3DC721D044F4496BCCA7EF4146FBF25C9",
   71|      0|         "0xC0A0647EAAB6A48753B033C56CB0F0900A2F5C4853375FD6",
   72|      0|         "0x14B690866ABD5BB88B5F4828C1490002E6773FA2FA299B8F",
   73|      0|         "0xC302F41D932A36CDA7A3462F9E9E916B5BE8F1029AC4ACC1",
   74|      0|         oid);
   75|      0|   }
   76|       |
   77|       |   // brainpool224r1
   78|      2|   if(oid == OID{1, 3, 36, 3, 3, 2, 8, 1, 1, 5}) {
  ------------------
  |  Branch (78:7): [True: 0, False: 2]
  ------------------
   79|      0|      return load_EC_group_info(
   80|      0|         "0xD7C134AA264366862A18302575D1D787B09F075797DA89F57EC8C0FF",
   81|      0|         "0x68A5E62CA9CE6C1C299803A6C1530B514E182AD8B0042A59CAD29F43",
   82|      0|         "0x2580F63CCFE44138870713B1A92369E33E2135D266DBB372386C400B",
   83|      0|         "0xD9029AD2C7E5CF4340823B2A87DC68C9E4CE3174C1E6EFDEE12C07D",
   84|      0|         "0x58AA56F772C0726F24C6B89E4ECDAC24354B9E99CAA3F6D3761402CD",
   85|      0|         "0xD7C134AA264366862A18302575D0FB98D116BC4B6DDEBCA3A5A7939F",
   86|      0|         oid);
   87|      0|   }
   88|       |
   89|       |   // brainpool256r1
   90|      2|   if(oid == OID{1, 3, 36, 3, 3, 2, 8, 1, 1, 7}) {
  ------------------
  |  Branch (90:7): [True: 0, False: 2]
  ------------------
   91|      0|      return load_EC_group_info(
   92|      0|         "0xA9FB57DBA1EEA9BC3E660A909D838D726E3BF623D52620282013481D1F6E5377",
   93|      0|         "0x7D5A0975FC2C3057EEF67530417AFFE7FB8055C126DC5C6CE94A4B44F330B5D9",
   94|      0|         "0x26DC5C6CE94A4B44F330B5D9BBD77CBF958416295CF7E1CE6BCCDC18FF8C07B6",
   95|      0|         "0x8BD2AEB9CB7E57CB2C4B482FFC81B7AFB9DE27E1E3BD23C23A4453BD9ACE3262",
   96|      0|         "0x547EF835C3DAC4FD97F8461A14611DC9C27745132DED8E545C1D54C72F046997",
   97|      0|         "0xA9FB57DBA1EEA9BC3E660A909D838D718C397AA3B561A6F7901E0E82974856A7",
   98|      0|         oid);
   99|      0|   }
  100|       |
  101|       |   // brainpool320r1
  102|      2|   if(oid == OID{1, 3, 36, 3, 3, 2, 8, 1, 1, 9}) {
  ------------------
  |  Branch (102:7): [True: 0, False: 2]
  ------------------
  103|      0|      return load_EC_group_info(
  104|      0|         "0xD35E472036BC4FB7E13C785ED201E065F98FCFA6F6F40DEF4F92B9EC7893EC28FCD412B1F1B32E27",
  105|      0|         "0x3EE30B568FBAB0F883CCEBD46D3F3BB8A2A73513F5EB79DA66190EB085FFA9F492F375A97D860EB4",
  106|      0|         "0x520883949DFDBC42D3AD198640688A6FE13F41349554B49ACC31DCCD884539816F5EB4AC8FB1F1A6",
  107|      0|         "0x43BD7E9AFB53D8B85289BCC48EE5BFE6F20137D10A087EB6E7871E2A10A599C710AF8D0D39E20611",
  108|      0|         "0x14FDD05545EC1CC8AB4093247F77275E0743FFED117182EAA9C77877AAAC6AC7D35245D1692E8EE1",
  109|      0|         "0xD35E472036BC4FB7E13C785ED201E065F98FCFA5B68F12A32D482EC7EE8658E98691555B44C59311",
  110|      0|         oid);
  111|      0|   }
  112|       |
  113|       |   // brainpool384r1
  114|      2|   if(oid == OID{1, 3, 36, 3, 3, 2, 8, 1, 1, 11}) {
  ------------------
  |  Branch (114:7): [True: 0, False: 2]
  ------------------
  115|      0|      return load_EC_group_info(
  116|      0|         "0x8CB91E82A3386D280F5D6F7E50E641DF152F7109ED5456B412B1DA197FB71123ACD3A729901D1A71874700133107EC53",
  117|      0|         "0x7BC382C63D8C150C3C72080ACE05AFA0C2BEA28E4FB22787139165EFBA91F90F8AA5814A503AD4EB04A8C7DD22CE2826",
  118|      0|         "0x4A8C7DD22CE28268B39B55416F0447C2FB77DE107DCD2A62E880EA53EEB62D57CB4390295DBC9943AB78696FA504C11",
  119|      0|         "0x1D1C64F068CF45FFA2A63A81B7C13F6B8847A3E77EF14FE3DB7FCAFE0CBD10E8E826E03436D646AAEF87B2E247D4AF1E",
  120|      0|         "0x8ABE1D7520F9C2A45CB1EB8E95CFD55262B70B29FEEC5864E19C054FF99129280E4646217791811142820341263C5315",
  121|      0|         "0x8CB91E82A3386D280F5D6F7E50E641DF152F7109ED5456B31F166E6CAC0425A7CF3AB6AF6B7FC3103B883202E9046565",
  122|      0|         oid);
  123|      0|   }
  124|       |
  125|       |   // brainpool512r1
  126|      2|   if(oid == OID{1, 3, 36, 3, 3, 2, 8, 1, 1, 13}) {
  ------------------
  |  Branch (126:7): [True: 0, False: 2]
  ------------------
  127|      0|      return load_EC_group_info(
  128|      0|         "0xAADD9DB8DBE9C48B3FD4E6AE33C9FC07CB308DB3B3C9D20ED6639CCA703308717D4D9B009BC66842AECDA12AE6A380E62881FF2F2D82C68528AA6056583A48F3",
  129|      0|         "0x7830A3318B603B89E2327145AC234CC594CBDD8D3DF91610A83441CAEA9863BC2DED5D5AA8253AA10A2EF1C98B9AC8B57F1117A72BF2C7B9E7C1AC4D77FC94CA",
  130|      0|         "0x3DF91610A83441CAEA9863BC2DED5D5AA8253AA10A2EF1C98B9AC8B57F1117A72BF2C7B9E7C1AC4D77FC94CADC083E67984050B75EBAE5DD2809BD638016F723",
  131|      0|         "0x81AEE4BDD82ED9645A21322E9C4C6A9385ED9F70B5D916C1B43B62EEF4D0098EFF3B1F78E2D0D48D50D1687B93B97D5F7C6D5047406A5E688B352209BCB9F822",
  132|      0|         "0x7DDE385D566332ECC0EABFA9CF7822FDF209F70024A57B1AA000C55B881F8111B2DCDE494A5F485E5BCA4BD88A2763AED1CA2B2FA8F0540678CD1E0F3AD80892",
  133|      0|         "0xAADD9DB8DBE9C48B3FD4E6AE33C9FC07CB308DB3B3C9D20ED6639CCA70330870553E5C414CA92619418661197FAC10471DB1D381085DDADDB58796829CA90069",
  134|      0|         oid);
  135|      0|   }
  136|       |
  137|       |   // frp256v1
  138|      2|   if(oid == OID{1, 2, 250, 1, 223, 101, 256, 1}) {
  ------------------
  |  Branch (138:7): [True: 0, False: 2]
  ------------------
  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|      2|   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: 2]
  |  Branch (150:7): [True: 0, False: 2]
  |  Branch (150:50): [True: 0, False: 2]
  |  Branch (150:88): [True: 0, False: 2]
  ------------------
  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|      2|   if(oid == OID{1, 2, 643, 7, 1, 2, 1, 2, 1}) {
  ------------------
  |  Branch (162:7): [True: 0, False: 2]
  ------------------
  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|      2|   if(oid == OID{1, 3, 132, 0, 9}) {
  ------------------
  |  Branch (174:7): [True: 0, False: 2]
  ------------------
  175|      0|      return load_EC_group_info(
  176|      0|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC73",
  177|      0|         "0x0",
  178|      0|         "0x7",
  179|      0|         "0x3B4C382CE37AA192A4019E763036F4F5DD4D7EBB",
  180|      0|         "0x938CF935318FDCED6BC28286531733C3F03C4FEE",
  181|      0|         "0x100000000000000000001B8FA16DFAB9ACA16B6B3",
  182|      0|         oid);
  183|      0|   }
  184|       |
  185|       |   // secp160r1
  186|      2|   if(oid == OID{1, 3, 132, 0, 8}) {
  ------------------
  |  Branch (186:7): [True: 0, False: 2]
  ------------------
  187|      0|      return load_EC_group_info(
  188|      0|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFF",
  189|      0|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFC",
  190|      0|         "0x1C97BEFC54BD7A8B65ACF89F81D4D4ADC565FA45",
  191|      0|         "0x4A96B5688EF573284664698968C38BB913CBFC82",
  192|      0|         "0x23A628553168947D59DCC912042351377AC5FB32",
  193|      0|         "0x100000000000000000001F4C8F927AED3CA752257",
  194|      0|         oid);
  195|      0|   }
  196|       |
  197|       |   // secp160r2
  198|      2|   if(oid == OID{1, 3, 132, 0, 30}) {
  ------------------
  |  Branch (198:7): [True: 0, False: 2]
  ------------------
  199|      0|      return load_EC_group_info(
  200|      0|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC73",
  201|      0|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC70",
  202|      0|         "0xB4E134D3FB59EB8BAB57274904664D5AF50388BA",
  203|      0|         "0x52DCB034293A117E1F4FF11B30F7199D3144CE6D",
  204|      0|         "0xFEAFFEF2E331F296E071FA0DF9982CFEA7D43F2E",
  205|      0|         "0x100000000000000000000351EE786A818F3A1A16B",
  206|      0|         oid);
  207|      0|   }
  208|       |
  209|       |   // secp192k1
  210|      2|   if(oid == OID{1, 3, 132, 0, 31}) {
  ------------------
  |  Branch (210:7): [True: 0, False: 2]
  ------------------
  211|      0|      return load_EC_group_info(
  212|      0|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFEE37",
  213|      0|         "0x0",
  214|      0|         "0x3",
  215|      0|         "0xDB4FF10EC057E9AE26B07D0280B7F4341DA5D1B1EAE06C7D",
  216|      0|         "0x9B2F2F6D9C5628A7844163D015BE86344082AA88D95E2F9D",
  217|      0|         "0xFFFFFFFFFFFFFFFFFFFFFFFE26F2FC170F69466A74DEFD8D",
  218|      0|         oid);
  219|      0|   }
  220|       |
  221|       |   // secp192r1
  222|      2|   if(oid == OID{1, 2, 840, 10045, 3, 1, 1}) {
  ------------------
  |  Branch (222:7): [True: 0, False: 2]
  ------------------
  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|      2|   if(oid == OID{1, 3, 132, 0, 32}) {
  ------------------
  |  Branch (234:7): [True: 0, False: 2]
  ------------------
  235|      0|      return load_EC_group_info(
  236|      0|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFE56D",
  237|      0|         "0x0",
  238|      0|         "0x5",
  239|      0|         "0xA1455B334DF099DF30FC28A169A467E9E47075A90F7E650EB6B7A45C",
  240|      0|         "0x7E089FED7FBA344282CAFBD6F7E319F7C0B0BD59E2CA4BDB556D61A5",
  241|      0|         "0x10000000000000000000000000001DCE8D2EC6184CAF0A971769FB1F7",
  242|      0|         oid);
  243|      0|   }
  244|       |
  245|       |   // secp224r1
  246|      2|   if(oid == OID{1, 3, 132, 0, 33}) {
  ------------------
  |  Branch (246:7): [True: 0, False: 2]
  ------------------
  247|      0|      return load_EC_group_info(
  248|      0|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000001",
  249|      0|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFE",
  250|      0|         "0xB4050A850C04B3ABF54132565044B0B7D7BFD8BA270B39432355FFB4",
  251|      0|         "0xB70E0CBD6BB4BF7F321390B94A03C1D356C21122343280D6115C1D21",
  252|      0|         "0xBD376388B5F723FB4C22DFE6CD4375A05A07476444D5819985007E34",
  253|      0|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFF16A2E0B8F03E13DD29455C5C2A3D",
  254|      0|         oid);
  255|      0|   }
  256|       |
  257|       |   // secp256k1
  258|      2|   if(oid == OID{1, 3, 132, 0, 10}) {
  ------------------
  |  Branch (258:7): [True: 1, False: 1]
  ------------------
  259|      1|      return load_EC_group_info(
  260|      1|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F",
  261|      1|         "0x0",
  262|      1|         "0x7",
  263|      1|         "0x79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798",
  264|      1|         "0x483ADA7726A3C4655DA4FBFC0E1108A8FD17B448A68554199C47D08FFB10D4B8",
  265|      1|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141",
  266|      1|         oid);
  267|      1|   }
  268|       |
  269|       |   // sm2p256v1
  270|      1|   if(oid == OID{1, 2, 156, 10197, 1, 301}) {
  ------------------
  |  Branch (270:7): [True: 1, False: 0]
  ------------------
  271|      1|      return load_EC_group_info(
  272|      1|         "0xFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF",
  273|      1|         "0xFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC",
  274|      1|         "0x28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93",
  275|      1|         "0x32C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7",
  276|      1|         "0xBC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0",
  277|      1|         "0xFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123",
  278|      1|         oid);
  279|      1|   }
  280|       |
  281|       |   // x962_p192v2
  282|      0|   if(oid == OID{1, 2, 840, 10045, 3, 1, 2}) {
  ------------------
  |  Branch (282:7): [True: 0, False: 0]
  ------------------
  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|      0|   if(oid == OID{1, 2, 840, 10045, 3, 1, 3}) {
  ------------------
  |  Branch (294:7): [True: 0, False: 0]
  ------------------
  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|      0|   if(oid == OID{1, 2, 840, 10045, 3, 1, 4}) {
  ------------------
  |  Branch (306:7): [True: 0, False: 0]
  ------------------
  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|      0|   if(oid == OID{1, 2, 840, 10045, 3, 1, 5}) {
  ------------------
  |  Branch (318:7): [True: 0, False: 0]
  ------------------
  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|      0|   if(oid == OID{1, 2, 840, 10045, 3, 1, 6}) {
  ------------------
  |  Branch (330:7): [True: 0, False: 0]
  ------------------
  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|      0|   if(oid == OID{1, 3, 6, 1, 4, 1, 25258, 4, 3}) {
  ------------------
  |  Branch (342:7): [True: 0, False: 0]
  ------------------
  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|      0|   return std::shared_ptr<EC_Group_Data>();
  354|      0|}
_ZN5Botan8EC_Group18known_named_groupsEv:
  477|  18.4k|const std::set<std::string>& EC_Group::known_named_groups() {
  478|  18.4k|   static const std::set<std::string> named_groups = {
  479|  18.4k|#if defined(BOTAN_HAS_PCURVES_BRAINPOOL256R1) || defined(BOTAN_HAS_LEGACY_EC_POINT) || defined(BOTAN_HAS_PCURVES_GENERIC)
  480|  18.4k|      "brainpool256r1",
  481|  18.4k|#endif
  482|       |
  483|  18.4k|#if defined(BOTAN_HAS_PCURVES_BRAINPOOL384R1) || defined(BOTAN_HAS_LEGACY_EC_POINT) || defined(BOTAN_HAS_PCURVES_GENERIC)
  484|  18.4k|      "brainpool384r1",
  485|  18.4k|#endif
  486|       |
  487|  18.4k|#if defined(BOTAN_HAS_PCURVES_BRAINPOOL512R1) || defined(BOTAN_HAS_LEGACY_EC_POINT) || defined(BOTAN_HAS_PCURVES_GENERIC)
  488|  18.4k|      "brainpool512r1",
  489|  18.4k|#endif
  490|       |
  491|  18.4k|#if defined(BOTAN_HAS_PCURVES_FRP256V1) || defined(BOTAN_HAS_LEGACY_EC_POINT) || defined(BOTAN_HAS_PCURVES_GENERIC)
  492|  18.4k|      "frp256v1",
  493|  18.4k|#endif
  494|       |
  495|  18.4k|#if defined(BOTAN_HAS_PCURVES_NUMSP512D1) || defined(BOTAN_HAS_LEGACY_EC_POINT) || defined(BOTAN_HAS_PCURVES_GENERIC)
  496|  18.4k|      "numsp512d1",
  497|  18.4k|#endif
  498|       |
  499|  18.4k|#if defined(BOTAN_HAS_PCURVES_SECP192R1) || defined(BOTAN_HAS_LEGACY_EC_POINT) || defined(BOTAN_HAS_PCURVES_GENERIC)
  500|  18.4k|      "secp192r1",
  501|  18.4k|#endif
  502|       |
  503|  18.4k|#if defined(BOTAN_HAS_PCURVES_SECP224R1) || defined(BOTAN_HAS_LEGACY_EC_POINT)
  504|       |      // Not supported by pcurves_generic
  505|  18.4k|      "secp224r1",
  506|  18.4k|#endif
  507|       |
  508|  18.4k|#if defined(BOTAN_HAS_PCURVES_SECP256K1) || defined(BOTAN_HAS_LEGACY_EC_POINT) || defined(BOTAN_HAS_PCURVES_GENERIC)
  509|  18.4k|      "secp256k1",
  510|  18.4k|#endif
  511|       |
  512|  18.4k|#if defined(BOTAN_HAS_PCURVES_SECP256R1) || defined(BOTAN_HAS_LEGACY_EC_POINT) || defined(BOTAN_HAS_PCURVES_GENERIC)
  513|  18.4k|      "secp256r1",
  514|  18.4k|#endif
  515|       |
  516|  18.4k|#if defined(BOTAN_HAS_PCURVES_SECP384R1) || defined(BOTAN_HAS_LEGACY_EC_POINT) || defined(BOTAN_HAS_PCURVES_GENERIC)
  517|  18.4k|      "secp384r1",
  518|  18.4k|#endif
  519|       |
  520|  18.4k|#if defined(BOTAN_HAS_PCURVES_SECP521R1) || defined(BOTAN_HAS_LEGACY_EC_POINT) || defined(BOTAN_HAS_PCURVES_GENERIC)
  521|  18.4k|      "secp521r1",
  522|  18.4k|#endif
  523|       |
  524|  18.4k|#if defined(BOTAN_HAS_PCURVES_SM2P256V1) || defined(BOTAN_HAS_LEGACY_EC_POINT) || defined(BOTAN_HAS_PCURVES_GENERIC)
  525|  18.4k|      "sm2p256v1",
  526|  18.4k|#endif
  527|       |
  528|  18.4k|#if defined(BOTAN_HAS_LEGACY_EC_POINT) || defined(BOTAN_HAS_PCURVES_GENERIC)
  529|  18.4k|      "brainpool192r1",
  530|  18.4k|      "brainpool224r1",
  531|  18.4k|      "brainpool320r1",
  532|  18.4k|      "gost_256A",
  533|  18.4k|      "gost_512A",
  534|  18.4k|      "secp192k1",
  535|  18.4k|      "x962_p192v2",
  536|  18.4k|      "x962_p192v3",
  537|  18.4k|      "x962_p239v1",
  538|  18.4k|      "x962_p239v2",
  539|  18.4k|      "x962_p239v3",
  540|  18.4k|#endif
  541|       |
  542|  18.4k|#if defined(BOTAN_HAS_LEGACY_EC_POINT)
  543|  18.4k|      "brainpool160r1",
  544|  18.4k|      "secp160k1",
  545|  18.4k|      "secp160r1",
  546|  18.4k|      "secp160r2",
  547|  18.4k|      "secp224k1",
  548|  18.4k|#endif
  549|  18.4k|   };
  550|       |
  551|  18.4k|   return named_groups;
  552|  18.4k|}

_ZN5Botan9EC_ScalarC2ENSt3__110unique_ptrINS_14EC_Scalar_DataENS1_14default_deleteIS3_EEEE:
   19|  79.5k|EC_Scalar::EC_Scalar(std::unique_ptr<EC_Scalar_Data> scalar) : m_scalar(std::move(scalar)) {
   20|  79.5k|   BOTAN_ASSERT_NONNULL(m_scalar);
  ------------------
  |  |  116|  79.5k|   do {                                                                                   \
  |  |  117|  79.5k|      if((ptr) == nullptr) {                                                              \
  |  |  ------------------
  |  |  |  Branch (117:10): [True: 0, False: 79.5k]
  |  |  ------------------
  |  |  118|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                              \
  |  |  119|      0|         Botan::assertion_failure(#ptr " is not null", "", __func__, __FILE__, __LINE__); \
  |  |  120|      0|      }                                                                                   \
  |  |  121|  79.5k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (121:12): [Folded, False: 79.5k]
  |  |  ------------------
  ------------------
   21|  79.5k|}
_ZN5Botan9EC_ScalarC2ERKS0_:
   23|  27.9k|EC_Scalar::EC_Scalar(const EC_Scalar& other) : m_scalar(other.inner().clone()) {}
_ZN5Botan9EC_ScalarC2EOS0_:
   25|  55.9k|EC_Scalar::EC_Scalar(EC_Scalar&& other) noexcept : m_scalar(std::move(other.m_scalar)) {}
_ZN5Botan9EC_ScalarD2Ev:
   46|   163k|EC_Scalar::~EC_Scalar() = default;
_ZN5Botan9EC_Scalar21from_bytes_with_truncERKNS_8EC_GroupENSt3__14spanIKhLm18446744073709551615EEE:
   52|  9.59k|EC_Scalar EC_Scalar::from_bytes_with_trunc(const EC_Group& group, std::span<const uint8_t> bytes) {
   53|  9.59k|   return EC_Scalar(group._data()->scalar_from_bytes_with_trunc(bytes));
   54|  9.59k|}
_ZN5Botan9EC_Scalar20from_bytes_mod_orderERKNS_8EC_GroupENSt3__14spanIKhLm18446744073709551615EEE:
   56|  4.38k|EC_Scalar EC_Scalar::from_bytes_mod_order(const EC_Group& group, std::span<const uint8_t> bytes) {
   57|  4.38k|   if(auto s = group._data()->scalar_from_bytes_mod_order(bytes)) {
  ------------------
  |  Branch (57:12): [True: 4.38k, False: 0]
  ------------------
   58|  4.38k|      return EC_Scalar(std::move(s));
   59|  4.38k|   } else {
   60|      0|      throw Decoding_Error("EC_Scalar::from_bytes_mod_order input invalid");
   61|      0|   }
   62|  4.38k|}
_ZN5Botan9EC_Scalar16deserialize_pairERKNS_8EC_GroupENSt3__14spanIKhLm18446744073709551615EEE:
  105|  14.0k|                                                                           std::span<const uint8_t> bytes) {
  106|  14.0k|   if(bytes.size() % 2 != 0) {
  ------------------
  |  Branch (106:7): [True: 0, False: 14.0k]
  ------------------
  107|      0|      return {};
  108|      0|   }
  109|       |
  110|  14.0k|   const size_t half = bytes.size() / 2;
  111|       |
  112|  14.0k|   auto r = EC_Scalar::deserialize(group, bytes.first(half));
  113|  14.0k|   auto s = EC_Scalar::deserialize(group, bytes.last(half));
  114|       |
  115|  14.0k|   if(r && s) {
  ------------------
  |  Branch (115:7): [True: 13.9k, False: 41]
  |  Branch (115:12): [True: 13.9k, False: 8]
  ------------------
  116|  13.9k|      return std::make_pair(r.value(), s.value());
  117|  13.9k|   } else {
  118|     49|      return {};
  119|     49|   }
  120|  14.0k|}
_ZN5Botan9EC_Scalar11deserializeERKNS_8EC_GroupENSt3__14spanIKhLm18446744073709551615EEE:
  122|  28.0k|std::optional<EC_Scalar> EC_Scalar::deserialize(const EC_Group& group, std::span<const uint8_t> bytes) {
  123|  28.0k|   if(auto v = group._data()->scalar_deserialize(bytes)) {
  ------------------
  |  Branch (123:12): [True: 27.9k, False: 55]
  ------------------
  124|  27.9k|      return EC_Scalar(std::move(v));
  125|  27.9k|   } else {
  126|     55|      return {};
  127|     55|   }
  128|  28.0k|}
_ZNK5Botan9EC_Scalar7is_zeroEv:
  137|  32.3k|bool EC_Scalar::is_zero() const {
  138|  32.3k|   return inner().is_zero();
  139|  32.3k|}
_ZNK5Botan9EC_Scalar14invert_vartimeEv:
  145|  9.59k|EC_Scalar EC_Scalar::invert_vartime() const {
  146|  9.59k|   return EC_Scalar(inner().invert_vartime());
  147|  9.59k|}
_ZNK5Botan9EC_Scalar3addERKS0_:
  157|  4.37k|EC_Scalar EC_Scalar::add(const EC_Scalar& x) const {
  158|  4.37k|   BOTAN_ARG_CHECK(inner().group() == x.inner().group(), "Curve mismatch");
  ------------------
  |  |   35|  4.37k|   do {                                                          \
  |  |   36|  4.37k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  4.37k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 4.37k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  4.37k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 4.37k]
  |  |  ------------------
  ------------------
  159|  4.37k|   return EC_Scalar(inner().add(x.inner()));
  160|  4.37k|}
_ZNK5Botan9EC_Scalar3subERKS0_:
  162|  4.37k|EC_Scalar EC_Scalar::sub(const EC_Scalar& x) const {
  163|  4.37k|   BOTAN_ARG_CHECK(inner().group() == x.inner().group(), "Curve mismatch");
  ------------------
  |  |   35|  4.37k|   do {                                                          \
  |  |   36|  4.37k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  4.37k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 4.37k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  4.37k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 4.37k]
  |  |  ------------------
  ------------------
  164|  4.37k|   return EC_Scalar(inner().sub(x.inner()));
  165|  4.37k|}
_ZNK5Botan9EC_Scalar3mulERKS0_:
  167|  19.1k|EC_Scalar EC_Scalar::mul(const EC_Scalar& x) const {
  168|  19.1k|   BOTAN_ARG_CHECK(inner().group() == x.inner().group(), "Curve mismatch");
  ------------------
  |  |   35|  19.1k|   do {                                                          \
  |  |   36|  19.1k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  19.1k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 19.1k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  19.1k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 19.1k]
  |  |  ------------------
  ------------------
  169|  19.1k|   return EC_Scalar(inner().mul(x.inner()));
  170|  19.1k|}

_ZN5Botan8CurveGFpC2EPKNS_13EC_Group_DataE:
   28|      3|CurveGFp::CurveGFp(const EC_Group_Data* group) : m_group(group) {
   29|      3|   BOTAN_ASSERT_NONNULL(m_group);
  ------------------
  |  |  116|      3|   do {                                                                                   \
  |  |  117|      3|      if((ptr) == nullptr) {                                                              \
  |  |  ------------------
  |  |  |  Branch (117:10): [True: 0, False: 3]
  |  |  ------------------
  |  |  118|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                              \
  |  |  119|      0|         Botan::assertion_failure(#ptr " is not null", "", __func__, __FILE__, __LINE__); \
  |  |  120|      0|      }                                                                                   \
  |  |  121|      3|   } while(0)
  |  |  ------------------
  |  |  |  Branch (121:12): [Folded, False: 3]
  |  |  ------------------
  ------------------
   30|      3|}
_ZNK5Botan8CurveGFp5groupEv:
   32|  36.8k|const EC_Group_Data& CurveGFp::group() const {
   33|  36.8k|   BOTAN_ASSERT_NONNULL(m_group);
  ------------------
  |  |  116|  36.8k|   do {                                                                                   \
  |  |  117|  36.8k|      if((ptr) == nullptr) {                                                              \
  |  |  ------------------
  |  |  |  Branch (117:10): [True: 0, False: 36.8k]
  |  |  ------------------
  |  |  118|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                              \
  |  |  119|      0|         Botan::assertion_failure(#ptr " is not null", "", __func__, __FILE__, __LINE__); \
  |  |  120|      0|      }                                                                                   \
  |  |  121|  36.8k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (121:12): [Folded, False: 36.8k]
  |  |  ------------------
  ------------------
   34|  36.8k|   return *m_group;
   35|  36.8k|}
_ZN5Botan8EC_PointC2ERKNS_8CurveGFpENS_6BigIntES4_:
  115|  18.4k|      m_curve(curve), m_x(std::move(x)), m_y(std::move(y)), m_z(m_curve.group().monty().R1()) {
  116|  18.4k|   const auto& group = m_curve.group();
  117|       |
  118|  18.4k|   if(m_x < 0 || m_x >= group.p()) {
  ------------------
  |  Branch (118:7): [True: 0, False: 18.4k]
  |  Branch (118:18): [True: 0, False: 18.4k]
  ------------------
  119|      0|      throw Invalid_Argument("Invalid EC_Point affine x");
  120|      0|   }
  121|  18.4k|   if(m_y < 0 || m_y >= group.p()) {
  ------------------
  |  Branch (121:7): [True: 0, False: 18.4k]
  |  Branch (121:18): [True: 0, False: 18.4k]
  ------------------
  122|      0|      throw Invalid_Argument("Invalid EC_Point affine y");
  123|      0|   }
  124|       |
  125|  18.4k|   secure_vector<word> monty_ws(monty_ws_size(group));
  126|       |
  127|  18.4k|   to_rep(group, m_x, monty_ws);
  128|  18.4k|   to_rep(group, m_y, monty_ws);
  129|  18.4k|}
_ZN5Botan8EC_Point4swapERS0_:
  792|  18.4k|void EC_Point::swap(EC_Point& other) noexcept {
  793|  18.4k|   m_curve.swap(other.m_curve);
  794|  18.4k|   m_x.swap(other.m_x);
  795|  18.4k|   m_y.swap(other.m_y);
  796|  18.4k|   m_z.swap(other.m_z);
  797|  18.4k|}
ec_point.cpp:_ZN5Botan12_GLOBAL__N_113monty_ws_sizeERKNS_13EC_Group_DataE:
  102|  18.4k|size_t monty_ws_size(const EC_Group_Data& group) {
  103|  18.4k|   return 2 * group.p_words();
  104|  18.4k|}
ec_point.cpp:_ZN5Botan12_GLOBAL__N_16to_repERKNS_13EC_Group_DataERNS_6BigIntERNSt3__16vectorImNS_16secure_allocatorImEEEE:
   55|  36.8k|void to_rep(const EC_Group_Data& group, BigInt& x, secure_vector<word>& ws) {
   56|  36.8k|   group.monty().mul_by(x, group.monty().R2(), ws);
   57|  36.8k|}

_ZN5Botan17EC_PublicKey_DataC2ENS_8EC_GroupENS_14EC_AffinePointE:
   41|  18.4k|      m_group(std::move(group)), m_point(std::move(pt)) {
   42|  18.4k|#if defined(BOTAN_HAS_LEGACY_EC_POINT)
   43|  18.4k|   m_legacy_point = m_point.to_legacy_point();
   44|  18.4k|#endif
   45|       |
   46|       |   // Checking that the point lies on the curve is done in the deserialization
   47|       |   // of EC_AffinePoint.
   48|  18.4k|   BOTAN_ARG_CHECK(!m_point.is_identity(), "ECC public key cannot be point at infinity");
  ------------------
  |  |   35|  18.4k|   do {                                                          \
  |  |   36|  18.4k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  18.4k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 18.4k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  18.4k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 18.4k]
  |  |  ------------------
  ------------------
   49|  18.4k|}

_ZN5Botan12EC_PublicKeyC2ERKNS_8EC_GroupERKNS_14EC_AffinePointE:
   66|  18.4k|EC_PublicKey::EC_PublicKey(const EC_Group& group, const EC_AffinePoint& pub_point) {
   67|  18.4k|   m_public_key = std::make_shared<const EC_PublicKey_Data>(group, pub_point);
   68|  18.4k|   m_domain_encoding = default_encoding_for(domain());  // NOLINT(*-prefer-member-initializer)
   69|  18.4k|}
_ZNK5Botan12EC_PublicKey6domainEv:
   76|  50.8k|const EC_Group& EC_PublicKey::domain() const {
   77|  50.8k|   BOTAN_STATE_CHECK(m_public_key != nullptr);
  ------------------
  |  |   51|  50.8k|   do {                                                         \
  |  |   52|  50.8k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|  50.8k|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 50.8k]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|  50.8k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 50.8k]
  |  |  ------------------
  ------------------
   78|  50.8k|   return m_public_key->group();
   79|  50.8k|}
_ZNK5Botan12EC_PublicKey16_public_ec_pointEv:
   88|  18.4k|const EC_AffinePoint& EC_PublicKey::_public_ec_point() const {
   89|  18.4k|   BOTAN_STATE_CHECK(m_public_key != nullptr);
  ------------------
  |  |   51|  18.4k|   do {                                                         \
  |  |   52|  18.4k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|  18.4k|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 18.4k]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|  18.4k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 18.4k]
  |  |  ------------------
  ------------------
   90|  18.4k|   return m_public_key->public_key();
   91|  18.4k|}
ecc_key.cpp:_ZN5Botan12_GLOBAL__N_120default_encoding_forERKNS_8EC_GroupE:
   38|  18.4k|EC_Group_Encoding default_encoding_for(const EC_Group& group) {
   39|  18.4k|   if(group.get_curve_oid().empty()) {
  ------------------
  |  Branch (39:7): [True: 0, False: 18.4k]
  ------------------
   40|      0|      return EC_Group_Encoding::Explicit;
   41|  18.4k|   } else {
   42|  18.4k|      return EC_Group_Encoding::NamedCurve;
   43|  18.4k|   }
   44|  18.4k|}

_ZNK5Botan15ECDSA_PublicKey40_signature_element_size_for_DER_encodingEv:
   80|  9.63k|std::optional<size_t> ECDSA_PublicKey::_signature_element_size_for_DER_encoding() const {
   81|  9.63k|   return domain().get_order_bytes();
   82|  9.63k|}
_ZNK5Botan15ECDSA_PublicKey22create_verification_opENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEES5_:
  264|  9.63k|                                                                              std::string_view provider) const {
  265|  9.63k|   if(provider == "base" || provider.empty()) {
  ------------------
  |  Branch (265:7): [True: 0, False: 9.63k]
  |  Branch (265:29): [True: 9.63k, False: 0]
  ------------------
  266|  9.63k|      return std::make_unique<ECDSA_Verification_Operation>(*this, params);
  267|  9.63k|   }
  268|       |
  269|      0|   throw Provider_Not_Found(algo_name(), provider);
  270|  9.63k|}
ecdsa.cpp:_ZN5Botan12_GLOBAL__N_128ECDSA_Verification_OperationC2ERKNS_15ECDSA_PublicKeyENSt3__117basic_string_viewIcNS5_11char_traitsIcEEEE:
  218|  9.63k|            PK_Ops::Verification_with_Hash(padding), m_group(ecdsa.domain()), m_gy_mul(ecdsa._public_ec_point()) {}
ecdsa.cpp:_ZN5Botan12_GLOBAL__N_128ECDSA_Verification_Operation6verifyENSt3__14spanIKhLm18446744073709551615EEES5_:
  244|  9.63k|bool ECDSA_Verification_Operation::verify(std::span<const uint8_t> msg, std::span<const uint8_t> sig) {
  245|  9.63k|   if(auto rs = EC_Scalar::deserialize_pair(m_group, sig)) {
  ------------------
  |  Branch (245:12): [True: 9.59k, False: 42]
  ------------------
  246|  9.59k|      const auto& [r, s] = rs.value();
  247|       |
  248|  9.59k|      if(r.is_nonzero() && s.is_nonzero()) {
  ------------------
  |  Branch (248:10): [True: 9.59k, False: 0]
  |  Branch (248:28): [True: 9.59k, False: 0]
  ------------------
  249|  9.59k|         const auto m = EC_Scalar::from_bytes_with_trunc(m_group, msg);
  250|       |
  251|  9.59k|         const auto w = s.invert_vartime();
  252|       |
  253|       |         // Check if r == x_coord(g*w*m + y*w*r) % n
  254|  9.59k|         return m_gy_mul.mul2_vartime_x_mod_order_eq(r, w, m, r);
  255|  9.59k|      }
  256|  9.59k|   }
  257|       |
  258|     42|   return false;
  259|  9.63k|}

_ZN5Botan14ed25519_verifyEPKhmS1_S1_S1_m:
   76|  4.09k|                    size_t domain_sep_len) {
   77|  4.09k|   if((sig[63] & 0xE0) != 0x00) {
  ------------------
  |  Branch (77:7): [True: 57, False: 4.03k]
  ------------------
   78|     57|      return false;
   79|     57|   }
   80|       |
   81|  4.03k|   const uint8_t identity_element[32] = {1};
   82|  4.03k|   if(CT::is_equal(pk, identity_element, 32).as_bool()) {
  ------------------
  |  Branch (82:7): [True: 0, False: 4.03k]
  ------------------
   83|      0|      return false;
   84|      0|   }
   85|       |
   86|  4.03k|   const uint64_t CURVE25519_ORDER[4] = {
   87|  4.03k|      0x1000000000000000,
   88|  4.03k|      0x0000000000000000,
   89|  4.03k|      0x14def9dea2f79cd6,
   90|  4.03k|      0x5812631a5cf5d3ed,
   91|  4.03k|   };
   92|       |
   93|  4.03k|   const uint64_t s[4] = {load_le<uint64_t>(sig + 32, 3),
   94|  4.03k|                          load_le<uint64_t>(sig + 32, 2),
   95|  4.03k|                          load_le<uint64_t>(sig + 32, 1),
   96|  4.03k|                          load_le<uint64_t>(sig + 32, 0)};
   97|       |
   98|       |   // RFC 8032 adds the requirement that we verify that s < order in
   99|       |   // the signature; this did not exist in the original Ed25519 spec.
  100|  4.05k|   for(size_t i = 0; i != 4; ++i) {
  ------------------
  |  Branch (100:22): [True: 4.05k, False: 0]
  ------------------
  101|  4.05k|      if(s[i] > CURVE25519_ORDER[i]) {
  ------------------
  |  Branch (101:10): [True: 14, False: 4.03k]
  ------------------
  102|     14|         return false;
  103|     14|      }
  104|  4.03k|      if(s[i] < CURVE25519_ORDER[i]) {
  ------------------
  |  Branch (104:10): [True: 4.02k, False: 16]
  ------------------
  105|  4.02k|         break;
  106|  4.02k|      }
  107|     16|      if(i == 3) {  // here s == order
  ------------------
  |  Branch (107:10): [True: 0, False: 16]
  ------------------
  108|      0|         return false;
  109|      0|      }
  110|     16|   }
  111|       |
  112|  4.02k|   uint8_t h[64];
  113|  4.02k|   auto sha512 = HashFunction::create_or_throw("SHA-512");
  114|       |
  115|  4.02k|   sha512->update(domain_sep, domain_sep_len);
  116|  4.02k|   sha512->update(sig, 32);
  117|  4.02k|   sha512->update(pk, 32);
  118|  4.02k|   sha512->update(m, mlen);
  119|  4.02k|   sha512->final(h);
  120|  4.02k|   sc_reduce(h);
  121|       |
  122|  4.02k|   return signature_check(std::span<const uint8_t, 32>{pk, 32}, h, sig, sig + 32);
  123|  4.03k|}

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

_ZN5Botan17Ed25519_PublicKeyC1EPKhm:
   98|  4.09k|Ed25519_PublicKey::Ed25519_PublicKey(const uint8_t pub_key[], size_t pub_len) {
   99|  4.09k|   if(pub_len != 32) {
  ------------------
  |  Branch (99:7): [True: 0, False: 4.09k]
  ------------------
  100|      0|      throw Decoding_Error("Invalid length for Ed25519 key");
  101|      0|   }
  102|  4.09k|   m_public = std::make_shared<const Ed25519_PublicKey_Data>(std::vector<uint8_t>(pub_key, pub_key + pub_len));
  103|  4.09k|}
_ZNK5Botan17Ed25519_PublicKey22create_verification_opENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEES5_:
  343|  4.09k|                                                                                std::string_view provider) const {
  344|  4.09k|   if(provider == "base" || provider.empty()) {
  ------------------
  |  Branch (344:7): [True: 0, False: 4.09k]
  |  Branch (344:29): [True: 4.09k, False: 0]
  ------------------
  345|  4.09k|      if(params.empty() || params == "Identity" || params == "Pure") {
  ------------------
  |  Branch (345:10): [True: 0, False: 4.09k]
  |  Branch (345:28): [True: 0, False: 4.09k]
  |  Branch (345:52): [True: 4.09k, False: 0]
  ------------------
  346|  4.09k|         return std::make_unique<Ed25519_Pure_Verify_Operation>(m_public);
  347|  4.09k|      } else if(params == "Ed25519ph") {
  ------------------
  |  Branch (347:17): [True: 0, False: 0]
  ------------------
  348|      0|         return std::make_unique<Ed25519_Hashed_Verify_Operation>(m_public, "SHA-512", true);
  349|      0|      } else {
  350|      0|         return std::make_unique<Ed25519_Hashed_Verify_Operation>(m_public, params, false);
  351|      0|      }
  352|  4.09k|   }
  353|      0|   throw Provider_Not_Found(algo_name(), provider);
  354|  4.09k|}
_ZNK5Botan22Ed25519_PublicKey_Data3keyEv:
   25|  4.09k|      const std::vector<uint8_t>& key() const { return m_key; }
_ZN5Botan22Ed25519_PublicKey_DataC2ENSt3__16vectorIhNS1_9allocatorIhEEEE:
   23|  4.09k|      explicit Ed25519_PublicKey_Data(std::vector<uint8_t> key) : m_key(std::move(key)) {}
ed25519_key.cpp:_ZN5Botan12_GLOBAL__N_129Ed25519_Pure_Verify_OperationC2ENSt3__110shared_ptrIKNS_22Ed25519_PublicKey_DataEEE:
  222|  4.09k|            m_key(std::move(key)) {}
ed25519_key.cpp:_ZN5Botan12_GLOBAL__N_129Ed25519_Pure_Verify_Operation6updateENSt3__14spanIKhLm18446744073709551615EEE:
  224|  4.09k|      void update(std::span<const uint8_t> msg) override { m_msg.insert(m_msg.end(), msg.begin(), msg.end()); }
ed25519_key.cpp:_ZN5Botan12_GLOBAL__N_129Ed25519_Pure_Verify_Operation18is_valid_signatureENSt3__14spanIKhLm18446744073709551615EEE:
  226|  4.09k|      bool is_valid_signature(std::span<const uint8_t> sig) override {
  227|  4.09k|         if(sig.size() != 64) {
  ------------------
  |  Branch (227:13): [True: 0, False: 4.09k]
  ------------------
  228|      0|            m_msg.clear();
  229|      0|            return false;
  230|      0|         }
  231|       |
  232|  4.09k|         const auto& key = m_key->key();
  233|  4.09k|         BOTAN_ASSERT_EQUAL(key.size(), 32, "Expected size");
  ------------------
  |  |   90|  4.09k|   do {                                                                                                \
  |  |   91|  4.09k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                                    \
  |  |   92|  4.09k|      if((expr1) != (expr2)) {                                                                         \
  |  |  ------------------
  |  |  |  Branch (92:10): [True: 0, False: 4.09k]
  |  |  ------------------
  |  |   93|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                                           \
  |  |   94|      0|         Botan::assertion_failure(#expr1 " == " #expr2, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   95|      0|      }                                                                                                \
  |  |   96|  4.09k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (96:12): [Folded, False: 4.09k]
  |  |  ------------------
  ------------------
  234|  4.09k|         const bool ok = ed25519_verify(m_msg.data(), m_msg.size(), sig.data(), key.data(), nullptr, 0);
  235|  4.09k|         m_msg.clear();
  236|  4.09k|         return ok;
  237|  4.09k|      }

_ZN5Botan15signature_checkENSt3__14spanIKhLm32EEEPS2_S4_S4_:
 1915|  4.02k|bool signature_check(std::span<const uint8_t, 32> pk, const uint8_t h[32], const uint8_t r[32], const uint8_t s[32]) {
 1916|  4.02k|   if(auto A = frombytes_negate_vartime(pk)) {
  ------------------
  |  Branch (1916:12): [True: 4.02k, False: 3]
  ------------------
 1917|  4.02k|      std::array<uint8_t, 32> rcheck{};
 1918|  4.02k|      ge_double_scalarmult_vartime(rcheck, h, *A, s);
 1919|  4.02k|      return CT::is_equal(rcheck.data(), r, 32).as_bool();
 1920|  4.02k|   }
 1921|      3|   return false;
 1922|  4.02k|}
ge.cpp:_ZN5Botan12_GLOBAL__N_122Ed25519_Point_Extended8identityEv:
  109|  4.02k|      static constexpr Ed25519_Point_Extended identity() {
  110|  4.02k|         Ed25519_Point_Extended h;
  111|  4.02k|         h.X = Ed25519_FieldElement::zero();
  112|  4.02k|         h.Y = Ed25519_FieldElement::one();
  113|  4.02k|         h.Z = Ed25519_FieldElement::one();
  114|  4.02k|         h.T = Ed25519_FieldElement::zero();
  115|  4.02k|         return h;
  116|  4.02k|      }
ge.cpp:_ZN5Botan12_GLOBAL__N_122Ed25519_Point_Extended4fromERKNS0_23Ed25519_Point_CompletedE:
  129|   365k|      static Ed25519_Point_Extended from(const Ed25519_Point_Completed& p) {
  130|   365k|         Ed25519_Point_Extended r;
  131|   365k|         r.X = p.X * p.T;
  132|   365k|         r.Y = p.Y * p.Z;
  133|   365k|         r.Z = p.Z * p.T;
  134|   365k|         r.T = p.X * p.Y;
  135|   365k|         return r;
  136|   365k|      }
ge.cpp:_ZN5Botan12_GLOBAL__N_1plERKNS0_22Ed25519_Point_ExtendedERKNS0_19Ed25519_Point_NielsE:
  220|  83.3k|inline Ed25519_Point_Completed operator+(const Ed25519_Point_Extended& p, const Ed25519_Point_Niels& q) {
  221|  83.3k|   Ed25519_Point_Completed r;
  222|  83.3k|   r.X = p.Y + p.X;        // YpX1 = Y1+X1
  223|  83.3k|   r.Y = p.Y - p.X;        // YmX1 = Y1-X1
  224|  83.3k|   r.Z = r.X * q.yplusx;   // A = YpX1*ypx2
  225|  83.3k|   r.Y = r.Y * q.yminusx;  // B = YmX1*ymx2
  226|  83.3k|   r.T = q.xy2d * p.T;     // C = xy2d2*T1
  227|  83.3k|   auto t0 = p.Z + p.Z;    // D = 2*Z1
  228|  83.3k|   r.X = r.Z - r.Y;        // X3 = A-B
  229|  83.3k|   r.Y = r.Z + r.Y;        // Y3 = A+B
  230|  83.3k|   r.Z = t0 + r.T;         // Z3 = D+C
  231|  83.3k|   r.T = t0 - r.T;         // T3 = D-C
  232|  83.3k|   return r;
  233|  83.3k|}
ge.cpp:_ZN5Botan12_GLOBAL__N_124Ed25519_Point_Projective4fromERKNS0_23Ed25519_Point_CompletedE:
   56|  1.00M|      static Ed25519_Point_Projective from(const Ed25519_Point_Completed& p) {
   57|  1.00M|         Ed25519_Point_Projective r;
   58|  1.00M|         r.X = p.X * p.T;
   59|  1.00M|         r.Y = p.Y * p.Z;
   60|  1.00M|         r.Z = p.Z * p.T;
   61|  1.00M|         return r;
   62|  1.00M|      }
ge.cpp:_ZNK5Botan12_GLOBAL__N_122Ed25519_Point_Extended3dblEv:
  118|  4.02k|      Ed25519_Point_Completed dbl() const {
  119|  4.02k|         Ed25519_Point_Projective q;
  120|  4.02k|         q.X = X;
  121|  4.02k|         q.Y = Y;
  122|  4.02k|         q.Z = Z;
  123|  4.02k|         return q.dbl();
  124|  4.02k|      }
ge.cpp:_ZNK5Botan12_GLOBAL__N_124Ed25519_Point_Projective3dblEv:
   83|  1.01M|Ed25519_Point_Completed Ed25519_Point_Projective::dbl() const {
   84|  1.01M|   Ed25519_Point_Completed r;
   85|  1.01M|   r.X = X.sqr();        // XX=X1^2
   86|  1.01M|   r.Z = Y.sqr();        // YY=Y1^2
   87|  1.01M|   r.T = Z.sqr2();       // B=2*Z1^2
   88|  1.01M|   r.Y = X + Y;          // A=X1+Y1
   89|  1.01M|   auto t0 = r.Y.sqr();  // AA=A^2
   90|  1.01M|   r.Y = r.Z + r.X;      // Y3=YY+XX
   91|  1.01M|   r.Z = r.Z - r.X;      // Z3=YY-XX
   92|  1.01M|   r.X = t0 - r.Y;       // X3=AA-Y3
   93|  1.01M|   r.T = r.T - r.Z;      // T3=B-Z3
   94|  1.01M|   return r;
   95|  1.01M|}
ge.cpp:_ZN5Botan12_GLOBAL__N_124frombytes_negate_vartimeENSt3__14spanIKhLm32EEE:
  305|  4.02k|std::optional<Ed25519_Point_Extended> frombytes_negate_vartime(std::span<const uint8_t, 32> s) {
  306|  4.02k|   static constexpr Ed25519_FieldElement d = {
  307|  4.02k|      -10913610, 13857413, -15372611, 6949391, 114729, -8787816, -6275908, -3247719, -18696448, -12055116};
  308|  4.02k|   static constexpr Ed25519_FieldElement sqrtm1 = {
  309|  4.02k|      -32595792, -7943725, 9377950, 3500415, 12389472, -272473, -25146209, -2005654, 326686, 11406482};
  310|       |
  311|  4.02k|   auto h = Ed25519_Point_Extended::identity();
  312|  4.02k|   h.Y = Ed25519_FieldElement::deserialize(s.data());
  313|  4.02k|   h.Z = Ed25519_FieldElement::one();
  314|  4.02k|   auto u = h.Y.sqr();
  315|  4.02k|   auto v = u * d;
  316|  4.02k|   u = u - h.Z; /* u = y^2-1 */
  317|  4.02k|   v = v + h.Z; /* v = dy^2+1 */
  318|       |
  319|  4.02k|   auto v3 = v.sqr() * v;
  320|  4.02k|   h.X = v3.sqr();
  321|  4.02k|   h.X = h.X * v;
  322|  4.02k|   h.X = h.X * u; /* x = uv^7 */
  323|       |
  324|  4.02k|   h.X = h.X.pow_22523();
  325|  4.02k|   h.X = h.X * v3;
  326|  4.02k|   h.X = h.X * u; /* x = uv^3(uv^7)^((q-5)/8) */
  327|       |
  328|  4.02k|   auto vxx = h.X.sqr();
  329|  4.02k|   vxx = vxx * v;
  330|  4.02k|   auto check = vxx - u; /* vx^2-u */
  331|  4.02k|   if(!check.is_zero()) {
  ------------------
  |  Branch (331:7): [True: 3.71k, False: 306]
  ------------------
  332|  3.71k|      check = vxx + u; /* vx^2+u */
  333|  3.71k|      if(!check.is_zero()) {
  ------------------
  |  Branch (333:10): [True: 3, False: 3.71k]
  ------------------
  334|      3|         return {};
  335|      3|      }
  336|  3.71k|      h.X = h.X * sqrtm1;
  337|  3.71k|   }
  338|       |
  339|  4.02k|   if(h.X.is_negative() == bool(s[31] >> 7)) {
  ------------------
  |  Branch (339:7): [True: 1.43k, False: 2.58k]
  ------------------
  340|  1.43k|      h.X = -h.X;
  341|  1.43k|   }
  342|       |
  343|       |   // RFC 8032 Section 5.1.3: "If x = 0, and x_0 = 1, decoding fails."
  344|       |   // x = 0 is invariant under the negation above, and x_0 is the encoded sign
  345|       |   // bit s[31] >> 7. This rejects the non-canonical identity encoding
  346|       |   // {0x01, 0x00 ..., 0x00, 0x80} during decoding, which otherwise decodes to
  347|       |   // the identity and slips past the canonical-only identity check in
  348|       |   // ed25519_verify(). (Ed25519_PublicKey::check_key() rejects this encoding
  349|       |   // separately, as it flips the sign bit before decoding.)
  350|  4.02k|   if(h.X.is_zero() && bool(s[31] >> 7)) {
  ------------------
  |  Branch (350:7): [True: 0, False: 4.02k]
  |  Branch (350:24): [True: 0, False: 0]
  ------------------
  351|      0|      return {};
  352|      0|   }
  353|       |
  354|  4.02k|   h.T = h.X * h.Y;
  355|  4.02k|   return h;
  356|  4.02k|}
ge.cpp:_ZN5Botan12_GLOBAL__N_128ge_double_scalarmult_vartimeENSt3__14spanIhLm32EEEPKhRKNS0_22Ed25519_Point_ExtendedES5_:
  368|  4.02k|                                  const uint8_t* b) {
  369|  4.02k|   static constexpr Ed25519_Point_Niels Bi[8] = {
  370|  4.02k|      {
  371|  4.02k|         {25967493, -14356035, 29566456, 3660896, -12694345, 4014787, 27544626, -11754271, -6079156, 2047605},
  372|  4.02k|         {-12545711, 934262, -2722910, 3049990, -727428, 9406986, 12720692, 5043384, 19500929, -15469378},
  373|  4.02k|         {-8738181, 4489570, 9688441, -14785194, 10184609, -12363380, 29287919, 11864899, -24514362, -4438546},
  374|  4.02k|      },
  375|  4.02k|      {
  376|  4.02k|         {15636291, -9688557, 24204773, -7912398, 616977, -16685262, 27787600, -14772189, 28944400, -1550024},
  377|  4.02k|         {16568933, 4717097, -11556148, -1102322, 15682896, -11807043, 16354577, -11775962, 7689662, 11199574},
  378|  4.02k|         {30464156, -5976125, -11779434, -15670865, 23220365, 15915852, 7512774, 10017326, -17749093, -9920357},
  379|  4.02k|      },
  380|  4.02k|      {
  381|  4.02k|         {10861363, 11473154, 27284546, 1981175, -30064349, 12577861, 32867885, 14515107, -15438304, 10819380},
  382|  4.02k|         {4708026, 6336745, 20377586, 9066809, -11272109, 6594696, -25653668, 12483688, -12668491, 5581306},
  383|  4.02k|         {19563160, 16186464, -29386857, 4097519, 10237984, -4348115, 28542350, 13850243, -23678021, -15815942},
  384|  4.02k|      },
  385|  4.02k|      {
  386|  4.02k|         {5153746, 9909285, 1723747, -2777874, 30523605, 5516873, 19480852, 5230134, -23952439, -15175766},
  387|  4.02k|         {-30269007, -3463509, 7665486, 10083793, 28475525, 1649722, 20654025, 16520125, 30598449, 7715701},
  388|  4.02k|         {28881845, 14381568, 9657904, 3680757, -20181635, 7843316, -31400660, 1370708, 29794553, -1409300},
  389|  4.02k|      },
  390|  4.02k|      {
  391|  4.02k|         {-22518993, -6692182, 14201702, -8745502, -23510406, 8844726, 18474211, -1361450, -13062696, 13821877},
  392|  4.02k|         {-6455177, -7839871, 3374702, -4740862, -27098617, -10571707, 31655028, -7212327, 18853322, -14220951},
  393|  4.02k|         {4566830, -12963868, -28974889, -12240689, -7602672, -2830569, -8514358, -10431137, 2207753, -3209784},
  394|  4.02k|      },
  395|  4.02k|      {
  396|  4.02k|         {-25154831, -4185821, 29681144, 7868801, -6854661, -9423865, -12437364, -663000, -31111463, -16132436},
  397|  4.02k|         {25576264, -2703214, 7349804, -11814844, 16472782, 9300885, 3844789, 15725684, 171356, 6466918},
  398|  4.02k|         {23103977, 13316479, 9739013, -16149481, 817875, -15038942, 8965339, -14088058, -30714912, 16193877},
  399|  4.02k|      },
  400|  4.02k|      {
  401|  4.02k|         {-33521811, 3180713, -2394130, 14003687, -16903474, -16270840, 17238398, 4729455, -18074513, 9256800},
  402|  4.02k|         {-25182317, -4174131, 32336398, 5036987, -21236817, 11360617, 22616405, 9761698, -19827198, 630305},
  403|  4.02k|         {-13720693, 2639453, -24237460, -7406481, 9494427, -5774029, -6554551, -15960994, -2449256, -14291300},
  404|  4.02k|      },
  405|  4.02k|      {
  406|  4.02k|         {-3151181, -5046075, 9282714, 6866145, -31907062, -863023, -18940575, 15033784, 25105118, -7894876},
  407|  4.02k|         {-24326370, 15950226, -31801215, -14592823, -11662737, -5090925, 1573892, -2625887, 2198790, -15804619},
  408|  4.02k|         {-3099351, 10324967, -2241613, 7453183, -5446979, -2735503, -13812022, -16236442, -32461234, -12290683},
  409|  4.02k|      },
  410|  4.02k|   };
  411|       |
  412|  4.02k|   auto aslide = slide(a);
  413|  4.02k|   auto bslide = slide(b);
  414|       |
  415|  4.02k|   Ed25519_Point_Cached Ai[8]; /* A,3A,5A,7A,9A,11A,13A,15A */
  416|  4.02k|   Ai[0] = Ed25519_Point_Cached::from(A);
  417|  4.02k|   const auto A2 = Ed25519_Point_Extended::from(A.dbl());
  418|       |
  419|  32.1k|   for(size_t i = 1; i != 8; ++i) {
  ------------------
  |  Branch (419:22): [True: 28.1k, False: 4.02k]
  ------------------
  420|  28.1k|      Ai[i] = Ed25519_Point_Cached::from(A2 + Ai[i - 1]);
  421|  28.1k|   }
  422|       |
  423|  4.02k|   auto r = Ed25519_Point_Projective::identity();
  424|       |
  425|  4.02k|   int i = [&]() -> int {
  426|  4.02k|      int w = 255;
  427|  4.02k|      while(w >= 0) {
  428|  4.02k|         if(aslide[w] != 0 || bslide[w] != 0) {
  429|  4.02k|            return w;
  430|  4.02k|         } else {
  431|  4.02k|            w--;
  432|  4.02k|         }
  433|  4.02k|      }
  434|  4.02k|      return 0;
  435|  4.02k|   }();
  436|       |
  437|  1.01M|   for(; i >= 0; --i) {
  ------------------
  |  Branch (437:10): [True: 1.00M, False: 4.02k]
  ------------------
  438|  1.00M|      auto t = r.dbl();
  439|       |
  440|  1.00M|      if(aslide[i] > 0) {
  ------------------
  |  Branch (440:10): [True: 86.4k, False: 923k]
  ------------------
  441|  86.4k|         t = Ed25519_Point_Extended::from(t) + Ai[aslide[i] >> 1];
  442|   923k|      } else if(aslide[i] < 0) {
  ------------------
  |  Branch (442:17): [True: 84.8k, False: 838k]
  ------------------
  443|  84.8k|         t = Ed25519_Point_Extended::from(t) - Ai[(-aslide[i]) >> 1];
  444|  84.8k|      }
  445|       |
  446|  1.00M|      if(bslide[i] > 0) {
  ------------------
  |  Branch (446:10): [True: 83.3k, False: 926k]
  ------------------
  447|  83.3k|         t = Ed25519_Point_Extended::from(t) + Bi[bslide[i] >> 1];
  448|   926k|      } else if(bslide[i] < 0) {
  ------------------
  |  Branch (448:17): [True: 78.9k, False: 847k]
  ------------------
  449|  78.9k|         t = Ed25519_Point_Extended::from(t) - Bi[(-bslide[i]) >> 1];
  450|  78.9k|      }
  451|       |
  452|  1.00M|      r = Ed25519_Point_Projective::from(t);
  453|  1.00M|   }
  454|       |
  455|  4.02k|   r.serialize_to(std::span<uint8_t, 32>{out});
  456|  4.02k|}
ge.cpp:_ZN5Botan12_GLOBAL__N_15slideEPKh:
  272|  8.04k|std::array<int8_t, 256> slide(const uint8_t* a) {
  273|  8.04k|   std::array<int8_t, 256> r{};
  274|  2.06M|   for(size_t i = 0; i < 256; ++i) {
  ------------------
  |  Branch (274:22): [True: 2.05M, False: 8.04k]
  ------------------
  275|  2.05M|      r[i] = 1 & (a[i >> 3] >> (i & 7));
  276|  2.05M|   }
  277|       |
  278|  2.06M|   for(size_t i = 0; i < 256; ++i) {
  ------------------
  |  Branch (278:22): [True: 2.05M, False: 8.04k]
  ------------------
  279|  2.05M|      if(r[i] != 0) {
  ------------------
  |  Branch (279:10): [True: 333k, False: 1.72M]
  ------------------
  280|  1.91M|         for(size_t b = 1; b <= 6 && i + b < 256; ++b) {
  ------------------
  |  Branch (280:28): [True: 1.83M, False: 84.0k]
  |  Branch (280:38): [True: 1.82M, False: 4.28k]
  ------------------
  281|  1.82M|            if(r[i + b] != 0) {
  ------------------
  |  Branch (281:16): [True: 899k, False: 928k]
  ------------------
  282|   899k|               if(r[i] + (r[i + b] << b) <= 15) {
  ------------------
  |  Branch (282:19): [True: 490k, False: 409k]
  ------------------
  283|   490k|                  r[i] += r[i + b] << b;
  284|   490k|                  r[i + b] = 0;
  285|   490k|               } else if(r[i] - (r[i + b] << b) >= -15) {
  ------------------
  |  Branch (285:26): [True: 163k, False: 245k]
  ------------------
  286|   163k|                  r[i] -= r[i + b] << b;
  287|   494k|                  for(size_t k = i + b; k < 256; ++k) {
  ------------------
  |  Branch (287:41): [True: 494k, False: 0]
  ------------------
  288|   494k|                     if(r[k] == 0) {
  ------------------
  |  Branch (288:25): [True: 163k, False: 331k]
  ------------------
  289|   163k|                        r[k] = 1;
  290|   163k|                        break;
  291|   163k|                     }
  292|   331k|                     r[k] = 0;
  293|   331k|                  }
  294|   245k|               } else {
  295|   245k|                  break;
  296|   245k|               }
  297|   899k|            }
  298|  1.82M|         }
  299|   333k|      }
  300|  2.05M|   }
  301|       |
  302|  8.04k|   return r;
  303|  8.04k|}
ge.cpp:_ZN5Botan12_GLOBAL__N_120Ed25519_Point_Cached4fromERKNS0_22Ed25519_Point_ExtendedE:
  179|  32.1k|      static Ed25519_Point_Cached from(const Ed25519_Point_Extended& p) {
  180|  32.1k|         static constexpr Ed25519_FieldElement d2 = {
  181|  32.1k|            -21827239, -5839606, -30745221, 13898782, 229458, 15978800, -12551817, -6495438, 29715968, 9444199};
  182|  32.1k|         Ed25519_Point_Cached r;
  183|  32.1k|         r.YplusX = p.Y + p.X;
  184|  32.1k|         r.YminusX = p.Y - p.X;
  185|  32.1k|         r.Z = p.Z;
  186|  32.1k|         r.T2d = p.T * d2;
  187|  32.1k|         return r;
  188|  32.1k|      }
ge.cpp:_ZN5Botan12_GLOBAL__N_120Ed25519_Point_Cached4fromERKNS0_23Ed25519_Point_CompletedE:
  193|  28.1k|      static Ed25519_Point_Cached from(const Ed25519_Point_Completed& p) {
  194|  28.1k|         return Ed25519_Point_Cached::from(Ed25519_Point_Extended::from(p));
  195|  28.1k|      }
ge.cpp:_ZN5Botan12_GLOBAL__N_1plERKNS0_22Ed25519_Point_ExtendedERKNS0_20Ed25519_Point_CachedE:
  201|   114k|inline Ed25519_Point_Completed operator+(const Ed25519_Point_Extended& p, const Ed25519_Point_Cached& q) {
  202|   114k|   Ed25519_Point_Completed r;
  203|   114k|   r.X = p.Y + p.X;        // YpX1 = Y1+X1
  204|   114k|   r.Y = p.Y - p.X;        // YmX1 = Y1-X1
  205|   114k|   r.Z = r.X * q.YplusX;   // A = YpX1*YpX2
  206|   114k|   r.Y = r.Y * q.YminusX;  // B = YmX1*YmX2
  207|   114k|   r.T = q.T2d * p.T;      // C = T2d2*T1
  208|   114k|   r.X = p.Z * q.Z;        // ZZ = Z1*Z2
  209|   114k|   auto t0 = r.X + r.X;    // D = 2*ZZ
  210|   114k|   r.X = r.Z - r.Y;        // X3 = A-B
  211|   114k|   r.Y = r.Z + r.Y;        // Y3 = A+B
  212|   114k|   r.Z = t0 + r.T;         // Z3 = D+C
  213|   114k|   r.T = t0 - r.T;         // T3 = D-C
  214|   114k|   return r;
  215|   114k|}
ge.cpp:_ZN5Botan12_GLOBAL__N_124Ed25519_Point_Projective8identityEv:
   64|  4.02k|      static constexpr Ed25519_Point_Projective identity() {
   65|  4.02k|         Ed25519_Point_Projective h;
   66|  4.02k|         h.X = Ed25519_FieldElement::zero();
   67|  4.02k|         h.Y = Ed25519_FieldElement::one();
   68|  4.02k|         h.Z = Ed25519_FieldElement::one();
   69|  4.02k|         return h;
   70|  4.02k|      }
ge.cpp:_ZZN5Botan12_GLOBAL__N_128ge_double_scalarmult_vartimeENSt3__14spanIhLm32EEEPKhRKNS0_22Ed25519_Point_ExtendedES5_ENK3$_0clEv:
  425|  4.02k|   int i = [&]() -> int {
  426|  4.02k|      int w = 255;
  427|  23.2k|      while(w >= 0) {
  ------------------
  |  Branch (427:13): [True: 23.2k, False: 0]
  ------------------
  428|  23.2k|         if(aslide[w] != 0 || bslide[w] != 0) {
  ------------------
  |  Branch (428:13): [True: 2.55k, False: 20.6k]
  |  Branch (428:31): [True: 1.46k, False: 19.2k]
  ------------------
  429|  4.02k|            return w;
  430|  19.2k|         } else {
  431|  19.2k|            w--;
  432|  19.2k|         }
  433|  23.2k|      }
  434|      0|      return 0;
  435|  4.02k|   }();
ge.cpp:_ZN5Botan12_GLOBAL__N_1miERKNS0_22Ed25519_Point_ExtendedERKNS0_20Ed25519_Point_CachedE:
  256|  84.8k|inline Ed25519_Point_Completed operator-(const Ed25519_Point_Extended& p, const Ed25519_Point_Cached& q) {
  257|  84.8k|   Ed25519_Point_Completed r;
  258|  84.8k|   r.X = p.Y + p.X;        // YpX1 = Y1+X1
  259|  84.8k|   r.Y = p.Y - p.X;        // YmX1 = Y1-X1
  260|  84.8k|   r.Z = r.X * q.YminusX;  // A = YpX1*YmX2
  261|  84.8k|   r.Y = r.Y * q.YplusX;   // B = YmX1*YpX2
  262|  84.8k|   r.T = q.T2d * p.T;      // C = T2d2*T1
  263|  84.8k|   r.X = p.Z * q.Z;        // ZZ = Z1*Z2
  264|  84.8k|   auto t0 = r.X + r.X;    // D = 2*ZZ
  265|  84.8k|   r.X = r.Z - r.Y;        // X3 = A-B
  266|  84.8k|   r.Y = r.Z + r.Y;        // Y3 = A+B
  267|  84.8k|   r.Z = t0 - r.T;         // Z3 = D-C
  268|  84.8k|   r.T = t0 + r.T;         // T3 = D+C
  269|  84.8k|   return r;
  270|  84.8k|}
ge.cpp:_ZN5Botan12_GLOBAL__N_1miERKNS0_22Ed25519_Point_ExtendedERKNS0_19Ed25519_Point_NielsE:
  238|  78.9k|inline Ed25519_Point_Completed operator-(const Ed25519_Point_Extended& p, const Ed25519_Point_Niels& q) {
  239|  78.9k|   Ed25519_Point_Completed r;
  240|  78.9k|   r.X = p.Y + p.X;        // YpX1 = Y1+X1
  241|  78.9k|   r.Y = p.Y - p.X;        // YmX1 = Y1-X1
  242|  78.9k|   r.Z = r.X * q.yminusx;  // A = YpX1*ymx2
  243|  78.9k|   r.Y = r.Y * q.yplusx;   // B = YmX1*ypx2
  244|  78.9k|   r.T = q.xy2d * p.T;     // C = xy2d2*T1
  245|  78.9k|   auto t0 = p.Z + p.Z;    // D = 2*Z1
  246|  78.9k|   r.X = r.Z - r.Y;        // X3 = A-B
  247|  78.9k|   r.Y = r.Z + r.Y;        // Y3 = A+B
  248|  78.9k|   r.Z = t0 - r.T;         // Z3 = D-C
  249|  78.9k|   r.T = t0 + r.T;         // T3 = D+C
  250|  78.9k|   return r;
  251|  78.9k|}
ge.cpp:_ZNK5Botan12_GLOBAL__N_124Ed25519_Point_Projective12serialize_toENSt3__14spanIhLm32EEE:
   72|  4.02k|      void serialize_to(std::span<uint8_t, 32> s) const {
   73|  4.02k|         auto recip = this->Z.invert();
   74|  4.02k|         auto x = this->X * recip;
   75|  4.02k|         auto y = this->Y * recip;
   76|  4.02k|         y.serialize_to(s);
   77|  4.02k|         s[31] ^= x.is_negative() ? 0x80 : 0x00;
  ------------------
  |  Branch (77:19): [True: 2.11k, False: 1.90k]
  ------------------
   78|  4.02k|      }

_ZN5Botan9sc_reduceEPh:
   25|  4.02k|void sc_reduce(uint8_t* s) {
   26|  4.02k|   const uint32_t MASK = 0x1fffff;
   27|       |
   28|  4.02k|   int64_t s0 = MASK & load_3(s);
   29|  4.02k|   int64_t s1 = MASK & (load_4(s + 2) >> 5);
   30|  4.02k|   int64_t s2 = MASK & (load_3(s + 5) >> 2);
   31|  4.02k|   int64_t s3 = MASK & (load_4(s + 7) >> 7);
   32|  4.02k|   int64_t s4 = MASK & (load_4(s + 10) >> 4);
   33|  4.02k|   int64_t s5 = MASK & (load_3(s + 13) >> 1);
   34|  4.02k|   int64_t s6 = MASK & (load_4(s + 15) >> 6);
   35|  4.02k|   int64_t s7 = MASK & (load_3(s + 18) >> 3);
   36|  4.02k|   int64_t s8 = MASK & load_3(s + 21);
   37|  4.02k|   int64_t s9 = MASK & (load_4(s + 23) >> 5);
   38|  4.02k|   int64_t s10 = MASK & (load_3(s + 26) >> 2);
   39|  4.02k|   int64_t s11 = MASK & (load_4(s + 28) >> 7);
   40|  4.02k|   int64_t s12 = MASK & (load_4(s + 31) >> 4);
   41|  4.02k|   int64_t s13 = MASK & (load_3(s + 34) >> 1);
   42|  4.02k|   int64_t s14 = MASK & (load_4(s + 36) >> 6);
   43|  4.02k|   int64_t s15 = MASK & (load_3(s + 39) >> 3);
   44|  4.02k|   int64_t s16 = MASK & load_3(s + 42);
   45|  4.02k|   int64_t s17 = MASK & (load_4(s + 44) >> 5);
   46|  4.02k|   int64_t s18 = MASK & (load_3(s + 47) >> 2);
   47|  4.02k|   int64_t s19 = MASK & (load_4(s + 49) >> 7);
   48|  4.02k|   int64_t s20 = MASK & (load_4(s + 52) >> 4);
   49|  4.02k|   int64_t s21 = MASK & (load_3(s + 55) >> 1);
   50|  4.02k|   int64_t s22 = MASK & (load_4(s + 57) >> 6);
   51|  4.02k|   int64_t s23 = (load_4(s + 60) >> 3);
   52|       |
   53|  4.02k|   redc_mul(s11, s12, s13, s14, s15, s16, s23);
   54|  4.02k|   redc_mul(s10, s11, s12, s13, s14, s15, s22);
   55|  4.02k|   redc_mul(s9, s10, s11, s12, s13, s14, s21);
   56|  4.02k|   redc_mul(s8, s9, s10, s11, s12, s13, s20);
   57|  4.02k|   redc_mul(s7, s8, s9, s10, s11, s12, s19);
   58|  4.02k|   redc_mul(s6, s7, s8, s9, s10, s11, s18);
   59|       |
   60|  4.02k|   carry<21>(s6, s7);
   61|  4.02k|   carry<21>(s8, s9);
   62|  4.02k|   carry<21>(s10, s11);
   63|  4.02k|   carry<21>(s12, s13);
   64|  4.02k|   carry<21>(s14, s15);
   65|  4.02k|   carry<21>(s16, s17);
   66|       |
   67|  4.02k|   carry<21>(s7, s8);
   68|  4.02k|   carry<21>(s9, s10);
   69|  4.02k|   carry<21>(s11, s12);
   70|  4.02k|   carry<21>(s13, s14);
   71|  4.02k|   carry<21>(s15, s16);
   72|       |
   73|  4.02k|   redc_mul(s5, s6, s7, s8, s9, s10, s17);
   74|  4.02k|   redc_mul(s4, s5, s6, s7, s8, s9, s16);
   75|  4.02k|   redc_mul(s3, s4, s5, s6, s7, s8, s15);
   76|  4.02k|   redc_mul(s2, s3, s4, s5, s6, s7, s14);
   77|  4.02k|   redc_mul(s1, s2, s3, s4, s5, s6, s13);
   78|  4.02k|   redc_mul(s0, s1, s2, s3, s4, s5, s12);
   79|       |
   80|  4.02k|   carry<21>(s0, s1);
   81|  4.02k|   carry<21>(s2, s3);
   82|  4.02k|   carry<21>(s4, s5);
   83|  4.02k|   carry<21>(s6, s7);
   84|  4.02k|   carry<21>(s8, s9);
   85|  4.02k|   carry<21>(s10, s11);
   86|       |
   87|  4.02k|   carry<21>(s1, s2);
   88|  4.02k|   carry<21>(s3, s4);
   89|  4.02k|   carry<21>(s5, s6);
   90|  4.02k|   carry<21>(s7, s8);
   91|  4.02k|   carry<21>(s9, s10);
   92|  4.02k|   carry<21>(s11, s12);
   93|       |
   94|  4.02k|   redc_mul(s0, s1, s2, s3, s4, s5, s12);
   95|       |
   96|  4.02k|   carry0<21>(s0, s1);
   97|  4.02k|   carry0<21>(s1, s2);
   98|  4.02k|   carry0<21>(s2, s3);
   99|  4.02k|   carry0<21>(s3, s4);
  100|  4.02k|   carry0<21>(s4, s5);
  101|  4.02k|   carry0<21>(s5, s6);
  102|  4.02k|   carry0<21>(s6, s7);
  103|  4.02k|   carry0<21>(s7, s8);
  104|  4.02k|   carry0<21>(s8, s9);
  105|  4.02k|   carry0<21>(s9, s10);
  106|  4.02k|   carry0<21>(s10, s11);
  107|  4.02k|   carry0<21>(s11, s12);
  108|       |
  109|  4.02k|   redc_mul(s0, s1, s2, s3, s4, s5, s12);
  110|       |
  111|  4.02k|   carry0<21>(s0, s1);
  112|  4.02k|   carry0<21>(s1, s2);
  113|  4.02k|   carry0<21>(s2, s3);
  114|  4.02k|   carry0<21>(s3, s4);
  115|  4.02k|   carry0<21>(s4, s5);
  116|  4.02k|   carry0<21>(s5, s6);
  117|  4.02k|   carry0<21>(s6, s7);
  118|  4.02k|   carry0<21>(s7, s8);
  119|  4.02k|   carry0<21>(s8, s9);
  120|  4.02k|   carry0<21>(s9, s10);
  121|  4.02k|   carry0<21>(s10, s11);
  122|  4.02k|   carry0<21>(s11, s12);
  123|       |
  124|  4.02k|   s[0] = static_cast<uint8_t>(s0 >> 0);
  125|  4.02k|   s[1] = static_cast<uint8_t>(s0 >> 8);
  126|  4.02k|   s[2] = static_cast<uint8_t>((s0 >> 16) | (s1 << 5));
  127|  4.02k|   s[3] = static_cast<uint8_t>(s1 >> 3);
  128|  4.02k|   s[4] = static_cast<uint8_t>(s1 >> 11);
  129|  4.02k|   s[5] = static_cast<uint8_t>((s1 >> 19) | (s2 << 2));
  130|  4.02k|   s[6] = static_cast<uint8_t>(s2 >> 6);
  131|  4.02k|   s[7] = static_cast<uint8_t>((s2 >> 14) | (s3 << 7));
  132|  4.02k|   s[8] = static_cast<uint8_t>(s3 >> 1);
  133|  4.02k|   s[9] = static_cast<uint8_t>(s3 >> 9);
  134|  4.02k|   s[10] = static_cast<uint8_t>((s3 >> 17) | (s4 << 4));
  135|  4.02k|   s[11] = static_cast<uint8_t>(s4 >> 4);
  136|  4.02k|   s[12] = static_cast<uint8_t>(s4 >> 12);
  137|  4.02k|   s[13] = static_cast<uint8_t>((s4 >> 20) | (s5 << 1));
  138|  4.02k|   s[14] = static_cast<uint8_t>(s5 >> 7);
  139|  4.02k|   s[15] = static_cast<uint8_t>((s5 >> 15) | (s6 << 6));
  140|  4.02k|   s[16] = static_cast<uint8_t>(s6 >> 2);
  141|  4.02k|   s[17] = static_cast<uint8_t>(s6 >> 10);
  142|  4.02k|   s[18] = static_cast<uint8_t>((s6 >> 18) | (s7 << 3));
  143|  4.02k|   s[19] = static_cast<uint8_t>(s7 >> 5);
  144|  4.02k|   s[20] = static_cast<uint8_t>(s7 >> 13);
  145|  4.02k|   s[21] = static_cast<uint8_t>(s8 >> 0);
  146|  4.02k|   s[22] = static_cast<uint8_t>(s8 >> 8);
  147|  4.02k|   s[23] = static_cast<uint8_t>((s8 >> 16) | (s9 << 5));
  148|  4.02k|   s[24] = static_cast<uint8_t>(s9 >> 3);
  149|  4.02k|   s[25] = static_cast<uint8_t>(s9 >> 11);
  150|  4.02k|   s[26] = static_cast<uint8_t>((s9 >> 19) | (s10 << 2));
  151|  4.02k|   s[27] = static_cast<uint8_t>(s10 >> 6);
  152|  4.02k|   s[28] = static_cast<uint8_t>((s10 >> 14) | (s11 << 7));
  153|  4.02k|   s[29] = static_cast<uint8_t>(s11 >> 1);
  154|  4.02k|   s[30] = static_cast<uint8_t>(s11 >> 9);
  155|  4.02k|   s[31] = static_cast<uint8_t>(s11 >> 17);
  156|  4.02k|}

_ZN5Botan6PK_Ops22Verification_with_HashC2ENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEE:
  162|  10.1k|      Verification(), m_hash(create_signature_hash(padding)) {}
_ZN5Botan6PK_Ops22Verification_with_HashD2Ev:
  164|  10.1k|PK_Ops::Verification_with_Hash::~Verification_with_Hash() = default;
_ZN5Botan6PK_Ops22Verification_with_Hash6updateENSt3__14spanIKhLm18446744073709551615EEE:
  199|  10.1k|void PK_Ops::Verification_with_Hash::update(std::span<const uint8_t> msg) {
  200|  10.1k|   m_hash->update(msg);
  201|  10.1k|}
_ZN5Botan6PK_Ops22Verification_with_Hash18is_valid_signatureENSt3__14spanIKhLm18446744073709551615EEE:
  203|  10.1k|bool PK_Ops::Verification_with_Hash::is_valid_signature(std::span<const uint8_t> sig) {
  204|  10.1k|   const std::vector<uint8_t> msg = m_hash->final_stdvec();
  205|  10.1k|   return verify(msg, sig);
  206|  10.1k|}
pk_ops.cpp:_ZN5Botan12_GLOBAL__N_121create_signature_hashENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  101|  10.1k|std::unique_ptr<HashFunction> create_signature_hash(std::string_view padding) {
  102|  10.1k|   if(auto hash = HashFunction::create(padding)) {
  ------------------
  |  Branch (102:12): [True: 0, False: 10.1k]
  ------------------
  103|      0|      return hash;
  104|      0|   }
  105|       |
  106|  10.1k|   const SCAN_Name req(padding);
  107|       |
  108|  10.1k|   if(req.algo_name() == "EMSA1" && req.arg_count() == 1) {
  ------------------
  |  Branch (108:7): [True: 0, False: 10.1k]
  |  Branch (108:37): [True: 0, False: 0]
  ------------------
  109|      0|      if(auto hash = HashFunction::create(req.arg(0))) {
  ------------------
  |  Branch (109:15): [True: 0, False: 0]
  ------------------
  110|      0|         return hash;
  111|      0|      }
  112|      0|   }
  113|       |
  114|  10.1k|#if defined(BOTAN_HAS_RAW_HASH_FN)
  115|  10.1k|   if(req.algo_name() == "Raw") {
  ------------------
  |  Branch (115:7): [True: 10.1k, False: 0]
  ------------------
  116|  10.1k|      if(req.arg_count() == 0) {
  ------------------
  |  Branch (116:10): [True: 526, False: 9.63k]
  ------------------
  117|    526|         return std::make_unique<RawHashFunction>("Raw", 0);
  118|    526|      }
  119|       |
  120|  9.63k|      if(req.arg_count() == 1) {
  ------------------
  |  Branch (120:10): [True: 9.63k, False: 0]
  ------------------
  121|  9.63k|         if(auto hash = HashFunction::create(req.arg(0))) {
  ------------------
  |  Branch (121:18): [True: 9.63k, False: 0]
  ------------------
  122|  9.63k|            return std::make_unique<RawHashFunction>(std::move(hash));
  123|  9.63k|         }
  124|  9.63k|      }
  125|  9.63k|   }
  126|      0|#endif
  127|       |
  128|      0|   throw Algorithm_Not_Found(padding);
  129|  10.1k|}

_ZN5Botan11PK_VerifierC2ERKNS_10Public_KeyENSt3__117basic_string_viewIcNS4_11char_traitsIcEEEENS_16Signature_FormatES8_:
  373|  23.0k|                         std::string_view provider) {
  374|  23.0k|   m_op = key.create_verification_op(padding, provider);
  375|  23.0k|   if(!m_op) {
  ------------------
  |  Branch (375:7): [True: 0, False: 23.0k]
  ------------------
  376|      0|      throw Invalid_Argument(fmt("Key type {} does not support signature verification", key.algo_name()));
  377|      0|   }
  378|       |
  379|  23.0k|   m_sig_format = format;
  380|  23.0k|   m_sig_element_size = key._signature_element_size_for_DER_encoding();
  381|       |
  382|  23.0k|   if(m_sig_format == Signature_Format::DerSequence) {
  ------------------
  |  Branch (382:7): [True: 0, False: 23.0k]
  ------------------
  383|      0|      BOTAN_ARG_CHECK(m_sig_element_size.has_value(), "This key does not support DER signatures");
  ------------------
  |  |   35|      0|   do {                                                          \
  |  |   36|      0|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|      0|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [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]
  |  |  ------------------
  ------------------
  384|      0|   }
  385|  23.0k|}
_ZN5Botan11PK_VerifierD2Ev:
  399|  23.0k|PK_Verifier::~PK_Verifier() = default;
_ZN5Botan11PK_Verifier6updateEPKhm:
  424|  23.0k|void PK_Verifier::update(const uint8_t in[], size_t length) {
  425|  23.0k|   m_op->update({in, length});
  426|  23.0k|}
_ZN5Botan11PK_Verifier15check_signatureEPKhm:
  455|  23.0k|bool PK_Verifier::check_signature(const uint8_t sig[], size_t length) {
  456|  23.0k|   try {
  457|  23.0k|      if(m_sig_format == Signature_Format::Standard) {
  ------------------
  |  Branch (457:10): [True: 23.0k, False: 0]
  ------------------
  458|  23.0k|         return m_op->is_valid_signature({sig, length});
  459|  23.0k|      } else if(m_sig_format == Signature_Format::DerSequence) {
  ------------------
  |  Branch (459:17): [True: 0, False: 0]
  ------------------
  460|      0|         bool decoding_success = false;
  461|      0|         std::vector<uint8_t> real_sig;
  462|       |
  463|      0|         BOTAN_ASSERT_NOMSG(m_sig_element_size.has_value());
  ------------------
  |  |   77|      0|   do {                                                                     \
  |  |   78|      0|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|      0|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|      0|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
  464|       |
  465|      0|         try {
  466|      0|            real_sig = decode_der_signature_pair({sig, length}, m_sig_element_size.value());
  467|      0|            decoding_success = true;
  468|      0|         } catch(...) {}
  469|       |
  470|       |         // It is critical that is_valid_signature is called even if DER decoding failed, since
  471|       |         // that is what resets the internal state (message hashes, etc)
  472|      0|         const bool accept = m_op->is_valid_signature(real_sig);
  473|       |
  474|      0|         return accept && decoding_success;
  ------------------
  |  Branch (474:17): [True: 0, False: 0]
  |  Branch (474:27): [True: 0, False: 0]
  ------------------
  475|      0|      } else {
  476|      0|         throw Internal_Error("PK_Verifier: Invalid signature format enum");
  477|      0|      }
  478|  23.0k|   } catch(Invalid_Argument&) {
  479|      0|      return false;
  480|  2.64k|   } catch(Decoding_Error&) {
  481|  2.64k|      return false;
  482|  2.64k|   } catch(Encoding_Error&) {
  483|      0|      return false;
  484|      0|   }
  485|  23.0k|}

_ZNK5Botan13RSA_PublicKey11public_dataEv:
  130|  4.33k|std::shared_ptr<const RSA_Public_Data> RSA_PublicKey::public_data() const {
  131|  4.33k|   return m_public;
  132|  4.33k|}
_ZN5Botan13RSA_PublicKey4initEONS_6BigIntES2_:
  156|  4.53k|void RSA_PublicKey::init(BigInt&& n, BigInt&& e) {
  157|  4.53k|   if(n.signum() <= 0 || n.is_even() || n.bits() < 384 || n.bits() > 16384) {
  ------------------
  |  Branch (157:7): [True: 0, False: 4.53k]
  |  Branch (157:26): [True: 10, False: 4.52k]
  |  Branch (157:41): [True: 38, False: 4.48k]
  |  Branch (157:59): [True: 0, False: 4.48k]
  ------------------
  158|     48|      throw Decoding_Error("Invalid RSA public key modulus");
  159|     48|   }
  160|  4.48k|   if(e.is_even() || e <= 1 || e >= n || e.bits() > 256) {
  ------------------
  |  Branch (160:7): [True: 80, False: 4.40k]
  |  Branch (160:22): [True: 66, False: 4.33k]
  |  Branch (160:32): [True: 0, False: 4.33k]
  |  Branch (160:42): [True: 0, False: 4.33k]
  ------------------
  161|    146|      throw Decoding_Error("Invalid RSA public key exponent");
  162|    146|   }
  163|  4.33k|   m_public = std::make_shared<RSA_Public_Data>(std::move(n), std::move(e));
  164|  4.33k|}
_ZN5Botan13RSA_PublicKeyC1ERKNS_6BigIntES3_:
  187|  4.53k|RSA_PublicKey::RSA_PublicKey(const BigInt& modulus, const BigInt& exponent) {
  188|  4.53k|   BigInt n = modulus;
  189|  4.53k|   BigInt e = exponent;
  190|  4.53k|   init(std::move(n), std::move(e));
  191|  4.53k|}
_ZNK5Botan13RSA_PublicKey22create_verification_opENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEES5_:
  866|  4.33k|                                                                            std::string_view provider) const {
  867|  4.33k|   if(provider == "base" || provider.empty()) {
  ------------------
  |  Branch (867:7): [True: 0, False: 4.33k]
  |  Branch (867:29): [True: 4.33k, False: 0]
  ------------------
  868|  4.33k|      return std::make_unique<RSA_Verify_Operation>(*this, params);
  869|  4.33k|   }
  870|       |
  871|      0|   throw Provider_Not_Found(algo_name(), provider);
  872|  4.33k|}
_ZNK5Botan15RSA_Public_Data5get_nEv:
   51|  1.99k|      const BigInt& get_n() const { return m_n; }
_ZNK5Botan15RSA_Public_Data19public_modulus_bitsEv:
   55|  1.69k|      size_t public_modulus_bits() const { return m_public_modulus_bits; }
_ZN5Botan15RSA_Public_DataC2EONS_6BigIntES2_:
   38|  4.33k|            m_n(std::move(n)),
   39|  4.33k|            m_e(std::move(e)),
   40|  4.33k|            m_mod_n(Barrett_Reduction::for_public_modulus(m_n)),
   41|  4.33k|            m_monty_n(m_n, m_mod_n),
   42|  4.33k|            m_public_modulus_bits(m_n.bits()),
   43|  4.33k|            m_public_modulus_bytes(m_n.bytes()) {}
rsa.cpp:_ZN5Botan12_GLOBAL__N_120RSA_Public_OperationC2ERKNS_13RSA_PublicKeyE:
  755|  4.33k|      explicit RSA_Public_Operation(const RSA_PublicKey& rsa) : m_public(rsa.public_data()) {}
rsa.cpp:_ZNK5Botan12_GLOBAL__N_120RSA_Public_Operation20public_modulus_bytesEv:
  768|  4.33k|      size_t public_modulus_bytes() const { return m_public->public_modulus_bytes(); }
_ZNK5Botan15RSA_Public_Data20public_modulus_bytesEv:
   57|  4.33k|      size_t public_modulus_bytes() const { return m_public_modulus_bytes; }
rsa.cpp:_ZNK5Botan12_GLOBAL__N_120RSA_Public_Operation19public_modulus_bitsEv:
  757|  1.69k|      size_t public_modulus_bits() const { return m_public->public_modulus_bits(); }
rsa.cpp:_ZNK5Botan12_GLOBAL__N_120RSA_Public_Operation9public_opERKNS_6BigIntE:
  760|  1.99k|      BigInt public_op(const BigInt& m) const {
  761|  1.99k|         if(m >= m_public->get_n()) {
  ------------------
  |  Branch (761:13): [True: 302, False: 1.69k]
  ------------------
  762|    302|            throw Decoding_Error("RSA public op - input is too large");
  763|    302|         }
  764|       |
  765|  1.69k|         return m_public->public_op(m);
  766|  1.99k|      }
_ZNK5Botan15RSA_Public_Data9public_opERKNS_6BigIntE:
   45|  1.69k|      BigInt public_op(const BigInt& m) const {
   46|  1.69k|         const size_t powm_window = 1;
   47|  1.69k|         auto powm_m_n = monty_precompute(m_monty_n, m, powm_window, false);
   48|  1.69k|         return monty_execute_vartime(*powm_m_n, m_e).value();
   49|  1.69k|      }
rsa.cpp:_ZN5Botan12_GLOBAL__N_120RSA_Verify_OperationC2ERKNS_13RSA_PublicKeyENSt3__117basic_string_viewIcNS5_11char_traitsIcEEEE:
  804|  4.33k|            RSA_Public_Operation(rsa), m_padding(SignaturePaddingScheme::create_or_throw(padding)) {}
rsa.cpp:_ZN5Botan12_GLOBAL__N_120RSA_Verify_Operation6updateENSt3__14spanIKhLm18446744073709551615EEE:
  795|  4.33k|      void update(std::span<const uint8_t> msg) override { m_padding->update(msg.data(), msg.size()); }
rsa.cpp:_ZN5Botan12_GLOBAL__N_120RSA_Verify_Operation18is_valid_signatureENSt3__14spanIKhLm18446744073709551615EEE:
  797|  4.33k|      bool is_valid_signature(std::span<const uint8_t> sig) override {
  798|  4.33k|         const auto msg = m_padding->raw_data();
  799|  4.33k|         const auto message_repr = recover_message_repr(sig.data(), sig.size());
  800|  4.33k|         return m_padding->verify(message_repr, msg, public_modulus_bits() - 1);
  801|  4.33k|      }
rsa.cpp:_ZN5Botan12_GLOBAL__N_120RSA_Verify_Operation20recover_message_reprEPKhm:
  809|  4.33k|      std::vector<uint8_t> recover_message_repr(const uint8_t input[], size_t input_len) {
  810|       |         // RFC 8017 8.1.2 and 8.2.2 state
  811|       |         //    If the length of the signature S is not k octets,
  812|       |         //    output "invalid signature" and stop.
  813|       |         //
  814|  4.33k|         if(input_len != public_modulus_bytes()) {
  ------------------
  |  Branch (814:13): [True: 2.34k, False: 1.99k]
  ------------------
  815|  2.34k|            throw Decoding_Error("RSA signature is an incorrect size for this public key");
  816|  2.34k|         }
  817|  1.99k|         const BigInt input_bn(input, input_len);
  818|  1.99k|         return public_op(input_bn).serialize();
  819|  4.33k|      }

_ZNK5Botan13SM2_PublicKey9algo_nameEv:
   20|  4.39k|std::string SM2_PublicKey::algo_name() const {
   21|  4.39k|   return "SM2";
   22|  4.39k|}
_ZNK5Botan13SM2_PublicKey40_signature_element_size_for_DER_encodingEv:
   41|  4.38k|std::optional<size_t> SM2_PublicKey::_signature_element_size_for_DER_encoding() const {
   42|  4.38k|   return domain().get_order_bytes();
   43|  4.38k|}
_ZN5Botan14sm2_compute_zaERNS_12HashFunctionENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEERKNS_8EC_GroupERKNS_14EC_AffinePointE:
  127|  4.39k|                                    const EC_AffinePoint& pubkey) {
  128|  4.39k|   if(user_id.size() >= 8192) {
  ------------------
  |  Branch (128:7): [True: 0, False: 4.39k]
  ------------------
  129|      0|      throw Invalid_Argument("SM2 user id too long to represent");
  130|      0|   }
  131|       |
  132|  4.39k|   const uint16_t uid_len = static_cast<uint16_t>(8 * user_id.size());
  133|       |
  134|  4.39k|   hash.update(get_byte<0>(uid_len));
  135|  4.39k|   hash.update(get_byte<1>(uid_len));
  136|  4.39k|   hash.update(user_id);
  137|       |
  138|  4.39k|   const size_t p_bytes = group.get_p_bytes();
  139|       |
  140|  4.39k|   hash.update(group.get_a().serialize(p_bytes));
  141|  4.39k|   hash.update(group.get_b().serialize(p_bytes));
  142|  4.39k|   hash.update(group.get_g_x().serialize(p_bytes));
  143|  4.39k|   hash.update(group.get_g_y().serialize(p_bytes));
  144|  4.39k|   hash.update(pubkey.xy_bytes());
  145|       |
  146|  4.39k|   return hash.final<std::vector<uint8_t>>();
  147|  4.39k|}
_ZNK5Botan13SM2_PublicKey22create_verification_opENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEES5_:
  322|  4.38k|                                                                            std::string_view provider) const {
  323|  4.38k|   if(provider == "base" || provider.empty()) {
  ------------------
  |  Branch (323:7): [True: 0, False: 4.38k]
  |  Branch (323:29): [True: 4.38k, False: 0]
  ------------------
  324|  4.38k|      const auto [userid, hash] = parse_sm2_param_string(params);
  325|  4.38k|      return std::make_unique<SM2_Verification_Operation>(*this, userid, hash);
  326|  4.38k|   }
  327|       |
  328|      0|   throw Provider_Not_Found(algo_name(), provider);
  329|  4.38k|}
sm2.cpp:_ZN5Botan12_GLOBAL__N_122parse_sm2_param_stringENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  286|  4.38k|std::pair<std::string, std::string> parse_sm2_param_string(std::string_view params) {
  287|  4.38k|   const std::string default_hash = "SM3";
  288|       |
  289|       |   /*
  290|       |   * SM2 parameters have the following possible formats:
  291|       |   * Ident [since 2.2.0]
  292|       |   * Ident,Hash [since 2.3.0]
  293|       |   *
  294|       |   * Historically a completely empty parameter string was treated as
  295|       |   * if the identity was empty. This probably should have instead been
  296|       |   * treated as if it was the "default userid" ("1234567812345678") but
  297|       |   * there was a bug and it wasn't.
  298|       |   *
  299|       |   * TODO(Botan4) evaluate if this should be changed
  300|       |   */
  301|  4.38k|   if(params.empty()) {
  ------------------
  |  Branch (301:7): [True: 0, False: 4.38k]
  ------------------
  302|      0|      return std::make_pair(std::string(), default_hash);
  303|      0|   }
  304|       |
  305|  4.38k|   auto comma = params.find(',');
  306|  4.38k|   if(comma == std::string::npos) {
  ------------------
  |  Branch (306:7): [True: 0, False: 4.38k]
  ------------------
  307|      0|      return std::make_pair(std::string(params), default_hash);
  308|  4.38k|   } else {
  309|  4.38k|      const auto userid = params.substr(0, comma);
  310|  4.38k|      const auto hash = params.substr(comma + 1, std::string::npos);
  311|  4.38k|      return std::make_pair(std::string(userid), std::string(hash));
  312|  4.38k|   }
  313|  4.38k|}
sm2.cpp:_ZN5Botan12_GLOBAL__N_126SM2_Verification_OperationC2ERKNS_13SM2_PublicKeyENSt3__117basic_string_viewIcNS5_11char_traitsIcEEEES9_:
  227|  4.38k|            m_group(sm2.domain()), m_gy_mul(sm2._public_ec_point()) {
  228|  4.38k|         if(hash == "Raw") {
  ------------------
  |  Branch (228:13): [True: 4.38k, False: 0]
  ------------------
  229|       |            // m_hash is null, m_za is empty
  230|  4.38k|         } else {
  231|      0|            m_hash = HashFunction::create_or_throw(hash);
  232|       |            // ZA=H256(ENTLA || IDA || a || b || xG || yG || xA || yA)
  233|      0|            m_za = sm2_compute_za(*m_hash, ident, m_group, sm2._public_ec_point());
  234|      0|            m_hash->update(m_za);
  235|      0|         }
  236|  4.38k|      }
sm2.cpp:_ZN5Botan12_GLOBAL__N_126SM2_Verification_Operation6updateENSt3__14spanIKhLm18446744073709551615EEE:
  238|  4.38k|      void update(std::span<const uint8_t> input) override {
  239|  4.38k|         if(m_hash) {
  ------------------
  |  Branch (239:13): [True: 0, False: 4.38k]
  ------------------
  240|      0|            m_hash->update(input);
  241|  4.38k|         } else {
  242|  4.38k|            m_digest.insert(m_digest.end(), input.begin(), input.end());
  243|  4.38k|         }
  244|  4.38k|      }
sm2.cpp:_ZN5Botan12_GLOBAL__N_126SM2_Verification_Operation18is_valid_signatureENSt3__14spanIKhLm18446744073709551615EEE:
  258|  4.38k|bool SM2_Verification_Operation::is_valid_signature(std::span<const uint8_t> sig) {
  259|  4.38k|   const auto e = [&]() {
  260|  4.38k|      if(m_hash) {
  261|  4.38k|         auto ie = EC_Scalar::from_bytes_mod_order(m_group, m_hash->final());
  262|       |         // prepend ZA for next signature if any
  263|  4.38k|         m_hash->update(m_za);
  264|  4.38k|         return ie;
  265|  4.38k|      } else {
  266|  4.38k|         auto ie = EC_Scalar::from_bytes_mod_order(m_group, m_digest);
  267|  4.38k|         m_digest.clear();
  268|  4.38k|         return ie;
  269|  4.38k|      }
  270|  4.38k|   }();
  271|       |
  272|  4.38k|   if(auto rs = EC_Scalar::deserialize_pair(m_group, sig)) {
  ------------------
  |  Branch (272:12): [True: 4.37k, False: 7]
  ------------------
  273|  4.37k|      const auto& [r, s] = rs.value();
  274|       |
  275|  4.37k|      if(r.is_nonzero() && s.is_nonzero()) {
  ------------------
  |  Branch (275:10): [True: 4.37k, False: 0]
  |  Branch (275:28): [True: 4.37k, False: 0]
  ------------------
  276|  4.37k|         const auto t = r + s;
  277|  4.37k|         if(t.is_nonzero()) {
  ------------------
  |  Branch (277:13): [True: 4.37k, False: 0]
  ------------------
  278|       |            // Check if r - e = x_coord(g*s + y*t) % n
  279|  4.37k|            return m_gy_mul.mul2_vartime_x_mod_order_eq(r - e, s, t);
  280|  4.37k|         }
  281|  4.37k|      }
  282|  4.37k|   }
  283|      7|   return false;
  284|  4.38k|}
sm2.cpp:_ZZN5Botan12_GLOBAL__N_126SM2_Verification_Operation18is_valid_signatureENSt3__14spanIKhLm18446744073709551615EEEENK3$_0clEv:
  259|  4.38k|   const auto e = [&]() {
  260|  4.38k|      if(m_hash) {
  ------------------
  |  Branch (260:10): [True: 0, False: 4.38k]
  ------------------
  261|      0|         auto ie = EC_Scalar::from_bytes_mod_order(m_group, m_hash->final());
  262|       |         // prepend ZA for next signature if any
  263|      0|         m_hash->update(m_za);
  264|      0|         return ie;
  265|  4.38k|      } else {
  266|  4.38k|         auto ie = EC_Scalar::from_bytes_mod_order(m_group, m_digest);
  267|  4.38k|         m_digest.clear();
  268|  4.38k|         return ie;
  269|  4.38k|      }
  270|  4.38k|   }();

_ZN5Botan30fors_public_key_from_signatureERKNS_6StrongINSt3__16vectorIhNS1_9allocatorIhEEEENS_21SphincsHashedMessage_EJEEENS_10StrongSpanIKNS0_IS5_NS_14ForsSignature_EJEEEEERKNS_15Sphincs_AddressERKNS_18Sphincs_ParametersERNS_22Sphincs_Hash_FunctionsE:
  134|     64|                                               Sphincs_Hash_Functions& hashes) {
  135|     64|   const auto indices = fors_message_to_indices(hashed_message, params);
  136|       |
  137|     64|   auto fors_tree_addr = Sphincs_Address::as_keypair_from(address).set_type(Sphincs_Address::ForsTree);
  138|       |
  139|     64|   auto fors_pk_addr = Sphincs_Address::as_keypair_from(address).set_type(Sphincs_Address::ForsTreeRootsCompression);
  140|       |
  141|     64|   BufferSlicer s(signature);
  142|     64|   std::vector<uint8_t> roots_buffer(params.k() * params.n());
  143|     64|   BufferStuffer roots(roots_buffer);
  144|       |
  145|       |   // For each of the k FORS subtrees: Reconstruct the subtree's root node by using the
  146|       |   // leaf and the authentication path offered in the FORS signature.
  147|     64|   BOTAN_ASSERT_NOMSG(indices.size() == params.k());
  ------------------
  |  |   77|     64|   do {                                                                     \
  |  |   78|     64|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|     64|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 64]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|     64|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 64]
  |  |  ------------------
  ------------------
  148|  1.05k|   for(uint32_t i = 0; i < params.k(); ++i) {
  ------------------
  |  Branch (148:24): [True: 992, False: 64]
  ------------------
  149|    992|      const uint32_t idx_offset = i * (1 << params.a());
  150|       |
  151|       |      // Compute the FORS leaf by using the secret leaf contained in the signature
  152|    992|      fors_tree_addr.set_tree_height(TreeLayerIndex(0)).set_tree_index(indices[i] + idx_offset);
  153|    992|      auto fors_leaf_secret = s.take<ForsLeafSecret>(params.n());
  154|    992|      auto auth_path = s.take<SphincsAuthenticationPath>(params.n() * params.a());
  155|    992|      auto leaf = hashes.T<SphincsTreeNode>(fors_tree_addr, fors_leaf_secret);
  156|       |
  157|       |      // Reconstruct the subtree's root using the authentication path
  158|    992|      compute_root(roots.next<SphincsTreeNode>(params.n()),
  159|    992|                   params,
  160|    992|                   hashes,
  161|    992|                   leaf,
  162|    992|                   indices[i],
  163|    992|                   idx_offset,
  164|    992|                   auth_path,
  165|    992|                   params.a(),
  166|    992|                   fors_tree_addr);
  167|    992|   }
  168|       |
  169|     64|   BOTAN_ASSERT_NOMSG(roots.full());
  ------------------
  |  |   77|     64|   do {                                                                     \
  |  |   78|     64|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|     64|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 64]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|     64|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 64]
  |  |  ------------------
  ------------------
  170|       |
  171|       |   // Reconstruct the public key the signature creates with the hash of the concatenation of all roots
  172|       |   // Only if the signature is valid, the pk is the correct FORS pk.
  173|     64|   return hashes.T<SphincsTreeNode>(fors_pk_addr, roots_buffer);
  174|     64|}
sp_fors.cpp:_ZN5Botan12_GLOBAL__N_123fors_message_to_indicesENSt3__14spanIKhLm18446744073709551615EEERKNS_18Sphincs_ParametersE:
   28|     64|std::vector<TreeNodeIndex> fors_message_to_indices(std::span<const uint8_t> message, const Sphincs_Parameters& params) {
   29|     64|   BOTAN_ASSERT_NOMSG((message.size() * 8) >= (params.k() * params.a()));
  ------------------
  |  |   77|     64|   do {                                                                     \
  |  |   78|     64|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|     64|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 64]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|     64|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 64]
  |  |  ------------------
  ------------------
   30|       |
   31|     64|   std::vector<TreeNodeIndex> indices(params.k());
   32|       |
   33|     64|   uint32_t offset = 0;
   34|       |
   35|       |   // This is one of the few places where the logic of SPHINCS+ round 3.1 and SLH-DSA differs
   36|     64|   auto update_idx = [&]() -> std::function<void(TreeNodeIndex&, uint32_t)> {
   37|     64|#if defined(BOTAN_HAS_SLH_DSA_WITH_SHA2) || defined(BOTAN_HAS_SLH_DSA_WITH_SHAKE)
   38|     64|      if(params.is_slh_dsa()) {
   39|     64|         return [&](TreeNodeIndex& idx, uint32_t i) {
   40|     64|            idx ^= (((message[offset >> 3] >> (~offset & 0x7)) & 0x1) << (params.a() - 1 - i));
   41|     64|         };
   42|     64|      }
   43|     64|#endif
   44|     64|#if defined(BOTAN_HAS_SPHINCS_PLUS_WITH_SHA2) || defined(BOTAN_HAS_SPHINCS_PLUS_WITH_SHAKE)
   45|     64|      if(!params.is_slh_dsa()) {
   46|     64|         return [&](TreeNodeIndex& idx, uint32_t i) { idx ^= (((message[offset >> 3] >> (offset & 0x7)) & 0x1) << i); };
   47|     64|      }
   48|     64|#endif
   49|     64|      throw Internal_Error("Missing FORS index update logic for SPHINCS+ or SLH-DSA");
   50|     64|   }();
   51|       |
   52|    992|   for(auto& idx : indices) {
  ------------------
  |  Branch (52:18): [True: 992, False: 64]
  ------------------
   53|  13.4k|      for(uint32_t i = 0; i < params.a(); ++i, ++offset) {
  ------------------
  |  Branch (53:27): [True: 12.4k, False: 992]
  ------------------
   54|  12.4k|         update_idx(idx, i);
   55|  12.4k|      }
   56|    992|   }
   57|       |
   58|     64|   return indices;
   59|     64|}
sp_fors.cpp:_ZZN5Botan12_GLOBAL__N_123fors_message_to_indicesENSt3__14spanIKhLm18446744073709551615EEERKNS_18Sphincs_ParametersEENK3$_0clEv:
   36|     64|   auto update_idx = [&]() -> std::function<void(TreeNodeIndex&, uint32_t)> {
   37|     64|#if defined(BOTAN_HAS_SLH_DSA_WITH_SHA2) || defined(BOTAN_HAS_SLH_DSA_WITH_SHAKE)
   38|     64|      if(params.is_slh_dsa()) {
  ------------------
  |  Branch (38:10): [True: 64, False: 0]
  ------------------
   39|     64|         return [&](TreeNodeIndex& idx, uint32_t i) {
   40|     64|            idx ^= (((message[offset >> 3] >> (~offset & 0x7)) & 0x1) << (params.a() - 1 - i));
   41|     64|         };
   42|     64|      }
   43|      0|#endif
   44|      0|#if defined(BOTAN_HAS_SPHINCS_PLUS_WITH_SHA2) || defined(BOTAN_HAS_SPHINCS_PLUS_WITH_SHAKE)
   45|      0|      if(!params.is_slh_dsa()) {
  ------------------
  |  Branch (45:10): [True: 0, False: 0]
  ------------------
   46|      0|         return [&](TreeNodeIndex& idx, uint32_t i) { idx ^= (((message[offset >> 3] >> (offset & 0x7)) & 0x1) << i); };
   47|      0|      }
   48|      0|#endif
   49|      0|      throw Internal_Error("Missing FORS index update logic for SPHINCS+ or SLH-DSA");
   50|      0|   }();
sp_fors.cpp:_ZZZN5Botan12_GLOBAL__N_123fors_message_to_indicesENSt3__14spanIKhLm18446744073709551615EEERKNS_18Sphincs_ParametersEENK3$_0clEvENKUlRNS_6StrongIjNS_14TreeNodeIndex_EJNS_31EnableArithmeticWithPlainNumberEEEEjE_clESD_j:
   39|  12.4k|         return [&](TreeNodeIndex& idx, uint32_t i) {
   40|  12.4k|            idx ^= (((message[offset >> 3] >> (~offset & 0x7)) & 0x1) << (params.a() - 1 - i));
   41|  12.4k|         };

_ZN5Botan22Sphincs_Hash_FunctionsC2ERKNS_18Sphincs_ParametersERKNS_6StrongINSt3__16vectorIhNS5_9allocatorIhEEEENS_18SphincsPublicSeed_EJEEE:
   30|     64|      m_sphincs_params(sphincs_params), m_pub_seed(pub_seed) {}
_ZN5Botan22Sphincs_Hash_Functions6createERKNS_18Sphincs_ParametersERKNS_6StrongINSt3__16vectorIhNS5_9allocatorIhEEEENS_18SphincsPublicSeed_EJEEE:
   33|     64|                                                                       const SphincsPublicSeed& pub_seed) {
   34|     64|   switch(sphincs_params.hash_type()) {
  ------------------
  |  Branch (34:11): [True: 64, False: 0]
  ------------------
   35|      0|      case Sphincs_Hash_Type::Sha256:
  ------------------
  |  Branch (35:7): [True: 0, False: 64]
  ------------------
   36|      0|#if defined(BOTAN_HAS_SPHINCS_PLUS_SHA2_BASE)
   37|      0|         return std::make_unique<Sphincs_Hash_Functions_Sha2>(sphincs_params, pub_seed);
   38|       |#else
   39|       |         throw Not_Implemented("SLH-DSA (or SPHINCS+) with SHA-256 is not available in this build");
   40|       |#endif
   41|       |
   42|     64|      case Sphincs_Hash_Type::Shake256:
  ------------------
  |  Branch (42:7): [True: 64, False: 0]
  ------------------
   43|     64|#if defined(BOTAN_HAS_SPHINCS_PLUS_SHAKE_BASE)
   44|     64|         return std::make_unique<Sphincs_Hash_Functions_Shake>(sphincs_params, pub_seed);
   45|       |#else
   46|       |         throw Not_Implemented("SLH-DSA (or SPHINCS+) with SHAKE is not available in this build");
   47|       |#endif
   48|       |
   49|      0|      case Sphincs_Hash_Type::Haraka:
  ------------------
  |  Branch (49:7): [True: 0, False: 64]
  ------------------
   50|      0|         throw Not_Implemented("Haraka is not implemented");
   51|     64|   }
   52|      0|   BOTAN_ASSERT_UNREACHABLE();
  ------------------
  |  |  166|      0|#define BOTAN_ASSERT_UNREACHABLE() Botan::assert_unreachable(__FILE__, __LINE__)
  ------------------
   53|      0|}
_ZN5Botan22Sphincs_Hash_Functions5H_msgENS_10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_25SphincsMessageRandomness_EJEEEEERKNS2_INS4_IhNS3_9allocatorIhEEEENS_16SphincsTreeNode_EJEEERKNS_22SphincsMessageInternalE:
   77|     64|   StrongSpan<const SphincsMessageRandomness> r, const SphincsTreeNode& root, const SphincsMessageInternal& message) {
   78|     64|   const auto digest = H_msg_digest(r, root, message);
   79|       |
   80|       |   // The following calculates the message digest and indices from the
   81|       |   // raw message digest. See FIPS 205, Algorithm 19, Line 5-10.
   82|     64|   const auto& p = m_sphincs_params;
   83|     64|   BufferSlicer s(digest);
   84|     64|   auto msg_hash = s.copy<SphincsHashedMessage>(p.fors_message_bytes());
   85|     64|   auto tree_index_bytes = s.take(p.tree_digest_bytes());
   86|     64|   auto leaf_index_bytes = s.take(p.leaf_digest_bytes());
   87|     64|   BOTAN_ASSERT_NOMSG(s.empty());
  ------------------
  |  |   77|     64|   do {                                                                     \
  |  |   78|     64|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|     64|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 64]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|     64|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 64]
  |  |  ------------------
  ------------------
   88|       |
   89|     64|   auto tree_index = from_first_n_bits<XmssTreeIndexInLayer>(p.h() - p.xmss_tree_height(), tree_index_bytes);
   90|     64|   auto leaf_index = from_first_n_bits<TreeNodeIndex>(p.xmss_tree_height(), leaf_index_bytes);
   91|     64|   return {std::move(msg_hash), tree_index, leaf_index};
   92|     64|}
sp_hash.cpp:_ZN5Botan12_GLOBAL__N_117from_first_n_bitsINS_6StrongImNS_21XmssTreeIndexInLayer_EJNS_31EnableArithmeticWithPlainNumberEEEEEET_jNSt3__14spanIKhLm18446744073709551615EEE:
   58|     64|T from_first_n_bits(const uint32_t nbits, std::span<const uint8_t> bytes) {
   59|     64|   using wrapped_type = typename T::wrapped_type;
   60|       |
   61|     64|   constexpr const auto outsize = sizeof(wrapped_type);
   62|     64|   BOTAN_ASSERT_NOMSG(nbits <= bytes.size() * 8);
  ------------------
  |  |   77|     64|   do {                                                                     \
  |  |   78|     64|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|     64|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 64]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|     64|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 64]
  |  |  ------------------
  ------------------
   63|     64|   BOTAN_ASSERT_NOMSG(bytes.size() <= outsize);
  ------------------
  |  |   77|     64|   do {                                                                     \
  |  |   78|     64|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|     64|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 64]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|     64|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 64]
  |  |  ------------------
  ------------------
   64|       |
   65|       |   // The input buffer might shorter than the byte-length of the desired
   66|       |   // integer type. This prepends \0-bytes accordingly.
   67|     64|   std::array<uint8_t, outsize> normalized_bytes = {};
   68|     64|   std::copy(bytes.rbegin(), bytes.rend(), normalized_bytes.rbegin());
   69|     64|   const auto bits = load_be<wrapped_type>(normalized_bytes.data(), 0);
   70|       |
   71|     64|   return T(bits & (~wrapped_type(0) >> (8 * outsize - nbits)));
   72|     64|}
sp_hash.cpp:_ZN5Botan12_GLOBAL__N_117from_first_n_bitsINS_6StrongIjNS_14TreeNodeIndex_EJNS_31EnableArithmeticWithPlainNumberEEEEEET_jNSt3__14spanIKhLm18446744073709551615EEE:
   58|     64|T from_first_n_bits(const uint32_t nbits, std::span<const uint8_t> bytes) {
   59|     64|   using wrapped_type = typename T::wrapped_type;
   60|       |
   61|     64|   constexpr const auto outsize = sizeof(wrapped_type);
   62|     64|   BOTAN_ASSERT_NOMSG(nbits <= bytes.size() * 8);
  ------------------
  |  |   77|     64|   do {                                                                     \
  |  |   78|     64|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|     64|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 64]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|     64|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 64]
  |  |  ------------------
  ------------------
   63|     64|   BOTAN_ASSERT_NOMSG(bytes.size() <= outsize);
  ------------------
  |  |   77|     64|   do {                                                                     \
  |  |   78|     64|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|     64|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 64]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|     64|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 64]
  |  |  ------------------
  ------------------
   64|       |
   65|       |   // The input buffer might shorter than the byte-length of the desired
   66|       |   // integer type. This prepends \0-bytes accordingly.
   67|     64|   std::array<uint8_t, outsize> normalized_bytes = {};
   68|     64|   std::copy(bytes.rbegin(), bytes.rend(), normalized_bytes.rbegin());
   69|     64|   const auto bits = load_be<wrapped_type>(normalized_bytes.data(), 0);
   70|       |
   71|     64|   return T(bits & (~wrapped_type(0) >> (8 * outsize - nbits)));
   72|     64|}

_ZN5Botan9ht_verifyERKNS_6StrongINSt3__16vectorIhNS1_9allocatorIhEEEENS_16SphincsTreeNode_EJEEENS_10StrongSpanIKNS0_IS5_NS_21SphincsXmssSignature_EJEEEEES9_NS0_ImNS_21XmssTreeIndexInLayer_EJNS_31EnableArithmeticWithPlainNumberEEEENS0_IjNS_14TreeNodeIndex_EJSG_EEERKNS_18Sphincs_ParametersERNS_22Sphincs_Hash_FunctionsE:
   68|     64|               Sphincs_Hash_Functions& hashes) {
   69|     64|   BOTAN_ASSERT_NOMSG(ht_sig.size() == params.ht_signature_bytes());
  ------------------
  |  |   77|     64|   do {                                                                     \
  |  |   78|     64|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|     64|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 64]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|     64|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 64]
  |  |  ------------------
  ------------------
   70|     64|   BufferSlicer sig_s(ht_sig);
   71|       |
   72|     64|   Sphincs_Address wots_addr(Sphincs_Address_Type::WotsHash);
   73|     64|   Sphincs_Address tree_addr(Sphincs_Address_Type::HashTree);
   74|     64|   Sphincs_Address wots_pk_addr(Sphincs_Address_Type::WotsPublicKeyCompression);
   75|       |
   76|     64|   SphincsTreeNode reconstructed_root(params.n());
   77|       |
   78|       |   // Each iteration reconstructs the root of one XMSS tree of the hypertree
   79|    524|   for(HypertreeLayerIndex layer_idx(0); layer_idx < params.d(); layer_idx++) {
  ------------------
  |  Branch (79:42): [True: 460, False: 64]
  ------------------
   80|       |      // The first XMSS tree signs the message, the others their underlying XMSS tree root
   81|    460|      const SphincsTreeNode& current_root = (layer_idx == 0U) ? signed_msg : reconstructed_root;
  ------------------
  |  Branch (81:45): [True: 64, False: 396]
  ------------------
   82|       |
   83|    460|      tree_addr.set_layer_address(layer_idx);
   84|    460|      tree_addr.set_tree_address(tree_index_in_layer);
   85|       |
   86|    460|      wots_addr.copy_subtree_from(tree_addr);
   87|    460|      wots_addr.set_keypair_address(idx_leaf);
   88|       |
   89|    460|      wots_pk_addr.copy_keypair_from(wots_addr);
   90|       |
   91|    460|      const auto wots_pk = wots_public_key_from_signature(
   92|    460|         current_root, sig_s.take<WotsSignature>(params.wots_bytes()), wots_addr, params, hashes);
   93|       |
   94|       |      // Compute the leaf node using the WOTS public key.
   95|    460|      const auto leaf = hashes.T<SphincsTreeNode>(wots_pk_addr, wots_pk);
   96|       |
   97|       |      // Compute the root node of this subtree.
   98|    460|      compute_root(StrongSpan<SphincsTreeNode>(reconstructed_root),
   99|    460|                   params,
  100|    460|                   hashes,
  101|    460|                   leaf,
  102|    460|                   idx_leaf,
  103|    460|                   0,
  104|    460|                   sig_s.take<SphincsAuthenticationPath>(params.xmss_tree_height() * params.n()),
  105|    460|                   params.xmss_tree_height(),
  106|    460|                   tree_addr);
  107|       |
  108|       |      // Update the indices for the next layer.
  109|    460|      idx_leaf = TreeNodeIndex(tree_index_in_layer.get() & ((1 << params.xmss_tree_height()) - 1));
  110|    460|      tree_index_in_layer = tree_index_in_layer >> params.xmss_tree_height();
  111|    460|   }
  112|       |
  113|     64|   BOTAN_ASSERT_NOMSG(sig_s.empty());
  ------------------
  |  |   77|     64|   do {                                                                     \
  |  |   78|     64|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|     64|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 64]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|     64|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 64]
  |  |  ------------------
  ------------------
  114|       |
  115|       |   // Check if the root node equals the root node in the public key.
  116|     64|   return reconstructed_root == pk_root;
  117|     64|}

_ZN5Botan18Sphincs_ParametersC2ENS_21Sphincs_Parameter_SetENS_17Sphincs_Hash_TypeEjjjjjjj:
  245|     64|      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|     64|   BOTAN_ARG_CHECK(!(hash_type == Sphincs_Hash_Type::Haraka && is_slh_dsa_set(set)),
  ------------------
  |  |   35|     64|   do {                                                          \
  |  |   36|     64|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|     64|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 0, False: 64]
  |  |  |  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|     64|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 64]
  |  |  ------------------
  ------------------
  247|     64|                   "Haraka is not available for SLH-DSA");
  248|     64|   BOTAN_ARG_CHECK(w == 4 || w == 16 || w == 256, "Winternitz parameter must be one of 4, 16, 256");
  ------------------
  |  |   35|     64|   do {                                                          \
  |  |   36|     64|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    192|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 0, False: 64]
  |  |  |  Branch (37:12): [True: 64, 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|     64|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 64]
  |  |  ------------------
  ------------------
  249|     64|   BOTAN_ARG_CHECK(n == 16 || n == 24 || n == 32, "n must be one of 16, 24, 32");
  ------------------
  |  |   35|     64|   do {                                                          \
  |  |   36|     64|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    152|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 52, False: 12]
  |  |  |  Branch (37:12): [True: 0, False: 12]
  |  |  |  Branch (37:12): [True: 12, False: 0]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|     64|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 64]
  |  |  ------------------
  ------------------
  250|     64|   BOTAN_ARG_CHECK(m_d > 0, "d must be greater than zero");
  ------------------
  |  |   35|     64|   do {                                                          \
  |  |   36|     64|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|     64|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 64]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|     64|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 64]
  |  |  ------------------
  ------------------
  251|       |
  252|     64|   m_xmss_tree_height = m_h / m_d;
  253|     64|   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|     64|   BOTAN_ASSERT_NOMSG(m_lg_w <= 8 && 8 % m_lg_w == 0);
  ------------------
  |  |   77|     64|   do {                                                                     \
  |  |   78|     64|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|    128|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:12): [True: 64, False: 0]
  |  |  |  Branch (79:12): [True: 64, False: 0]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|     64|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 64]
  |  |  ------------------
  ------------------
  258|       |
  259|       |   // # Winternitz blocks of the message (len_1 of FIPS 205, Algorithm 1)
  260|     64|   m_wots_len1 = (m_n * 8) / m_lg_w;
  261|       |
  262|       |   // # Winternitz blocks of the checksum (output of FIPS 205 Algorithm 1)
  263|     64|   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|     64|   m_wots_len = m_wots_len1 + m_wots_len2;
  267|       |
  268|       |   // byte length of WOTS+ signature as well as public key
  269|     64|   m_wots_bytes = m_wots_len * m_n;
  270|       |
  271|       |   // # of bytes the WOTS+ checksum consists of
  272|     64|   m_wots_checksum_bytes = ceil_tobytes(m_wots_len2 * m_lg_w);
  273|       |
  274|     64|   m_fors_sig_bytes = (m_a + 1) * m_k * m_n;
  275|       |
  276|       |   // byte length of the FORS input message
  277|     64|   m_fors_message_bytes = ceil_tobytes(m_k * m_a);
  278|       |
  279|     64|   m_xmss_sig_bytes = m_wots_bytes + m_xmss_tree_height * m_n;
  280|     64|   m_ht_sig_bytes = m_d * m_xmss_sig_bytes;
  281|     64|   m_sp_sig_bytes = m_n /* random */ + m_fors_sig_bytes + m_ht_sig_bytes;
  282|       |
  283|     64|   m_tree_digest_bytes = ceil_tobytes(m_h - m_xmss_tree_height);
  284|     64|   m_leaf_digest_bytes = ceil_tobytes(m_xmss_tree_height);
  285|     64|   m_h_msg_digest_bytes = m_fors_message_bytes + m_tree_digest_bytes + m_leaf_digest_bytes;
  286|     64|}
_ZNK5Botan18Sphincs_Parameters12is_availableEv:
  288|    128|bool Sphincs_Parameters::is_available() const {
  289|    128|   [[maybe_unused]] const bool is_slh_dsa = is_slh_dsa_set(m_set);
  290|    128|#ifdef BOTAN_HAS_SLH_DSA_WITH_SHA2
  291|    128|   if(is_slh_dsa && m_hash_type == Sphincs_Hash_Type::Sha256) {
  ------------------
  |  Branch (291:7): [True: 128, False: 0]
  |  Branch (291:21): [True: 0, False: 128]
  ------------------
  292|      0|      return true;
  293|      0|   }
  294|    128|#endif
  295|    128|#ifdef BOTAN_HAS_SLH_DSA_WITH_SHAKE
  296|    128|   if(is_slh_dsa && m_hash_type == Sphincs_Hash_Type::Shake256) {
  ------------------
  |  Branch (296:7): [True: 128, False: 0]
  |  Branch (296:21): [True: 128, False: 0]
  ------------------
  297|    128|      return true;
  298|    128|   }
  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|     64|   Sphincs_Parameter_Set set, Sphincs_Hash_Type hash /*, SlhDsaInputMode input_mode [TODO: prehash mode]*/) {
  315|       |   // See FIPS 205, Table 2
  316|     64|   switch(set) {
  ------------------
  |  Branch (316:11): [True: 64, False: 0]
  ------------------
  317|      0|      case Sphincs_Parameter_Set::Sphincs128Small:
  ------------------
  |  Branch (317:7): [True: 0, False: 64]
  ------------------
  318|     52|      case Sphincs_Parameter_Set::SLHDSA128Small:
  ------------------
  |  Branch (318:7): [True: 52, False: 12]
  ------------------
  319|     52|         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: 64]
  ------------------
  321|      0|      case Sphincs_Parameter_Set::SLHDSA128Fast:
  ------------------
  |  Branch (321:7): [True: 0, False: 64]
  ------------------
  322|      0|         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: 64]
  ------------------
  325|      0|      case Sphincs_Parameter_Set::SLHDSA192Small:
  ------------------
  |  Branch (325:7): [True: 0, False: 64]
  ------------------
  326|      0|         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: 64]
  ------------------
  328|      0|      case Sphincs_Parameter_Set::SLHDSA192Fast:
  ------------------
  |  Branch (328:7): [True: 0, False: 64]
  ------------------
  329|      0|         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: 64]
  ------------------
  332|     12|      case Sphincs_Parameter_Set::SLHDSA256Small:
  ------------------
  |  Branch (332:7): [True: 12, False: 52]
  ------------------
  333|     12|         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: 64]
  ------------------
  335|      0|      case Sphincs_Parameter_Set::SLHDSA256Fast:
  ------------------
  |  Branch (335:7): [True: 0, False: 64]
  ------------------
  336|      0|         return Sphincs_Parameters(set, hash, 32, 68, 17, 9, 35, 16, 255);
  337|     64|   }
  338|      0|   BOTAN_ASSERT_UNREACHABLE();
  ------------------
  |  |  166|      0|#define BOTAN_ASSERT_UNREACHABLE() Botan::assert_unreachable(__FILE__, __LINE__)
  ------------------
  339|      0|}
_ZN5Botan18Sphincs_Parameters6createENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  341|     64|Sphincs_Parameters Sphincs_Parameters::create(std::string_view name) {
  342|     64|   auto [param_set, hash_type] = set_and_hash_from_name(name);
  343|     64|   return Sphincs_Parameters::create(param_set, hash_type);
  344|     64|}
_ZNK5Botan18Sphincs_Parameters10is_slh_dsaEv:
  346|    256|bool Sphincs_Parameters::is_slh_dsa() const {
  347|    256|   return is_slh_dsa_set(m_set);
  348|    256|}
sp_parameters.cpp:_ZN5Botan12_GLOBAL__N_114is_slh_dsa_setENS_21Sphincs_Parameter_SetE:
  214|    384|constexpr bool is_slh_dsa_set(Sphincs_Parameter_Set set) {
  215|    384|   switch(set) {
  ------------------
  |  Branch (215:11): [True: 384, False: 0]
  ------------------
  216|    312|      case Sphincs_Parameter_Set::SLHDSA128Small:
  ------------------
  |  Branch (216:7): [True: 312, False: 72]
  ------------------
  217|    312|      case Sphincs_Parameter_Set::SLHDSA128Fast:
  ------------------
  |  Branch (217:7): [True: 0, False: 384]
  ------------------
  218|    312|      case Sphincs_Parameter_Set::SLHDSA192Small:
  ------------------
  |  Branch (218:7): [True: 0, False: 384]
  ------------------
  219|    312|      case Sphincs_Parameter_Set::SLHDSA192Fast:
  ------------------
  |  Branch (219:7): [True: 0, False: 384]
  ------------------
  220|    384|      case Sphincs_Parameter_Set::SLHDSA256Small:
  ------------------
  |  Branch (220:7): [True: 72, False: 312]
  ------------------
  221|    384|      case Sphincs_Parameter_Set::SLHDSA256Fast:
  ------------------
  |  Branch (221:7): [True: 0, False: 384]
  ------------------
  222|    384|         return true;
  223|      0|      case Sphincs_Parameter_Set::Sphincs128Small:
  ------------------
  |  Branch (223:7): [True: 0, False: 384]
  ------------------
  224|      0|      case Sphincs_Parameter_Set::Sphincs128Fast:
  ------------------
  |  Branch (224:7): [True: 0, False: 384]
  ------------------
  225|      0|      case Sphincs_Parameter_Set::Sphincs192Small:
  ------------------
  |  Branch (225:7): [True: 0, False: 384]
  ------------------
  226|      0|      case Sphincs_Parameter_Set::Sphincs192Fast:
  ------------------
  |  Branch (226:7): [True: 0, False: 384]
  ------------------
  227|      0|      case Sphincs_Parameter_Set::Sphincs256Small:
  ------------------
  |  Branch (227:7): [True: 0, False: 384]
  ------------------
  228|      0|      case Sphincs_Parameter_Set::Sphincs256Fast:
  ------------------
  |  Branch (228:7): [True: 0, False: 384]
  ------------------
  229|      0|         return false;
  230|    384|   }
  231|      0|   BOTAN_ASSERT_UNREACHABLE();
  ------------------
  |  |  166|      0|#define BOTAN_ASSERT_UNREACHABLE() Botan::assert_unreachable(__FILE__, __LINE__)
  ------------------
  232|      0|}
sp_parameters.cpp:_ZN5Botan12_GLOBAL__N_122set_and_hash_from_nameENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   20|     64|std::pair<Sphincs_Parameter_Set, Sphincs_Hash_Type> set_and_hash_from_name(std::string_view name) {
   21|       |   // SPHINCS+ Round 3.1 instances
   22|     64|   if(name == "SphincsPlus-sha2-128s-r3.1") {
  ------------------
  |  Branch (22:7): [True: 0, False: 64]
  ------------------
   23|      0|      return {Sphincs_Parameter_Set::Sphincs128Small, Sphincs_Hash_Type::Sha256};
   24|      0|   }
   25|     64|   if(name == "SphincsPlus-sha2-128f-r3.1") {
  ------------------
  |  Branch (25:7): [True: 0, False: 64]
  ------------------
   26|      0|      return {Sphincs_Parameter_Set::Sphincs128Fast, Sphincs_Hash_Type::Sha256};
   27|      0|   }
   28|     64|   if(name == "SphincsPlus-sha2-192s-r3.1") {
  ------------------
  |  Branch (28:7): [True: 0, False: 64]
  ------------------
   29|      0|      return {Sphincs_Parameter_Set::Sphincs192Small, Sphincs_Hash_Type::Sha256};
   30|      0|   }
   31|     64|   if(name == "SphincsPlus-sha2-192f-r3.1") {
  ------------------
  |  Branch (31:7): [True: 0, False: 64]
  ------------------
   32|      0|      return {Sphincs_Parameter_Set::Sphincs192Fast, Sphincs_Hash_Type::Sha256};
   33|      0|   }
   34|     64|   if(name == "SphincsPlus-sha2-256s-r3.1") {
  ------------------
  |  Branch (34:7): [True: 0, False: 64]
  ------------------
   35|      0|      return {Sphincs_Parameter_Set::Sphincs256Small, Sphincs_Hash_Type::Sha256};
   36|      0|   }
   37|     64|   if(name == "SphincsPlus-sha2-256f-r3.1") {
  ------------------
  |  Branch (37:7): [True: 0, False: 64]
  ------------------
   38|      0|      return {Sphincs_Parameter_Set::Sphincs256Fast, Sphincs_Hash_Type::Sha256};
   39|      0|   }
   40|       |
   41|     64|   if(name == "SphincsPlus-shake-128s-r3.1") {
  ------------------
  |  Branch (41:7): [True: 0, False: 64]
  ------------------
   42|      0|      return {Sphincs_Parameter_Set::Sphincs128Small, Sphincs_Hash_Type::Shake256};
   43|      0|   }
   44|     64|   if(name == "SphincsPlus-shake-128f-r3.1") {
  ------------------
  |  Branch (44:7): [True: 0, False: 64]
  ------------------
   45|      0|      return {Sphincs_Parameter_Set::Sphincs128Fast, Sphincs_Hash_Type::Shake256};
   46|      0|   }
   47|     64|   if(name == "SphincsPlus-shake-192s-r3.1") {
  ------------------
  |  Branch (47:7): [True: 0, False: 64]
  ------------------
   48|      0|      return {Sphincs_Parameter_Set::Sphincs192Small, Sphincs_Hash_Type::Shake256};
   49|      0|   }
   50|     64|   if(name == "SphincsPlus-shake-192f-r3.1") {
  ------------------
  |  Branch (50:7): [True: 0, False: 64]
  ------------------
   51|      0|      return {Sphincs_Parameter_Set::Sphincs192Fast, Sphincs_Hash_Type::Shake256};
   52|      0|   }
   53|     64|   if(name == "SphincsPlus-shake-256s-r3.1") {
  ------------------
  |  Branch (53:7): [True: 0, False: 64]
  ------------------
   54|      0|      return {Sphincs_Parameter_Set::Sphincs256Small, Sphincs_Hash_Type::Shake256};
   55|      0|   }
   56|     64|   if(name == "SphincsPlus-shake-256f-r3.1") {
  ------------------
  |  Branch (56:7): [True: 0, False: 64]
  ------------------
   57|      0|      return {Sphincs_Parameter_Set::Sphincs256Fast, Sphincs_Hash_Type::Shake256};
   58|      0|   }
   59|       |
   60|     64|   if(name == "SphincsPlus-haraka-128s-r3.1") {
  ------------------
  |  Branch (60:7): [True: 0, False: 64]
  ------------------
   61|      0|      return {Sphincs_Parameter_Set::Sphincs128Small, Sphincs_Hash_Type::Haraka};
   62|      0|   }
   63|     64|   if(name == "SphincsPlus-haraka-128f-r3.1") {
  ------------------
  |  Branch (63:7): [True: 0, False: 64]
  ------------------
   64|      0|      return {Sphincs_Parameter_Set::Sphincs128Fast, Sphincs_Hash_Type::Haraka};
   65|      0|   }
   66|     64|   if(name == "SphincsPlus-haraka-192s-r3.1") {
  ------------------
  |  Branch (66:7): [True: 0, False: 64]
  ------------------
   67|      0|      return {Sphincs_Parameter_Set::Sphincs192Small, Sphincs_Hash_Type::Haraka};
   68|      0|   }
   69|     64|   if(name == "SphincsPlus-haraka-192f-r3.1") {
  ------------------
  |  Branch (69:7): [True: 0, False: 64]
  ------------------
   70|      0|      return {Sphincs_Parameter_Set::Sphincs192Fast, Sphincs_Hash_Type::Haraka};
   71|      0|   }
   72|     64|   if(name == "SphincsPlus-haraka-256s-r3.1") {
  ------------------
  |  Branch (72:7): [True: 0, False: 64]
  ------------------
   73|      0|      return {Sphincs_Parameter_Set::Sphincs256Small, Sphincs_Hash_Type::Haraka};
   74|      0|   }
   75|     64|   if(name == "SphincsPlus-haraka-256f-r3.1") {
  ------------------
  |  Branch (75:7): [True: 0, False: 64]
  ------------------
   76|      0|      return {Sphincs_Parameter_Set::Sphincs256Fast, Sphincs_Hash_Type::Haraka};
   77|      0|   }
   78|       |
   79|       |   // SLH-DSA instances WITHOUT prehash mode
   80|     64|   if(name == "SLH-DSA-SHA2-128s") {
  ------------------
  |  Branch (80:7): [True: 0, False: 64]
  ------------------
   81|      0|      return {Sphincs_Parameter_Set::SLHDSA128Small, Sphincs_Hash_Type::Sha256};
   82|      0|   }
   83|     64|   if(name == "SLH-DSA-SHA2-128f") {
  ------------------
  |  Branch (83:7): [True: 0, False: 64]
  ------------------
   84|      0|      return {Sphincs_Parameter_Set::SLHDSA128Fast, Sphincs_Hash_Type::Sha256};
   85|      0|   }
   86|     64|   if(name == "SLH-DSA-SHA2-192s") {
  ------------------
  |  Branch (86:7): [True: 0, False: 64]
  ------------------
   87|      0|      return {Sphincs_Parameter_Set::SLHDSA192Small, Sphincs_Hash_Type::Sha256};
   88|      0|   }
   89|     64|   if(name == "SLH-DSA-SHA2-192f") {
  ------------------
  |  Branch (89:7): [True: 0, False: 64]
  ------------------
   90|      0|      return {Sphincs_Parameter_Set::SLHDSA192Fast, Sphincs_Hash_Type::Sha256};
   91|      0|   }
   92|     64|   if(name == "SLH-DSA-SHA2-256s") {
  ------------------
  |  Branch (92:7): [True: 0, False: 64]
  ------------------
   93|      0|      return {Sphincs_Parameter_Set::SLHDSA256Small, Sphincs_Hash_Type::Sha256};
   94|      0|   }
   95|     64|   if(name == "SLH-DSA-SHA2-256f") {
  ------------------
  |  Branch (95:7): [True: 0, False: 64]
  ------------------
   96|      0|      return {Sphincs_Parameter_Set::SLHDSA256Fast, Sphincs_Hash_Type::Sha256};
   97|      0|   }
   98|       |
   99|     64|   if(name == "SLH-DSA-SHAKE-128s") {
  ------------------
  |  Branch (99:7): [True: 52, False: 12]
  ------------------
  100|     52|      return {Sphincs_Parameter_Set::SLHDSA128Small, Sphincs_Hash_Type::Shake256};
  101|     52|   }
  102|     12|   if(name == "SLH-DSA-SHAKE-128f") {
  ------------------
  |  Branch (102:7): [True: 0, False: 12]
  ------------------
  103|      0|      return {Sphincs_Parameter_Set::SLHDSA128Fast, Sphincs_Hash_Type::Shake256};
  104|      0|   }
  105|     12|   if(name == "SLH-DSA-SHAKE-192s") {
  ------------------
  |  Branch (105:7): [True: 0, False: 12]
  ------------------
  106|      0|      return {Sphincs_Parameter_Set::SLHDSA192Small, Sphincs_Hash_Type::Shake256};
  107|      0|   }
  108|     12|   if(name == "SLH-DSA-SHAKE-192f") {
  ------------------
  |  Branch (108:7): [True: 0, False: 12]
  ------------------
  109|      0|      return {Sphincs_Parameter_Set::SLHDSA192Fast, Sphincs_Hash_Type::Shake256};
  110|      0|   }
  111|     12|   if(name == "SLH-DSA-SHAKE-256s") {
  ------------------
  |  Branch (111:7): [True: 12, False: 0]
  ------------------
  112|     12|      return {Sphincs_Parameter_Set::SLHDSA256Small, Sphincs_Hash_Type::Shake256};
  113|     12|   }
  114|      0|   if(name == "SLH-DSA-SHAKE-256f") {
  ------------------
  |  Branch (114:7): [True: 0, False: 0]
  ------------------
  115|      0|      return {Sphincs_Parameter_Set::SLHDSA256Fast, Sphincs_Hash_Type::Shake256};
  116|      0|   }
  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|}

_ZN5Botan12compute_rootENS_10StrongSpanINS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_16SphincsTreeNode_EJEEEEERKNS_18Sphincs_ParametersERNS_22Sphincs_Hash_FunctionsERKS8_NS1_IjNS_14TreeNodeIndex_EJNS_31EnableArithmeticWithPlainNumberEEEEjNS0_IKNS1_IS6_NS_26SphincsAuthenticationPath_EJEEEEEjRNS_15Sphincs_AddressE:
  110|  1.45k|                  Sphincs_Address& tree_address) {
  111|  1.45k|   BOTAN_ASSERT_NOMSG(out.size() == params.n());
  ------------------
  |  |   77|  1.45k|   do {                                                                     \
  |  |   78|  1.45k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  1.45k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 1.45k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  1.45k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 1.45k]
  |  |  ------------------
  ------------------
  112|  1.45k|   BOTAN_ASSERT_NOMSG(authentication_path.size() == params.n() * total_tree_height);
  ------------------
  |  |   77|  1.45k|   do {                                                                     \
  |  |   78|  1.45k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  1.45k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 1.45k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  1.45k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 1.45k]
  |  |  ------------------
  ------------------
  113|  1.45k|   BOTAN_ASSERT_NOMSG(leaf.size() == params.n());
  ------------------
  |  |   77|  1.45k|   do {                                                                     \
  |  |   78|  1.45k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  1.45k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 1.45k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  1.45k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 1.45k]
  |  |  ------------------
  ------------------
  114|       |
  115|       |   // Use the `out` parameter as intermediate buffer for left/right nodes
  116|       |   // while traversing the tree.
  117|  1.45k|   copy_mem(out, leaf);
  118|       |
  119|       |   // Views into either `auth_path` or `out` depending on the tree location.
  120|  1.45k|   StrongSpan<const SphincsTreeNode> left;
  121|  1.45k|   StrongSpan<const SphincsTreeNode> right;
  122|       |
  123|  1.45k|   BufferSlicer auth_path(authentication_path);
  124|       |
  125|       |   // The leaf is put in the left or right buffer, depending on its indexes parity.
  126|       |   // Same for the first node of the authentication path
  127|       |
  128|  17.9k|   for(TreeLayerIndex i(0); i < total_tree_height; i++) {
  ------------------
  |  Branch (128:29): [True: 16.4k, False: 1.45k]
  ------------------
  129|       |      // The input of the hash function takes the current node and the node
  130|       |      // given in the authentication path. If the current node is a right node
  131|       |      // in the tree (i.e. its leaf index is uneven) the hash function inputs
  132|       |      // must be swapped.
  133|  16.4k|      left = out;
  134|  16.4k|      right = auth_path.take<SphincsTreeNode>(params.n());
  135|       |
  136|  16.4k|      if((leaf_idx & 1) == 1U) {
  ------------------
  |  Branch (136:10): [True: 8.20k, False: 8.27k]
  ------------------
  137|  8.20k|         std::swap(left, right);
  138|  8.20k|      }
  139|       |
  140|  16.4k|      leaf_idx /= 2;
  141|  16.4k|      idx_offset /= 2;
  142|  16.4k|      tree_address.set_tree_height(i + 1).set_tree_index(leaf_idx + idx_offset);
  143|       |
  144|  16.4k|      hashes.T(out, tree_address, left, right);
  145|  16.4k|   }
  146|       |
  147|  1.45k|   BOTAN_ASSERT_NOMSG(auth_path.empty());
  ------------------
  |  |   77|  1.45k|   do {                                                                     \
  |  |   78|  1.45k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  1.45k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 1.45k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  1.45k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 1.45k]
  |  |  ------------------
  ------------------
  148|  1.45k|}

_ZN5Botan13chain_lengthsERKNS_6StrongINSt3__16vectorIhNS1_9allocatorIhEEEENS_16SphincsTreeNode_EJEEERKNS_18Sphincs_ParametersE:
   92|    460|std::vector<WotsHashIndex> chain_lengths(const SphincsTreeNode& msg, const Sphincs_Parameters& params) {
   93|    460|   std::vector<WotsHashIndex> result(params.wots_len_1() + params.wots_len_2());
   94|       |
   95|    460|   auto msg_base_w = std::span(result).first(params.wots_len_1());
   96|    460|   auto checksum_base_w = std::span(result).last(params.wots_len_2());
   97|       |
   98|    460|   base_2_b(msg_base_w, msg.get(), params);
   99|    460|   wots_checksum(checksum_base_w, msg_base_w, params);
  100|       |
  101|    460|   return result;
  102|    460|}
_ZN5Botan30wots_public_key_from_signatureERKNS_6StrongINSt3__16vectorIhNS1_9allocatorIhEEEENS_16SphincsTreeNode_EJEEENS_10StrongSpanIKNS0_INS2_IhNS_16secure_allocatorIhEEEENS_14WotsSignature_EJEEEEERNS_15Sphincs_AddressERKNS_18Sphincs_ParametersERNS_22Sphincs_Hash_FunctionsE:
  108|    460|                                             Sphincs_Hash_Functions& hashes) {
  109|    460|   const std::vector<WotsHashIndex> lengths = chain_lengths(hashed_message, params);
  110|    460|   WotsPublicKey pk_buffer(params.wots_len() * params.n());
  111|    460|   BufferSlicer sig(signature);
  112|    460|   BufferStuffer pk(pk_buffer);
  113|       |
  114|  19.6k|   for(WotsChainIndex i(0); i < params.wots_len(); i++) {
  ------------------
  |  Branch (114:29): [True: 19.1k, False: 460]
  ------------------
  115|  19.1k|      address.set_chain_address(i);
  116|       |
  117|       |      // params.w() can be one of {4, 8, 256}
  118|  19.1k|      const WotsHashIndex start_index = lengths[i.get()];
  119|  19.1k|      const uint8_t steps_to_take = static_cast<uint8_t>(params.w() - 1) - start_index.get();
  120|       |
  121|  19.1k|      chain(pk.next<WotsPublicKeyNode>(params.n()),
  122|  19.1k|            sig.take<WotsNode>(params.n()),
  123|  19.1k|            start_index,
  124|  19.1k|            steps_to_take,
  125|  19.1k|            address,
  126|  19.1k|            hashes,
  127|  19.1k|            params);
  128|  19.1k|   }
  129|       |
  130|    460|   return pk_buffer;
  131|    460|}
sp_wots.cpp:_ZN5Botan12_GLOBAL__N_18base_2_bENSt3__14spanINS_6StrongIhNS_14WotsHashIndex_EJNS_31EnableArithmeticWithPlainNumberEEEELm18446744073709551615EEENS2_IKhLm18446744073709551615EEERKNS_18Sphincs_ParametersE:
   47|    920|void base_2_b(std::span<WotsHashIndex> output, std::span<const uint8_t> input, const Sphincs_Parameters& params) {
   48|    920|   BOTAN_ASSERT_NOMSG(output.size() <= 8 * input.size() / params.log_w());
  ------------------
  |  |   77|    920|   do {                                                                     \
  |  |   78|    920|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|    920|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 920]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|    920|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 920]
  |  |  ------------------
  ------------------
   49|       |
   50|    920|   size_t input_offset = 0;
   51|    920|   uint8_t current_byte = 0;
   52|    920|   uint32_t remaining_bits_in_current_byte = 0;
   53|       |
   54|  19.1k|   for(auto& out : output) {
  ------------------
  |  Branch (54:18): [True: 19.1k, False: 920]
  ------------------
   55|  19.1k|      if(remaining_bits_in_current_byte == 0) {
  ------------------
  |  Branch (55:10): [True: 9.81k, False: 9.35k]
  ------------------
   56|  9.81k|         current_byte = input[input_offset];
   57|  9.81k|         ++input_offset;
   58|  9.81k|         remaining_bits_in_current_byte = 8;
   59|  9.81k|      }
   60|  19.1k|      remaining_bits_in_current_byte -= params.log_w();
   61|  19.1k|      out = WotsHashIndex((current_byte >> remaining_bits_in_current_byte) & (params.w() - 1));
   62|  19.1k|   }
   63|    920|}
sp_wots.cpp:_ZN5Botan12_GLOBAL__N_113wots_checksumENSt3__14spanINS_6StrongIhNS_14WotsHashIndex_EJNS_31EnableArithmeticWithPlainNumberEEEELm18446744073709551615EEENS2_IKS6_Lm18446744073709551615EEERKNS_18Sphincs_ParametersE:
   71|    460|                   const Sphincs_Parameters& params) {
   72|    460|   uint32_t csum = 0;
   73|       |
   74|       |   // Compute checksum.
   75|  17.7k|   for(auto wots_hash_index : msg_base_w) {
  ------------------
  |  Branch (75:29): [True: 17.7k, False: 460]
  ------------------
   76|  17.7k|      csum += params.w() - 1 - wots_hash_index.get();
   77|  17.7k|   }
   78|       |
   79|       |   // Convert checksum to base_w.
   80|    460|   csum = csum << ((8 - ((params.wots_len_2() * params.log_w()) % 8)) % 8);
   81|       |
   82|    460|   std::array<uint8_t, 4> csum_bytes{};
   83|    460|   store_be(csum, csum_bytes.data());
   84|       |
   85|    460|   const size_t csum_bytes_size = params.wots_checksum_bytes();
   86|    460|   BOTAN_ASSERT_NOMSG(csum_bytes.size() >= csum_bytes_size);
  ------------------
  |  |   77|    460|   do {                                                                     \
  |  |   78|    460|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|    460|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 460]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|    460|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 460]
  |  |  ------------------
  ------------------
   87|    460|   base_2_b(output, std::span(csum_bytes).last(csum_bytes_size), params);
   88|    460|}
sp_wots.cpp:_ZN5Botan12_GLOBAL__N_15chainENS_10StrongSpanINS_6StrongINSt3__16vectorIhNS3_9allocatorIhEEEENS_18WotsPublicKeyNode_EJEEEEENS1_IKNS2_INS4_IhNS_16secure_allocatorIhEEEENS_9WotsNode_EJEEEEENS2_IhNS_14WotsHashIndex_EJNS_31EnableArithmeticWithPlainNumberEEEEhRNS_15Sphincs_AddressERNS_22Sphincs_Hash_FunctionsERKNS_18Sphincs_ParametersE:
   30|  19.1k|           const Sphincs_Parameters& params) {
   31|       |   // Initialize out with the value at position 'start'.
   32|  19.1k|   std::copy(wots_chain_key.begin(), wots_chain_key.end(), out.begin());
   33|       |
   34|       |   // Iterate 'steps' calls to the hash function.
   35|   165k|   for(WotsHashIndex i = start; i < (start + steps) && i < params.w(); i++) {
  ------------------
  |  Branch (35:33): [True: 146k, False: 19.1k]
  |  Branch (35:33): [True: 146k, False: 19.1k]
  |  Branch (35:56): [True: 146k, False: 0]
  ------------------
   36|   146k|      addr.set_hash_address(i);
   37|   146k|      hashes.T(out, addr, out);
   38|   146k|   }
   39|  19.1k|}

_ZN5Botan21SphincsPlus_PublicKeyC1ENSt3__14spanIKhLm18446744073709551615EEENS_18Sphincs_ParametersE:
  133|     64|      m_public(std::make_shared<SphincsPlus_PublicKeyInternal>(params, pub_key)) {
  134|     64|   if(!params.is_available()) {
  ------------------
  |  Branch (134:7): [True: 0, False: 64]
  ------------------
  135|      0|      throw Not_Implemented("This SPHINCS+ parameter set is not available in this configuration");
  136|      0|   }
  137|     64|}
_ZN5Botan21SphincsPlus_PublicKeyD2Ev:
  147|     64|SphincsPlus_PublicKey::~SphincsPlus_PublicKey() = default;
_ZNK5Botan21SphincsPlus_PublicKey22create_verification_opENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEES5_:
  256|     64|                                                                                    std::string_view provider) const {
  257|     64|   if(provider.empty() || provider == "base") {
  ------------------
  |  Branch (257:7): [True: 64, False: 0]
  |  Branch (257:27): [True: 0, False: 0]
  ------------------
  258|     64|      return std::make_unique<SphincsPlus_Verification_Operation>(m_public);
  259|     64|   }
  260|      0|   throw Provider_Not_Found(algo_name(), provider);
  261|     64|}
_ZNK5Botan29SphincsPlus_PublicKeyInternal10parametersEv:
   91|    256|      const Sphincs_Parameters& parameters() const { return m_params; }
_ZNK5Botan29SphincsPlus_PublicKeyInternal4seedEv:
   87|     64|      const SphincsPublicSeed& seed() const { return m_public_seed; }
_ZNK5Botan29SphincsPlus_PublicKeyInternal4rootEv:
   89|    128|      const SphincsTreeNode& root() const { return m_sphincs_root; }
_ZN5Botan29SphincsPlus_PublicKeyInternalC2ENS_18Sphincs_ParametersENSt3__14spanIKhLm18446744073709551615EEE:
   73|     64|      SphincsPlus_PublicKeyInternal(Sphincs_Parameters params, std::span<const uint8_t> key_bits) : m_params(params) {
   74|     64|         if(key_bits.size() != m_params.public_key_bytes()) {
  ------------------
  |  Branch (74:13): [True: 0, False: 64]
  ------------------
   75|      0|            throw Decoding_Error("SLH-DSA (or SPHINCS+) Public Key doesn't have the expected length");
   76|      0|         }
   77|       |
   78|     64|         BufferSlicer s(key_bits);
   79|     64|         m_public_seed = s.copy<SphincsPublicSeed>(params.n());
   80|     64|         m_sphincs_root = s.copy<SphincsTreeNode>(params.n());
   81|       |
   82|     64|         BOTAN_ASSERT_NOMSG(s.empty());
  ------------------
  |  |   77|     64|   do {                                                                     \
  |  |   78|     64|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|     64|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 64]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|     64|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 64]
  |  |  ------------------
  ------------------
   83|     64|      }
sphincsplus.cpp:_ZN5Botan12_GLOBAL__N_134SphincsPlus_Verification_OperationC2ENSt3__110shared_ptrIKNS_29SphincsPlus_PublicKeyInternalEEE:
  193|     64|            m_public(std::move(pub_key)),
  194|     64|            m_hashes(Botan::Sphincs_Hash_Functions::create(m_public->parameters(), m_public->seed())),
  195|     64|            m_context(/* TODO: Add API */ {}) {
  196|     64|         BOTAN_ARG_CHECK(m_context.size() <= 255, "Context must not exceed 255 bytes");
  ------------------
  |  |   35|     64|   do {                                                          \
  |  |   36|     64|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|     64|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 64]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|     64|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 64]
  |  |  ------------------
  ------------------
  197|       |
  198|     64|         if(!m_public->parameters().is_available()) {
  ------------------
  |  Branch (198:13): [True: 0, False: 64]
  ------------------
  199|      0|            throw Not_Implemented("This SPHINCS+ parameter set is not available in this configuration");
  200|      0|         }
  201|     64|      }
sphincsplus.cpp:_ZN5Botan12_GLOBAL__N_134SphincsPlus_Verification_Operation6updateENSt3__14spanIKhLm18446744073709551615EEE:
  207|     64|      void update(std::span<const uint8_t> msg) override {
  208|       |         // TODO(For Pre-Hash Mode): We need to stream the message into a hash function.
  209|     64|         m_msg_buffer.get().insert(m_msg_buffer.end(), msg.begin(), msg.end());
  210|     64|      }
sphincsplus.cpp:_ZN5Botan12_GLOBAL__N_134SphincsPlus_Verification_Operation18is_valid_signatureENSt3__14spanIKhLm18446744073709551615EEE:
  215|     64|      bool is_valid_signature(std::span<const uint8_t> sig) override {
  216|     64|         const auto internal_msg = prepare_message(std::exchange(m_msg_buffer, {}), m_public->parameters(), m_context);
  217|     64|         return slh_verify_internal(internal_msg, sig);
  218|     64|      }
sphincsplus.cpp:_ZN5Botan12_GLOBAL__N_115prepare_messageENS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_20SphincsInputMessage_EJEEERKNS_18Sphincs_ParametersENS_10StrongSpanIKNS1_IS6_NS_15SphincsContext_EJEEEEE:
   40|     64|                                       StrongSpan<const SphincsContext> context) {
   41|     64|   BOTAN_ARG_CHECK(params.is_slh_dsa() || context.empty(), "Context is not supported for SPHINCS+");
  ------------------
  |  |   35|     64|   do {                                                          \
  |  |   36|     64|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|     64|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 64, 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|     64|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 64]
  |  |  ------------------
  ------------------
   42|     64|#if defined(BOTAN_HAS_SLH_DSA_WITH_SHA2) || defined(BOTAN_HAS_SLH_DSA_WITH_SHAKE)
   43|     64|   if(params.is_slh_dsa()) {
  ------------------
  |  Branch (43:7): [True: 64, False: 0]
  ------------------
   44|       |      // prefix (no pre-hash mode): input mode byte + |ctx| + ctx
   45|     64|      const uint8_t input_mode_byte = 0x00;  // Pure (TODO: pre-hash mode: 0x01)
   46|     64|      return {
   47|     64|         .prefix = concat<SphincsMessagePrefix>(
   48|     64|            store_be(input_mode_byte), store_be(checked_cast_to<uint8_t>(context.size())), context),
   49|     64|         .message = std::move(msg),
   50|     64|      };
   51|     64|   }
   52|      0|#endif
   53|      0|#if defined(BOTAN_HAS_SPHINCS_PLUS_WITH_SHA2) || defined(BOTAN_HAS_SPHINCS_PLUS_WITH_SHAKE)
   54|      0|   if(!params.is_slh_dsa()) {
  ------------------
  |  Branch (54:7): [True: 0, False: 0]
  ------------------
   55|       |      // SPHINCS+ Round 3.1 uses the message without any prefix
   56|      0|      return {
   57|      0|         .prefix = {},  // SPHINCS+ has no prefix
   58|      0|         .message = std::move(msg),
   59|      0|      };
   60|      0|   }
   61|      0|#endif
   62|      0|   throw Internal_Error("Missing message preparation logic for SLH-DSA or SPHINCS+");
   63|      0|}
sphincsplus.cpp:_ZN5Botan12_GLOBAL__N_134SphincsPlus_Verification_Operation19slh_verify_internalERKNS_22SphincsMessageInternalENSt3__14spanIKhLm18446744073709551615EEE:
  224|     64|      bool slh_verify_internal(const SphincsMessageInternal& msg, std::span<const uint8_t> sig) {
  225|     64|         const auto& p = m_public->parameters();
  226|     64|         if(sig.size() != p.sphincs_signature_bytes()) {
  ------------------
  |  Branch (226:13): [True: 0, False: 64]
  ------------------
  227|      0|            return false;
  228|      0|         }
  229|       |
  230|     64|         BufferSlicer s(sig);
  231|       |         // Compute leaf and tree index from R
  232|     64|         const auto msg_random_s = s.take<SphincsMessageRandomness>(p.n());
  233|     64|         auto [mhash, tree_idx, leaf_idx] = m_hashes->H_msg(msg_random_s, m_public->root(), msg);
  234|       |
  235|       |         // Reconstruct the FORS tree
  236|     64|         Sphincs_Address fors_addr(Sphincs_Address_Type::ForsTree);
  237|     64|         fors_addr.set_tree_address(tree_idx).set_keypair_address(leaf_idx);
  238|     64|         const auto fors_sig_s = s.take<ForsSignature>(p.fors_signature_bytes());
  239|     64|         auto fors_root = fors_public_key_from_signature(mhash, fors_sig_s, fors_addr, p, *m_hashes);
  240|       |
  241|       |         // Verify the hypertree signature
  242|     64|         const auto ht_sig_s = s.take<SphincsHypertreeSignature>(p.ht_signature_bytes());
  243|     64|         BOTAN_ASSERT_NOMSG(s.empty());
  ------------------
  |  |   77|     64|   do {                                                                     \
  |  |   78|     64|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|     64|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 64]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|     64|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 64]
  |  |  ------------------
  ------------------
  244|     64|         return ht_verify(fors_root, ht_sig_s, m_public->root(), tree_idx, leaf_idx, p, *m_hashes);
  245|     64|      }

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

_ZN5Botan14AutoSeeded_RNGD2Ev:
   46|  15.6k|AutoSeeded_RNG::~AutoSeeded_RNG() = default;
_ZN5Botan14AutoSeeded_RNGC2Em:
   68|  15.6k|AutoSeeded_RNG::AutoSeeded_RNG(size_t reseed_interval) {
   69|  15.6k|#if defined(BOTAN_HAS_SYSTEM_RNG)
   70|  15.6k|   m_rng = std::make_unique<HMAC_DRBG>(auto_rng_hmac(), system_rng(), reseed_interval);
   71|       |#elif defined(BOTAN_HAS_ENTROPY_SOURCE)
   72|       |   m_rng = std::make_unique<HMAC_DRBG>(auto_rng_hmac(), Entropy_Sources::global_sources(), reseed_interval);
   73|       |#else
   74|       |   BOTAN_UNUSED(reseed_interval);
   75|       |   throw Not_Implemented("AutoSeeded_RNG default constructor not available due to no RNG or entropy sources");
   76|       |#endif
   77|       |
   78|  15.6k|   force_reseed();
   79|  15.6k|}
_ZN5Botan14AutoSeeded_RNG12force_reseedEv:
   81|  15.6k|void AutoSeeded_RNG::force_reseed() {
   82|  15.6k|   m_rng->force_reseed();
   83|  15.6k|   m_rng->next_byte();
   84|       |
   85|  15.6k|   if(!m_rng->is_seeded()) {
  ------------------
  |  Branch (85:7): [True: 0, False: 15.6k]
  ------------------
   86|      0|      throw Internal_Error("AutoSeeded_RNG reseeding failed");
   87|      0|   }
   88|  15.6k|}
auto_rng.cpp:_ZN5Botan12_GLOBAL__N_113auto_rng_hmacEv:
   26|  15.6k|std::unique_ptr<MessageAuthenticationCode> auto_rng_hmac() {
   27|  15.6k|   const std::string possible_auto_rng_hmacs[] = {
   28|  15.6k|      "HMAC(SHA-512)",
   29|  15.6k|      "HMAC(SHA-256)",
   30|  15.6k|   };
   31|       |
   32|  15.6k|   for(const auto& hmac : possible_auto_rng_hmacs) {
  ------------------
  |  Branch (32:25): [True: 15.6k, False: 0]
  ------------------
   33|  15.6k|      if(auto mac = MessageAuthenticationCode::create(hmac)) {
  ------------------
  |  Branch (33:15): [True: 15.6k, False: 0]
  ------------------
   34|  15.6k|         return mac;
   35|  15.6k|      }
   36|  15.6k|   }
   37|       |
   38|       |   // This shouldn't happen since this module has a dependency on sha2_32
   39|      0|   throw Internal_Error("AutoSeeded_RNG: No usable HMAC hash found");
   40|  15.6k|}

_ZN5Botan9HMAC_DRBGD2Ev:
   60|  15.6k|HMAC_DRBG::~HMAC_DRBG() = default;
_ZN5Botan9HMAC_DRBGC2ENSt3__110unique_ptrINS_25MessageAuthenticationCodeENS1_14default_deleteIS3_EEEERNS_21RandomNumberGeneratorEmm:
   66|  15.6k|      Stateful_RNG(underlying_rng, reseed_interval),
   67|  15.6k|      m_mac(check_not_null(std::move(prf))),
   68|  15.6k|      m_max_number_of_bytes_per_request(max_number_of_bytes_per_request),
   69|  15.6k|      m_security_level(hmac_drbg_security_level(m_mac->output_length())) {
   70|  15.6k|   check_limits(reseed_interval, max_number_of_bytes_per_request);
   71|       |
   72|  15.6k|   clear();
   73|  15.6k|}
_ZN5Botan9HMAC_DRBG11clear_stateEv:
  116|  15.6k|void HMAC_DRBG::clear_state() {
  117|  15.6k|   if(m_V.empty()) {
  ------------------
  |  Branch (117:7): [True: 15.6k, False: 0]
  ------------------
  118|  15.6k|      const size_t output_length = m_mac->output_length();
  119|  15.6k|      m_V.resize(output_length);
  120|  15.6k|      m_T.resize(output_length);
  121|  15.6k|   }
  122|       |
  123|  15.6k|   std::fill(m_V.begin(), m_V.end(), 0x01);
  124|  15.6k|   m_mac->set_key(std::vector<uint8_t>(m_V.size(), 0x00));
  125|  15.6k|}
_ZN5Botan9HMAC_DRBG15generate_outputENSt3__14spanIhLm18446744073709551615EEENS2_IKhLm18446744073709551615EEE:
  135|  15.6k|void HMAC_DRBG::generate_output(std::span<uint8_t> output, std::span<const uint8_t> input) {
  136|       |   // This is an internal function, callers should have validated this beforehand
  137|  15.6k|   BOTAN_ASSERT_NOMSG(!output.empty());
  ------------------
  |  |   77|  15.6k|   do {                                                                     \
  |  |   78|  15.6k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  15.6k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 15.6k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  15.6k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 15.6k]
  |  |  ------------------
  ------------------
  138|       |
  139|  15.6k|   if(!input.empty()) {
  ------------------
  |  Branch (139:7): [True: 0, False: 15.6k]
  ------------------
  140|      0|      update(input);
  141|      0|   }
  142|       |
  143|  31.3k|   while(!output.empty()) {
  ------------------
  |  Branch (143:10): [True: 15.6k, False: 15.6k]
  ------------------
  144|  15.6k|      const size_t to_copy = std::min(output.size(), m_V.size());
  145|  15.6k|      m_mac->update(m_V);
  146|  15.6k|      m_mac->final(m_V);
  147|  15.6k|      copy_mem(output.data(), m_V.data(), to_copy);
  148|       |
  149|  15.6k|      output = output.subspan(to_copy);
  150|  15.6k|   }
  151|       |
  152|  15.6k|   update(input);
  153|  15.6k|}
_ZN5Botan9HMAC_DRBG6updateENSt3__14spanIKhLm18446744073709551615EEE:
  159|  31.3k|void HMAC_DRBG::update(std::span<const uint8_t> input) {
  160|  31.3k|   m_mac->update(m_V);
  161|  31.3k|   m_mac->update(0x00);
  162|  31.3k|   if(!input.empty()) {
  ------------------
  |  Branch (162:7): [True: 15.6k, False: 15.6k]
  ------------------
  163|  15.6k|      m_mac->update(input);
  164|  15.6k|   }
  165|  31.3k|   m_mac->final(m_T);
  166|  31.3k|   m_mac->set_key(m_T);
  167|       |
  168|  31.3k|   m_mac->update(m_V);
  169|  31.3k|   m_mac->final(m_V);
  170|       |
  171|  31.3k|   if(!input.empty()) {
  ------------------
  |  Branch (171:7): [True: 15.6k, False: 15.6k]
  ------------------
  172|  15.6k|      m_mac->update(m_V);
  173|  15.6k|      m_mac->update(0x01);
  174|  15.6k|      m_mac->update(input);
  175|  15.6k|      m_mac->final(m_T);
  176|  15.6k|      m_mac->set_key(m_T);
  177|       |
  178|  15.6k|      m_mac->update(m_V);
  179|  15.6k|      m_mac->final(m_V);
  180|  15.6k|   }
  181|  31.3k|}
_ZNK5Botan9HMAC_DRBG14security_levelEv:
  183|  46.9k|size_t HMAC_DRBG::security_level() const {
  184|  46.9k|   return m_security_level;
  185|  46.9k|}
hmac_drbg.cpp:_ZN5Botan12_GLOBAL__N_124hmac_drbg_security_levelEm:
   21|  15.6k|size_t hmac_drbg_security_level(size_t mac_output_length) {
   22|       |   // security strength of the hash function
   23|       |   // for pre-image resistance (see NIST SP 800-57)
   24|       |   // SHA-1: 128 bits
   25|       |   // SHA-224, SHA-512/224: 192 bits,
   26|       |   // SHA-256, SHA-512/256, SHA-384, SHA-512: >= 256 bits
   27|       |   // NIST SP 800-90A only supports up to 256 bits though
   28|       |
   29|  15.6k|   if(mac_output_length < 20) {
  ------------------
  |  Branch (29:7): [True: 0, False: 15.6k]
  ------------------
   30|      0|      throw Invalid_Argument(fmt("HMAC_DRBG MAC output length {} is too small", mac_output_length));
   31|      0|   }
   32|       |
   33|  15.6k|   if(mac_output_length < 32) {
  ------------------
  |  Branch (33:7): [True: 0, False: 15.6k]
  ------------------
   34|      0|      return (mac_output_length - 4) * 8;
   35|  15.6k|   } else {
   36|  15.6k|      return 32 * 8;
   37|  15.6k|   }
   38|  15.6k|}
hmac_drbg.cpp:_ZN5Botan12_GLOBAL__N_112check_limitsEmm:
   40|  15.6k|void check_limits(size_t reseed_interval, size_t max_number_of_bytes_per_request) {
   41|       |   // SP800-90A permits up to 2^48, but it is not usable on 32 bit
   42|       |   // platforms, so we only allow up to 2^24, which is still reasonably high
   43|  15.6k|   if(reseed_interval == 0 || reseed_interval > static_cast<size_t>(1) << 24) {
  ------------------
  |  Branch (43:7): [True: 0, False: 15.6k]
  |  Branch (43:31): [True: 0, False: 15.6k]
  ------------------
   44|      0|      throw Invalid_Argument("Invalid value for reseed_interval");
   45|      0|   }
   46|       |
   47|  15.6k|   if(max_number_of_bytes_per_request == 0 || max_number_of_bytes_per_request > 64 * 1024) {
  ------------------
  |  Branch (47:7): [True: 0, False: 15.6k]
  |  Branch (47:47): [True: 0, False: 15.6k]
  ------------------
   48|      0|      throw Invalid_Argument("Invalid value for max_number_of_bytes_per_request");
   49|      0|   }
   50|  15.6k|}
hmac_drbg.cpp:_ZN5Botan12_GLOBAL__N_114check_not_nullINS_25MessageAuthenticationCodeEEENSt3__110unique_ptrIT_NS3_14default_deleteIS5_EEEES8_:
   53|  15.6k|std::unique_ptr<T> check_not_null(std::unique_ptr<T> obj) {
   54|  15.6k|   BOTAN_ARG_CHECK(obj != nullptr, "Argument must not be null");
  ------------------
  |  |   35|  15.6k|   do {                                                          \
  |  |   36|  15.6k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  15.6k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 15.6k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  15.6k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 15.6k]
  |  |  ------------------
  ------------------
   55|  15.6k|   return obj;
   56|  15.6k|}

_ZN5Botan21RandomNumberGenerator15reseed_from_rngERS0_m:
   65|  15.6k|void RandomNumberGenerator::reseed_from_rng(RandomNumberGenerator& rng, size_t poll_bits) {
   66|  15.6k|   if(this->accepts_input()) {
  ------------------
  |  Branch (66:7): [True: 15.6k, False: 0]
  ------------------
   67|  15.6k|      this->add_entropy(rng.random_vec(poll_bits / 8));
   68|  15.6k|   }
   69|  15.6k|}

_ZN5Botan12Stateful_RNG5clearEv:
   15|  15.6k|void Stateful_RNG::clear() {
   16|  15.6k|   const lock_guard_type<recursive_mutex_type> lock(m_mutex);
   17|  15.6k|   m_reseed_counter = 0;
   18|  15.6k|   m_last_pid = 0;
   19|  15.6k|   clear_state();
   20|  15.6k|}
_ZN5Botan12Stateful_RNG12force_reseedEv:
   22|  15.6k|void Stateful_RNG::force_reseed() {
   23|  15.6k|   const lock_guard_type<recursive_mutex_type> lock(m_mutex);
   24|  15.6k|   m_reseed_counter = 0;
   25|  15.6k|}
_ZNK5Botan12Stateful_RNG9is_seededEv:
   27|  46.9k|bool Stateful_RNG::is_seeded() const {
   28|  46.9k|   const lock_guard_type<recursive_mutex_type> lock(m_mutex);
   29|  46.9k|   return m_reseed_counter > 0;
   30|  46.9k|}
_ZN5Botan12Stateful_RNG23generate_batched_outputENSt3__14spanIhLm18446744073709551615EEENS2_IKhLm18446744073709551615EEE:
   39|  15.6k|void Stateful_RNG::generate_batched_output(std::span<uint8_t> output, std::span<const uint8_t> input) {
   40|  15.6k|   BOTAN_ASSERT_NOMSG(!output.empty());
  ------------------
  |  |   77|  15.6k|   do {                                                                     \
  |  |   78|  15.6k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  15.6k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 15.6k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  15.6k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 15.6k]
  |  |  ------------------
  ------------------
   41|       |
   42|  15.6k|   const size_t max_per_request = max_number_of_bytes_per_request();
   43|       |
   44|  15.6k|   if(max_per_request == 0) {
  ------------------
  |  Branch (44:7): [True: 0, False: 15.6k]
  ------------------
   45|       |      // no limit
   46|      0|      reseed_check();
   47|      0|      this->generate_output(output, input);
   48|  15.6k|   } else {
   49|  31.3k|      while(!output.empty()) {
  ------------------
  |  Branch (49:13): [True: 15.6k, False: 15.6k]
  ------------------
   50|  15.6k|         const size_t this_req = std::min(max_per_request, output.size());
   51|       |
   52|  15.6k|         reseed_check();
   53|  15.6k|         this->generate_output(output.subspan(0, this_req), input);
   54|       |
   55|       |         // only include the input for the first iteration
   56|  15.6k|         input = {};
   57|       |
   58|  15.6k|         output = output.subspan(this_req);
   59|  15.6k|      }
   60|  15.6k|   }
   61|  15.6k|}
_ZN5Botan12Stateful_RNG21fill_bytes_with_inputENSt3__14spanIhLm18446744073709551615EEENS2_IKhLm18446744073709551615EEE:
   63|  31.3k|void Stateful_RNG::fill_bytes_with_input(std::span<uint8_t> output, std::span<const uint8_t> input) {
   64|  31.3k|   const lock_guard_type<recursive_mutex_type> lock(m_mutex);
   65|       |
   66|  31.3k|   if(output.empty()) {
  ------------------
  |  Branch (66:7): [True: 15.6k, False: 15.6k]
  ------------------
   67|       |      // Special case for exclusively adding entropy to the stateful RNG.
   68|  15.6k|      this->update(input);
   69|       |
   70|  15.6k|      if(8 * input.size() >= security_level()) {
  ------------------
  |  Branch (70:10): [True: 15.6k, False: 0]
  ------------------
   71|  15.6k|         reset_reseed_counter();
   72|  15.6k|      }
   73|  15.6k|   } else {
   74|  15.6k|      generate_batched_output(output, input);
   75|  15.6k|   }
   76|  31.3k|}
_ZN5Botan12Stateful_RNG15reseed_from_rngERNS_21RandomNumberGeneratorEm:
   90|  15.6k|void Stateful_RNG::reseed_from_rng(RandomNumberGenerator& rng, size_t poll_bits) {
   91|  15.6k|   const lock_guard_type<recursive_mutex_type> lock(m_mutex);
   92|       |
   93|  15.6k|   RandomNumberGenerator::reseed_from_rng(rng, poll_bits);
   94|       |
   95|  15.6k|   if(poll_bits >= security_level()) {
  ------------------
  |  Branch (95:7): [True: 15.6k, False: 0]
  ------------------
   96|  15.6k|      reset_reseed_counter();
   97|  15.6k|   }
   98|  15.6k|}
_ZN5Botan12Stateful_RNG20reset_reseed_counterEv:
  100|  31.3k|void Stateful_RNG::reset_reseed_counter() {
  101|       |   // Lock is held whenever this function is called
  102|  31.3k|   m_reseed_counter = 1;
  103|  31.3k|   m_last_pid = OS::get_process_id();
  104|  31.3k|}
_ZN5Botan12Stateful_RNG12reseed_checkEv:
  106|  15.6k|void Stateful_RNG::reseed_check() {
  107|       |   // Lock is held whenever this function is called
  108|       |
  109|  15.6k|   const uint32_t cur_pid = OS::get_process_id();
  110|       |
  111|  15.6k|   const bool fork_detected = (m_last_pid > 0) && (cur_pid != m_last_pid);
  ------------------
  |  Branch (111:31): [True: 0, False: 15.6k]
  |  Branch (111:51): [True: 0, False: 0]
  ------------------
  112|       |
  113|  15.6k|   if(is_seeded() == false || fork_detected || (m_reseed_interval > 0 && m_reseed_counter >= m_reseed_interval)) {
  ------------------
  |  Branch (113:7): [True: 15.6k, False: 0]
  |  Branch (113:31): [True: 0, False: 0]
  |  Branch (113:49): [True: 0, False: 0]
  |  Branch (113:74): [True: 0, False: 0]
  ------------------
  114|  15.6k|      m_reseed_counter = 0;
  115|  15.6k|      m_last_pid = cur_pid;
  116|       |
  117|  15.6k|      if(m_underlying_rng != nullptr) {
  ------------------
  |  Branch (117:10): [True: 15.6k, False: 0]
  ------------------
  118|  15.6k|         reseed_from_rng(*m_underlying_rng, security_level());
  119|  15.6k|      }
  120|       |
  121|  15.6k|      if(m_entropy_sources != nullptr) {
  ------------------
  |  Branch (121:10): [True: 0, False: 15.6k]
  ------------------
  122|      0|         reseed_from_sources(*m_entropy_sources, security_level());
  123|      0|      }
  124|       |
  125|  15.6k|      if(!is_seeded()) {
  ------------------
  |  Branch (125:10): [True: 0, False: 15.6k]
  ------------------
  126|      0|         if(fork_detected) {
  ------------------
  |  Branch (126:13): [True: 0, False: 0]
  ------------------
  127|      0|            throw Invalid_State("Detected use of fork but cannot reseed DRBG");
  128|      0|         } else {
  129|      0|            throw PRNG_Unseeded(name());
  130|      0|         }
  131|      0|      }
  132|  15.6k|   } else {
  133|      0|      BOTAN_ASSERT(m_reseed_counter != 0, "RNG is seeded");
  ------------------
  |  |   64|      0|   do {                                                                                 \
  |  |   65|      0|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|      0|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|      0|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
  134|      0|      m_reseed_counter += 1;
  135|      0|   }
  136|  15.6k|}

_ZN5Botan10system_rngEv:
  377|  15.6k|RandomNumberGenerator& system_rng() {
  378|  15.6k|   static System_RNG_Impl g_system_rng;
  379|  15.6k|   return g_system_rng;
  380|  15.6k|}
system_rng.cpp:_ZN5Botan12_GLOBAL__N_115System_RNG_Impl21fill_bytes_with_inputENSt3__14spanIhLm18446744073709551615EEENS3_IKhLm18446744073709551615EEE:
  215|  15.6k|      void fill_bytes_with_input(std::span<uint8_t> output, std::span<const uint8_t> /* ignored */) override {
  216|  15.6k|         const unsigned int flags = 0;
  217|       |
  218|  15.6k|         uint8_t* buf = output.data();
  219|  15.6k|         size_t len = output.size();
  220|  31.3k|         while(len > 0) {
  ------------------
  |  Branch (220:16): [True: 15.6k, False: 15.6k]
  ------------------
  221|       |   #if defined(__GLIBC__) && __GLIBC__ == 2 && __GLIBC_MINOR__ < 25
  222|       |            const ssize_t got = ::syscall(SYS_getrandom, buf, len, flags);
  223|       |   #else
  224|  15.6k|            const ssize_t got = ::getrandom(buf, len, flags);
  225|  15.6k|   #endif
  226|       |
  227|  15.6k|            if(got < 0) {
  ------------------
  |  Branch (227:16): [True: 0, False: 15.6k]
  ------------------
  228|      0|               if(errno == EINTR) {
  ------------------
  |  Branch (228:19): [True: 0, False: 0]
  ------------------
  229|      0|                  continue;
  230|      0|               }
  231|      0|               throw System_Error("System_RNG getrandom failed", errno);
  232|      0|            }
  233|       |
  234|  15.6k|            if(got == 0) {
  ------------------
  |  Branch (234:16): [True: 0, False: 15.6k]
  ------------------
  235|      0|               throw System_Error("System_RNG getrandom unexpectedly returned 0");
  236|      0|            }
  237|       |
  238|  15.6k|            buf += got;
  239|  15.6k|            len -= got;
  240|  15.6k|         }
  241|  15.6k|      }

_ZN5Botan6CTR_BEC2ENSt3__110unique_ptrINS_11BlockCipherENS1_14default_deleteIS3_EEEE:
   22|    571|      m_cipher(std::move(cipher)),
   23|    571|      m_block_size(m_cipher->block_size()),
   24|    571|      m_ctr_size(m_block_size),
   25|    571|      m_ctr_blocks(m_cipher->parallel_bytes() / m_block_size),
   26|    571|      m_counter(m_cipher->parallel_bytes()),
   27|    571|      m_pad(m_counter.size()),
   28|    571|      m_pad_pos(0) {}
_ZN5Botan6CTR_BEC2ENSt3__110unique_ptrINS_11BlockCipherENS1_14default_deleteIS3_EEEEm:
   31|    136|      m_cipher(std::move(cipher)),
   32|    136|      m_block_size(m_cipher->block_size()),
   33|    136|      m_ctr_size(ctr_size),
   34|    136|      m_ctr_blocks(m_cipher->parallel_bytes() / m_block_size),
   35|    136|      m_counter(m_cipher->parallel_bytes()),
   36|    136|      m_pad(m_counter.size()),
   37|    136|      m_pad_pos(0) {
   38|    136|   BOTAN_ARG_CHECK(m_ctr_size >= 4 && m_ctr_size <= m_block_size, "Invalid CTR-BE counter size");
  ------------------
  |  |   35|    136|   do {                                                          \
  |  |   36|    136|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    272|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 136, False: 0]
  |  |  |  Branch (37:12): [True: 136, False: 0]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    136|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 136]
  |  |  ------------------
  ------------------
   39|    136|}
_ZNK5Botan6CTR_BE15valid_iv_lengthEm:
   61|  1.57k|bool CTR_BE::valid_iv_length(size_t iv_len) const {
   62|  1.57k|   return (iv_len <= m_block_size);
   63|  1.57k|}
_ZNK5Botan6CTR_BE8key_specEv:
   69|  1.41k|Key_Length_Specification CTR_BE::key_spec() const {
   70|  1.41k|   return m_cipher->key_spec();
   71|  1.41k|}
_ZNK5Botan6CTR_BE19has_keying_materialEv:
   77|   145k|bool CTR_BE::has_keying_material() const {
   78|   145k|   return m_cipher->has_keying_material();
   79|   145k|}
_ZN5Botan6CTR_BE12key_scheduleENSt3__14spanIKhLm18446744073709551615EEE:
   81|    707|void CTR_BE::key_schedule(std::span<const uint8_t> key) {
   82|    707|   m_cipher->set_key(key);
   83|       |
   84|       |   // Set a default all-zeros IV
   85|    707|   set_iv(nullptr, 0);
   86|    707|}
_ZN5Botan6CTR_BE12cipher_bytesEPKhPhm:
   96|   143k|void CTR_BE::cipher_bytes(const uint8_t in[], uint8_t out[], size_t length) {
   97|   143k|   assert_key_material_set();
   98|       |
   99|   143k|   if(m_ctr_size < sizeof(uint64_t)) {
  ------------------
  |  Branch (99:7): [True: 10.6k, False: 133k]
  ------------------
  100|  10.6k|      if(length > m_bytes_remaining) {
  ------------------
  |  Branch (100:10): [True: 0, False: 10.6k]
  ------------------
  101|      0|         throw Invalid_State(fmt("CTR_BE with {}-byte counter has exhausted its keystream", m_ctr_size));
  102|      0|      }
  103|  10.6k|      m_bytes_remaining -= length;
  104|  10.6k|   }
  105|       |
  106|   143k|   const uint8_t* pad_bits = m_pad.data();
  107|   143k|   const size_t pad_size = m_pad.size();
  108|       |
  109|       |   /* Consume any already computed keystream in m_pad */
  110|       |
  111|   143k|   if(m_pad_pos > 0) {
  ------------------
  |  Branch (111:7): [True: 10.3k, False: 133k]
  ------------------
  112|  10.3k|      const size_t avail = pad_size - m_pad_pos;
  113|  10.3k|      const size_t take = std::min(length, avail);
  114|  10.3k|      xor_buf(out, in, pad_bits + m_pad_pos, take);
  115|  10.3k|      length -= take;
  116|  10.3k|      in += take;
  117|  10.3k|      out += take;
  118|  10.3k|      m_pad_pos += take;
  119|       |
  120|  10.3k|      if(take == avail) {
  ------------------
  |  Branch (120:10): [True: 10.3k, False: 23]
  ------------------
  121|  10.3k|         add_counter(m_ctr_blocks);
  122|  10.3k|         m_cipher->encrypt_n(m_counter.data(), m_pad.data(), m_ctr_blocks);
  123|  10.3k|         m_pad_pos = 0;
  124|  10.3k|      }
  125|  10.3k|   }
  126|       |
  127|       |   /* Bulk processing */
  128|       |
  129|   143k|   [[maybe_unused]] const bool can_use_bs16_ctr4_fastpath = m_block_size == 16 && m_ctr_size == 4 && pad_size % 64 == 0;
  ------------------
  |  Branch (129:61): [True: 68.8k, False: 74.9k]
  |  Branch (129:83): [True: 10.6k, False: 58.2k]
  |  Branch (129:102): [True: 10.6k, False: 0]
  ------------------
  130|       |
  131|       |#if defined(BOTAN_HAS_CTR_BE_AVX2)
  132|       |   if(length >= pad_size && can_use_bs16_ctr4_fastpath && CPUID::has(CPUID::Feature::AVX2)) {
  133|       |      const size_t consumed = ctr_proc_bs16_ctr4_avx2(in, out, length);
  134|       |      in += consumed;
  135|       |      out += consumed;
  136|       |      length -= consumed;
  137|       |   }
  138|       |#endif
  139|       |
  140|       |#if defined(BOTAN_HAS_CTR_BE_SIMD32)
  141|       |   if(length >= pad_size && can_use_bs16_ctr4_fastpath && CPUID::has(CPUID::Feature::SIMD_4X32)) {
  142|       |      const size_t consumed = ctr_proc_bs16_ctr4_simd32(in, out, length);
  143|       |      in += consumed;
  144|       |      out += consumed;
  145|       |      length -= consumed;
  146|       |   }
  147|       |#endif
  148|       |
  149|   308k|   while(length >= pad_size) {
  ------------------
  |  Branch (149:10): [True: 164k, False: 143k]
  ------------------
  150|   164k|      xor_buf(out, in, pad_bits, pad_size);
  151|   164k|      length -= pad_size;
  152|   164k|      in += pad_size;
  153|   164k|      out += pad_size;
  154|       |
  155|   164k|      add_counter(m_ctr_blocks);
  156|   164k|      m_cipher->encrypt_n(m_counter.data(), m_pad.data(), m_ctr_blocks);
  157|   164k|   }
  158|       |
  159|       |   /* Now if length > 0 then we have some remaining text, and m_pad is full - consume as required */
  160|   143k|   if(length > 0) {
  ------------------
  |  Branch (160:7): [True: 10.9k, False: 132k]
  ------------------
  161|  10.9k|      xor_buf(out, in, pad_bits, length);
  162|  10.9k|      m_pad_pos = length;
  163|  10.9k|   }
  164|   143k|}
_ZN5Botan6CTR_BE12set_iv_bytesEPKhm:
  202|  1.57k|void CTR_BE::set_iv_bytes(const uint8_t iv[], size_t iv_len) {
  203|  1.57k|   if(!valid_iv_length(iv_len)) {
  ------------------
  |  Branch (203:7): [True: 0, False: 1.57k]
  ------------------
  204|      0|      throw Invalid_IV_Length(name(), iv_len);
  205|      0|   }
  206|       |
  207|  1.57k|   m_iv.resize(m_block_size);
  208|  1.57k|   zeroise(m_iv);
  209|  1.57k|   copy_mem(m_iv.data(), iv, iv_len);
  210|       |
  211|  1.57k|   seek(0);
  212|  1.57k|}
_ZN5Botan6CTR_BE11add_counterEm:
  214|   174k|void CTR_BE::add_counter(const uint64_t counter) {
  215|   174k|   const size_t ctr_size = m_ctr_size;
  216|   174k|   const size_t ctr_blocks = m_ctr_blocks;
  217|   174k|   const size_t BS = m_block_size;
  218|       |
  219|   174k|   if(ctr_size == 4) {
  ------------------
  |  Branch (219:7): [True: 18.3k, False: 156k]
  ------------------
  220|  18.3k|      const size_t off = (BS - 4);
  221|  18.3k|      const uint32_t low32 = static_cast<uint32_t>(counter + load_be<uint32_t>(&m_counter[off], 0));
  222|       |
  223|  98.4k|      for(size_t i = 0; i != ctr_blocks; ++i) {
  ------------------
  |  Branch (223:25): [True: 80.1k, False: 18.3k]
  ------------------
  224|  80.1k|         store_be(uint32_t(low32 + i), &m_counter[i * BS + off]);
  225|  80.1k|      }
  226|   156k|   } else if(ctr_size == 8) {
  ------------------
  |  Branch (226:14): [True: 93.2k, False: 63.1k]
  ------------------
  227|  93.2k|      const size_t off = (BS - 8);
  228|  93.2k|      const uint64_t low64 = counter + load_be<uint64_t>(&m_counter[off], 0);
  229|       |
  230|   646k|      for(size_t i = 0; i != ctr_blocks; ++i) {
  ------------------
  |  Branch (230:25): [True: 553k, False: 93.2k]
  ------------------
  231|   553k|         store_be(uint64_t(low64 + i), &m_counter[i * BS + off]);
  232|   553k|      }
  233|  93.2k|   } else if(ctr_size == 16) {
  ------------------
  |  Branch (233:14): [True: 63.1k, False: 0]
  ------------------
  234|  63.1k|      const size_t off = (BS - 16);
  235|  63.1k|      uint64_t b0 = load_be<uint64_t>(&m_counter[off], 0);
  236|  63.1k|      uint64_t b1 = load_be<uint64_t>(&m_counter[off], 1);
  237|  63.1k|      b1 += counter;
  238|  63.1k|      b0 += (b1 < counter) ? 1 : 0;  // carry
  ------------------
  |  Branch (238:13): [True: 0, False: 63.1k]
  ------------------
  239|       |
  240|   390k|      for(size_t i = 0; i != ctr_blocks; ++i) {
  ------------------
  |  Branch (240:25): [True: 327k, False: 63.1k]
  ------------------
  241|   327k|         store_be(b0, &m_counter[i * BS + off]);
  242|   327k|         store_be(b1, &m_counter[i * BS + off + 8]);
  243|   327k|         b1 += 1;
  244|   327k|         if(b1 == 0) {
  ------------------
  |  Branch (244:13): [True: 0, False: 327k]
  ------------------
  245|      0|            b0 += 1;  // carry
  246|      0|         }
  247|   327k|      }
  248|  63.1k|   } else {
  249|      0|      for(size_t i = 0; i != ctr_blocks; ++i) {
  ------------------
  |  Branch (249:25): [True: 0, False: 0]
  ------------------
  250|      0|         uint64_t local_counter = counter;
  251|      0|         uint16_t carry = static_cast<uint8_t>(local_counter);
  252|      0|         for(size_t j = 0; (carry > 0 || local_counter > 0) && j != ctr_size; ++j) {
  ------------------
  |  Branch (252:29): [True: 0, False: 0]
  |  Branch (252:42): [True: 0, False: 0]
  |  Branch (252:64): [True: 0, False: 0]
  ------------------
  253|      0|            const size_t off = i * BS + (BS - 1 - j);
  254|      0|            const uint16_t cnt = static_cast<uint16_t>(m_counter[off]) + carry;
  255|      0|            m_counter[off] = static_cast<uint8_t>(cnt);
  256|      0|            local_counter = (local_counter >> 8);
  257|      0|            carry = (cnt >> 8) + static_cast<uint8_t>(local_counter);
  258|      0|         }
  259|      0|      }
  260|      0|   }
  261|   174k|}
_ZN5Botan6CTR_BE4seekEm:
  263|  1.57k|void CTR_BE::seek(uint64_t offset) {
  264|  1.57k|   assert_key_material_set();
  265|       |
  266|  1.57k|   if(m_ctr_size < sizeof(uint64_t)) {
  ------------------
  |  Branch (266:7): [True: 411, False: 1.16k]
  ------------------
  267|    411|      const uint64_t requested_block = offset / m_block_size;
  268|    411|      const uint64_t max_blocks = uint64_t{1} << (8 * m_ctr_size);
  269|    411|      if(requested_block >= max_blocks) {
  ------------------
  |  Branch (269:10): [True: 0, False: 411]
  ------------------
  270|      0|         throw Invalid_Argument(fmt("CTR_BE::seek offset {} exceeds {}-byte counter range", offset, m_ctr_size));
  271|      0|      }
  272|       |
  273|    411|      m_bytes_remaining = max_blocks * m_block_size - offset;
  274|    411|   }
  275|       |
  276|  1.57k|   const uint64_t base_counter = m_ctr_blocks * (offset / m_counter.size());
  277|       |
  278|  1.57k|   zeroise(m_counter);
  279|  1.57k|   BOTAN_ASSERT_NOMSG(m_counter.size() >= m_iv.size());
  ------------------
  |  |   77|  1.57k|   do {                                                                     \
  |  |   78|  1.57k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  1.57k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 1.57k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  1.57k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 1.57k]
  |  |  ------------------
  ------------------
  280|  1.57k|   copy_mem(m_counter.data(), m_iv.data(), m_iv.size());
  281|       |
  282|  1.57k|   const size_t BS = m_block_size;
  283|       |
  284|       |   // Set m_counter blocks to IV, IV + 1, ... IV + n
  285|       |
  286|  1.57k|   if(m_ctr_size == 4 && BS >= 8) {
  ------------------
  |  Branch (286:7): [True: 411, False: 1.16k]
  |  Branch (286:26): [True: 411, False: 0]
  ------------------
  287|    411|      const uint32_t low32 = load_be<uint32_t>(&m_counter[BS - 4], 0);
  288|       |
  289|    411|      if(m_ctr_blocks >= 4 && is_power_of_2(m_ctr_blocks)) {
  ------------------
  |  Branch (289:10): [True: 411, False: 0]
  |  Branch (289:31): [True: 411, False: 0]
  ------------------
  290|    411|         size_t written = 1;
  291|  1.38k|         while(written < m_ctr_blocks) {
  ------------------
  |  Branch (291:16): [True: 970, False: 411]
  ------------------
  292|    970|            copy_mem(&m_counter[written * BS], &m_counter[0], BS * written);  // NOLINT(*container-data-pointer)
  293|    970|            written *= 2;
  294|    970|         }
  295|    411|      } else {
  296|      0|         for(size_t i = 1; i != m_ctr_blocks; ++i) {
  ------------------
  |  Branch (296:28): [True: 0, False: 0]
  ------------------
  297|      0|            copy_mem(&m_counter[i * BS], &m_counter[0], BS - 4);  // NOLINT(*container-data-pointer)
  298|      0|         }
  299|      0|      }
  300|       |
  301|  2.23k|      for(size_t i = 1; i != m_ctr_blocks; ++i) {
  ------------------
  |  Branch (301:25): [True: 1.82k, False: 411]
  ------------------
  302|  1.82k|         const uint32_t c = static_cast<uint32_t>(low32 + i);
  303|  1.82k|         store_be(c, &m_counter[(BS - 4) + i * BS]);
  304|  1.82k|      }
  305|  1.16k|   } else {
  306|       |      // do everything sequentially:
  307|  27.0k|      for(size_t i = 1; i != m_ctr_blocks; ++i) {
  ------------------
  |  Branch (307:25): [True: 25.9k, False: 1.16k]
  ------------------
  308|  25.9k|         copy_mem(&m_counter[i * BS], &m_counter[(i - 1) * BS], BS);
  309|       |
  310|  25.9k|         for(size_t j = 0; j != m_ctr_size; ++j) {
  ------------------
  |  Branch (310:28): [True: 25.9k, False: 0]
  ------------------
  311|  25.9k|            uint8_t& c = m_counter[i * BS + (BS - 1 - j)];
  312|  25.9k|            c += 1;
  313|  25.9k|            if(c > 0) {
  ------------------
  |  Branch (313:16): [True: 25.9k, False: 62]
  ------------------
  314|  25.9k|               break;
  315|  25.9k|            }
  316|  25.9k|         }
  317|  25.9k|      }
  318|  1.16k|   }
  319|       |
  320|  1.57k|   if(base_counter > 0) {
  ------------------
  |  Branch (320:7): [True: 0, False: 1.57k]
  ------------------
  321|      0|      add_counter(base_counter);
  322|      0|   }
  323|       |
  324|  1.57k|   m_cipher->encrypt_n(m_counter.data(), m_pad.data(), m_ctr_blocks);
  325|  1.57k|   m_pad_pos = offset % m_counter.size();
  326|  1.57k|}

_ZN5Botan12StreamCipher6createENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEES5_:
   40|  3.29k|std::unique_ptr<StreamCipher> StreamCipher::create(std::string_view algo_spec, std::string_view provider) {
   41|       |#if defined(BOTAN_HAS_SHAKE_CIPHER)
   42|       |   if(algo_spec == "SHAKE-128" || algo_spec == "SHAKE-128-XOF") {
   43|       |      if(provider.empty() || provider == "base") {
   44|       |         return std::make_unique<SHAKE_128_Cipher>();
   45|       |      }
   46|       |   }
   47|       |
   48|       |   if(algo_spec == "SHAKE-256" || algo_spec == "SHAKE-256-XOF") {
   49|       |      if(provider.empty() || provider == "base") {
   50|       |         return std::make_unique<SHAKE_256_Cipher>();
   51|       |      }
   52|       |   }
   53|       |#endif
   54|       |
   55|       |#if defined(BOTAN_HAS_CHACHA)
   56|       |   if(algo_spec == "ChaCha20") {
   57|       |      if(provider.empty() || provider == "base") {
   58|       |         return std::make_unique<ChaCha>(20);
   59|       |      }
   60|       |   }
   61|       |#endif
   62|       |
   63|       |#if defined(BOTAN_HAS_SALSA20)
   64|       |   if(algo_spec == "Salsa20") {
   65|       |      if(provider.empty() || provider == "base") {
   66|       |         return std::make_unique<Salsa20>();
   67|       |      }
   68|       |   }
   69|       |#endif
   70|       |
   71|  3.29k|   const SCAN_Name req(algo_spec);
   72|       |
   73|  3.29k|#if defined(BOTAN_HAS_CTR_BE)
   74|  3.29k|   if((req.algo_name() == "CTR-BE" || req.algo_name() == "CTR") && req.arg_count_between(1, 2)) {
  ------------------
  |  Branch (74:8): [True: 0, False: 3.29k]
  |  Branch (74:39): [True: 0, False: 3.29k]
  |  Branch (74:68): [True: 0, False: 0]
  ------------------
   75|      0|      if(provider.empty() || provider == "base") {
  ------------------
  |  Branch (75:10): [True: 0, False: 0]
  |  Branch (75:30): [True: 0, False: 0]
  ------------------
   76|      0|         auto cipher = BlockCipher::create(req.arg(0));
   77|      0|         if(cipher) {
  ------------------
  |  Branch (77:13): [True: 0, False: 0]
  ------------------
   78|      0|            const size_t ctr_size = req.arg_as_integer(1, cipher->block_size());
   79|      0|            return std::make_unique<CTR_BE>(std::move(cipher), ctr_size);
   80|      0|         }
   81|      0|      }
   82|      0|   }
   83|  3.29k|#endif
   84|       |
   85|       |#if defined(BOTAN_HAS_CHACHA)
   86|       |   if(req.algo_name() == "ChaCha") {
   87|       |      if(provider.empty() || provider == "base") {
   88|       |         return std::make_unique<ChaCha>(req.arg_as_integer(0, 20));
   89|       |      }
   90|       |   }
   91|       |#endif
   92|       |
   93|       |#if defined(BOTAN_HAS_OFB)
   94|       |   if(req.algo_name() == "OFB" && req.arg_count() == 1) {
   95|       |      if(provider.empty() || provider == "base") {
   96|       |         if(auto cipher = BlockCipher::create(req.arg(0))) {
   97|       |            return std::make_unique<OFB>(std::move(cipher));
   98|       |         }
   99|       |      }
  100|       |   }
  101|       |#endif
  102|       |
  103|       |#if defined(BOTAN_HAS_RC4)
  104|       |
  105|       |   if(req.algo_name() == "RC4" || req.algo_name() == "ARC4" || req.algo_name() == "MARK-4") {
  106|       |      const size_t skip = (req.algo_name() == "MARK-4") ? 256 : req.arg_as_integer(0, 0);
  107|       |
  108|       |      if(provider.empty() || provider == "base") {
  109|       |         return std::make_unique<RC4>(skip);
  110|       |      }
  111|       |   }
  112|       |
  113|       |#endif
  114|       |
  115|  3.29k|   BOTAN_UNUSED(req);
  ------------------
  |  |  144|  3.29k|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
  116|  3.29k|   BOTAN_UNUSED(provider);
  ------------------
  |  |  144|  3.29k|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
  117|       |
  118|  3.29k|   return nullptr;
  119|  3.29k|}

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

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

_ZN5Botan9ExceptionC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   71|  5.32k|Exception::Exception(std::string_view msg) : m_msg(msg) {}
_ZN5Botan9ExceptionC2EPKcNSt3__117basic_string_viewIcNS3_11char_traitsIcEEEE:
   75|    859|Exception::Exception(const char* prefix, std::string_view msg) : m_msg(fmt("{} {}", prefix, msg)) {}
_ZN5Botan16Invalid_ArgumentC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   77|  2.47k|Invalid_Argument::Invalid_Argument(std::string_view msg) : Exception(msg) {}
_ZN5Botan14Decoding_ErrorC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  125|  2.84k|Decoding_Error::Decoding_Error(std::string_view name) : Exception(name) {}
_ZN5Botan26Invalid_Authentication_TagC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  133|    859|      Exception("Invalid authentication tag:", msg) {}

_ZN5Botan5GHASH14ghash_multiplyENSt3__14spanIhLm16EEENS2_IKhLm18446744073709551615EEEm:
   44|  10.7k|void GHASH::ghash_multiply(std::span<uint8_t, GCM_BS> x, std::span<const uint8_t> input, size_t blocks) {
   45|  10.7k|   BOTAN_ASSERT_NOMSG(input.size() % GCM_BS == 0);
  ------------------
  |  |   77|  10.7k|   do {                                                                     \
  |  |   78|  10.7k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  10.7k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 10.7k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  10.7k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 10.7k]
  |  |  ------------------
  ------------------
   46|       |
   47|       |#if defined(BOTAN_HAS_GHASH_AVX512_CLMUL)
   48|       |   if(CPUID::has(CPUID::Feature::AVX512_CLMUL)) {
   49|       |      BOTAN_ASSERT_NOMSG(!m_H_pow.empty());
   50|       |      return ghash_multiply_avx512_clmul(x.data(), m_H_pow.data(), input.data(), blocks);
   51|       |   }
   52|       |#endif
   53|       |
   54|       |#if defined(BOTAN_HAS_GHASH_CLMUL_CPU)
   55|       |   if(CPUID::has(CPUID::Feature::HW_CLMUL)) {
   56|       |      BOTAN_ASSERT_NOMSG(!m_H_pow.empty());
   57|       |      return ghash_multiply_cpu(x.data(), m_H_pow, input.data(), blocks);
   58|       |   }
   59|       |#endif
   60|       |
   61|       |#if defined(BOTAN_HAS_GHASH_CLMUL_VPERM)
   62|       |   if(CPUID::has(CPUID::Feature::SIMD_2X64)) {
   63|       |      return ghash_multiply_vperm(x.data(), m_HM.data(), input.data(), blocks);
   64|       |   }
   65|       |#endif
   66|       |
   67|  10.7k|   ghash_multiply_base(x, m_HM, input, blocks);
   68|  10.7k|}
_ZN5Botan5GHASH19ghash_multiply_baseENSt3__14spanIhLm16EEERKNS1_6vectorImNS_16secure_allocatorImEEEENS2_IKhLm18446744073709551615EEEm:
   73|  10.7k|                                size_t blocks) {
   74|  10.7k|   auto scope = CT::scoped_poison(x);
   75|       |
   76|  10.7k|   auto X = load_be<std::array<uint64_t, 2>>(x);
   77|       |
   78|  10.7k|   BufferSlicer in(input);
   79|  91.3k|   for(size_t b = 0; b != blocks; ++b) {
  ------------------
  |  Branch (79:22): [True: 80.6k, False: 10.7k]
  ------------------
   80|  80.6k|      const auto I = load_be<std::array<uint64_t, 2>>(in.take<GCM_BS>());
   81|  80.6k|      X[0] ^= I[0];
   82|  80.6k|      X[1] ^= I[1];
   83|       |
   84|  80.6k|      std::array<uint64_t, 2> Z{};
   85|       |
   86|  5.24M|      for(size_t i = 0; i != 64; ++i) {
  ------------------
  |  Branch (86:25): [True: 5.16M, False: 80.6k]
  ------------------
   87|  5.16M|         const auto X0MASK = CT::Mask<uint64_t>::expand_top_bit(X[0]);
   88|  5.16M|         const auto X1MASK = CT::Mask<uint64_t>::expand_top_bit(X[1]);
   89|       |
   90|  5.16M|         X[0] <<= 1;
   91|  5.16M|         X[1] <<= 1;
   92|       |
   93|  5.16M|         Z[0] = X0MASK.select(Z[0] ^ HM[4 * i], Z[0]);
   94|  5.16M|         Z[1] = X0MASK.select(Z[1] ^ HM[4 * i + 1], Z[1]);
   95|       |
   96|  5.16M|         Z[0] = X1MASK.select(Z[0] ^ HM[4 * i + 2], Z[0]);
   97|  5.16M|         Z[1] = X1MASK.select(Z[1] ^ HM[4 * i + 3], Z[1]);
   98|  5.16M|      }
   99|       |
  100|  80.6k|      X[0] = Z[0];
  101|  80.6k|      X[1] = Z[1];
  102|  80.6k|   }
  103|       |
  104|  10.7k|   store_be(x, X);
  105|  10.7k|}
_ZNK5Botan5GHASH19has_keying_materialEv:
  107|  10.6k|bool GHASH::has_keying_material() const {
  108|  10.6k|   return !m_HM.empty() || !m_H_pow.empty();
  ------------------
  |  Branch (108:11): [True: 10.6k, False: 0]
  |  Branch (108:28): [True: 0, False: 0]
  ------------------
  109|  10.6k|}
_ZN5Botan5GHASH12key_scheduleENSt3__14spanIKhLm18446744073709551615EEE:
  111|    136|void GHASH::key_schedule(std::span<const uint8_t> key) {
  112|    136|   m_H_ad = {0};
  113|    136|   m_ad_len = 0;
  114|    136|   m_text_len = 0;
  115|       |
  116|    136|   BOTAN_ASSERT_NOMSG(key.size() == GCM_BS);
  ------------------
  |  |   77|    136|   do {                                                                     \
  |  |   78|    136|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|    136|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 136]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|    136|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 136]
  |  |  ------------------
  ------------------
  117|       |
  118|       |#if defined(BOTAN_HAS_GHASH_AVX512_CLMUL)
  119|       |   if(CPUID::has(CPUID::Feature::AVX512_CLMUL)) {
  120|       |      zap(m_HM);
  121|       |      if(m_H_pow.size() != 32) {
  122|       |         m_H_pow.resize(32);
  123|       |      }
  124|       |      ghash_precompute_avx512_clmul(key.data(), m_H_pow.data());
  125|       |      // m_HM left empty
  126|       |      return;
  127|       |   }
  128|       |#endif
  129|       |
  130|       |#if defined(BOTAN_HAS_GHASH_CLMUL_CPU)
  131|       |   if(CPUID::has(CPUID::Feature::HW_CLMUL)) {
  132|       |      zap(m_HM);
  133|       |      ghash_precompute_cpu(key.data(), m_H_pow);
  134|       |      // m_HM left empty
  135|       |      return;
  136|       |   }
  137|       |#endif
  138|       |
  139|    136|   ghash_precompute_base(key.first<GCM_BS>(), m_HM);
  140|    136|}
_ZN5Botan5GHASH21ghash_precompute_baseENSt3__14spanIKhLm16EEERNS1_6vectorImNS_16secure_allocatorImEEEE:
  142|    136|void GHASH::ghash_precompute_base(std::span<const uint8_t, GCM_BS> key, secure_vector<uint64_t>& HM) {
  143|    136|   auto H = load_be<std::array<uint64_t, 2>>(key);
  144|       |
  145|    136|   const uint64_t R = 0xE100000000000000;
  146|       |
  147|    136|   if(HM.size() != 256) {
  ------------------
  |  Branch (147:7): [True: 136, False: 0]
  ------------------
  148|    136|      HM.resize(256);
  149|    136|   }
  150|       |
  151|       |   // precompute the multiples of H
  152|    408|   for(size_t i = 0; i != 2; ++i) {
  ------------------
  |  Branch (152:22): [True: 272, False: 136]
  ------------------
  153|  17.6k|      for(size_t j = 0; j != 64; ++j) {
  ------------------
  |  Branch (153:25): [True: 17.4k, False: 272]
  ------------------
  154|       |         /*
  155|       |         we interleave H^1, H^65, H^2, H^66, H3, H67, H4, H68
  156|       |         to make indexing nicer in the multiplication code
  157|       |         */
  158|  17.4k|         HM[4 * j + 2 * i] = H[0];
  159|  17.4k|         HM[4 * j + 2 * i + 1] = H[1];
  160|       |
  161|       |         // GCM's bit ops are reversed so we carry out of the bottom
  162|  17.4k|         const uint64_t carry = CT::Mask<uint64_t>::expand(H[1] & 1).if_set_return(R);
  163|  17.4k|         H[1] = (H[1] >> 1) | (H[0] << 63);
  164|  17.4k|         H[0] = (H[0] >> 1) ^ carry;
  165|  17.4k|      }
  166|    272|   }
  167|    136|}
_ZN5Botan5GHASH5startENSt3__14spanIKhLm18446744073709551615EEE:
  169|    139|void GHASH::start(std::span<const uint8_t> nonce) {
  170|    139|   BOTAN_ARG_CHECK(nonce.size() == 16, "GHASH requires a 128-bit nonce");
  ------------------
  |  |   35|    139|   do {                                                          \
  |  |   36|    139|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    139|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 139]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    139|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 139]
  |  |  ------------------
  ------------------
  171|    139|   auto& n = m_nonce.emplace();
  172|    139|   copy_mem(n, nonce);
  173|    139|   copy_mem(m_ghash, m_H_ad);
  174|    139|   m_buffer.clear();
  175|    139|   m_text_len = 0;
  176|    139|}
_ZN5Botan5GHASH19set_associated_dataENSt3__14spanIKhLm18446744073709551615EEE:
  178|    139|void GHASH::set_associated_data(std::span<const uint8_t> input) {
  179|    139|   BOTAN_STATE_CHECK(!m_nonce);
  ------------------
  |  |   51|    139|   do {                                                         \
  |  |   52|    139|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|    139|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 139]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|    139|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 139]
  |  |  ------------------
  ------------------
  180|       |
  181|    139|   assert_key_material_set();
  182|    139|   m_H_ad = {0};
  183|    139|   ghash_update(m_H_ad, input);
  184|    139|   ghash_zeropad(m_H_ad);
  185|    139|   m_ad_len = input.size();
  186|    139|}
_ZN5Botan5GHASH6updateENSt3__14spanIKhLm18446744073709551615EEE:
  202|  10.3k|void GHASH::update(std::span<const uint8_t> input) {
  203|  10.3k|   assert_key_material_set();
  204|  10.3k|   BOTAN_STATE_CHECK(m_nonce);
  ------------------
  |  |   51|  10.3k|   do {                                                         \
  |  |   52|  10.3k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|  10.3k|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 10.3k]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|  10.3k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 10.3k]
  |  |  ------------------
  ------------------
  205|  10.3k|   ghash_update(m_ghash, input);
  206|  10.3k|   m_text_len += input.size();
  207|       |
  208|       |   // NIST SP 800-38D limits plaintext/ciphertext to 2^39 - 256 bits
  209|  10.3k|   constexpr uint64_t GHASH_MAX_BYTES = (((static_cast<uint64_t>(1) << 39)) - 256) / 8;
  210|  10.3k|   if(m_text_len > GHASH_MAX_BYTES) {
  ------------------
  |  Branch (210:7): [True: 0, False: 10.3k]
  ------------------
  211|      0|      throw Invalid_State("GCM message length limit exceeded");
  212|      0|   }
  213|  10.3k|}
_ZN5Botan5GHASH5finalENSt3__14spanIhLm18446744073709551615EEE:
  215|    126|void GHASH::final(std::span<uint8_t> mac) {
  216|    126|   BOTAN_ARG_CHECK(!mac.empty() && mac.size() <= GCM_BS, "GHASH output length");
  ------------------
  |  |   35|    126|   do {                                                          \
  |  |   36|    126|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    252|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 126, False: 0]
  |  |  |  Branch (37:12): [True: 126, False: 0]
  |  |  ------------------
  |  |   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]
  |  |  ------------------
  ------------------
  217|    126|   BOTAN_STATE_CHECK(m_nonce);
  ------------------
  |  |   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]
  |  |  ------------------
  ------------------
  218|    126|   assert_key_material_set();
  219|       |
  220|    126|   ghash_zeropad(m_ghash);
  221|    126|   ghash_final_block(m_ghash, m_ad_len, m_text_len);
  222|       |
  223|    126|   xor_buf(mac, std::span{m_ghash}.first(mac.size()), std::span{*m_nonce}.first(mac.size()));
  224|       |
  225|    126|   secure_scrub_memory(m_ghash);
  226|    126|   m_text_len = 0;
  227|    126|   m_nonce.reset();
  228|    126|}
_ZN5Botan5GHASH11reset_stateEv:
  247|    139|void GHASH::reset_state() {
  248|    139|   secure_scrub_memory(m_ghash);
  249|    139|   if(m_nonce) {
  ------------------
  |  Branch (249:7): [True: 3, False: 136]
  ------------------
  250|      3|      secure_scrub_memory(m_nonce.value());
  251|      3|      m_nonce.reset();
  252|      3|   }
  253|    139|   m_buffer.clear();
  254|    139|   m_text_len = 0;
  255|    139|}
_ZN5Botan5GHASH12ghash_updateENSt3__14spanIhLm16EEENS2_IKhLm18446744073709551615EEE:
  257|  10.5k|void GHASH::ghash_update(std::span<uint8_t, GCM_BS> x, std::span<const uint8_t> input) {
  258|  10.5k|   BufferSlicer in(input);
  259|  21.0k|   while(!in.empty()) {
  ------------------
  |  Branch (259:10): [True: 10.5k, False: 10.5k]
  ------------------
  260|  10.5k|      if(const auto one_block = m_buffer.handle_unaligned_data(in)) {
  ------------------
  |  Branch (260:21): [True: 0, False: 10.5k]
  ------------------
  261|      0|         ghash_multiply(x, one_block.value(), 1);
  262|      0|      }
  263|       |
  264|  10.5k|      if(m_buffer.in_alignment()) {
  ------------------
  |  Branch (264:10): [True: 10.3k, False: 237]
  ------------------
  265|  10.3k|         const auto [aligned_data, full_blocks] = m_buffer.aligned_data_to_process(in);
  266|  10.3k|         if(full_blocks > 0) {
  ------------------
  |  Branch (266:13): [True: 10.3k, False: 0]
  ------------------
  267|  10.3k|            ghash_multiply(x, aligned_data, full_blocks);
  268|  10.3k|         }
  269|  10.3k|      }
  270|  10.5k|   }
  271|  10.5k|   BOTAN_ASSERT_NOMSG(in.empty());
  ------------------
  |  |   77|  10.5k|   do {                                                                     \
  |  |   78|  10.5k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  10.5k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 10.5k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  10.5k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 10.5k]
  |  |  ------------------
  ------------------
  272|  10.5k|}
_ZN5Botan5GHASH13ghash_zeropadENSt3__14spanIhLm16EEE:
  274|    265|void GHASH::ghash_zeropad(std::span<uint8_t, GCM_BS> x) {
  275|    265|   if(!m_buffer.in_alignment()) {
  ------------------
  |  Branch (275:7): [True: 237, False: 28]
  ------------------
  276|    237|      m_buffer.fill_up_with_zeros();
  277|    237|      ghash_multiply(x, m_buffer.consume(), 1);
  278|    237|   }
  279|    265|}
_ZN5Botan5GHASH17ghash_final_blockENSt3__14spanIhLm16EEEmm:
  281|    126|void GHASH::ghash_final_block(std::span<uint8_t, GCM_BS> x, uint64_t ad_len, uint64_t text_len) {
  282|    126|   BOTAN_STATE_CHECK(m_buffer.in_alignment());
  ------------------
  |  |   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]
  |  |  ------------------
  ------------------
  283|    126|   const auto final_block = store_be(8 * ad_len, 8 * text_len);
  284|    126|   ghash_multiply(x, final_block, 1);
  285|    126|}

_ZN5Botan21constant_time_compareENSt3__14spanIKhLm18446744073709551615EEES3_:
   17|  1.69k|bool constant_time_compare(std::span<const uint8_t> x, std::span<const uint8_t> y) {
   18|  1.69k|   const auto min_size = CT::Mask<size_t>::is_lte(x.size(), y.size()).select(x.size(), y.size());
   19|  1.69k|   const auto equal_size = CT::Mask<size_t>::is_equal(x.size(), y.size());
   20|  1.69k|   const auto equal_content = CT::Mask<size_t>::expand(CT::is_equal(x.data(), y.data(), min_size));
   21|  1.69k|   return (equal_content & equal_size).as_bool();
   22|  1.69k|}

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

_ZN5Botan2OS14get_process_idEv:
   77|  46.9k|uint32_t OS::get_process_id() {
   78|  46.9k|#if defined(BOTAN_TARGET_OS_HAS_POSIX1)
   79|  46.9k|   return ::getpid();
   80|       |#elif defined(BOTAN_TARGET_OS_HAS_WIN32)
   81|       |   return ::GetCurrentProcessId();
   82|       |#elif defined(BOTAN_TARGET_OS_IS_LLVM) || defined(BOTAN_TARGET_OS_IS_NONE)
   83|       |   return 0;  // truly no meaningful value
   84|       |#else
   85|       |   #error "Missing get_process_id"
   86|       |#endif
   87|  46.9k|}
_ZN5Botan2OS17read_env_variableERNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_17basic_string_viewIcS4_EE:
  449|  2.67k|bool OS::read_env_variable(std::string& value_out, std::string_view name_view) {
  450|  2.67k|   value_out = "";
  451|       |
  452|  2.67k|   if(running_in_privileged_state()) {
  ------------------
  |  Branch (452:7): [True: 0, False: 2.67k]
  ------------------
  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|  2.67k|   const std::string name(name_view);
  474|  2.67k|   if(const char* val = std::getenv(name.c_str())) {
  ------------------
  |  Branch (474:19): [True: 0, False: 2.67k]
  ------------------
  475|      0|      value_out = val;
  476|      0|      return true;
  477|      0|   }
  478|  2.67k|#endif
  479|       |
  480|  2.67k|   return false;
  481|  2.67k|}
os_utils.cpp:_ZN5Botan12_GLOBAL__N_110get_auxvalENSt3__18optionalImEE:
  119|  2.67k|std::optional<unsigned long> get_auxval(std::optional<unsigned long> id) {
  120|  2.67k|   if(id) {
  ------------------
  |  Branch (120:7): [True: 2.67k, False: 0]
  ------------------
  121|  2.67k|#if defined(BOTAN_TARGET_OS_HAS_GETAUXVAL)
  122|  2.67k|      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|  2.67k|   }
  130|       |
  131|      0|   return {};
  132|  2.67k|}
os_utils.cpp:_ZN5Botan12_GLOBAL__N_127running_in_privileged_stateEv:
  153|  2.67k|bool running_in_privileged_state() {
  154|  2.67k|#if defined(AT_SECURE)
  155|  2.67k|   if(auto at_secure = get_auxval(AT_SECURE)) {
  ------------------
  |  Branch (155:12): [True: 2.67k, False: 0]
  ------------------
  156|  2.67k|      return at_secure != 0;
  157|  2.67k|   }
  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|  2.67k|}

_ZN5Botan9parse_u32ENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEEb:
   64|  3.64k|std::optional<uint32_t> parse_u32(std::string_view input, bool require_canonical) {
   65|  3.64k|   return parse_decimal_integer<uint32_t>(input, require_canonical);
   66|  3.64k|}
_ZN5Botan9to_u32bitENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
   76|  3.64k|uint32_t to_u32bit(std::string_view input) {
   77|  3.64k|   if(const auto parsed = parse_u32(input)) {
  ------------------
  |  Branch (77:18): [True: 3.64k, False: 0]
  ------------------
   78|  3.64k|      return *parsed;
   79|  3.64k|   } else {
   80|      0|      throw Invalid_Argument(fmt("Failed to parse input '{}' as a 32-bit integer", input));
   81|      0|   }
   82|  3.64k|}
_ZN5Botan20parse_algorithm_nameENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
   87|  3.29k|std::vector<std::string> parse_algorithm_name(std::string_view scan_name) {
   88|  3.29k|   if(scan_name.find('(') == std::string::npos && scan_name.find(')') == std::string::npos) {
  ------------------
  |  Branch (88:7): [True: 3.29k, False: 0]
  |  Branch (88:51): [True: 3.29k, False: 0]
  ------------------
   89|  3.29k|      return {std::string(scan_name)};
   90|  3.29k|   }
   91|       |
   92|      0|   std::string name(scan_name);
   93|      0|   std::string substring;
   94|      0|   std::vector<std::string> elems;
   95|      0|   size_t level = 0;
   96|       |
   97|      0|   elems.push_back(name.substr(0, name.find('(')));
   98|      0|   name = name.substr(name.find('('));
   99|       |
  100|      0|   for(auto i = name.begin(); i != name.end(); ++i) {
  ------------------
  |  Branch (100:31): [True: 0, False: 0]
  ------------------
  101|      0|      const char c = *i;
  102|       |
  103|      0|      if(c == '(') {
  ------------------
  |  Branch (103:10): [True: 0, False: 0]
  ------------------
  104|      0|         ++level;
  105|      0|      }
  106|      0|      if(c == ')') {
  ------------------
  |  Branch (106:10): [True: 0, False: 0]
  ------------------
  107|      0|         if(level == 1 && i == name.end() - 1) {
  ------------------
  |  Branch (107:13): [True: 0, False: 0]
  |  Branch (107:13): [True: 0, False: 0]
  |  Branch (107:27): [True: 0, False: 0]
  ------------------
  108|      0|            if(elems.size() == 1) {
  ------------------
  |  Branch (108:16): [True: 0, False: 0]
  ------------------
  109|      0|               elems.push_back(substring.substr(1));
  110|      0|            } else {
  111|      0|               elems.push_back(substring);
  112|      0|            }
  113|      0|            return elems;
  114|      0|         }
  115|       |
  116|      0|         if(level == 0 || (level == 1 && i != name.end() - 1)) {
  ------------------
  |  Branch (116:13): [True: 0, False: 0]
  |  Branch (116:13): [True: 0, False: 0]
  |  Branch (116:28): [True: 0, False: 0]
  |  Branch (116:42): [True: 0, False: 0]
  ------------------
  117|      0|            throw Invalid_Algorithm_Name(scan_name);
  118|      0|         }
  119|      0|         --level;
  120|      0|      }
  121|       |
  122|      0|      if(c == ',' && level == 1) {
  ------------------
  |  Branch (122:10): [True: 0, False: 0]
  |  Branch (122:22): [True: 0, False: 0]
  ------------------
  123|      0|         if(elems.size() == 1) {
  ------------------
  |  Branch (123:13): [True: 0, False: 0]
  ------------------
  124|      0|            elems.push_back(substring.substr(1));
  125|      0|         } else {
  126|      0|            elems.push_back(substring);
  127|      0|         }
  128|      0|         substring.clear();
  129|      0|      } else {
  130|      0|         substring += c;
  131|      0|      }
  132|      0|   }
  133|       |
  134|      0|   if(!substring.empty()) {
  ------------------
  |  Branch (134:7): [True: 0, False: 0]
  ------------------
  135|      0|      throw Invalid_Algorithm_Name(scan_name);
  136|      0|   }
  137|       |
  138|      0|   return elems;
  139|      0|}
_ZN5Botan8split_onENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEEc:
  141|  3.29k|std::vector<std::string> split_on(std::string_view str, char delim) {
  142|  3.29k|   std::vector<std::string> elems;
  143|  3.29k|   if(str.empty()) {
  ------------------
  |  Branch (143:7): [True: 0, False: 3.29k]
  ------------------
  144|      0|      return elems;
  145|      0|   }
  146|       |
  147|  3.29k|   std::string substr;
  148|  34.8k|   for(const char c : str) {
  ------------------
  |  Branch (148:21): [True: 34.8k, False: 3.29k]
  ------------------
  149|  34.8k|      if(c == delim) {
  ------------------
  |  Branch (149:10): [True: 3.29k, False: 31.5k]
  ------------------
  150|  3.29k|         if(!substr.empty()) {
  ------------------
  |  Branch (150:13): [True: 3.29k, False: 0]
  ------------------
  151|  3.29k|            elems.push_back(substr);
  152|  3.29k|         }
  153|  3.29k|         substr.clear();
  154|  31.5k|      } else {
  155|  31.5k|         substr += c;
  156|  31.5k|      }
  157|  34.8k|   }
  158|       |
  159|  3.29k|   if(substr.empty()) {
  ------------------
  |  Branch (159:7): [True: 0, False: 3.29k]
  ------------------
  160|      0|      throw Invalid_Argument(fmt("Unable to split string '{}", str));
  161|      0|   }
  162|  3.29k|   elems.push_back(substr);
  163|       |
  164|  3.29k|   return elems;
  165|  3.29k|}
parsing.cpp:_ZN5Botan12_GLOBAL__N_116digit_from_asciiEc:
   23|  10.9k|std::optional<size_t> digit_from_ascii(char c) {
   24|  10.9k|   if(c >= '0' && c <= '9') {
  ------------------
  |  Branch (24:7): [True: 10.9k, False: 0]
  |  Branch (24:19): [True: 10.9k, False: 0]
  ------------------
   25|  10.9k|      return c - '0';
   26|  10.9k|   } else {
   27|      0|      return {};
   28|      0|   }
   29|  10.9k|}
parsing.cpp:_ZN5Botan12_GLOBAL__N_121parse_decimal_integerITkNSt3__117unsigned_integralEjEENS2_8optionalIT_EENS2_17basic_string_viewIcNS2_11char_traitsIcEEEEb:
   32|  3.64k|std::optional<T> parse_decimal_integer(std::string_view input, bool require_canonical) {
   33|  3.64k|   if(input.empty() || input.size() > (std::numeric_limits<T>::digits10 + 1)) {
  ------------------
  |  Branch (33:7): [True: 0, False: 3.64k]
  |  Branch (33:24): [True: 0, False: 3.64k]
  ------------------
   34|      0|      return {};
   35|      0|   }
   36|       |
   37|       |   // The canonical encoding of zero is "0"; no other value starts with a zero
   38|  3.64k|   if(require_canonical && input.size() > 1 && input.front() == '0') {
  ------------------
  |  Branch (38:7): [True: 0, False: 3.64k]
  |  Branch (38:28): [True: 0, False: 0]
  |  Branch (38:48): [True: 0, False: 0]
  ------------------
   39|      0|      return {};
   40|      0|   }
   41|       |
   42|  3.64k|   T accum = 0;
   43|       |
   44|  10.9k|   for(const char c : input) {
  ------------------
  |  Branch (44:21): [True: 10.9k, False: 3.64k]
  ------------------
   45|  10.9k|      if(const auto digit = digit_from_ascii(c)) {
  ------------------
  |  Branch (45:21): [True: 10.9k, False: 0]
  ------------------
   46|  10.9k|         if(accum > (std::numeric_limits<T>::max() - static_cast<T>(*digit)) / 10) {
  ------------------
  |  Branch (46:13): [True: 0, False: 10.9k]
  ------------------
   47|      0|            return {};
   48|      0|         }
   49|  10.9k|         accum = accum * 10 + static_cast<T>(*digit);
   50|  10.9k|      } else {
   51|      0|         return {};
   52|      0|      }
   53|  10.9k|   }
   54|       |
   55|  3.64k|   return accum;
   56|  3.64k|}

_ZN5Botan13poly_double_nEPhPKhm:
   81|  3.81k|void poly_double_n(uint8_t out[], const uint8_t in[], size_t n) {
   82|  3.81k|   switch(n) {
   83|    816|      case 8:
  ------------------
  |  Branch (83:7): [True: 816, False: 3.00k]
  ------------------
   84|    816|         return poly_double<1, MinWeightPolynomial::P64>(out, in);
   85|  3.00k|      case 16:
  ------------------
  |  Branch (85:7): [True: 3.00k, False: 816]
  ------------------
   86|  3.00k|         return poly_double<2, MinWeightPolynomial::P128>(out, in);
   87|      0|      case 24:
  ------------------
  |  Branch (87:7): [True: 0, False: 3.81k]
  ------------------
   88|      0|         return poly_double<3, MinWeightPolynomial::P192>(out, in);
   89|      0|      case 32:
  ------------------
  |  Branch (89:7): [True: 0, False: 3.81k]
  ------------------
   90|      0|         return poly_double<4, MinWeightPolynomial::P256>(out, in);
   91|      0|      case 64:
  ------------------
  |  Branch (91:7): [True: 0, False: 3.81k]
  ------------------
   92|      0|         return poly_double<8, MinWeightPolynomial::P512>(out, in);
   93|      0|      case 128:
  ------------------
  |  Branch (93:7): [True: 0, False: 3.81k]
  ------------------
   94|      0|         return poly_double<16, MinWeightPolynomial::P1024>(out, in);
   95|      0|      default:
  ------------------
  |  Branch (95:7): [True: 0, False: 3.81k]
  ------------------
   96|      0|         throw Invalid_Argument("Unsupported size for poly_double_n");
   97|  3.81k|   }
   98|  3.81k|}
poly_dbl.cpp:_ZN5Botan12_GLOBAL__N_111poly_doubleILm1ELNS0_19MinWeightPolynomialE27EEEvPhPKh:
   44|    816|void poly_double(uint8_t out[], const uint8_t in[]) {
   45|    816|   uint64_t W[LIMBS];
   46|    816|   load_be(W, in, LIMBS);
   47|       |
   48|    816|   const uint64_t carry = return_carry<P>(W[0]);
   49|       |
   50|    816|   if constexpr(LIMBS > 0) {
   51|    816|      for(size_t i = 0; i != LIMBS - 1; ++i) {
  ------------------
  |  Branch (51:25): [True: 0, False: 816]
  ------------------
   52|      0|         W[i] = (W[i] << 1) ^ (W[i + 1] >> 63);
   53|      0|      }
   54|    816|   }
   55|       |
   56|    816|   W[LIMBS - 1] = (W[LIMBS - 1] << 1) ^ carry;
   57|       |
   58|    816|   copy_out_be(std::span(out, LIMBS * 8), W);
   59|    816|}
poly_dbl.cpp:_ZN5Botan12_GLOBAL__N_112return_carryILNS0_19MinWeightPolynomialE27EEEmm:
   39|    816|inline uint64_t return_carry(uint64_t c) {
   40|    816|   return CT::Mask<uint64_t>::expand_top_bit(c).if_set_return(static_cast<uint64_t>(P));
   41|    816|}
poly_dbl.cpp:_ZN5Botan12_GLOBAL__N_111poly_doubleILm2ELNS0_19MinWeightPolynomialE135EEEvPhPKh:
   44|  3.00k|void poly_double(uint8_t out[], const uint8_t in[]) {
   45|  3.00k|   uint64_t W[LIMBS];
   46|  3.00k|   load_be(W, in, LIMBS);
   47|       |
   48|  3.00k|   const uint64_t carry = return_carry<P>(W[0]);
   49|       |
   50|  3.00k|   if constexpr(LIMBS > 0) {
   51|  6.00k|      for(size_t i = 0; i != LIMBS - 1; ++i) {
  ------------------
  |  Branch (51:25): [True: 3.00k, False: 3.00k]
  ------------------
   52|  3.00k|         W[i] = (W[i] << 1) ^ (W[i + 1] >> 63);
   53|  3.00k|      }
   54|  3.00k|   }
   55|       |
   56|  3.00k|   W[LIMBS - 1] = (W[LIMBS - 1] << 1) ^ carry;
   57|       |
   58|  3.00k|   copy_out_be(std::span(out, LIMBS * 8), W);
   59|  3.00k|}
poly_dbl.cpp:_ZN5Botan12_GLOBAL__N_112return_carryILNS0_19MinWeightPolynomialE135EEEmm:
   39|  3.00k|inline uint64_t return_carry(uint64_t c) {
   40|  3.00k|   return CT::Mask<uint64_t>::expand_top_bit(c).if_set_return(static_cast<uint64_t>(P));
   41|  3.00k|}

_ZN5Botan18prefetch_array_rawEmPKv:
   14|  2.88M|uint64_t prefetch_array_raw(size_t bytes, const void* arrayv) noexcept {
   15|  2.88M|#if defined(__cpp_lib_hardware_interference_size)
   16|  2.88M|   constexpr size_t cache_line_size = std::hardware_destructive_interference_size;
   17|       |#else
   18|       |   // We arbitrarily use a 64 byte cache line, which is by far the most
   19|       |   // common size.
   20|       |   //
   21|       |   // Runtime detection adds too much overhead to this function.
   22|       |   constexpr size_t cache_line_size = 64;
   23|       |#endif
   24|       |
   25|  2.88M|   const uint8_t* array = static_cast<const uint8_t*>(arrayv);
   26|       |
   27|  2.88M|   volatile uint64_t combiner = 1;
   28|       |
   29|  14.4M|   for(size_t idx = 0; idx < bytes; idx += cache_line_size) {
  ------------------
  |  Branch (29:24): [True: 11.5M, False: 2.88M]
  ------------------
   30|  11.5M|#if BOTAN_COMPILER_HAS_BUILTIN(__builtin_prefetch)
   31|       |      // we have no way of knowing if the compiler will emit anything here
   32|  11.5M|      __builtin_prefetch(&array[idx]);
   33|  11.5M|#endif
   34|       |
   35|  11.5M|      combiner = combiner | array[idx];
   36|  11.5M|   }
   37|       |
   38|       |   /*
   39|       |   * The combiner variable is initialized with 1, and we accumulate using OR, so
   40|       |   * now combiner must be a value other than zero. This being the case we will
   41|       |   * always return zero here. Hopefully the compiler will not figure this out.
   42|       |   */
   43|  2.88M|   return ct_is_zero(combiner);
   44|  2.88M|}

_ZN5Botan9SCAN_NameC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   61|   122k|SCAN_Name::SCAN_Name(std::string_view algo_spec) : m_orig_algo_spec(algo_spec) {
   62|   122k|   if(algo_spec.empty()) {
  ------------------
  |  Branch (62:7): [True: 0, False: 122k]
  ------------------
   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|   122k|   if(algo_spec.find_first_of("(),/") == std::string_view::npos) {
  ------------------
  |  Branch (69:7): [True: 8.07k, False: 114k]
  ------------------
   70|  8.07k|      m_alg_name = std::string(algo_spec);
   71|  8.07k|      return;
   72|  8.07k|   }
   73|       |
   74|   114k|   std::vector<std::pair<size_t, std::string>> name;
   75|   114k|   size_t level = 0;
   76|   114k|   std::pair<size_t, std::string> accum = std::make_pair(level, "");
   77|       |
   78|   114k|   bool expect_token = true;
   79|       |
   80|  1.91M|   for(const char c : algo_spec) {
  ------------------
  |  Branch (80:21): [True: 1.91M, False: 114k]
  ------------------
   81|  1.91M|      if(c == '/' || c == ',' || c == '(' || c == ')') {
  ------------------
  |  Branch (81:10): [True: 3.29k, False: 1.90M]
  |  Branch (81:22): [True: 4.33k, False: 1.90M]
  |  Branch (81:34): [True: 112k, False: 1.79M]
  |  Branch (81:46): [True: 112k, False: 1.67M]
  ------------------
   82|   233k|         if(c == '(') {
  ------------------
  |  Branch (82:13): [True: 112k, False: 120k]
  ------------------
   83|   112k|            ++level;
   84|   120k|         } else if(c == ')') {
  ------------------
  |  Branch (84:20): [True: 112k, False: 7.63k]
  ------------------
   85|   112k|            if(level == 0) {
  ------------------
  |  Branch (85:16): [True: 0, False: 112k]
  ------------------
   86|      0|               throw Invalid_Algorithm_Name(m_orig_algo_spec);
   87|      0|            }
   88|   112k|            --level;
   89|   112k|         }
   90|       |
   91|   233k|         if(c == '/' && level > 0) {
  ------------------
  |  Branch (91:13): [True: 3.29k, False: 230k]
  |  Branch (91:25): [True: 0, False: 3.29k]
  ------------------
   92|      0|            accum.second.push_back(c);
   93|      0|            expect_token = false;
   94|   233k|         } else {
   95|   233k|            if(expect_token) {
  ------------------
  |  Branch (95:16): [True: 0, False: 233k]
  ------------------
   96|      0|               throw Invalid_Algorithm_Name(m_orig_algo_spec);
   97|      0|            }
   98|   233k|            if(!accum.second.empty()) {
  ------------------
  |  Branch (98:16): [True: 231k, False: 1.80k]
  ------------------
   99|   231k|               name.push_back(accum);
  100|   231k|            }
  101|   233k|            accum = std::make_pair(level, "");
  102|   233k|            expect_token = (c != ')');
  103|   233k|         }
  104|  1.67M|      } else {
  105|  1.67M|         accum.second.push_back(c);
  106|  1.67M|         expect_token = false;
  107|  1.67M|      }
  108|  1.91M|   }
  109|       |
  110|   114k|   if(!accum.second.empty()) {
  ------------------
  |  Branch (110:7): [True: 3.29k, False: 111k]
  ------------------
  111|  3.29k|      name.push_back(accum);
  112|  3.29k|   }
  113|       |
  114|   114k|   if(level != 0) {
  ------------------
  |  Branch (114:7): [True: 0, False: 114k]
  ------------------
  115|      0|      throw Invalid_Algorithm_Name(m_orig_algo_spec);
  116|      0|   }
  117|       |
  118|   114k|   if(expect_token) {
  ------------------
  |  Branch (118:7): [True: 0, False: 114k]
  ------------------
  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|   114k|   if(name.empty()) {
  ------------------
  |  Branch (123:7): [True: 0, False: 114k]
  ------------------
  124|      0|      throw Invalid_Algorithm_Name(m_orig_algo_spec);
  125|      0|   }
  126|       |
  127|   114k|   m_alg_name = name[0].second;
  128|       |
  129|   114k|   bool in_modes = false;
  130|       |
  131|   235k|   for(size_t i = 1; i != name.size(); ++i) {
  ------------------
  |  Branch (131:22): [True: 120k, False: 114k]
  ------------------
  132|   120k|      if(name[i].first == 0) {
  ------------------
  |  Branch (132:10): [True: 3.29k, False: 117k]
  ------------------
  133|  3.29k|         m_mode_info.push_back(make_arg(name, i));
  134|  3.29k|         in_modes = true;
  135|   117k|      } else if(name[i].first == 1 && !in_modes) {
  ------------------
  |  Branch (135:17): [True: 115k, False: 1.80k]
  |  Branch (135:39): [True: 115k, False: 0]
  ------------------
  136|   115k|         m_args.push_back(make_arg(name, i));
  137|   115k|      }
  138|   120k|   }
  139|   114k|}
_ZNK5Botan9SCAN_Name3argEm:
  141|   102k|std::string SCAN_Name::arg(size_t i) const {
  142|   102k|   if(i >= arg_count()) {
  ------------------
  |  Branch (142:7): [True: 0, False: 102k]
  ------------------
  143|      0|      throw Invalid_Argument("SCAN_Name::arg " + std::to_string(i) + " out of range for '" + to_string() + "'");
  144|      0|   }
  145|   102k|   return m_args[i];
  146|   102k|}
_ZNK5Botan9SCAN_Name14arg_as_integerEmm:
  155|  7.51k|size_t SCAN_Name::arg_as_integer(size_t i, size_t def_value) const {
  156|  7.51k|   if(i >= arg_count()) {
  ------------------
  |  Branch (156:7): [True: 3.86k, False: 3.64k]
  ------------------
  157|  3.86k|      return def_value;
  158|  3.86k|   }
  159|  3.64k|   return to_u32bit(m_args[i]);
  160|  7.51k|}
scan_name.cpp:_ZN5Botan12_GLOBAL__N_18make_argERKNSt3__16vectorINS1_4pairImNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS7_ISA_EEEEm:
   18|   118k|std::string make_arg(const std::vector<std::pair<size_t, std::string>>& name, size_t start) {
   19|   118k|   std::string output = name[start].second;
   20|   118k|   size_t level = name[start].first;
   21|       |
   22|   118k|   size_t paren_depth = 0;
   23|       |
   24|   120k|   for(size_t i = start + 1; i != name.size(); ++i) {
  ------------------
  |  Branch (24:30): [True: 6.14k, False: 114k]
  ------------------
   25|  6.14k|      if(name[i].first <= name[start].first) {
  ------------------
  |  Branch (25:10): [True: 4.33k, False: 1.80k]
  ------------------
   26|  4.33k|         break;
   27|  4.33k|      }
   28|       |
   29|  1.80k|      if(name[i].first > level) {
  ------------------
  |  Branch (29:10): [True: 1.80k, False: 0]
  ------------------
   30|  3.60k|         for(size_t j = level; j < name[i].first; j++) {
  ------------------
  |  Branch (30:32): [True: 1.80k, False: 1.80k]
  ------------------
   31|  1.80k|            output += "(";
   32|  1.80k|            ++paren_depth;
   33|  1.80k|         }
   34|  1.80k|         output += name[i].second;
   35|  1.80k|      } else if(name[i].first < level) {
  ------------------
  |  Branch (35:17): [True: 0, False: 0]
  ------------------
   36|      0|         for(size_t j = name[i].first; j < level; j++) {
  ------------------
  |  Branch (36:40): [True: 0, False: 0]
  ------------------
   37|      0|            output += ")";
   38|      0|            BOTAN_ASSERT_NOMSG(paren_depth != 0);
  ------------------
  |  |   77|      0|   do {                                                                     \
  |  |   78|      0|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|      0|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|      0|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
   39|      0|            --paren_depth;
   40|      0|         }
   41|      0|         output += "," + name[i].second;
   42|      0|      } else {
   43|      0|         if(output[output.size() - 1] != '(') {
  ------------------
  |  Branch (43:13): [True: 0, False: 0]
  ------------------
   44|      0|            output += ",";
   45|      0|         }
   46|      0|         output += name[i].second;
   47|      0|      }
   48|       |
   49|  1.80k|      level = name[i].first;
   50|  1.80k|   }
   51|       |
   52|   120k|   for(size_t i = 0; i != paren_depth; ++i) {
  ------------------
  |  Branch (52:22): [True: 1.80k, False: 118k]
  ------------------
   53|  1.80k|      output += ")";
   54|  1.80k|   }
   55|       |
   56|   118k|   return output;
   57|   118k|}

_ZN3rnp13is_blank_lineEPKcm:
   71|  35.5k|{
   72|  40.8k|    for (size_t i = 0; i < len && line[i]; i++) {
  ------------------
  |  Branch (72:24): [True: 40.8k, False: 18]
  |  Branch (72:35): [True: 40.8k, False: 37]
  ------------------
   73|  40.8k|        if (line[i] != ' ' && line[i] != '\t' && line[i] != '\r') {
  ------------------
  |  Branch (73:13): [True: 37.2k, False: 3.55k]
  |  Branch (73:31): [True: 35.7k, False: 1.49k]
  |  Branch (73:50): [True: 35.4k, False: 290]
  ------------------
   74|  35.4k|            return false;
   75|  35.4k|        }
   76|  40.8k|    }
   77|     55|    return true;
   78|  35.5k|}
_ZN3rnp11str_case_eqEPKcS1_:
   82|   133k|{
   83|   231k|    while (*s1 && *s2) {
  ------------------
  |  Branch (83:12): [True: 223k, False: 7.36k]
  |  Branch (83:19): [True: 223k, False: 326]
  ------------------
   84|   223k|        if (std::tolower(*s1) != std::tolower(*s2)) {
  ------------------
  |  Branch (84:13): [True: 125k, False: 97.7k]
  ------------------
   85|   125k|            return false;
   86|   125k|        }
   87|  97.7k|        s1++;
   88|  97.7k|        s2++;
   89|  97.7k|    }
   90|  7.69k|    return !*s1 && !*s2;
  ------------------
  |  Branch (90:12): [True: 7.36k, False: 326]
  |  Branch (90:20): [True: 2.94k, False: 4.42k]
  ------------------
   91|   133k|}
_ZN3rnp6is_hexERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE:
  113|   252k|{
  114|  15.2M|    for (size_t i = hex_prefix_len(s); i < s.length(); i++) {
  ------------------
  |  Branch (114:40): [True: 15.0M, False: 252k]
  ------------------
  115|  15.0M|        auto &ch = s[i];
  116|  15.0M|        if ((ch >= '0') && (ch <= '9')) {
  ------------------
  |  Branch (116:13): [True: 15.0M, False: 0]
  |  Branch (116:28): [True: 8.17M, False: 6.87M]
  ------------------
  117|  8.17M|            continue;
  118|  8.17M|        }
  119|  6.87M|        if ((ch >= 'a') && (ch <= 'f')) {
  ------------------
  |  Branch (119:13): [True: 4.90M, False: 1.96M]
  |  Branch (119:28): [True: 4.90M, False: 0]
  ------------------
  120|  4.90M|            continue;
  121|  4.90M|        }
  122|  1.96M|        if ((ch >= 'A') && (ch <= 'F')) {
  ------------------
  |  Branch (122:13): [True: 1.96M, False: 0]
  |  Branch (122:28): [True: 1.96M, False: 0]
  ------------------
  123|  1.96M|            continue;
  124|  1.96M|        }
  125|      0|        if ((ch == ' ') || (ch == '\t')) {
  ------------------
  |  Branch (125:13): [True: 0, False: 0]
  |  Branch (125:28): [True: 0, False: 0]
  ------------------
  126|      0|            continue;
  127|      0|        }
  128|      0|        return false;
  129|      0|    }
  130|   252k|    return true;
  131|   252k|}
str-utils.cpp:_ZN3rnpL14hex_prefix_lenERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE:
  104|   252k|{
  105|   252k|    if ((str.length() >= 2) && (str[0] == '0') && ((str[1] == 'x') || (str[1] == 'X'))) {
  ------------------
  |  Branch (105:9): [True: 252k, False: 0]
  |  Branch (105:32): [True: 252k, False: 0]
  |  Branch (105:52): [True: 252k, False: 0]
  |  Branch (105:71): [True: 0, False: 0]
  ------------------
  106|   252k|        return 2;
  107|   252k|    }
  108|      0|    return 0;
  109|   252k|}

LLVMFuzzerTestOneInput:
  145|  15.6k|{
  146|  15.6k|    if (size < 2) {
  ------------------
  |  Branch (146:9): [True: 1, False: 15.6k]
  ------------------
  147|      1|        return 0;
  148|      1|    }
  149|       |
  150|  15.6k|    rnp_ffi_t ffi = NULL;
  151|  15.6k|    if (rnp_ffi_create(&ffi, "GPG", "GPG")) {
  ------------------
  |  Branch (151:9): [True: 0, False: 15.6k]
  ------------------
  152|      0|        return 0;
  153|      0|    }
  154|       |
  155|  15.6k|    const uint8_t *payload = data + 1;
  156|  15.6k|    size_t         payload_size = size - 1;
  157|       |
  158|  15.6k|    switch (data[0] % 4) {
  159|  4.02k|    case 0:
  ------------------
  |  Branch (159:5): [True: 4.02k, False: 11.6k]
  ------------------
  160|       |        /* key import (strict + permissive) */
  161|  4.02k|        ffi_ops_import_keys(ffi, payload, payload_size);
  162|  4.02k|        break;
  163|  1.84k|    case 1:
  ------------------
  |  Branch (163:5): [True: 1.84k, False: 13.8k]
  ------------------
  164|       |        /* message verification */
  165|  1.84k|        ffi_ops_verify(ffi, payload, payload_size);
  166|  1.84k|        break;
  167|  2.74k|    case 2:
  ------------------
  |  Branch (167:5): [True: 2.74k, False: 12.9k]
  ------------------
  168|       |        /* decryption with a fuzzed password */
  169|  2.74k|        ffi_ops_decrypt(ffi, payload, payload_size);
  170|  2.74k|        break;
  171|  7.04k|    default:
  ------------------
  |  Branch (171:5): [True: 7.04k, False: 8.61k]
  ------------------
  172|       |        /* op sequence: import keys, then verify a message over the same key store */
  173|  7.04k|        ffi_ops_import_keys(ffi, payload, payload_size);
  174|  7.04k|        ffi_ops_verify(ffi, payload, payload_size);
  175|  7.04k|        break;
  176|  15.6k|    }
  177|       |
  178|  15.6k|    rnp_ffi_destroy(ffi);
  179|  15.6k|    return 0;
  180|  15.6k|}
ffi_ops.c:ffi_ops_import_keys:
   68|  11.0k|{
   69|  11.0k|    rnp_input_t input = NULL;
   70|  11.0k|    char *      results = NULL;
   71|       |
   72|  11.0k|    if (rnp_input_from_memory(&input, data, size, false)) {
  ------------------
  |  Branch (72:9): [True: 0, False: 11.0k]
  ------------------
   73|      0|        return;
   74|      0|    }
   75|  11.0k|    (void) rnp_import_keys(
   76|  11.0k|      ffi, input, RNP_LOAD_SAVE_PUBLIC_KEYS | RNP_LOAD_SAVE_SECRET_KEYS, &results);
  ------------------
  |  |   80|  11.0k|#define RNP_LOAD_SAVE_PUBLIC_KEYS (1U << 0)
  ------------------
                    ffi, input, RNP_LOAD_SAVE_PUBLIC_KEYS | RNP_LOAD_SAVE_SECRET_KEYS, &results);
  ------------------
  |  |   81|  11.0k|#define RNP_LOAD_SAVE_SECRET_KEYS (1U << 1)
  ------------------
   77|  11.0k|    rnp_buffer_destroy(results);
   78|  11.0k|    rnp_input_destroy(input);
   79|       |
   80|       |    /* permissive import over the same key store */
   81|  11.0k|    results = NULL;
   82|  11.0k|    if (!rnp_input_from_memory(&input, data, size, false)) {
  ------------------
  |  Branch (82:9): [True: 11.0k, False: 0]
  ------------------
   83|  11.0k|        (void) rnp_import_keys(ffi,
   84|  11.0k|                               input,
   85|  11.0k|                               RNP_LOAD_SAVE_PUBLIC_KEYS | RNP_LOAD_SAVE_SECRET_KEYS |
  ------------------
  |  |   80|  11.0k|#define RNP_LOAD_SAVE_PUBLIC_KEYS (1U << 0)
  ------------------
                                             RNP_LOAD_SAVE_PUBLIC_KEYS | RNP_LOAD_SAVE_SECRET_KEYS |
  ------------------
  |  |   81|  11.0k|#define RNP_LOAD_SAVE_SECRET_KEYS (1U << 1)
  ------------------
   86|  11.0k|                                 RNP_LOAD_SAVE_PERMISSIVE,
  ------------------
  |  |   82|  11.0k|#define RNP_LOAD_SAVE_PERMISSIVE (1U << 8)
  ------------------
   87|  11.0k|                               &results);
   88|  11.0k|    }
   89|  11.0k|    rnp_buffer_destroy(results);
   90|  11.0k|    rnp_input_destroy(input);
   91|  11.0k|}
ffi_ops.c:ffi_ops_verify:
   95|  11.6k|{
   96|  11.6k|    rnp_input_t     input = NULL;
   97|  11.6k|    rnp_output_t    output = NULL;
   98|  11.6k|    rnp_op_verify_t op = NULL;
   99|       |
  100|  11.6k|    if (rnp_input_from_memory(&input, data, size, false)) {
  ------------------
  |  Branch (100:9): [True: 0, False: 11.6k]
  ------------------
  101|      0|        return;
  102|      0|    }
  103|  11.6k|    if (!rnp_output_to_null(&output) && !rnp_op_verify_create(&op, ffi, input, output)) {
  ------------------
  |  Branch (103:9): [True: 11.6k, False: 0]
  |  Branch (103:41): [True: 11.6k, False: 0]
  ------------------
  104|  11.6k|        (void) rnp_op_verify_execute(op);
  105|  11.6k|        rnp_op_verify_destroy(op);
  106|  11.6k|    }
  107|  11.6k|    rnp_output_destroy(output);
  108|  11.6k|    rnp_input_destroy(input);
  109|  11.6k|}
ffi_ops.c:ffi_ops_decrypt:
  113|  2.74k|{
  114|  2.74k|    if (!size) {
  ------------------
  |  Branch (114:9): [True: 0, False: 2.74k]
  ------------------
  115|      0|        return;
  116|      0|    }
  117|       |    /* first payload byte: password length (clamped), remainder: password then message */
  118|  2.74k|    size_t pwdlen = data[0];
  119|  2.74k|    if (pwdlen > MAX_PASSWORD_LEN) {
  ------------------
  |  |   36|  2.74k|#define MAX_PASSWORD_LEN 64
  ------------------
  |  Branch (119:9): [True: 462, False: 2.28k]
  ------------------
  120|    462|        pwdlen = MAX_PASSWORD_LEN;
  ------------------
  |  |   36|    462|#define MAX_PASSWORD_LEN 64
  ------------------
  121|    462|    }
  122|  2.74k|    if (size < 1 + pwdlen) {
  ------------------
  |  Branch (122:9): [True: 9, False: 2.73k]
  ------------------
  123|      9|        pwdlen = size - 1;
  124|      9|    }
  125|  2.74k|    memcpy(ffi_ops_password, data + 1, pwdlen);
  126|  2.74k|    ffi_ops_password_len = pwdlen;
  127|  2.74k|    ffi_ops_password[pwdlen] = '\0';
  128|       |
  129|  2.74k|    if (rnp_ffi_set_pass_provider(ffi, ffi_ops_password_provider, NULL)) {
  ------------------
  |  Branch (129:9): [True: 0, False: 2.74k]
  ------------------
  130|      0|        return;
  131|      0|    }
  132|       |    /* decryption of signed/encrypted input runs through the verify operation,
  133|       |     * which consults the password provider for PKESK / symmetric decryption */
  134|  2.74k|    ffi_ops_verify(ffi, data + 1 + pwdlen, size - 1 - pwdlen);
  135|  2.74k|}
ffi_ops.c:ffi_ops_password_provider:
   49|  3.89k|{
   50|  3.89k|    (void) ffi;
   51|  3.89k|    (void) app_ctx;
   52|  3.89k|    (void) key;
   53|  3.89k|    (void) key_info;
   54|  3.89k|    if (!buf || !buf_len) {
  ------------------
  |  Branch (54:9): [True: 0, False: 3.89k]
  |  Branch (54:17): [True: 0, False: 3.89k]
  ------------------
   55|      0|        return false;
   56|      0|    }
   57|  3.89k|    size_t len = ffi_ops_password_len;
   58|  3.89k|    if (len > buf_len - 1) {
  ------------------
  |  Branch (58:9): [True: 0, False: 3.89k]
  ------------------
   59|      0|        len = buf_len - 1;
   60|      0|    }
   61|  3.89k|    memcpy(buf, ffi_ops_password, len);
   62|  3.89k|    buf[len] = '\0';
   63|       |    return true;
   64|  3.89k|}

_ZN3rnp12backend_initEPPv:
  192|  15.6k|{
  193|  15.6k|    return true;
  194|  15.6k|}
_ZN3rnp14backend_finishEPv:
  198|  15.6k|{
  199|       |    // Do nothing
  200|  15.6k|}

_ZN3rnp2bnC2ERKN3pgp3mpiE:
   93|  11.2k|    bn(const pgp::mpi &val) : bn(val.data(), val.size()){};
_ZN3rnp2bnC2EPKhm:
   83|  48.1k|    {
   84|  48.1k|        botan_mp_init(&bn_);
   85|  48.1k|        if (bn_ && botan_mp_from_bin(bn_, val, len)) {
  ------------------
  |  Branch (85:13): [True: 48.1k, False: 0]
  |  Branch (85:20): [True: 0, False: 48.1k]
  ------------------
   86|       |            /* LCOV_EXCL_START */
   87|      0|            botan_mp_destroy(bn_);
   88|      0|            bn_ = NULL;
   89|       |            /* LCOV_EXCL_END */
   90|      0|        }
   91|  48.1k|    }
_ZNK3rnp2bncvbEv:
  103|  48.1k|    {
  104|  48.1k|        return bn_;
  105|  48.1k|    }
_ZN3rnp5botan6PubkeyC2Ev:
  149|  27.7k|    Pubkey() : key_(NULL){};
_ZN3rnp5botan6Pubkey3getEv:
  160|  55.1k|    {
  161|  55.1k|        return key_;
  162|  55.1k|    };
_ZN3rnp2bn3getEv:
  109|  48.1k|    {
  110|  48.1k|        return bn_;
  111|  48.1k|    }
_ZN3rnp2bnD2Ev:
   98|  48.1k|    {
   99|  48.1k|        botan_mp_destroy(bn_);
  100|  48.1k|    }
_ZN3rnp5botan6PubkeyD2Ev:
  154|  27.7k|    {
  155|  27.7k|        botan_pubkey_destroy(key_);
  156|  27.7k|    }
_ZN3rnp5botan2op6VerifyC2Ev:
  236|  23.0k|    Verify() : op_(NULL){};
_ZN3rnp5botan2op6Verify3getEv:
  247|  69.1k|    {
  248|  69.1k|        return op_;
  249|  69.1k|    };
_ZN3rnp5botan2op6VerifyD2Ev:
  241|  23.0k|    {
  242|  23.0k|        botan_pk_op_verify_destroy(op_);
  243|  23.0k|    }

_ZNK27pgp_dilithium_private_key_t5paramEv:
   53|     31|    {
   54|     31|        return dilithium_param_;
   55|     31|    }
_ZNK27pgp_dilithium_private_key_t11get_encodedEv:
   60|     31|    {
   61|     31|        return key_encoded_.unlock();
   62|     31|    };
_ZNK26pgp_dilithium_public_key_t11get_encodedEv:
   95|     70|    {
   96|     70|        return key_encoded_;
   97|     70|    };
_ZN26pgp_dilithium_public_key_tC2Ev:
   77|    972|    pgp_dilithium_public_key_t() = default;

_ZN26pgp_dilithium_public_key_tC2EPKhm21dilithium_parameter_e:
   35|     96|    : key_encoded_(key_encoded, key_encoded + key_encoded_len), dilithium_param_(param),
   36|     96|      is_initialized_(true)
   37|     96|{
   38|     96|}
_ZN27pgp_dilithium_private_key_tC2EPKhm21dilithium_parameter_e:
   49|     13|    : key_encoded_(key_encoded, key_encoded + key_encoded_len), dilithium_param_(param),
   50|     13|      is_initialized_(true)
   51|     13|{
   52|     13|}
_ZN27pgp_dilithium_private_key_tC2ERKNSt3__16vectorIhNS0_9allocatorIhEEEE21dilithium_parameter_e:
   56|     31|    : key_encoded_(key_encoded), dilithium_param_(param), is_initialized_(true)
   57|     31|{
   58|     31|}
_Z22dilithium_privkey_sizev:
   62|     34|{
   63|       |    /* seed format */
   64|     34|    return 32;
   65|     34|}
_Z21dilithium_pubkey_size21dilithium_parameter_e:
   69|    550|{
   70|    550|    switch (parameter) {
   71|    173|    case dilithium_L3:
  ------------------
  |  Branch (71:5): [True: 173, False: 377]
  ------------------
   72|    173|        return 1952;
   73|    377|    case dilithium_L5:
  ------------------
  |  Branch (73:5): [True: 377, False: 173]
  ------------------
   74|    377|        return 2592;
   75|      0|    default:
  ------------------
  |  Branch (75:5): [True: 0, False: 550]
  ------------------
   76|      0|        RNP_LOG("invalid parameter given");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   77|      0|        throw rnp::rnp_exception(RNP_ERROR_BAD_PARAMETERS);
   78|    550|    }
   79|    550|}
_Z24dilithium_signature_size21dilithium_parameter_e:
   83|    288|{
   84|    288|    switch (parameter) {
   85|    162|    case dilithium_L3:
  ------------------
  |  Branch (85:5): [True: 162, False: 126]
  ------------------
   86|    162|        return 3309;
   87|    126|    case dilithium_L5:
  ------------------
  |  Branch (87:5): [True: 126, False: 162]
  ------------------
   88|    126|        return 4627;
   89|      0|    default:
  ------------------
  |  Branch (89:5): [True: 0, False: 288]
  ------------------
   90|      0|        RNP_LOG("invalid parameter given");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   91|      0|        throw rnp::rnp_exception(RNP_ERROR_BAD_PARAMETERS);
   92|    288|    }
   93|    288|}

_ZN35pgp_dilithium_exdsa_composite_key_tD2Ev:
   32|  2.74k|{
   33|  2.74k|}
_ZNK35pgp_dilithium_exdsa_composite_key_t20initialized_or_throwEv:
   37|     70|{
   38|     70|    if (!is_initialized()) {
  ------------------
  |  Branch (38:9): [True: 0, False: 70]
  ------------------
   39|      0|        RNP_LOG("Trying to use uninitialized mldsa-ecdsa/eddsa key");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   40|      0|        throw rnp::rnp_exception(RNP_ERROR_BAD_STATE);
   41|      0|    }
   42|     70|}
_ZN35pgp_dilithium_exdsa_composite_key_t24exdsa_curve_privkey_sizeE11pgp_curve_t:
   73|     47|{
   74|     47|    switch (curve) {
   75|     24|    case PGP_CURVE_ED25519:
  ------------------
  |  Branch (75:5): [True: 24, False: 23]
  ------------------
   76|     24|        return 32;
   77|      6|    case PGP_CURVE_ED448:
  ------------------
  |  Branch (77:5): [True: 6, False: 41]
  ------------------
   78|      6|        return 57;
   79|      0|    case PGP_CURVE_NIST_P_384:
  ------------------
  |  Branch (79:5): [True: 0, False: 47]
  ------------------
   80|      0|        return 48;
   81|      2|    case PGP_CURVE_NIST_P_521:
  ------------------
  |  Branch (81:5): [True: 2, False: 45]
  ------------------
   82|      2|        return 66;
   83|      6|    case PGP_CURVE_BP384:
  ------------------
  |  Branch (83:5): [True: 6, False: 41]
  ------------------
   84|      6|        return 48;
   85|      9|    case PGP_CURVE_BP512:
  ------------------
  |  Branch (85:5): [True: 9, False: 38]
  ------------------
   86|      9|        return 64;
   87|      0|    default:
  ------------------
  |  Branch (87:5): [True: 0, False: 47]
  ------------------
   88|      0|        RNP_LOG("invalid curve given");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   89|      0|        throw rnp::rnp_exception(RNP_ERROR_BAD_PARAMETERS);
   90|     47|    }
   91|     47|}
_ZN35pgp_dilithium_exdsa_composite_key_t23exdsa_curve_pubkey_sizeE11pgp_curve_t:
   95|    646|{
   96|    646|    switch (curve) {
   97|     84|    case PGP_CURVE_ED25519:
  ------------------
  |  Branch (97:5): [True: 84, False: 562]
  ------------------
   98|     84|        return 32;
   99|    296|    case PGP_CURVE_ED448:
  ------------------
  |  Branch (99:5): [True: 296, False: 350]
  ------------------
  100|    296|        return 57;
  101|     45|    case PGP_CURVE_NIST_P_384:
  ------------------
  |  Branch (101:5): [True: 45, False: 601]
  ------------------
  102|     45|        return 97;
  103|     47|    case PGP_CURVE_NIST_P_521:
  ------------------
  |  Branch (103:5): [True: 47, False: 599]
  ------------------
  104|     47|        return 133;
  105|    108|    case PGP_CURVE_BP384:
  ------------------
  |  Branch (105:5): [True: 108, False: 538]
  ------------------
  106|    108|        return 97;
  107|     66|    case PGP_CURVE_BP512:
  ------------------
  |  Branch (107:5): [True: 66, False: 580]
  ------------------
  108|     66|        return 129;
  109|      0|    default:
  ------------------
  |  Branch (109:5): [True: 0, False: 646]
  ------------------
  110|      0|        RNP_LOG("invalid curve given");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  111|      0|        throw rnp::rnp_exception(RNP_ERROR_BAD_PARAMETERS);
  112|    646|    }
  113|    646|}
_ZN35pgp_dilithium_exdsa_composite_key_t26exdsa_curve_signature_sizeE11pgp_curve_t:
  117|    288|{
  118|    288|    switch (curve) {
  119|     37|    case PGP_CURVE_ED25519:
  ------------------
  |  Branch (119:5): [True: 37, False: 251]
  ------------------
  120|     37|        return 64;
  121|     38|    case PGP_CURVE_ED448:
  ------------------
  |  Branch (121:5): [True: 38, False: 250]
  ------------------
  122|     38|        return 114;
  123|     47|    case PGP_CURVE_NIST_P_384:
  ------------------
  |  Branch (123:5): [True: 47, False: 241]
  ------------------
  124|     47|        return 96;
  125|     74|    case PGP_CURVE_NIST_P_521:
  ------------------
  |  Branch (125:5): [True: 74, False: 214]
  ------------------
  126|     74|        return 132;
  127|     78|    case PGP_CURVE_BP384:
  ------------------
  |  Branch (127:5): [True: 78, False: 210]
  ------------------
  128|     78|        return 96;
  129|     14|    case PGP_CURVE_BP512:
  ------------------
  |  Branch (129:5): [True: 14, False: 274]
  ------------------
  130|     14|        return 128;
  131|      0|    default:
  ------------------
  |  Branch (131:5): [True: 0, False: 288]
  ------------------
  132|      0|        RNP_LOG("invalid curve given");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  133|      0|        throw rnp::rnp_exception(RNP_ERROR_BAD_PARAMETERS);
  134|    288|    }
  135|    288|}
_ZN35pgp_dilithium_exdsa_composite_key_t22pk_alg_to_dilithium_idE16pgp_pubkey_alg_t:
  139|    947|{
  140|    947|    switch (pk_alg) {
  141|    128|    case PGP_PKA_DILITHIUM3_ED25519:
  ------------------
  |  Branch (141:5): [True: 128, False: 819]
  ------------------
  142|    128|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|    128|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
  143|    220|    case PGP_PKA_DILITHIUM3_P384:
  ------------------
  |  Branch (143:5): [True: 92, False: 855]
  ------------------
  144|    220|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|    220|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
  145|    408|    case PGP_PKA_DILITHIUM3_BP384:
  ------------------
  |  Branch (145:5): [True: 188, False: 759]
  ------------------
  146|    408|        return dilithium_L3;
  147|     82|    case PGP_PKA_DILITHIUM5_BP512:
  ------------------
  |  Branch (147:5): [True: 82, False: 865]
  ------------------
  148|     82|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|     82|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
  149|    203|    case PGP_PKA_DILITHIUM5_P521:
  ------------------
  |  Branch (149:5): [True: 121, False: 826]
  ------------------
  150|    203|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|    203|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
  151|    539|    case PGP_PKA_DILITHIUM5_ED448:
  ------------------
  |  Branch (151:5): [True: 336, False: 611]
  ------------------
  152|    539|        return dilithium_L5;
  153|      0|    default:
  ------------------
  |  Branch (153:5): [True: 0, False: 947]
  ------------------
  154|      0|        RNP_LOG("invalid PK alg given");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  155|      0|        throw rnp::rnp_exception(RNP_ERROR_BAD_PARAMETERS);
  156|    947|    }
  157|    947|}
_ZN35pgp_dilithium_exdsa_composite_key_t18pk_alg_to_curve_idE16pgp_pubkey_alg_t:
  161|  1.09k|{
  162|  1.09k|    switch (pk_alg) {
  163|    173|    case PGP_PKA_DILITHIUM3_ED25519:
  ------------------
  |  Branch (163:5): [True: 173, False: 917]
  ------------------
  164|    173|        return PGP_CURVE_ED25519;
  165|    100|    case PGP_PKA_DILITHIUM3_P384:
  ------------------
  |  Branch (165:5): [True: 100, False: 990]
  ------------------
  166|    100|        return PGP_CURVE_NIST_P_384;
  167|    229|    case PGP_PKA_DILITHIUM3_BP384:
  ------------------
  |  Branch (167:5): [True: 229, False: 861]
  ------------------
  168|    229|        return PGP_CURVE_BP384;
  169|    101|    case PGP_PKA_DILITHIUM5_BP512:
  ------------------
  |  Branch (169:5): [True: 101, False: 989]
  ------------------
  170|    101|        return PGP_CURVE_BP512;
  171|    135|    case PGP_PKA_DILITHIUM5_P521:
  ------------------
  |  Branch (171:5): [True: 135, False: 955]
  ------------------
  172|    135|        return PGP_CURVE_NIST_P_521;
  173|    352|    case PGP_PKA_DILITHIUM5_ED448:
  ------------------
  |  Branch (173:5): [True: 352, False: 738]
  ------------------
  174|    352|        return PGP_CURVE_ED448;
  175|      0|    default:
  ------------------
  |  Branch (175:5): [True: 0, False: 1.09k]
  ------------------
  176|      0|        RNP_LOG("invalid PK alg given");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  177|      0|        throw rnp::rnp_exception(RNP_ERROR_BAD_PARAMETERS);
  178|  1.09k|    }
  179|  1.09k|}
_ZN42pgp_dilithium_exdsa_composite_public_key_tC2ERKNSt3__16vectorIhNS0_9allocatorIhEEEE16pgp_pubkey_alg_t:
  190|     96|    : pk_alg_(pk_alg)
  191|     96|{
  192|     96|    parse_component_keys(key_encoded);
  193|     96|}
_ZN43pgp_dilithium_exdsa_composite_private_key_tC2EPKhm16pgp_pubkey_alg_t:
  213|     13|    : pk_alg_(pk_alg)
  214|     13|{
  215|     13|    parse_component_keys(std::vector<uint8_t>(key_encoded, key_encoded + key_encoded_len));
  216|     13|}
_ZN43pgp_dilithium_exdsa_composite_private_key_taSERKS_:
  230|    454|{
  231|    454|    pgp_dilithium_exdsa_composite_key_t::operator=(other);
  232|    454|    pk_alg_ = other.pk_alg_;
  233|    454|    if (other.is_initialized() && other.dilithium_key_) {
  ------------------
  |  Branch (233:9): [True: 31, False: 423]
  |  Branch (233:35): [True: 31, False: 0]
  ------------------
  234|     31|        dilithium_key_ =
  235|     31|          std::unique_ptr<pgp_dilithium_private_key_t>(new pgp_dilithium_private_key_t(
  236|     31|            other.dilithium_key_->get_encoded(), other.dilithium_key_->param()));
  237|     31|    }
  238|    454|    if (other.is_initialized() && other.exdsa_key_) {
  ------------------
  |  Branch (238:9): [True: 31, False: 423]
  |  Branch (238:35): [True: 31, False: 0]
  ------------------
  239|     31|        exdsa_key_ = std::unique_ptr<exdsa_private_key_t>(new exdsa_private_key_t(
  240|     31|          other.exdsa_key_->get_encoded(), other.exdsa_key_->get_curve()));
  241|     31|    }
  242|       |
  243|    454|    return *this;
  244|    454|}
_ZN43pgp_dilithium_exdsa_composite_private_key_tC2ERKS_:
  248|    441|{
  249|    441|    *this = other;
  250|    441|}
_ZN43pgp_dilithium_exdsa_composite_private_key_t12encoded_sizeE16pgp_pubkey_alg_t:
  273|     34|{
  274|     34|    pgp_curve_t curve = pk_alg_to_curve_id(pk_alg);
  275|     34|    return exdsa_curve_privkey_size(curve) + dilithium_privkey_size();
  276|     34|}
_ZN43pgp_dilithium_exdsa_composite_private_key_t20parse_component_keysENSt3__16vectorIhNS0_9allocatorIhEEEE:
  281|     13|{
  282|     13|    if (key_encoded.size() != encoded_size(pk_alg_)) {
  ------------------
  |  Branch (282:9): [True: 0, False: 13]
  ------------------
  283|      0|        RNP_LOG("ML-DSA composite key format invalid: length mismatch");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  284|      0|        throw rnp::rnp_exception(RNP_ERROR_BAD_PARAMETERS);
  285|      0|    }
  286|       |
  287|     13|    dilithium_parameter_e dilithium_param = pk_alg_to_dilithium_id(pk_alg_);
  288|     13|    pgp_curve_t           curve = pk_alg_to_curve_id(pk_alg_);
  289|     13|    size_t                split_at = exdsa_curve_privkey_size(pk_alg_to_curve_id(pk_alg_));
  290|       |
  291|     13|    dilithium_key_ =
  292|     13|      std::unique_ptr<pgp_dilithium_private_key_t>(new pgp_dilithium_private_key_t(
  293|     13|        key_encoded.data() + split_at, key_encoded.size() - split_at, dilithium_param));
  294|     13|    exdsa_key_ = std::unique_ptr<exdsa_private_key_t>(
  295|     13|      new exdsa_private_key_t(key_encoded.data(), split_at, curve));
  296|       |
  297|     13|    is_initialized_ = true;
  298|     13|}
_ZN43pgp_dilithium_exdsa_composite_private_key_t12secure_clearEv:
  346|     94|{
  347|       |    // private key buffer is stored in a secure_vector and will be securely erased by the
  348|       |    // destructor.
  349|     94|    dilithium_key_.reset();
  350|     94|    exdsa_key_.reset();
  351|     94|    is_initialized_ = false;
  352|     94|}
_ZN42pgp_dilithium_exdsa_composite_public_key_t12encoded_sizeE16pgp_pubkey_alg_t:
  356|    550|{
  357|    550|    dilithium_parameter_e dilithium_param = pk_alg_to_dilithium_id(pk_alg);
  358|    550|    pgp_curve_t           curve = pk_alg_to_curve_id(pk_alg);
  359|    550|    return exdsa_curve_pubkey_size(curve) + dilithium_pubkey_size(dilithium_param);
  360|    550|}
_ZN42pgp_dilithium_exdsa_composite_public_key_t20parse_component_keysENSt3__16vectorIhNS0_9allocatorIhEEEE:
  365|     96|{
  366|     96|    if (key_encoded.size() != encoded_size(pk_alg_)) {
  ------------------
  |  Branch (366:9): [True: 0, False: 96]
  ------------------
  367|      0|        RNP_LOG("ML-DSA composite key format invalid: length mismatch");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  368|      0|        throw rnp::rnp_exception(RNP_ERROR_BAD_PARAMETERS);
  369|      0|    }
  370|       |
  371|     96|    dilithium_parameter_e dilithium_param = pk_alg_to_dilithium_id(pk_alg_);
  372|     96|    pgp_curve_t           curve = pk_alg_to_curve_id(pk_alg_);
  373|     96|    size_t                split_at = exdsa_curve_pubkey_size(pk_alg_to_curve_id(pk_alg_));
  374|       |
  375|     96|    dilithium_key_ = pgp_dilithium_public_key_t(
  376|     96|      key_encoded.data() + split_at, key_encoded.size() - split_at, dilithium_param);
  377|     96|    exdsa_key_ = exdsa_public_key_t(key_encoded.data(), split_at, curve);
  378|       |
  379|     96|    is_initialized_ = true;
  380|     96|}
_ZNK42pgp_dilithium_exdsa_composite_public_key_t11get_encodedEv:
  384|     70|{
  385|     70|    initialized_or_throw();
  386|     70|    std::vector<uint8_t> result;
  387|     70|    std::vector<uint8_t> exdsa_key_encoded = exdsa_key_.get_encoded();
  388|     70|    std::vector<uint8_t> dilithium_key_encoded = dilithium_key_.get_encoded();
  389|       |
  390|     70|    result.insert(result.end(), std::begin(exdsa_key_encoded), std::end(exdsa_key_encoded));
  391|     70|    result.insert(
  392|     70|      result.end(), std::begin(dilithium_key_encoded), std::end(dilithium_key_encoded));
  393|     70|    return result;
  394|     70|};

_ZNK35pgp_dilithium_exdsa_composite_key_t14is_initializedEv:
   58|    978|    {
   59|    978|        return is_initialized_;
   60|    978|    }
_ZN31pgp_dilithium_exdsa_signature_t24composite_signature_sizeE16pgp_pubkey_alg_t:
   72|    288|    {
   73|    288|        return dilithium_signature_size(
   74|    288|                 pgp_dilithium_exdsa_composite_key_t::pk_alg_to_dilithium_id(pk_alg)) +
   75|    288|               pgp_dilithium_exdsa_composite_key_t::exdsa_curve_signature_size(
   76|    288|                 pgp_dilithium_exdsa_composite_key_t::pk_alg_to_curve_id(pk_alg));
   77|    288|    }
_ZN43pgp_dilithium_exdsa_composite_private_key_tC2Ev:
   96|    876|    pgp_dilithium_exdsa_composite_private_key_t() = default;
_ZN42pgp_dilithium_exdsa_composite_public_key_tC2Ev:
  140|    876|    pgp_dilithium_exdsa_composite_public_key_t() = default;

_ZNK3pgp3dsa3Key6verifyERKNS0_9SignatureERKNSt3__16vectorIhN3rnp16secure_allocatorIhEEEE:
  152|    542|{
  153|    542|    size_t q_order = q.size();
  154|    542|    size_t z_len = std::min(hash.size(), q_order);
  155|    542|    size_t r_blen = sig.r.size();
  156|    542|    size_t s_blen = sig.s.size();
  157|    542|    if ((r_blen > q_order) || (s_blen > q_order)) {
  ------------------
  |  Branch (157:9): [True: 3, False: 539]
  |  Branch (157:31): [True: 3, False: 536]
  ------------------
  158|      6|        RNP_LOG("Wrong signature");
  ------------------
  |  |   84|      6|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      6|    do {                                                                                 \
  |  |  |  |   77|      6|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 6, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      6|            break;                                                                       \
  |  |  |  |   79|      6|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  159|      6|        return RNP_ERROR_BAD_PARAMETERS;
  160|      6|    }
  161|       |
  162|    536|    rnp::bn bp(p);
  163|    536|    rnp::bn bq(q);
  164|    536|    rnp::bn bg(g);
  165|    536|    rnp::bn by(y);
  166|       |
  167|    536|    if (!bp || !bq || !bg || !by) {
  ------------------
  |  Branch (167:9): [True: 0, False: 536]
  |  Branch (167:16): [True: 0, False: 536]
  |  Branch (167:23): [True: 0, False: 536]
  |  Branch (167:30): [True: 0, False: 536]
  ------------------
  168|      0|        RNP_LOG("out of memory");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  169|      0|        return RNP_ERROR_OUT_OF_MEMORY;
  170|      0|    }
  171|       |
  172|    536|    rnp::botan::Pubkey dsa_key;
  173|    536|    log_size_hint(p, q);
  174|    536|    if (botan_pubkey_load_dsa(&dsa_key.get(), bp.get(), bq.get(), bg.get(), by.get())) {
  ------------------
  |  Branch (174:9): [True: 10, False: 526]
  ------------------
  175|     10|        RNP_LOG("Wrong key");
  ------------------
  |  |   84|     10|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     10|    do {                                                                                 \
  |  |  |  |   77|     10|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 10, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     10|            break;                                                                       \
  |  |  |  |   79|     10|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  176|     10|        return RNP_ERROR_GENERIC;
  177|     10|    }
  178|       |
  179|    526|    std::vector<uint8_t> sign_buf(q_order * 2, 0);
  180|    526|    sig.r.copy(sign_buf.data() + q_order - r_blen);
  181|    526|    sig.s.copy(sign_buf.data() + 2 * q_order - s_blen);
  182|       |
  183|    526|    rnp::botan::op::Verify verify_op;
  184|    526|    if (botan_pk_op_verify_create(&verify_op.get(), dsa_key.get(), "Raw", 0)) {
  ------------------
  |  Branch (184:9): [True: 0, False: 526]
  ------------------
  185|      0|        RNP_LOG("Can't create verifier");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  186|      0|        return RNP_ERROR_GENERIC;
  187|      0|    }
  188|       |
  189|    526|    if (botan_pk_op_verify_update(verify_op.get(), hash.data(), z_len)) {
  ------------------
  |  Branch (189:9): [True: 0, False: 526]
  ------------------
  190|      0|        return RNP_ERROR_GENERIC;
  191|      0|    }
  192|       |
  193|    526|    if (botan_pk_op_verify_finish(verify_op.get(), sign_buf.data(), 2 * q_order)) {
  ------------------
  |  Branch (193:9): [True: 492, False: 34]
  ------------------
  194|    492|        return RNP_ERROR_SIGNATURE_INVALID;
  195|    492|    }
  196|     34|    return RNP_SUCCESS;
  197|    526|}
dsa.cpp:_ZN3pgp3dsaL13log_size_hintERKNS_3mpiES3_:
   45|    536|{
   46|       |#if BOTAN_VERSION_CODE >= BOTAN_VERSION_CODE_FOR(3, 14, 0)
   47|       |    size_t pbits = p.bits();
   48|       |    size_t qbits = q.bits();
   49|       |    bool   fips = ((pbits == 1024) && (qbits == 160)) ||
   50|       |                ((pbits == 2048) && ((qbits == 224) || (qbits == 256))) ||
   51|       |                ((pbits == 3072) && (qbits == 256));
   52|       |    if (!fips) {
   53|       |        RNP_LOG("DSA key with %zu-bit p and %zu-bit q cannot be used: since Botan 3.14 DSA "
   54|       |                "keys are restricted to the FIPS 186-4 size ranges (1024/160, 2048/224, "
   55|       |                "2048/256, 3072/256), see https://github.com/randombit/botan/pull/6039",
   56|       |                pbits,
   57|       |                qbits);
   58|       |    }
   59|       |#endif
   60|    536|}

_ZN3pgp3dsa3Key12clear_secretEv:
   56|  3.31k|    {
   57|  3.31k|        x.forget();
   58|  3.31k|    }
_ZN3pgp3dsa3KeyD2Ev:
   61|  2.86k|    {
   62|  2.86k|        clear_secret();
   63|  2.86k|    }

_ZNK3pgp2ec5Curve5bytesEv:
  102|  39.2k|    {
  103|       |        return BITS_TO_BYTES(bitlen);
  ------------------
  |  |   56|  39.2k|#define BITS_TO_BYTES(b) (((b) + (CHAR_BIT - 1)) / CHAR_BIT)
  ------------------
  104|  39.2k|    }
_ZN3pgp2ec3Key12clear_secretEv:
  125|   277k|    {
  126|   277k|        x.forget();
  127|   277k|    }
_ZN3pgp2ec3KeyD2Ev:
  130|   262k|    {
  131|   262k|        clear_secret();
  132|   262k|    }
_ZN17pgp_ed25519_key_t12clear_secretEv:
  189|  9.69k|    {
  190|  9.69k|        secure_clear(priv.data(), priv.size());
  191|  9.69k|        priv.resize(0);
  192|  9.69k|    }
_ZN17pgp_ed25519_key_tD2Ev:
  195|  8.59k|    {
  196|  8.59k|        clear_secret();
  197|  8.59k|    }
_ZN16pgp_x25519_key_t12clear_secretEv:
  213|  32.7k|    {
  214|  32.7k|        secure_clear(priv.data(), priv.size());
  215|  32.7k|        priv.resize(0);
  216|  32.7k|    }
_ZN16pgp_x25519_key_tD2Ev:
  219|  31.1k|    {
  220|  31.1k|        clear_secret();
  221|  31.1k|    }

_ZN3pgp2ec5Curve6by_OIDERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  299|  54.1k|{
  300|   327k|    for (size_t i = 0; i < PGP_CURVE_MAX; i++) {
  ------------------
  |  Branch (300:24): [True: 326k, False: 1.16k]
  ------------------
  301|   326k|        if (oid == ec_curves[i].OID) {
  ------------------
  |  Branch (301:13): [True: 53.0k, False: 273k]
  ------------------
  302|  53.0k|            return static_cast<pgp_curve_t>(i);
  303|  53.0k|        }
  304|   326k|    }
  305|  1.16k|    return PGP_CURVE_MAX;
  306|  54.1k|}
_ZN3pgp2ec5Curve3getE11pgp_curve_t:
  322|  92.1k|{
  323|  92.1k|    return (curve_id < PGP_CURVE_MAX && curve_id > 0) ? &ec_curves[curve_id] : NULL;
  ------------------
  |  Branch (323:13): [True: 92.1k, False: 0]
  |  Branch (323:41): [True: 92.1k, False: 22]
  ------------------
  324|  92.1k|}
_ZN3pgp2ec5Curve12is_supportedE11pgp_curve_t:
  347|  9.77k|{
  348|  9.77k|    auto info = Curve::get(curve);
  349|  9.77k|    return info && info->supported;
  ------------------
  |  Branch (349:12): [True: 9.77k, False: 0]
  |  Branch (349:20): [True: 9.77k, False: 0]
  ------------------
  350|  9.77k|}

_ZN3pgp5ecdsa15padding_str_forE14pgp_hash_alg_t:
  107|  9.63k|{
  108|  9.63k|    switch (hash_alg) {
  109|    335|    case PGP_HASH_MD5:
  ------------------
  |  Branch (109:5): [True: 335, False: 9.30k]
  ------------------
  110|    335|        return "Raw(MD5)";
  111|    165|    case PGP_HASH_SHA1:
  ------------------
  |  Branch (111:5): [True: 165, False: 9.47k]
  ------------------
  112|    165|        return "Raw(SHA-1)";
  113|     99|    case PGP_HASH_RIPEMD:
  ------------------
  |  Branch (113:5): [True: 99, False: 9.54k]
  ------------------
  114|     99|        return "Raw(RIPEMD-160)";
  115|  8.57k|    case PGP_HASH_SHA256:
  ------------------
  |  Branch (115:5): [True: 8.57k, False: 1.06k]
  ------------------
  116|  8.57k|        return "Raw(SHA-256)";
  117|     46|    case PGP_HASH_SHA384:
  ------------------
  |  Branch (117:5): [True: 46, False: 9.59k]
  ------------------
  118|     46|        return "Raw(SHA-384)";
  119|     11|    case PGP_HASH_SHA512:
  ------------------
  |  Branch (119:5): [True: 11, False: 9.62k]
  ------------------
  120|     11|        return "Raw(SHA-512)";
  121|    286|    case PGP_HASH_SHA224:
  ------------------
  |  Branch (121:5): [True: 286, False: 9.35k]
  ------------------
  122|    286|        return "Raw(SHA-224)";
  123|     96|    case PGP_HASH_SHA3_256:
  ------------------
  |  Branch (123:5): [True: 96, False: 9.54k]
  ------------------
  124|     96|        return "Raw(SHA-3(256))";
  125|     23|    case PGP_HASH_SHA3_512:
  ------------------
  |  Branch (125:5): [True: 23, False: 9.61k]
  ------------------
  126|     23|        return "Raw(SHA-3(512))";
  127|      5|    case PGP_HASH_SM3:
  ------------------
  |  Branch (127:5): [True: 5, False: 9.63k]
  ------------------
  128|      5|        return "Raw(SM3)";
  129|      0|    default:
  ------------------
  |  Branch (129:5): [True: 0, False: 9.63k]
  ------------------
  130|      0|        return "Raw";
  131|  9.63k|    }
  132|  9.63k|}
_ZN3pgp5ecdsa6verifyERKNS_2ec9SignatureE14pgp_hash_alg_tRKNSt3__16vectorIhN3rnp16secure_allocatorIhEEEERKNS1_3KeyE:
  179|  9.75k|{
  180|  9.75k|    auto curve = ec::Curve::get(key.curve);
  181|  9.75k|    if (!curve) {
  ------------------
  |  Branch (181:9): [True: 0, False: 9.75k]
  ------------------
  182|      0|        RNP_LOG("unknown curve");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  183|      0|        return RNP_ERROR_BAD_PARAMETERS;
  184|      0|    }
  185|       |
  186|  9.75k|    size_t curve_order = curve->bytes();
  187|  9.75k|    size_t r_blen = sig.r.size();
  188|  9.75k|    size_t s_blen = sig.s.size();
  189|  9.75k|    if ((r_blen > curve_order) || (s_blen > curve_order) ||
  ------------------
  |  Branch (189:9): [True: 19, False: 9.73k]
  |  Branch (189:35): [True: 13, False: 9.72k]
  ------------------
  190|  9.72k|        (curve_order > MAX_CURVE_BYTELEN)) {
  ------------------
  |  |   40|  9.72k|#define MAX_CURVE_BYTELEN ((MAX_CURVE_BIT_SIZE + 7) / 8)
  |  |  ------------------
  |  |  |  |   38|  9.72k|#define MAX_CURVE_BIT_SIZE 521 // secp521r1
  |  |  ------------------
  ------------------
  |  Branch (190:9): [True: 0, False: 9.72k]
  ------------------
  191|     32|        return RNP_ERROR_BAD_PARAMETERS;
  192|     32|    }
  193|       |
  194|  9.72k|    rnp::botan::Pubkey pub;
  195|  9.72k|    if (!load_public_key(pub, key)) {
  ------------------
  |  Branch (195:9): [True: 84, False: 9.63k]
  ------------------
  196|     84|        return RNP_ERROR_SIGNATURE_INVALID;
  197|     84|    }
  198|       |
  199|  9.63k|    rnp::botan::op::Verify verifier;
  200|  9.63k|    auto                   pad = padding_str_for(hash_alg);
  201|  9.63k|    if (botan_pk_op_verify_create(&verifier.get(), pub.get(), pad, 0) ||
  ------------------
  |  Branch (201:9): [True: 0, False: 9.63k]
  ------------------
  202|  9.63k|        botan_pk_op_verify_update(verifier.get(), hash.data(), hash.size())) {
  ------------------
  |  Branch (202:9): [True: 0, False: 9.63k]
  ------------------
  203|      0|        return RNP_ERROR_SIGNATURE_INVALID;
  204|      0|    }
  205|       |
  206|  9.63k|    std::vector<uint8_t> sign_buf(2 * curve_order, 0);
  207|       |    // Both can't fail
  208|  9.63k|    sig.r.copy(sign_buf.data() + curve_order - r_blen);
  209|  9.63k|    sig.s.copy(sign_buf.data() + 2 * curve_order - s_blen);
  210|       |
  211|  9.63k|    if (botan_pk_op_verify_finish(verifier.get(), sign_buf.data(), sign_buf.size())) {
  ------------------
  |  Branch (211:9): [True: 8.56k, False: 1.07k]
  ------------------
  212|  8.56k|        return RNP_ERROR_SIGNATURE_INVALID;
  213|  8.56k|    }
  214|  1.07k|    return RNP_SUCCESS;
  215|  9.63k|}
ecdsa.cpp:_ZN3pgp5ecdsaL15load_public_keyERN3rnp5botan6PubkeyERKNS_2ec3KeyE:
   38|  9.72k|{
   39|  9.72k|    auto curve = ec::Curve::get(keydata.curve);
   40|  9.72k|    if (!curve) {
  ------------------
  |  Branch (40:9): [True: 0, False: 9.72k]
  ------------------
   41|      0|        RNP_LOG("unknown curve");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   42|      0|        return false;
   43|      0|    }
   44|  9.72k|    if (!keydata.p.size() || (keydata.p[0] != 0x04)) {
  ------------------
  |  Branch (44:9): [True: 0, False: 9.72k]
  |  Branch (44:30): [True: 5, False: 9.71k]
  ------------------
   45|      5|        RNP_LOG("Failed to load public key: %02x", keydata.p[0]);
  ------------------
  |  |   84|      5|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      5|    do {                                                                                 \
  |  |  |  |   77|      5|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 5, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      5|            break;                                                                       \
  |  |  |  |   79|      5|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   46|      5|        return false;
   47|      5|    }
   48|  9.71k|    const size_t curve_order = curve->bytes();
   49|  9.71k|    if (keydata.p.size() != 2 * curve_order + 1) {
  ------------------
  |  Branch (49:9): [True: 3, False: 9.71k]
  ------------------
   50|      3|        return false;
   51|      3|    }
   52|  9.71k|    rnp::bn px(&keydata.p[1], curve_order);
   53|  9.71k|    rnp::bn py(&keydata.p[1] + curve_order, curve_order);
   54|       |
   55|  9.71k|    if (!px || !py) {
  ------------------
  |  Branch (55:9): [True: 0, False: 9.71k]
  |  Branch (55:16): [True: 0, False: 9.71k]
  ------------------
   56|      0|        return false;
   57|      0|    }
   58|       |
   59|  9.71k|    bool res = !botan_pubkey_load_ecdsa(&pubkey.get(), px.get(), py.get(), curve->botan_name);
   60|  9.71k|    if (!res) {
  ------------------
  |  Branch (60:9): [True: 76, False: 9.63k]
  ------------------
   61|     76|        RNP_LOG("failed to load ecdsa %s public key", curve->botan_name);
  ------------------
  |  |   84|     76|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     76|    do {                                                                                 \
  |  |  |  |   77|     76|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 76, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     76|            break;                                                                       \
  |  |  |  |   79|     76|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   62|     76|    }
   63|  9.71k|    return res;
   64|  9.71k|}

_Z21ed25519_verify_nativeRKNSt3__16vectorIhNS_9allocatorIhEEEES5_PKhm:
   90|     51|{
   91|     51|    if (key.size() != ED25519_KEY_LEN) {
  ------------------
  |  Branch (91:9): [True: 0, False: 51]
  ------------------
   92|      0|        return RNP_ERROR_BAD_PARAMETERS;
   93|      0|    }
   94|     51|    rnp::botan::Pubkey pub_key;
   95|     51|    if (botan_pubkey_load_ed25519(&pub_key.get(), key.data())) {
  ------------------
  |  Branch (95:9): [True: 0, False: 51]
  ------------------
   96|      0|        return RNP_ERROR_BAD_PARAMETERS;
   97|      0|    }
   98|     51|    rnp::botan::op::Verify verifier;
   99|     51|    if (botan_pk_op_verify_create(&verifier.get(), pub_key.get(), "Pure", 0) ||
  ------------------
  |  Branch (99:9): [True: 0, False: 51]
  ------------------
  100|     51|        botan_pk_op_verify_update(verifier.get(), hash, hash_len)) {
  ------------------
  |  Branch (100:9): [True: 0, False: 51]
  ------------------
  101|      0|        return RNP_ERROR_SIGNATURE_INVALID;
  102|      0|    }
  103|     51|    if (botan_pk_op_verify_finish(verifier.get(), sig.data(), sig.size())) {
  ------------------
  |  Branch (103:9): [True: 46, False: 5]
  ------------------
  104|     46|        return RNP_ERROR_SIGNATURE_INVALID;
  105|     46|    }
  106|      5|    return RNP_SUCCESS;
  107|     51|}

_ZN3pgp5eddsa6verifyERKNS_2ec9SignatureERKNSt3__16vectorIhN3rnp16secure_allocatorIhEEEERKNS1_3KeyE:
  147|  4.05k|{
  148|       |    // Unexpected size for Ed25519 signature
  149|  4.05k|    if ((sig.r.size() > 32) || (sig.s.size() > 32)) {
  ------------------
  |  Branch (149:9): [True: 3, False: 4.05k]
  |  Branch (149:32): [True: 3, False: 4.05k]
  ------------------
  150|      6|        return RNP_ERROR_SIGNATURE_INVALID;
  151|      6|    }
  152|       |
  153|  4.05k|    rnp::botan::Pubkey eddsa;
  154|  4.05k|    if (!load_public_key(eddsa, key)) {
  ------------------
  |  Branch (154:9): [True: 10, False: 4.04k]
  ------------------
  155|     10|        return RNP_ERROR_BAD_PARAMETERS;
  156|     10|    }
  157|       |
  158|  4.04k|    rnp::botan::op::Verify verify_op;
  159|  4.04k|    if (botan_pk_op_verify_create(&verify_op.get(), eddsa.get(), "Pure", 0) ||
  ------------------
  |  Branch (159:9): [True: 0, False: 4.04k]
  ------------------
  160|  4.04k|        botan_pk_op_verify_update(verify_op.get(), hash.data(), hash.size())) {
  ------------------
  |  Branch (160:9): [True: 0, False: 4.04k]
  ------------------
  161|      0|        return RNP_ERROR_SIGNATURE_INVALID;
  162|      0|    }
  163|       |
  164|  4.04k|    uint8_t bn_buf[64] = {0};
  165|  4.04k|    sig.r.copy(bn_buf + 32 - sig.r.size());
  166|  4.04k|    sig.s.copy(bn_buf + 64 - sig.s.size());
  167|       |
  168|  4.04k|    if (botan_pk_op_verify_finish(verify_op.get(), bn_buf, 64)) {
  ------------------
  |  Branch (168:9): [True: 3.61k, False: 426]
  ------------------
  169|  3.61k|        return RNP_ERROR_SIGNATURE_INVALID;
  170|  3.61k|    }
  171|    426|    return RNP_SUCCESS;
  172|  4.04k|}
eddsa.cpp:_ZN3pgp5eddsaL15load_public_keyERN3rnp5botan6PubkeyERKNS_2ec3KeyE:
   41|  4.05k|{
   42|  4.05k|    if (keydata.curve != PGP_CURVE_ED25519) {
  ------------------
  |  Branch (42:9): [True: 0, False: 4.05k]
  ------------------
   43|      0|        return false;
   44|      0|    }
   45|       |    /*
   46|       |     * See draft-ietf-openpgp-rfc4880bis-01 section 13.3
   47|       |     */
   48|  4.05k|    if ((keydata.p.size() != 33) || (keydata.p[0] != 0x40)) {
  ------------------
  |  Branch (48:9): [True: 0, False: 4.05k]
  |  Branch (48:37): [True: 10, False: 4.04k]
  ------------------
   49|     10|        return false;
   50|     10|    }
   51|  4.04k|    if (botan_pubkey_load_ed25519(&pubkey.get(), &keydata.p[1])) {
  ------------------
  |  Branch (51:9): [True: 0, False: 4.04k]
  ------------------
   52|      0|        return false;
   53|      0|    }
   54|  4.04k|    return true;
   55|  4.04k|}

_ZN3pgp2eg3Key12clear_secretEv:
   62|  1.48k|    {
   63|  1.48k|        x.forget();
   64|  1.48k|    }
_ZN3pgp2eg3KeyD2Ev:
   67|  1.38k|    {
   68|  1.38k|        clear_secret();
   69|  1.38k|    }

_ZN8ec_key_tD2Ev:
  117|  2.70k|{
  118|  2.70k|}
_ZN8ec_key_tC2E11pgp_curve_t:
  120|    324|ec_key_t::ec_key_t(pgp_curve_t curve) : curve_(curve)
  121|    324|{
  122|    324|}
_ZN21ecdh_kem_public_key_tC2EPhm11pgp_curve_t:
  127|    120|    : ec_key_t(curve), key_(std::vector<uint8_t>(key_buf, key_buf + key_buf_len))
  128|    120|{
  129|    120|}
_ZN22ecdh_kem_private_key_tC2EPhm11pgp_curve_t:
  138|     20|    : ec_key_t(curve), key_(key_buf, key_buf + key_buf_len)
  139|     20|{
  140|     20|}
_ZN22ecdh_kem_private_key_tC2ENSt3__16vectorIhNS0_9allocatorIhEEEE11pgp_curve_t:
  142|     44|    : ec_key_t(curve), key_(std::move(key))
  143|     44|{
  144|     44|}
_ZN18exdsa_public_key_tC2EPhm11pgp_curve_t:
  290|     96|    : ec_key_t(curve), key_(key_buf, key_buf + key_buf_len)
  291|     96|{
  292|     96|}
_ZN19exdsa_private_key_tC2EPhm11pgp_curve_t:
  301|     13|    : ec_key_t(curve), key_(key_buf, key_buf + key_buf_len)
  302|     13|{
  303|     13|}
_ZN19exdsa_private_key_tC2ENSt3__16vectorIhNS0_9allocatorIhEEEE11pgp_curve_t:
  305|     31|    : ec_key_t(curve), key_(std::move(key))
  306|     31|{
  307|     31|}

_ZNK8ec_key_t9get_curveEv:
   61|     75|    {
   62|     75|        return curve_;
   63|     75|    }
_ZNK21ecdh_kem_public_key_t11get_encodedEv:
   85|     80|    {
   86|     80|        return key_;
   87|     80|    }
_ZNK22ecdh_kem_private_key_t11get_encodedEv:
  107|     44|    {
  108|     44|        return key_.unlock();
  109|     44|    }
_ZNK18exdsa_public_key_t11get_encodedEv:
  142|     70|    {
  143|     70|        return key_;
  144|     70|    }
_ZNK19exdsa_private_key_t11get_encodedEv:
  166|     31|    {
  167|     31|        return key_.unlock();
  168|     31|    }
_ZN8ec_key_tC2Ev:
   48|  1.49k|    ec_key_t() = default;
_ZN21ecdh_kem_public_key_tC2Ev:
   73|    520|    ecdh_kem_public_key_t() = default;
_ZN18exdsa_public_key_tC2Ev:
  130|    972|    exdsa_public_key_t() = default;

_ZN3rnp10Hash_BotanC2E14pgp_hash_alg_t:
   49|  52.2k|Hash_Botan::Hash_Botan(pgp_hash_alg_t alg) : Hash(alg)
   50|  52.2k|{
   51|  52.2k|    auto name = Hash_Botan::name_backend(alg);
   52|  52.2k|    if (!name) {
  ------------------
  |  Branch (52:9): [True: 0, False: 52.2k]
  ------------------
   53|      0|        throw rnp_exception(RNP_ERROR_BAD_PARAMETERS);
   54|      0|    }
   55|       |
   56|  52.2k|    if (botan_hash_init(&fn_, name, 0)) {
  ------------------
  |  Branch (56:9): [True: 99, False: 52.2k]
  ------------------
   57|     99|        RNP_LOG("Error creating hash object for '%s'", name);
  ------------------
  |  |   84|     99|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     99|    do {                                                                                 \
  |  |  |  |   77|     99|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 99, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     99|            break;                                                                       \
  |  |  |  |   79|     99|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   58|     99|        fn_ = nullptr;
   59|     99|        throw rnp_exception(RNP_ERROR_BAD_PARAMETERS);
   60|     99|    }
   61|       |
   62|  52.2k|    size_t outlen = 0;
   63|  52.2k|    botan_hash_output_length(fn_, &outlen);
   64|       |    assert(size_ == outlen);
   65|  52.2k|}
_ZN3rnp10Hash_BotanD2Ev:
   78|  52.2k|{
   79|  52.2k|    if (fn_) {
  ------------------
  |  Branch (79:9): [True: 8.14k, False: 44.0k]
  ------------------
   80|  8.14k|        botan_hash_destroy(fn_);
   81|  8.14k|    }
   82|  52.2k|}
_ZN3rnp10Hash_Botan6createE14pgp_hash_alg_t:
   86|  52.2k|{
   87|  52.2k|    return std::unique_ptr<Hash_Botan>(new Hash_Botan(alg));
   88|  52.2k|}
_ZN3rnp10Hash_Botan3addEPKvm:
   98|  13.2M|{
   99|  13.2M|    if (!fn_) {
  ------------------
  |  Branch (99:9): [True: 0, False: 13.2M]
  ------------------
  100|      0|        throw rnp_exception(RNP_ERROR_NULL_POINTER);
  101|      0|    }
  102|  13.2M|    if (botan_hash_update(fn_, static_cast<const uint8_t *>(buf), len)) {
  ------------------
  |  Branch (102:9): [True: 0, False: 13.2M]
  ------------------
  103|      0|        throw rnp_exception(RNP_ERROR_GENERIC);
  104|      0|    }
  105|  13.2M|}
_ZN3rnp10Hash_Botan6finishEPh:
  109|  44.0k|{
  110|  44.0k|    assert(fn_);
  111|  44.0k|    if (!fn_) {
  ------------------
  |  Branch (111:9): [True: 0, False: 44.0k]
  ------------------
  112|      0|        return;
  113|      0|    }
  114|  44.0k|    if (digest) {
  ------------------
  |  Branch (114:9): [True: 44.0k, False: 0]
  ------------------
  115|  44.0k|        botan_hash_final(fn_, digest);
  116|  44.0k|    }
  117|  44.0k|    botan_hash_destroy(fn_);
  118|  44.0k|    fn_ = nullptr;
  119|  44.0k|    size_ = 0;
  120|  44.0k|}
_ZN3rnp10Hash_Botan12name_backendE14pgp_hash_alg_t:
  124|   125k|{
  125|   125k|    return id_str_pair::lookup(botan_alg_map, alg);
  126|   125k|}
_ZN3rnp11CRC24_BotanC2Ev:
  129|  27.0k|{
  130|  27.0k|    if (botan_hash_init(&fn_, "CRC24", 0)) {
  ------------------
  |  Branch (130:9): [True: 0, False: 27.0k]
  ------------------
  131|      0|        RNP_LOG("Error creating CRC24 object");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  132|      0|        fn_ = nullptr;
  133|      0|        throw rnp_exception(RNP_ERROR_BAD_PARAMETERS);
  134|      0|    }
  135|  27.0k|    size_t outlen = 0;
  136|  27.0k|    botan_hash_output_length(fn_, &outlen);
  137|       |    assert(3 == outlen);
  138|  27.0k|}
_ZN3rnp11CRC24_BotanD2Ev:
  141|  27.0k|{
  142|  27.0k|    if (fn_) {
  ------------------
  |  Branch (142:9): [True: 3.56k, False: 23.4k]
  ------------------
  143|  3.56k|        botan_hash_destroy(fn_);
  144|  3.56k|    }
  145|  27.0k|}
_ZN3rnp11CRC24_Botan6createEv:
  149|  27.0k|{
  150|  27.0k|    return std::unique_ptr<CRC24_Botan>(new CRC24_Botan());
  151|  27.0k|}
_ZN3rnp11CRC24_Botan3addEPKvm:
  155|  48.8k|{
  156|  48.8k|    if (!fn_) {
  ------------------
  |  Branch (156:9): [True: 0, False: 48.8k]
  ------------------
  157|      0|        throw rnp_exception(RNP_ERROR_NULL_POINTER);
  158|      0|    }
  159|  48.8k|    if (botan_hash_update(fn_, static_cast<const uint8_t *>(buf), len)) {
  ------------------
  |  Branch (159:9): [True: 0, False: 48.8k]
  ------------------
  160|      0|        throw rnp_exception(RNP_ERROR_GENERIC);
  161|      0|    }
  162|  48.8k|}
_ZN3rnp11CRC24_Botan6finishEv:
  166|  23.4k|{
  167|  23.4k|    if (!fn_) {
  ------------------
  |  Branch (167:9): [True: 0, False: 23.4k]
  ------------------
  168|      0|        throw rnp_exception(RNP_ERROR_NULL_POINTER);
  169|      0|    }
  170|  23.4k|    std::array<uint8_t, 3> crc{};
  171|  23.4k|    botan_hash_final(fn_, crc.data());
  172|  23.4k|    botan_hash_destroy(fn_);
  173|  23.4k|    fn_ = nullptr;
  174|  23.4k|    return crc;
  175|  23.4k|}

_ZN3rnp4HashC2E14pgp_hash_alg_t:
   48|   331k|    Hash(pgp_hash_alg_t alg) : alg_(alg)
   49|   331k|    {
   50|   331k|        size_ = Hash::size(alg);
   51|   331k|    };
_ZN3rnp5CRC24C2Ev:
   81|  27.0k|    CRC24(){};
_ZN3rnp5CRC24D2Ev:
   89|  27.0k|    virtual ~CRC24(){};

_ZNK3rnp4Hash3algEv:
   62|  49.8k|{
   63|  49.8k|    return alg_;
   64|  49.8k|}
_ZNK3rnp4Hash4sizeEv:
   68|  28.0k|{
   69|  28.0k|    return Hash::size(alg_);
   70|  28.0k|}
_ZN3rnp4Hash6createE14pgp_hash_alg_t:
   74|   331k|{
   75|   331k|    if (alg == PGP_HASH_SHA1) {
  ------------------
  |  Branch (75:9): [True: 279k, False: 52.2k]
  ------------------
   76|   279k|        return Hash_SHA1CD::create();
   77|   279k|    }
   78|       |#if !defined(ENABLE_SM2)
   79|       |    if (alg == PGP_HASH_SM3) {
   80|       |        RNP_LOG("SM3 hash is not available.");
   81|       |        throw rnp_exception(RNP_ERROR_BAD_PARAMETERS);
   82|       |    }
   83|       |#endif
   84|       |#if defined(CRYPTO_BACKEND_OPENSSL)
   85|       |    return Hash_OpenSSL::create(alg);
   86|       |#elif defined(CRYPTO_BACKEND_BOTAN)
   87|  52.2k|    return Hash_Botan::create(alg);
   88|       |#else
   89|       |#error "Crypto backend not specified"
   90|       |#endif
   91|   331k|}
_ZN3rnp5CRC246createEv:
   95|  27.0k|{
   96|       |#if defined(CRYPTO_BACKEND_OPENSSL)
   97|       |    return CRC24_RNP::create();
   98|       |#elif defined(CRYPTO_BACKEND_BOTAN)
   99|       |    return CRC24_Botan::create();
  100|       |#else
  101|       |#error "Crypto backend not specified"
  102|       |#endif
  103|  27.0k|}
_ZN3rnp4Hash3addERKNSt3__16vectorIhNS1_9allocatorIhEEEE:
  107|   450k|{
  108|   450k|    add(val.data(), val.size());
  109|   450k|}
_ZN3rnp4Hash3addEj:
  113|  24.3k|{
  114|  24.3k|    uint8_t ibuf[4];
  115|  24.3k|    write_uint32(ibuf, val);
  116|  24.3k|    add(ibuf, sizeof(ibuf));
  117|  24.3k|}
_ZN3rnp4Hash3addERKN3pgp3mpiE:
  121|  24.3k|{
  122|  24.3k|    size_t len = val.size();
  123|  24.3k|    size_t idx = 0;
  124|  47.0k|    while ((idx < len) && (!val[idx])) {
  ------------------
  |  Branch (124:12): [True: 43.6k, False: 3.48k]
  |  Branch (124:27): [True: 22.7k, False: 20.8k]
  ------------------
  125|  22.7k|        idx++;
  126|  22.7k|    }
  127|       |
  128|  24.3k|    if (idx >= len) {
  ------------------
  |  Branch (128:9): [True: 3.48k, False: 20.8k]
  ------------------
  129|  3.48k|        add(0);
  130|  3.48k|        return;
  131|  3.48k|    }
  132|       |
  133|  20.8k|    add(len - idx);
  134|  20.8k|    if (val[idx] & 0x80) {
  ------------------
  |  Branch (134:9): [True: 5.31k, False: 15.5k]
  ------------------
  135|  5.31k|        uint8_t padbyte = 0;
  136|  5.31k|        add(&padbyte, 1);
  137|  5.31k|    }
  138|  20.8k|    add(val.data() + idx, len - idx);
  139|  20.8k|}
_ZN3rnp4Hash6finishEv:
  143|  68.1k|{
  144|  68.1k|    std::vector<uint8_t> res(size_, 0);
  145|  68.1k|    finish(res.data());
  146|  68.1k|    return res;
  147|  68.1k|}
_ZN3rnp4HashD2Ev:
  158|   331k|{
  159|   331k|}
_ZN3rnp4Hash3algEPKc:
  163|  14.7k|{
  164|  14.7k|    if (!name) {
  ------------------
  |  Branch (164:9): [True: 0, False: 14.7k]
  ------------------
  165|      0|        return PGP_HASH_UNKNOWN;
  166|      0|    }
  167|   145k|    for (size_t i = 0; i < ARRAY_SIZE(hash_alg_map); i++) {
  ------------------
  |  |   34|   145k|#define ARRAY_SIZE(a) (sizeof(a) / sizeof(*(a)))
  ------------------
  |  Branch (167:24): [True: 133k, False: 11.7k]
  ------------------
  168|   133k|        if (rnp::str_case_eq(name, hash_alg_map[i].name)) {
  ------------------
  |  Branch (168:13): [True: 2.94k, False: 130k]
  ------------------
  169|  2.94k|            return hash_alg_map[i].type;
  170|  2.94k|        }
  171|   133k|    }
  172|  11.7k|    return PGP_HASH_UNKNOWN;
  173|  14.7k|}
_ZN3rnp4Hash4sizeE14pgp_hash_alg_t:
  185|   364k|{
  186|   364k|    size_t val = 0;
  187|   364k|    ARRAY_LOOKUP_BY_ID(hash_alg_map, type, len, alg, val);
  ------------------
  |  |   45|   364k|    do {                                                                  \
  |  |   46|   925k|        for (size_t i__ = 0; i__ < ARRAY_SIZE(array); i__++) {            \
  |  |  ------------------
  |  |  |  |   34|   925k|#define ARRAY_SIZE(a) (sizeof(a) / sizeof(*(a)))
  |  |  ------------------
  |  |  |  Branch (46:30): [True: 925k, False: 99]
  |  |  ------------------
  |  |   47|   925k|            if ((array)[i__].id_field == (lookup_value)) {                \
  |  |  ------------------
  |  |  |  Branch (47:17): [True: 364k, False: 561k]
  |  |  ------------------
  |  |   48|   364k|                (ret) = (array)[i__].ret_field;                           \
  |  |   49|   364k|                break;                                                    \
  |  |   50|   364k|            }                                                             \
  |  |   51|   925k|        }                                                                 \
  |  |   52|   364k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (52:14): [Folded, False: 364k]
  |  |  ------------------
  ------------------
  188|   364k|    return val;
  189|   364k|}
_ZN3rnp8HashList7add_algE14pgp_hash_alg_t:
  193|  13.2k|{
  194|  13.2k|    if (!get(alg)) {
  ------------------
  |  Branch (194:9): [True: 6.71k, False: 6.57k]
  ------------------
  195|  6.71k|        hashes.emplace_back(std::make_pair(rnp::Hash::create(alg), std::vector<uint8_t>()));
  196|  6.71k|    }
  197|  13.2k|}
_ZNK3rnp8HashList3getE14pgp_hash_alg_t:
  201|  13.2k|{
  202|  13.2k|    for (auto &hash : hashes) {
  ------------------
  |  Branch (202:21): [True: 12.8k, False: 6.71k]
  ------------------
  203|  12.8k|        if (hash.first->alg() == alg && hash.second.empty()) {
  ------------------
  |  Branch (203:13): [True: 6.67k, False: 6.14k]
  |  Branch (203:41): [True: 6.57k, False: 94]
  ------------------
  204|  6.57k|            return hash.first.get();
  205|  6.57k|        }
  206|  12.8k|    }
  207|  6.71k|    return nullptr;
  208|  13.2k|}
_ZN3rnp8HashList3addEPKvm:
  212|  13.4M|{
  213|  13.5M|    for (auto &hash : hashes) {
  ------------------
  |  Branch (213:21): [True: 13.5M, False: 13.4M]
  ------------------
  214|  13.5M|        hash.first->add(buf, len);
  215|  13.5M|    }
  216|  13.4M|}
_ZN3rnp8HashList7add_algE14pgp_hash_alg_tNSt3__16vectorIhNS2_9allocatorIhEEEE:
  234|  3.09k|{
  235|  3.09k|    if (!get(alg, salt)) {
  ------------------
  |  Branch (235:9): [True: 2.41k, False: 680]
  ------------------
  236|  2.41k|        hashes.emplace_back(std::make_pair(rnp::Hash::create(alg), salt));
  237|  2.41k|        hashes.back().first->add(salt); // consume salt as first input
  238|  2.41k|    }
  239|  3.09k|}
_ZNK3rnp8HashList3getE14pgp_hash_alg_tNSt3__16vectorIhNS2_9allocatorIhEEEE:
  243|  3.09k|{
  244|  9.02k|    for (auto &hash : hashes) {
  ------------------
  |  Branch (244:21): [True: 9.02k, False: 2.41k]
  ------------------
  245|  9.02k|        if (hash.first->alg() == alg && hash.second == salt) {
  ------------------
  |  Branch (245:13): [True: 7.51k, False: 1.50k]
  |  Branch (245:41): [True: 680, False: 6.83k]
  ------------------
  246|    680|            return hash.first.get();
  247|    680|        }
  248|  9.02k|    }
  249|  2.41k|    return NULL;
  250|  3.09k|}

_ZN3rnp11Hash_SHA1CDC2Ev:
   35|   279k|Hash_SHA1CD::Hash_SHA1CD() : Hash(PGP_HASH_SHA1)
   36|   279k|{
   37|       |    assert(size_ == 20);
   38|   279k|    SHA1DCInit(&ctx_);
   39|   279k|}
_ZN3rnp11Hash_SHA1CDD2Ev:
   47|   279k|{
   48|   279k|}
_ZN3rnp11Hash_SHA1CD6createEv:
   52|   279k|{
   53|   279k|    return std::unique_ptr<Hash_SHA1CD>(new Hash_SHA1CD());
   54|   279k|}
_ZN3rnp11Hash_SHA1CD3addEPKvm:
   69|  1.67M|{
   70|  1.67M|    SHA1DCUpdate(&ctx_, (const char *) buf, len);
   71|  1.67M|}
_ZN3rnp11Hash_SHA1CD6finishEPh:
   78|   278k|{
   79|   278k|    unsigned char fixed_digest[20];
   80|   278k|    int           res = SHA1DCFinal(fixed_digest, &ctx_);
   81|   278k|    if (res && digest) {
  ------------------
  |  Branch (81:9): [True: 0, False: 278k]
  |  Branch (81:16): [True: 0, False: 0]
  ------------------
   82|       |        /* Show warning only if digest is non-null */
   83|      0|        RNP_LOG("Warning! SHA1 collision detected and mitigated.");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   84|      0|    }
   85|       |    /* On collision fixed_digest holds the safe (mitigated) hash, never leave digest unset */
   86|   278k|    if (digest) {
  ------------------
  |  Branch (86:9): [True: 278k, False: 0]
  ------------------
   87|   278k|        memcpy(digest, fixed_digest, 20);
   88|   278k|    }
   89|   278k|}

_ZNK23pgp_kyber_private_key_t11get_encodedEv:
   60|     44|    {
   61|     44|        return key_encoded_.unlock();
   62|     44|    };
_ZNK23pgp_kyber_private_key_t5paramEv:
   66|     44|    {
   67|     44|        return kyber_mode_;
   68|     44|    }
_ZNK22pgp_kyber_public_key_t11get_encodedEv:
   95|     80|    {
   96|     80|        return key_encoded_;
   97|     80|    };
_ZN22pgp_kyber_public_key_tC2Ev:
   82|    520|    pgp_kyber_public_key_t() = default;

_Z18kyber_privkey_sizev:
   34|     51|{
   35|       |    /* seed format */
   36|     51|    return 64;
   37|     51|}
_Z17kyber_pubkey_size17kyber_parameter_e:
   41|    375|{
   42|    375|    switch (parameter) {
   43|    263|    case kyber_768:
  ------------------
  |  Branch (43:5): [True: 263, False: 112]
  ------------------
   44|    263|        return 1184;
   45|    112|    case kyber_1024:
  ------------------
  |  Branch (45:5): [True: 112, False: 263]
  ------------------
   46|    112|        return 1568;
   47|      0|    default:
  ------------------
  |  Branch (47:5): [True: 0, False: 375]
  ------------------
   48|      0|        RNP_LOG("invalid parameter given");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   49|      0|        throw rnp::rnp_exception(RNP_ERROR_BAD_PARAMETERS);
   50|    375|    }
   51|    375|}
_Z21kyber_ciphertext_size17kyber_parameter_e:
   55|    656|{
   56|    656|    switch (parameter) {
   57|    511|    case kyber_768:
  ------------------
  |  Branch (57:5): [True: 511, False: 145]
  ------------------
   58|    511|        return 1088;
   59|    145|    case kyber_1024:
  ------------------
  |  Branch (59:5): [True: 145, False: 511]
  ------------------
   60|    145|        return 1568;
   61|      0|    default:
  ------------------
  |  Branch (61:5): [True: 0, False: 656]
  ------------------
   62|      0|        RNP_LOG("invalid parameter given");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   63|      0|        throw rnp::rnp_exception(RNP_ERROR_BAD_PARAMETERS);
   64|    656|    }
   65|    656|}
_ZN22pgp_kyber_public_key_tC2EPKhm17kyber_parameter_e:
   70|    120|    : key_encoded_(key_encoded, key_encoded + key_encoded_len), kyber_mode_(mode),
   71|    120|      is_initialized_(true)
   72|    120|{
   73|    120|}
_ZN23pgp_kyber_private_key_tC2EPKhm17kyber_parameter_e:
   84|     20|    : key_encoded_(key_encoded, key_encoded + key_encoded_len), kyber_mode_(mode),
   85|     20|      is_initialized_(true)
   86|     20|{
   87|     20|}
_ZN23pgp_kyber_private_key_tC2ERKNSt3__16vectorIhNS0_9allocatorIhEEEE17kyber_parameter_e:
   91|     44|    : key_encoded_(key_encoded), kyber_mode_(mode), is_initialized_(true)
   92|     44|{
   93|     44|}

_ZN30pgp_kyber_ecdh_composite_key_tD2Ev:
   47|  1.83k|{
   48|  1.83k|}
_ZNK30pgp_kyber_ecdh_composite_key_t20initialized_or_throwEv:
   52|     80|{
   53|     80|    if (!is_initialized()) {
  ------------------
  |  Branch (53:9): [True: 0, False: 80]
  ------------------
   54|      0|        RNP_LOG("Trying to use uninitialized kyber-ecdh key");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   55|      0|        throw rnp::rnp_exception(RNP_ERROR_GENERIC); /* TODO better return error */
   56|      0|    }
   57|     80|}
_ZN30pgp_kyber_ecdh_composite_key_t23ecdh_curve_privkey_sizeE11pgp_curve_t:
   88|     71|{
   89|     71|    switch (curve) {
   90|      9|    case PGP_CURVE_25519:
  ------------------
  |  Branch (90:5): [True: 9, False: 62]
  ------------------
   91|      9|        return 32;
   92|      0|#if defined(ENABLE_CRYPTO_REFRESH)
   93|      9|    case PGP_CURVE_448:
  ------------------
  |  Branch (93:5): [True: 9, False: 62]
  ------------------
   94|      9|        return 56;
   95|      0|#endif
   96|     18|    case PGP_CURVE_NIST_P_384:
  ------------------
  |  Branch (96:5): [True: 18, False: 53]
  ------------------
   97|     18|        return 48;
   98|     19|    case PGP_CURVE_NIST_P_521:
  ------------------
  |  Branch (98:5): [True: 19, False: 52]
  ------------------
   99|     19|        return 66;
  100|     15|    case PGP_CURVE_BP384:
  ------------------
  |  Branch (100:5): [True: 15, False: 56]
  ------------------
  101|     15|        return 48;
  102|      1|    case PGP_CURVE_BP512:
  ------------------
  |  Branch (102:5): [True: 1, False: 70]
  ------------------
  103|      1|        return 64;
  104|      0|    default:
  ------------------
  |  Branch (104:5): [True: 0, False: 71]
  ------------------
  105|      0|        RNP_LOG("invalid curve given");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  106|      0|        throw rnp::rnp_exception(RNP_ERROR_BAD_PARAMETERS);
  107|     71|    }
  108|     71|}
_ZN30pgp_kyber_ecdh_composite_key_t22ecdh_curve_pubkey_sizeE11pgp_curve_t:
  112|    495|{
  113|    495|    switch (curve) {
  114|    130|    case PGP_CURVE_25519:
  ------------------
  |  Branch (114:5): [True: 130, False: 365]
  ------------------
  115|    130|        return 32;
  116|      0|#if defined(ENABLE_CRYPTO_REFRESH)
  117|     38|    case PGP_CURVE_448:
  ------------------
  |  Branch (117:5): [True: 38, False: 457]
  ------------------
  118|     38|        return 56;
  119|      0|#endif
  120|    124|    case PGP_CURVE_NIST_P_384:
  ------------------
  |  Branch (120:5): [True: 124, False: 371]
  ------------------
  121|    124|        return 97;
  122|     85|    case PGP_CURVE_NIST_P_521:
  ------------------
  |  Branch (122:5): [True: 85, False: 410]
  ------------------
  123|     85|        return 133;
  124|     84|    case PGP_CURVE_BP384:
  ------------------
  |  Branch (124:5): [True: 84, False: 411]
  ------------------
  125|     84|        return 97;
  126|     34|    case PGP_CURVE_BP512:
  ------------------
  |  Branch (126:5): [True: 34, False: 461]
  ------------------
  127|     34|        return 129;
  128|      0|    default:
  ------------------
  |  Branch (128:5): [True: 0, False: 495]
  ------------------
  129|      0|        RNP_LOG("invalid curve given");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  130|      0|        throw rnp::rnp_exception(RNP_ERROR_BAD_PARAMETERS);
  131|    495|    }
  132|    495|}
_ZN30pgp_kyber_ecdh_composite_key_t25ecdh_curve_ephemeral_sizeE11pgp_curve_t:
  136|    656|{
  137|    656|    switch (curve) {
  138|     22|    case PGP_CURVE_25519:
  ------------------
  |  Branch (138:5): [True: 22, False: 634]
  ------------------
  139|     22|        return 32;
  140|      0|#if defined(ENABLE_CRYPTO_REFRESH)
  141|     71|    case PGP_CURVE_448:
  ------------------
  |  Branch (141:5): [True: 71, False: 585]
  ------------------
  142|     71|        return 56;
  143|      0|#endif
  144|    454|    case PGP_CURVE_NIST_P_384:
  ------------------
  |  Branch (144:5): [True: 454, False: 202]
  ------------------
  145|    454|        return 97;
  146|     38|    case PGP_CURVE_NIST_P_521:
  ------------------
  |  Branch (146:5): [True: 38, False: 618]
  ------------------
  147|     38|        return 133;
  148|     35|    case PGP_CURVE_BP384:
  ------------------
  |  Branch (148:5): [True: 35, False: 621]
  ------------------
  149|     35|        return 97;
  150|     36|    case PGP_CURVE_BP512:
  ------------------
  |  Branch (150:5): [True: 36, False: 620]
  ------------------
  151|     36|        return 129;
  152|      0|    default:
  ------------------
  |  Branch (152:5): [True: 0, False: 656]
  ------------------
  153|      0|        RNP_LOG("invalid curve given");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  154|      0|        throw rnp::rnp_exception(RNP_ERROR_BAD_PARAMETERS);
  155|    656|    }
  156|    656|}
_ZN30pgp_kyber_ecdh_composite_key_t18pk_alg_to_kyber_idE16pgp_pubkey_alg_t:
  184|  1.17k|{
  185|  1.17k|    switch (pk_alg) {
  186|    155|    case PGP_PKA_KYBER768_X25519:
  ------------------
  |  Branch (186:5): [True: 155, False: 1.01k]
  ------------------
  187|    155|#if defined(ENABLE_CRYPTO_REFRESH)
  188|    155|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|    155|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
  189|    738|    case PGP_PKA_KYBER768_P384:
  ------------------
  |  Branch (189:5): [True: 583, False: 588]
  ------------------
  190|    738|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|    738|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
  191|    861|    case PGP_PKA_KYBER768_BP384:
  ------------------
  |  Branch (191:5): [True: 123, False: 1.04k]
  ------------------
  192|    861|#endif
  193|    861|        return kyber_768;
  194|      0|#if defined(ENABLE_CRYPTO_REFRESH)
  195|    111|    case PGP_PKA_KYBER1024_X448:
  ------------------
  |  Branch (195:5): [True: 111, False: 1.06k]
  ------------------
  196|    111|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|    111|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
  197|    181|    case PGP_PKA_KYBER1024_BP512:
  ------------------
  |  Branch (197:5): [True: 70, False: 1.10k]
  ------------------
  198|    181|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|    181|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
  199|    310|    case PGP_PKA_KYBER1024_P521:
  ------------------
  |  Branch (199:5): [True: 129, False: 1.04k]
  ------------------
  200|    310|        return kyber_1024;
  201|      0|#endif
  202|      0|    default:
  ------------------
  |  Branch (202:5): [True: 0, False: 1.17k]
  ------------------
  203|      0|        RNP_LOG("invalid PK alg given");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  204|      0|        throw rnp::rnp_exception(RNP_ERROR_BAD_PARAMETERS);
  205|  1.17k|    }
  206|  1.17k|}
_ZN30pgp_kyber_ecdh_composite_key_t18pk_alg_to_curve_idE16pgp_pubkey_alg_t:
  210|  1.36k|{
  211|  1.36k|    switch (pk_alg) {
  212|    184|    case PGP_PKA_KYBER768_X25519:
  ------------------
  |  Branch (212:5): [True: 184, False: 1.17k]
  ------------------
  213|    184|        return PGP_CURVE_25519;
  214|      0|#if defined(ENABLE_CRYPTO_REFRESH)
  215|    631|    case PGP_PKA_KYBER768_P384:
  ------------------
  |  Branch (215:5): [True: 631, False: 731]
  ------------------
  216|    631|        return PGP_CURVE_NIST_P_384;
  217|    163|    case PGP_PKA_KYBER768_BP384:
  ------------------
  |  Branch (217:5): [True: 163, False: 1.19k]
  ------------------
  218|    163|        return PGP_CURVE_BP384;
  219|    132|    case PGP_PKA_KYBER1024_X448:
  ------------------
  |  Branch (219:5): [True: 132, False: 1.23k]
  ------------------
  220|    132|        return PGP_CURVE_448;
  221|     79|    case PGP_PKA_KYBER1024_BP512:
  ------------------
  |  Branch (221:5): [True: 79, False: 1.28k]
  ------------------
  222|     79|        return PGP_CURVE_BP512;
  223|    173|    case PGP_PKA_KYBER1024_P521:
  ------------------
  |  Branch (223:5): [True: 173, False: 1.18k]
  ------------------
  224|    173|        return PGP_CURVE_NIST_P_521;
  225|      0|#endif
  226|      0|    default:
  ------------------
  |  Branch (226:5): [True: 0, False: 1.36k]
  ------------------
  227|      0|        RNP_LOG("invalid PK alg given");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  228|      0|        throw rnp::rnp_exception(RNP_ERROR_BAD_PARAMETERS);
  229|  1.36k|    }
  230|  1.36k|}
_ZN38pgp_kyber_ecdh_composite_private_key_tC2EPKhm16pgp_pubkey_alg_t:
  234|     20|    : pk_alg_(pk_alg)
  235|     20|{
  236|     20|    parse_component_keys(std::vector<uint8_t>(key_encoded, key_encoded + key_encoded_len));
  237|     20|}
_ZN38pgp_kyber_ecdh_composite_private_key_taSERKS_:
  271|    469|{
  272|    469|    pgp_kyber_ecdh_composite_key_t::operator=(other);
  273|    469|    pk_alg_ = other.pk_alg_;
  274|    469|    if (other.is_initialized() && other.kyber_key_) {
  ------------------
  |  Branch (274:9): [True: 44, False: 425]
  |  Branch (274:35): [True: 44, False: 0]
  ------------------
  275|     44|        kyber_key_ = std::unique_ptr<pgp_kyber_private_key_t>(new pgp_kyber_private_key_t(
  276|     44|          other.kyber_key_->get_encoded(), other.kyber_key_->param()));
  277|     44|    }
  278|    469|    if (other.is_initialized() && other.ecdh_key_) {
  ------------------
  |  Branch (278:9): [True: 44, False: 425]
  |  Branch (278:35): [True: 44, False: 0]
  ------------------
  279|     44|        ecdh_key_ = std::unique_ptr<ecdh_kem_private_key_t>(new ecdh_kem_private_key_t(
  280|     44|          other.ecdh_key_->get_encoded(), other.ecdh_key_->get_curve()));
  281|     44|    }
  282|       |
  283|    469|    return *this;
  284|    469|}
_ZN38pgp_kyber_ecdh_composite_private_key_tC2ERKS_:
  288|    449|{
  289|    449|    *this = other;
  290|    449|}
_ZN38pgp_kyber_ecdh_composite_private_key_t12encoded_sizeE16pgp_pubkey_alg_t:
  294|     51|{
  295|     51|    pgp_curve_t curve = pk_alg_to_curve_id(pk_alg);
  296|     51|    return ecdh_curve_privkey_size(curve) + kyber_privkey_size();
  297|     51|}
_ZN38pgp_kyber_ecdh_composite_private_key_t20parse_component_keysENSt3__16vectorIhNS0_9allocatorIhEEEE:
  301|     20|{
  302|     20|    if (key_encoded.size() != encoded_size(pk_alg_)) {
  ------------------
  |  Branch (302:9): [True: 0, False: 20]
  ------------------
  303|      0|        RNP_LOG("ML-KEM composite key format invalid: length mismatch");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  304|      0|        throw rnp::rnp_exception(RNP_ERROR_BAD_PARAMETERS);
  305|      0|    }
  306|       |
  307|     20|    kyber_parameter_e kyber_param = pk_alg_to_kyber_id(pk_alg_);
  308|     20|    pgp_curve_t       ecdh_curve = pk_alg_to_curve_id(pk_alg_);
  309|     20|    size_t            split_at = ecdh_curve_privkey_size(pk_alg_to_curve_id(pk_alg_));
  310|       |
  311|     20|    kyber_key_ = std::unique_ptr<pgp_kyber_private_key_t>(new pgp_kyber_private_key_t(
  312|     20|      key_encoded.data() + split_at, key_encoded.size() - split_at, kyber_param));
  313|     20|    ecdh_key_ = std::unique_ptr<ecdh_kem_private_key_t>(
  314|     20|      new ecdh_kem_private_key_t(key_encoded.data(), split_at, ecdh_curve));
  315|       |
  316|     20|    is_initialized_ = true;
  317|     20|}
_ZN38pgp_kyber_ecdh_composite_private_key_t12secure_clearEv:
  444|     96|{
  445|       |    // private key buffer is stored in a secure_vector and will be securely erased by the
  446|       |    // destructor.
  447|     96|    kyber_key_.reset();
  448|     96|    ecdh_key_.reset();
  449|     96|    is_initialized_ = false;
  450|     96|}
_ZN37pgp_kyber_ecdh_composite_public_key_tC2ERKNSt3__16vectorIhNS0_9allocatorIhEEEE16pgp_pubkey_alg_t:
  474|    120|    : pk_alg_(pk_alg)
  475|    120|{
  476|    120|    parse_component_keys(key_encoded);
  477|    120|}
_ZN37pgp_kyber_ecdh_composite_public_key_t12encoded_sizeE16pgp_pubkey_alg_t:
  496|    375|{
  497|    375|    kyber_parameter_e kyber_param = pk_alg_to_kyber_id(pk_alg);
  498|    375|    pgp_curve_t       curve = pk_alg_to_curve_id(pk_alg);
  499|    375|    return ecdh_curve_pubkey_size(curve) + kyber_pubkey_size(kyber_param);
  500|    375|}
_ZN37pgp_kyber_ecdh_composite_public_key_t20parse_component_keysENSt3__16vectorIhNS0_9allocatorIhEEEE:
  504|    120|{
  505|    120|    if (key_encoded.size() != encoded_size(pk_alg_)) {
  ------------------
  |  Branch (505:9): [True: 0, False: 120]
  ------------------
  506|      0|        RNP_LOG("ML-KEM composite key format invalid: length mismatch");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  507|      0|        throw rnp::rnp_exception(RNP_ERROR_BAD_PARAMETERS);
  508|      0|    }
  509|       |
  510|    120|    kyber_parameter_e kyber_param = pk_alg_to_kyber_id(pk_alg_);
  511|    120|    pgp_curve_t       ecdh_curve = pk_alg_to_curve_id(pk_alg_);
  512|    120|    size_t            split_at = ecdh_curve_pubkey_size(pk_alg_to_curve_id(pk_alg_));
  513|       |
  514|    120|    kyber_key_ = pgp_kyber_public_key_t(
  515|    120|      key_encoded.data() + split_at, key_encoded.size() - split_at, kyber_param);
  516|    120|    ecdh_key_ = ecdh_kem_public_key_t(key_encoded.data(), split_at, ecdh_curve);
  517|       |
  518|    120|    is_initialized_ = true;
  519|    120|}
_ZNK37pgp_kyber_ecdh_composite_public_key_t11get_encodedEv:
  612|     80|{
  613|     80|    initialized_or_throw();
  614|     80|    std::vector<uint8_t> result;
  615|     80|    std::vector<uint8_t> ecdh_key_encoded = ecdh_key_.get_encoded();
  616|     80|    std::vector<uint8_t> kyber_key_encoded = kyber_key_.get_encoded();
  617|       |
  618|     80|    result.insert(result.end(), std::begin(ecdh_key_encoded), std::end(ecdh_key_encoded));
  619|     80|    result.insert(result.end(), std::begin(kyber_key_encoded), std::end(kyber_key_encoded));
  620|     80|    return result;
  621|     80|};

_ZNK30pgp_kyber_ecdh_composite_key_t14is_initializedEv:
   61|  1.01k|    {
   62|  1.01k|        return is_initialized_;
   63|  1.01k|    }
_ZN38pgp_kyber_ecdh_composite_private_key_tC2Ev:
   98|    400|    pgp_kyber_ecdh_composite_private_key_t() = default;
_ZN37pgp_kyber_ecdh_composite_public_key_tC2Ev:
  142|    400|    pgp_kyber_ecdh_composite_public_key_t() = default;

_Z12secure_clearPvm:
   35|  2.48M|{
   36|  2.48M|    botan_scrub_mem(vp, size);
   37|  2.48M|}
_ZN3rnp10hex_encodeEPKhmPcmNS_9HexFormatE:
   43|  31.7k|{
   44|  31.7k|    uint32_t flags = format == HexFormat::Lowercase ? BOTAN_FFI_HEX_LOWER_CASE : 0;
  ------------------
  |  Branch (44:22): [True: 31.7k, False: 0]
  ------------------
   45|       |
   46|  31.7k|    if (hex_len < (buf_len * 2 + 1)) {
  ------------------
  |  Branch (46:9): [True: 0, False: 31.7k]
  ------------------
   47|      0|        return false;
   48|      0|    }
   49|  31.7k|    hex[buf_len * 2] = '\0';
   50|  31.7k|    return botan_hex_encode(buf, buf_len, hex, flags) == 0;
   51|  31.7k|}
_ZN3rnp10hex_decodeEPKcPhm:
   55|   252k|{
   56|   252k|    size_t hexlen = strlen(hex);
   57|       |
   58|       |    /* check for 0x prefix */
   59|   252k|    if ((hexlen >= 2) && (hex[0] == '0') && ((hex[1] == 'x') || (hex[1] == 'X'))) {
  ------------------
  |  Branch (59:9): [True: 252k, False: 0]
  |  Branch (59:26): [True: 252k, False: 0]
  |  Branch (59:46): [True: 252k, False: 0]
  |  Branch (59:65): [True: 0, False: 0]
  ------------------
   60|   252k|        hex += 2;
   61|   252k|        hexlen -= 2;
   62|   252k|    }
   63|   252k|    if (botan_hex_decode(hex, hexlen, buf, &buf_len) != 0) {
  ------------------
  |  Branch (63:9): [True: 0, False: 252k]
  ------------------
   64|      0|        RNP_LOG("Hex decode failed on string: %s", hex);
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   65|      0|        return 0;
   66|      0|    }
   67|   252k|    return buf_len;
   68|   252k|}

_ZN3rnp10bin_to_hexEPKhmNS_9HexFormatE:
  222|  31.7k|{
  223|  31.7k|    std::string res(len * 2 + 1, '\0');
  224|  31.7k|    (void) hex_encode(data, len, &res.front(), res.size(), format);
  225|  31.7k|    res.resize(len * 2);
  226|  31.7k|    return res;
  227|  31.7k|}
_ZN3rnp10hex_to_binERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE:
  237|   252k|{
  238|   252k|    if (str.empty() || !is_hex(str)) {
  ------------------
  |  Branch (238:9): [True: 0, False: 252k]
  |  Branch (238:24): [True: 0, False: 252k]
  ------------------
  239|      0|        return {};
  240|      0|    }
  241|       |    /* 1 extra char for case of non-even input , 1 for terminating zero */
  242|   252k|    std::vector<uint8_t> res(str.size() / 2 + 2);
  243|   252k|    size_t               len = hex_decode(str.c_str(), res.data(), res.size());
  244|   252k|    res.resize(len);
  245|   252k|    return res;
  246|   252k|}
_ZN3rnp16secure_allocatorIhE8allocateEm:
   67|  3.18M|    {
   68|  3.18M|        if (!n) {
  ------------------
  |  Branch (68:13): [True: 0, False: 3.18M]
  ------------------
   69|      0|            return nullptr;
   70|      0|        }
   71|  3.18M|        T *ptr = static_cast<T *>(std::calloc(n, sizeof(T)));
   72|  3.18M|        if (!ptr)
  ------------------
  |  Branch (72:13): [True: 0, False: 3.18M]
  ------------------
   73|      0|            throw std::bad_alloc();
   74|  3.18M|        return ptr;
   75|  3.18M|    }
_ZN3rnp16secure_allocatorIhE10deallocateEPhm:
   79|  3.18M|    {
   80|  3.18M|        if (!p) {
  ------------------
  |  Branch (80:13): [True: 0, False: 3.18M]
  ------------------
   81|      0|            return;
   82|      0|        }
   83|  3.18M|        botan_scrub_mem(p, n * sizeof(T));
   84|  3.18M|        std::free(p);
   85|  3.18M|    }
_ZN3rnp12secure_arrayIcLm256EEC2Ev:
  165|  2.36k|    secure_array() : data_({0})
  166|  2.36k|    {
  167|  2.36k|    }
_ZN3rnp12secure_arrayIcLm256EE4dataEv:
  171|  7.79k|    {
  172|  7.79k|        return &data_[0];
  173|  7.79k|    }
_ZNK3rnp12secure_arrayIcLm256EE4sizeEv:
  183|  3.90k|    {
  184|  3.90k|        return data_.size();
  185|  3.90k|    }
_ZN3rnp12secure_arrayIhLm33EEC2Ev:
  165|  74.3k|    secure_array() : data_({0})
  166|  74.3k|    {
  167|  74.3k|    }
_ZN3rnp12secure_arrayIhLm33EE4dataEv:
  171|   154k|    {
  172|   154k|        return &data_[0];
  173|   154k|    }
_ZN3rnp12secure_arrayIhLm33EEixEm:
  195|  21.7k|    {
  196|  21.7k|        return data_[idx];
  197|  21.7k|    }
_ZN3rnp12secure_arrayIhLm33EED2Ev:
  200|  74.3k|    {
  201|  74.3k|#if defined(CRYPTO_BACKEND_BOTAN)
  202|  74.3k|        botan_scrub_mem(&data_[0], sizeof(data_));
  203|       |#elif defined(CRYPTO_BACKEND_OPENSSL)
  204|       |        OPENSSL_cleanse(&data_[0], sizeof(data_));
  205|       |#else
  206|       |#error "Unsupported crypto backend."
  207|       |#endif
  208|  74.3k|    }
_ZN3rnp12secure_arrayIcLm256EED2Ev:
  200|  2.36k|    {
  201|  2.36k|#if defined(CRYPTO_BACKEND_BOTAN)
  202|  2.36k|        botan_scrub_mem(&data_[0], sizeof(data_));
  203|       |#elif defined(CRYPTO_BACKEND_OPENSSL)
  204|       |        OPENSSL_cleanse(&data_[0], sizeof(data_));
  205|       |#else
  206|       |#error "Unsupported crypto backend."
  207|       |#endif
  208|  2.36k|    }

_ZNK3pgp3mpi4bitsEv:
   37|   283k|{
   38|   283k|    size_t  bits = 0;
   39|   283k|    size_t  idx = 0;
   40|   283k|    uint8_t bt;
   41|       |
   42|   401k|    for (idx = 0; (idx < size()) && !data_[idx]; idx++)
  ------------------
  |  Branch (42:19): [True: 394k, False: 6.34k]
  |  Branch (42:37): [True: 117k, False: 277k]
  ------------------
   43|   117k|        ;
   44|       |
   45|   283k|    if (idx < size()) {
  ------------------
  |  Branch (45:9): [True: 277k, False: 6.34k]
  ------------------
   46|  2.06M|        for (bits = (size() - idx - 1) << 3, bt = data_[idx]; bt; bits++, bt = bt >> 1)
  ------------------
  |  Branch (46:63): [True: 1.78M, False: 277k]
  ------------------
   47|  1.78M|            ;
   48|   277k|    }
   49|       |
   50|   283k|    return bits;
   51|   283k|}
_ZNK3pgp3mpi4sizeEv:
   55|  1.43M|{
   56|  1.43M|    return data_.size();
   57|  1.43M|}
_ZN3pgp3mpi4dataEv:
   61|   387k|{
   62|   387k|    return data_.data();
   63|   387k|}
_ZNK3pgp3mpi4dataEv:
   67|   349k|{
   68|   349k|    return data_.data();
   69|   349k|}
_ZN3pgp3mpiixEm:
   95|  42.0k|{
   96|  42.0k|    return data_.at(idx);
   97|  42.0k|}
_ZNK3pgp3mpiixEm:
  101|   633k|{
  102|   633k|    return data_.at(idx);
  103|   633k|}
_ZN3pgp3mpi6assignEPKhm:
  107|   168k|{
  108|   168k|    data_.assign(val, val + size);
  109|   168k|}
_ZNK3pgp3mpi4copyEPh:
  113|  37.1k|{
  114|  37.1k|    memcpy(dst, data_.data(), data_.size());
  115|  37.1k|}
_ZN3pgp3mpi6resizeEmh:
  119|   345k|{
  120|   345k|    data_.resize(size, fill);
  121|   345k|}
_ZN3pgp3mpi6forgetEv:
  125|   813k|{
  126|   813k|    secure_clear(data_.data(), data_.size());
  127|   813k|    data_.resize(0);
  128|   813k|}

_ZN3rnp3RNGC2ENS0_4TypeE:
   34|  15.6k|{
   35|  15.6k|    if (botan_rng_init(&botan_rng, type == Type::DRBG ? "user" : NULL)) {
  ------------------
  |  Branch (35:9): [True: 0, False: 15.6k]
  |  Branch (35:36): [True: 15.6k, False: 0]
  ------------------
   36|      0|        throw rnp::rnp_exception(RNP_ERROR_RNG);
   37|      0|    }
   38|  15.6k|}
_ZN3rnp3RNGD2Ev:
   41|  15.6k|{
   42|  15.6k|    (void) botan_rng_destroy(botan_rng);
   43|  15.6k|}

_ZNK3pgp3rsa3Key12verify_pkcs1ERKNS0_9SignatureE14pgp_hash_alg_tRKNSt3__16vectorIhN3rnp16secure_allocatorIhEEEE:
  115|  4.53k|{
  116|  4.53k|    rnp::botan::Pubkey rsa_key;
  117|  4.53k|    if (!load_public_key(rsa_key, *this)) {
  ------------------
  |  Branch (117:9): [True: 194, False: 4.33k]
  ------------------
  118|    194|        RNP_LOG("failed to load key");
  ------------------
  |  |   84|    194|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    194|    do {                                                                                 \
  |  |  |  |   77|    194|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 194, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    194|            break;                                                                       \
  |  |  |  |   79|    194|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  119|    194|        return RNP_ERROR_OUT_OF_MEMORY;
  120|    194|    }
  121|       |
  122|  4.33k|    char pad[64] = {0};
  123|  4.33k|    snprintf(
  124|  4.33k|      pad, sizeof(pad), "EMSA-PKCS1-v1_5(Raw,%s)", rnp::Hash_Botan::name_backend(hash_alg));
  125|       |
  126|  4.33k|    rnp::botan::op::Verify verify_op;
  127|  4.33k|    if (botan_pk_op_verify_create(&verify_op.get(), rsa_key.get(), pad, 0) ||
  ------------------
  |  Branch (127:9): [True: 0, False: 4.33k]
  ------------------
  128|  4.33k|        botan_pk_op_verify_update(verify_op.get(), hash.data(), hash.size())) {
  ------------------
  |  Branch (128:9): [True: 0, False: 4.33k]
  ------------------
  129|      0|        return RNP_ERROR_SIGNATURE_INVALID;
  130|      0|    }
  131|  4.33k|    if (sig.s.size() < n.size()) {
  ------------------
  |  Branch (131:9): [True: 305, False: 4.03k]
  ------------------
  132|       |        /* Botan 3.13+ requires signature to be exactly the length of the modulus, while
  133|       |         * OpenPGP MPIs have leading zero bytes stripped. */
  134|    305|        rnp::secure_bytes padded(n.size() - sig.s.size(), 0);
  135|    305|        padded.insert(padded.end(), sig.s.data(), sig.s.data() + sig.s.size());
  136|    305|        if (botan_pk_op_verify_finish(verify_op.get(), padded.data(), padded.size())) {
  ------------------
  |  Branch (136:13): [True: 305, False: 0]
  ------------------
  137|    305|            return RNP_ERROR_SIGNATURE_INVALID;
  138|    305|        }
  139|      0|        return RNP_SUCCESS;
  140|    305|    }
  141|  4.03k|    if (botan_pk_op_verify_finish(verify_op.get(), sig.s.data(), sig.s.size())) {
  ------------------
  |  Branch (141:9): [True: 3.98k, False: 48]
  ------------------
  142|  3.98k|        return RNP_ERROR_SIGNATURE_INVALID;
  143|  3.98k|    }
  144|     48|    return RNP_SUCCESS;
  145|  4.03k|}
rsa.cpp:_ZN3pgp3rsaL15load_public_keyERN3rnp5botan6PubkeyERKNS0_3KeyE:
   41|  4.53k|{
   42|  4.53k|    rnp::bn n(key.n);
   43|  4.53k|    rnp::bn e(key.e);
   44|       |
   45|  4.53k|    if (!n || !e) {
  ------------------
  |  Branch (45:9): [True: 0, False: 4.53k]
  |  Branch (45:15): [True: 0, False: 4.53k]
  ------------------
   46|      0|        RNP_LOG("out of memory");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   47|      0|        return false;
   48|      0|    }
   49|  4.53k|    return !botan_pubkey_load_rsa(&bkey.get(), n.get(), e.get());
   50|  4.53k|}

_ZN3pgp3rsa3Key12clear_secretEv:
   61|   132k|    {
   62|   132k|        d.forget();
   63|   132k|        p.forget();
   64|   132k|        q.forget();
   65|   132k|        u.forget();
   66|   132k|    }
_ZN3pgp3rsa3KeyD2Ev:
   69|   120k|    {
   70|   120k|        clear_secret();
   71|   120k|    }

_Z18pgp_s2k_derive_keyP9pgp_s2k_tPKcPhi:
   55|  71.6k|{
   56|  71.6k|    uint8_t *saltptr = NULL;
   57|  71.6k|    unsigned iterations = 1;
   58|       |
   59|  71.6k|    switch (s2k->specifier) {
   60|  62.6k|    case PGP_S2KS_SIMPLE:
  ------------------
  |  Branch (60:5): [True: 62.6k, False: 8.98k]
  ------------------
   61|  62.6k|        break;
   62|    997|    case PGP_S2KS_SALTED:
  ------------------
  |  Branch (62:5): [True: 997, False: 70.6k]
  ------------------
   63|    997|        saltptr = s2k->salt;
   64|    997|        break;
   65|  1.28k|    case PGP_S2KS_ITERATED_AND_SALTED:
  ------------------
  |  Branch (65:5): [True: 1.28k, False: 70.3k]
  ------------------
   66|  1.28k|        saltptr = s2k->salt;
   67|  1.28k|        if (s2k->iterations < 256) {
  ------------------
  |  Branch (67:13): [True: 1.28k, False: 0]
  ------------------
   68|  1.28k|            iterations = pgp_s2k_decode_iterations(s2k->iterations);
   69|  1.28k|        } else {
   70|      0|            iterations = s2k->iterations;
   71|      0|        }
   72|  1.28k|        break;
   73|      0|#if defined(ENABLE_CRYPTO_REFRESH)
   74|  1.17k|    case PGP_S2KS_ARGON2:
  ------------------
  |  Branch (74:5): [True: 1.17k, False: 70.4k]
  ------------------
   75|  1.17k|        saltptr = s2k->salt;
   76|  1.17k|        break;
   77|      0|#endif
   78|  5.52k|    default:
  ------------------
  |  Branch (78:5): [True: 5.52k, False: 66.1k]
  ------------------
   79|  5.52k|        return false;
   80|  71.6k|    }
   81|       |
   82|  66.1k|#if defined(ENABLE_CRYPTO_REFRESH)
   83|  66.1k|    if (s2k->specifier == PGP_S2KS_ARGON2) {
  ------------------
  |  Branch (83:9): [True: 1.17k, False: 64.9k]
  ------------------
   84|  1.17k|        if (pgp_s2k_argon2(key,
  ------------------
  |  Branch (84:13): [True: 601, False: 576]
  ------------------
   85|  1.17k|                           keysize,
   86|  1.17k|                           password,
   87|  1.17k|                           saltptr,
   88|  1.17k|                           s2k->argon2_t,
   89|  1.17k|                           s2k->argon2_p,
   90|  1.17k|                           s2k->argon2_encoded_m)) {
   91|    601|            RNP_LOG("s2k argon2 failed");
  ------------------
  |  |   84|    601|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    601|    do {                                                                                 \
  |  |  |  |   77|    601|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 601, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    601|            break;                                                                       \
  |  |  |  |   79|    601|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   92|    601|            return false;
   93|    601|        }
   94|  1.17k|    } else
   95|  64.9k|#endif
   96|  64.9k|      if (pgp_s2k_iterated(s2k->hash_alg, key, keysize, password, saltptr, iterations)) {
  ------------------
  |  Branch (96:11): [True: 5.60k, False: 59.3k]
  ------------------
   97|  5.60k|        RNP_LOG("s2k failed");
  ------------------
  |  |   84|  5.60k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  5.60k|    do {                                                                                 \
  |  |  |  |   77|  5.60k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 5.60k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  5.60k|            break;                                                                       \
  |  |  |  |   79|  5.60k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   98|  5.60k|        return false;
   99|  5.60k|    }
  100|       |
  101|  59.8k|    return true;
  102|  66.1k|}
_Z14pgp_s2k_argon2PhmPKcPKhhhh:
  114|  1.17k|{
  115|  1.17k|    const size_t argon2_salt_size = 16;
  116|       |
  117|       |    /* check constraints on p and t */
  118|  1.17k|    if (!p || !t) {
  ------------------
  |  Branch (118:9): [True: 24, False: 1.15k]
  |  Branch (118:15): [True: 45, False: 1.10k]
  ------------------
  119|     69|        RNP_LOG("Argon2 t and p must be non-zero");
  ------------------
  |  |   84|     69|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     69|    do {                                                                                 \
  |  |  |  |   77|     69|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 69, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     69|            break;                                                                       \
  |  |  |  |   79|     69|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  120|     69|        return -1;
  121|     69|    }
  122|       |    /* check constraints on m. Floating point calculation is fine due to restricted data range
  123|       |     * (uint8_t) */
  124|  1.10k|    if (encoded_m < (3 + (uint8_t) std::ceil(std::log2(p))) || encoded_m > 31) {
  ------------------
  |  Branch (124:9): [True: 276, False: 832]
  |  Branch (124:64): [True: 95, False: 737]
  ------------------
  125|    371|        RNP_LOG("Argon2 encoded_m must be between 3+ceil(log2(p)) and 31");
  ------------------
  |  |   84|    371|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    371|    do {                                                                                 \
  |  |  |  |   77|    371|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 371, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    371|            break;                                                                       \
  |  |  |  |   79|    371|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  126|    371|        return -1;
  127|    371|    }
  128|       |
  129|    737|    if (botan_pwdhash("Argon2id",
  ------------------
  |  Branch (129:9): [True: 161, False: 576]
  ------------------
  130|    737|                      ((size_t) 1) << encoded_m,
  131|    737|                      t,
  132|    737|                      p,
  133|    737|                      out,
  134|    737|                      output_len,
  135|    737|                      password,
  136|    737|                      std::strlen(password),
  137|    737|                      salt,
  138|    737|                      argon2_salt_size)) {
  139|    161|        RNP_LOG("Argon2 key derivation failed");
  ------------------
  |  |   84|    161|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    161|    do {                                                                                 \
  |  |  |  |   77|    161|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 161, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    161|            break;                                                                       \
  |  |  |  |   79|    161|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  140|    161|        return -1;
  141|    161|    }
  142|    576|    return 0;
  143|    737|}
_Z16pgp_s2k_iterated14pgp_hash_alg_tPhmPKcPKhm:
  153|  64.9k|{
  154|  64.9k|    char s2k_algo_str[128];
  155|  64.9k|    snprintf(s2k_algo_str,
  156|  64.9k|             sizeof(s2k_algo_str),
  157|  64.9k|             "OpenPGP-S2K(%s)",
  158|  64.9k|             rnp::Hash_Botan::name_backend(alg));
  159|       |
  160|  64.9k|    return botan_pwdhash(s2k_algo_str,
  161|  64.9k|                         iterations,
  162|  64.9k|                         0,
  163|  64.9k|                         0,
  164|  64.9k|                         out,
  165|  64.9k|                         output_len,
  166|  64.9k|                         password,
  167|  64.9k|                         0,
  168|  64.9k|                         salt,
  169|  64.9k|                         salt ? PGP_SALT_SIZE : 0);
  ------------------
  |  |   92|  2.28k|#define PGP_SALT_SIZE 8
  ------------------
  |  Branch (169:26): [True: 2.28k, False: 62.6k]
  ------------------
  170|  64.9k|}
_Z25pgp_s2k_decode_iterationsh:
  175|  2.03k|{
  176|       |    // See RFC 4880 section 3.7.1.3
  177|  2.03k|    return (16 + (c & 0x0F)) << ((c >> 4) + 6);
  178|  2.03k|}
_ZN9pgp_s2k_t9salt_sizeE19pgp_s2k_specifier_t:
  271|  13.4k|{
  272|  13.4k|#if defined(ENABLE_CRYPTO_REFRESH)
  273|  13.4k|    return (specifier == PGP_S2KS_ARGON2 ? PGP_MAX_S2K_SALT_SIZE : PGP_SALT_SIZE);
  ------------------
  |  |   96|  1.03k|#define PGP_MAX_S2K_SALT_SIZE 16
  ------------------
                  return (specifier == PGP_S2KS_ARGON2 ? PGP_MAX_S2K_SALT_SIZE : PGP_SALT_SIZE);
  ------------------
  |  |   92|  12.3k|#define PGP_SALT_SIZE 8
  ------------------
  |  Branch (273:13): [True: 1.03k, False: 12.3k]
  ------------------
  274|       |#else
  275|       |    (void) specifier;
  276|       |    return PGP_SALT_SIZE;
  277|       |#endif
  278|  13.4k|}
_ZN9pgp_s2k_t13specifier_lenE19pgp_s2k_specifier_t:
  282|  8.35k|{
  283|  8.35k|    switch (specifier) {
  284|  8.09k|    case PGP_S2KS_SIMPLE:
  ------------------
  |  Branch (284:5): [True: 8.09k, False: 257]
  ------------------
  285|  8.09k|        return 2;
  286|     24|    case PGP_S2KS_SALTED:
  ------------------
  |  Branch (286:5): [True: 24, False: 8.32k]
  ------------------
  287|     24|        return 10;
  288|     16|    case PGP_S2KS_ITERATED_AND_SALTED:
  ------------------
  |  Branch (288:5): [True: 16, False: 8.33k]
  ------------------
  289|     16|        return 11;
  290|    199|    case PGP_S2KS_EXPERIMENTAL:
  ------------------
  |  Branch (290:5): [True: 199, False: 8.15k]
  ------------------
  291|    199|        return 0; /* not used */
  292|      0|#if defined(ENABLE_CRYPTO_REFRESH)
  293|     18|    case PGP_S2KS_ARGON2:
  ------------------
  |  Branch (293:5): [True: 18, False: 8.33k]
  ------------------
  294|     18|        return 20;
  295|      0|#endif
  296|      0|    default:
  ------------------
  |  Branch (296:5): [True: 0, False: 8.35k]
  ------------------
  297|      0|        RNP_LOG("invalid specifier");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  298|      0|        throw rnp::rnp_exception(RNP_ERROR_BAD_PARAMETERS);
  299|  8.35k|    }
  300|  8.35k|}

_ZN3rnp11secure_wipeEPvm:
   33|  53.5k|{
   34|  53.5k|    volatile auto *p = static_cast<volatile uint8_t *>(ptr);
   35|  65.5k|    while (len--) {
  ------------------
  |  Branch (35:12): [True: 11.9k, False: 53.5k]
  ------------------
   36|  11.9k|        *p++ = 0;
   37|  11.9k|    }
   38|  53.5k|}

_ZN3rnp11SecureBytesC2EPKhS2_:
   48|     75|    SecureBytes(const uint8_t *first, const uint8_t *last) : data_(first, last)
   49|     75|    {
   50|     75|    }
_ZN3rnp11SecureBytesC2ERKNSt3__16vectorIhNS1_9allocatorIhEEEE:
   55|     75|    SecureBytes(const std::vector<uint8_t> &v) : data_(v)
   56|     75|    {
   57|     75|    }
_ZN3rnp11SecureBytesC2EONSt3__16vectorIhNS1_9allocatorIhEEEE:
   58|     75|    SecureBytes(std::vector<uint8_t> &&v) noexcept : data_(std::move(v))
   59|     75|    {
   60|     75|    }
_ZN3rnp11SecureBytesD2Ev:
   63|  49.7k|    {
   64|  49.7k|        secure_wipe(data_.data(), data_.size());
   65|  49.7k|    }
_ZN3rnp11SecureBytesaSEOS0_:
   75|  3.87k|    {
   76|  3.87k|        secure_wipe(data_.data(), data_.size());
   77|  3.87k|        data_ = std::move(o.data_);
   78|  3.87k|        return *this;
   79|  3.87k|    }
_ZNK3rnp11SecureBytes6unlockEv:
  125|    150|    {
  126|    150|        return data_;
  127|    150|    }
_ZN3rnp11SecureBytesC2Ev:
   46|  13.3k|    SecureBytes() = default;
_ZN3rnp11SecureBytesC2ERKS0_:
   67|  36.1k|    SecureBytes(const SecureBytes &) = default;

sha1_compression_states:
  465|  1.29M|{
  466|  1.29M|    uint32_t a = ihv[0], b = ihv[1], c = ihv[2], d = ihv[3], e = ihv[4];
  467|  1.29M|    uint32_t temp;
  468|       |
  469|       |#ifdef DOSTORESTATE00
  470|       |    SHA1_STORE_STATE(0)
  471|       |#endif
  472|  1.29M|    SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(a, b, c, d, e, m, W, 0, temp);
  ------------------
  |  |  208|  1.29M|    {                                                                    \
  |  |  209|  1.29M|        sha1_load(m, t, temp);                                           \
  |  |  ------------------
  |  |  |  |  152|  1.29M|    {                         \
  |  |  |  |  153|  1.29M|        temp = m[t];          \
  |  |  |  |  154|  1.29M|        sha1_bswap32(temp);   \
  |  |  |  |  ------------------
  |  |  |  |  |  |  138|  1.29M|    {                                                        \
  |  |  |  |  |  |  139|  1.29M|        x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); \
  |  |  |  |  |  |  140|  1.29M|        x = (x << 16) | (x >> 16);                           \
  |  |  |  |  |  |  141|  1.29M|    }
  |  |  |  |  ------------------
  |  |  |  |  155|  1.29M|    }
  |  |  ------------------
  |  |  210|  1.29M|        sha1_store(W, t, temp);                                          \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  211|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999;   \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999;   \
  |  |  ------------------
  |  |  |  |  160|  1.29M|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  212|  1.29M|        b = rotate_left(b, 30);                                          \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  213|  1.29M|    }
  ------------------
  473|       |
  474|       |#ifdef DOSTORESTATE01
  475|       |    SHA1_STORE_STATE(1)
  476|       |#endif
  477|  1.29M|    SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(e, a, b, c, d, m, W, 1, temp);
  ------------------
  |  |  208|  1.29M|    {                                                                    \
  |  |  209|  1.29M|        sha1_load(m, t, temp);                                           \
  |  |  ------------------
  |  |  |  |  152|  1.29M|    {                         \
  |  |  |  |  153|  1.29M|        temp = m[t];          \
  |  |  |  |  154|  1.29M|        sha1_bswap32(temp);   \
  |  |  |  |  ------------------
  |  |  |  |  |  |  138|  1.29M|    {                                                        \
  |  |  |  |  |  |  139|  1.29M|        x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); \
  |  |  |  |  |  |  140|  1.29M|        x = (x << 16) | (x >> 16);                           \
  |  |  |  |  |  |  141|  1.29M|    }
  |  |  |  |  ------------------
  |  |  |  |  155|  1.29M|    }
  |  |  ------------------
  |  |  210|  1.29M|        sha1_store(W, t, temp);                                          \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  211|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999;   \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999;   \
  |  |  ------------------
  |  |  |  |  160|  1.29M|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  212|  1.29M|        b = rotate_left(b, 30);                                          \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  213|  1.29M|    }
  ------------------
  478|       |
  479|       |#ifdef DOSTORESTATE02
  480|       |    SHA1_STORE_STATE(2)
  481|       |#endif
  482|  1.29M|    SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(d, e, a, b, c, m, W, 2, temp);
  ------------------
  |  |  208|  1.29M|    {                                                                    \
  |  |  209|  1.29M|        sha1_load(m, t, temp);                                           \
  |  |  ------------------
  |  |  |  |  152|  1.29M|    {                         \
  |  |  |  |  153|  1.29M|        temp = m[t];          \
  |  |  |  |  154|  1.29M|        sha1_bswap32(temp);   \
  |  |  |  |  ------------------
  |  |  |  |  |  |  138|  1.29M|    {                                                        \
  |  |  |  |  |  |  139|  1.29M|        x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); \
  |  |  |  |  |  |  140|  1.29M|        x = (x << 16) | (x >> 16);                           \
  |  |  |  |  |  |  141|  1.29M|    }
  |  |  |  |  ------------------
  |  |  |  |  155|  1.29M|    }
  |  |  ------------------
  |  |  210|  1.29M|        sha1_store(W, t, temp);                                          \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  211|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999;   \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999;   \
  |  |  ------------------
  |  |  |  |  160|  1.29M|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  212|  1.29M|        b = rotate_left(b, 30);                                          \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  213|  1.29M|    }
  ------------------
  483|       |
  484|       |#ifdef DOSTORESTATE03
  485|       |    SHA1_STORE_STATE(3)
  486|       |#endif
  487|  1.29M|    SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(c, d, e, a, b, m, W, 3, temp);
  ------------------
  |  |  208|  1.29M|    {                                                                    \
  |  |  209|  1.29M|        sha1_load(m, t, temp);                                           \
  |  |  ------------------
  |  |  |  |  152|  1.29M|    {                         \
  |  |  |  |  153|  1.29M|        temp = m[t];          \
  |  |  |  |  154|  1.29M|        sha1_bswap32(temp);   \
  |  |  |  |  ------------------
  |  |  |  |  |  |  138|  1.29M|    {                                                        \
  |  |  |  |  |  |  139|  1.29M|        x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); \
  |  |  |  |  |  |  140|  1.29M|        x = (x << 16) | (x >> 16);                           \
  |  |  |  |  |  |  141|  1.29M|    }
  |  |  |  |  ------------------
  |  |  |  |  155|  1.29M|    }
  |  |  ------------------
  |  |  210|  1.29M|        sha1_store(W, t, temp);                                          \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  211|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999;   \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999;   \
  |  |  ------------------
  |  |  |  |  160|  1.29M|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  212|  1.29M|        b = rotate_left(b, 30);                                          \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  213|  1.29M|    }
  ------------------
  488|       |
  489|       |#ifdef DOSTORESTATE04
  490|       |    SHA1_STORE_STATE(4)
  491|       |#endif
  492|  1.29M|    SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(b, c, d, e, a, m, W, 4, temp);
  ------------------
  |  |  208|  1.29M|    {                                                                    \
  |  |  209|  1.29M|        sha1_load(m, t, temp);                                           \
  |  |  ------------------
  |  |  |  |  152|  1.29M|    {                         \
  |  |  |  |  153|  1.29M|        temp = m[t];          \
  |  |  |  |  154|  1.29M|        sha1_bswap32(temp);   \
  |  |  |  |  ------------------
  |  |  |  |  |  |  138|  1.29M|    {                                                        \
  |  |  |  |  |  |  139|  1.29M|        x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); \
  |  |  |  |  |  |  140|  1.29M|        x = (x << 16) | (x >> 16);                           \
  |  |  |  |  |  |  141|  1.29M|    }
  |  |  |  |  ------------------
  |  |  |  |  155|  1.29M|    }
  |  |  ------------------
  |  |  210|  1.29M|        sha1_store(W, t, temp);                                          \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  211|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999;   \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999;   \
  |  |  ------------------
  |  |  |  |  160|  1.29M|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  212|  1.29M|        b = rotate_left(b, 30);                                          \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  213|  1.29M|    }
  ------------------
  493|       |
  494|       |#ifdef DOSTORESTATE05
  495|       |    SHA1_STORE_STATE(5)
  496|       |#endif
  497|  1.29M|    SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(a, b, c, d, e, m, W, 5, temp);
  ------------------
  |  |  208|  1.29M|    {                                                                    \
  |  |  209|  1.29M|        sha1_load(m, t, temp);                                           \
  |  |  ------------------
  |  |  |  |  152|  1.29M|    {                         \
  |  |  |  |  153|  1.29M|        temp = m[t];          \
  |  |  |  |  154|  1.29M|        sha1_bswap32(temp);   \
  |  |  |  |  ------------------
  |  |  |  |  |  |  138|  1.29M|    {                                                        \
  |  |  |  |  |  |  139|  1.29M|        x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); \
  |  |  |  |  |  |  140|  1.29M|        x = (x << 16) | (x >> 16);                           \
  |  |  |  |  |  |  141|  1.29M|    }
  |  |  |  |  ------------------
  |  |  |  |  155|  1.29M|    }
  |  |  ------------------
  |  |  210|  1.29M|        sha1_store(W, t, temp);                                          \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  211|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999;   \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999;   \
  |  |  ------------------
  |  |  |  |  160|  1.29M|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  212|  1.29M|        b = rotate_left(b, 30);                                          \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  213|  1.29M|    }
  ------------------
  498|       |
  499|       |#ifdef DOSTORESTATE06
  500|       |    SHA1_STORE_STATE(6)
  501|       |#endif
  502|  1.29M|    SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(e, a, b, c, d, m, W, 6, temp);
  ------------------
  |  |  208|  1.29M|    {                                                                    \
  |  |  209|  1.29M|        sha1_load(m, t, temp);                                           \
  |  |  ------------------
  |  |  |  |  152|  1.29M|    {                         \
  |  |  |  |  153|  1.29M|        temp = m[t];          \
  |  |  |  |  154|  1.29M|        sha1_bswap32(temp);   \
  |  |  |  |  ------------------
  |  |  |  |  |  |  138|  1.29M|    {                                                        \
  |  |  |  |  |  |  139|  1.29M|        x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); \
  |  |  |  |  |  |  140|  1.29M|        x = (x << 16) | (x >> 16);                           \
  |  |  |  |  |  |  141|  1.29M|    }
  |  |  |  |  ------------------
  |  |  |  |  155|  1.29M|    }
  |  |  ------------------
  |  |  210|  1.29M|        sha1_store(W, t, temp);                                          \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  211|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999;   \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999;   \
  |  |  ------------------
  |  |  |  |  160|  1.29M|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  212|  1.29M|        b = rotate_left(b, 30);                                          \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  213|  1.29M|    }
  ------------------
  503|       |
  504|       |#ifdef DOSTORESTATE07
  505|       |    SHA1_STORE_STATE(7)
  506|       |#endif
  507|  1.29M|    SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(d, e, a, b, c, m, W, 7, temp);
  ------------------
  |  |  208|  1.29M|    {                                                                    \
  |  |  209|  1.29M|        sha1_load(m, t, temp);                                           \
  |  |  ------------------
  |  |  |  |  152|  1.29M|    {                         \
  |  |  |  |  153|  1.29M|        temp = m[t];          \
  |  |  |  |  154|  1.29M|        sha1_bswap32(temp);   \
  |  |  |  |  ------------------
  |  |  |  |  |  |  138|  1.29M|    {                                                        \
  |  |  |  |  |  |  139|  1.29M|        x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); \
  |  |  |  |  |  |  140|  1.29M|        x = (x << 16) | (x >> 16);                           \
  |  |  |  |  |  |  141|  1.29M|    }
  |  |  |  |  ------------------
  |  |  |  |  155|  1.29M|    }
  |  |  ------------------
  |  |  210|  1.29M|        sha1_store(W, t, temp);                                          \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  211|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999;   \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999;   \
  |  |  ------------------
  |  |  |  |  160|  1.29M|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  212|  1.29M|        b = rotate_left(b, 30);                                          \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  213|  1.29M|    }
  ------------------
  508|       |
  509|       |#ifdef DOSTORESTATE08
  510|       |    SHA1_STORE_STATE(8)
  511|       |#endif
  512|  1.29M|    SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(c, d, e, a, b, m, W, 8, temp);
  ------------------
  |  |  208|  1.29M|    {                                                                    \
  |  |  209|  1.29M|        sha1_load(m, t, temp);                                           \
  |  |  ------------------
  |  |  |  |  152|  1.29M|    {                         \
  |  |  |  |  153|  1.29M|        temp = m[t];          \
  |  |  |  |  154|  1.29M|        sha1_bswap32(temp);   \
  |  |  |  |  ------------------
  |  |  |  |  |  |  138|  1.29M|    {                                                        \
  |  |  |  |  |  |  139|  1.29M|        x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); \
  |  |  |  |  |  |  140|  1.29M|        x = (x << 16) | (x >> 16);                           \
  |  |  |  |  |  |  141|  1.29M|    }
  |  |  |  |  ------------------
  |  |  |  |  155|  1.29M|    }
  |  |  ------------------
  |  |  210|  1.29M|        sha1_store(W, t, temp);                                          \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  211|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999;   \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999;   \
  |  |  ------------------
  |  |  |  |  160|  1.29M|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  212|  1.29M|        b = rotate_left(b, 30);                                          \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  213|  1.29M|    }
  ------------------
  513|       |
  514|       |#ifdef DOSTORESTATE09
  515|       |    SHA1_STORE_STATE(9)
  516|       |#endif
  517|  1.29M|    SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(b, c, d, e, a, m, W, 9, temp);
  ------------------
  |  |  208|  1.29M|    {                                                                    \
  |  |  209|  1.29M|        sha1_load(m, t, temp);                                           \
  |  |  ------------------
  |  |  |  |  152|  1.29M|    {                         \
  |  |  |  |  153|  1.29M|        temp = m[t];          \
  |  |  |  |  154|  1.29M|        sha1_bswap32(temp);   \
  |  |  |  |  ------------------
  |  |  |  |  |  |  138|  1.29M|    {                                                        \
  |  |  |  |  |  |  139|  1.29M|        x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); \
  |  |  |  |  |  |  140|  1.29M|        x = (x << 16) | (x >> 16);                           \
  |  |  |  |  |  |  141|  1.29M|    }
  |  |  |  |  ------------------
  |  |  |  |  155|  1.29M|    }
  |  |  ------------------
  |  |  210|  1.29M|        sha1_store(W, t, temp);                                          \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  211|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999;   \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999;   \
  |  |  ------------------
  |  |  |  |  160|  1.29M|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  212|  1.29M|        b = rotate_left(b, 30);                                          \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  213|  1.29M|    }
  ------------------
  518|       |
  519|       |#ifdef DOSTORESTATE10
  520|       |    SHA1_STORE_STATE(10)
  521|       |#endif
  522|  1.29M|    SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(a, b, c, d, e, m, W, 10, temp);
  ------------------
  |  |  208|  1.29M|    {                                                                    \
  |  |  209|  1.29M|        sha1_load(m, t, temp);                                           \
  |  |  ------------------
  |  |  |  |  152|  1.29M|    {                         \
  |  |  |  |  153|  1.29M|        temp = m[t];          \
  |  |  |  |  154|  1.29M|        sha1_bswap32(temp);   \
  |  |  |  |  ------------------
  |  |  |  |  |  |  138|  1.29M|    {                                                        \
  |  |  |  |  |  |  139|  1.29M|        x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); \
  |  |  |  |  |  |  140|  1.29M|        x = (x << 16) | (x >> 16);                           \
  |  |  |  |  |  |  141|  1.29M|    }
  |  |  |  |  ------------------
  |  |  |  |  155|  1.29M|    }
  |  |  ------------------
  |  |  210|  1.29M|        sha1_store(W, t, temp);                                          \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  211|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999;   \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999;   \
  |  |  ------------------
  |  |  |  |  160|  1.29M|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  212|  1.29M|        b = rotate_left(b, 30);                                          \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  213|  1.29M|    }
  ------------------
  523|       |
  524|       |#ifdef DOSTORESTATE11
  525|       |    SHA1_STORE_STATE(11)
  526|       |#endif
  527|  1.29M|    SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(e, a, b, c, d, m, W, 11, temp);
  ------------------
  |  |  208|  1.29M|    {                                                                    \
  |  |  209|  1.29M|        sha1_load(m, t, temp);                                           \
  |  |  ------------------
  |  |  |  |  152|  1.29M|    {                         \
  |  |  |  |  153|  1.29M|        temp = m[t];          \
  |  |  |  |  154|  1.29M|        sha1_bswap32(temp);   \
  |  |  |  |  ------------------
  |  |  |  |  |  |  138|  1.29M|    {                                                        \
  |  |  |  |  |  |  139|  1.29M|        x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); \
  |  |  |  |  |  |  140|  1.29M|        x = (x << 16) | (x >> 16);                           \
  |  |  |  |  |  |  141|  1.29M|    }
  |  |  |  |  ------------------
  |  |  |  |  155|  1.29M|    }
  |  |  ------------------
  |  |  210|  1.29M|        sha1_store(W, t, temp);                                          \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  211|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999;   \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999;   \
  |  |  ------------------
  |  |  |  |  160|  1.29M|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  212|  1.29M|        b = rotate_left(b, 30);                                          \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  213|  1.29M|    }
  ------------------
  528|       |
  529|       |#ifdef DOSTORESTATE12
  530|       |    SHA1_STORE_STATE(12)
  531|       |#endif
  532|  1.29M|    SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(d, e, a, b, c, m, W, 12, temp);
  ------------------
  |  |  208|  1.29M|    {                                                                    \
  |  |  209|  1.29M|        sha1_load(m, t, temp);                                           \
  |  |  ------------------
  |  |  |  |  152|  1.29M|    {                         \
  |  |  |  |  153|  1.29M|        temp = m[t];          \
  |  |  |  |  154|  1.29M|        sha1_bswap32(temp);   \
  |  |  |  |  ------------------
  |  |  |  |  |  |  138|  1.29M|    {                                                        \
  |  |  |  |  |  |  139|  1.29M|        x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); \
  |  |  |  |  |  |  140|  1.29M|        x = (x << 16) | (x >> 16);                           \
  |  |  |  |  |  |  141|  1.29M|    }
  |  |  |  |  ------------------
  |  |  |  |  155|  1.29M|    }
  |  |  ------------------
  |  |  210|  1.29M|        sha1_store(W, t, temp);                                          \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  211|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999;   \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999;   \
  |  |  ------------------
  |  |  |  |  160|  1.29M|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  212|  1.29M|        b = rotate_left(b, 30);                                          \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  213|  1.29M|    }
  ------------------
  533|       |
  534|       |#ifdef DOSTORESTATE13
  535|       |    SHA1_STORE_STATE(13)
  536|       |#endif
  537|  1.29M|    SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(c, d, e, a, b, m, W, 13, temp);
  ------------------
  |  |  208|  1.29M|    {                                                                    \
  |  |  209|  1.29M|        sha1_load(m, t, temp);                                           \
  |  |  ------------------
  |  |  |  |  152|  1.29M|    {                         \
  |  |  |  |  153|  1.29M|        temp = m[t];          \
  |  |  |  |  154|  1.29M|        sha1_bswap32(temp);   \
  |  |  |  |  ------------------
  |  |  |  |  |  |  138|  1.29M|    {                                                        \
  |  |  |  |  |  |  139|  1.29M|        x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); \
  |  |  |  |  |  |  140|  1.29M|        x = (x << 16) | (x >> 16);                           \
  |  |  |  |  |  |  141|  1.29M|    }
  |  |  |  |  ------------------
  |  |  |  |  155|  1.29M|    }
  |  |  ------------------
  |  |  210|  1.29M|        sha1_store(W, t, temp);                                          \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  211|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999;   \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999;   \
  |  |  ------------------
  |  |  |  |  160|  1.29M|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  212|  1.29M|        b = rotate_left(b, 30);                                          \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  213|  1.29M|    }
  ------------------
  538|       |
  539|       |#ifdef DOSTORESTATE14
  540|       |    SHA1_STORE_STATE(14)
  541|       |#endif
  542|  1.29M|    SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(b, c, d, e, a, m, W, 14, temp);
  ------------------
  |  |  208|  1.29M|    {                                                                    \
  |  |  209|  1.29M|        sha1_load(m, t, temp);                                           \
  |  |  ------------------
  |  |  |  |  152|  1.29M|    {                         \
  |  |  |  |  153|  1.29M|        temp = m[t];          \
  |  |  |  |  154|  1.29M|        sha1_bswap32(temp);   \
  |  |  |  |  ------------------
  |  |  |  |  |  |  138|  1.29M|    {                                                        \
  |  |  |  |  |  |  139|  1.29M|        x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); \
  |  |  |  |  |  |  140|  1.29M|        x = (x << 16) | (x >> 16);                           \
  |  |  |  |  |  |  141|  1.29M|    }
  |  |  |  |  ------------------
  |  |  |  |  155|  1.29M|    }
  |  |  ------------------
  |  |  210|  1.29M|        sha1_store(W, t, temp);                                          \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  211|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999;   \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999;   \
  |  |  ------------------
  |  |  |  |  160|  1.29M|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  212|  1.29M|        b = rotate_left(b, 30);                                          \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  213|  1.29M|    }
  ------------------
  543|       |
  544|       |#ifdef DOSTORESTATE15
  545|       |    SHA1_STORE_STATE(15)
  546|       |#endif
  547|  1.29M|    SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(a, b, c, d, e, m, W, 15, temp);
  ------------------
  |  |  208|  1.29M|    {                                                                    \
  |  |  209|  1.29M|        sha1_load(m, t, temp);                                           \
  |  |  ------------------
  |  |  |  |  152|  1.29M|    {                         \
  |  |  |  |  153|  1.29M|        temp = m[t];          \
  |  |  |  |  154|  1.29M|        sha1_bswap32(temp);   \
  |  |  |  |  ------------------
  |  |  |  |  |  |  138|  1.29M|    {                                                        \
  |  |  |  |  |  |  139|  1.29M|        x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); \
  |  |  |  |  |  |  140|  1.29M|        x = (x << 16) | (x >> 16);                           \
  |  |  |  |  |  |  141|  1.29M|    }
  |  |  |  |  ------------------
  |  |  |  |  155|  1.29M|    }
  |  |  ------------------
  |  |  210|  1.29M|        sha1_store(W, t, temp);                                          \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  211|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999;   \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999;   \
  |  |  ------------------
  |  |  |  |  160|  1.29M|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  212|  1.29M|        b = rotate_left(b, 30);                                          \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  213|  1.29M|    }
  ------------------
  548|       |
  549|       |#ifdef DOSTORESTATE16
  550|       |    SHA1_STORE_STATE(16)
  551|       |#endif
  552|  1.29M|    SHA1COMPRESS_FULL_ROUND1_STEP_EXPAND(e, a, b, c, d, W, 16, temp);
  ------------------
  |  |  216|  1.29M|    {                                                                   \
  |  |  217|  1.29M|        temp = sha1_mix(W, t);                                          \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  218|  1.29M|        sha1_store(W, t, temp);                                         \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  219|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999;  \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999;  \
  |  |  ------------------
  |  |  |  |  160|  1.29M|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  220|  1.29M|        b = rotate_left(b, 30);                                         \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  221|  1.29M|    }
  ------------------
  553|       |
  554|       |#ifdef DOSTORESTATE17
  555|       |    SHA1_STORE_STATE(17)
  556|       |#endif
  557|  1.29M|    SHA1COMPRESS_FULL_ROUND1_STEP_EXPAND(d, e, a, b, c, W, 17, temp);
  ------------------
  |  |  216|  1.29M|    {                                                                   \
  |  |  217|  1.29M|        temp = sha1_mix(W, t);                                          \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  218|  1.29M|        sha1_store(W, t, temp);                                         \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  219|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999;  \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999;  \
  |  |  ------------------
  |  |  |  |  160|  1.29M|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  220|  1.29M|        b = rotate_left(b, 30);                                         \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  221|  1.29M|    }
  ------------------
  558|       |
  559|       |#ifdef DOSTORESTATE18
  560|       |    SHA1_STORE_STATE(18)
  561|       |#endif
  562|  1.29M|    SHA1COMPRESS_FULL_ROUND1_STEP_EXPAND(c, d, e, a, b, W, 18, temp);
  ------------------
  |  |  216|  1.29M|    {                                                                   \
  |  |  217|  1.29M|        temp = sha1_mix(W, t);                                          \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  218|  1.29M|        sha1_store(W, t, temp);                                         \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  219|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999;  \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999;  \
  |  |  ------------------
  |  |  |  |  160|  1.29M|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  220|  1.29M|        b = rotate_left(b, 30);                                         \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  221|  1.29M|    }
  ------------------
  563|       |
  564|       |#ifdef DOSTORESTATE19
  565|       |    SHA1_STORE_STATE(19)
  566|       |#endif
  567|  1.29M|    SHA1COMPRESS_FULL_ROUND1_STEP_EXPAND(b, c, d, e, a, W, 19, temp);
  ------------------
  |  |  216|  1.29M|    {                                                                   \
  |  |  217|  1.29M|        temp = sha1_mix(W, t);                                          \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  218|  1.29M|        sha1_store(W, t, temp);                                         \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  219|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999;  \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999;  \
  |  |  ------------------
  |  |  |  |  160|  1.29M|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  220|  1.29M|        b = rotate_left(b, 30);                                         \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  221|  1.29M|    }
  ------------------
  568|       |
  569|       |#ifdef DOSTORESTATE20
  570|       |    SHA1_STORE_STATE(20)
  571|       |#endif
  572|  1.29M|    SHA1COMPRESS_FULL_ROUND2_STEP(a, b, c, d, e, W, 20, temp);
  ------------------
  |  |  224|  1.29M|    {                                                                  \
  |  |  225|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  226|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  227|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1; \
  |  |  ------------------
  |  |  |  |  161|  1.29M|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  228|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  229|  1.29M|    }
  ------------------
  573|       |
  574|       |#ifdef DOSTORESTATE21
  575|       |    SHA1_STORE_STATE(21)
  576|       |#endif
  577|  1.29M|    SHA1COMPRESS_FULL_ROUND2_STEP(e, a, b, c, d, W, 21, temp);
  ------------------
  |  |  224|  1.29M|    {                                                                  \
  |  |  225|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  226|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  227|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1; \
  |  |  ------------------
  |  |  |  |  161|  1.29M|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  228|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  229|  1.29M|    }
  ------------------
  578|       |
  579|       |#ifdef DOSTORESTATE22
  580|       |    SHA1_STORE_STATE(22)
  581|       |#endif
  582|  1.29M|    SHA1COMPRESS_FULL_ROUND2_STEP(d, e, a, b, c, W, 22, temp);
  ------------------
  |  |  224|  1.29M|    {                                                                  \
  |  |  225|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  226|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  227|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1; \
  |  |  ------------------
  |  |  |  |  161|  1.29M|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  228|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  229|  1.29M|    }
  ------------------
  583|       |
  584|       |#ifdef DOSTORESTATE23
  585|       |    SHA1_STORE_STATE(23)
  586|       |#endif
  587|  1.29M|    SHA1COMPRESS_FULL_ROUND2_STEP(c, d, e, a, b, W, 23, temp);
  ------------------
  |  |  224|  1.29M|    {                                                                  \
  |  |  225|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  226|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  227|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1; \
  |  |  ------------------
  |  |  |  |  161|  1.29M|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  228|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  229|  1.29M|    }
  ------------------
  588|       |
  589|       |#ifdef DOSTORESTATE24
  590|       |    SHA1_STORE_STATE(24)
  591|       |#endif
  592|  1.29M|    SHA1COMPRESS_FULL_ROUND2_STEP(b, c, d, e, a, W, 24, temp);
  ------------------
  |  |  224|  1.29M|    {                                                                  \
  |  |  225|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  226|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  227|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1; \
  |  |  ------------------
  |  |  |  |  161|  1.29M|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  228|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  229|  1.29M|    }
  ------------------
  593|       |
  594|       |#ifdef DOSTORESTATE25
  595|       |    SHA1_STORE_STATE(25)
  596|       |#endif
  597|  1.29M|    SHA1COMPRESS_FULL_ROUND2_STEP(a, b, c, d, e, W, 25, temp);
  ------------------
  |  |  224|  1.29M|    {                                                                  \
  |  |  225|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  226|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  227|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1; \
  |  |  ------------------
  |  |  |  |  161|  1.29M|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  228|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  229|  1.29M|    }
  ------------------
  598|       |
  599|       |#ifdef DOSTORESTATE26
  600|       |    SHA1_STORE_STATE(26)
  601|       |#endif
  602|  1.29M|    SHA1COMPRESS_FULL_ROUND2_STEP(e, a, b, c, d, W, 26, temp);
  ------------------
  |  |  224|  1.29M|    {                                                                  \
  |  |  225|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  226|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  227|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1; \
  |  |  ------------------
  |  |  |  |  161|  1.29M|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  228|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  229|  1.29M|    }
  ------------------
  603|       |
  604|       |#ifdef DOSTORESTATE27
  605|       |    SHA1_STORE_STATE(27)
  606|       |#endif
  607|  1.29M|    SHA1COMPRESS_FULL_ROUND2_STEP(d, e, a, b, c, W, 27, temp);
  ------------------
  |  |  224|  1.29M|    {                                                                  \
  |  |  225|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  226|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  227|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1; \
  |  |  ------------------
  |  |  |  |  161|  1.29M|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  228|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  229|  1.29M|    }
  ------------------
  608|       |
  609|       |#ifdef DOSTORESTATE28
  610|       |    SHA1_STORE_STATE(28)
  611|       |#endif
  612|  1.29M|    SHA1COMPRESS_FULL_ROUND2_STEP(c, d, e, a, b, W, 28, temp);
  ------------------
  |  |  224|  1.29M|    {                                                                  \
  |  |  225|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  226|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  227|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1; \
  |  |  ------------------
  |  |  |  |  161|  1.29M|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  228|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  229|  1.29M|    }
  ------------------
  613|       |
  614|       |#ifdef DOSTORESTATE29
  615|       |    SHA1_STORE_STATE(29)
  616|       |#endif
  617|  1.29M|    SHA1COMPRESS_FULL_ROUND2_STEP(b, c, d, e, a, W, 29, temp);
  ------------------
  |  |  224|  1.29M|    {                                                                  \
  |  |  225|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  226|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  227|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1; \
  |  |  ------------------
  |  |  |  |  161|  1.29M|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  228|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  229|  1.29M|    }
  ------------------
  618|       |
  619|       |#ifdef DOSTORESTATE30
  620|       |    SHA1_STORE_STATE(30)
  621|       |#endif
  622|  1.29M|    SHA1COMPRESS_FULL_ROUND2_STEP(a, b, c, d, e, W, 30, temp);
  ------------------
  |  |  224|  1.29M|    {                                                                  \
  |  |  225|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  226|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  227|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1; \
  |  |  ------------------
  |  |  |  |  161|  1.29M|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  228|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  229|  1.29M|    }
  ------------------
  623|       |
  624|       |#ifdef DOSTORESTATE31
  625|       |    SHA1_STORE_STATE(31)
  626|       |#endif
  627|  1.29M|    SHA1COMPRESS_FULL_ROUND2_STEP(e, a, b, c, d, W, 31, temp);
  ------------------
  |  |  224|  1.29M|    {                                                                  \
  |  |  225|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  226|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  227|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1; \
  |  |  ------------------
  |  |  |  |  161|  1.29M|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  228|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  229|  1.29M|    }
  ------------------
  628|       |
  629|       |#ifdef DOSTORESTATE32
  630|       |    SHA1_STORE_STATE(32)
  631|       |#endif
  632|  1.29M|    SHA1COMPRESS_FULL_ROUND2_STEP(d, e, a, b, c, W, 32, temp);
  ------------------
  |  |  224|  1.29M|    {                                                                  \
  |  |  225|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  226|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  227|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1; \
  |  |  ------------------
  |  |  |  |  161|  1.29M|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  228|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  229|  1.29M|    }
  ------------------
  633|       |
  634|       |#ifdef DOSTORESTATE33
  635|       |    SHA1_STORE_STATE(33)
  636|       |#endif
  637|  1.29M|    SHA1COMPRESS_FULL_ROUND2_STEP(c, d, e, a, b, W, 33, temp);
  ------------------
  |  |  224|  1.29M|    {                                                                  \
  |  |  225|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  226|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  227|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1; \
  |  |  ------------------
  |  |  |  |  161|  1.29M|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  228|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  229|  1.29M|    }
  ------------------
  638|       |
  639|       |#ifdef DOSTORESTATE34
  640|       |    SHA1_STORE_STATE(34)
  641|       |#endif
  642|  1.29M|    SHA1COMPRESS_FULL_ROUND2_STEP(b, c, d, e, a, W, 34, temp);
  ------------------
  |  |  224|  1.29M|    {                                                                  \
  |  |  225|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  226|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  227|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1; \
  |  |  ------------------
  |  |  |  |  161|  1.29M|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  228|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  229|  1.29M|    }
  ------------------
  643|       |
  644|       |#ifdef DOSTORESTATE35
  645|       |    SHA1_STORE_STATE(35)
  646|       |#endif
  647|  1.29M|    SHA1COMPRESS_FULL_ROUND2_STEP(a, b, c, d, e, W, 35, temp);
  ------------------
  |  |  224|  1.29M|    {                                                                  \
  |  |  225|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  226|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  227|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1; \
  |  |  ------------------
  |  |  |  |  161|  1.29M|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  228|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  229|  1.29M|    }
  ------------------
  648|       |
  649|       |#ifdef DOSTORESTATE36
  650|       |    SHA1_STORE_STATE(36)
  651|       |#endif
  652|  1.29M|    SHA1COMPRESS_FULL_ROUND2_STEP(e, a, b, c, d, W, 36, temp);
  ------------------
  |  |  224|  1.29M|    {                                                                  \
  |  |  225|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  226|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  227|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1; \
  |  |  ------------------
  |  |  |  |  161|  1.29M|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  228|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  229|  1.29M|    }
  ------------------
  653|       |
  654|       |#ifdef DOSTORESTATE37
  655|       |    SHA1_STORE_STATE(37)
  656|       |#endif
  657|  1.29M|    SHA1COMPRESS_FULL_ROUND2_STEP(d, e, a, b, c, W, 37, temp);
  ------------------
  |  |  224|  1.29M|    {                                                                  \
  |  |  225|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  226|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  227|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1; \
  |  |  ------------------
  |  |  |  |  161|  1.29M|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  228|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  229|  1.29M|    }
  ------------------
  658|       |
  659|       |#ifdef DOSTORESTATE38
  660|       |    SHA1_STORE_STATE(38)
  661|       |#endif
  662|  1.29M|    SHA1COMPRESS_FULL_ROUND2_STEP(c, d, e, a, b, W, 38, temp);
  ------------------
  |  |  224|  1.29M|    {                                                                  \
  |  |  225|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  226|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  227|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1; \
  |  |  ------------------
  |  |  |  |  161|  1.29M|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  228|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  229|  1.29M|    }
  ------------------
  663|       |
  664|       |#ifdef DOSTORESTATE39
  665|       |    SHA1_STORE_STATE(39)
  666|       |#endif
  667|  1.29M|    SHA1COMPRESS_FULL_ROUND2_STEP(b, c, d, e, a, W, 39, temp);
  ------------------
  |  |  224|  1.29M|    {                                                                  \
  |  |  225|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  226|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  227|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1; \
  |  |  ------------------
  |  |  |  |  161|  1.29M|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  228|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  229|  1.29M|    }
  ------------------
  668|       |
  669|       |#ifdef DOSTORESTATE40
  670|       |    SHA1_STORE_STATE(40)
  671|       |#endif
  672|  1.29M|    SHA1COMPRESS_FULL_ROUND3_STEP(a, b, c, d, e, W, 40, temp);
  ------------------
  |  |  232|  1.29M|    {                                                                  \
  |  |  233|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  234|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  235|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC; \
  |  |  ------------------
  |  |  |  |  162|  1.29M|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  236|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  237|  1.29M|    }
  ------------------
  673|       |
  674|       |#ifdef DOSTORESTATE41
  675|       |    SHA1_STORE_STATE(41)
  676|       |#endif
  677|  1.29M|    SHA1COMPRESS_FULL_ROUND3_STEP(e, a, b, c, d, W, 41, temp);
  ------------------
  |  |  232|  1.29M|    {                                                                  \
  |  |  233|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  234|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  235|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC; \
  |  |  ------------------
  |  |  |  |  162|  1.29M|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  236|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  237|  1.29M|    }
  ------------------
  678|       |
  679|       |#ifdef DOSTORESTATE42
  680|       |    SHA1_STORE_STATE(42)
  681|       |#endif
  682|  1.29M|    SHA1COMPRESS_FULL_ROUND3_STEP(d, e, a, b, c, W, 42, temp);
  ------------------
  |  |  232|  1.29M|    {                                                                  \
  |  |  233|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  234|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  235|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC; \
  |  |  ------------------
  |  |  |  |  162|  1.29M|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  236|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  237|  1.29M|    }
  ------------------
  683|       |
  684|       |#ifdef DOSTORESTATE43
  685|       |    SHA1_STORE_STATE(43)
  686|       |#endif
  687|  1.29M|    SHA1COMPRESS_FULL_ROUND3_STEP(c, d, e, a, b, W, 43, temp);
  ------------------
  |  |  232|  1.29M|    {                                                                  \
  |  |  233|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  234|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  235|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC; \
  |  |  ------------------
  |  |  |  |  162|  1.29M|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  236|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  237|  1.29M|    }
  ------------------
  688|       |
  689|       |#ifdef DOSTORESTATE44
  690|       |    SHA1_STORE_STATE(44)
  691|       |#endif
  692|  1.29M|    SHA1COMPRESS_FULL_ROUND3_STEP(b, c, d, e, a, W, 44, temp);
  ------------------
  |  |  232|  1.29M|    {                                                                  \
  |  |  233|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  234|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  235|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC; \
  |  |  ------------------
  |  |  |  |  162|  1.29M|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  236|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  237|  1.29M|    }
  ------------------
  693|       |
  694|       |#ifdef DOSTORESTATE45
  695|       |    SHA1_STORE_STATE(45)
  696|       |#endif
  697|  1.29M|    SHA1COMPRESS_FULL_ROUND3_STEP(a, b, c, d, e, W, 45, temp);
  ------------------
  |  |  232|  1.29M|    {                                                                  \
  |  |  233|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  234|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  235|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC; \
  |  |  ------------------
  |  |  |  |  162|  1.29M|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  236|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  237|  1.29M|    }
  ------------------
  698|       |
  699|       |#ifdef DOSTORESTATE46
  700|       |    SHA1_STORE_STATE(46)
  701|       |#endif
  702|  1.29M|    SHA1COMPRESS_FULL_ROUND3_STEP(e, a, b, c, d, W, 46, temp);
  ------------------
  |  |  232|  1.29M|    {                                                                  \
  |  |  233|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  234|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  235|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC; \
  |  |  ------------------
  |  |  |  |  162|  1.29M|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  236|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  237|  1.29M|    }
  ------------------
  703|       |
  704|       |#ifdef DOSTORESTATE47
  705|       |    SHA1_STORE_STATE(47)
  706|       |#endif
  707|  1.29M|    SHA1COMPRESS_FULL_ROUND3_STEP(d, e, a, b, c, W, 47, temp);
  ------------------
  |  |  232|  1.29M|    {                                                                  \
  |  |  233|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  234|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  235|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC; \
  |  |  ------------------
  |  |  |  |  162|  1.29M|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  236|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  237|  1.29M|    }
  ------------------
  708|       |
  709|       |#ifdef DOSTORESTATE48
  710|       |    SHA1_STORE_STATE(48)
  711|       |#endif
  712|  1.29M|    SHA1COMPRESS_FULL_ROUND3_STEP(c, d, e, a, b, W, 48, temp);
  ------------------
  |  |  232|  1.29M|    {                                                                  \
  |  |  233|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  234|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  235|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC; \
  |  |  ------------------
  |  |  |  |  162|  1.29M|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  236|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  237|  1.29M|    }
  ------------------
  713|       |
  714|       |#ifdef DOSTORESTATE49
  715|       |    SHA1_STORE_STATE(49)
  716|       |#endif
  717|  1.29M|    SHA1COMPRESS_FULL_ROUND3_STEP(b, c, d, e, a, W, 49, temp);
  ------------------
  |  |  232|  1.29M|    {                                                                  \
  |  |  233|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  234|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  235|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC; \
  |  |  ------------------
  |  |  |  |  162|  1.29M|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  236|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  237|  1.29M|    }
  ------------------
  718|       |
  719|       |#ifdef DOSTORESTATE50
  720|       |    SHA1_STORE_STATE(50)
  721|       |#endif
  722|  1.29M|    SHA1COMPRESS_FULL_ROUND3_STEP(a, b, c, d, e, W, 50, temp);
  ------------------
  |  |  232|  1.29M|    {                                                                  \
  |  |  233|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  234|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  235|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC; \
  |  |  ------------------
  |  |  |  |  162|  1.29M|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  236|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  237|  1.29M|    }
  ------------------
  723|       |
  724|       |#ifdef DOSTORESTATE51
  725|       |    SHA1_STORE_STATE(51)
  726|       |#endif
  727|  1.29M|    SHA1COMPRESS_FULL_ROUND3_STEP(e, a, b, c, d, W, 51, temp);
  ------------------
  |  |  232|  1.29M|    {                                                                  \
  |  |  233|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  234|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  235|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC; \
  |  |  ------------------
  |  |  |  |  162|  1.29M|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  236|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  237|  1.29M|    }
  ------------------
  728|       |
  729|       |#ifdef DOSTORESTATE52
  730|       |    SHA1_STORE_STATE(52)
  731|       |#endif
  732|  1.29M|    SHA1COMPRESS_FULL_ROUND3_STEP(d, e, a, b, c, W, 52, temp);
  ------------------
  |  |  232|  1.29M|    {                                                                  \
  |  |  233|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  234|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  235|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC; \
  |  |  ------------------
  |  |  |  |  162|  1.29M|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  236|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  237|  1.29M|    }
  ------------------
  733|       |
  734|       |#ifdef DOSTORESTATE53
  735|       |    SHA1_STORE_STATE(53)
  736|       |#endif
  737|  1.29M|    SHA1COMPRESS_FULL_ROUND3_STEP(c, d, e, a, b, W, 53, temp);
  ------------------
  |  |  232|  1.29M|    {                                                                  \
  |  |  233|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  234|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  235|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC; \
  |  |  ------------------
  |  |  |  |  162|  1.29M|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  236|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  237|  1.29M|    }
  ------------------
  738|       |
  739|       |#ifdef DOSTORESTATE54
  740|       |    SHA1_STORE_STATE(54)
  741|       |#endif
  742|  1.29M|    SHA1COMPRESS_FULL_ROUND3_STEP(b, c, d, e, a, W, 54, temp);
  ------------------
  |  |  232|  1.29M|    {                                                                  \
  |  |  233|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  234|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  235|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC; \
  |  |  ------------------
  |  |  |  |  162|  1.29M|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  236|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  237|  1.29M|    }
  ------------------
  743|       |
  744|       |#ifdef DOSTORESTATE55
  745|       |    SHA1_STORE_STATE(55)
  746|       |#endif
  747|  1.29M|    SHA1COMPRESS_FULL_ROUND3_STEP(a, b, c, d, e, W, 55, temp);
  ------------------
  |  |  232|  1.29M|    {                                                                  \
  |  |  233|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  234|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  235|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC; \
  |  |  ------------------
  |  |  |  |  162|  1.29M|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  236|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  237|  1.29M|    }
  ------------------
  748|       |
  749|       |#ifdef DOSTORESTATE56
  750|       |    SHA1_STORE_STATE(56)
  751|       |#endif
  752|  1.29M|    SHA1COMPRESS_FULL_ROUND3_STEP(e, a, b, c, d, W, 56, temp);
  ------------------
  |  |  232|  1.29M|    {                                                                  \
  |  |  233|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  234|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  235|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC; \
  |  |  ------------------
  |  |  |  |  162|  1.29M|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  236|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  237|  1.29M|    }
  ------------------
  753|       |
  754|       |#ifdef DOSTORESTATE57
  755|       |    SHA1_STORE_STATE(57)
  756|       |#endif
  757|  1.29M|    SHA1COMPRESS_FULL_ROUND3_STEP(d, e, a, b, c, W, 57, temp);
  ------------------
  |  |  232|  1.29M|    {                                                                  \
  |  |  233|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  234|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  235|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC; \
  |  |  ------------------
  |  |  |  |  162|  1.29M|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  236|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  237|  1.29M|    }
  ------------------
  758|       |
  759|  1.29M|#ifdef DOSTORESTATE58
  760|  1.29M|    SHA1_STORE_STATE(58)
  ------------------
  |  |  248|  1.29M|    states[i][0] = a;       \
  |  |  249|  1.29M|    states[i][1] = b;       \
  |  |  250|  1.29M|    states[i][2] = c;       \
  |  |  251|  1.29M|    states[i][3] = d;       \
  |  |  252|  1.29M|    states[i][4] = e;
  ------------------
  761|  1.29M|#endif
  762|  1.29M|    SHA1COMPRESS_FULL_ROUND3_STEP(c, d, e, a, b, W, 58, temp);
  ------------------
  |  |  232|  1.29M|    {                                                                  \
  |  |  233|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  234|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  235|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC; \
  |  |  ------------------
  |  |  |  |  162|  1.29M|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  236|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  237|  1.29M|    }
  ------------------
  763|       |
  764|       |#ifdef DOSTORESTATE59
  765|       |    SHA1_STORE_STATE(59)
  766|       |#endif
  767|  1.29M|    SHA1COMPRESS_FULL_ROUND3_STEP(b, c, d, e, a, W, 59, temp);
  ------------------
  |  |  232|  1.29M|    {                                                                  \
  |  |  233|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  234|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  235|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC; \
  |  |  ------------------
  |  |  |  |  162|  1.29M|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  236|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  237|  1.29M|    }
  ------------------
  768|       |
  769|       |#ifdef DOSTORESTATE60
  770|       |    SHA1_STORE_STATE(60)
  771|       |#endif
  772|  1.29M|    SHA1COMPRESS_FULL_ROUND4_STEP(a, b, c, d, e, W, 60, temp);
  ------------------
  |  |  240|  1.29M|    {                                                                  \
  |  |  241|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  242|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  243|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6; \
  |  |  ------------------
  |  |  |  |  163|  1.29M|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  244|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  245|  1.29M|    }
  ------------------
  773|       |
  774|       |#ifdef DOSTORESTATE61
  775|       |    SHA1_STORE_STATE(61)
  776|       |#endif
  777|  1.29M|    SHA1COMPRESS_FULL_ROUND4_STEP(e, a, b, c, d, W, 61, temp);
  ------------------
  |  |  240|  1.29M|    {                                                                  \
  |  |  241|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  242|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  243|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6; \
  |  |  ------------------
  |  |  |  |  163|  1.29M|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  244|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  245|  1.29M|    }
  ------------------
  778|       |
  779|       |#ifdef DOSTORESTATE62
  780|       |    SHA1_STORE_STATE(62)
  781|       |#endif
  782|  1.29M|    SHA1COMPRESS_FULL_ROUND4_STEP(d, e, a, b, c, W, 62, temp);
  ------------------
  |  |  240|  1.29M|    {                                                                  \
  |  |  241|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  242|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  243|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6; \
  |  |  ------------------
  |  |  |  |  163|  1.29M|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  244|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  245|  1.29M|    }
  ------------------
  783|       |
  784|       |#ifdef DOSTORESTATE63
  785|       |    SHA1_STORE_STATE(63)
  786|       |#endif
  787|  1.29M|    SHA1COMPRESS_FULL_ROUND4_STEP(c, d, e, a, b, W, 63, temp);
  ------------------
  |  |  240|  1.29M|    {                                                                  \
  |  |  241|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  242|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  243|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6; \
  |  |  ------------------
  |  |  |  |  163|  1.29M|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  244|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  245|  1.29M|    }
  ------------------
  788|       |
  789|       |#ifdef DOSTORESTATE64
  790|       |    SHA1_STORE_STATE(64)
  791|       |#endif
  792|  1.29M|    SHA1COMPRESS_FULL_ROUND4_STEP(b, c, d, e, a, W, 64, temp);
  ------------------
  |  |  240|  1.29M|    {                                                                  \
  |  |  241|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  242|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  243|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6; \
  |  |  ------------------
  |  |  |  |  163|  1.29M|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  244|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  245|  1.29M|    }
  ------------------
  793|       |
  794|  1.29M|#ifdef DOSTORESTATE65
  795|  1.29M|    SHA1_STORE_STATE(65)
  ------------------
  |  |  248|  1.29M|    states[i][0] = a;       \
  |  |  249|  1.29M|    states[i][1] = b;       \
  |  |  250|  1.29M|    states[i][2] = c;       \
  |  |  251|  1.29M|    states[i][3] = d;       \
  |  |  252|  1.29M|    states[i][4] = e;
  ------------------
  796|  1.29M|#endif
  797|  1.29M|    SHA1COMPRESS_FULL_ROUND4_STEP(a, b, c, d, e, W, 65, temp);
  ------------------
  |  |  240|  1.29M|    {                                                                  \
  |  |  241|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  242|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  243|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6; \
  |  |  ------------------
  |  |  |  |  163|  1.29M|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  244|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  245|  1.29M|    }
  ------------------
  798|       |
  799|       |#ifdef DOSTORESTATE66
  800|       |    SHA1_STORE_STATE(66)
  801|       |#endif
  802|  1.29M|    SHA1COMPRESS_FULL_ROUND4_STEP(e, a, b, c, d, W, 66, temp);
  ------------------
  |  |  240|  1.29M|    {                                                                  \
  |  |  241|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  242|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  243|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6; \
  |  |  ------------------
  |  |  |  |  163|  1.29M|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  244|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  245|  1.29M|    }
  ------------------
  803|       |
  804|       |#ifdef DOSTORESTATE67
  805|       |    SHA1_STORE_STATE(67)
  806|       |#endif
  807|  1.29M|    SHA1COMPRESS_FULL_ROUND4_STEP(d, e, a, b, c, W, 67, temp);
  ------------------
  |  |  240|  1.29M|    {                                                                  \
  |  |  241|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  242|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  243|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6; \
  |  |  ------------------
  |  |  |  |  163|  1.29M|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  244|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  245|  1.29M|    }
  ------------------
  808|       |
  809|       |#ifdef DOSTORESTATE68
  810|       |    SHA1_STORE_STATE(68)
  811|       |#endif
  812|  1.29M|    SHA1COMPRESS_FULL_ROUND4_STEP(c, d, e, a, b, W, 68, temp);
  ------------------
  |  |  240|  1.29M|    {                                                                  \
  |  |  241|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  242|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  243|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6; \
  |  |  ------------------
  |  |  |  |  163|  1.29M|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  244|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  245|  1.29M|    }
  ------------------
  813|       |
  814|       |#ifdef DOSTORESTATE69
  815|       |    SHA1_STORE_STATE(69)
  816|       |#endif
  817|  1.29M|    SHA1COMPRESS_FULL_ROUND4_STEP(b, c, d, e, a, W, 69, temp);
  ------------------
  |  |  240|  1.29M|    {                                                                  \
  |  |  241|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  242|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  243|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6; \
  |  |  ------------------
  |  |  |  |  163|  1.29M|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  244|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  245|  1.29M|    }
  ------------------
  818|       |
  819|       |#ifdef DOSTORESTATE70
  820|       |    SHA1_STORE_STATE(70)
  821|       |#endif
  822|  1.29M|    SHA1COMPRESS_FULL_ROUND4_STEP(a, b, c, d, e, W, 70, temp);
  ------------------
  |  |  240|  1.29M|    {                                                                  \
  |  |  241|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  242|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  243|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6; \
  |  |  ------------------
  |  |  |  |  163|  1.29M|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  244|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  245|  1.29M|    }
  ------------------
  823|       |
  824|       |#ifdef DOSTORESTATE71
  825|       |    SHA1_STORE_STATE(71)
  826|       |#endif
  827|  1.29M|    SHA1COMPRESS_FULL_ROUND4_STEP(e, a, b, c, d, W, 71, temp);
  ------------------
  |  |  240|  1.29M|    {                                                                  \
  |  |  241|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  242|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  243|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6; \
  |  |  ------------------
  |  |  |  |  163|  1.29M|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  244|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  245|  1.29M|    }
  ------------------
  828|       |
  829|       |#ifdef DOSTORESTATE72
  830|       |    SHA1_STORE_STATE(72)
  831|       |#endif
  832|  1.29M|    SHA1COMPRESS_FULL_ROUND4_STEP(d, e, a, b, c, W, 72, temp);
  ------------------
  |  |  240|  1.29M|    {                                                                  \
  |  |  241|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  242|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  243|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6; \
  |  |  ------------------
  |  |  |  |  163|  1.29M|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  244|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  245|  1.29M|    }
  ------------------
  833|       |
  834|       |#ifdef DOSTORESTATE73
  835|       |    SHA1_STORE_STATE(73)
  836|       |#endif
  837|  1.29M|    SHA1COMPRESS_FULL_ROUND4_STEP(c, d, e, a, b, W, 73, temp);
  ------------------
  |  |  240|  1.29M|    {                                                                  \
  |  |  241|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  242|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  243|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6; \
  |  |  ------------------
  |  |  |  |  163|  1.29M|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  244|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  245|  1.29M|    }
  ------------------
  838|       |
  839|       |#ifdef DOSTORESTATE74
  840|       |    SHA1_STORE_STATE(74)
  841|       |#endif
  842|  1.29M|    SHA1COMPRESS_FULL_ROUND4_STEP(b, c, d, e, a, W, 74, temp);
  ------------------
  |  |  240|  1.29M|    {                                                                  \
  |  |  241|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  242|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  243|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6; \
  |  |  ------------------
  |  |  |  |  163|  1.29M|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  244|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  245|  1.29M|    }
  ------------------
  843|       |
  844|       |#ifdef DOSTORESTATE75
  845|       |    SHA1_STORE_STATE(75)
  846|       |#endif
  847|  1.29M|    SHA1COMPRESS_FULL_ROUND4_STEP(a, b, c, d, e, W, 75, temp);
  ------------------
  |  |  240|  1.29M|    {                                                                  \
  |  |  241|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  242|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  243|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6; \
  |  |  ------------------
  |  |  |  |  163|  1.29M|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  244|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  245|  1.29M|    }
  ------------------
  848|       |
  849|       |#ifdef DOSTORESTATE76
  850|       |    SHA1_STORE_STATE(76)
  851|       |#endif
  852|  1.29M|    SHA1COMPRESS_FULL_ROUND4_STEP(e, a, b, c, d, W, 76, temp);
  ------------------
  |  |  240|  1.29M|    {                                                                  \
  |  |  241|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  242|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  243|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6; \
  |  |  ------------------
  |  |  |  |  163|  1.29M|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  244|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  245|  1.29M|    }
  ------------------
  853|       |
  854|       |#ifdef DOSTORESTATE77
  855|       |    SHA1_STORE_STATE(77)
  856|       |#endif
  857|  1.29M|    SHA1COMPRESS_FULL_ROUND4_STEP(d, e, a, b, c, W, 77, temp);
  ------------------
  |  |  240|  1.29M|    {                                                                  \
  |  |  241|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  242|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  243|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6; \
  |  |  ------------------
  |  |  |  |  163|  1.29M|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  244|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  245|  1.29M|    }
  ------------------
  858|       |
  859|       |#ifdef DOSTORESTATE78
  860|       |    SHA1_STORE_STATE(78)
  861|       |#endif
  862|  1.29M|    SHA1COMPRESS_FULL_ROUND4_STEP(c, d, e, a, b, W, 78, temp);
  ------------------
  |  |  240|  1.29M|    {                                                                  \
  |  |  241|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  242|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  243|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6; \
  |  |  ------------------
  |  |  |  |  163|  1.29M|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  244|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  245|  1.29M|    }
  ------------------
  863|       |
  864|       |#ifdef DOSTORESTATE79
  865|       |    SHA1_STORE_STATE(79)
  866|       |#endif
  867|  1.29M|    SHA1COMPRESS_FULL_ROUND4_STEP(b, c, d, e, a, W, 79, temp);
  ------------------
  |  |  240|  1.29M|    {                                                                  \
  |  |  241|  1.29M|        temp = sha1_mix(W, t);                                         \
  |  |  ------------------
  |  |  |  |  143|  1.29M|#define sha1_mix(W, t) (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
  |  |  |  |  ------------------
  |  |  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  242|  1.29M|        sha1_store(W, t, temp);                                        \
  |  |  ------------------
  |  |  |  |  158|  1.29M|#define sha1_store(W, t, x) *(volatile uint32_t *) &W[t] = x
  |  |  ------------------
  |  |  243|  1.29M|        e += temp + rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6; \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += temp + rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6; \
  |  |  ------------------
  |  |  |  |  163|  1.29M|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  244|  1.29M|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  1.29M|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  245|  1.29M|    }
  ------------------
  868|       |
  869|  1.29M|    ihv[0] += a;
  870|  1.29M|    ihv[1] += b;
  871|  1.29M|    ihv[2] += c;
  872|  1.29M|    ihv[3] += d;
  873|  1.29M|    ihv[4] += e;
  874|  1.29M|}
SHA1DCInit:
 2019|   279k|{
 2020|   279k|    ctx->total = 0;
 2021|   279k|    ctx->ihv[0] = 0x67452301;
 2022|   279k|    ctx->ihv[1] = 0xEFCDAB89;
 2023|   279k|    ctx->ihv[2] = 0x98BADCFE;
 2024|   279k|    ctx->ihv[3] = 0x10325476;
 2025|   279k|    ctx->ihv[4] = 0xC3D2E1F0;
 2026|   279k|    ctx->found_collision = 0;
 2027|   279k|    ctx->safe_hash = SHA1DC_INIT_SAFE_HASH_DEFAULT;
  ------------------
  |  |   23|   279k|#define SHA1DC_INIT_SAFE_HASH_DEFAULT 1
  ------------------
 2028|   279k|    ctx->ubc_check = 1;
 2029|   279k|    ctx->detect_coll = 1;
 2030|   279k|    ctx->reduced_round_coll = 0;
 2031|       |    ctx->callback = NULL;
 2032|   279k|}
SHA1DCUpdate:
 2078|  1.95M|{
 2079|  1.95M|    unsigned left, fill;
 2080|       |
 2081|  1.95M|    if (len == 0)
  ------------------
  |  Branch (2081:9): [True: 14, False: 1.95M]
  ------------------
 2082|     14|        return;
 2083|       |
 2084|  1.95M|    left = ctx->total & 63;
 2085|  1.95M|    fill = 64 - left;
 2086|       |
 2087|  1.95M|    if (left && len >= fill) {
  ------------------
  |  Branch (2087:9): [True: 1.64M, False: 310k]
  |  Branch (2087:17): [True: 385k, False: 1.25M]
  ------------------
 2088|   385k|        ctx->total += fill;
 2089|   385k|        memcpy(ctx->buffer + left, buf, fill);
 2090|   385k|        sha1_process(ctx, (uint32_t *) (ctx->buffer));
 2091|   385k|        buf += fill;
 2092|   385k|        len -= fill;
 2093|   385k|        left = 0;
 2094|   385k|    }
 2095|  2.57M|    while (len >= 64) {
  ------------------
  |  Branch (2095:12): [True: 627k, False: 1.95M]
  ------------------
 2096|   627k|        ctx->total += 64;
 2097|       |
 2098|   627k|#if defined(SHA1DC_ALLOW_UNALIGNED_ACCESS)
 2099|   627k|        sha1_process(ctx, (uint32_t *) (buf));
 2100|       |#else
 2101|       |        memcpy(ctx->buffer, buf, 64);
 2102|       |        sha1_process(ctx, (uint32_t *) (ctx->buffer));
 2103|       |#endif /* defined(SHA1DC_ALLOW_UNALIGNED_ACCESS) */
 2104|   627k|        buf += 64;
 2105|   627k|        len -= 64;
 2106|   627k|    }
 2107|  1.95M|    if (len > 0) {
  ------------------
  |  Branch (2107:9): [True: 1.92M, False: 31.9k]
  ------------------
 2108|  1.92M|        ctx->total += len;
 2109|  1.92M|        memcpy(ctx->buffer + left, buf, len);
 2110|  1.92M|    }
 2111|  1.95M|}
SHA1DCFinal:
 2120|   278k|{
 2121|   278k|    uint32_t last = ctx->total & 63;
 2122|   278k|    uint32_t padn = (last < 56) ? (56 - last) : (120 - last);
  ------------------
  |  Branch (2122:21): [True: 263k, False: 14.9k]
  ------------------
 2123|   278k|    uint64_t total;
 2124|   278k|    SHA1DCUpdate(ctx, (const char *) (sha1_padding), padn);
 2125|       |
 2126|   278k|    total = ctx->total - padn;
 2127|   278k|    total <<= 3;
 2128|   278k|    ctx->buffer[56] = (unsigned char) (total >> 56);
 2129|   278k|    ctx->buffer[57] = (unsigned char) (total >> 48);
 2130|   278k|    ctx->buffer[58] = (unsigned char) (total >> 40);
 2131|   278k|    ctx->buffer[59] = (unsigned char) (total >> 32);
 2132|   278k|    ctx->buffer[60] = (unsigned char) (total >> 24);
 2133|   278k|    ctx->buffer[61] = (unsigned char) (total >> 16);
 2134|   278k|    ctx->buffer[62] = (unsigned char) (total >> 8);
 2135|   278k|    ctx->buffer[63] = (unsigned char) (total);
 2136|   278k|    sha1_process(ctx, (uint32_t *) (ctx->buffer));
 2137|   278k|    output[0] = (unsigned char) (ctx->ihv[0] >> 24);
 2138|   278k|    output[1] = (unsigned char) (ctx->ihv[0] >> 16);
 2139|   278k|    output[2] = (unsigned char) (ctx->ihv[0] >> 8);
 2140|   278k|    output[3] = (unsigned char) (ctx->ihv[0]);
 2141|   278k|    output[4] = (unsigned char) (ctx->ihv[1] >> 24);
 2142|   278k|    output[5] = (unsigned char) (ctx->ihv[1] >> 16);
 2143|   278k|    output[6] = (unsigned char) (ctx->ihv[1] >> 8);
 2144|   278k|    output[7] = (unsigned char) (ctx->ihv[1]);
 2145|   278k|    output[8] = (unsigned char) (ctx->ihv[2] >> 24);
 2146|   278k|    output[9] = (unsigned char) (ctx->ihv[2] >> 16);
 2147|   278k|    output[10] = (unsigned char) (ctx->ihv[2] >> 8);
 2148|   278k|    output[11] = (unsigned char) (ctx->ihv[2]);
 2149|   278k|    output[12] = (unsigned char) (ctx->ihv[3] >> 24);
 2150|   278k|    output[13] = (unsigned char) (ctx->ihv[3] >> 16);
 2151|   278k|    output[14] = (unsigned char) (ctx->ihv[3] >> 8);
 2152|   278k|    output[15] = (unsigned char) (ctx->ihv[3]);
 2153|   278k|    output[16] = (unsigned char) (ctx->ihv[4] >> 24);
 2154|   278k|    output[17] = (unsigned char) (ctx->ihv[4] >> 16);
 2155|   278k|    output[18] = (unsigned char) (ctx->ihv[4] >> 8);
 2156|   278k|    output[19] = (unsigned char) (ctx->ihv[4]);
 2157|   278k|    return ctx->found_collision;
 2158|   278k|}
sha1.c:sha1_process:
 1963|  1.29M|{
 1964|  1.29M|    unsigned i, j;
 1965|  1.29M|    uint32_t ubc_dv_mask[DVMASKSIZE] = {0xFFFFFFFF};
 1966|  1.29M|    uint32_t ihvtmp[5];
 1967|       |
 1968|  1.29M|    ctx->ihv1[0] = ctx->ihv[0];
 1969|  1.29M|    ctx->ihv1[1] = ctx->ihv[1];
 1970|  1.29M|    ctx->ihv1[2] = ctx->ihv[2];
 1971|  1.29M|    ctx->ihv1[3] = ctx->ihv[3];
 1972|  1.29M|    ctx->ihv1[4] = ctx->ihv[4];
 1973|       |
 1974|  1.29M|    sha1_compression_states(ctx->ihv, block, ctx->m1, ctx->states);
 1975|       |
 1976|  1.29M|    if (ctx->detect_coll) {
  ------------------
  |  Branch (1976:9): [True: 1.29M, False: 0]
  ------------------
 1977|  1.29M|        if (ctx->ubc_check) {
  ------------------
  |  Branch (1977:13): [True: 1.29M, False: 0]
  ------------------
 1978|  1.29M|            ubc_check(ctx->m1, ubc_dv_mask);
 1979|  1.29M|        }
 1980|       |
 1981|  1.29M|        if (ubc_dv_mask[0] != 0) {
  ------------------
  |  Branch (1981:13): [True: 67.4k, False: 1.22M]
  ------------------
 1982|  2.22M|            for (i = 0; sha1_dvs[i].dvType != 0; ++i) {
  ------------------
  |  Branch (1982:25): [True: 2.15M, False: 67.4k]
  ------------------
 1983|  2.15M|                if (ubc_dv_mask[0] & ((uint32_t)(1) << sha1_dvs[i].maskb)) {
  ------------------
  |  Branch (1983:21): [True: 69.0k, False: 2.08M]
  ------------------
 1984|  5.59M|                    for (j = 0; j < 80; ++j)
  ------------------
  |  Branch (1984:33): [True: 5.52M, False: 69.0k]
  ------------------
 1985|  5.52M|                        ctx->m2[j] = ctx->m1[j] ^ sha1_dvs[i].dm[j];
 1986|       |
 1987|  69.0k|                    sha1_recompression_step(sha1_dvs[i].testt,
 1988|  69.0k|                                            ctx->ihv2,
 1989|  69.0k|                                            ihvtmp,
 1990|  69.0k|                                            ctx->m2,
 1991|  69.0k|                                            ctx->states[sha1_dvs[i].testt]);
 1992|       |
 1993|       |                    /* to verify SHA-1 collision detection code with collisions for
 1994|       |                     * reduced-step SHA-1 */
 1995|  69.0k|                    if ((0 == ((ihvtmp[0] ^ ctx->ihv[0]) | (ihvtmp[1] ^ ctx->ihv[1]) |
  ------------------
  |  Branch (1995:25): [True: 0, False: 69.0k]
  ------------------
 1996|  69.0k|                               (ihvtmp[2] ^ ctx->ihv[2]) | (ihvtmp[3] ^ ctx->ihv[3]) |
 1997|  69.0k|                               (ihvtmp[4] ^ ctx->ihv[4]))) ||
 1998|  69.0k|                        (ctx->reduced_round_coll &&
  ------------------
  |  Branch (1998:26): [True: 0, False: 69.0k]
  ------------------
 1999|      0|                         0 == ((ctx->ihv1[0] ^ ctx->ihv2[0]) | (ctx->ihv1[1] ^ ctx->ihv2[1]) |
  ------------------
  |  Branch (1999:26): [True: 0, False: 0]
  ------------------
 2000|      0|                               (ctx->ihv1[2] ^ ctx->ihv2[2]) | (ctx->ihv1[3] ^ ctx->ihv2[3]) |
 2001|      0|                               (ctx->ihv1[4] ^ ctx->ihv2[4])))) {
 2002|      0|                        ctx->found_collision = 1;
 2003|       |
 2004|      0|                        if (ctx->safe_hash) {
  ------------------
  |  Branch (2004:29): [True: 0, False: 0]
  ------------------
 2005|      0|                            sha1_compression_W(ctx->ihv, ctx->m1);
 2006|      0|                            sha1_compression_W(ctx->ihv, ctx->m1);
 2007|      0|                        }
 2008|       |
 2009|      0|                        break;
 2010|      0|                    }
 2011|  69.0k|                }
 2012|  2.15M|            }
 2013|  67.4k|        }
 2014|  1.29M|    }
 2015|  1.29M|}
sha1.c:sha1_recompression_step:
 1554|  69.0k|{
 1555|  69.0k|    switch (step) {
 1556|       |#ifdef DOSTORESTATE0
 1557|       |    case 0:
 1558|       |        sha1recompress_fast_0(ihvin, ihvout, me2, state);
 1559|       |        break;
 1560|       |#endif
 1561|       |#ifdef DOSTORESTATE1
 1562|       |    case 1:
 1563|       |        sha1recompress_fast_1(ihvin, ihvout, me2, state);
 1564|       |        break;
 1565|       |#endif
 1566|       |#ifdef DOSTORESTATE2
 1567|       |    case 2:
 1568|       |        sha1recompress_fast_2(ihvin, ihvout, me2, state);
 1569|       |        break;
 1570|       |#endif
 1571|       |#ifdef DOSTORESTATE3
 1572|       |    case 3:
 1573|       |        sha1recompress_fast_3(ihvin, ihvout, me2, state);
 1574|       |        break;
 1575|       |#endif
 1576|       |#ifdef DOSTORESTATE4
 1577|       |    case 4:
 1578|       |        sha1recompress_fast_4(ihvin, ihvout, me2, state);
 1579|       |        break;
 1580|       |#endif
 1581|       |#ifdef DOSTORESTATE5
 1582|       |    case 5:
 1583|       |        sha1recompress_fast_5(ihvin, ihvout, me2, state);
 1584|       |        break;
 1585|       |#endif
 1586|       |#ifdef DOSTORESTATE6
 1587|       |    case 6:
 1588|       |        sha1recompress_fast_6(ihvin, ihvout, me2, state);
 1589|       |        break;
 1590|       |#endif
 1591|       |#ifdef DOSTORESTATE7
 1592|       |    case 7:
 1593|       |        sha1recompress_fast_7(ihvin, ihvout, me2, state);
 1594|       |        break;
 1595|       |#endif
 1596|       |#ifdef DOSTORESTATE8
 1597|       |    case 8:
 1598|       |        sha1recompress_fast_8(ihvin, ihvout, me2, state);
 1599|       |        break;
 1600|       |#endif
 1601|       |#ifdef DOSTORESTATE9
 1602|       |    case 9:
 1603|       |        sha1recompress_fast_9(ihvin, ihvout, me2, state);
 1604|       |        break;
 1605|       |#endif
 1606|       |#ifdef DOSTORESTATE10
 1607|       |    case 10:
 1608|       |        sha1recompress_fast_10(ihvin, ihvout, me2, state);
 1609|       |        break;
 1610|       |#endif
 1611|       |#ifdef DOSTORESTATE11
 1612|       |    case 11:
 1613|       |        sha1recompress_fast_11(ihvin, ihvout, me2, state);
 1614|       |        break;
 1615|       |#endif
 1616|       |#ifdef DOSTORESTATE12
 1617|       |    case 12:
 1618|       |        sha1recompress_fast_12(ihvin, ihvout, me2, state);
 1619|       |        break;
 1620|       |#endif
 1621|       |#ifdef DOSTORESTATE13
 1622|       |    case 13:
 1623|       |        sha1recompress_fast_13(ihvin, ihvout, me2, state);
 1624|       |        break;
 1625|       |#endif
 1626|       |#ifdef DOSTORESTATE14
 1627|       |    case 14:
 1628|       |        sha1recompress_fast_14(ihvin, ihvout, me2, state);
 1629|       |        break;
 1630|       |#endif
 1631|       |#ifdef DOSTORESTATE15
 1632|       |    case 15:
 1633|       |        sha1recompress_fast_15(ihvin, ihvout, me2, state);
 1634|       |        break;
 1635|       |#endif
 1636|       |#ifdef DOSTORESTATE16
 1637|       |    case 16:
 1638|       |        sha1recompress_fast_16(ihvin, ihvout, me2, state);
 1639|       |        break;
 1640|       |#endif
 1641|       |#ifdef DOSTORESTATE17
 1642|       |    case 17:
 1643|       |        sha1recompress_fast_17(ihvin, ihvout, me2, state);
 1644|       |        break;
 1645|       |#endif
 1646|       |#ifdef DOSTORESTATE18
 1647|       |    case 18:
 1648|       |        sha1recompress_fast_18(ihvin, ihvout, me2, state);
 1649|       |        break;
 1650|       |#endif
 1651|       |#ifdef DOSTORESTATE19
 1652|       |    case 19:
 1653|       |        sha1recompress_fast_19(ihvin, ihvout, me2, state);
 1654|       |        break;
 1655|       |#endif
 1656|       |#ifdef DOSTORESTATE20
 1657|       |    case 20:
 1658|       |        sha1recompress_fast_20(ihvin, ihvout, me2, state);
 1659|       |        break;
 1660|       |#endif
 1661|       |#ifdef DOSTORESTATE21
 1662|       |    case 21:
 1663|       |        sha1recompress_fast_21(ihvin, ihvout, me2, state);
 1664|       |        break;
 1665|       |#endif
 1666|       |#ifdef DOSTORESTATE22
 1667|       |    case 22:
 1668|       |        sha1recompress_fast_22(ihvin, ihvout, me2, state);
 1669|       |        break;
 1670|       |#endif
 1671|       |#ifdef DOSTORESTATE23
 1672|       |    case 23:
 1673|       |        sha1recompress_fast_23(ihvin, ihvout, me2, state);
 1674|       |        break;
 1675|       |#endif
 1676|       |#ifdef DOSTORESTATE24
 1677|       |    case 24:
 1678|       |        sha1recompress_fast_24(ihvin, ihvout, me2, state);
 1679|       |        break;
 1680|       |#endif
 1681|       |#ifdef DOSTORESTATE25
 1682|       |    case 25:
 1683|       |        sha1recompress_fast_25(ihvin, ihvout, me2, state);
 1684|       |        break;
 1685|       |#endif
 1686|       |#ifdef DOSTORESTATE26
 1687|       |    case 26:
 1688|       |        sha1recompress_fast_26(ihvin, ihvout, me2, state);
 1689|       |        break;
 1690|       |#endif
 1691|       |#ifdef DOSTORESTATE27
 1692|       |    case 27:
 1693|       |        sha1recompress_fast_27(ihvin, ihvout, me2, state);
 1694|       |        break;
 1695|       |#endif
 1696|       |#ifdef DOSTORESTATE28
 1697|       |    case 28:
 1698|       |        sha1recompress_fast_28(ihvin, ihvout, me2, state);
 1699|       |        break;
 1700|       |#endif
 1701|       |#ifdef DOSTORESTATE29
 1702|       |    case 29:
 1703|       |        sha1recompress_fast_29(ihvin, ihvout, me2, state);
 1704|       |        break;
 1705|       |#endif
 1706|       |#ifdef DOSTORESTATE30
 1707|       |    case 30:
 1708|       |        sha1recompress_fast_30(ihvin, ihvout, me2, state);
 1709|       |        break;
 1710|       |#endif
 1711|       |#ifdef DOSTORESTATE31
 1712|       |    case 31:
 1713|       |        sha1recompress_fast_31(ihvin, ihvout, me2, state);
 1714|       |        break;
 1715|       |#endif
 1716|       |#ifdef DOSTORESTATE32
 1717|       |    case 32:
 1718|       |        sha1recompress_fast_32(ihvin, ihvout, me2, state);
 1719|       |        break;
 1720|       |#endif
 1721|       |#ifdef DOSTORESTATE33
 1722|       |    case 33:
 1723|       |        sha1recompress_fast_33(ihvin, ihvout, me2, state);
 1724|       |        break;
 1725|       |#endif
 1726|       |#ifdef DOSTORESTATE34
 1727|       |    case 34:
 1728|       |        sha1recompress_fast_34(ihvin, ihvout, me2, state);
 1729|       |        break;
 1730|       |#endif
 1731|       |#ifdef DOSTORESTATE35
 1732|       |    case 35:
 1733|       |        sha1recompress_fast_35(ihvin, ihvout, me2, state);
 1734|       |        break;
 1735|       |#endif
 1736|       |#ifdef DOSTORESTATE36
 1737|       |    case 36:
 1738|       |        sha1recompress_fast_36(ihvin, ihvout, me2, state);
 1739|       |        break;
 1740|       |#endif
 1741|       |#ifdef DOSTORESTATE37
 1742|       |    case 37:
 1743|       |        sha1recompress_fast_37(ihvin, ihvout, me2, state);
 1744|       |        break;
 1745|       |#endif
 1746|       |#ifdef DOSTORESTATE38
 1747|       |    case 38:
 1748|       |        sha1recompress_fast_38(ihvin, ihvout, me2, state);
 1749|       |        break;
 1750|       |#endif
 1751|       |#ifdef DOSTORESTATE39
 1752|       |    case 39:
 1753|       |        sha1recompress_fast_39(ihvin, ihvout, me2, state);
 1754|       |        break;
 1755|       |#endif
 1756|       |#ifdef DOSTORESTATE40
 1757|       |    case 40:
 1758|       |        sha1recompress_fast_40(ihvin, ihvout, me2, state);
 1759|       |        break;
 1760|       |#endif
 1761|       |#ifdef DOSTORESTATE41
 1762|       |    case 41:
 1763|       |        sha1recompress_fast_41(ihvin, ihvout, me2, state);
 1764|       |        break;
 1765|       |#endif
 1766|       |#ifdef DOSTORESTATE42
 1767|       |    case 42:
 1768|       |        sha1recompress_fast_42(ihvin, ihvout, me2, state);
 1769|       |        break;
 1770|       |#endif
 1771|       |#ifdef DOSTORESTATE43
 1772|       |    case 43:
 1773|       |        sha1recompress_fast_43(ihvin, ihvout, me2, state);
 1774|       |        break;
 1775|       |#endif
 1776|       |#ifdef DOSTORESTATE44
 1777|       |    case 44:
 1778|       |        sha1recompress_fast_44(ihvin, ihvout, me2, state);
 1779|       |        break;
 1780|       |#endif
 1781|       |#ifdef DOSTORESTATE45
 1782|       |    case 45:
 1783|       |        sha1recompress_fast_45(ihvin, ihvout, me2, state);
 1784|       |        break;
 1785|       |#endif
 1786|       |#ifdef DOSTORESTATE46
 1787|       |    case 46:
 1788|       |        sha1recompress_fast_46(ihvin, ihvout, me2, state);
 1789|       |        break;
 1790|       |#endif
 1791|       |#ifdef DOSTORESTATE47
 1792|       |    case 47:
 1793|       |        sha1recompress_fast_47(ihvin, ihvout, me2, state);
 1794|       |        break;
 1795|       |#endif
 1796|       |#ifdef DOSTORESTATE48
 1797|       |    case 48:
 1798|       |        sha1recompress_fast_48(ihvin, ihvout, me2, state);
 1799|       |        break;
 1800|       |#endif
 1801|       |#ifdef DOSTORESTATE49
 1802|       |    case 49:
 1803|       |        sha1recompress_fast_49(ihvin, ihvout, me2, state);
 1804|       |        break;
 1805|       |#endif
 1806|       |#ifdef DOSTORESTATE50
 1807|       |    case 50:
 1808|       |        sha1recompress_fast_50(ihvin, ihvout, me2, state);
 1809|       |        break;
 1810|       |#endif
 1811|       |#ifdef DOSTORESTATE51
 1812|       |    case 51:
 1813|       |        sha1recompress_fast_51(ihvin, ihvout, me2, state);
 1814|       |        break;
 1815|       |#endif
 1816|       |#ifdef DOSTORESTATE52
 1817|       |    case 52:
 1818|       |        sha1recompress_fast_52(ihvin, ihvout, me2, state);
 1819|       |        break;
 1820|       |#endif
 1821|       |#ifdef DOSTORESTATE53
 1822|       |    case 53:
 1823|       |        sha1recompress_fast_53(ihvin, ihvout, me2, state);
 1824|       |        break;
 1825|       |#endif
 1826|       |#ifdef DOSTORESTATE54
 1827|       |    case 54:
 1828|       |        sha1recompress_fast_54(ihvin, ihvout, me2, state);
 1829|       |        break;
 1830|       |#endif
 1831|       |#ifdef DOSTORESTATE55
 1832|       |    case 55:
 1833|       |        sha1recompress_fast_55(ihvin, ihvout, me2, state);
 1834|       |        break;
 1835|       |#endif
 1836|       |#ifdef DOSTORESTATE56
 1837|       |    case 56:
 1838|       |        sha1recompress_fast_56(ihvin, ihvout, me2, state);
 1839|       |        break;
 1840|       |#endif
 1841|       |#ifdef DOSTORESTATE57
 1842|       |    case 57:
 1843|       |        sha1recompress_fast_57(ihvin, ihvout, me2, state);
 1844|       |        break;
 1845|       |#endif
 1846|      0|#ifdef DOSTORESTATE58
 1847|  44.0k|    case 58:
  ------------------
  |  Branch (1847:5): [True: 44.0k, False: 24.9k]
  ------------------
 1848|  44.0k|        sha1recompress_fast_58(ihvin, ihvout, me2, state);
 1849|  44.0k|        break;
 1850|      0|#endif
 1851|       |#ifdef DOSTORESTATE59
 1852|       |    case 59:
 1853|       |        sha1recompress_fast_59(ihvin, ihvout, me2, state);
 1854|       |        break;
 1855|       |#endif
 1856|       |#ifdef DOSTORESTATE60
 1857|       |    case 60:
 1858|       |        sha1recompress_fast_60(ihvin, ihvout, me2, state);
 1859|       |        break;
 1860|       |#endif
 1861|       |#ifdef DOSTORESTATE61
 1862|       |    case 61:
 1863|       |        sha1recompress_fast_61(ihvin, ihvout, me2, state);
 1864|       |        break;
 1865|       |#endif
 1866|       |#ifdef DOSTORESTATE62
 1867|       |    case 62:
 1868|       |        sha1recompress_fast_62(ihvin, ihvout, me2, state);
 1869|       |        break;
 1870|       |#endif
 1871|       |#ifdef DOSTORESTATE63
 1872|       |    case 63:
 1873|       |        sha1recompress_fast_63(ihvin, ihvout, me2, state);
 1874|       |        break;
 1875|       |#endif
 1876|       |#ifdef DOSTORESTATE64
 1877|       |    case 64:
 1878|       |        sha1recompress_fast_64(ihvin, ihvout, me2, state);
 1879|       |        break;
 1880|       |#endif
 1881|      0|#ifdef DOSTORESTATE65
 1882|  24.9k|    case 65:
  ------------------
  |  Branch (1882:5): [True: 24.9k, False: 44.0k]
  ------------------
 1883|  24.9k|        sha1recompress_fast_65(ihvin, ihvout, me2, state);
 1884|  24.9k|        break;
 1885|      0|#endif
 1886|       |#ifdef DOSTORESTATE66
 1887|       |    case 66:
 1888|       |        sha1recompress_fast_66(ihvin, ihvout, me2, state);
 1889|       |        break;
 1890|       |#endif
 1891|       |#ifdef DOSTORESTATE67
 1892|       |    case 67:
 1893|       |        sha1recompress_fast_67(ihvin, ihvout, me2, state);
 1894|       |        break;
 1895|       |#endif
 1896|       |#ifdef DOSTORESTATE68
 1897|       |    case 68:
 1898|       |        sha1recompress_fast_68(ihvin, ihvout, me2, state);
 1899|       |        break;
 1900|       |#endif
 1901|       |#ifdef DOSTORESTATE69
 1902|       |    case 69:
 1903|       |        sha1recompress_fast_69(ihvin, ihvout, me2, state);
 1904|       |        break;
 1905|       |#endif
 1906|       |#ifdef DOSTORESTATE70
 1907|       |    case 70:
 1908|       |        sha1recompress_fast_70(ihvin, ihvout, me2, state);
 1909|       |        break;
 1910|       |#endif
 1911|       |#ifdef DOSTORESTATE71
 1912|       |    case 71:
 1913|       |        sha1recompress_fast_71(ihvin, ihvout, me2, state);
 1914|       |        break;
 1915|       |#endif
 1916|       |#ifdef DOSTORESTATE72
 1917|       |    case 72:
 1918|       |        sha1recompress_fast_72(ihvin, ihvout, me2, state);
 1919|       |        break;
 1920|       |#endif
 1921|       |#ifdef DOSTORESTATE73
 1922|       |    case 73:
 1923|       |        sha1recompress_fast_73(ihvin, ihvout, me2, state);
 1924|       |        break;
 1925|       |#endif
 1926|       |#ifdef DOSTORESTATE74
 1927|       |    case 74:
 1928|       |        sha1recompress_fast_74(ihvin, ihvout, me2, state);
 1929|       |        break;
 1930|       |#endif
 1931|       |#ifdef DOSTORESTATE75
 1932|       |    case 75:
 1933|       |        sha1recompress_fast_75(ihvin, ihvout, me2, state);
 1934|       |        break;
 1935|       |#endif
 1936|       |#ifdef DOSTORESTATE76
 1937|       |    case 76:
 1938|       |        sha1recompress_fast_76(ihvin, ihvout, me2, state);
 1939|       |        break;
 1940|       |#endif
 1941|       |#ifdef DOSTORESTATE77
 1942|       |    case 77:
 1943|       |        sha1recompress_fast_77(ihvin, ihvout, me2, state);
 1944|       |        break;
 1945|       |#endif
 1946|       |#ifdef DOSTORESTATE78
 1947|       |    case 78:
 1948|       |        sha1recompress_fast_78(ihvin, ihvout, me2, state);
 1949|       |        break;
 1950|       |#endif
 1951|       |#ifdef DOSTORESTATE79
 1952|       |    case 79:
 1953|       |        sha1recompress_fast_79(ihvin, ihvout, me2, state);
 1954|       |        break;
 1955|       |#endif
 1956|      0|    default:
  ------------------
  |  Branch (1956:5): [True: 0, False: 69.0k]
  ------------------
 1957|      0|        abort();
 1958|  69.0k|    }
 1959|  69.0k|}
sha1.c:sha1recompress_fast_58:
  879|  44.0k|    {                                                                                         \
  880|  44.0k|        uint32_t a = state[0], b = state[1], c = state[2], d = state[3], e = state[4];        \
  881|  44.0k|        if (t > 79)                                                                           \
  ------------------
  |  Branch (881:13): [Folded, False: 44.0k]
  ------------------
  882|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(b, c, d, e, a, me2, 79);                    \
  ------------------
  |  |  202|      0|    {                                                                  \
  |  |  203|      0|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|      0|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  204|      0|        e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|      0|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  205|      0|    }
  ------------------
  883|  44.0k|        if (t > 78)                                                                           \
  ------------------
  |  Branch (883:13): [Folded, False: 44.0k]
  ------------------
  884|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(c, d, e, a, b, me2, 78);                    \
  ------------------
  |  |  202|      0|    {                                                                  \
  |  |  203|      0|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|      0|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  204|      0|        e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|      0|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  205|      0|    }
  ------------------
  885|  44.0k|        if (t > 77)                                                                           \
  ------------------
  |  Branch (885:13): [Folded, False: 44.0k]
  ------------------
  886|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(d, e, a, b, c, me2, 77);                    \
  ------------------
  |  |  202|      0|    {                                                                  \
  |  |  203|      0|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|      0|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  204|      0|        e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|      0|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  205|      0|    }
  ------------------
  887|  44.0k|        if (t > 76)                                                                           \
  ------------------
  |  Branch (887:13): [Folded, False: 44.0k]
  ------------------
  888|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(e, a, b, c, d, me2, 76);                    \
  ------------------
  |  |  202|      0|    {                                                                  \
  |  |  203|      0|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|      0|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  204|      0|        e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|      0|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  205|      0|    }
  ------------------
  889|  44.0k|        if (t > 75)                                                                           \
  ------------------
  |  Branch (889:13): [Folded, False: 44.0k]
  ------------------
  890|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(a, b, c, d, e, me2, 75);                    \
  ------------------
  |  |  202|      0|    {                                                                  \
  |  |  203|      0|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|      0|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  204|      0|        e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|      0|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  205|      0|    }
  ------------------
  891|  44.0k|        if (t > 74)                                                                           \
  ------------------
  |  Branch (891:13): [Folded, False: 44.0k]
  ------------------
  892|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(b, c, d, e, a, me2, 74);                    \
  ------------------
  |  |  202|      0|    {                                                                  \
  |  |  203|      0|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|      0|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  204|      0|        e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|      0|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  205|      0|    }
  ------------------
  893|  44.0k|        if (t > 73)                                                                           \
  ------------------
  |  Branch (893:13): [Folded, False: 44.0k]
  ------------------
  894|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(c, d, e, a, b, me2, 73);                    \
  ------------------
  |  |  202|      0|    {                                                                  \
  |  |  203|      0|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|      0|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  204|      0|        e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|      0|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  205|      0|    }
  ------------------
  895|  44.0k|        if (t > 72)                                                                           \
  ------------------
  |  Branch (895:13): [Folded, False: 44.0k]
  ------------------
  896|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(d, e, a, b, c, me2, 72);                    \
  ------------------
  |  |  202|      0|    {                                                                  \
  |  |  203|      0|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|      0|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  204|      0|        e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|      0|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  205|      0|    }
  ------------------
  897|  44.0k|        if (t > 71)                                                                           \
  ------------------
  |  Branch (897:13): [Folded, False: 44.0k]
  ------------------
  898|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(e, a, b, c, d, me2, 71);                    \
  ------------------
  |  |  202|      0|    {                                                                  \
  |  |  203|      0|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|      0|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  204|      0|        e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|      0|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  205|      0|    }
  ------------------
  899|  44.0k|        if (t > 70)                                                                           \
  ------------------
  |  Branch (899:13): [Folded, False: 44.0k]
  ------------------
  900|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(a, b, c, d, e, me2, 70);                    \
  ------------------
  |  |  202|      0|    {                                                                  \
  |  |  203|      0|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|      0|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  204|      0|        e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|      0|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  205|      0|    }
  ------------------
  901|  44.0k|        if (t > 69)                                                                           \
  ------------------
  |  Branch (901:13): [Folded, False: 44.0k]
  ------------------
  902|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(b, c, d, e, a, me2, 69);                    \
  ------------------
  |  |  202|      0|    {                                                                  \
  |  |  203|      0|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|      0|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  204|      0|        e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|      0|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  205|      0|    }
  ------------------
  903|  44.0k|        if (t > 68)                                                                           \
  ------------------
  |  Branch (903:13): [Folded, False: 44.0k]
  ------------------
  904|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(c, d, e, a, b, me2, 68);                    \
  ------------------
  |  |  202|      0|    {                                                                  \
  |  |  203|      0|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|      0|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  204|      0|        e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|      0|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  205|      0|    }
  ------------------
  905|  44.0k|        if (t > 67)                                                                           \
  ------------------
  |  Branch (905:13): [Folded, False: 44.0k]
  ------------------
  906|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(d, e, a, b, c, me2, 67);                    \
  ------------------
  |  |  202|      0|    {                                                                  \
  |  |  203|      0|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|      0|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  204|      0|        e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|      0|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  205|      0|    }
  ------------------
  907|  44.0k|        if (t > 66)                                                                           \
  ------------------
  |  Branch (907:13): [Folded, False: 44.0k]
  ------------------
  908|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(e, a, b, c, d, me2, 66);                    \
  ------------------
  |  |  202|      0|    {                                                                  \
  |  |  203|      0|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|      0|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  204|      0|        e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|      0|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  205|      0|    }
  ------------------
  909|  44.0k|        if (t > 65)                                                                           \
  ------------------
  |  Branch (909:13): [Folded, False: 44.0k]
  ------------------
  910|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(a, b, c, d, e, me2, 65);                    \
  ------------------
  |  |  202|      0|    {                                                                  \
  |  |  203|      0|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|      0|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  204|      0|        e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|      0|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  205|      0|    }
  ------------------
  911|  44.0k|        if (t > 64)                                                                           \
  ------------------
  |  Branch (911:13): [Folded, False: 44.0k]
  ------------------
  912|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(b, c, d, e, a, me2, 64);                    \
  ------------------
  |  |  202|      0|    {                                                                  \
  |  |  203|      0|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|      0|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  204|      0|        e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|      0|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  205|      0|    }
  ------------------
  913|  44.0k|        if (t > 63)                                                                           \
  ------------------
  |  Branch (913:13): [Folded, False: 44.0k]
  ------------------
  914|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(c, d, e, a, b, me2, 63);                    \
  ------------------
  |  |  202|      0|    {                                                                  \
  |  |  203|      0|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|      0|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  204|      0|        e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|      0|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  205|      0|    }
  ------------------
  915|  44.0k|        if (t > 62)                                                                           \
  ------------------
  |  Branch (915:13): [Folded, False: 44.0k]
  ------------------
  916|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(d, e, a, b, c, me2, 62);                    \
  ------------------
  |  |  202|      0|    {                                                                  \
  |  |  203|      0|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|      0|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  204|      0|        e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|      0|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  205|      0|    }
  ------------------
  917|  44.0k|        if (t > 61)                                                                           \
  ------------------
  |  Branch (917:13): [Folded, False: 44.0k]
  ------------------
  918|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(e, a, b, c, d, me2, 61);                    \
  ------------------
  |  |  202|      0|    {                                                                  \
  |  |  203|      0|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|      0|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  204|      0|        e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|      0|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  205|      0|    }
  ------------------
  919|  44.0k|        if (t > 60)                                                                           \
  ------------------
  |  Branch (919:13): [Folded, False: 44.0k]
  ------------------
  920|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(a, b, c, d, e, me2, 60);                    \
  ------------------
  |  |  202|      0|    {                                                                  \
  |  |  203|      0|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|      0|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  204|      0|        e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|      0|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  205|      0|    }
  ------------------
  921|  44.0k|        if (t > 59)                                                                           \
  ------------------
  |  Branch (921:13): [Folded, False: 44.0k]
  ------------------
  922|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(b, c, d, e, a, me2, 59);                    \
  ------------------
  |  |  197|      0|    {                                                                  \
  |  |  198|      0|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|      0|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  199|      0|        e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|      0|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  200|      0|    }
  ------------------
  923|  44.0k|        if (t > 58)                                                                           \
  ------------------
  |  Branch (923:13): [Folded, False: 44.0k]
  ------------------
  924|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(c, d, e, a, b, me2, 58);                    \
  ------------------
  |  |  197|      0|    {                                                                  \
  |  |  198|      0|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|      0|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  199|      0|        e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|      0|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  200|      0|    }
  ------------------
  925|  44.0k|        if (t > 57)                                                                           \
  ------------------
  |  Branch (925:13): [True: 44.0k, Folded]
  ------------------
  926|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(d, e, a, b, c, me2, 57);                    \
  ------------------
  |  |  197|  44.0k|    {                                                                  \
  |  |  198|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  199|  44.0k|        e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|  44.0k|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  200|  44.0k|    }
  ------------------
  927|  44.0k|        if (t > 56)                                                                           \
  ------------------
  |  Branch (927:13): [True: 44.0k, Folded]
  ------------------
  928|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(e, a, b, c, d, me2, 56);                    \
  ------------------
  |  |  197|  44.0k|    {                                                                  \
  |  |  198|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  199|  44.0k|        e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|  44.0k|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  200|  44.0k|    }
  ------------------
  929|  44.0k|        if (t > 55)                                                                           \
  ------------------
  |  Branch (929:13): [True: 44.0k, Folded]
  ------------------
  930|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(a, b, c, d, e, me2, 55);                    \
  ------------------
  |  |  197|  44.0k|    {                                                                  \
  |  |  198|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  199|  44.0k|        e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|  44.0k|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  200|  44.0k|    }
  ------------------
  931|  44.0k|        if (t > 54)                                                                           \
  ------------------
  |  Branch (931:13): [True: 44.0k, Folded]
  ------------------
  932|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(b, c, d, e, a, me2, 54);                    \
  ------------------
  |  |  197|  44.0k|    {                                                                  \
  |  |  198|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  199|  44.0k|        e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|  44.0k|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  200|  44.0k|    }
  ------------------
  933|  44.0k|        if (t > 53)                                                                           \
  ------------------
  |  Branch (933:13): [True: 44.0k, Folded]
  ------------------
  934|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(c, d, e, a, b, me2, 53);                    \
  ------------------
  |  |  197|  44.0k|    {                                                                  \
  |  |  198|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  199|  44.0k|        e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|  44.0k|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  200|  44.0k|    }
  ------------------
  935|  44.0k|        if (t > 52)                                                                           \
  ------------------
  |  Branch (935:13): [True: 44.0k, Folded]
  ------------------
  936|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(d, e, a, b, c, me2, 52);                    \
  ------------------
  |  |  197|  44.0k|    {                                                                  \
  |  |  198|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  199|  44.0k|        e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|  44.0k|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  200|  44.0k|    }
  ------------------
  937|  44.0k|        if (t > 51)                                                                           \
  ------------------
  |  Branch (937:13): [True: 44.0k, Folded]
  ------------------
  938|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(e, a, b, c, d, me2, 51);                    \
  ------------------
  |  |  197|  44.0k|    {                                                                  \
  |  |  198|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  199|  44.0k|        e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|  44.0k|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  200|  44.0k|    }
  ------------------
  939|  44.0k|        if (t > 50)                                                                           \
  ------------------
  |  Branch (939:13): [True: 44.0k, Folded]
  ------------------
  940|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(a, b, c, d, e, me2, 50);                    \
  ------------------
  |  |  197|  44.0k|    {                                                                  \
  |  |  198|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  199|  44.0k|        e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|  44.0k|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  200|  44.0k|    }
  ------------------
  941|  44.0k|        if (t > 49)                                                                           \
  ------------------
  |  Branch (941:13): [True: 44.0k, Folded]
  ------------------
  942|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(b, c, d, e, a, me2, 49);                    \
  ------------------
  |  |  197|  44.0k|    {                                                                  \
  |  |  198|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  199|  44.0k|        e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|  44.0k|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  200|  44.0k|    }
  ------------------
  943|  44.0k|        if (t > 48)                                                                           \
  ------------------
  |  Branch (943:13): [True: 44.0k, Folded]
  ------------------
  944|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(c, d, e, a, b, me2, 48);                    \
  ------------------
  |  |  197|  44.0k|    {                                                                  \
  |  |  198|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  199|  44.0k|        e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|  44.0k|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  200|  44.0k|    }
  ------------------
  945|  44.0k|        if (t > 47)                                                                           \
  ------------------
  |  Branch (945:13): [True: 44.0k, Folded]
  ------------------
  946|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(d, e, a, b, c, me2, 47);                    \
  ------------------
  |  |  197|  44.0k|    {                                                                  \
  |  |  198|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  199|  44.0k|        e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|  44.0k|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  200|  44.0k|    }
  ------------------
  947|  44.0k|        if (t > 46)                                                                           \
  ------------------
  |  Branch (947:13): [True: 44.0k, Folded]
  ------------------
  948|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(e, a, b, c, d, me2, 46);                    \
  ------------------
  |  |  197|  44.0k|    {                                                                  \
  |  |  198|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  199|  44.0k|        e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|  44.0k|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  200|  44.0k|    }
  ------------------
  949|  44.0k|        if (t > 45)                                                                           \
  ------------------
  |  Branch (949:13): [True: 44.0k, Folded]
  ------------------
  950|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(a, b, c, d, e, me2, 45);                    \
  ------------------
  |  |  197|  44.0k|    {                                                                  \
  |  |  198|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  199|  44.0k|        e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|  44.0k|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  200|  44.0k|    }
  ------------------
  951|  44.0k|        if (t > 44)                                                                           \
  ------------------
  |  Branch (951:13): [True: 44.0k, Folded]
  ------------------
  952|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(b, c, d, e, a, me2, 44);                    \
  ------------------
  |  |  197|  44.0k|    {                                                                  \
  |  |  198|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  199|  44.0k|        e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|  44.0k|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  200|  44.0k|    }
  ------------------
  953|  44.0k|        if (t > 43)                                                                           \
  ------------------
  |  Branch (953:13): [True: 44.0k, Folded]
  ------------------
  954|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(c, d, e, a, b, me2, 43);                    \
  ------------------
  |  |  197|  44.0k|    {                                                                  \
  |  |  198|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  199|  44.0k|        e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|  44.0k|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  200|  44.0k|    }
  ------------------
  955|  44.0k|        if (t > 42)                                                                           \
  ------------------
  |  Branch (955:13): [True: 44.0k, Folded]
  ------------------
  956|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(d, e, a, b, c, me2, 42);                    \
  ------------------
  |  |  197|  44.0k|    {                                                                  \
  |  |  198|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  199|  44.0k|        e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|  44.0k|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  200|  44.0k|    }
  ------------------
  957|  44.0k|        if (t > 41)                                                                           \
  ------------------
  |  Branch (957:13): [True: 44.0k, Folded]
  ------------------
  958|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(e, a, b, c, d, me2, 41);                    \
  ------------------
  |  |  197|  44.0k|    {                                                                  \
  |  |  198|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  199|  44.0k|        e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|  44.0k|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  200|  44.0k|    }
  ------------------
  959|  44.0k|        if (t > 40)                                                                           \
  ------------------
  |  Branch (959:13): [True: 44.0k, Folded]
  ------------------
  960|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(a, b, c, d, e, me2, 40);                    \
  ------------------
  |  |  197|  44.0k|    {                                                                  \
  |  |  198|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  199|  44.0k|        e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|  44.0k|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  200|  44.0k|    }
  ------------------
  961|  44.0k|        if (t > 39)                                                                           \
  ------------------
  |  Branch (961:13): [True: 44.0k, Folded]
  ------------------
  962|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(b, c, d, e, a, me2, 39);                    \
  ------------------
  |  |  192|  44.0k|    {                                                                  \
  |  |  193|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  194|  44.0k|        e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|  44.0k|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  195|  44.0k|    }
  ------------------
  963|  44.0k|        if (t > 38)                                                                           \
  ------------------
  |  Branch (963:13): [True: 44.0k, Folded]
  ------------------
  964|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(c, d, e, a, b, me2, 38);                    \
  ------------------
  |  |  192|  44.0k|    {                                                                  \
  |  |  193|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  194|  44.0k|        e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|  44.0k|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  195|  44.0k|    }
  ------------------
  965|  44.0k|        if (t > 37)                                                                           \
  ------------------
  |  Branch (965:13): [True: 44.0k, Folded]
  ------------------
  966|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(d, e, a, b, c, me2, 37);                    \
  ------------------
  |  |  192|  44.0k|    {                                                                  \
  |  |  193|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  194|  44.0k|        e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|  44.0k|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  195|  44.0k|    }
  ------------------
  967|  44.0k|        if (t > 36)                                                                           \
  ------------------
  |  Branch (967:13): [True: 44.0k, Folded]
  ------------------
  968|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(e, a, b, c, d, me2, 36);                    \
  ------------------
  |  |  192|  44.0k|    {                                                                  \
  |  |  193|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  194|  44.0k|        e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|  44.0k|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  195|  44.0k|    }
  ------------------
  969|  44.0k|        if (t > 35)                                                                           \
  ------------------
  |  Branch (969:13): [True: 44.0k, Folded]
  ------------------
  970|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(a, b, c, d, e, me2, 35);                    \
  ------------------
  |  |  192|  44.0k|    {                                                                  \
  |  |  193|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  194|  44.0k|        e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|  44.0k|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  195|  44.0k|    }
  ------------------
  971|  44.0k|        if (t > 34)                                                                           \
  ------------------
  |  Branch (971:13): [True: 44.0k, Folded]
  ------------------
  972|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(b, c, d, e, a, me2, 34);                    \
  ------------------
  |  |  192|  44.0k|    {                                                                  \
  |  |  193|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  194|  44.0k|        e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|  44.0k|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  195|  44.0k|    }
  ------------------
  973|  44.0k|        if (t > 33)                                                                           \
  ------------------
  |  Branch (973:13): [True: 44.0k, Folded]
  ------------------
  974|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(c, d, e, a, b, me2, 33);                    \
  ------------------
  |  |  192|  44.0k|    {                                                                  \
  |  |  193|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  194|  44.0k|        e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|  44.0k|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  195|  44.0k|    }
  ------------------
  975|  44.0k|        if (t > 32)                                                                           \
  ------------------
  |  Branch (975:13): [True: 44.0k, Folded]
  ------------------
  976|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(d, e, a, b, c, me2, 32);                    \
  ------------------
  |  |  192|  44.0k|    {                                                                  \
  |  |  193|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  194|  44.0k|        e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|  44.0k|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  195|  44.0k|    }
  ------------------
  977|  44.0k|        if (t > 31)                                                                           \
  ------------------
  |  Branch (977:13): [True: 44.0k, Folded]
  ------------------
  978|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(e, a, b, c, d, me2, 31);                    \
  ------------------
  |  |  192|  44.0k|    {                                                                  \
  |  |  193|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  194|  44.0k|        e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|  44.0k|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  195|  44.0k|    }
  ------------------
  979|  44.0k|        if (t > 30)                                                                           \
  ------------------
  |  Branch (979:13): [True: 44.0k, Folded]
  ------------------
  980|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(a, b, c, d, e, me2, 30);                    \
  ------------------
  |  |  192|  44.0k|    {                                                                  \
  |  |  193|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  194|  44.0k|        e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|  44.0k|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  195|  44.0k|    }
  ------------------
  981|  44.0k|        if (t > 29)                                                                           \
  ------------------
  |  Branch (981:13): [True: 44.0k, Folded]
  ------------------
  982|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(b, c, d, e, a, me2, 29);                    \
  ------------------
  |  |  192|  44.0k|    {                                                                  \
  |  |  193|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  194|  44.0k|        e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|  44.0k|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  195|  44.0k|    }
  ------------------
  983|  44.0k|        if (t > 28)                                                                           \
  ------------------
  |  Branch (983:13): [True: 44.0k, Folded]
  ------------------
  984|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(c, d, e, a, b, me2, 28);                    \
  ------------------
  |  |  192|  44.0k|    {                                                                  \
  |  |  193|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  194|  44.0k|        e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|  44.0k|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  195|  44.0k|    }
  ------------------
  985|  44.0k|        if (t > 27)                                                                           \
  ------------------
  |  Branch (985:13): [True: 44.0k, Folded]
  ------------------
  986|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(d, e, a, b, c, me2, 27);                    \
  ------------------
  |  |  192|  44.0k|    {                                                                  \
  |  |  193|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  194|  44.0k|        e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|  44.0k|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  195|  44.0k|    }
  ------------------
  987|  44.0k|        if (t > 26)                                                                           \
  ------------------
  |  Branch (987:13): [True: 44.0k, Folded]
  ------------------
  988|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(e, a, b, c, d, me2, 26);                    \
  ------------------
  |  |  192|  44.0k|    {                                                                  \
  |  |  193|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  194|  44.0k|        e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|  44.0k|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  195|  44.0k|    }
  ------------------
  989|  44.0k|        if (t > 25)                                                                           \
  ------------------
  |  Branch (989:13): [True: 44.0k, Folded]
  ------------------
  990|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(a, b, c, d, e, me2, 25);                    \
  ------------------
  |  |  192|  44.0k|    {                                                                  \
  |  |  193|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  194|  44.0k|        e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|  44.0k|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  195|  44.0k|    }
  ------------------
  991|  44.0k|        if (t > 24)                                                                           \
  ------------------
  |  Branch (991:13): [True: 44.0k, Folded]
  ------------------
  992|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(b, c, d, e, a, me2, 24);                    \
  ------------------
  |  |  192|  44.0k|    {                                                                  \
  |  |  193|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  194|  44.0k|        e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|  44.0k|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  195|  44.0k|    }
  ------------------
  993|  44.0k|        if (t > 23)                                                                           \
  ------------------
  |  Branch (993:13): [True: 44.0k, Folded]
  ------------------
  994|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(c, d, e, a, b, me2, 23);                    \
  ------------------
  |  |  192|  44.0k|    {                                                                  \
  |  |  193|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  194|  44.0k|        e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|  44.0k|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  195|  44.0k|    }
  ------------------
  995|  44.0k|        if (t > 22)                                                                           \
  ------------------
  |  Branch (995:13): [True: 44.0k, Folded]
  ------------------
  996|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(d, e, a, b, c, me2, 22);                    \
  ------------------
  |  |  192|  44.0k|    {                                                                  \
  |  |  193|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  194|  44.0k|        e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|  44.0k|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  195|  44.0k|    }
  ------------------
  997|  44.0k|        if (t > 21)                                                                           \
  ------------------
  |  Branch (997:13): [True: 44.0k, Folded]
  ------------------
  998|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(e, a, b, c, d, me2, 21);                    \
  ------------------
  |  |  192|  44.0k|    {                                                                  \
  |  |  193|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  194|  44.0k|        e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|  44.0k|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  195|  44.0k|    }
  ------------------
  999|  44.0k|        if (t > 20)                                                                           \
  ------------------
  |  Branch (999:13): [True: 44.0k, Folded]
  ------------------
 1000|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(a, b, c, d, e, me2, 20);                    \
  ------------------
  |  |  192|  44.0k|    {                                                                  \
  |  |  193|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  194|  44.0k|        e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|  44.0k|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  195|  44.0k|    }
  ------------------
 1001|  44.0k|        if (t > 19)                                                                           \
  ------------------
  |  Branch (1001:13): [True: 44.0k, Folded]
  ------------------
 1002|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(b, c, d, e, a, me2, 19);                    \
  ------------------
  |  |  187|  44.0k|    {                                                                  \
  |  |  188|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  189|  44.0k|        e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|  44.0k|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  190|  44.0k|    }
  ------------------
 1003|  44.0k|        if (t > 18)                                                                           \
  ------------------
  |  Branch (1003:13): [True: 44.0k, Folded]
  ------------------
 1004|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(c, d, e, a, b, me2, 18);                    \
  ------------------
  |  |  187|  44.0k|    {                                                                  \
  |  |  188|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  189|  44.0k|        e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|  44.0k|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  190|  44.0k|    }
  ------------------
 1005|  44.0k|        if (t > 17)                                                                           \
  ------------------
  |  Branch (1005:13): [True: 44.0k, Folded]
  ------------------
 1006|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(d, e, a, b, c, me2, 17);                    \
  ------------------
  |  |  187|  44.0k|    {                                                                  \
  |  |  188|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  189|  44.0k|        e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|  44.0k|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  190|  44.0k|    }
  ------------------
 1007|  44.0k|        if (t > 16)                                                                           \
  ------------------
  |  Branch (1007:13): [True: 44.0k, Folded]
  ------------------
 1008|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(e, a, b, c, d, me2, 16);                    \
  ------------------
  |  |  187|  44.0k|    {                                                                  \
  |  |  188|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  189|  44.0k|        e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|  44.0k|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  190|  44.0k|    }
  ------------------
 1009|  44.0k|        if (t > 15)                                                                           \
  ------------------
  |  Branch (1009:13): [True: 44.0k, Folded]
  ------------------
 1010|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(a, b, c, d, e, me2, 15);                    \
  ------------------
  |  |  187|  44.0k|    {                                                                  \
  |  |  188|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  189|  44.0k|        e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|  44.0k|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  190|  44.0k|    }
  ------------------
 1011|  44.0k|        if (t > 14)                                                                           \
  ------------------
  |  Branch (1011:13): [True: 44.0k, Folded]
  ------------------
 1012|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(b, c, d, e, a, me2, 14);                    \
  ------------------
  |  |  187|  44.0k|    {                                                                  \
  |  |  188|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  189|  44.0k|        e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|  44.0k|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  190|  44.0k|    }
  ------------------
 1013|  44.0k|        if (t > 13)                                                                           \
  ------------------
  |  Branch (1013:13): [True: 44.0k, Folded]
  ------------------
 1014|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(c, d, e, a, b, me2, 13);                    \
  ------------------
  |  |  187|  44.0k|    {                                                                  \
  |  |  188|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  189|  44.0k|        e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|  44.0k|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  190|  44.0k|    }
  ------------------
 1015|  44.0k|        if (t > 12)                                                                           \
  ------------------
  |  Branch (1015:13): [True: 44.0k, Folded]
  ------------------
 1016|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(d, e, a, b, c, me2, 12);                    \
  ------------------
  |  |  187|  44.0k|    {                                                                  \
  |  |  188|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  189|  44.0k|        e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|  44.0k|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  190|  44.0k|    }
  ------------------
 1017|  44.0k|        if (t > 11)                                                                           \
  ------------------
  |  Branch (1017:13): [True: 44.0k, Folded]
  ------------------
 1018|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(e, a, b, c, d, me2, 11);                    \
  ------------------
  |  |  187|  44.0k|    {                                                                  \
  |  |  188|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  189|  44.0k|        e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|  44.0k|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  190|  44.0k|    }
  ------------------
 1019|  44.0k|        if (t > 10)                                                                           \
  ------------------
  |  Branch (1019:13): [True: 44.0k, Folded]
  ------------------
 1020|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(a, b, c, d, e, me2, 10);                    \
  ------------------
  |  |  187|  44.0k|    {                                                                  \
  |  |  188|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  189|  44.0k|        e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|  44.0k|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  190|  44.0k|    }
  ------------------
 1021|  44.0k|        if (t > 9)                                                                            \
  ------------------
  |  Branch (1021:13): [True: 44.0k, Folded]
  ------------------
 1022|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(b, c, d, e, a, me2, 9);                     \
  ------------------
  |  |  187|  44.0k|    {                                                                  \
  |  |  188|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  189|  44.0k|        e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|  44.0k|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  190|  44.0k|    }
  ------------------
 1023|  44.0k|        if (t > 8)                                                                            \
  ------------------
  |  Branch (1023:13): [True: 44.0k, Folded]
  ------------------
 1024|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(c, d, e, a, b, me2, 8);                     \
  ------------------
  |  |  187|  44.0k|    {                                                                  \
  |  |  188|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  189|  44.0k|        e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|  44.0k|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  190|  44.0k|    }
  ------------------
 1025|  44.0k|        if (t > 7)                                                                            \
  ------------------
  |  Branch (1025:13): [True: 44.0k, Folded]
  ------------------
 1026|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(d, e, a, b, c, me2, 7);                     \
  ------------------
  |  |  187|  44.0k|    {                                                                  \
  |  |  188|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  189|  44.0k|        e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|  44.0k|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  190|  44.0k|    }
  ------------------
 1027|  44.0k|        if (t > 6)                                                                            \
  ------------------
  |  Branch (1027:13): [True: 44.0k, Folded]
  ------------------
 1028|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(e, a, b, c, d, me2, 6);                     \
  ------------------
  |  |  187|  44.0k|    {                                                                  \
  |  |  188|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  189|  44.0k|        e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|  44.0k|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  190|  44.0k|    }
  ------------------
 1029|  44.0k|        if (t > 5)                                                                            \
  ------------------
  |  Branch (1029:13): [True: 44.0k, Folded]
  ------------------
 1030|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(a, b, c, d, e, me2, 5);                     \
  ------------------
  |  |  187|  44.0k|    {                                                                  \
  |  |  188|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  189|  44.0k|        e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|  44.0k|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  190|  44.0k|    }
  ------------------
 1031|  44.0k|        if (t > 4)                                                                            \
  ------------------
  |  Branch (1031:13): [True: 44.0k, Folded]
  ------------------
 1032|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(b, c, d, e, a, me2, 4);                     \
  ------------------
  |  |  187|  44.0k|    {                                                                  \
  |  |  188|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  189|  44.0k|        e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|  44.0k|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  190|  44.0k|    }
  ------------------
 1033|  44.0k|        if (t > 3)                                                                            \
  ------------------
  |  Branch (1033:13): [True: 44.0k, Folded]
  ------------------
 1034|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(c, d, e, a, b, me2, 3);                     \
  ------------------
  |  |  187|  44.0k|    {                                                                  \
  |  |  188|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  189|  44.0k|        e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|  44.0k|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  190|  44.0k|    }
  ------------------
 1035|  44.0k|        if (t > 2)                                                                            \
  ------------------
  |  Branch (1035:13): [True: 44.0k, Folded]
  ------------------
 1036|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(d, e, a, b, c, me2, 2);                     \
  ------------------
  |  |  187|  44.0k|    {                                                                  \
  |  |  188|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  189|  44.0k|        e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|  44.0k|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  190|  44.0k|    }
  ------------------
 1037|  44.0k|        if (t > 1)                                                                            \
  ------------------
  |  Branch (1037:13): [True: 44.0k, Folded]
  ------------------
 1038|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(e, a, b, c, d, me2, 1);                     \
  ------------------
  |  |  187|  44.0k|    {                                                                  \
  |  |  188|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  189|  44.0k|        e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|  44.0k|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  190|  44.0k|    }
  ------------------
 1039|  44.0k|        if (t > 0)                                                                            \
  ------------------
  |  Branch (1039:13): [True: 44.0k, Folded]
  ------------------
 1040|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(a, b, c, d, e, me2, 0);                     \
  ------------------
  |  |  187|  44.0k|    {                                                                  \
  |  |  188|  44.0k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  44.0k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  189|  44.0k|        e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|  44.0k|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  190|  44.0k|    }
  ------------------
 1041|  44.0k|        ihvin[0] = a;                                                                         \
 1042|  44.0k|        ihvin[1] = b;                                                                         \
 1043|  44.0k|        ihvin[2] = c;                                                                         \
 1044|  44.0k|        ihvin[3] = d;                                                                         \
 1045|  44.0k|        ihvin[4] = e;                                                                         \
 1046|  44.0k|        a = state[0];                                                                         \
 1047|  44.0k|        b = state[1];                                                                         \
 1048|  44.0k|        c = state[2];                                                                         \
 1049|  44.0k|        d = state[3];                                                                         \
 1050|  44.0k|        e = state[4];                                                                         \
 1051|  44.0k|        if (t <= 0)                                                                           \
  ------------------
  |  Branch (1051:13): [Folded, False: 44.0k]
  ------------------
 1052|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP(a, b, c, d, e, me2, 0);                        \
  ------------------
  |  |  166|      0|    {                                                                  \
  |  |  167|      0|        e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|      0|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  168|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  169|      0|    }
  ------------------
 1053|  44.0k|        if (t <= 1)                                                                           \
  ------------------
  |  Branch (1053:13): [Folded, False: 44.0k]
  ------------------
 1054|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP(e, a, b, c, d, me2, 1);                        \
  ------------------
  |  |  166|      0|    {                                                                  \
  |  |  167|      0|        e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|      0|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  168|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  169|      0|    }
  ------------------
 1055|  44.0k|        if (t <= 2)                                                                           \
  ------------------
  |  Branch (1055:13): [Folded, False: 44.0k]
  ------------------
 1056|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP(d, e, a, b, c, me2, 2);                        \
  ------------------
  |  |  166|      0|    {                                                                  \
  |  |  167|      0|        e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|      0|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  168|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  169|      0|    }
  ------------------
 1057|  44.0k|        if (t <= 3)                                                                           \
  ------------------
  |  Branch (1057:13): [Folded, False: 44.0k]
  ------------------
 1058|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP(c, d, e, a, b, me2, 3);                        \
  ------------------
  |  |  166|      0|    {                                                                  \
  |  |  167|      0|        e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|      0|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  168|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  169|      0|    }
  ------------------
 1059|  44.0k|        if (t <= 4)                                                                           \
  ------------------
  |  Branch (1059:13): [Folded, False: 44.0k]
  ------------------
 1060|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP(b, c, d, e, a, me2, 4);                        \
  ------------------
  |  |  166|      0|    {                                                                  \
  |  |  167|      0|        e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|      0|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  168|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  169|      0|    }
  ------------------
 1061|  44.0k|        if (t <= 5)                                                                           \
  ------------------
  |  Branch (1061:13): [Folded, False: 44.0k]
  ------------------
 1062|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP(a, b, c, d, e, me2, 5);                        \
  ------------------
  |  |  166|      0|    {                                                                  \
  |  |  167|      0|        e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|      0|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  168|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  169|      0|    }
  ------------------
 1063|  44.0k|        if (t <= 6)                                                                           \
  ------------------
  |  Branch (1063:13): [Folded, False: 44.0k]
  ------------------
 1064|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP(e, a, b, c, d, me2, 6);                        \
  ------------------
  |  |  166|      0|    {                                                                  \
  |  |  167|      0|        e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|      0|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  168|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  169|      0|    }
  ------------------
 1065|  44.0k|        if (t <= 7)                                                                           \
  ------------------
  |  Branch (1065:13): [Folded, False: 44.0k]
  ------------------
 1066|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP(d, e, a, b, c, me2, 7);                        \
  ------------------
  |  |  166|      0|    {                                                                  \
  |  |  167|      0|        e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|      0|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  168|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  169|      0|    }
  ------------------
 1067|  44.0k|        if (t <= 8)                                                                           \
  ------------------
  |  Branch (1067:13): [Folded, False: 44.0k]
  ------------------
 1068|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP(c, d, e, a, b, me2, 8);                        \
  ------------------
  |  |  166|      0|    {                                                                  \
  |  |  167|      0|        e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|      0|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  168|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  169|      0|    }
  ------------------
 1069|  44.0k|        if (t <= 9)                                                                           \
  ------------------
  |  Branch (1069:13): [Folded, False: 44.0k]
  ------------------
 1070|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP(b, c, d, e, a, me2, 9);                        \
  ------------------
  |  |  166|      0|    {                                                                  \
  |  |  167|      0|        e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|      0|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  168|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  169|      0|    }
  ------------------
 1071|  44.0k|        if (t <= 10)                                                                          \
  ------------------
  |  Branch (1071:13): [Folded, False: 44.0k]
  ------------------
 1072|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP(a, b, c, d, e, me2, 10);                       \
  ------------------
  |  |  166|      0|    {                                                                  \
  |  |  167|      0|        e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|      0|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  168|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  169|      0|    }
  ------------------
 1073|  44.0k|        if (t <= 11)                                                                          \
  ------------------
  |  Branch (1073:13): [Folded, False: 44.0k]
  ------------------
 1074|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP(e, a, b, c, d, me2, 11);                       \
  ------------------
  |  |  166|      0|    {                                                                  \
  |  |  167|      0|        e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|      0|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  168|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  169|      0|    }
  ------------------
 1075|  44.0k|        if (t <= 12)                                                                          \
  ------------------
  |  Branch (1075:13): [Folded, False: 44.0k]
  ------------------
 1076|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP(d, e, a, b, c, me2, 12);                       \
  ------------------
  |  |  166|      0|    {                                                                  \
  |  |  167|      0|        e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|      0|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  168|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  169|      0|    }
  ------------------
 1077|  44.0k|        if (t <= 13)                                                                          \
  ------------------
  |  Branch (1077:13): [Folded, False: 44.0k]
  ------------------
 1078|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP(c, d, e, a, b, me2, 13);                       \
  ------------------
  |  |  166|      0|    {                                                                  \
  |  |  167|      0|        e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|      0|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  168|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  169|      0|    }
  ------------------
 1079|  44.0k|        if (t <= 14)                                                                          \
  ------------------
  |  Branch (1079:13): [Folded, False: 44.0k]
  ------------------
 1080|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP(b, c, d, e, a, me2, 14);                       \
  ------------------
  |  |  166|      0|    {                                                                  \
  |  |  167|      0|        e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|      0|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  168|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  169|      0|    }
  ------------------
 1081|  44.0k|        if (t <= 15)                                                                          \
  ------------------
  |  Branch (1081:13): [Folded, False: 44.0k]
  ------------------
 1082|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP(a, b, c, d, e, me2, 15);                       \
  ------------------
  |  |  166|      0|    {                                                                  \
  |  |  167|      0|        e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|      0|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  168|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  169|      0|    }
  ------------------
 1083|  44.0k|        if (t <= 16)                                                                          \
  ------------------
  |  Branch (1083:13): [Folded, False: 44.0k]
  ------------------
 1084|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP(e, a, b, c, d, me2, 16);                       \
  ------------------
  |  |  166|      0|    {                                                                  \
  |  |  167|      0|        e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|      0|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  168|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  169|      0|    }
  ------------------
 1085|  44.0k|        if (t <= 17)                                                                          \
  ------------------
  |  Branch (1085:13): [Folded, False: 44.0k]
  ------------------
 1086|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP(d, e, a, b, c, me2, 17);                       \
  ------------------
  |  |  166|      0|    {                                                                  \
  |  |  167|      0|        e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|      0|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  168|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  169|      0|    }
  ------------------
 1087|  44.0k|        if (t <= 18)                                                                          \
  ------------------
  |  Branch (1087:13): [Folded, False: 44.0k]
  ------------------
 1088|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP(c, d, e, a, b, me2, 18);                       \
  ------------------
  |  |  166|      0|    {                                                                  \
  |  |  167|      0|        e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|      0|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  168|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  169|      0|    }
  ------------------
 1089|  44.0k|        if (t <= 19)                                                                          \
  ------------------
  |  Branch (1089:13): [Folded, False: 44.0k]
  ------------------
 1090|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP(b, c, d, e, a, me2, 19);                       \
  ------------------
  |  |  166|      0|    {                                                                  \
  |  |  167|      0|        e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|      0|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  168|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  169|      0|    }
  ------------------
 1091|  44.0k|        if (t <= 20)                                                                          \
  ------------------
  |  Branch (1091:13): [Folded, False: 44.0k]
  ------------------
 1092|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP(a, b, c, d, e, me2, 20);                       \
  ------------------
  |  |  171|      0|    {                                                                  \
  |  |  172|      0|        e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|      0|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  173|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  174|      0|    }
  ------------------
 1093|  44.0k|        if (t <= 21)                                                                          \
  ------------------
  |  Branch (1093:13): [Folded, False: 44.0k]
  ------------------
 1094|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP(e, a, b, c, d, me2, 21);                       \
  ------------------
  |  |  171|      0|    {                                                                  \
  |  |  172|      0|        e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|      0|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  173|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  174|      0|    }
  ------------------
 1095|  44.0k|        if (t <= 22)                                                                          \
  ------------------
  |  Branch (1095:13): [Folded, False: 44.0k]
  ------------------
 1096|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP(d, e, a, b, c, me2, 22);                       \
  ------------------
  |  |  171|      0|    {                                                                  \
  |  |  172|      0|        e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|      0|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  173|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  174|      0|    }
  ------------------
 1097|  44.0k|        if (t <= 23)                                                                          \
  ------------------
  |  Branch (1097:13): [Folded, False: 44.0k]
  ------------------
 1098|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP(c, d, e, a, b, me2, 23);                       \
  ------------------
  |  |  171|      0|    {                                                                  \
  |  |  172|      0|        e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|      0|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  173|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  174|      0|    }
  ------------------
 1099|  44.0k|        if (t <= 24)                                                                          \
  ------------------
  |  Branch (1099:13): [Folded, False: 44.0k]
  ------------------
 1100|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP(b, c, d, e, a, me2, 24);                       \
  ------------------
  |  |  171|      0|    {                                                                  \
  |  |  172|      0|        e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|      0|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  173|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  174|      0|    }
  ------------------
 1101|  44.0k|        if (t <= 25)                                                                          \
  ------------------
  |  Branch (1101:13): [Folded, False: 44.0k]
  ------------------
 1102|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP(a, b, c, d, e, me2, 25);                       \
  ------------------
  |  |  171|      0|    {                                                                  \
  |  |  172|      0|        e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|      0|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  173|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  174|      0|    }
  ------------------
 1103|  44.0k|        if (t <= 26)                                                                          \
  ------------------
  |  Branch (1103:13): [Folded, False: 44.0k]
  ------------------
 1104|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP(e, a, b, c, d, me2, 26);                       \
  ------------------
  |  |  171|      0|    {                                                                  \
  |  |  172|      0|        e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|      0|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  173|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  174|      0|    }
  ------------------
 1105|  44.0k|        if (t <= 27)                                                                          \
  ------------------
  |  Branch (1105:13): [Folded, False: 44.0k]
  ------------------
 1106|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP(d, e, a, b, c, me2, 27);                       \
  ------------------
  |  |  171|      0|    {                                                                  \
  |  |  172|      0|        e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|      0|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  173|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  174|      0|    }
  ------------------
 1107|  44.0k|        if (t <= 28)                                                                          \
  ------------------
  |  Branch (1107:13): [Folded, False: 44.0k]
  ------------------
 1108|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP(c, d, e, a, b, me2, 28);                       \
  ------------------
  |  |  171|      0|    {                                                                  \
  |  |  172|      0|        e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|      0|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  173|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  174|      0|    }
  ------------------
 1109|  44.0k|        if (t <= 29)                                                                          \
  ------------------
  |  Branch (1109:13): [Folded, False: 44.0k]
  ------------------
 1110|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP(b, c, d, e, a, me2, 29);                       \
  ------------------
  |  |  171|      0|    {                                                                  \
  |  |  172|      0|        e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|      0|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  173|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  174|      0|    }
  ------------------
 1111|  44.0k|        if (t <= 30)                                                                          \
  ------------------
  |  Branch (1111:13): [Folded, False: 44.0k]
  ------------------
 1112|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP(a, b, c, d, e, me2, 30);                       \
  ------------------
  |  |  171|      0|    {                                                                  \
  |  |  172|      0|        e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|      0|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  173|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  174|      0|    }
  ------------------
 1113|  44.0k|        if (t <= 31)                                                                          \
  ------------------
  |  Branch (1113:13): [Folded, False: 44.0k]
  ------------------
 1114|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP(e, a, b, c, d, me2, 31);                       \
  ------------------
  |  |  171|      0|    {                                                                  \
  |  |  172|      0|        e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|      0|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  173|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  174|      0|    }
  ------------------
 1115|  44.0k|        if (t <= 32)                                                                          \
  ------------------
  |  Branch (1115:13): [Folded, False: 44.0k]
  ------------------
 1116|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP(d, e, a, b, c, me2, 32);                       \
  ------------------
  |  |  171|      0|    {                                                                  \
  |  |  172|      0|        e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|      0|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  173|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  174|      0|    }
  ------------------
 1117|  44.0k|        if (t <= 33)                                                                          \
  ------------------
  |  Branch (1117:13): [Folded, False: 44.0k]
  ------------------
 1118|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP(c, d, e, a, b, me2, 33);                       \
  ------------------
  |  |  171|      0|    {                                                                  \
  |  |  172|      0|        e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|      0|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  173|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  174|      0|    }
  ------------------
 1119|  44.0k|        if (t <= 34)                                                                          \
  ------------------
  |  Branch (1119:13): [Folded, False: 44.0k]
  ------------------
 1120|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP(b, c, d, e, a, me2, 34);                       \
  ------------------
  |  |  171|      0|    {                                                                  \
  |  |  172|      0|        e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|      0|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  173|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  174|      0|    }
  ------------------
 1121|  44.0k|        if (t <= 35)                                                                          \
  ------------------
  |  Branch (1121:13): [Folded, False: 44.0k]
  ------------------
 1122|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP(a, b, c, d, e, me2, 35);                       \
  ------------------
  |  |  171|      0|    {                                                                  \
  |  |  172|      0|        e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|      0|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  173|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  174|      0|    }
  ------------------
 1123|  44.0k|        if (t <= 36)                                                                          \
  ------------------
  |  Branch (1123:13): [Folded, False: 44.0k]
  ------------------
 1124|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP(e, a, b, c, d, me2, 36);                       \
  ------------------
  |  |  171|      0|    {                                                                  \
  |  |  172|      0|        e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|      0|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  173|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  174|      0|    }
  ------------------
 1125|  44.0k|        if (t <= 37)                                                                          \
  ------------------
  |  Branch (1125:13): [Folded, False: 44.0k]
  ------------------
 1126|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP(d, e, a, b, c, me2, 37);                       \
  ------------------
  |  |  171|      0|    {                                                                  \
  |  |  172|      0|        e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|      0|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  173|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  174|      0|    }
  ------------------
 1127|  44.0k|        if (t <= 38)                                                                          \
  ------------------
  |  Branch (1127:13): [Folded, False: 44.0k]
  ------------------
 1128|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP(c, d, e, a, b, me2, 38);                       \
  ------------------
  |  |  171|      0|    {                                                                  \
  |  |  172|      0|        e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|      0|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  173|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  174|      0|    }
  ------------------
 1129|  44.0k|        if (t <= 39)                                                                          \
  ------------------
  |  Branch (1129:13): [Folded, False: 44.0k]
  ------------------
 1130|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP(b, c, d, e, a, me2, 39);                       \
  ------------------
  |  |  171|      0|    {                                                                  \
  |  |  172|      0|        e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|      0|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  173|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  174|      0|    }
  ------------------
 1131|  44.0k|        if (t <= 40)                                                                          \
  ------------------
  |  Branch (1131:13): [Folded, False: 44.0k]
  ------------------
 1132|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP(a, b, c, d, e, me2, 40);                       \
  ------------------
  |  |  176|      0|    {                                                                  \
  |  |  177|      0|        e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|      0|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  178|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  179|      0|    }
  ------------------
 1133|  44.0k|        if (t <= 41)                                                                          \
  ------------------
  |  Branch (1133:13): [Folded, False: 44.0k]
  ------------------
 1134|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP(e, a, b, c, d, me2, 41);                       \
  ------------------
  |  |  176|      0|    {                                                                  \
  |  |  177|      0|        e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|      0|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  178|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  179|      0|    }
  ------------------
 1135|  44.0k|        if (t <= 42)                                                                          \
  ------------------
  |  Branch (1135:13): [Folded, False: 44.0k]
  ------------------
 1136|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP(d, e, a, b, c, me2, 42);                       \
  ------------------
  |  |  176|      0|    {                                                                  \
  |  |  177|      0|        e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|      0|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  178|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  179|      0|    }
  ------------------
 1137|  44.0k|        if (t <= 43)                                                                          \
  ------------------
  |  Branch (1137:13): [Folded, False: 44.0k]
  ------------------
 1138|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP(c, d, e, a, b, me2, 43);                       \
  ------------------
  |  |  176|      0|    {                                                                  \
  |  |  177|      0|        e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|      0|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  178|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  179|      0|    }
  ------------------
 1139|  44.0k|        if (t <= 44)                                                                          \
  ------------------
  |  Branch (1139:13): [Folded, False: 44.0k]
  ------------------
 1140|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP(b, c, d, e, a, me2, 44);                       \
  ------------------
  |  |  176|      0|    {                                                                  \
  |  |  177|      0|        e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|      0|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  178|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  179|      0|    }
  ------------------
 1141|  44.0k|        if (t <= 45)                                                                          \
  ------------------
  |  Branch (1141:13): [Folded, False: 44.0k]
  ------------------
 1142|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP(a, b, c, d, e, me2, 45);                       \
  ------------------
  |  |  176|      0|    {                                                                  \
  |  |  177|      0|        e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|      0|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  178|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  179|      0|    }
  ------------------
 1143|  44.0k|        if (t <= 46)                                                                          \
  ------------------
  |  Branch (1143:13): [Folded, False: 44.0k]
  ------------------
 1144|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP(e, a, b, c, d, me2, 46);                       \
  ------------------
  |  |  176|      0|    {                                                                  \
  |  |  177|      0|        e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|      0|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  178|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  179|      0|    }
  ------------------
 1145|  44.0k|        if (t <= 47)                                                                          \
  ------------------
  |  Branch (1145:13): [Folded, False: 44.0k]
  ------------------
 1146|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP(d, e, a, b, c, me2, 47);                       \
  ------------------
  |  |  176|      0|    {                                                                  \
  |  |  177|      0|        e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|      0|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  178|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  179|      0|    }
  ------------------
 1147|  44.0k|        if (t <= 48)                                                                          \
  ------------------
  |  Branch (1147:13): [Folded, False: 44.0k]
  ------------------
 1148|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP(c, d, e, a, b, me2, 48);                       \
  ------------------
  |  |  176|      0|    {                                                                  \
  |  |  177|      0|        e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|      0|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  178|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  179|      0|    }
  ------------------
 1149|  44.0k|        if (t <= 49)                                                                          \
  ------------------
  |  Branch (1149:13): [Folded, False: 44.0k]
  ------------------
 1150|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP(b, c, d, e, a, me2, 49);                       \
  ------------------
  |  |  176|      0|    {                                                                  \
  |  |  177|      0|        e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|      0|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  178|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  179|      0|    }
  ------------------
 1151|  44.0k|        if (t <= 50)                                                                          \
  ------------------
  |  Branch (1151:13): [Folded, False: 44.0k]
  ------------------
 1152|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP(a, b, c, d, e, me2, 50);                       \
  ------------------
  |  |  176|      0|    {                                                                  \
  |  |  177|      0|        e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|      0|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  178|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  179|      0|    }
  ------------------
 1153|  44.0k|        if (t <= 51)                                                                          \
  ------------------
  |  Branch (1153:13): [Folded, False: 44.0k]
  ------------------
 1154|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP(e, a, b, c, d, me2, 51);                       \
  ------------------
  |  |  176|      0|    {                                                                  \
  |  |  177|      0|        e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|      0|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  178|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  179|      0|    }
  ------------------
 1155|  44.0k|        if (t <= 52)                                                                          \
  ------------------
  |  Branch (1155:13): [Folded, False: 44.0k]
  ------------------
 1156|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP(d, e, a, b, c, me2, 52);                       \
  ------------------
  |  |  176|      0|    {                                                                  \
  |  |  177|      0|        e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|      0|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  178|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  179|      0|    }
  ------------------
 1157|  44.0k|        if (t <= 53)                                                                          \
  ------------------
  |  Branch (1157:13): [Folded, False: 44.0k]
  ------------------
 1158|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP(c, d, e, a, b, me2, 53);                       \
  ------------------
  |  |  176|      0|    {                                                                  \
  |  |  177|      0|        e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|      0|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  178|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  179|      0|    }
  ------------------
 1159|  44.0k|        if (t <= 54)                                                                          \
  ------------------
  |  Branch (1159:13): [Folded, False: 44.0k]
  ------------------
 1160|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP(b, c, d, e, a, me2, 54);                       \
  ------------------
  |  |  176|      0|    {                                                                  \
  |  |  177|      0|        e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|      0|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  178|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  179|      0|    }
  ------------------
 1161|  44.0k|        if (t <= 55)                                                                          \
  ------------------
  |  Branch (1161:13): [Folded, False: 44.0k]
  ------------------
 1162|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP(a, b, c, d, e, me2, 55);                       \
  ------------------
  |  |  176|      0|    {                                                                  \
  |  |  177|      0|        e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|      0|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  178|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  179|      0|    }
  ------------------
 1163|  44.0k|        if (t <= 56)                                                                          \
  ------------------
  |  Branch (1163:13): [Folded, False: 44.0k]
  ------------------
 1164|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP(e, a, b, c, d, me2, 56);                       \
  ------------------
  |  |  176|      0|    {                                                                  \
  |  |  177|      0|        e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|      0|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  178|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  179|      0|    }
  ------------------
 1165|  44.0k|        if (t <= 57)                                                                          \
  ------------------
  |  Branch (1165:13): [Folded, False: 44.0k]
  ------------------
 1166|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP(d, e, a, b, c, me2, 57);                       \
  ------------------
  |  |  176|      0|    {                                                                  \
  |  |  177|      0|        e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|      0|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  178|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  179|      0|    }
  ------------------
 1167|  44.0k|        if (t <= 58)                                                                          \
  ------------------
  |  Branch (1167:13): [True: 44.0k, Folded]
  ------------------
 1168|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP(c, d, e, a, b, me2, 58);                       \
  ------------------
  |  |  176|  44.0k|    {                                                                  \
  |  |  177|  44.0k|        e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|  44.0k|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  178|  44.0k|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  179|  44.0k|    }
  ------------------
 1169|  44.0k|        if (t <= 59)                                                                          \
  ------------------
  |  Branch (1169:13): [True: 44.0k, Folded]
  ------------------
 1170|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP(b, c, d, e, a, me2, 59);                       \
  ------------------
  |  |  176|  44.0k|    {                                                                  \
  |  |  177|  44.0k|        e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|  44.0k|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  178|  44.0k|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  179|  44.0k|    }
  ------------------
 1171|  44.0k|        if (t <= 60)                                                                          \
  ------------------
  |  Branch (1171:13): [True: 44.0k, Folded]
  ------------------
 1172|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP(a, b, c, d, e, me2, 60);                       \
  ------------------
  |  |  181|  44.0k|    {                                                                  \
  |  |  182|  44.0k|        e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|  44.0k|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  183|  44.0k|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  184|  44.0k|    }
  ------------------
 1173|  44.0k|        if (t <= 61)                                                                          \
  ------------------
  |  Branch (1173:13): [True: 44.0k, Folded]
  ------------------
 1174|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP(e, a, b, c, d, me2, 61);                       \
  ------------------
  |  |  181|  44.0k|    {                                                                  \
  |  |  182|  44.0k|        e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|  44.0k|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  183|  44.0k|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  184|  44.0k|    }
  ------------------
 1175|  44.0k|        if (t <= 62)                                                                          \
  ------------------
  |  Branch (1175:13): [True: 44.0k, Folded]
  ------------------
 1176|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP(d, e, a, b, c, me2, 62);                       \
  ------------------
  |  |  181|  44.0k|    {                                                                  \
  |  |  182|  44.0k|        e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|  44.0k|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  183|  44.0k|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  184|  44.0k|    }
  ------------------
 1177|  44.0k|        if (t <= 63)                                                                          \
  ------------------
  |  Branch (1177:13): [True: 44.0k, Folded]
  ------------------
 1178|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP(c, d, e, a, b, me2, 63);                       \
  ------------------
  |  |  181|  44.0k|    {                                                                  \
  |  |  182|  44.0k|        e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|  44.0k|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  183|  44.0k|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  184|  44.0k|    }
  ------------------
 1179|  44.0k|        if (t <= 64)                                                                          \
  ------------------
  |  Branch (1179:13): [True: 44.0k, Folded]
  ------------------
 1180|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP(b, c, d, e, a, me2, 64);                       \
  ------------------
  |  |  181|  44.0k|    {                                                                  \
  |  |  182|  44.0k|        e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|  44.0k|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  183|  44.0k|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  184|  44.0k|    }
  ------------------
 1181|  44.0k|        if (t <= 65)                                                                          \
  ------------------
  |  Branch (1181:13): [True: 44.0k, Folded]
  ------------------
 1182|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP(a, b, c, d, e, me2, 65);                       \
  ------------------
  |  |  181|  44.0k|    {                                                                  \
  |  |  182|  44.0k|        e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|  44.0k|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  183|  44.0k|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  184|  44.0k|    }
  ------------------
 1183|  44.0k|        if (t <= 66)                                                                          \
  ------------------
  |  Branch (1183:13): [True: 44.0k, Folded]
  ------------------
 1184|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP(e, a, b, c, d, me2, 66);                       \
  ------------------
  |  |  181|  44.0k|    {                                                                  \
  |  |  182|  44.0k|        e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|  44.0k|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  183|  44.0k|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  184|  44.0k|    }
  ------------------
 1185|  44.0k|        if (t <= 67)                                                                          \
  ------------------
  |  Branch (1185:13): [True: 44.0k, Folded]
  ------------------
 1186|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP(d, e, a, b, c, me2, 67);                       \
  ------------------
  |  |  181|  44.0k|    {                                                                  \
  |  |  182|  44.0k|        e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|  44.0k|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  183|  44.0k|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  184|  44.0k|    }
  ------------------
 1187|  44.0k|        if (t <= 68)                                                                          \
  ------------------
  |  Branch (1187:13): [True: 44.0k, Folded]
  ------------------
 1188|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP(c, d, e, a, b, me2, 68);                       \
  ------------------
  |  |  181|  44.0k|    {                                                                  \
  |  |  182|  44.0k|        e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|  44.0k|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  183|  44.0k|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  184|  44.0k|    }
  ------------------
 1189|  44.0k|        if (t <= 69)                                                                          \
  ------------------
  |  Branch (1189:13): [True: 44.0k, Folded]
  ------------------
 1190|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP(b, c, d, e, a, me2, 69);                       \
  ------------------
  |  |  181|  44.0k|    {                                                                  \
  |  |  182|  44.0k|        e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|  44.0k|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  183|  44.0k|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  184|  44.0k|    }
  ------------------
 1191|  44.0k|        if (t <= 70)                                                                          \
  ------------------
  |  Branch (1191:13): [True: 44.0k, Folded]
  ------------------
 1192|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP(a, b, c, d, e, me2, 70);                       \
  ------------------
  |  |  181|  44.0k|    {                                                                  \
  |  |  182|  44.0k|        e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|  44.0k|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  183|  44.0k|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  184|  44.0k|    }
  ------------------
 1193|  44.0k|        if (t <= 71)                                                                          \
  ------------------
  |  Branch (1193:13): [True: 44.0k, Folded]
  ------------------
 1194|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP(e, a, b, c, d, me2, 71);                       \
  ------------------
  |  |  181|  44.0k|    {                                                                  \
  |  |  182|  44.0k|        e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|  44.0k|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  183|  44.0k|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  184|  44.0k|    }
  ------------------
 1195|  44.0k|        if (t <= 72)                                                                          \
  ------------------
  |  Branch (1195:13): [True: 44.0k, Folded]
  ------------------
 1196|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP(d, e, a, b, c, me2, 72);                       \
  ------------------
  |  |  181|  44.0k|    {                                                                  \
  |  |  182|  44.0k|        e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|  44.0k|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  183|  44.0k|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  184|  44.0k|    }
  ------------------
 1197|  44.0k|        if (t <= 73)                                                                          \
  ------------------
  |  Branch (1197:13): [True: 44.0k, Folded]
  ------------------
 1198|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP(c, d, e, a, b, me2, 73);                       \
  ------------------
  |  |  181|  44.0k|    {                                                                  \
  |  |  182|  44.0k|        e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|  44.0k|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  183|  44.0k|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  184|  44.0k|    }
  ------------------
 1199|  44.0k|        if (t <= 74)                                                                          \
  ------------------
  |  Branch (1199:13): [True: 44.0k, Folded]
  ------------------
 1200|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP(b, c, d, e, a, me2, 74);                       \
  ------------------
  |  |  181|  44.0k|    {                                                                  \
  |  |  182|  44.0k|        e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|  44.0k|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  183|  44.0k|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  184|  44.0k|    }
  ------------------
 1201|  44.0k|        if (t <= 75)                                                                          \
  ------------------
  |  Branch (1201:13): [True: 44.0k, Folded]
  ------------------
 1202|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP(a, b, c, d, e, me2, 75);                       \
  ------------------
  |  |  181|  44.0k|    {                                                                  \
  |  |  182|  44.0k|        e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|  44.0k|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  183|  44.0k|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  184|  44.0k|    }
  ------------------
 1203|  44.0k|        if (t <= 76)                                                                          \
  ------------------
  |  Branch (1203:13): [True: 44.0k, Folded]
  ------------------
 1204|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP(e, a, b, c, d, me2, 76);                       \
  ------------------
  |  |  181|  44.0k|    {                                                                  \
  |  |  182|  44.0k|        e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|  44.0k|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  183|  44.0k|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  184|  44.0k|    }
  ------------------
 1205|  44.0k|        if (t <= 77)                                                                          \
  ------------------
  |  Branch (1205:13): [True: 44.0k, Folded]
  ------------------
 1206|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP(d, e, a, b, c, me2, 77);                       \
  ------------------
  |  |  181|  44.0k|    {                                                                  \
  |  |  182|  44.0k|        e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|  44.0k|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  183|  44.0k|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  184|  44.0k|    }
  ------------------
 1207|  44.0k|        if (t <= 78)                                                                          \
  ------------------
  |  Branch (1207:13): [True: 44.0k, Folded]
  ------------------
 1208|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP(c, d, e, a, b, me2, 78);                       \
  ------------------
  |  |  181|  44.0k|    {                                                                  \
  |  |  182|  44.0k|        e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|  44.0k|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  183|  44.0k|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  184|  44.0k|    }
  ------------------
 1209|  44.0k|        if (t <= 79)                                                                          \
  ------------------
  |  Branch (1209:13): [True: 44.0k, Folded]
  ------------------
 1210|  44.0k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP(b, c, d, e, a, me2, 79);                       \
  ------------------
  |  |  181|  44.0k|    {                                                                  \
  |  |  182|  44.0k|        e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|  44.0k|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  183|  44.0k|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  44.0k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  184|  44.0k|    }
  ------------------
 1211|  44.0k|        ihvout[0] = ihvin[0] + a;                                                             \
 1212|  44.0k|        ihvout[1] = ihvin[1] + b;                                                             \
 1213|  44.0k|        ihvout[2] = ihvin[2] + c;                                                             \
 1214|  44.0k|        ihvout[3] = ihvin[3] + d;                                                             \
 1215|  44.0k|        ihvout[4] = ihvin[4] + e;                                                             \
 1216|  44.0k|    }
sha1.c:sha1recompress_fast_65:
  879|  24.9k|    {                                                                                         \
  880|  24.9k|        uint32_t a = state[0], b = state[1], c = state[2], d = state[3], e = state[4];        \
  881|  24.9k|        if (t > 79)                                                                           \
  ------------------
  |  Branch (881:13): [Folded, False: 24.9k]
  ------------------
  882|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(b, c, d, e, a, me2, 79);                    \
  ------------------
  |  |  202|      0|    {                                                                  \
  |  |  203|      0|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|      0|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  204|      0|        e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|      0|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  205|      0|    }
  ------------------
  883|  24.9k|        if (t > 78)                                                                           \
  ------------------
  |  Branch (883:13): [Folded, False: 24.9k]
  ------------------
  884|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(c, d, e, a, b, me2, 78);                    \
  ------------------
  |  |  202|      0|    {                                                                  \
  |  |  203|      0|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|      0|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  204|      0|        e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|      0|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  205|      0|    }
  ------------------
  885|  24.9k|        if (t > 77)                                                                           \
  ------------------
  |  Branch (885:13): [Folded, False: 24.9k]
  ------------------
  886|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(d, e, a, b, c, me2, 77);                    \
  ------------------
  |  |  202|      0|    {                                                                  \
  |  |  203|      0|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|      0|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  204|      0|        e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|      0|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  205|      0|    }
  ------------------
  887|  24.9k|        if (t > 76)                                                                           \
  ------------------
  |  Branch (887:13): [Folded, False: 24.9k]
  ------------------
  888|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(e, a, b, c, d, me2, 76);                    \
  ------------------
  |  |  202|      0|    {                                                                  \
  |  |  203|      0|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|      0|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  204|      0|        e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|      0|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  205|      0|    }
  ------------------
  889|  24.9k|        if (t > 75)                                                                           \
  ------------------
  |  Branch (889:13): [Folded, False: 24.9k]
  ------------------
  890|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(a, b, c, d, e, me2, 75);                    \
  ------------------
  |  |  202|      0|    {                                                                  \
  |  |  203|      0|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|      0|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  204|      0|        e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|      0|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  205|      0|    }
  ------------------
  891|  24.9k|        if (t > 74)                                                                           \
  ------------------
  |  Branch (891:13): [Folded, False: 24.9k]
  ------------------
  892|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(b, c, d, e, a, me2, 74);                    \
  ------------------
  |  |  202|      0|    {                                                                  \
  |  |  203|      0|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|      0|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  204|      0|        e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|      0|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  205|      0|    }
  ------------------
  893|  24.9k|        if (t > 73)                                                                           \
  ------------------
  |  Branch (893:13): [Folded, False: 24.9k]
  ------------------
  894|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(c, d, e, a, b, me2, 73);                    \
  ------------------
  |  |  202|      0|    {                                                                  \
  |  |  203|      0|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|      0|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  204|      0|        e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|      0|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  205|      0|    }
  ------------------
  895|  24.9k|        if (t > 72)                                                                           \
  ------------------
  |  Branch (895:13): [Folded, False: 24.9k]
  ------------------
  896|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(d, e, a, b, c, me2, 72);                    \
  ------------------
  |  |  202|      0|    {                                                                  \
  |  |  203|      0|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|      0|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  204|      0|        e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|      0|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  205|      0|    }
  ------------------
  897|  24.9k|        if (t > 71)                                                                           \
  ------------------
  |  Branch (897:13): [Folded, False: 24.9k]
  ------------------
  898|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(e, a, b, c, d, me2, 71);                    \
  ------------------
  |  |  202|      0|    {                                                                  \
  |  |  203|      0|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|      0|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  204|      0|        e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|      0|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  205|      0|    }
  ------------------
  899|  24.9k|        if (t > 70)                                                                           \
  ------------------
  |  Branch (899:13): [Folded, False: 24.9k]
  ------------------
  900|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(a, b, c, d, e, me2, 70);                    \
  ------------------
  |  |  202|      0|    {                                                                  \
  |  |  203|      0|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|      0|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  204|      0|        e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|      0|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  205|      0|    }
  ------------------
  901|  24.9k|        if (t > 69)                                                                           \
  ------------------
  |  Branch (901:13): [Folded, False: 24.9k]
  ------------------
  902|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(b, c, d, e, a, me2, 69);                    \
  ------------------
  |  |  202|      0|    {                                                                  \
  |  |  203|      0|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|      0|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  204|      0|        e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|      0|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  205|      0|    }
  ------------------
  903|  24.9k|        if (t > 68)                                                                           \
  ------------------
  |  Branch (903:13): [Folded, False: 24.9k]
  ------------------
  904|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(c, d, e, a, b, me2, 68);                    \
  ------------------
  |  |  202|      0|    {                                                                  \
  |  |  203|      0|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|      0|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  204|      0|        e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|      0|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  205|      0|    }
  ------------------
  905|  24.9k|        if (t > 67)                                                                           \
  ------------------
  |  Branch (905:13): [Folded, False: 24.9k]
  ------------------
  906|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(d, e, a, b, c, me2, 67);                    \
  ------------------
  |  |  202|      0|    {                                                                  \
  |  |  203|      0|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|      0|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  204|      0|        e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|      0|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  205|      0|    }
  ------------------
  907|  24.9k|        if (t > 66)                                                                           \
  ------------------
  |  Branch (907:13): [Folded, False: 24.9k]
  ------------------
  908|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(e, a, b, c, d, me2, 66);                    \
  ------------------
  |  |  202|      0|    {                                                                  \
  |  |  203|      0|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|      0|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  204|      0|        e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|      0|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  205|      0|    }
  ------------------
  909|  24.9k|        if (t > 65)                                                                           \
  ------------------
  |  Branch (909:13): [Folded, False: 24.9k]
  ------------------
  910|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(a, b, c, d, e, me2, 65);                    \
  ------------------
  |  |  202|      0|    {                                                                  \
  |  |  203|      0|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|      0|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  204|      0|        e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|      0|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  205|      0|    }
  ------------------
  911|  24.9k|        if (t > 64)                                                                           \
  ------------------
  |  Branch (911:13): [True: 24.9k, Folded]
  ------------------
  912|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(b, c, d, e, a, me2, 64);                    \
  ------------------
  |  |  202|  24.9k|    {                                                                  \
  |  |  203|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  204|  24.9k|        e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|  24.9k|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  205|  24.9k|    }
  ------------------
  913|  24.9k|        if (t > 63)                                                                           \
  ------------------
  |  Branch (913:13): [True: 24.9k, Folded]
  ------------------
  914|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(c, d, e, a, b, me2, 63);                    \
  ------------------
  |  |  202|  24.9k|    {                                                                  \
  |  |  203|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  204|  24.9k|        e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|  24.9k|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  205|  24.9k|    }
  ------------------
  915|  24.9k|        if (t > 62)                                                                           \
  ------------------
  |  Branch (915:13): [True: 24.9k, Folded]
  ------------------
  916|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(d, e, a, b, c, me2, 62);                    \
  ------------------
  |  |  202|  24.9k|    {                                                                  \
  |  |  203|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  204|  24.9k|        e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|  24.9k|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  205|  24.9k|    }
  ------------------
  917|  24.9k|        if (t > 61)                                                                           \
  ------------------
  |  Branch (917:13): [True: 24.9k, Folded]
  ------------------
  918|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(e, a, b, c, d, me2, 61);                    \
  ------------------
  |  |  202|  24.9k|    {                                                                  \
  |  |  203|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  204|  24.9k|        e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|  24.9k|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  205|  24.9k|    }
  ------------------
  919|  24.9k|        if (t > 60)                                                                           \
  ------------------
  |  Branch (919:13): [True: 24.9k, Folded]
  ------------------
  920|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(a, b, c, d, e, me2, 60);                    \
  ------------------
  |  |  202|  24.9k|    {                                                                  \
  |  |  203|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  204|  24.9k|        e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|  24.9k|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  205|  24.9k|    }
  ------------------
  921|  24.9k|        if (t > 59)                                                                           \
  ------------------
  |  Branch (921:13): [True: 24.9k, Folded]
  ------------------
  922|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(b, c, d, e, a, me2, 59);                    \
  ------------------
  |  |  197|  24.9k|    {                                                                  \
  |  |  198|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  199|  24.9k|        e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|  24.9k|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  200|  24.9k|    }
  ------------------
  923|  24.9k|        if (t > 58)                                                                           \
  ------------------
  |  Branch (923:13): [True: 24.9k, Folded]
  ------------------
  924|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(c, d, e, a, b, me2, 58);                    \
  ------------------
  |  |  197|  24.9k|    {                                                                  \
  |  |  198|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  199|  24.9k|        e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|  24.9k|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  200|  24.9k|    }
  ------------------
  925|  24.9k|        if (t > 57)                                                                           \
  ------------------
  |  Branch (925:13): [True: 24.9k, Folded]
  ------------------
  926|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(d, e, a, b, c, me2, 57);                    \
  ------------------
  |  |  197|  24.9k|    {                                                                  \
  |  |  198|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  199|  24.9k|        e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|  24.9k|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  200|  24.9k|    }
  ------------------
  927|  24.9k|        if (t > 56)                                                                           \
  ------------------
  |  Branch (927:13): [True: 24.9k, Folded]
  ------------------
  928|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(e, a, b, c, d, me2, 56);                    \
  ------------------
  |  |  197|  24.9k|    {                                                                  \
  |  |  198|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  199|  24.9k|        e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|  24.9k|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  200|  24.9k|    }
  ------------------
  929|  24.9k|        if (t > 55)                                                                           \
  ------------------
  |  Branch (929:13): [True: 24.9k, Folded]
  ------------------
  930|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(a, b, c, d, e, me2, 55);                    \
  ------------------
  |  |  197|  24.9k|    {                                                                  \
  |  |  198|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  199|  24.9k|        e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|  24.9k|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  200|  24.9k|    }
  ------------------
  931|  24.9k|        if (t > 54)                                                                           \
  ------------------
  |  Branch (931:13): [True: 24.9k, Folded]
  ------------------
  932|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(b, c, d, e, a, me2, 54);                    \
  ------------------
  |  |  197|  24.9k|    {                                                                  \
  |  |  198|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  199|  24.9k|        e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|  24.9k|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  200|  24.9k|    }
  ------------------
  933|  24.9k|        if (t > 53)                                                                           \
  ------------------
  |  Branch (933:13): [True: 24.9k, Folded]
  ------------------
  934|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(c, d, e, a, b, me2, 53);                    \
  ------------------
  |  |  197|  24.9k|    {                                                                  \
  |  |  198|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  199|  24.9k|        e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|  24.9k|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  200|  24.9k|    }
  ------------------
  935|  24.9k|        if (t > 52)                                                                           \
  ------------------
  |  Branch (935:13): [True: 24.9k, Folded]
  ------------------
  936|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(d, e, a, b, c, me2, 52);                    \
  ------------------
  |  |  197|  24.9k|    {                                                                  \
  |  |  198|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  199|  24.9k|        e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|  24.9k|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  200|  24.9k|    }
  ------------------
  937|  24.9k|        if (t > 51)                                                                           \
  ------------------
  |  Branch (937:13): [True: 24.9k, Folded]
  ------------------
  938|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(e, a, b, c, d, me2, 51);                    \
  ------------------
  |  |  197|  24.9k|    {                                                                  \
  |  |  198|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  199|  24.9k|        e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|  24.9k|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  200|  24.9k|    }
  ------------------
  939|  24.9k|        if (t > 50)                                                                           \
  ------------------
  |  Branch (939:13): [True: 24.9k, Folded]
  ------------------
  940|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(a, b, c, d, e, me2, 50);                    \
  ------------------
  |  |  197|  24.9k|    {                                                                  \
  |  |  198|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  199|  24.9k|        e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|  24.9k|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  200|  24.9k|    }
  ------------------
  941|  24.9k|        if (t > 49)                                                                           \
  ------------------
  |  Branch (941:13): [True: 24.9k, Folded]
  ------------------
  942|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(b, c, d, e, a, me2, 49);                    \
  ------------------
  |  |  197|  24.9k|    {                                                                  \
  |  |  198|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  199|  24.9k|        e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|  24.9k|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  200|  24.9k|    }
  ------------------
  943|  24.9k|        if (t > 48)                                                                           \
  ------------------
  |  Branch (943:13): [True: 24.9k, Folded]
  ------------------
  944|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(c, d, e, a, b, me2, 48);                    \
  ------------------
  |  |  197|  24.9k|    {                                                                  \
  |  |  198|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  199|  24.9k|        e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|  24.9k|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  200|  24.9k|    }
  ------------------
  945|  24.9k|        if (t > 47)                                                                           \
  ------------------
  |  Branch (945:13): [True: 24.9k, Folded]
  ------------------
  946|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(d, e, a, b, c, me2, 47);                    \
  ------------------
  |  |  197|  24.9k|    {                                                                  \
  |  |  198|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  199|  24.9k|        e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|  24.9k|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  200|  24.9k|    }
  ------------------
  947|  24.9k|        if (t > 46)                                                                           \
  ------------------
  |  Branch (947:13): [True: 24.9k, Folded]
  ------------------
  948|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(e, a, b, c, d, me2, 46);                    \
  ------------------
  |  |  197|  24.9k|    {                                                                  \
  |  |  198|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  199|  24.9k|        e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|  24.9k|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  200|  24.9k|    }
  ------------------
  949|  24.9k|        if (t > 45)                                                                           \
  ------------------
  |  Branch (949:13): [True: 24.9k, Folded]
  ------------------
  950|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(a, b, c, d, e, me2, 45);                    \
  ------------------
  |  |  197|  24.9k|    {                                                                  \
  |  |  198|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  199|  24.9k|        e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|  24.9k|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  200|  24.9k|    }
  ------------------
  951|  24.9k|        if (t > 44)                                                                           \
  ------------------
  |  Branch (951:13): [True: 24.9k, Folded]
  ------------------
  952|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(b, c, d, e, a, me2, 44);                    \
  ------------------
  |  |  197|  24.9k|    {                                                                  \
  |  |  198|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  199|  24.9k|        e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|  24.9k|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  200|  24.9k|    }
  ------------------
  953|  24.9k|        if (t > 43)                                                                           \
  ------------------
  |  Branch (953:13): [True: 24.9k, Folded]
  ------------------
  954|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(c, d, e, a, b, me2, 43);                    \
  ------------------
  |  |  197|  24.9k|    {                                                                  \
  |  |  198|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  199|  24.9k|        e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|  24.9k|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  200|  24.9k|    }
  ------------------
  955|  24.9k|        if (t > 42)                                                                           \
  ------------------
  |  Branch (955:13): [True: 24.9k, Folded]
  ------------------
  956|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(d, e, a, b, c, me2, 42);                    \
  ------------------
  |  |  197|  24.9k|    {                                                                  \
  |  |  198|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  199|  24.9k|        e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|  24.9k|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  200|  24.9k|    }
  ------------------
  957|  24.9k|        if (t > 41)                                                                           \
  ------------------
  |  Branch (957:13): [True: 24.9k, Folded]
  ------------------
  958|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(e, a, b, c, d, me2, 41);                    \
  ------------------
  |  |  197|  24.9k|    {                                                                  \
  |  |  198|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  199|  24.9k|        e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|  24.9k|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  200|  24.9k|    }
  ------------------
  959|  24.9k|        if (t > 40)                                                                           \
  ------------------
  |  Branch (959:13): [True: 24.9k, Folded]
  ------------------
  960|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(a, b, c, d, e, me2, 40);                    \
  ------------------
  |  |  197|  24.9k|    {                                                                  \
  |  |  198|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  199|  24.9k|        e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|  24.9k|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  200|  24.9k|    }
  ------------------
  961|  24.9k|        if (t > 39)                                                                           \
  ------------------
  |  Branch (961:13): [True: 24.9k, Folded]
  ------------------
  962|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(b, c, d, e, a, me2, 39);                    \
  ------------------
  |  |  192|  24.9k|    {                                                                  \
  |  |  193|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  194|  24.9k|        e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|  24.9k|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  195|  24.9k|    }
  ------------------
  963|  24.9k|        if (t > 38)                                                                           \
  ------------------
  |  Branch (963:13): [True: 24.9k, Folded]
  ------------------
  964|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(c, d, e, a, b, me2, 38);                    \
  ------------------
  |  |  192|  24.9k|    {                                                                  \
  |  |  193|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  194|  24.9k|        e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|  24.9k|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  195|  24.9k|    }
  ------------------
  965|  24.9k|        if (t > 37)                                                                           \
  ------------------
  |  Branch (965:13): [True: 24.9k, Folded]
  ------------------
  966|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(d, e, a, b, c, me2, 37);                    \
  ------------------
  |  |  192|  24.9k|    {                                                                  \
  |  |  193|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  194|  24.9k|        e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|  24.9k|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  195|  24.9k|    }
  ------------------
  967|  24.9k|        if (t > 36)                                                                           \
  ------------------
  |  Branch (967:13): [True: 24.9k, Folded]
  ------------------
  968|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(e, a, b, c, d, me2, 36);                    \
  ------------------
  |  |  192|  24.9k|    {                                                                  \
  |  |  193|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  194|  24.9k|        e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|  24.9k|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  195|  24.9k|    }
  ------------------
  969|  24.9k|        if (t > 35)                                                                           \
  ------------------
  |  Branch (969:13): [True: 24.9k, Folded]
  ------------------
  970|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(a, b, c, d, e, me2, 35);                    \
  ------------------
  |  |  192|  24.9k|    {                                                                  \
  |  |  193|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  194|  24.9k|        e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|  24.9k|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  195|  24.9k|    }
  ------------------
  971|  24.9k|        if (t > 34)                                                                           \
  ------------------
  |  Branch (971:13): [True: 24.9k, Folded]
  ------------------
  972|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(b, c, d, e, a, me2, 34);                    \
  ------------------
  |  |  192|  24.9k|    {                                                                  \
  |  |  193|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  194|  24.9k|        e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|  24.9k|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  195|  24.9k|    }
  ------------------
  973|  24.9k|        if (t > 33)                                                                           \
  ------------------
  |  Branch (973:13): [True: 24.9k, Folded]
  ------------------
  974|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(c, d, e, a, b, me2, 33);                    \
  ------------------
  |  |  192|  24.9k|    {                                                                  \
  |  |  193|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  194|  24.9k|        e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|  24.9k|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  195|  24.9k|    }
  ------------------
  975|  24.9k|        if (t > 32)                                                                           \
  ------------------
  |  Branch (975:13): [True: 24.9k, Folded]
  ------------------
  976|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(d, e, a, b, c, me2, 32);                    \
  ------------------
  |  |  192|  24.9k|    {                                                                  \
  |  |  193|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  194|  24.9k|        e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|  24.9k|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  195|  24.9k|    }
  ------------------
  977|  24.9k|        if (t > 31)                                                                           \
  ------------------
  |  Branch (977:13): [True: 24.9k, Folded]
  ------------------
  978|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(e, a, b, c, d, me2, 31);                    \
  ------------------
  |  |  192|  24.9k|    {                                                                  \
  |  |  193|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  194|  24.9k|        e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|  24.9k|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  195|  24.9k|    }
  ------------------
  979|  24.9k|        if (t > 30)                                                                           \
  ------------------
  |  Branch (979:13): [True: 24.9k, Folded]
  ------------------
  980|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(a, b, c, d, e, me2, 30);                    \
  ------------------
  |  |  192|  24.9k|    {                                                                  \
  |  |  193|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  194|  24.9k|        e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|  24.9k|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  195|  24.9k|    }
  ------------------
  981|  24.9k|        if (t > 29)                                                                           \
  ------------------
  |  Branch (981:13): [True: 24.9k, Folded]
  ------------------
  982|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(b, c, d, e, a, me2, 29);                    \
  ------------------
  |  |  192|  24.9k|    {                                                                  \
  |  |  193|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  194|  24.9k|        e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|  24.9k|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  195|  24.9k|    }
  ------------------
  983|  24.9k|        if (t > 28)                                                                           \
  ------------------
  |  Branch (983:13): [True: 24.9k, Folded]
  ------------------
  984|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(c, d, e, a, b, me2, 28);                    \
  ------------------
  |  |  192|  24.9k|    {                                                                  \
  |  |  193|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  194|  24.9k|        e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|  24.9k|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  195|  24.9k|    }
  ------------------
  985|  24.9k|        if (t > 27)                                                                           \
  ------------------
  |  Branch (985:13): [True: 24.9k, Folded]
  ------------------
  986|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(d, e, a, b, c, me2, 27);                    \
  ------------------
  |  |  192|  24.9k|    {                                                                  \
  |  |  193|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  194|  24.9k|        e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|  24.9k|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  195|  24.9k|    }
  ------------------
  987|  24.9k|        if (t > 26)                                                                           \
  ------------------
  |  Branch (987:13): [True: 24.9k, Folded]
  ------------------
  988|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(e, a, b, c, d, me2, 26);                    \
  ------------------
  |  |  192|  24.9k|    {                                                                  \
  |  |  193|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  194|  24.9k|        e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|  24.9k|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  195|  24.9k|    }
  ------------------
  989|  24.9k|        if (t > 25)                                                                           \
  ------------------
  |  Branch (989:13): [True: 24.9k, Folded]
  ------------------
  990|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(a, b, c, d, e, me2, 25);                    \
  ------------------
  |  |  192|  24.9k|    {                                                                  \
  |  |  193|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  194|  24.9k|        e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|  24.9k|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  195|  24.9k|    }
  ------------------
  991|  24.9k|        if (t > 24)                                                                           \
  ------------------
  |  Branch (991:13): [True: 24.9k, Folded]
  ------------------
  992|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(b, c, d, e, a, me2, 24);                    \
  ------------------
  |  |  192|  24.9k|    {                                                                  \
  |  |  193|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  194|  24.9k|        e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|  24.9k|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  195|  24.9k|    }
  ------------------
  993|  24.9k|        if (t > 23)                                                                           \
  ------------------
  |  Branch (993:13): [True: 24.9k, Folded]
  ------------------
  994|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(c, d, e, a, b, me2, 23);                    \
  ------------------
  |  |  192|  24.9k|    {                                                                  \
  |  |  193|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  194|  24.9k|        e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|  24.9k|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  195|  24.9k|    }
  ------------------
  995|  24.9k|        if (t > 22)                                                                           \
  ------------------
  |  Branch (995:13): [True: 24.9k, Folded]
  ------------------
  996|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(d, e, a, b, c, me2, 22);                    \
  ------------------
  |  |  192|  24.9k|    {                                                                  \
  |  |  193|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  194|  24.9k|        e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|  24.9k|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  195|  24.9k|    }
  ------------------
  997|  24.9k|        if (t > 21)                                                                           \
  ------------------
  |  Branch (997:13): [True: 24.9k, Folded]
  ------------------
  998|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(e, a, b, c, d, me2, 21);                    \
  ------------------
  |  |  192|  24.9k|    {                                                                  \
  |  |  193|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  194|  24.9k|        e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|  24.9k|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  195|  24.9k|    }
  ------------------
  999|  24.9k|        if (t > 20)                                                                           \
  ------------------
  |  Branch (999:13): [True: 24.9k, Folded]
  ------------------
 1000|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(a, b, c, d, e, me2, 20);                    \
  ------------------
  |  |  192|  24.9k|    {                                                                  \
  |  |  193|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  194|  24.9k|        e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|  24.9k|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  195|  24.9k|    }
  ------------------
 1001|  24.9k|        if (t > 19)                                                                           \
  ------------------
  |  Branch (1001:13): [True: 24.9k, Folded]
  ------------------
 1002|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(b, c, d, e, a, me2, 19);                    \
  ------------------
  |  |  187|  24.9k|    {                                                                  \
  |  |  188|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  189|  24.9k|        e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|  24.9k|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  190|  24.9k|    }
  ------------------
 1003|  24.9k|        if (t > 18)                                                                           \
  ------------------
  |  Branch (1003:13): [True: 24.9k, Folded]
  ------------------
 1004|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(c, d, e, a, b, me2, 18);                    \
  ------------------
  |  |  187|  24.9k|    {                                                                  \
  |  |  188|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  189|  24.9k|        e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|  24.9k|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  190|  24.9k|    }
  ------------------
 1005|  24.9k|        if (t > 17)                                                                           \
  ------------------
  |  Branch (1005:13): [True: 24.9k, Folded]
  ------------------
 1006|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(d, e, a, b, c, me2, 17);                    \
  ------------------
  |  |  187|  24.9k|    {                                                                  \
  |  |  188|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  189|  24.9k|        e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|  24.9k|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  190|  24.9k|    }
  ------------------
 1007|  24.9k|        if (t > 16)                                                                           \
  ------------------
  |  Branch (1007:13): [True: 24.9k, Folded]
  ------------------
 1008|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(e, a, b, c, d, me2, 16);                    \
  ------------------
  |  |  187|  24.9k|    {                                                                  \
  |  |  188|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  189|  24.9k|        e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|  24.9k|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  190|  24.9k|    }
  ------------------
 1009|  24.9k|        if (t > 15)                                                                           \
  ------------------
  |  Branch (1009:13): [True: 24.9k, Folded]
  ------------------
 1010|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(a, b, c, d, e, me2, 15);                    \
  ------------------
  |  |  187|  24.9k|    {                                                                  \
  |  |  188|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  189|  24.9k|        e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|  24.9k|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  190|  24.9k|    }
  ------------------
 1011|  24.9k|        if (t > 14)                                                                           \
  ------------------
  |  Branch (1011:13): [True: 24.9k, Folded]
  ------------------
 1012|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(b, c, d, e, a, me2, 14);                    \
  ------------------
  |  |  187|  24.9k|    {                                                                  \
  |  |  188|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  189|  24.9k|        e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|  24.9k|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  190|  24.9k|    }
  ------------------
 1013|  24.9k|        if (t > 13)                                                                           \
  ------------------
  |  Branch (1013:13): [True: 24.9k, Folded]
  ------------------
 1014|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(c, d, e, a, b, me2, 13);                    \
  ------------------
  |  |  187|  24.9k|    {                                                                  \
  |  |  188|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  189|  24.9k|        e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|  24.9k|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  190|  24.9k|    }
  ------------------
 1015|  24.9k|        if (t > 12)                                                                           \
  ------------------
  |  Branch (1015:13): [True: 24.9k, Folded]
  ------------------
 1016|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(d, e, a, b, c, me2, 12);                    \
  ------------------
  |  |  187|  24.9k|    {                                                                  \
  |  |  188|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  189|  24.9k|        e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|  24.9k|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  190|  24.9k|    }
  ------------------
 1017|  24.9k|        if (t > 11)                                                                           \
  ------------------
  |  Branch (1017:13): [True: 24.9k, Folded]
  ------------------
 1018|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(e, a, b, c, d, me2, 11);                    \
  ------------------
  |  |  187|  24.9k|    {                                                                  \
  |  |  188|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  189|  24.9k|        e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|  24.9k|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  190|  24.9k|    }
  ------------------
 1019|  24.9k|        if (t > 10)                                                                           \
  ------------------
  |  Branch (1019:13): [True: 24.9k, Folded]
  ------------------
 1020|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(a, b, c, d, e, me2, 10);                    \
  ------------------
  |  |  187|  24.9k|    {                                                                  \
  |  |  188|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  189|  24.9k|        e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|  24.9k|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  190|  24.9k|    }
  ------------------
 1021|  24.9k|        if (t > 9)                                                                            \
  ------------------
  |  Branch (1021:13): [True: 24.9k, Folded]
  ------------------
 1022|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(b, c, d, e, a, me2, 9);                     \
  ------------------
  |  |  187|  24.9k|    {                                                                  \
  |  |  188|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  189|  24.9k|        e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|  24.9k|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  190|  24.9k|    }
  ------------------
 1023|  24.9k|        if (t > 8)                                                                            \
  ------------------
  |  Branch (1023:13): [True: 24.9k, Folded]
  ------------------
 1024|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(c, d, e, a, b, me2, 8);                     \
  ------------------
  |  |  187|  24.9k|    {                                                                  \
  |  |  188|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  189|  24.9k|        e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|  24.9k|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  190|  24.9k|    }
  ------------------
 1025|  24.9k|        if (t > 7)                                                                            \
  ------------------
  |  Branch (1025:13): [True: 24.9k, Folded]
  ------------------
 1026|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(d, e, a, b, c, me2, 7);                     \
  ------------------
  |  |  187|  24.9k|    {                                                                  \
  |  |  188|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  189|  24.9k|        e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|  24.9k|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  190|  24.9k|    }
  ------------------
 1027|  24.9k|        if (t > 6)                                                                            \
  ------------------
  |  Branch (1027:13): [True: 24.9k, Folded]
  ------------------
 1028|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(e, a, b, c, d, me2, 6);                     \
  ------------------
  |  |  187|  24.9k|    {                                                                  \
  |  |  188|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  189|  24.9k|        e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|  24.9k|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  190|  24.9k|    }
  ------------------
 1029|  24.9k|        if (t > 5)                                                                            \
  ------------------
  |  Branch (1029:13): [True: 24.9k, Folded]
  ------------------
 1030|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(a, b, c, d, e, me2, 5);                     \
  ------------------
  |  |  187|  24.9k|    {                                                                  \
  |  |  188|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  189|  24.9k|        e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|  24.9k|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  190|  24.9k|    }
  ------------------
 1031|  24.9k|        if (t > 4)                                                                            \
  ------------------
  |  Branch (1031:13): [True: 24.9k, Folded]
  ------------------
 1032|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(b, c, d, e, a, me2, 4);                     \
  ------------------
  |  |  187|  24.9k|    {                                                                  \
  |  |  188|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  189|  24.9k|        e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|  24.9k|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  190|  24.9k|    }
  ------------------
 1033|  24.9k|        if (t > 3)                                                                            \
  ------------------
  |  Branch (1033:13): [True: 24.9k, Folded]
  ------------------
 1034|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(c, d, e, a, b, me2, 3);                     \
  ------------------
  |  |  187|  24.9k|    {                                                                  \
  |  |  188|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  189|  24.9k|        e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|  24.9k|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  190|  24.9k|    }
  ------------------
 1035|  24.9k|        if (t > 2)                                                                            \
  ------------------
  |  Branch (1035:13): [True: 24.9k, Folded]
  ------------------
 1036|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(d, e, a, b, c, me2, 2);                     \
  ------------------
  |  |  187|  24.9k|    {                                                                  \
  |  |  188|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  189|  24.9k|        e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|  24.9k|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  190|  24.9k|    }
  ------------------
 1037|  24.9k|        if (t > 1)                                                                            \
  ------------------
  |  Branch (1037:13): [True: 24.9k, Folded]
  ------------------
 1038|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(e, a, b, c, d, me2, 1);                     \
  ------------------
  |  |  187|  24.9k|    {                                                                  \
  |  |  188|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  189|  24.9k|        e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|  24.9k|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  190|  24.9k|    }
  ------------------
 1039|  24.9k|        if (t > 0)                                                                            \
  ------------------
  |  Branch (1039:13): [True: 24.9k, Folded]
  ------------------
 1040|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(a, b, c, d, e, me2, 0);                     \
  ------------------
  |  |  187|  24.9k|    {                                                                  \
  |  |  188|  24.9k|        b = rotate_right(b, 30);                                       \
  |  |  ------------------
  |  |  |  |  134|  24.9k|#define rotate_right(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
  |  |  ------------------
  |  |  189|  24.9k|        e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e -= rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|  24.9k|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  190|  24.9k|    }
  ------------------
 1041|  24.9k|        ihvin[0] = a;                                                                         \
 1042|  24.9k|        ihvin[1] = b;                                                                         \
 1043|  24.9k|        ihvin[2] = c;                                                                         \
 1044|  24.9k|        ihvin[3] = d;                                                                         \
 1045|  24.9k|        ihvin[4] = e;                                                                         \
 1046|  24.9k|        a = state[0];                                                                         \
 1047|  24.9k|        b = state[1];                                                                         \
 1048|  24.9k|        c = state[2];                                                                         \
 1049|  24.9k|        d = state[3];                                                                         \
 1050|  24.9k|        e = state[4];                                                                         \
 1051|  24.9k|        if (t <= 0)                                                                           \
  ------------------
  |  Branch (1051:13): [Folded, False: 24.9k]
  ------------------
 1052|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP(a, b, c, d, e, me2, 0);                        \
  ------------------
  |  |  166|      0|    {                                                                  \
  |  |  167|      0|        e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|      0|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  168|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  169|      0|    }
  ------------------
 1053|  24.9k|        if (t <= 1)                                                                           \
  ------------------
  |  Branch (1053:13): [Folded, False: 24.9k]
  ------------------
 1054|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP(e, a, b, c, d, me2, 1);                        \
  ------------------
  |  |  166|      0|    {                                                                  \
  |  |  167|      0|        e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|      0|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  168|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  169|      0|    }
  ------------------
 1055|  24.9k|        if (t <= 2)                                                                           \
  ------------------
  |  Branch (1055:13): [Folded, False: 24.9k]
  ------------------
 1056|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP(d, e, a, b, c, me2, 2);                        \
  ------------------
  |  |  166|      0|    {                                                                  \
  |  |  167|      0|        e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|      0|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  168|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  169|      0|    }
  ------------------
 1057|  24.9k|        if (t <= 3)                                                                           \
  ------------------
  |  Branch (1057:13): [Folded, False: 24.9k]
  ------------------
 1058|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP(c, d, e, a, b, me2, 3);                        \
  ------------------
  |  |  166|      0|    {                                                                  \
  |  |  167|      0|        e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|      0|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  168|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  169|      0|    }
  ------------------
 1059|  24.9k|        if (t <= 4)                                                                           \
  ------------------
  |  Branch (1059:13): [Folded, False: 24.9k]
  ------------------
 1060|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP(b, c, d, e, a, me2, 4);                        \
  ------------------
  |  |  166|      0|    {                                                                  \
  |  |  167|      0|        e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|      0|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  168|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  169|      0|    }
  ------------------
 1061|  24.9k|        if (t <= 5)                                                                           \
  ------------------
  |  Branch (1061:13): [Folded, False: 24.9k]
  ------------------
 1062|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP(a, b, c, d, e, me2, 5);                        \
  ------------------
  |  |  166|      0|    {                                                                  \
  |  |  167|      0|        e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|      0|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  168|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  169|      0|    }
  ------------------
 1063|  24.9k|        if (t <= 6)                                                                           \
  ------------------
  |  Branch (1063:13): [Folded, False: 24.9k]
  ------------------
 1064|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP(e, a, b, c, d, me2, 6);                        \
  ------------------
  |  |  166|      0|    {                                                                  \
  |  |  167|      0|        e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|      0|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  168|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  169|      0|    }
  ------------------
 1065|  24.9k|        if (t <= 7)                                                                           \
  ------------------
  |  Branch (1065:13): [Folded, False: 24.9k]
  ------------------
 1066|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP(d, e, a, b, c, me2, 7);                        \
  ------------------
  |  |  166|      0|    {                                                                  \
  |  |  167|      0|        e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|      0|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  168|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  169|      0|    }
  ------------------
 1067|  24.9k|        if (t <= 8)                                                                           \
  ------------------
  |  Branch (1067:13): [Folded, False: 24.9k]
  ------------------
 1068|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP(c, d, e, a, b, me2, 8);                        \
  ------------------
  |  |  166|      0|    {                                                                  \
  |  |  167|      0|        e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|      0|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  168|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  169|      0|    }
  ------------------
 1069|  24.9k|        if (t <= 9)                                                                           \
  ------------------
  |  Branch (1069:13): [Folded, False: 24.9k]
  ------------------
 1070|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP(b, c, d, e, a, me2, 9);                        \
  ------------------
  |  |  166|      0|    {                                                                  \
  |  |  167|      0|        e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|      0|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  168|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  169|      0|    }
  ------------------
 1071|  24.9k|        if (t <= 10)                                                                          \
  ------------------
  |  Branch (1071:13): [Folded, False: 24.9k]
  ------------------
 1072|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP(a, b, c, d, e, me2, 10);                       \
  ------------------
  |  |  166|      0|    {                                                                  \
  |  |  167|      0|        e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|      0|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  168|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  169|      0|    }
  ------------------
 1073|  24.9k|        if (t <= 11)                                                                          \
  ------------------
  |  Branch (1073:13): [Folded, False: 24.9k]
  ------------------
 1074|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP(e, a, b, c, d, me2, 11);                       \
  ------------------
  |  |  166|      0|    {                                                                  \
  |  |  167|      0|        e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|      0|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  168|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  169|      0|    }
  ------------------
 1075|  24.9k|        if (t <= 12)                                                                          \
  ------------------
  |  Branch (1075:13): [Folded, False: 24.9k]
  ------------------
 1076|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP(d, e, a, b, c, me2, 12);                       \
  ------------------
  |  |  166|      0|    {                                                                  \
  |  |  167|      0|        e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|      0|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  168|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  169|      0|    }
  ------------------
 1077|  24.9k|        if (t <= 13)                                                                          \
  ------------------
  |  Branch (1077:13): [Folded, False: 24.9k]
  ------------------
 1078|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP(c, d, e, a, b, me2, 13);                       \
  ------------------
  |  |  166|      0|    {                                                                  \
  |  |  167|      0|        e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|      0|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  168|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  169|      0|    }
  ------------------
 1079|  24.9k|        if (t <= 14)                                                                          \
  ------------------
  |  Branch (1079:13): [Folded, False: 24.9k]
  ------------------
 1080|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP(b, c, d, e, a, me2, 14);                       \
  ------------------
  |  |  166|      0|    {                                                                  \
  |  |  167|      0|        e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|      0|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  168|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  169|      0|    }
  ------------------
 1081|  24.9k|        if (t <= 15)                                                                          \
  ------------------
  |  Branch (1081:13): [Folded, False: 24.9k]
  ------------------
 1082|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP(a, b, c, d, e, me2, 15);                       \
  ------------------
  |  |  166|      0|    {                                                                  \
  |  |  167|      0|        e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|      0|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  168|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  169|      0|    }
  ------------------
 1083|  24.9k|        if (t <= 16)                                                                          \
  ------------------
  |  Branch (1083:13): [Folded, False: 24.9k]
  ------------------
 1084|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP(e, a, b, c, d, me2, 16);                       \
  ------------------
  |  |  166|      0|    {                                                                  \
  |  |  167|      0|        e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|      0|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  168|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  169|      0|    }
  ------------------
 1085|  24.9k|        if (t <= 17)                                                                          \
  ------------------
  |  Branch (1085:13): [Folded, False: 24.9k]
  ------------------
 1086|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP(d, e, a, b, c, me2, 17);                       \
  ------------------
  |  |  166|      0|    {                                                                  \
  |  |  167|      0|        e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|      0|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  168|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  169|      0|    }
  ------------------
 1087|  24.9k|        if (t <= 18)                                                                          \
  ------------------
  |  Branch (1087:13): [Folded, False: 24.9k]
  ------------------
 1088|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP(c, d, e, a, b, me2, 18);                       \
  ------------------
  |  |  166|      0|    {                                                                  \
  |  |  167|      0|        e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|      0|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  168|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  169|      0|    }
  ------------------
 1089|  24.9k|        if (t <= 19)                                                                          \
  ------------------
  |  Branch (1089:13): [Folded, False: 24.9k]
  ------------------
 1090|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND1_STEP(b, c, d, e, a, me2, 19);                       \
  ------------------
  |  |  166|      0|    {                                                                  \
  |  |  167|      0|        e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f1(b, c, d) + 0x5A827999 + m[t]; \
  |  |  ------------------
  |  |  |  |  160|      0|#define sha1_f1(b, c, d) ((d) ^ ((b) & ((c) ^ (d))))
  |  |  ------------------
  |  |  168|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  169|      0|    }
  ------------------
 1091|  24.9k|        if (t <= 20)                                                                          \
  ------------------
  |  Branch (1091:13): [Folded, False: 24.9k]
  ------------------
 1092|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP(a, b, c, d, e, me2, 20);                       \
  ------------------
  |  |  171|      0|    {                                                                  \
  |  |  172|      0|        e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|      0|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  173|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  174|      0|    }
  ------------------
 1093|  24.9k|        if (t <= 21)                                                                          \
  ------------------
  |  Branch (1093:13): [Folded, False: 24.9k]
  ------------------
 1094|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP(e, a, b, c, d, me2, 21);                       \
  ------------------
  |  |  171|      0|    {                                                                  \
  |  |  172|      0|        e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|      0|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  173|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  174|      0|    }
  ------------------
 1095|  24.9k|        if (t <= 22)                                                                          \
  ------------------
  |  Branch (1095:13): [Folded, False: 24.9k]
  ------------------
 1096|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP(d, e, a, b, c, me2, 22);                       \
  ------------------
  |  |  171|      0|    {                                                                  \
  |  |  172|      0|        e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|      0|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  173|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  174|      0|    }
  ------------------
 1097|  24.9k|        if (t <= 23)                                                                          \
  ------------------
  |  Branch (1097:13): [Folded, False: 24.9k]
  ------------------
 1098|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP(c, d, e, a, b, me2, 23);                       \
  ------------------
  |  |  171|      0|    {                                                                  \
  |  |  172|      0|        e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|      0|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  173|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  174|      0|    }
  ------------------
 1099|  24.9k|        if (t <= 24)                                                                          \
  ------------------
  |  Branch (1099:13): [Folded, False: 24.9k]
  ------------------
 1100|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP(b, c, d, e, a, me2, 24);                       \
  ------------------
  |  |  171|      0|    {                                                                  \
  |  |  172|      0|        e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|      0|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  173|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  174|      0|    }
  ------------------
 1101|  24.9k|        if (t <= 25)                                                                          \
  ------------------
  |  Branch (1101:13): [Folded, False: 24.9k]
  ------------------
 1102|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP(a, b, c, d, e, me2, 25);                       \
  ------------------
  |  |  171|      0|    {                                                                  \
  |  |  172|      0|        e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|      0|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  173|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  174|      0|    }
  ------------------
 1103|  24.9k|        if (t <= 26)                                                                          \
  ------------------
  |  Branch (1103:13): [Folded, False: 24.9k]
  ------------------
 1104|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP(e, a, b, c, d, me2, 26);                       \
  ------------------
  |  |  171|      0|    {                                                                  \
  |  |  172|      0|        e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|      0|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  173|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  174|      0|    }
  ------------------
 1105|  24.9k|        if (t <= 27)                                                                          \
  ------------------
  |  Branch (1105:13): [Folded, False: 24.9k]
  ------------------
 1106|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP(d, e, a, b, c, me2, 27);                       \
  ------------------
  |  |  171|      0|    {                                                                  \
  |  |  172|      0|        e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|      0|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  173|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  174|      0|    }
  ------------------
 1107|  24.9k|        if (t <= 28)                                                                          \
  ------------------
  |  Branch (1107:13): [Folded, False: 24.9k]
  ------------------
 1108|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP(c, d, e, a, b, me2, 28);                       \
  ------------------
  |  |  171|      0|    {                                                                  \
  |  |  172|      0|        e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|      0|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  173|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  174|      0|    }
  ------------------
 1109|  24.9k|        if (t <= 29)                                                                          \
  ------------------
  |  Branch (1109:13): [Folded, False: 24.9k]
  ------------------
 1110|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP(b, c, d, e, a, me2, 29);                       \
  ------------------
  |  |  171|      0|    {                                                                  \
  |  |  172|      0|        e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|      0|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  173|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  174|      0|    }
  ------------------
 1111|  24.9k|        if (t <= 30)                                                                          \
  ------------------
  |  Branch (1111:13): [Folded, False: 24.9k]
  ------------------
 1112|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP(a, b, c, d, e, me2, 30);                       \
  ------------------
  |  |  171|      0|    {                                                                  \
  |  |  172|      0|        e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|      0|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  173|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  174|      0|    }
  ------------------
 1113|  24.9k|        if (t <= 31)                                                                          \
  ------------------
  |  Branch (1113:13): [Folded, False: 24.9k]
  ------------------
 1114|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP(e, a, b, c, d, me2, 31);                       \
  ------------------
  |  |  171|      0|    {                                                                  \
  |  |  172|      0|        e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|      0|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  173|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  174|      0|    }
  ------------------
 1115|  24.9k|        if (t <= 32)                                                                          \
  ------------------
  |  Branch (1115:13): [Folded, False: 24.9k]
  ------------------
 1116|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP(d, e, a, b, c, me2, 32);                       \
  ------------------
  |  |  171|      0|    {                                                                  \
  |  |  172|      0|        e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|      0|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  173|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  174|      0|    }
  ------------------
 1117|  24.9k|        if (t <= 33)                                                                          \
  ------------------
  |  Branch (1117:13): [Folded, False: 24.9k]
  ------------------
 1118|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP(c, d, e, a, b, me2, 33);                       \
  ------------------
  |  |  171|      0|    {                                                                  \
  |  |  172|      0|        e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|      0|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  173|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  174|      0|    }
  ------------------
 1119|  24.9k|        if (t <= 34)                                                                          \
  ------------------
  |  Branch (1119:13): [Folded, False: 24.9k]
  ------------------
 1120|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP(b, c, d, e, a, me2, 34);                       \
  ------------------
  |  |  171|      0|    {                                                                  \
  |  |  172|      0|        e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|      0|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  173|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  174|      0|    }
  ------------------
 1121|  24.9k|        if (t <= 35)                                                                          \
  ------------------
  |  Branch (1121:13): [Folded, False: 24.9k]
  ------------------
 1122|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP(a, b, c, d, e, me2, 35);                       \
  ------------------
  |  |  171|      0|    {                                                                  \
  |  |  172|      0|        e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|      0|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  173|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  174|      0|    }
  ------------------
 1123|  24.9k|        if (t <= 36)                                                                          \
  ------------------
  |  Branch (1123:13): [Folded, False: 24.9k]
  ------------------
 1124|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP(e, a, b, c, d, me2, 36);                       \
  ------------------
  |  |  171|      0|    {                                                                  \
  |  |  172|      0|        e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|      0|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  173|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  174|      0|    }
  ------------------
 1125|  24.9k|        if (t <= 37)                                                                          \
  ------------------
  |  Branch (1125:13): [Folded, False: 24.9k]
  ------------------
 1126|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP(d, e, a, b, c, me2, 37);                       \
  ------------------
  |  |  171|      0|    {                                                                  \
  |  |  172|      0|        e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|      0|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  173|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  174|      0|    }
  ------------------
 1127|  24.9k|        if (t <= 38)                                                                          \
  ------------------
  |  Branch (1127:13): [Folded, False: 24.9k]
  ------------------
 1128|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP(c, d, e, a, b, me2, 38);                       \
  ------------------
  |  |  171|      0|    {                                                                  \
  |  |  172|      0|        e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|      0|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  173|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  174|      0|    }
  ------------------
 1129|  24.9k|        if (t <= 39)                                                                          \
  ------------------
  |  Branch (1129:13): [Folded, False: 24.9k]
  ------------------
 1130|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND2_STEP(b, c, d, e, a, me2, 39);                       \
  ------------------
  |  |  171|      0|    {                                                                  \
  |  |  172|      0|        e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f2(b, c, d) + 0x6ED9EBA1 + m[t]; \
  |  |  ------------------
  |  |  |  |  161|      0|#define sha1_f2(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  173|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  174|      0|    }
  ------------------
 1131|  24.9k|        if (t <= 40)                                                                          \
  ------------------
  |  Branch (1131:13): [Folded, False: 24.9k]
  ------------------
 1132|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP(a, b, c, d, e, me2, 40);                       \
  ------------------
  |  |  176|      0|    {                                                                  \
  |  |  177|      0|        e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|      0|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  178|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  179|      0|    }
  ------------------
 1133|  24.9k|        if (t <= 41)                                                                          \
  ------------------
  |  Branch (1133:13): [Folded, False: 24.9k]
  ------------------
 1134|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP(e, a, b, c, d, me2, 41);                       \
  ------------------
  |  |  176|      0|    {                                                                  \
  |  |  177|      0|        e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|      0|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  178|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  179|      0|    }
  ------------------
 1135|  24.9k|        if (t <= 42)                                                                          \
  ------------------
  |  Branch (1135:13): [Folded, False: 24.9k]
  ------------------
 1136|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP(d, e, a, b, c, me2, 42);                       \
  ------------------
  |  |  176|      0|    {                                                                  \
  |  |  177|      0|        e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|      0|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  178|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  179|      0|    }
  ------------------
 1137|  24.9k|        if (t <= 43)                                                                          \
  ------------------
  |  Branch (1137:13): [Folded, False: 24.9k]
  ------------------
 1138|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP(c, d, e, a, b, me2, 43);                       \
  ------------------
  |  |  176|      0|    {                                                                  \
  |  |  177|      0|        e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|      0|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  178|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  179|      0|    }
  ------------------
 1139|  24.9k|        if (t <= 44)                                                                          \
  ------------------
  |  Branch (1139:13): [Folded, False: 24.9k]
  ------------------
 1140|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP(b, c, d, e, a, me2, 44);                       \
  ------------------
  |  |  176|      0|    {                                                                  \
  |  |  177|      0|        e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|      0|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  178|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  179|      0|    }
  ------------------
 1141|  24.9k|        if (t <= 45)                                                                          \
  ------------------
  |  Branch (1141:13): [Folded, False: 24.9k]
  ------------------
 1142|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP(a, b, c, d, e, me2, 45);                       \
  ------------------
  |  |  176|      0|    {                                                                  \
  |  |  177|      0|        e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|      0|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  178|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  179|      0|    }
  ------------------
 1143|  24.9k|        if (t <= 46)                                                                          \
  ------------------
  |  Branch (1143:13): [Folded, False: 24.9k]
  ------------------
 1144|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP(e, a, b, c, d, me2, 46);                       \
  ------------------
  |  |  176|      0|    {                                                                  \
  |  |  177|      0|        e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|      0|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  178|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  179|      0|    }
  ------------------
 1145|  24.9k|        if (t <= 47)                                                                          \
  ------------------
  |  Branch (1145:13): [Folded, False: 24.9k]
  ------------------
 1146|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP(d, e, a, b, c, me2, 47);                       \
  ------------------
  |  |  176|      0|    {                                                                  \
  |  |  177|      0|        e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|      0|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  178|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  179|      0|    }
  ------------------
 1147|  24.9k|        if (t <= 48)                                                                          \
  ------------------
  |  Branch (1147:13): [Folded, False: 24.9k]
  ------------------
 1148|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP(c, d, e, a, b, me2, 48);                       \
  ------------------
  |  |  176|      0|    {                                                                  \
  |  |  177|      0|        e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|      0|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  178|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  179|      0|    }
  ------------------
 1149|  24.9k|        if (t <= 49)                                                                          \
  ------------------
  |  Branch (1149:13): [Folded, False: 24.9k]
  ------------------
 1150|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP(b, c, d, e, a, me2, 49);                       \
  ------------------
  |  |  176|      0|    {                                                                  \
  |  |  177|      0|        e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|      0|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  178|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  179|      0|    }
  ------------------
 1151|  24.9k|        if (t <= 50)                                                                          \
  ------------------
  |  Branch (1151:13): [Folded, False: 24.9k]
  ------------------
 1152|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP(a, b, c, d, e, me2, 50);                       \
  ------------------
  |  |  176|      0|    {                                                                  \
  |  |  177|      0|        e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|      0|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  178|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  179|      0|    }
  ------------------
 1153|  24.9k|        if (t <= 51)                                                                          \
  ------------------
  |  Branch (1153:13): [Folded, False: 24.9k]
  ------------------
 1154|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP(e, a, b, c, d, me2, 51);                       \
  ------------------
  |  |  176|      0|    {                                                                  \
  |  |  177|      0|        e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|      0|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  178|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  179|      0|    }
  ------------------
 1155|  24.9k|        if (t <= 52)                                                                          \
  ------------------
  |  Branch (1155:13): [Folded, False: 24.9k]
  ------------------
 1156|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP(d, e, a, b, c, me2, 52);                       \
  ------------------
  |  |  176|      0|    {                                                                  \
  |  |  177|      0|        e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|      0|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  178|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  179|      0|    }
  ------------------
 1157|  24.9k|        if (t <= 53)                                                                          \
  ------------------
  |  Branch (1157:13): [Folded, False: 24.9k]
  ------------------
 1158|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP(c, d, e, a, b, me2, 53);                       \
  ------------------
  |  |  176|      0|    {                                                                  \
  |  |  177|      0|        e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|      0|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  178|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  179|      0|    }
  ------------------
 1159|  24.9k|        if (t <= 54)                                                                          \
  ------------------
  |  Branch (1159:13): [Folded, False: 24.9k]
  ------------------
 1160|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP(b, c, d, e, a, me2, 54);                       \
  ------------------
  |  |  176|      0|    {                                                                  \
  |  |  177|      0|        e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|      0|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  178|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  179|      0|    }
  ------------------
 1161|  24.9k|        if (t <= 55)                                                                          \
  ------------------
  |  Branch (1161:13): [Folded, False: 24.9k]
  ------------------
 1162|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP(a, b, c, d, e, me2, 55);                       \
  ------------------
  |  |  176|      0|    {                                                                  \
  |  |  177|      0|        e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|      0|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  178|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  179|      0|    }
  ------------------
 1163|  24.9k|        if (t <= 56)                                                                          \
  ------------------
  |  Branch (1163:13): [Folded, False: 24.9k]
  ------------------
 1164|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP(e, a, b, c, d, me2, 56);                       \
  ------------------
  |  |  176|      0|    {                                                                  \
  |  |  177|      0|        e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|      0|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  178|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  179|      0|    }
  ------------------
 1165|  24.9k|        if (t <= 57)                                                                          \
  ------------------
  |  Branch (1165:13): [Folded, False: 24.9k]
  ------------------
 1166|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP(d, e, a, b, c, me2, 57);                       \
  ------------------
  |  |  176|      0|    {                                                                  \
  |  |  177|      0|        e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|      0|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  178|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  179|      0|    }
  ------------------
 1167|  24.9k|        if (t <= 58)                                                                          \
  ------------------
  |  Branch (1167:13): [Folded, False: 24.9k]
  ------------------
 1168|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP(c, d, e, a, b, me2, 58);                       \
  ------------------
  |  |  176|      0|    {                                                                  \
  |  |  177|      0|        e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|      0|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  178|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  179|      0|    }
  ------------------
 1169|  24.9k|        if (t <= 59)                                                                          \
  ------------------
  |  Branch (1169:13): [Folded, False: 24.9k]
  ------------------
 1170|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND3_STEP(b, c, d, e, a, me2, 59);                       \
  ------------------
  |  |  176|      0|    {                                                                  \
  |  |  177|      0|        e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f3(b, c, d) + 0x8F1BBCDC + m[t]; \
  |  |  ------------------
  |  |  |  |  162|      0|#define sha1_f3(b, c, d) (((b) & (c)) + ((d) & ((b) ^ (c))))
  |  |  ------------------
  |  |  178|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  179|      0|    }
  ------------------
 1171|  24.9k|        if (t <= 60)                                                                          \
  ------------------
  |  Branch (1171:13): [Folded, False: 24.9k]
  ------------------
 1172|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP(a, b, c, d, e, me2, 60);                       \
  ------------------
  |  |  181|      0|    {                                                                  \
  |  |  182|      0|        e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|      0|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  183|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  184|      0|    }
  ------------------
 1173|  24.9k|        if (t <= 61)                                                                          \
  ------------------
  |  Branch (1173:13): [Folded, False: 24.9k]
  ------------------
 1174|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP(e, a, b, c, d, me2, 61);                       \
  ------------------
  |  |  181|      0|    {                                                                  \
  |  |  182|      0|        e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|      0|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  183|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  184|      0|    }
  ------------------
 1175|  24.9k|        if (t <= 62)                                                                          \
  ------------------
  |  Branch (1175:13): [Folded, False: 24.9k]
  ------------------
 1176|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP(d, e, a, b, c, me2, 62);                       \
  ------------------
  |  |  181|      0|    {                                                                  \
  |  |  182|      0|        e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|      0|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  183|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  184|      0|    }
  ------------------
 1177|  24.9k|        if (t <= 63)                                                                          \
  ------------------
  |  Branch (1177:13): [Folded, False: 24.9k]
  ------------------
 1178|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP(c, d, e, a, b, me2, 63);                       \
  ------------------
  |  |  181|      0|    {                                                                  \
  |  |  182|      0|        e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|      0|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  183|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  184|      0|    }
  ------------------
 1179|  24.9k|        if (t <= 64)                                                                          \
  ------------------
  |  Branch (1179:13): [Folded, False: 24.9k]
  ------------------
 1180|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP(b, c, d, e, a, me2, 64);                       \
  ------------------
  |  |  181|      0|    {                                                                  \
  |  |  182|      0|        e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|      0|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  183|      0|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|      0|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  184|      0|    }
  ------------------
 1181|  24.9k|        if (t <= 65)                                                                          \
  ------------------
  |  Branch (1181:13): [True: 24.9k, Folded]
  ------------------
 1182|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP(a, b, c, d, e, me2, 65);                       \
  ------------------
  |  |  181|  24.9k|    {                                                                  \
  |  |  182|  24.9k|        e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|  24.9k|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  183|  24.9k|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  184|  24.9k|    }
  ------------------
 1183|  24.9k|        if (t <= 66)                                                                          \
  ------------------
  |  Branch (1183:13): [True: 24.9k, Folded]
  ------------------
 1184|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP(e, a, b, c, d, me2, 66);                       \
  ------------------
  |  |  181|  24.9k|    {                                                                  \
  |  |  182|  24.9k|        e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|  24.9k|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  183|  24.9k|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  184|  24.9k|    }
  ------------------
 1185|  24.9k|        if (t <= 67)                                                                          \
  ------------------
  |  Branch (1185:13): [True: 24.9k, Folded]
  ------------------
 1186|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP(d, e, a, b, c, me2, 67);                       \
  ------------------
  |  |  181|  24.9k|    {                                                                  \
  |  |  182|  24.9k|        e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|  24.9k|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  183|  24.9k|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  184|  24.9k|    }
  ------------------
 1187|  24.9k|        if (t <= 68)                                                                          \
  ------------------
  |  Branch (1187:13): [True: 24.9k, Folded]
  ------------------
 1188|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP(c, d, e, a, b, me2, 68);                       \
  ------------------
  |  |  181|  24.9k|    {                                                                  \
  |  |  182|  24.9k|        e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|  24.9k|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  183|  24.9k|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  184|  24.9k|    }
  ------------------
 1189|  24.9k|        if (t <= 69)                                                                          \
  ------------------
  |  Branch (1189:13): [True: 24.9k, Folded]
  ------------------
 1190|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP(b, c, d, e, a, me2, 69);                       \
  ------------------
  |  |  181|  24.9k|    {                                                                  \
  |  |  182|  24.9k|        e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|  24.9k|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  183|  24.9k|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  184|  24.9k|    }
  ------------------
 1191|  24.9k|        if (t <= 70)                                                                          \
  ------------------
  |  Branch (1191:13): [True: 24.9k, Folded]
  ------------------
 1192|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP(a, b, c, d, e, me2, 70);                       \
  ------------------
  |  |  181|  24.9k|    {                                                                  \
  |  |  182|  24.9k|        e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|  24.9k|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  183|  24.9k|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  184|  24.9k|    }
  ------------------
 1193|  24.9k|        if (t <= 71)                                                                          \
  ------------------
  |  Branch (1193:13): [True: 24.9k, Folded]
  ------------------
 1194|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP(e, a, b, c, d, me2, 71);                       \
  ------------------
  |  |  181|  24.9k|    {                                                                  \
  |  |  182|  24.9k|        e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|  24.9k|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  183|  24.9k|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  184|  24.9k|    }
  ------------------
 1195|  24.9k|        if (t <= 72)                                                                          \
  ------------------
  |  Branch (1195:13): [True: 24.9k, Folded]
  ------------------
 1196|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP(d, e, a, b, c, me2, 72);                       \
  ------------------
  |  |  181|  24.9k|    {                                                                  \
  |  |  182|  24.9k|        e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|  24.9k|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  183|  24.9k|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  184|  24.9k|    }
  ------------------
 1197|  24.9k|        if (t <= 73)                                                                          \
  ------------------
  |  Branch (1197:13): [True: 24.9k, Folded]
  ------------------
 1198|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP(c, d, e, a, b, me2, 73);                       \
  ------------------
  |  |  181|  24.9k|    {                                                                  \
  |  |  182|  24.9k|        e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|  24.9k|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  183|  24.9k|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  184|  24.9k|    }
  ------------------
 1199|  24.9k|        if (t <= 74)                                                                          \
  ------------------
  |  Branch (1199:13): [True: 24.9k, Folded]
  ------------------
 1200|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP(b, c, d, e, a, me2, 74);                       \
  ------------------
  |  |  181|  24.9k|    {                                                                  \
  |  |  182|  24.9k|        e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|  24.9k|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  183|  24.9k|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  184|  24.9k|    }
  ------------------
 1201|  24.9k|        if (t <= 75)                                                                          \
  ------------------
  |  Branch (1201:13): [True: 24.9k, Folded]
  ------------------
 1202|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP(a, b, c, d, e, me2, 75);                       \
  ------------------
  |  |  181|  24.9k|    {                                                                  \
  |  |  182|  24.9k|        e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|  24.9k|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  183|  24.9k|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  184|  24.9k|    }
  ------------------
 1203|  24.9k|        if (t <= 76)                                                                          \
  ------------------
  |  Branch (1203:13): [True: 24.9k, Folded]
  ------------------
 1204|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP(e, a, b, c, d, me2, 76);                       \
  ------------------
  |  |  181|  24.9k|    {                                                                  \
  |  |  182|  24.9k|        e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|  24.9k|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  183|  24.9k|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  184|  24.9k|    }
  ------------------
 1205|  24.9k|        if (t <= 77)                                                                          \
  ------------------
  |  Branch (1205:13): [True: 24.9k, Folded]
  ------------------
 1206|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP(d, e, a, b, c, me2, 77);                       \
  ------------------
  |  |  181|  24.9k|    {                                                                  \
  |  |  182|  24.9k|        e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|  24.9k|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  183|  24.9k|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  184|  24.9k|    }
  ------------------
 1207|  24.9k|        if (t <= 78)                                                                          \
  ------------------
  |  Branch (1207:13): [True: 24.9k, Folded]
  ------------------
 1208|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP(c, d, e, a, b, me2, 78);                       \
  ------------------
  |  |  181|  24.9k|    {                                                                  \
  |  |  182|  24.9k|        e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|  24.9k|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  183|  24.9k|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  184|  24.9k|    }
  ------------------
 1209|  24.9k|        if (t <= 79)                                                                          \
  ------------------
  |  Branch (1209:13): [True: 24.9k, Folded]
  ------------------
 1210|  24.9k|            HASHCLASH_SHA1COMPRESS_ROUND4_STEP(b, c, d, e, a, me2, 79);                       \
  ------------------
  |  |  181|  24.9k|    {                                                                  \
  |  |  182|  24.9k|        e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |                       e += rotate_left(a, 5) + sha1_f4(b, c, d) + 0xCA62C1D6 + m[t]; \
  |  |  ------------------
  |  |  |  |  163|  24.9k|#define sha1_f4(b, c, d) ((b) ^ (c) ^ (d))
  |  |  ------------------
  |  |  183|  24.9k|        b = rotate_left(b, 30);                                        \
  |  |  ------------------
  |  |  |  |  135|  24.9k|#define rotate_left(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
  |  |  ------------------
  |  |  184|  24.9k|    }
  ------------------
 1211|  24.9k|        ihvout[0] = ihvin[0] + a;                                                             \
 1212|  24.9k|        ihvout[1] = ihvin[1] + b;                                                             \
 1213|  24.9k|        ihvout[2] = ihvin[2] + c;                                                             \
 1214|  24.9k|        ihvout[3] = ihvin[3] + d;                                                             \
 1215|  24.9k|        ihvout[4] = ihvin[4] + e;                                                             \
 1216|  24.9k|    }

ubc_check:
  571|  1.29M|{
  572|  1.29M|    uint32_t mask = ~((uint32_t)(0));
  573|  1.29M|    mask &= (((((W[44] ^ W[45]) >> 29) & 1) - 1) |
  574|  1.29M|             ~(DV_I_48_0_bit | DV_I_51_0_bit | DV_I_52_0_bit | DV_II_45_0_bit |
  575|  1.29M|               DV_II_46_0_bit | DV_II_50_0_bit | DV_II_51_0_bit));
  576|  1.29M|    mask &= (((((W[49] ^ W[50]) >> 29) & 1) - 1) |
  577|  1.29M|             ~(DV_I_46_0_bit | DV_II_45_0_bit | DV_II_50_0_bit | DV_II_51_0_bit |
  578|  1.29M|               DV_II_55_0_bit | DV_II_56_0_bit));
  579|  1.29M|    mask &= (((((W[48] ^ W[49]) >> 29) & 1) - 1) |
  580|  1.29M|             ~(DV_I_45_0_bit | DV_I_52_0_bit | DV_II_49_0_bit | DV_II_50_0_bit |
  581|  1.29M|               DV_II_54_0_bit | DV_II_55_0_bit));
  582|  1.29M|    mask &= ((((W[47] ^ (W[50] >> 25)) & (1 << 4)) - (1 << 4)) |
  583|  1.29M|             ~(DV_I_47_0_bit | DV_I_49_0_bit | DV_I_51_0_bit | DV_II_45_0_bit |
  584|  1.29M|               DV_II_51_0_bit | DV_II_56_0_bit));
  585|  1.29M|    mask &= (((((W[47] ^ W[48]) >> 29) & 1) - 1) |
  586|  1.29M|             ~(DV_I_44_0_bit | DV_I_51_0_bit | DV_II_48_0_bit | DV_II_49_0_bit |
  587|  1.29M|               DV_II_53_0_bit | DV_II_54_0_bit));
  588|  1.29M|    mask &= (((((W[46] >> 4) ^ (W[49] >> 29)) & 1) - 1) |
  589|  1.29M|             ~(DV_I_46_0_bit | DV_I_48_0_bit | DV_I_50_0_bit | DV_I_52_0_bit | DV_II_50_0_bit |
  590|  1.29M|               DV_II_55_0_bit));
  591|  1.29M|    mask &= (((((W[46] ^ W[47]) >> 29) & 1) - 1) |
  592|  1.29M|             ~(DV_I_43_0_bit | DV_I_50_0_bit | DV_II_47_0_bit | DV_II_48_0_bit |
  593|  1.29M|               DV_II_52_0_bit | DV_II_53_0_bit));
  594|  1.29M|    mask &= (((((W[45] >> 4) ^ (W[48] >> 29)) & 1) - 1) |
  595|  1.29M|             ~(DV_I_45_0_bit | DV_I_47_0_bit | DV_I_49_0_bit | DV_I_51_0_bit | DV_II_49_0_bit |
  596|  1.29M|               DV_II_54_0_bit));
  597|  1.29M|    mask &= (((((W[45] ^ W[46]) >> 29) & 1) - 1) |
  598|  1.29M|             ~(DV_I_49_0_bit | DV_I_52_0_bit | DV_II_46_0_bit | DV_II_47_0_bit |
  599|  1.29M|               DV_II_51_0_bit | DV_II_52_0_bit));
  600|  1.29M|    mask &= (((((W[44] >> 4) ^ (W[47] >> 29)) & 1) - 1) |
  601|  1.29M|             ~(DV_I_44_0_bit | DV_I_46_0_bit | DV_I_48_0_bit | DV_I_50_0_bit | DV_II_48_0_bit |
  602|  1.29M|               DV_II_53_0_bit));
  603|  1.29M|    mask &= (((((W[43] >> 4) ^ (W[46] >> 29)) & 1) - 1) |
  604|  1.29M|             ~(DV_I_43_0_bit | DV_I_45_0_bit | DV_I_47_0_bit | DV_I_49_0_bit | DV_II_47_0_bit |
  605|  1.29M|               DV_II_52_0_bit));
  606|  1.29M|    mask &= (((((W[43] ^ W[44]) >> 29) & 1) - 1) |
  607|  1.29M|             ~(DV_I_47_0_bit | DV_I_50_0_bit | DV_I_51_0_bit | DV_II_45_0_bit |
  608|  1.29M|               DV_II_49_0_bit | DV_II_50_0_bit));
  609|  1.29M|    mask &= (((((W[42] >> 4) ^ (W[45] >> 29)) & 1) - 1) |
  610|  1.29M|             ~(DV_I_44_0_bit | DV_I_46_0_bit | DV_I_48_0_bit | DV_I_52_0_bit | DV_II_46_0_bit |
  611|  1.29M|               DV_II_51_0_bit));
  612|  1.29M|    mask &= (((((W[41] >> 4) ^ (W[44] >> 29)) & 1) - 1) |
  613|  1.29M|             ~(DV_I_43_0_bit | DV_I_45_0_bit | DV_I_47_0_bit | DV_I_51_0_bit | DV_II_45_0_bit |
  614|  1.29M|               DV_II_50_0_bit));
  615|  1.29M|    mask &= (((((W[40] ^ W[41]) >> 29) & 1) - 1) |
  616|  1.29M|             ~(DV_I_44_0_bit | DV_I_47_0_bit | DV_I_48_0_bit | DV_II_46_0_bit |
  617|  1.29M|               DV_II_47_0_bit | DV_II_56_0_bit));
  618|  1.29M|    mask &=
  619|  1.29M|      (((((W[54] ^ W[55]) >> 29) & 1) - 1) |
  620|  1.29M|       ~(DV_I_51_0_bit | DV_II_47_0_bit | DV_II_50_0_bit | DV_II_55_0_bit | DV_II_56_0_bit));
  621|  1.29M|    mask &=
  622|  1.29M|      (((((W[53] ^ W[54]) >> 29) & 1) - 1) |
  623|  1.29M|       ~(DV_I_50_0_bit | DV_II_46_0_bit | DV_II_49_0_bit | DV_II_54_0_bit | DV_II_55_0_bit));
  624|  1.29M|    mask &=
  625|  1.29M|      (((((W[52] ^ W[53]) >> 29) & 1) - 1) |
  626|  1.29M|       ~(DV_I_49_0_bit | DV_II_45_0_bit | DV_II_48_0_bit | DV_II_53_0_bit | DV_II_54_0_bit));
  627|  1.29M|    mask &=
  628|  1.29M|      ((((W[50] ^ (W[53] >> 25)) & (1 << 4)) - (1 << 4)) |
  629|  1.29M|       ~(DV_I_50_0_bit | DV_I_52_0_bit | DV_II_46_0_bit | DV_II_48_0_bit | DV_II_54_0_bit));
  630|  1.29M|    mask &=
  631|  1.29M|      (((((W[50] ^ W[51]) >> 29) & 1) - 1) |
  632|  1.29M|       ~(DV_I_47_0_bit | DV_II_46_0_bit | DV_II_51_0_bit | DV_II_52_0_bit | DV_II_56_0_bit));
  633|  1.29M|    mask &=
  634|  1.29M|      ((((W[49] ^ (W[52] >> 25)) & (1 << 4)) - (1 << 4)) |
  635|  1.29M|       ~(DV_I_49_0_bit | DV_I_51_0_bit | DV_II_45_0_bit | DV_II_47_0_bit | DV_II_53_0_bit));
  636|  1.29M|    mask &=
  637|  1.29M|      ((((W[48] ^ (W[51] >> 25)) & (1 << 4)) - (1 << 4)) |
  638|  1.29M|       ~(DV_I_48_0_bit | DV_I_50_0_bit | DV_I_52_0_bit | DV_II_46_0_bit | DV_II_52_0_bit));
  639|  1.29M|    mask &=
  640|  1.29M|      (((((W[42] ^ W[43]) >> 29) & 1) - 1) |
  641|  1.29M|       ~(DV_I_46_0_bit | DV_I_49_0_bit | DV_I_50_0_bit | DV_II_48_0_bit | DV_II_49_0_bit));
  642|  1.29M|    mask &=
  643|  1.29M|      (((((W[41] ^ W[42]) >> 29) & 1) - 1) |
  644|  1.29M|       ~(DV_I_45_0_bit | DV_I_48_0_bit | DV_I_49_0_bit | DV_II_47_0_bit | DV_II_48_0_bit));
  645|  1.29M|    mask &=
  646|  1.29M|      (((((W[40] >> 4) ^ (W[43] >> 29)) & 1) - 1) |
  647|  1.29M|       ~(DV_I_44_0_bit | DV_I_46_0_bit | DV_I_50_0_bit | DV_II_49_0_bit | DV_II_56_0_bit));
  648|  1.29M|    mask &=
  649|  1.29M|      (((((W[39] >> 4) ^ (W[42] >> 29)) & 1) - 1) |
  650|  1.29M|       ~(DV_I_43_0_bit | DV_I_45_0_bit | DV_I_49_0_bit | DV_II_48_0_bit | DV_II_55_0_bit));
  651|  1.29M|    if (mask &
  ------------------
  |  Branch (651:9): [True: 133k, False: 1.15M]
  ------------------
  652|  1.29M|        (DV_I_44_0_bit | DV_I_48_0_bit | DV_II_47_0_bit | DV_II_54_0_bit | DV_II_56_0_bit))
  653|   133k|        mask &= (((((W[38] >> 4) ^ (W[41] >> 29)) & 1) - 1) |
  654|   133k|                 ~(DV_I_44_0_bit | DV_I_48_0_bit | DV_II_47_0_bit | DV_II_54_0_bit |
  655|   133k|                   DV_II_56_0_bit));
  656|  1.29M|    mask &=
  657|  1.29M|      (((((W[37] >> 4) ^ (W[40] >> 29)) & 1) - 1) |
  658|  1.29M|       ~(DV_I_43_0_bit | DV_I_47_0_bit | DV_II_46_0_bit | DV_II_53_0_bit | DV_II_55_0_bit));
  659|  1.29M|    if (mask & (DV_I_52_0_bit | DV_II_48_0_bit | DV_II_51_0_bit | DV_II_56_0_bit))
  ------------------
  |  Branch (659:9): [True: 64.1k, False: 1.22M]
  ------------------
  660|  64.1k|        mask &= (((((W[55] ^ W[56]) >> 29) & 1) - 1) |
  661|  64.1k|                 ~(DV_I_52_0_bit | DV_II_48_0_bit | DV_II_51_0_bit | DV_II_56_0_bit));
  662|  1.29M|    if (mask & (DV_I_52_0_bit | DV_II_48_0_bit | DV_II_50_0_bit | DV_II_56_0_bit))
  ------------------
  |  Branch (662:9): [True: 57.4k, False: 1.23M]
  ------------------
  663|  57.4k|        mask &= ((((W[52] ^ (W[55] >> 25)) & (1 << 4)) - (1 << 4)) |
  664|  57.4k|                 ~(DV_I_52_0_bit | DV_II_48_0_bit | DV_II_50_0_bit | DV_II_56_0_bit));
  665|  1.29M|    if (mask & (DV_I_51_0_bit | DV_II_47_0_bit | DV_II_49_0_bit | DV_II_55_0_bit))
  ------------------
  |  Branch (665:9): [True: 56.0k, False: 1.23M]
  ------------------
  666|  56.0k|        mask &= ((((W[51] ^ (W[54] >> 25)) & (1 << 4)) - (1 << 4)) |
  667|  56.0k|                 ~(DV_I_51_0_bit | DV_II_47_0_bit | DV_II_49_0_bit | DV_II_55_0_bit));
  668|  1.29M|    if (mask & (DV_I_48_0_bit | DV_II_47_0_bit | DV_II_52_0_bit | DV_II_53_0_bit))
  ------------------
  |  Branch (668:9): [True: 80.8k, False: 1.21M]
  ------------------
  669|  80.8k|        mask &= (((((W[51] ^ W[52]) >> 29) & 1) - 1) |
  670|  80.8k|                 ~(DV_I_48_0_bit | DV_II_47_0_bit | DV_II_52_0_bit | DV_II_53_0_bit));
  671|  1.29M|    if (mask & (DV_I_46_0_bit | DV_I_49_0_bit | DV_II_45_0_bit | DV_II_48_0_bit))
  ------------------
  |  Branch (671:9): [True: 63.5k, False: 1.22M]
  ------------------
  672|  63.5k|        mask &= (((((W[36] >> 4) ^ (W[40] >> 29)) & 1) - 1) |
  673|  63.5k|                 ~(DV_I_46_0_bit | DV_I_49_0_bit | DV_II_45_0_bit | DV_II_48_0_bit));
  674|  1.29M|    if (mask & (DV_I_52_0_bit | DV_II_48_0_bit | DV_II_49_0_bit))
  ------------------
  |  Branch (674:9): [True: 26.1k, False: 1.26M]
  ------------------
  675|  26.1k|        mask &= ((0 - (((W[53] ^ W[56]) >> 29) & 1)) |
  676|  26.1k|                 ~(DV_I_52_0_bit | DV_II_48_0_bit | DV_II_49_0_bit));
  677|  1.29M|    if (mask & (DV_I_50_0_bit | DV_II_46_0_bit | DV_II_47_0_bit))
  ------------------
  |  Branch (677:9): [True: 27.7k, False: 1.26M]
  ------------------
  678|  27.7k|        mask &= ((0 - (((W[51] ^ W[54]) >> 29) & 1)) |
  679|  27.7k|                 ~(DV_I_50_0_bit | DV_II_46_0_bit | DV_II_47_0_bit));
  680|  1.29M|    if (mask & (DV_I_49_0_bit | DV_I_51_0_bit | DV_II_45_0_bit))
  ------------------
  |  Branch (680:9): [True: 34.2k, False: 1.25M]
  ------------------
  681|  34.2k|        mask &= ((0 - (((W[50] ^ W[52]) >> 29) & 1)) |
  682|  34.2k|                 ~(DV_I_49_0_bit | DV_I_51_0_bit | DV_II_45_0_bit));
  683|  1.29M|    if (mask & (DV_I_48_0_bit | DV_I_50_0_bit | DV_I_52_0_bit))
  ------------------
  |  Branch (683:9): [True: 21.4k, False: 1.26M]
  ------------------
  684|  21.4k|        mask &= ((0 - (((W[49] ^ W[51]) >> 29) & 1)) |
  685|  21.4k|                 ~(DV_I_48_0_bit | DV_I_50_0_bit | DV_I_52_0_bit));
  686|  1.29M|    if (mask & (DV_I_47_0_bit | DV_I_49_0_bit | DV_I_51_0_bit))
  ------------------
  |  Branch (686:9): [True: 32.2k, False: 1.25M]
  ------------------
  687|  32.2k|        mask &= ((0 - (((W[48] ^ W[50]) >> 29) & 1)) |
  688|  32.2k|                 ~(DV_I_47_0_bit | DV_I_49_0_bit | DV_I_51_0_bit));
  689|  1.29M|    if (mask & (DV_I_46_0_bit | DV_I_48_0_bit | DV_I_50_0_bit))
  ------------------
  |  Branch (689:9): [True: 44.7k, False: 1.24M]
  ------------------
  690|  44.7k|        mask &= ((0 - (((W[47] ^ W[49]) >> 29) & 1)) |
  691|  44.7k|                 ~(DV_I_46_0_bit | DV_I_48_0_bit | DV_I_50_0_bit));
  692|  1.29M|    if (mask & (DV_I_45_0_bit | DV_I_47_0_bit | DV_I_49_0_bit))
  ------------------
  |  Branch (692:9): [True: 34.1k, False: 1.25M]
  ------------------
  693|  34.1k|        mask &= ((0 - (((W[46] ^ W[48]) >> 29) & 1)) |
  694|  34.1k|                 ~(DV_I_45_0_bit | DV_I_47_0_bit | DV_I_49_0_bit));
  695|  1.29M|    mask &= ((((W[45] ^ W[47]) & (1 << 6)) - (1 << 6)) |
  696|  1.29M|             ~(DV_I_47_2_bit | DV_I_49_2_bit | DV_I_51_2_bit));
  697|  1.29M|    if (mask & (DV_I_44_0_bit | DV_I_46_0_bit | DV_I_48_0_bit))
  ------------------
  |  Branch (697:9): [True: 60.1k, False: 1.23M]
  ------------------
  698|  60.1k|        mask &= ((0 - (((W[45] ^ W[47]) >> 29) & 1)) |
  699|  60.1k|                 ~(DV_I_44_0_bit | DV_I_46_0_bit | DV_I_48_0_bit));
  700|  1.29M|    mask &=
  701|  1.29M|      (((((W[44] ^ W[46]) >> 6) & 1) - 1) | ~(DV_I_46_2_bit | DV_I_48_2_bit | DV_I_50_2_bit));
  702|  1.29M|    if (mask & (DV_I_43_0_bit | DV_I_45_0_bit | DV_I_47_0_bit))
  ------------------
  |  Branch (702:9): [True: 61.0k, False: 1.23M]
  ------------------
  703|  61.0k|        mask &= ((0 - (((W[44] ^ W[46]) >> 29) & 1)) |
  704|  61.0k|                 ~(DV_I_43_0_bit | DV_I_45_0_bit | DV_I_47_0_bit));
  705|  1.29M|    mask &= ((0 - ((W[41] ^ (W[42] >> 5)) & (1 << 1))) |
  706|  1.29M|             ~(DV_I_48_2_bit | DV_II_46_2_bit | DV_II_51_2_bit));
  707|  1.29M|    mask &= ((0 - ((W[40] ^ (W[41] >> 5)) & (1 << 1))) |
  708|  1.29M|             ~(DV_I_47_2_bit | DV_I_51_2_bit | DV_II_50_2_bit));
  709|  1.29M|    if (mask & (DV_I_44_0_bit | DV_I_46_0_bit | DV_II_56_0_bit))
  ------------------
  |  Branch (709:9): [True: 44.6k, False: 1.24M]
  ------------------
  710|  44.6k|        mask &= ((0 - (((W[40] ^ W[42]) >> 4) & 1)) |
  711|  44.6k|                 ~(DV_I_44_0_bit | DV_I_46_0_bit | DV_II_56_0_bit));
  712|  1.29M|    mask &= ((0 - ((W[39] ^ (W[40] >> 5)) & (1 << 1))) |
  713|  1.29M|             ~(DV_I_46_2_bit | DV_I_50_2_bit | DV_II_49_2_bit));
  714|  1.29M|    if (mask & (DV_I_43_0_bit | DV_I_45_0_bit | DV_II_55_0_bit))
  ------------------
  |  Branch (714:9): [True: 40.5k, False: 1.25M]
  ------------------
  715|  40.5k|        mask &= ((0 - (((W[39] ^ W[41]) >> 4) & 1)) |
  716|  40.5k|                 ~(DV_I_43_0_bit | DV_I_45_0_bit | DV_II_55_0_bit));
  717|  1.29M|    if (mask & (DV_I_44_0_bit | DV_II_54_0_bit | DV_II_56_0_bit))
  ------------------
  |  Branch (717:9): [True: 52.6k, False: 1.23M]
  ------------------
  718|  52.6k|        mask &= ((0 - (((W[38] ^ W[40]) >> 4) & 1)) |
  719|  52.6k|                 ~(DV_I_44_0_bit | DV_II_54_0_bit | DV_II_56_0_bit));
  720|  1.29M|    if (mask & (DV_I_43_0_bit | DV_II_53_0_bit | DV_II_55_0_bit))
  ------------------
  |  Branch (720:9): [True: 36.9k, False: 1.25M]
  ------------------
  721|  36.9k|        mask &= ((0 - (((W[37] ^ W[39]) >> 4) & 1)) |
  722|  36.9k|                 ~(DV_I_43_0_bit | DV_II_53_0_bit | DV_II_55_0_bit));
  723|  1.29M|    mask &= ((0 - ((W[36] ^ (W[37] >> 5)) & (1 << 1))) |
  724|  1.29M|             ~(DV_I_47_2_bit | DV_I_50_2_bit | DV_II_46_2_bit));
  725|  1.29M|    if (mask & (DV_I_45_0_bit | DV_I_48_0_bit | DV_II_47_0_bit))
  ------------------
  |  Branch (725:9): [True: 2.14k, False: 1.28M]
  ------------------
  726|  2.14k|        mask &= (((((W[35] >> 4) ^ (W[39] >> 29)) & 1) - 1) |
  727|  2.14k|                 ~(DV_I_45_0_bit | DV_I_48_0_bit | DV_II_47_0_bit));
  728|  1.29M|    if (mask & (DV_I_48_0_bit | DV_II_48_0_bit))
  ------------------
  |  Branch (728:9): [True: 758, False: 1.29M]
  ------------------
  729|    758|        mask &=
  730|    758|          ((0 - ((W[63] ^ (W[64] >> 5)) & (1 << 0))) | ~(DV_I_48_0_bit | DV_II_48_0_bit));
  731|  1.29M|    if (mask & (DV_I_45_0_bit | DV_II_45_0_bit))
  ------------------
  |  Branch (731:9): [True: 3.42k, False: 1.28M]
  ------------------
  732|  3.42k|        mask &=
  733|  3.42k|          ((0 - ((W[63] ^ (W[64] >> 5)) & (1 << 1))) | ~(DV_I_45_0_bit | DV_II_45_0_bit));
  734|  1.29M|    if (mask & (DV_I_47_0_bit | DV_II_47_0_bit))
  ------------------
  |  Branch (734:9): [True: 585, False: 1.29M]
  ------------------
  735|    585|        mask &=
  736|    585|          ((0 - ((W[62] ^ (W[63] >> 5)) & (1 << 0))) | ~(DV_I_47_0_bit | DV_II_47_0_bit));
  737|  1.29M|    if (mask & (DV_I_46_0_bit | DV_II_46_0_bit))
  ------------------
  |  Branch (737:9): [True: 2.49k, False: 1.28M]
  ------------------
  738|  2.49k|        mask &=
  739|  2.49k|          ((0 - ((W[61] ^ (W[62] >> 5)) & (1 << 0))) | ~(DV_I_46_0_bit | DV_II_46_0_bit));
  740|  1.29M|    mask &= ((0 - ((W[61] ^ (W[62] >> 5)) & (1 << 2))) | ~(DV_I_46_2_bit | DV_II_46_2_bit));
  741|  1.29M|    if (mask & (DV_I_45_0_bit | DV_II_45_0_bit))
  ------------------
  |  Branch (741:9): [True: 2.25k, False: 1.28M]
  ------------------
  742|  2.25k|        mask &=
  743|  2.25k|          ((0 - ((W[60] ^ (W[61] >> 5)) & (1 << 0))) | ~(DV_I_45_0_bit | DV_II_45_0_bit));
  744|  1.29M|    if (mask & (DV_II_51_0_bit | DV_II_54_0_bit))
  ------------------
  |  Branch (744:9): [True: 33.8k, False: 1.25M]
  ------------------
  745|  33.8k|        mask &= (((((W[58] ^ W[59]) >> 29) & 1) - 1) | ~(DV_II_51_0_bit | DV_II_54_0_bit));
  746|  1.29M|    if (mask & (DV_II_50_0_bit | DV_II_53_0_bit))
  ------------------
  |  Branch (746:9): [True: 32.7k, False: 1.25M]
  ------------------
  747|  32.7k|        mask &= (((((W[57] ^ W[58]) >> 29) & 1) - 1) | ~(DV_II_50_0_bit | DV_II_53_0_bit));
  748|  1.29M|    if (mask & (DV_II_52_0_bit | DV_II_54_0_bit))
  ------------------
  |  Branch (748:9): [True: 47.2k, False: 1.24M]
  ------------------
  749|  47.2k|        mask &= ((((W[56] ^ (W[59] >> 25)) & (1 << 4)) - (1 << 4)) |
  750|  47.2k|                 ~(DV_II_52_0_bit | DV_II_54_0_bit));
  751|  1.29M|    if (mask & (DV_II_51_0_bit | DV_II_52_0_bit))
  ------------------
  |  Branch (751:9): [True: 34.5k, False: 1.25M]
  ------------------
  752|  34.5k|        mask &= ((0 - (((W[56] ^ W[59]) >> 29) & 1)) | ~(DV_II_51_0_bit | DV_II_52_0_bit));
  753|  1.29M|    if (mask & (DV_II_49_0_bit | DV_II_52_0_bit))
  ------------------
  |  Branch (753:9): [True: 7.47k, False: 1.28M]
  ------------------
  754|  7.47k|        mask &= (((((W[56] ^ W[57]) >> 29) & 1) - 1) | ~(DV_II_49_0_bit | DV_II_52_0_bit));
  755|  1.29M|    if (mask & (DV_II_51_0_bit | DV_II_53_0_bit))
  ------------------
  |  Branch (755:9): [True: 3.74k, False: 1.28M]
  ------------------
  756|  3.74k|        mask &= ((((W[55] ^ (W[58] >> 25)) & (1 << 4)) - (1 << 4)) |
  757|  3.74k|                 ~(DV_II_51_0_bit | DV_II_53_0_bit));
  758|  1.29M|    if (mask & (DV_II_50_0_bit | DV_II_52_0_bit))
  ------------------
  |  Branch (758:9): [True: 30.1k, False: 1.26M]
  ------------------
  759|  30.1k|        mask &= ((((W[54] ^ (W[57] >> 25)) & (1 << 4)) - (1 << 4)) |
  760|  30.1k|                 ~(DV_II_50_0_bit | DV_II_52_0_bit));
  761|  1.29M|    if (mask & (DV_II_49_0_bit | DV_II_51_0_bit))
  ------------------
  |  Branch (761:9): [True: 3.16k, False: 1.28M]
  ------------------
  762|  3.16k|        mask &= ((((W[53] ^ (W[56] >> 25)) & (1 << 4)) - (1 << 4)) |
  763|  3.16k|                 ~(DV_II_49_0_bit | DV_II_51_0_bit));
  764|  1.29M|    mask &=
  765|  1.29M|      ((((W[51] ^ (W[50] >> 5)) & (1 << 1)) - (1 << 1)) | ~(DV_I_50_2_bit | DV_II_46_2_bit));
  766|  1.29M|    mask &= ((((W[48] ^ W[50]) & (1 << 6)) - (1 << 6)) | ~(DV_I_50_2_bit | DV_II_46_2_bit));
  767|  1.29M|    if (mask & (DV_I_51_0_bit | DV_I_52_0_bit))
  ------------------
  |  Branch (767:9): [True: 9.19k, False: 1.28M]
  ------------------
  768|  9.19k|        mask &= ((0 - (((W[48] ^ W[55]) >> 29) & 1)) | ~(DV_I_51_0_bit | DV_I_52_0_bit));
  769|  1.29M|    mask &= ((((W[47] ^ W[49]) & (1 << 6)) - (1 << 6)) | ~(DV_I_49_2_bit | DV_I_51_2_bit));
  770|  1.29M|    mask &=
  771|  1.29M|      ((((W[48] ^ (W[47] >> 5)) & (1 << 1)) - (1 << 1)) | ~(DV_I_47_2_bit | DV_II_51_2_bit));
  772|  1.29M|    mask &= ((((W[46] ^ W[48]) & (1 << 6)) - (1 << 6)) | ~(DV_I_48_2_bit | DV_I_50_2_bit));
  773|  1.29M|    mask &=
  774|  1.29M|      ((((W[47] ^ (W[46] >> 5)) & (1 << 1)) - (1 << 1)) | ~(DV_I_46_2_bit | DV_II_50_2_bit));
  775|  1.29M|    mask &= ((0 - ((W[44] ^ (W[45] >> 5)) & (1 << 1))) | ~(DV_I_51_2_bit | DV_II_49_2_bit));
  776|  1.29M|    mask &= ((((W[43] ^ W[45]) & (1 << 6)) - (1 << 6)) | ~(DV_I_47_2_bit | DV_I_49_2_bit));
  777|  1.29M|    mask &= (((((W[42] ^ W[44]) >> 6) & 1) - 1) | ~(DV_I_46_2_bit | DV_I_48_2_bit));
  778|  1.29M|    mask &=
  779|  1.29M|      ((((W[43] ^ (W[42] >> 5)) & (1 << 1)) - (1 << 1)) | ~(DV_II_46_2_bit | DV_II_51_2_bit));
  780|  1.29M|    mask &=
  781|  1.29M|      ((((W[42] ^ (W[41] >> 5)) & (1 << 1)) - (1 << 1)) | ~(DV_I_51_2_bit | DV_II_50_2_bit));
  782|  1.29M|    mask &=
  783|  1.29M|      ((((W[41] ^ (W[40] >> 5)) & (1 << 1)) - (1 << 1)) | ~(DV_I_50_2_bit | DV_II_49_2_bit));
  784|  1.29M|    if (mask & (DV_I_52_0_bit | DV_II_51_0_bit))
  ------------------
  |  Branch (784:9): [True: 1.64k, False: 1.28M]
  ------------------
  785|  1.64k|        mask &= ((((W[39] ^ (W[43] >> 25)) & (1 << 4)) - (1 << 4)) |
  786|  1.64k|                 ~(DV_I_52_0_bit | DV_II_51_0_bit));
  787|  1.29M|    if (mask & (DV_I_51_0_bit | DV_II_50_0_bit))
  ------------------
  |  Branch (787:9): [True: 21.5k, False: 1.26M]
  ------------------
  788|  21.5k|        mask &= ((((W[38] ^ (W[42] >> 25)) & (1 << 4)) - (1 << 4)) |
  789|  21.5k|                 ~(DV_I_51_0_bit | DV_II_50_0_bit));
  790|  1.29M|    if (mask & (DV_I_48_2_bit | DV_I_51_2_bit))
  ------------------
  |  Branch (790:9): [True: 161k, False: 1.13M]
  ------------------
  791|   161k|        mask &= ((0 - ((W[37] ^ (W[38] >> 5)) & (1 << 1))) | ~(DV_I_48_2_bit | DV_I_51_2_bit));
  792|  1.29M|    if (mask & (DV_I_50_0_bit | DV_II_49_0_bit))
  ------------------
  |  Branch (792:9): [True: 3.09k, False: 1.28M]
  ------------------
  793|  3.09k|        mask &= ((((W[37] ^ (W[41] >> 25)) & (1 << 4)) - (1 << 4)) |
  794|  3.09k|                 ~(DV_I_50_0_bit | DV_II_49_0_bit));
  795|  1.29M|    if (mask & (DV_II_52_0_bit | DV_II_54_0_bit))
  ------------------
  |  Branch (795:9): [True: 5.08k, False: 1.28M]
  ------------------
  796|  5.08k|        mask &= ((0 - ((W[36] ^ W[38]) & (1 << 4))) | ~(DV_II_52_0_bit | DV_II_54_0_bit));
  797|  1.29M|    mask &= ((0 - ((W[35] ^ (W[36] >> 5)) & (1 << 1))) | ~(DV_I_46_2_bit | DV_I_49_2_bit));
  798|  1.29M|    if (mask & (DV_I_51_0_bit | DV_II_47_0_bit))
  ------------------
  |  Branch (798:9): [True: 356, False: 1.29M]
  ------------------
  799|    356|        mask &= ((((W[35] ^ (W[39] >> 25)) & (1 << 3)) - (1 << 3)) |
  800|    356|                 ~(DV_I_51_0_bit | DV_II_47_0_bit));
  801|  1.29M|    if (mask) {
  ------------------
  |  Branch (801:9): [True: 615k, False: 676k]
  ------------------
  802|   615k|        if (mask & DV_I_43_0_bit)
  ------------------
  |  Branch (802:13): [True: 4.27k, False: 611k]
  ------------------
  803|  4.27k|            if (!((W[61] ^ (W[62] >> 5)) & (1 << 1)) ||
  ------------------
  |  Branch (803:17): [True: 1.78k, False: 2.48k]
  ------------------
  804|  2.48k|                !(!((W[59] ^ (W[63] >> 25)) & (1 << 5))) ||
  ------------------
  |  Branch (804:17): [True: 1.13k, False: 1.35k]
  ------------------
  805|  1.35k|                !((W[58] ^ (W[63] >> 30)) & (1 << 0)))
  ------------------
  |  Branch (805:17): [True: 448, False: 902]
  ------------------
  806|  3.37k|                mask &= ~DV_I_43_0_bit;
  807|   615k|        if (mask & DV_I_44_0_bit)
  ------------------
  |  Branch (807:13): [True: 18.3k, False: 596k]
  ------------------
  808|  18.3k|            if (!((W[62] ^ (W[63] >> 5)) & (1 << 1)) ||
  ------------------
  |  Branch (808:17): [True: 17.0k, False: 1.34k]
  ------------------
  809|  1.34k|                !(!((W[60] ^ (W[64] >> 25)) & (1 << 5))) ||
  ------------------
  |  Branch (809:17): [True: 655, False: 687]
  ------------------
  810|    687|                !((W[59] ^ (W[64] >> 30)) & (1 << 0)))
  ------------------
  |  Branch (810:17): [True: 384, False: 303]
  ------------------
  811|  18.0k|                mask &= ~DV_I_44_0_bit;
  812|   615k|        if (mask & DV_I_46_2_bit)
  ------------------
  |  Branch (812:13): [True: 17.1k, False: 598k]
  ------------------
  813|  17.1k|            mask &= ((~((W[40] ^ W[42]) >> 2)) | ~DV_I_46_2_bit);
  814|   615k|        if (mask & DV_I_47_2_bit)
  ------------------
  |  Branch (814:13): [True: 40.5k, False: 574k]
  ------------------
  815|  40.5k|            if (!((W[62] ^ (W[63] >> 5)) & (1 << 2)) || !(!((W[41] ^ W[43]) & (1 << 6))))
  ------------------
  |  Branch (815:17): [True: 28.0k, False: 12.5k]
  |  Branch (815:57): [True: 5.19k, False: 7.32k]
  ------------------
  816|  33.2k|                mask &= ~DV_I_47_2_bit;
  817|   615k|        if (mask & DV_I_48_2_bit)
  ------------------
  |  Branch (817:13): [True: 77.6k, False: 537k]
  ------------------
  818|  77.6k|            if (!((W[63] ^ (W[64] >> 5)) & (1 << 2)) ||
  ------------------
  |  Branch (818:17): [True: 26.2k, False: 51.4k]
  ------------------
  819|  51.4k|                !(!((W[48] ^ (W[49] << 5)) & (1 << 6))))
  ------------------
  |  Branch (819:17): [True: 35.5k, False: 15.8k]
  ------------------
  820|  61.8k|                mask &= ~DV_I_48_2_bit;
  821|   615k|        if (mask & DV_I_49_2_bit)
  ------------------
  |  Branch (821:13): [True: 79.4k, False: 535k]
  ------------------
  822|  79.4k|            if (!(!((W[49] ^ (W[50] << 5)) & (1 << 6))) || !((W[42] ^ W[50]) & (1 << 1)) ||
  ------------------
  |  Branch (822:17): [True: 48.0k, False: 31.4k]
  |  Branch (822:60): [True: 11.6k, False: 19.8k]
  ------------------
  823|  19.8k|                !(!((W[39] ^ (W[40] << 5)) & (1 << 6))) || !((W[38] ^ W[40]) & (1 << 1)))
  ------------------
  |  Branch (823:17): [True: 11.7k, False: 8.03k]
  |  Branch (823:60): [True: 5.19k, False: 2.84k]
  ------------------
  824|  76.6k|                mask &= ~DV_I_49_2_bit;
  825|   615k|        if (mask & DV_I_50_0_bit)
  ------------------
  |  Branch (825:13): [True: 1.97k, False: 613k]
  ------------------
  826|  1.97k|            mask &= ((((W[36] ^ W[37]) << 7)) | ~DV_I_50_0_bit);
  827|   615k|        if (mask & DV_I_50_2_bit)
  ------------------
  |  Branch (827:13): [True: 6.36k, False: 608k]
  ------------------
  828|  6.36k|            mask &= ((((W[43] ^ W[51]) << 11)) | ~DV_I_50_2_bit);
  829|   615k|        if (mask & DV_I_51_0_bit)
  ------------------
  |  Branch (829:13): [True: 235, False: 615k]
  ------------------
  830|    235|            mask &= ((((W[37] ^ W[38]) << 9)) | ~DV_I_51_0_bit);
  831|   615k|        if (mask & DV_I_51_2_bit)
  ------------------
  |  Branch (831:13): [True: 36.5k, False: 578k]
  ------------------
  832|  36.5k|            if (!(!((W[51] ^ (W[52] << 5)) & (1 << 6))) || !(!((W[49] ^ W[51]) & (1 << 6))) ||
  ------------------
  |  Branch (832:17): [True: 11.2k, False: 25.2k]
  |  Branch (832:60): [True: 21.2k, False: 4.02k]
  ------------------
  833|  4.02k|                !(!((W[37] ^ (W[37] >> 5)) & (1 << 1))) ||
  ------------------
  |  Branch (833:17): [True: 2.71k, False: 1.31k]
  ------------------
  834|  1.31k|                !(!((W[35] ^ (W[39] >> 25)) & (1 << 5))))
  ------------------
  |  Branch (834:17): [True: 663, False: 652]
  ------------------
  835|  35.8k|                mask &= ~DV_I_51_2_bit;
  836|   615k|        if (mask & DV_I_52_0_bit)
  ------------------
  |  Branch (836:13): [True: 531, False: 614k]
  ------------------
  837|    531|            mask &= ((((W[38] ^ W[39]) << 11)) | ~DV_I_52_0_bit);
  838|   615k|        if (mask & DV_II_46_2_bit)
  ------------------
  |  Branch (838:13): [True: 15.1k, False: 600k]
  ------------------
  839|  15.1k|            mask &= ((((W[47] ^ W[51]) << 17)) | ~DV_II_46_2_bit);
  840|   615k|        if (mask & DV_II_48_0_bit)
  ------------------
  |  Branch (840:13): [True: 663, False: 614k]
  ------------------
  841|    663|            if (!(!((W[36] ^ (W[40] >> 25)) & (1 << 3))) ||
  ------------------
  |  Branch (841:17): [True: 298, False: 365]
  ------------------
  842|    365|                !((W[35] ^ (W[40] << 2)) & (1 << 30)))
  ------------------
  |  Branch (842:17): [True: 118, False: 247]
  ------------------
  843|    416|                mask &= ~DV_II_48_0_bit;
  844|   615k|        if (mask & DV_II_49_0_bit)
  ------------------
  |  Branch (844:13): [True: 940, False: 614k]
  ------------------
  845|    940|            if (!(!((W[37] ^ (W[41] >> 25)) & (1 << 3))) ||
  ------------------
  |  Branch (845:17): [True: 347, False: 593]
  ------------------
  846|    593|                !((W[36] ^ (W[41] << 2)) & (1 << 30)))
  ------------------
  |  Branch (846:17): [True: 221, False: 372]
  ------------------
  847|    568|                mask &= ~DV_II_49_0_bit;
  848|   615k|        if (mask & DV_II_49_2_bit)
  ------------------
  |  Branch (848:13): [True: 160k, False: 454k]
  ------------------
  849|   160k|            if (!(!((W[53] ^ (W[54] << 5)) & (1 << 6))) || !(!((W[51] ^ W[53]) & (1 << 6))) ||
  ------------------
  |  Branch (849:17): [True: 85.8k, False: 74.8k]
  |  Branch (849:60): [True: 42.9k, False: 31.8k]
  ------------------
  850|  31.8k|                !((W[50] ^ W[54]) & (1 << 1)) || !(!((W[45] ^ (W[46] << 5)) & (1 << 6))) ||
  ------------------
  |  Branch (850:17): [True: 15.1k, False: 16.6k]
  |  Branch (850:50): [True: 6.70k, False: 9.97k]
  ------------------
  851|  9.97k|                !(!((W[37] ^ (W[41] >> 25)) & (1 << 5))) ||
  ------------------
  |  Branch (851:17): [True: 5.72k, False: 4.24k]
  ------------------
  852|  4.24k|                !((W[36] ^ (W[41] >> 30)) & (1 << 0)))
  ------------------
  |  Branch (852:17): [True: 1.83k, False: 2.41k]
  ------------------
  853|   158k|                mask &= ~DV_II_49_2_bit;
  854|   615k|        if (mask & DV_II_50_0_bit)
  ------------------
  |  Branch (854:13): [True: 20.8k, False: 594k]
  ------------------
  855|  20.8k|            if (!((W[55] ^ W[58]) & (1 << 29)) || !(!((W[38] ^ (W[42] >> 25)) & (1 << 3))) ||
  ------------------
  |  Branch (855:17): [True: 19.9k, False: 862]
  |  Branch (855:51): [True: 153, False: 709]
  ------------------
  856|    709|                !((W[37] ^ (W[42] << 2)) & (1 << 30)))
  ------------------
  |  Branch (856:17): [True: 431, False: 278]
  ------------------
  857|  20.5k|                mask &= ~DV_II_50_0_bit;
  858|   615k|        if (mask & DV_II_50_2_bit)
  ------------------
  |  Branch (858:13): [True: 139k, False: 476k]
  ------------------
  859|   139k|            if (!(!((W[54] ^ (W[55] << 5)) & (1 << 6))) || !(!((W[52] ^ W[54]) & (1 << 6))) ||
  ------------------
  |  Branch (859:17): [True: 72.4k, False: 66.7k]
  |  Branch (859:60): [True: 41.9k, False: 24.8k]
  ------------------
  860|  24.8k|                !((W[51] ^ W[55]) & (1 << 1)) || !((W[45] ^ W[47]) & (1 << 1)) ||
  ------------------
  |  Branch (860:17): [True: 13.5k, False: 11.2k]
  |  Branch (860:50): [True: 5.66k, False: 5.63k]
  ------------------
  861|  5.63k|                !(!((W[38] ^ (W[42] >> 25)) & (1 << 5))) ||
  ------------------
  |  Branch (861:17): [True: 2.31k, False: 3.31k]
  ------------------
  862|  3.31k|                !((W[37] ^ (W[42] >> 30)) & (1 << 0)))
  ------------------
  |  Branch (862:17): [True: 1.62k, False: 1.68k]
  ------------------
  863|   137k|                mask &= ~DV_II_50_2_bit;
  864|   615k|        if (mask & DV_II_51_0_bit)
  ------------------
  |  Branch (864:13): [True: 709, False: 614k]
  ------------------
  865|    709|            if (!(!((W[39] ^ (W[43] >> 25)) & (1 << 3))) ||
  ------------------
  |  Branch (865:17): [True: 293, False: 416]
  ------------------
  866|    416|                !((W[38] ^ (W[43] << 2)) & (1 << 30)))
  ------------------
  |  Branch (866:17): [True: 259, False: 157]
  ------------------
  867|    552|                mask &= ~DV_II_51_0_bit;
  868|   615k|        if (mask & DV_II_51_2_bit)
  ------------------
  |  Branch (868:13): [True: 168k, False: 446k]
  ------------------
  869|   168k|            if (!(!((W[55] ^ (W[56] << 5)) & (1 << 6))) || !(!((W[53] ^ W[55]) & (1 << 6))) ||
  ------------------
  |  Branch (869:17): [True: 81.2k, False: 87.3k]
  |  Branch (869:60): [True: 29.0k, False: 58.3k]
  ------------------
  870|  58.3k|                !((W[52] ^ W[56]) & (1 << 1)) || !((W[46] ^ W[48]) & (1 << 1)) ||
  ------------------
  |  Branch (870:17): [True: 30.1k, False: 28.1k]
  |  Branch (870:50): [True: 5.15k, False: 23.0k]
  ------------------
  871|  23.0k|                !(!((W[39] ^ (W[43] >> 25)) & (1 << 5))) ||
  ------------------
  |  Branch (871:17): [True: 5.48k, False: 17.5k]
  ------------------
  872|  17.5k|                !((W[38] ^ (W[43] >> 30)) & (1 << 0)))
  ------------------
  |  Branch (872:17): [True: 1.78k, False: 15.7k]
  ------------------
  873|   152k|                mask &= ~DV_II_51_2_bit;
  874|   615k|        if (mask & DV_II_52_0_bit)
  ------------------
  |  Branch (874:13): [True: 2.43k, False: 612k]
  ------------------
  875|  2.43k|            if (!(!((W[59] ^ W[60]) & (1 << 29))) ||
  ------------------
  |  Branch (875:17): [True: 1.13k, False: 1.29k]
  ------------------
  876|  1.29k|                !(!((W[40] ^ (W[44] >> 25)) & (1 << 3))) ||
  ------------------
  |  Branch (876:17): [True: 893, False: 406]
  ------------------
  877|    406|                !(!((W[40] ^ (W[44] >> 25)) & (1 << 4))) ||
  ------------------
  |  Branch (877:17): [True: 115, False: 291]
  ------------------
  878|    291|                !((W[39] ^ (W[44] << 2)) & (1 << 30)))
  ------------------
  |  Branch (878:17): [True: 96, False: 195]
  ------------------
  879|  2.24k|                mask &= ~DV_II_52_0_bit;
  880|   615k|        if (mask & DV_II_53_0_bit)
  ------------------
  |  Branch (880:13): [True: 1.18k, False: 614k]
  ------------------
  881|  1.18k|            if (!((W[58] ^ W[61]) & (1 << 29)) || !(!((W[57] ^ (W[61] >> 25)) & (1 << 4))) ||
  ------------------
  |  Branch (881:17): [True: 476, False: 710]
  |  Branch (881:51): [True: 233, False: 477]
  ------------------
  882|    477|                !(!((W[41] ^ (W[45] >> 25)) & (1 << 3))) ||
  ------------------
  |  Branch (882:17): [True: 276, False: 201]
  ------------------
  883|    201|                !(!((W[41] ^ (W[45] >> 25)) & (1 << 4))))
  ------------------
  |  Branch (883:17): [True: 83, False: 118]
  ------------------
  884|  1.06k|                mask &= ~DV_II_53_0_bit;
  885|   615k|        if (mask & DV_II_54_0_bit)
  ------------------
  |  Branch (885:13): [True: 1.21k, False: 614k]
  ------------------
  886|  1.21k|            if (!(!((W[58] ^ (W[62] >> 25)) & (1 << 4))) ||
  ------------------
  |  Branch (886:17): [True: 183, False: 1.03k]
  ------------------
  887|  1.03k|                !(!((W[42] ^ (W[46] >> 25)) & (1 << 3))) ||
  ------------------
  |  Branch (887:17): [True: 617, False: 415]
  ------------------
  888|    415|                !(!((W[42] ^ (W[46] >> 25)) & (1 << 4))))
  ------------------
  |  Branch (888:17): [True: 105, False: 310]
  ------------------
  889|    905|                mask &= ~DV_II_54_0_bit;
  890|   615k|        if (mask & DV_II_55_0_bit)
  ------------------
  |  Branch (890:13): [True: 1.91k, False: 613k]
  ------------------
  891|  1.91k|            if (!(!((W[59] ^ (W[63] >> 25)) & (1 << 4))) ||
  ------------------
  |  Branch (891:17): [True: 681, False: 1.23k]
  ------------------
  892|  1.23k|                !(!((W[57] ^ (W[59] >> 25)) & (1 << 4))) ||
  ------------------
  |  Branch (892:17): [True: 422, False: 811]
  ------------------
  893|    811|                !(!((W[43] ^ (W[47] >> 25)) & (1 << 3))) ||
  ------------------
  |  Branch (893:17): [True: 440, False: 371]
  ------------------
  894|    371|                !(!((W[43] ^ (W[47] >> 25)) & (1 << 4))))
  ------------------
  |  Branch (894:17): [True: 246, False: 125]
  ------------------
  895|  1.78k|                mask &= ~DV_II_55_0_bit;
  896|   615k|        if (mask & DV_II_56_0_bit)
  ------------------
  |  Branch (896:13): [True: 1.10k, False: 614k]
  ------------------
  897|  1.10k|            if (!(!((W[60] ^ (W[64] >> 25)) & (1 << 4))) ||
  ------------------
  |  Branch (897:17): [True: 324, False: 778]
  ------------------
  898|    778|                !(!((W[44] ^ (W[48] >> 25)) & (1 << 3))) ||
  ------------------
  |  Branch (898:17): [True: 233, False: 545]
  ------------------
  899|    545|                !(!((W[44] ^ (W[48] >> 25)) & (1 << 4))))
  ------------------
  |  Branch (899:17): [True: 272, False: 273]
  ------------------
  900|    829|                mask &= ~DV_II_56_0_bit;
  901|   615k|    }
  902|       |
  903|  1.29M|    dvmask[0] = mask;
  904|  1.29M|}

_Z14signature_initRK13pgp_key_pkt_tRKN3pgp3pkt9SignatureE:
   94|  23.7k|{
   95|  23.7k|    auto hash = rnp::Hash::create(sig.halg);
   96|       |
   97|  23.7k|#if defined(ENABLE_CRYPTO_REFRESH)
   98|  23.7k|    if (key.version == PGP_V6) {
  ------------------
  |  Branch (98:9): [True: 127, False: 23.6k]
  ------------------
   99|    127|        hash->add(sig.salt);
  100|    127|    }
  101|  23.7k|#endif
  102|       |
  103|  23.7k|    if (key.material->alg() == PGP_PKA_SM2) {
  ------------------
  |  Branch (103:9): [True: 4.41k, False: 19.3k]
  ------------------
  104|  4.41k|        auto &sm2 = dynamic_cast<pgp::SM2KeyMaterial &>(*key.material);
  105|  4.41k|        sm2.compute_za(*hash);
  106|  4.41k|    }
  107|  23.7k|    return hash;
  108|  23.7k|}
_Z18signature_validateRKN3pgp3pkt9SignatureERKNS_11KeyMaterialERN3rnp4HashERKNS7_15SecurityContextEPK17pgp_literal_hdr_t:
  156|  23.6k|{
  157|  23.6k|    rnp::SigValidity res;
  158|  23.6k|    if (sig.palg != key.alg()) {
  ------------------
  |  Branch (158:9): [True: 565, False: 23.1k]
  ------------------
  159|    565|        RNP_LOG(
  ------------------
  |  |   84|    565|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    565|    do {                                                                                 \
  |  |  |  |   77|    565|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 565, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    565|            break;                                                                       \
  |  |  |  |   79|    565|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  160|    565|          "Signature and key do not agree on algorithm type: %d vs %d", sig.palg, key.alg());
  161|    565|        res.add_error(RNP_ERROR_SIG_PUB_ALG_MISMATCH);
  162|    565|    }
  163|       |
  164|       |    /* Signature with an unknown critical subpacket must be treated as invalid */
  165|  23.6k|    if (sig.has_unknown_critical()) {
  ------------------
  |  Branch (165:9): [True: 1.35k, False: 22.3k]
  ------------------
  166|  1.35k|        RNP_LOG("Unknown critical subpacket, marking signature as invalid.");
  ------------------
  |  |   84|  1.35k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  1.35k|    do {                                                                                 \
  |  |  |  |   77|  1.35k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 1.35k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  1.35k|            break;                                                                       \
  |  |  |  |   79|  1.35k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  167|  1.35k|        res.add_error(RNP_ERROR_SIG_UNHANDLED_CRITICAL);
  168|  1.35k|    }
  169|       |
  170|       |    /* Check signature security */
  171|  23.6k|    auto action =
  172|  23.6k|      sig.is_document() ? rnp::SecurityAction::VerifyData : rnp::SecurityAction::VerifyKey;
  ------------------
  |  Branch (172:7): [True: 0, False: 23.6k]
  ------------------
  173|  23.6k|    if (ctx.profile.hash_level(sig.halg, sig.creation(), action) <
  ------------------
  |  Branch (173:9): [True: 4.24k, False: 19.4k]
  ------------------
  174|  23.6k|        rnp::SecurityLevel::Default) {
  175|  4.24k|        RNP_LOG("Insecure hash algorithm %d, marking signature as invalid.", sig.halg);
  ------------------
  |  |   84|  4.24k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  4.24k|    do {                                                                                 \
  |  |  |  |   77|  4.24k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 4.24k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  4.24k|            break;                                                                       \
  |  |  |  |   79|  4.24k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  176|  4.24k|        res.add_error(RNP_ERROR_SIG_WEAK_HASH);
  177|  4.24k|    }
  178|       |
  179|       |    /* check that hash matches minimum requirements */
  180|  23.6k|    if (!key.sig_hash_allowed(hash.alg())) {
  ------------------
  |  Branch (180:9): [True: 17, False: 23.6k]
  ------------------
  181|     17|        RNP_LOG("The signature's digest size is below the minimum digest size required for "
  ------------------
  |  |   84|     17|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     17|    do {                                                                                 \
  |  |  |  |   77|     17|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 17, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     17|            break;                                                                       \
  |  |  |  |   79|     17|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  182|     17|                "that key.");
  183|     17|        res.add_error(RNP_ERROR_SIG_HASH_ALG_MISMATCH);
  184|     17|    }
  185|       |
  186|       |    /* Finalize hash */
  187|  23.6k|    auto hval = signature_hash_finish(sig, hash, hdr);
  188|       |    /* compare lbits */
  189|  23.6k|    bool lbits_ok = !memcmp(hval.data(), sig.lbits.data(), sig.lbits.size());
  190|       |
  191|       |    /* validate signature */
  192|       |    /* Signature material parsing was checked during the signature parsing,
  193|       |     * but the signature could also be constructed in-process */
  194|  23.6k|    auto material = sig.parse_material();
  195|  23.6k|    if (!material) {
  ------------------
  |  Branch (195:9): [True: 0, False: 23.6k]
  ------------------
  196|      0|        RNP_LOG("failed to parse signature material.");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  197|      0|        res.add_error(RNP_ERROR_BAD_FORMAT);
  198|      0|        return res;
  199|      0|    }
  200|  23.6k|    auto ret = key.verify(ctx, *material, hval);
  201|       |    /* RFC 9580, 5.2.4: v6 signatures with wrong left 16 bits MUST be rejected. For older
  202|       |     * versions behaviour is not defined, and some real-world keys have broken lbits
  203|       |     * (see #2191), so do not fail a cryptographically valid signature because of them. */
  204|  23.6k|    bool lbits_strict = false;
  205|  23.6k|#if defined(ENABLE_CRYPTO_REFRESH)
  206|  23.6k|    lbits_strict = sig.version == PGP_V6;
  207|  23.6k|#endif
  208|  23.6k|    if (!lbits_ok) {
  ------------------
  |  Branch (208:9): [True: 17.0k, False: 6.64k]
  ------------------
  209|  17.0k|        if (ret || lbits_strict) {
  ------------------
  |  Branch (209:13): [True: 16.9k, False: 50]
  |  Branch (209:20): [True: 0, False: 50]
  ------------------
  210|  16.9k|            RNP_LOG("wrong lbits");
  ------------------
  |  |   84|  16.9k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  16.9k|    do {                                                                                 \
  |  |  |  |   77|  16.9k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 16.9k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  16.9k|            break;                                                                       \
  |  |  |  |   79|  16.9k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  211|  16.9k|            res.add_error(RNP_ERROR_SIG_LBITS_MISMATCH);
  212|  16.9k|        } else {
  213|     50|            RNP_LOG("Warning: wrong lbits in v%d signature, ignoring.", (int) sig.version);
  ------------------
  |  |   84|     50|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     50|    do {                                                                                 \
  |  |  |  |   77|     50|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 50, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     50|            break;                                                                       \
  |  |  |  |   79|     50|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  214|     50|        }
  215|  17.0k|    }
  216|  23.6k|    if (ret) {
  ------------------
  |  Branch (216:9): [True: 21.6k, False: 2.01k]
  ------------------
  217|  21.6k|        res.add_error(ret);
  218|  21.6k|    }
  219|  23.6k|    return res;
  220|  23.6k|}
signatures.cpp:_ZL21signature_hash_finishRKN3pgp3pkt9SignatureERN3rnp4HashEPK17pgp_literal_hdr_t:
   49|  23.6k|{
   50|  23.6k|    hash.add(sig.hashed_data);
   51|  23.6k|    switch (sig.version) {
   52|  18.9k|    case PGP_V4:
  ------------------
  |  Branch (52:5): [True: 18.9k, False: 4.71k]
  ------------------
   53|  18.9k|#if defined(ENABLE_CRYPTO_REFRESH)
   54|  19.0k|    case PGP_V6:
  ------------------
  |  Branch (54:5): [True: 115, False: 23.5k]
  ------------------
   55|  19.0k|#endif
   56|  19.0k|    {
   57|  19.0k|        uint8_t trailer[6] = {0x00, 0xff, 0x00, 0x00, 0x00, 0x00};
   58|  19.0k|        trailer[0] = sig.version;
   59|  19.0k|        write_uint32(&trailer[2], sig.hashed_data.size());
   60|  19.0k|        hash.add(trailer, 6);
   61|  19.0k|        break;
   62|  18.9k|    }
   63|     58|    case PGP_V5: {
  ------------------
  |  Branch (63:5): [True: 58, False: 23.6k]
  ------------------
   64|     58|        uint64_t hash_len = sig.hashed_data.size();
   65|     58|        if (sig.is_document()) {
  ------------------
  |  Branch (65:13): [True: 0, False: 58]
  ------------------
   66|      0|            uint8_t doc_trailer[6] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
   67|       |            /* This data is not added to the hash_len as per spec */
   68|      0|            if (hdr) {
  ------------------
  |  Branch (68:17): [True: 0, False: 0]
  ------------------
   69|      0|                doc_trailer[0] = hdr->format;
   70|      0|                doc_trailer[1] = hdr->fname_len;
   71|      0|                write_uint32(&doc_trailer[2], hdr->timestamp);
   72|      0|                hash.add(doc_trailer, 2);
   73|      0|                hash.add(hdr->fname, hdr->fname_len);
   74|      0|                hash.add(&doc_trailer[2], 4);
   75|      0|            } else {
   76|      0|                hash.add(doc_trailer, 6);
   77|      0|            }
   78|      0|        }
   79|     58|        uint8_t trailer[10] = {0x05, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
   80|     58|        write_uint64(&trailer[2], hash_len);
   81|     58|        hash.add(trailer, 10);
   82|     58|        break;
   83|  18.9k|    }
   84|  4.54k|    default:
  ------------------
  |  Branch (84:5): [True: 4.54k, False: 19.1k]
  ------------------
   85|  4.54k|        break;
   86|  23.6k|    }
   87|  23.6k|    rnp::secure_bytes res(hash.size());
   88|  23.6k|    hash.finish(res.data());
   89|  23.6k|    return res;
   90|  23.6k|}

_ZN3pgp3sm210compute_zaERKNS_2ec3KeyERN3rnp4HashEPKc:
   79|  4.41k|{
   80|  4.41k|    rnp::botan::Pubkey sm2_key;
   81|  4.41k|    if (!load_public_key(sm2_key, key)) {
  ------------------
  |  Branch (81:9): [True: 21, False: 4.39k]
  ------------------
   82|     21|        RNP_LOG("Failed to load SM2 key");
  ------------------
  |  |   84|     21|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     21|    do {                                                                                 \
  |  |  |  |   77|     21|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 21, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     21|            break;                                                                       \
  |  |  |  |   79|     21|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   83|     21|        return RNP_ERROR_GENERIC;
   84|     21|    }
   85|       |
   86|  4.39k|    if (!ident_field) {
  ------------------
  |  Branch (86:9): [True: 4.39k, False: 0]
  ------------------
   87|  4.39k|        ident_field = "1234567812345678";
   88|  4.39k|    }
   89|       |
   90|  4.39k|    auto                 hash_algo = rnp::Hash_Botan::name_backend(hash.alg());
   91|  4.39k|    size_t               digest_len = hash.size();
   92|  4.39k|    std::vector<uint8_t> digest_buf(digest_len, 0);
   93|       |
   94|  4.39k|    int rc = botan_pubkey_sm2_compute_za(
   95|  4.39k|      digest_buf.data(), &digest_len, ident_field, hash_algo, sm2_key.get());
   96|  4.39k|    if (rc) {
  ------------------
  |  Branch (96:9): [True: 0, False: 4.39k]
  ------------------
   97|      0|        RNP_LOG("compute_za failed %d", rc);
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   98|      0|        return RNP_ERROR_GENERIC;
   99|      0|    }
  100|  4.39k|    hash.add(digest_buf);
  101|  4.39k|    return RNP_SUCCESS;
  102|  4.39k|}
_ZN3pgp3sm26verifyERKNS_2ec9SignatureE14pgp_hash_alg_tRKNSt3__16vectorIhN3rnp16secure_allocatorIhEEEERKNS1_3KeyE:
  177|  4.38k|{
  178|  4.38k|    if (botan_ffi_supports_api(20180713) != 0) {
  ------------------
  |  Branch (178:9): [True: 0, False: 4.38k]
  ------------------
  179|      0|        RNP_LOG("SM2 signatures requires Botan 2.8 or higher");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  180|      0|        return RNP_ERROR_NOT_SUPPORTED;
  181|      0|    }
  182|       |
  183|  4.38k|    if (hash.size() != rnp::Hash::size(hash_alg)) {
  ------------------
  |  Branch (183:9): [True: 0, False: 4.38k]
  ------------------
  184|      0|        return RNP_ERROR_BAD_PARAMETERS;
  185|      0|    }
  186|       |
  187|  4.38k|    auto curve = ec::Curve::get(key.curve);
  188|  4.38k|    if (!curve) {
  ------------------
  |  Branch (188:9): [True: 0, False: 4.38k]
  ------------------
  189|      0|        return RNP_ERROR_BAD_PARAMETERS;
  190|      0|    }
  191|       |
  192|  4.38k|    size_t r_blen = sig.r.size();
  193|  4.38k|    size_t s_blen = sig.s.size();
  194|  4.38k|    size_t sign_half_len = curve->bytes();
  195|       |
  196|  4.38k|    assert(sign_half_len <= MAX_CURVE_BYTELEN);
  197|  4.38k|    if (!r_blen || (r_blen > sign_half_len) || !s_blen || (s_blen > sign_half_len)) {
  ------------------
  |  Branch (197:9): [True: 0, False: 4.38k]
  |  Branch (197:20): [True: 0, False: 4.38k]
  |  Branch (197:48): [True: 0, False: 4.38k]
  |  Branch (197:59): [True: 0, False: 4.38k]
  ------------------
  198|      0|        return RNP_ERROR_SIGNATURE_INVALID;
  199|      0|    }
  200|       |
  201|  4.38k|    rnp::botan::Pubkey pub;
  202|  4.38k|    if (!load_public_key(pub, key)) {
  ------------------
  |  Branch (202:9): [True: 0, False: 4.38k]
  ------------------
  203|      0|        RNP_LOG("Failed to load public key");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  204|      0|        return RNP_ERROR_SIGNATURE_INVALID;
  205|      0|    }
  206|       |
  207|  4.38k|    rnp::botan::op::Verify verifier;
  208|  4.38k|    if (botan_pk_op_verify_create(&verifier.get(), pub.get(), ",Raw", 0) ||
  ------------------
  |  Branch (208:9): [True: 0, False: 4.38k]
  ------------------
  209|  4.38k|        botan_pk_op_verify_update(verifier.get(), hash.data(), hash.size())) {
  ------------------
  |  Branch (209:9): [True: 0, False: 4.38k]
  ------------------
  210|      0|        return RNP_ERROR_SIGNATURE_INVALID;
  211|      0|    }
  212|       |
  213|  4.38k|    std::vector<uint8_t> sign_buf(2 * sign_half_len, 0);
  214|  4.38k|    sig.r.copy(sign_buf.data() + sign_half_len - r_blen);
  215|  4.38k|    sig.s.copy(sign_buf.data() + 2 * sign_half_len - s_blen);
  216|       |
  217|  4.38k|    if (botan_pk_op_verify_finish(verifier.get(), sign_buf.data(), sign_buf.size())) {
  ------------------
  |  Branch (217:9): [True: 3.96k, False: 422]
  ------------------
  218|  3.96k|        return RNP_ERROR_SIGNATURE_INVALID;
  219|  3.96k|    }
  220|    422|    return RNP_SUCCESS;
  221|  4.38k|}
sm2.cpp:_ZN3pgp3sm2L15load_public_keyERN3rnp5botan6PubkeyERKNS_2ec3KeyE:
   40|  8.79k|{
   41|  8.79k|    auto curve = ec::Curve::get(keydata.curve);
   42|  8.79k|    if (!curve) {
  ------------------
  |  Branch (42:9): [True: 0, False: 8.79k]
  ------------------
   43|      0|        return false;
   44|      0|    }
   45|       |
   46|  8.79k|    const size_t sign_half_len = curve->bytes();
   47|  8.79k|    size_t       sz = keydata.p.size();
   48|  8.79k|    if (!sz || (sz != (2 * sign_half_len + 1)) || (keydata.p[0] != 0x04)) {
  ------------------
  |  Branch (48:9): [True: 0, False: 8.79k]
  |  Branch (48:16): [True: 21, False: 8.77k]
  |  Branch (48:51): [True: 0, False: 8.77k]
  ------------------
   49|     21|        return false;
   50|     21|    }
   51|       |
   52|  8.77k|    rnp::bn px(keydata.p.data() + 1, sign_half_len);
   53|  8.77k|    rnp::bn py(keydata.p.data() + 1 + sign_half_len, sign_half_len);
   54|       |
   55|  8.77k|    if (!px || !py) {
  ------------------
  |  Branch (55:9): [True: 0, False: 8.77k]
  |  Branch (55:16): [True: 0, False: 8.77k]
  ------------------
   56|      0|        return false;
   57|      0|    }
   58|  8.77k|    return !botan_pubkey_load_sm2(&pubkey.get(), px.get(), py.get(), curve->botan_name);
   59|  8.77k|}

_ZN28pgp_sphincsplus_public_key_tC2ERKNSt3__16vectorIhNS0_9allocatorIhEEEE16pgp_pubkey_alg_t:
   66|  9.30k|    : key_encoded_(key_encoded), pk_alg_(alg), is_initialized_(true)
   67|  9.30k|{
   68|  9.30k|}
_ZN29pgp_sphincsplus_private_key_tC2EPKhm16pgp_pubkey_alg_t:
   73|      9|    : key_encoded_(key_encoded, key_encoded + key_encoded_len), pk_alg_(alg),
   74|      9|      is_initialized_(true)
   75|      9|{
   76|      9|}
_ZNK28pgp_sphincsplus_public_key_t6verifyEPK27pgp_sphincsplus_signature_tPKhm:
  124|     64|{
  125|     64|    if (!is_initialized_) {
  ------------------
  |  Branch (125:9): [True: 0, False: 64]
  ------------------
  126|      0|        throw rnp::rnp_exception(RNP_ERROR_BAD_STATE);
  127|      0|    }
  128|     64|    rnp::botan::Pubkey pub_key;
  129|     64|    if (botan_pubkey_load_slh_dsa(&pub_key.get(),
  ------------------
  |  Branch (129:9): [True: 0, False: 64]
  ------------------
  130|     64|                                  key_encoded_.data(),
  131|     64|                                  key_encoded_.size(),
  132|     64|                                  sphincsplus_mode_str(pk_alg_))) {
  133|      0|        RNP_LOG("Failed to load SLH-DSA public key");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  134|      0|        return RNP_ERROR_SIGNATURE_INVALID;
  135|      0|    }
  136|       |
  137|     64|    rnp::botan::op::Verify verifier;
  138|     64|    if (botan_pk_op_verify_create(&verifier.get(), pub_key.get(), "", 0) ||
  ------------------
  |  Branch (138:9): [True: 0, False: 64]
  ------------------
  139|     64|        botan_pk_op_verify_update(verifier.get(), msg, msg_len)) {
  ------------------
  |  Branch (139:9): [True: 0, False: 64]
  ------------------
  140|      0|        return RNP_ERROR_SIGNATURE_INVALID;
  141|      0|    }
  142|     64|    if (botan_pk_op_verify_finish(verifier.get(), sig->sig.data(), sig->sig.size())) {
  ------------------
  |  Branch (142:9): [True: 64, False: 0]
  ------------------
  143|     64|        return RNP_ERROR_SIGNATURE_INVALID;
  144|     64|    }
  145|      0|    return RNP_SUCCESS;
  146|     64|}
_Z24sphincsplus_privkey_size16pgp_pubkey_alg_t:
  237|     89|{
  238|     89|    return 2 * sphincsplus_pubkey_size(alg);
  239|     89|}
_Z23sphincsplus_pubkey_size16pgp_pubkey_alg_t:
  243|  9.42k|{
  244|  9.42k|    switch (alg) {
  245|  5.25k|    case PGP_PKA_SPHINCSPLUS_SHAKE_128f:
  ------------------
  |  Branch (245:5): [True: 5.25k, False: 4.17k]
  ------------------
  246|  5.25k|        return 32;
  247|  3.99k|    case PGP_PKA_SPHINCSPLUS_SHAKE_128s:
  ------------------
  |  Branch (247:5): [True: 3.99k, False: 5.42k]
  ------------------
  248|  3.99k|        return 32;
  249|    172|    case PGP_PKA_SPHINCSPLUS_SHAKE_256s:
  ------------------
  |  Branch (249:5): [True: 172, False: 9.25k]
  ------------------
  250|    172|        return 64;
  251|      0|    default:
  ------------------
  |  Branch (251:5): [True: 0, False: 9.42k]
  ------------------
  252|      0|        RNP_LOG("invalid SLH-DSA algorithm identifier");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  253|      0|        return 0;
  254|  9.42k|    }
  255|  9.42k|}
_Z26sphincsplus_signature_size16pgp_pubkey_alg_t:
  259|    391|{
  260|    391|    switch (alg) {
  261|    146|    case PGP_PKA_SPHINCSPLUS_SHAKE_128f:
  ------------------
  |  Branch (261:5): [True: 146, False: 245]
  ------------------
  262|    146|        return 17088;
  263|    150|    case PGP_PKA_SPHINCSPLUS_SHAKE_128s:
  ------------------
  |  Branch (263:5): [True: 150, False: 241]
  ------------------
  264|    150|        return 7856;
  265|     95|    case PGP_PKA_SPHINCSPLUS_SHAKE_256s:
  ------------------
  |  Branch (265:5): [True: 95, False: 296]
  ------------------
  266|     95|        return 29792;
  267|      0|    default:
  ------------------
  |  Branch (267:5): [True: 0, False: 391]
  ------------------
  268|      0|        RNP_LOG("invalid SLH-DSA algorithm identifier");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  269|      0|        return 0;
  270|    391|    }
  271|    391|}
sphincsplus.cpp:_ZN12_GLOBAL__N_120sphincsplus_mode_strE16pgp_pubkey_alg_t:
   40|     64|{
   41|     64|    switch (alg) {
   42|      0|    case PGP_PKA_SPHINCSPLUS_SHAKE_128f:
  ------------------
  |  Branch (42:5): [True: 0, False: 64]
  ------------------
   43|      0|        return "SLH-DSA-SHAKE-128f";
   44|     52|    case PGP_PKA_SPHINCSPLUS_SHAKE_128s:
  ------------------
  |  Branch (44:5): [True: 52, False: 12]
  ------------------
   45|     52|        return "SLH-DSA-SHAKE-128s";
   46|     12|    case PGP_PKA_SPHINCSPLUS_SHAKE_256s:
  ------------------
  |  Branch (46:5): [True: 12, False: 52]
  ------------------
   47|     12|        return "SLH-DSA-SHAKE-256s";
   48|      0|    default:
  ------------------
  |  Branch (48:5): [True: 0, False: 64]
  ------------------
   49|      0|        RNP_LOG("invalid algorithm ID given");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   50|      0|        throw rnp::rnp_exception(RNP_ERROR_BAD_PARAMETERS);
   51|     64|    }
   52|     64|}

_ZN29pgp_sphincsplus_private_key_t12secure_clearEv:
   68|  3.86k|    {
   69|  3.86k|        key_encoded_ = rnp::SecureBytes();
   70|  3.86k|        is_initialized_ = false;
   71|  3.86k|    }
_ZNK28pgp_sphincsplus_public_key_t11get_encodedEv:
  113|  4.37k|    {
  114|  4.37k|        return key_encoded_;
  115|  4.37k|    };
_ZN28pgp_sphincsplus_public_key_tC2Ev:
   91|  9.48k|    pgp_sphincsplus_public_key_t() = default;
_ZN29pgp_sphincsplus_private_key_tC2Ev:
   52|  9.48k|    pgp_sphincsplus_private_key_t() = default;

_Z20pgp_cipher_cfb_startP11pgp_crypt_t14pgp_symm_alg_tPKhS3_:
  144|  53.7k|{
  145|  53.7k|    memset(crypt, 0x0, sizeof(*crypt));
  146|       |
  147|  53.7k|    const char *cipher_name = pgp_sa_to_botan_string(alg);
  148|  53.7k|    if (!cipher_name) {
  ------------------
  |  Branch (148:9): [True: 0, False: 53.7k]
  ------------------
  149|      0|        return false;
  150|      0|    }
  151|       |
  152|  53.7k|    crypt->alg = alg;
  153|  53.7k|    crypt->blocksize = pgp_block_size(alg);
  154|       |
  155|       |    // This shouldn't happen if pgp_sa_to_botan_string returned a ptr
  156|  53.7k|    if (botan_block_cipher_init(&(crypt->cfb.obj), cipher_name) != 0) {
  ------------------
  |  Branch (156:9): [True: 0, False: 53.7k]
  ------------------
  157|      0|        RNP_LOG("Block cipher '%s' not available", cipher_name);
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  158|      0|        return false;
  159|      0|    }
  160|       |
  161|  53.7k|    const size_t keysize = pgp_key_size(alg);
  162|       |
  163|  53.7k|    if (botan_block_cipher_set_key(crypt->cfb.obj, key, keysize) != 0) {
  ------------------
  |  Branch (163:9): [True: 0, False: 53.7k]
  ------------------
  164|      0|        RNP_LOG("Failure setting key on block cipher object");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  165|      0|        return false;
  166|      0|    }
  167|       |
  168|  53.7k|    if (iv != NULL) {
  ------------------
  |  Branch (168:9): [True: 0, False: 53.7k]
  ------------------
  169|       |        // Otherwise left as all zeros via memset at start of function
  170|      0|        memcpy(crypt->cfb.iv, iv, crypt->blocksize);
  171|      0|    }
  172|       |
  173|  53.7k|    crypt->cfb.remaining = 0;
  174|       |
  175|  53.7k|    return true;
  176|  53.7k|}
_Z21pgp_cipher_cfb_finishP11pgp_crypt_t:
  180|  55.9k|{
  181|  55.9k|    if (!crypt) {
  ------------------
  |  Branch (181:9): [True: 0, False: 55.9k]
  ------------------
  182|      0|        return 0;
  183|      0|    }
  184|  55.9k|    if (crypt->cfb.obj) {
  ------------------
  |  Branch (184:9): [True: 53.7k, False: 2.14k]
  ------------------
  185|  53.7k|        botan_block_cipher_destroy(crypt->cfb.obj);
  186|       |        crypt->cfb.obj = NULL;
  187|  53.7k|    }
  188|  55.9k|    botan_scrub_mem((uint8_t *) crypt, sizeof(*crypt));
  189|  55.9k|    return 0;
  190|  55.9k|}
_Z24pgp_cipher_encrypt_blockP11pgp_crypt_tPhm:
  194|   763k|{
  195|   763k|    return botan_block_cipher_encrypt_blocks(crypt->cfb.obj, iv, iv, 1);
  196|   763k|}
_Z20pgp_cipher_aead_initP11pgp_crypt_t14pgp_symm_alg_t14pgp_aead_alg_tPKhb:
  211|  3.72k|{
  212|  3.72k|    char     cipher_name[32];
  213|  3.72k|    uint32_t flags;
  214|       |
  215|  3.72k|    memset(crypt, 0x0, sizeof(*crypt));
  216|       |
  217|  3.72k|    if (!pgp_aead_to_botan_string(ealg, aalg, cipher_name, sizeof(cipher_name))) {
  ------------------
  |  Branch (217:9): [True: 429, False: 3.29k]
  ------------------
  218|    429|        return false;
  219|    429|    }
  220|       |
  221|  3.29k|    crypt->alg = ealg;
  222|  3.29k|    crypt->blocksize = pgp_block_size(ealg);
  223|  3.29k|    crypt->aead.alg = aalg;
  224|  3.29k|    crypt->aead.decrypt = decrypt;
  225|  3.29k|    crypt->aead.taglen = PGP_AEAD_EAX_OCB_TAG_LEN; /* it's the same for EAX and OCB */
  ------------------
  |  |   80|  3.29k|#define PGP_AEAD_EAX_OCB_TAG_LEN 16
  ------------------
  226|       |
  227|  3.29k|    flags = decrypt ? BOTAN_CIPHER_INIT_FLAG_DECRYPT : BOTAN_CIPHER_INIT_FLAG_ENCRYPT;
  ------------------
  |  Branch (227:13): [True: 3.29k, False: 0]
  ------------------
  228|       |
  229|  3.29k|    if (botan_cipher_init(&(crypt->aead.obj), cipher_name, flags)) {
  ------------------
  |  Branch (229:9): [True: 2.30k, False: 984]
  ------------------
  230|  2.30k|        RNP_LOG("cipher %s is not available", cipher_name);
  ------------------
  |  |   84|  2.30k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  2.30k|    do {                                                                                 \
  |  |  |  |   77|  2.30k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 2.30k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  2.30k|            break;                                                                       \
  |  |  |  |   79|  2.30k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  231|  2.30k|        return false;
  232|  2.30k|    }
  233|       |
  234|    984|    if (botan_cipher_set_key(crypt->aead.obj, key, (size_t) pgp_key_size(ealg))) {
  ------------------
  |  Branch (234:9): [True: 0, False: 984]
  ------------------
  235|      0|        RNP_LOG("failed to set key");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  236|      0|        return false;
  237|      0|    }
  238|       |
  239|    984|    if (botan_cipher_get_update_granularity(crypt->aead.obj, &crypt->aead.granularity)) {
  ------------------
  |  Branch (239:9): [True: 0, False: 984]
  ------------------
  240|      0|        RNP_LOG("failed to get update granularity");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  241|      0|        return false;
  242|      0|    }
  243|       |
  244|    984|    return true;
  245|    984|}
_Z22pgp_cipher_aead_set_adP11pgp_crypt_tPKhm:
  249|  1.01k|{
  250|  1.01k|    return botan_cipher_set_associated_data(crypt->aead.obj, ad, len) == 0;
  251|  1.01k|}
_Z21pgp_cipher_aead_startP11pgp_crypt_tPKhm:
  255|  1.01k|{
  256|  1.01k|    return botan_cipher_start(crypt->aead.obj, nonce, len) == 0;
  257|  1.01k|}
_Z22pgp_cipher_aead_updateR11pgp_crypt_tPhPKhmRm:
  262|    408|{
  263|    408|    if (len % crypt.aead.granularity) {
  ------------------
  |  Branch (263:9): [True: 0, False: 408]
  ------------------
  264|      0|        RNP_LOG("aead wrong update len");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  265|      0|        return false;
  266|      0|    }
  267|       |
  268|    408|    size_t outwr = 0;
  269|    408|    size_t inread = 0;
  270|    408|    if (botan_cipher_update(crypt.aead.obj, 0, out, len, &outwr, in, len, &inread)) {
  ------------------
  |  Branch (270:9): [True: 0, False: 408]
  ------------------
  271|      0|        RNP_LOG("aead update failed");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  272|      0|        return false;
  273|      0|    }
  274|       |
  275|    408|    if (outwr != inread) {
  ------------------
  |  Branch (275:9): [True: 0, False: 408]
  ------------------
  276|      0|        RNP_LOG("wrong aead usage: %zu vs %zu, len is %zu", outwr, inread, len);
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  277|      0|        return false;
  278|      0|    }
  279|       |
  280|    408|    read = inread;
  281|    408|    return true;
  282|    408|}
_Z21pgp_cipher_aead_resetP11pgp_crypt_t:
  286|     34|{
  287|     34|    botan_cipher_reset(crypt->aead.obj);
  288|     34|}
_Z22pgp_cipher_aead_finishP11pgp_crypt_tPhPKhm:
  292|    859|{
  293|    859|    uint32_t flags = BOTAN_CIPHER_UPDATE_FLAG_FINAL;
  294|    859|    size_t   inread = 0;
  295|    859|    size_t   outwr = 0;
  296|    859|    int      res;
  297|       |
  298|    859|    if (crypt->aead.decrypt) {
  ------------------
  |  Branch (298:9): [True: 859, False: 0]
  ------------------
  299|    859|        size_t datalen = len - crypt->aead.taglen;
  300|       |        /* for decryption we should have tag for the final update call */
  301|    859|        res =
  302|    859|          botan_cipher_update(crypt->aead.obj, flags, out, datalen, &outwr, in, len, &inread);
  303|    859|        if (res != 0) {
  ------------------
  |  Branch (303:13): [True: 859, False: 0]
  ------------------
  304|    859|            if (res != BOTAN_FFI_ERROR_BAD_MAC) {
  ------------------
  |  Branch (304:17): [True: 0, False: 859]
  ------------------
  305|      0|                RNP_LOG("aead finish failed: %d", res);
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  306|      0|            }
  307|    859|            return false;
  308|    859|        }
  309|       |
  310|      0|        if ((outwr != datalen) || (inread != len)) {
  ------------------
  |  Branch (310:13): [True: 0, False: 0]
  |  Branch (310:35): [True: 0, False: 0]
  ------------------
  311|      0|            RNP_LOG("wrong decrypt aead finish usage");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  312|      0|            return false;
  313|      0|        }
  314|      0|    } else {
  315|       |        /* for encryption tag will be generated */
  316|      0|        size_t outlen = len + crypt->aead.taglen;
  317|      0|        if (botan_cipher_update(
  ------------------
  |  Branch (317:13): [True: 0, False: 0]
  ------------------
  318|      0|              crypt->aead.obj, flags, out, outlen, &outwr, in, len, &inread) != 0) {
  319|      0|            RNP_LOG("aead finish failed");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  320|      0|            return false;
  321|      0|        }
  322|       |
  323|      0|        if ((outwr != outlen) || (inread != len)) {
  ------------------
  |  Branch (323:13): [True: 0, False: 0]
  |  Branch (323:34): [True: 0, False: 0]
  ------------------
  324|      0|            RNP_LOG("wrong encrypt aead finish usage");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  325|      0|            return false;
  326|      0|        }
  327|      0|    }
  328|       |
  329|      0|    pgp_cipher_aead_reset(crypt);
  330|      0|    return true;
  331|    859|}
_Z23pgp_cipher_aead_destroyP11pgp_crypt_t:
  335|  1.15k|{
  336|  1.15k|    if (crypt->aead.obj) {
  ------------------
  |  Branch (336:9): [True: 984, False: 171]
  ------------------
  337|    984|        botan_cipher_destroy(crypt->aead.obj);
  338|    984|    }
  339|  1.15k|    memset(crypt, 0x0, sizeof(*crypt));
  340|  1.15k|}
symmetric.cpp:_ZL22pgp_sa_to_botan_stringib:
   41|  57.4k|{
   42|  57.4k|    switch (alg) {
   43|      0|#if defined(BOTAN_HAS_IDEA) && defined(ENABLE_IDEA)
   44|  5.73k|    case PGP_SA_IDEA:
  ------------------
  |  Branch (44:5): [True: 5.73k, False: 51.7k]
  ------------------
   45|  5.73k|        return "IDEA";
   46|      0|#endif
   47|       |
   48|      0|#if defined(BOTAN_HAS_DES)
   49|  6.32k|    case PGP_SA_TRIPLEDES:
  ------------------
  |  Branch (49:5): [True: 6.32k, False: 51.1k]
  ------------------
   50|  6.32k|        return "TripleDES";
   51|      0|#endif
   52|       |
   53|      0|#if defined(BOTAN_HAS_CAST) && defined(ENABLE_CAST5)
   54|  17.4k|    case PGP_SA_CAST5:
  ------------------
  |  Branch (54:5): [True: 17.4k, False: 40.0k]
  ------------------
   55|  17.4k|        return "CAST-128";
   56|      0|#endif
   57|       |
   58|      0|#if defined(BOTAN_HAS_BLOWFISH) && defined(ENABLE_BLOWFISH)
   59|  1.61k|    case PGP_SA_BLOWFISH:
  ------------------
  |  Branch (59:5): [True: 1.61k, False: 55.8k]
  ------------------
   60|  1.61k|        return "Blowfish";
   61|      0|#endif
   62|       |
   63|      0|#if defined(BOTAN_HAS_AES)
   64|  4.65k|    case PGP_SA_AES_128:
  ------------------
  |  Branch (64:5): [True: 4.65k, False: 52.8k]
  ------------------
   65|  4.65k|        return "AES-128";
   66|  8.24k|    case PGP_SA_AES_192:
  ------------------
  |  Branch (66:5): [True: 8.24k, False: 49.2k]
  ------------------
   67|  8.24k|        return "AES-192";
   68|  2.56k|    case PGP_SA_AES_256:
  ------------------
  |  Branch (68:5): [True: 2.56k, False: 54.9k]
  ------------------
   69|  2.56k|        return "AES-256";
   70|      0|#endif
   71|       |
   72|      0|#if defined(BOTAN_HAS_SM4) && defined(ENABLE_SM2)
   73|    886|    case PGP_SA_SM4:
  ------------------
  |  Branch (73:5): [True: 886, False: 56.5k]
  ------------------
   74|    886|        return "SM4";
   75|      0|#endif
   76|       |
   77|      0|#if defined(BOTAN_HAS_TWOFISH) && defined(ENABLE_TWOFISH)
   78|  5.16k|    case PGP_SA_TWOFISH:
  ------------------
  |  Branch (78:5): [True: 5.16k, False: 52.3k]
  ------------------
   79|  5.16k|        return "Twofish";
   80|      0|#endif
   81|       |
   82|      0|#if defined(BOTAN_HAS_CAMELLIA)
   83|  3.73k|    case PGP_SA_CAMELLIA_128:
  ------------------
  |  Branch (83:5): [True: 3.73k, False: 53.7k]
  ------------------
   84|  3.73k|        return "Camellia-128";
   85|    242|    case PGP_SA_CAMELLIA_192:
  ------------------
  |  Branch (85:5): [True: 242, False: 57.2k]
  ------------------
   86|    242|        return "Camellia-192";
   87|    438|    case PGP_SA_CAMELLIA_256:
  ------------------
  |  Branch (87:5): [True: 438, False: 57.0k]
  ------------------
   88|    438|        return "Camellia-256";
   89|      0|#endif
   90|       |
   91|    429|    default:
  ------------------
  |  Branch (91:5): [True: 429, False: 57.0k]
  ------------------
   92|    429|        if (!silent) {
  ------------------
  |  Branch (92:13): [True: 429, False: 0]
  ------------------
   93|    429|            RNP_LOG("Unsupported symmetric algorithm %d", alg);
  ------------------
  |  |   84|    429|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    429|    do {                                                                                 \
  |  |  |  |   77|    429|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 429, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    429|            break;                                                                       \
  |  |  |  |   79|    429|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   94|    429|        }
   95|       |        return NULL;
   96|  57.4k|    }
   97|  57.4k|}
symmetric.cpp:_ZL24pgp_aead_to_botan_string14pgp_symm_alg_t14pgp_aead_alg_tPcm:
  102|  3.72k|{
  103|  3.72k|    const char *ealg_name = pgp_sa_to_botan_string(ealg);
  104|  3.72k|    size_t      ealg_len;
  105|       |
  106|  3.72k|    if (!ealg_name) {
  ------------------
  |  Branch (106:9): [True: 429, False: 3.29k]
  ------------------
  107|    429|        return false;
  108|    429|    }
  109|       |
  110|  3.29k|    ealg_len = strlen(ealg_name);
  111|       |
  112|  3.29k|    if (len < ealg_len + 5) {
  ------------------
  |  Branch (112:9): [True: 0, False: 3.29k]
  ------------------
  113|      0|        RNP_LOG("buffer too small");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  114|      0|        return false;
  115|      0|    }
  116|       |
  117|  3.29k|    switch (aalg) {
  118|    571|    case PGP_AEAD_EAX:
  ------------------
  |  Branch (118:5): [True: 571, False: 2.72k]
  ------------------
  119|    571|        memcpy(buf, ealg_name, ealg_len);
  120|    571|        strncpy(buf + ealg_len, "/EAX", len - ealg_len);
  121|    571|        break;
  122|  2.47k|    case PGP_AEAD_OCB:
  ------------------
  |  Branch (122:5): [True: 2.47k, False: 818]
  ------------------
  123|  2.47k|        memcpy(buf, ealg_name, ealg_len);
  124|  2.47k|        strncpy(buf + ealg_len, "/OCB", len - ealg_len);
  125|  2.47k|        break;
  126|    247|    case PGP_AEAD_GCM:
  ------------------
  |  Branch (126:5): [True: 247, False: 3.04k]
  ------------------
  127|    247|        memcpy(buf, ealg_name, ealg_len);
  128|    247|        strncpy(buf + ealg_len, "/GCM", len - ealg_len);
  129|    247|        break;
  130|      0|    default:
  ------------------
  |  Branch (130:5): [True: 0, False: 3.29k]
  ------------------
  131|      0|        RNP_LOG("unsupported AEAD alg %d", (int) aalg);
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  132|      0|        return false;
  133|  3.29k|    }
  134|       |
  135|  3.29k|    return true;
  136|  3.29k|}

_Z22pgp_cipher_cfb_decryptP11pgp_crypt_tPhPKhm:
  127|  54.3k|{
  128|       |    /* for better code readability */
  129|  54.3k|    uint64_t *out64, *in64;
  130|  54.3k|    uint64_t  inbuf64[512]; // 4KB - page size
  131|  54.3k|    uint64_t  outbuf64[512];
  132|  54.3k|    uint64_t  iv64[2];
  133|  54.3k|    size_t    blocks, blockb;
  134|  54.3k|    size_t    blsize = crypt->blocksize;
  135|       |
  136|       |    /* decrypting till the block boundary */
  137|  61.5k|    while (bytes && crypt->cfb.remaining) {
  ------------------
  |  Branch (137:12): [True: 61.5k, False: 13]
  |  Branch (137:21): [True: 7.13k, False: 54.3k]
  ------------------
  138|  7.13k|        uint8_t c = *in++;
  139|  7.13k|        *out++ = c ^ crypt->cfb.iv[blsize - crypt->cfb.remaining];
  140|  7.13k|        crypt->cfb.iv[blsize - crypt->cfb.remaining] = c;
  141|  7.13k|        crypt->cfb.remaining--;
  142|  7.13k|        bytes--;
  143|  7.13k|    }
  144|       |
  145|  54.3k|    if (!bytes) {
  ------------------
  |  Branch (145:9): [True: 13, False: 54.3k]
  ------------------
  146|     13|        return 0;
  147|     13|    }
  148|       |
  149|       |    /* decrypting full blocks */
  150|  54.3k|    if (bytes > blsize) {
  ------------------
  |  Branch (150:9): [True: 37.2k, False: 17.1k]
  ------------------
  151|  37.2k|        memcpy(iv64, crypt->cfb.iv, blsize);
  152|       |
  153|  76.6k|        while ((blocks = bytes & ~(blsize - 1)) > 0) {
  ------------------
  |  Branch (153:16): [True: 39.4k, False: 37.2k]
  ------------------
  154|  39.4k|            if (blocks > sizeof(inbuf64)) {
  ------------------
  |  Branch (154:17): [True: 2.18k, False: 37.2k]
  ------------------
  155|  2.18k|                blocks = sizeof(inbuf64);
  156|  2.18k|            }
  157|  39.4k|            bytes -= blocks;
  158|  39.4k|            blockb = blocks;
  159|  39.4k|            memcpy(inbuf64, in, blockb);
  160|  39.4k|            out64 = outbuf64;
  161|  39.4k|            in64 = inbuf64;
  162|       |
  163|  39.4k|            if (blsize == 16) {
  ------------------
  |  Branch (163:17): [True: 12.9k, False: 26.4k]
  ------------------
  164|  12.9k|                blocks >>= 4;
  165|   648k|                while (blocks--) {
  ------------------
  |  Branch (165:24): [True: 635k, False: 12.9k]
  ------------------
  166|   635k|                    pgp_cipher_encrypt_block(crypt, (uint8_t *) iv64, 16);
  167|   635k|                    *out64++ = *in64 ^ iv64[0];
  168|   635k|                    iv64[0] = *in64++;
  169|   635k|                    *out64++ = *in64 ^ iv64[1];
  170|   635k|                    iv64[1] = *in64++;
  171|   635k|                }
  172|  26.4k|            } else {
  173|  26.4k|                blocks >>= 3;
  174|   102k|                while (blocks--) {
  ------------------
  |  Branch (174:24): [True: 75.8k, False: 26.4k]
  ------------------
  175|  75.8k|                    pgp_cipher_encrypt_block(crypt, (uint8_t *) iv64, 8);
  176|  75.8k|                    *out64++ = *in64 ^ iv64[0];
  177|  75.8k|                    iv64[0] = *in64++;
  178|  75.8k|                }
  179|  26.4k|            }
  180|       |
  181|  39.4k|            memcpy(out, outbuf64, blockb);
  182|  39.4k|            out += blockb;
  183|  39.4k|            in += blockb;
  184|  39.4k|        }
  185|       |
  186|  37.2k|        memcpy(crypt->cfb.iv, iv64, blsize);
  187|  37.2k|    }
  188|       |
  189|  54.3k|    if (!bytes) {
  ------------------
  |  Branch (189:9): [True: 2.56k, False: 51.8k]
  ------------------
  190|  2.56k|        return 0;
  191|  2.56k|    }
  192|       |
  193|  51.8k|    pgp_cipher_encrypt_block(crypt, crypt->cfb.iv, blsize);
  194|  51.8k|    crypt->cfb.remaining = blsize;
  195|       |
  196|       |    /* decrypting tail */
  197|   207k|    while (bytes) {
  ------------------
  |  Branch (197:12): [True: 155k, False: 51.8k]
  ------------------
  198|   155k|        uint8_t c = *in++;
  199|   155k|        *out++ = c ^ crypt->cfb.iv[blsize - crypt->cfb.remaining];
  200|   155k|        crypt->cfb.iv[blsize - crypt->cfb.remaining] = c;
  201|   155k|        crypt->cfb.remaining--;
  202|   155k|        bytes--;
  203|   155k|    }
  204|       |
  205|  51.8k|    return 0;
  206|  54.3k|}
_Z14pgp_block_size14pgp_symm_alg_t:
  210|   173k|{
  211|   173k|    switch (alg) {
  212|  17.2k|    case PGP_SA_IDEA:
  ------------------
  |  Branch (212:5): [True: 17.2k, False: 155k]
  ------------------
  213|  31.3k|    case PGP_SA_TRIPLEDES:
  ------------------
  |  Branch (213:5): [True: 14.0k, False: 159k]
  ------------------
  214|  99.0k|    case PGP_SA_CAST5:
  ------------------
  |  Branch (214:5): [True: 67.7k, False: 105k]
  ------------------
  215|   105k|    case PGP_SA_BLOWFISH:
  ------------------
  |  Branch (215:5): [True: 6.40k, False: 166k]
  ------------------
  216|   105k|        return 8;
  217|  13.9k|    case PGP_SA_AES_128:
  ------------------
  |  Branch (217:5): [True: 13.9k, False: 159k]
  ------------------
  218|  23.2k|    case PGP_SA_AES_192:
  ------------------
  |  Branch (218:5): [True: 9.37k, False: 163k]
  ------------------
  219|  31.5k|    case PGP_SA_AES_256:
  ------------------
  |  Branch (219:5): [True: 8.23k, False: 164k]
  ------------------
  220|  47.4k|    case PGP_SA_TWOFISH:
  ------------------
  |  Branch (220:5): [True: 15.8k, False: 157k]
  ------------------
  221|  59.6k|    case PGP_SA_CAMELLIA_128:
  ------------------
  |  Branch (221:5): [True: 12.2k, False: 160k]
  ------------------
  222|  60.5k|    case PGP_SA_CAMELLIA_192:
  ------------------
  |  Branch (222:5): [True: 883, False: 172k]
  ------------------
  223|  61.5k|    case PGP_SA_CAMELLIA_256:
  ------------------
  |  Branch (223:5): [True: 1.02k, False: 172k]
  ------------------
  224|  64.3k|    case PGP_SA_SM4:
  ------------------
  |  Branch (224:5): [True: 2.75k, False: 170k]
  ------------------
  225|  64.3k|        return 16;
  226|  3.27k|    default:
  ------------------
  |  Branch (226:5): [True: 3.27k, False: 169k]
  ------------------
  227|  3.27k|        return 0;
  228|   173k|    }
  229|   173k|}
_Z12pgp_key_size14pgp_symm_alg_t:
  233|   150k|{
  234|       |    /* Update MAX_SYMM_KEY_SIZE after adding algorithm
  235|       |     * with bigger key size.
  236|       |     */
  237|   150k|    static_assert(32 == MAX_SYMM_KEY_SIZE, "MAX_SYMM_KEY_SIZE must be updated");
  238|       |
  239|   150k|    switch (alg) {
  240|  14.8k|    case PGP_SA_IDEA:
  ------------------
  |  Branch (240:5): [True: 14.8k, False: 136k]
  ------------------
  241|  54.1k|    case PGP_SA_CAST5:
  ------------------
  |  Branch (241:5): [True: 39.3k, False: 111k]
  ------------------
  242|  57.2k|    case PGP_SA_BLOWFISH:
  ------------------
  |  Branch (242:5): [True: 3.02k, False: 147k]
  ------------------
  243|  67.0k|    case PGP_SA_AES_128:
  ------------------
  |  Branch (243:5): [True: 9.83k, False: 141k]
  ------------------
  244|  76.3k|    case PGP_SA_CAMELLIA_128:
  ------------------
  |  Branch (244:5): [True: 9.30k, False: 141k]
  ------------------
  245|  78.4k|    case PGP_SA_SM4:
  ------------------
  |  Branch (245:5): [True: 2.14k, False: 148k]
  ------------------
  246|  78.4k|        return 16;
  247|       |
  248|  12.0k|    case PGP_SA_TRIPLEDES:
  ------------------
  |  Branch (248:5): [True: 12.0k, False: 138k]
  ------------------
  249|  30.0k|    case PGP_SA_AES_192:
  ------------------
  |  Branch (249:5): [True: 18.0k, False: 132k]
  ------------------
  250|  30.8k|    case PGP_SA_CAMELLIA_192:
  ------------------
  |  Branch (250:5): [True: 719, False: 150k]
  ------------------
  251|  30.8k|        return 24;
  252|       |
  253|  12.5k|    case PGP_SA_TWOFISH:
  ------------------
  |  Branch (253:5): [True: 12.5k, False: 138k]
  ------------------
  254|  18.0k|    case PGP_SA_AES_256:
  ------------------
  |  Branch (254:5): [True: 5.47k, False: 145k]
  ------------------
  255|  18.9k|    case PGP_SA_CAMELLIA_256:
  ------------------
  |  Branch (255:5): [True: 964, False: 150k]
  ------------------
  256|  18.9k|        return 32;
  257|       |
  258|  22.6k|    default:
  ------------------
  |  Branch (258:5): [True: 22.6k, False: 128k]
  ------------------
  259|  22.6k|        return 0;
  260|   150k|    }
  261|   150k|}
_Z27pgp_cipher_aead_granularityP11pgp_crypt_t:
  279|  2.15k|{
  280|  2.15k|    return crypt->aead.granularity;
  281|  2.15k|}
_Z21pgp_cipher_aead_nonce14pgp_aead_alg_tPKhPhm:
  285|  1.01k|{
  286|  1.01k|    switch (aalg) {
  287|    594|    case PGP_AEAD_EAX:
  ------------------
  |  Branch (287:5): [True: 594, False: 424]
  ------------------
  288|       |        /* The nonce for EAX mode is computed by treating the starting
  289|       |        initialization vector as a 16-octet, big-endian value and
  290|       |        exclusive-oring the low eight octets of it with the chunk index.
  291|       |        */
  292|    594|        memcpy(nonce, iv, PGP_AEAD_EAX_NONCE_LEN);
  ------------------
  |  |   64|    594|#define PGP_AEAD_EAX_NONCE_LEN 16
  ------------------
  293|    594|        for (int i = 15; (i > 7) && index; i--) {
  ------------------
  |  Branch (293:26): [True: 594, False: 0]
  |  Branch (293:37): [True: 0, False: 594]
  ------------------
  294|      0|            nonce[i] ^= index & 0xff;
  295|      0|            index = index >> 8;
  296|      0|        }
  297|    594|        return PGP_AEAD_EAX_NONCE_LEN;
  ------------------
  |  |   64|    594|#define PGP_AEAD_EAX_NONCE_LEN 16
  ------------------
  298|    285|    case PGP_AEAD_OCB:
  ------------------
  |  Branch (298:5): [True: 285, False: 733]
  ------------------
  299|       |        /* The nonce for a chunk of chunk index "i" in OCB processing is defined as:
  300|       |           OCB-Nonce_{i} = IV[1..120] xor i
  301|       |        */
  302|    285|        memcpy(nonce, iv, PGP_AEAD_OCB_NONCE_LEN);
  ------------------
  |  |   67|    285|#define PGP_AEAD_OCB_NONCE_LEN 15
  ------------------
  303|    285|        for (int i = 14; (i >= 0) && index; i--) {
  ------------------
  |  Branch (303:26): [True: 285, False: 0]
  |  Branch (303:38): [True: 0, False: 285]
  ------------------
  304|      0|            nonce[i] ^= index & 0xff;
  305|      0|            index = index >> 8;
  306|      0|        }
  307|    285|        return PGP_AEAD_OCB_NONCE_LEN;
  ------------------
  |  |   67|    285|#define PGP_AEAD_OCB_NONCE_LEN 15
  ------------------
  308|    139|    case PGP_AEAD_GCM:
  ------------------
  |  Branch (308:5): [True: 139, False: 879]
  ------------------
  309|       |        /* RFC 9580, 5.13.2: the leftmost N - 64 bits are the IV and the
  310|       |         * rightmost 64 bits are the chunk index, big-endian. */
  311|    139|        memcpy(nonce, iv, PGP_AEAD_GCM_NONCE_LEN);
  ------------------
  |  |   68|    139|#define PGP_AEAD_GCM_NONCE_LEN 12
  ------------------
  312|    139|        for (int i = PGP_AEAD_GCM_NONCE_LEN - 1; (i >= PGP_AEAD_GCM_NONCE_LEN - 8) && index;
  ------------------
  |  |   68|    139|#define PGP_AEAD_GCM_NONCE_LEN 12
  ------------------
                      for (int i = PGP_AEAD_GCM_NONCE_LEN - 1; (i >= PGP_AEAD_GCM_NONCE_LEN - 8) && index;
  ------------------
  |  |   68|    139|#define PGP_AEAD_GCM_NONCE_LEN 12
  ------------------
  |  Branch (312:50): [True: 139, False: 0]
  |  Branch (312:87): [True: 0, False: 139]
  ------------------
  313|    139|             i--) {
  314|      0|            nonce[i] ^= index & 0xff;
  315|      0|            index = index >> 8;
  316|      0|        }
  317|    139|        return PGP_AEAD_GCM_NONCE_LEN;
  ------------------
  |  |   68|    139|#define PGP_AEAD_GCM_NONCE_LEN 12
  ------------------
  318|      0|    default:
  ------------------
  |  Branch (318:5): [True: 0, False: 1.01k]
  ------------------
  319|      0|        return 0;
  320|  1.01k|    }
  321|  1.01k|}
_Z25pgp_cipher_aead_nonce_len14pgp_aead_alg_t:
  327|  4.86k|{
  328|  4.86k|    switch (aalg) {
  329|  1.00k|    case PGP_AEAD_EAX:
  ------------------
  |  Branch (329:5): [True: 1.00k, False: 3.86k]
  ------------------
  330|  1.00k|        return PGP_AEAD_EAX_NONCE_LEN;
  ------------------
  |  |   64|  1.00k|#define PGP_AEAD_EAX_NONCE_LEN 16
  ------------------
  331|  3.67k|    case PGP_AEAD_OCB:
  ------------------
  |  Branch (331:5): [True: 3.67k, False: 1.18k]
  ------------------
  332|  3.67k|        return PGP_AEAD_OCB_NONCE_LEN;
  ------------------
  |  |   67|  3.67k|#define PGP_AEAD_OCB_NONCE_LEN 15
  ------------------
  333|    158|    case PGP_AEAD_GCM:
  ------------------
  |  Branch (333:5): [True: 158, False: 4.71k]
  ------------------
  334|    158|        return PGP_AEAD_GCM_NONCE_LEN;
  ------------------
  |  |   68|    158|#define PGP_AEAD_GCM_NONCE_LEN 12
  ------------------
  335|     25|    default:
  ------------------
  |  Branch (335:5): [True: 25, False: 4.84k]
  ------------------
  336|     25|        return 0;
  337|  4.86k|    }
  338|  4.86k|}
_Z23pgp_cipher_aead_tag_len14pgp_aead_alg_t:
  342|  2.01k|{
  343|  2.01k|    switch (aalg) {
  344|    988|    case PGP_AEAD_EAX:
  ------------------
  |  Branch (344:5): [True: 988, False: 1.02k]
  ------------------
  345|  1.87k|    case PGP_AEAD_OCB:
  ------------------
  |  Branch (345:5): [True: 888, False: 1.12k]
  ------------------
  346|  2.01k|    case PGP_AEAD_GCM:
  ------------------
  |  Branch (346:5): [True: 136, False: 1.87k]
  ------------------
  347|  2.01k|        return PGP_AEAD_EAX_OCB_TAG_LEN;
  ------------------
  |  |   80|  2.01k|#define PGP_AEAD_EAX_OCB_TAG_LEN 16
  ------------------
  348|      0|    default:
  ------------------
  |  Branch (348:5): [True: 0, False: 2.01k]
  ------------------
  349|      0|        return 0;
  350|  2.01k|    }
  351|  2.01k|}

_ZN3pgp11EncMaterial6createE16pgp_pubkey_alg_t:
   35|  8.30k|{
   36|  8.30k|    switch (alg) {
   37|    823|    case PGP_PKA_RSA:
  ------------------
  |  Branch (37:5): [True: 823, False: 7.48k]
  ------------------
   38|  2.41k|    case PGP_PKA_RSA_ENCRYPT_ONLY:
  ------------------
  |  Branch (38:5): [True: 1.59k, False: 6.71k]
  ------------------
   39|  2.41k|        return std::unique_ptr<EncMaterial>(new RSAEncMaterial());
   40|    271|    case PGP_PKA_ELGAMAL:
  ------------------
  |  Branch (40:5): [True: 271, False: 8.03k]
  ------------------
   41|    433|    case PGP_PKA_ELGAMAL_ENCRYPT_OR_SIGN:
  ------------------
  |  Branch (41:5): [True: 162, False: 8.14k]
  ------------------
   42|    433|        return std::unique_ptr<EncMaterial>(new EGEncMaterial());
   43|     75|    case PGP_PKA_SM2:
  ------------------
  |  Branch (43:5): [True: 75, False: 8.22k]
  ------------------
   44|     75|        return std::unique_ptr<EncMaterial>(new SM2EncMaterial());
   45|    804|    case PGP_PKA_ECDH:
  ------------------
  |  Branch (45:5): [True: 804, False: 7.49k]
  ------------------
   46|    804|        return std::unique_ptr<EncMaterial>(new ECDHEncMaterial());
   47|      0|#if defined(ENABLE_CRYPTO_REFRESH)
   48|  2.28k|    case PGP_PKA_X25519:
  ------------------
  |  Branch (48:5): [True: 2.28k, False: 6.02k]
  ------------------
   49|  2.28k|        return std::unique_ptr<EncMaterial>(new X25519EncMaterial());
   50|      0|#endif
   51|      0|#if defined(ENABLE_PQC)
   52|     22|    case PGP_PKA_KYBER768_X25519:
  ------------------
  |  Branch (52:5): [True: 22, False: 8.28k]
  ------------------
   53|     22|#if defined(ENABLE_PQC) && defined(ENABLE_CRYPTO_REFRESH)
   54|     22|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|     22|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
   55|     93|    case PGP_PKA_KYBER1024_X448:
  ------------------
  |  Branch (55:5): [True: 71, False: 8.23k]
  ------------------
   56|     93|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|     93|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
   57|    547|    case PGP_PKA_KYBER768_P384:
  ------------------
  |  Branch (57:5): [True: 454, False: 7.84k]
  ------------------
   58|    547|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|    547|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
   59|    585|    case PGP_PKA_KYBER1024_P521:
  ------------------
  |  Branch (59:5): [True: 38, False: 8.26k]
  ------------------
   60|    585|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|    585|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
   61|    620|    case PGP_PKA_KYBER768_BP384:
  ------------------
  |  Branch (61:5): [True: 35, False: 8.26k]
  ------------------
   62|    620|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|    620|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
   63|    656|    case PGP_PKA_KYBER1024_BP512:
  ------------------
  |  Branch (63:5): [True: 36, False: 8.26k]
  ------------------
   64|    656|#endif
   65|    656|        return std::unique_ptr<EncMaterial>(new MlkemEcdhEncMaterial(alg));
   66|      0|#endif
   67|  1.63k|    default:
  ------------------
  |  Branch (67:5): [True: 1.63k, False: 6.66k]
  ------------------
   68|  1.63k|        RNP_LOG("unknown pk alg %d", alg);
  ------------------
  |  |   84|  1.63k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  1.63k|    do {                                                                                 \
  |  |  |  |   77|  1.63k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 1.63k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  1.63k|            break;                                                                       \
  |  |  |  |   79|  1.63k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   69|  1.63k|        return nullptr;
   70|  8.30k|    }
   71|  8.30k|}
_ZN3pgp14RSAEncMaterial5parseER17pgp_packet_body_t:
   75|  2.41k|{
   76|  2.41k|    return pkt.get(enc.m);
   77|  2.41k|}
_ZN3pgp13EGEncMaterial5parseER17pgp_packet_body_t:
   87|    433|{
   88|    433|    return pkt.get(enc.g) && pkt.get(enc.m);
  ------------------
  |  Branch (88:12): [True: 75, False: 358]
  |  Branch (88:30): [True: 1, False: 74]
  ------------------
   89|    433|}
_ZN3pgp14SM2EncMaterial5parseER17pgp_packet_body_t:
  100|     75|{
  101|     75|    return pkt.get(enc.m);
  102|     75|}
_ZN3pgp15ECDHEncMaterial5parseER17pgp_packet_body_t:
  112|    804|{
  113|    804|    uint8_t sz = 0;
  114|       |    /* ECDH ephemeral point and m size */
  115|    804|    if (!pkt.get(enc.p) || !pkt.get(sz)) {
  ------------------
  |  Branch (115:9): [True: 393, False: 411]
  |  Branch (115:28): [True: 21, False: 390]
  ------------------
  116|    414|        return false;
  117|    414|    }
  118|       |    /* ECDH m */
  119|    390|    if (sz > ECDH_WRAPPED_KEY_SIZE) {
  ------------------
  |  |   38|    390|#define ECDH_WRAPPED_KEY_SIZE 48
  ------------------
  |  Branch (119:9): [True: 83, False: 307]
  ------------------
  120|     83|        RNP_LOG("wrong ecdh m len");
  ------------------
  |  |   84|     83|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     83|    do {                                                                                 \
  |  |  |  |   77|     83|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 83, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     83|            break;                                                                       \
  |  |  |  |   79|     83|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  121|     83|        return false;
  122|     83|    }
  123|    307|    enc.m.resize(sz);
  124|    307|    if (!pkt.get(enc.m.data(), sz)) {
  ------------------
  |  Branch (124:9): [True: 47, False: 260]
  ------------------
  125|     47|        return false;
  126|     47|    }
  127|    260|    return true;
  128|    307|}
_ZN3pgp17X25519EncMaterial5parseER17pgp_packet_body_t:
  141|  2.28k|{
  142|  2.28k|    enc.eph_key.resize(32);
  143|  2.28k|    if (!pkt.get(enc.eph_key.data(), enc.eph_key.size())) {
  ------------------
  |  Branch (143:9): [True: 39, False: 2.24k]
  ------------------
  144|     39|        RNP_LOG("failed to parse X25519 PKESK (eph. pubkey)");
  ------------------
  |  |   84|     39|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     39|    do {                                                                                 \
  |  |  |  |   77|     39|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 39, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     39|            break;                                                                       \
  |  |  |  |   79|     39|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  145|     39|        return false;
  146|     39|    }
  147|  2.24k|    uint8_t sess_len = 0;
  148|  2.24k|    if (!pkt.get(sess_len) || !sess_len) {
  ------------------
  |  Branch (148:9): [True: 22, False: 2.22k]
  |  Branch (148:31): [True: 336, False: 1.88k]
  ------------------
  149|    358|        RNP_LOG("failed to parse X25519 PKESK (enc sesskey length)");
  ------------------
  |  |   84|    358|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    358|    do {                                                                                 \
  |  |  |  |   77|    358|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 358, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    358|            break;                                                                       \
  |  |  |  |   79|    358|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  150|    358|        return false;
  151|    358|    }
  152|       |    /* get plaintext salg if PKESKv3 */
  153|  1.88k|    if (version == PGP_PKSK_V3) {
  ------------------
  |  Branch (153:9): [True: 1.86k, False: 16]
  ------------------
  154|  1.86k|        uint8_t bt = 0;
  155|  1.86k|        if (!pkt.get(bt)) {
  ------------------
  |  Branch (155:13): [True: 18, False: 1.85k]
  ------------------
  156|     18|            RNP_LOG("failed to get salg");
  ------------------
  |  |   84|     18|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     18|    do {                                                                                 \
  |  |  |  |   77|     18|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 18, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     18|            break;                                                                       \
  |  |  |  |   79|     18|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  157|     18|            return false;
  158|     18|        }
  159|  1.85k|        sess_len--;
  160|  1.85k|        salg = (pgp_symm_alg_t) bt;
  161|  1.85k|    }
  162|  1.86k|    enc.enc_sess_key.resize(sess_len);
  163|  1.86k|    if (!pkt.get(enc.enc_sess_key.data(), sess_len)) {
  ------------------
  |  Branch (163:9): [True: 496, False: 1.37k]
  ------------------
  164|    496|        RNP_LOG("failed to parse X25519 PKESK (enc sesskey)");
  ------------------
  |  |   84|    496|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    496|    do {                                                                                 \
  |  |  |  |   77|    496|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 496, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    496|            break;                                                                       \
  |  |  |  |   79|    496|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  165|    496|        return false;
  166|    496|    }
  167|  1.37k|    return true;
  168|  1.86k|}
_ZN3pgp20MlkemEcdhEncMaterial5parseER17pgp_packet_body_t:
  231|    656|{
  232|       |    /* Calculate ciphertext size */
  233|    656|    auto csize =
  234|    656|      kyber_ciphertext_size(pgp_kyber_ecdh_composite_key_t::pk_alg_to_kyber_id(alg_)) +
  235|    656|      pgp_kyber_ecdh_composite_key_t::ecdh_curve_ephemeral_size(
  236|    656|        pgp_kyber_ecdh_composite_key_t::pk_alg_to_curve_id(alg_));
  237|    656|    enc.composite_ciphertext.resize(csize);
  238|       |    /* Read composite ciphertext */
  239|    656|    if (!pkt.get(enc.composite_ciphertext.data(), enc.composite_ciphertext.size())) {
  ------------------
  |  Branch (239:9): [True: 611, False: 45]
  ------------------
  240|    611|        RNP_LOG("failed to get kyber-ecdh ciphertext");
  ------------------
  |  |   84|    611|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    611|    do {                                                                                 \
  |  |  |  |   77|    611|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 611, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    611|            break;                                                                       \
  |  |  |  |   79|    611|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  241|    611|        return false;
  242|    611|    }
  243|     45|    uint8_t wrapped_key_len = 0;
  244|     45|    if (!pkt.get(wrapped_key_len) || !wrapped_key_len) {
  ------------------
  |  Branch (244:9): [True: 1, False: 44]
  |  Branch (244:38): [True: 3, False: 41]
  ------------------
  245|      4|        RNP_LOG("failed to get kyber-ecdh wrapped session key length");
  ------------------
  |  |   84|      4|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      4|    do {                                                                                 \
  |  |  |  |   77|      4|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 4, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      4|            break;                                                                       \
  |  |  |  |   79|      4|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  246|      4|        return false;
  247|      4|    }
  248|       |    /* get plaintext salg if PKESKv3 */
  249|     41|    if (version == PGP_PKSK_V3) {
  ------------------
  |  Branch (249:9): [True: 37, False: 4]
  ------------------
  250|     37|        uint8_t balg = 0;
  251|     37|        if (!pkt.get(balg)) {
  ------------------
  |  Branch (251:13): [True: 1, False: 36]
  ------------------
  252|      1|            RNP_LOG("failed to get salg");
  ------------------
  |  |   84|      1|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      1|    do {                                                                                 \
  |  |  |  |   77|      1|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 1, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      1|            break;                                                                       \
  |  |  |  |   79|      1|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  253|      1|            return false;
  254|      1|        }
  255|     36|        salg = (pgp_symm_alg_t) balg;
  256|     36|        wrapped_key_len--;
  257|     36|    }
  258|     40|    enc.wrapped_sesskey.resize(wrapped_key_len);
  259|     40|    if (!pkt.get(enc.wrapped_sesskey.data(), enc.wrapped_sesskey.size())) {
  ------------------
  |  Branch (259:9): [True: 16, False: 24]
  ------------------
  260|     16|        RNP_LOG("failed to get kyber-ecdh session key");
  ------------------
  |  |   84|     16|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     16|    do {                                                                                 \
  |  |  |  |   77|     16|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 16, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     16|            break;                                                                       \
  |  |  |  |   79|     16|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  261|     16|        return false;
  262|     16|    }
  263|     24|    return true;
  264|     40|}

_ZN3pgp11EncMaterialD2Ev:
   43|  6.66k|    virtual ~EncMaterial(){};
_ZN3pgp20MlkemEcdhEncMaterialC2E16pgp_pubkey_alg_t:
  108|    656|    MlkemEcdhEncMaterial(pgp_pubkey_alg_t alg) : alg_(alg)
  109|    656|    {
  110|    656|    }

_ZN16rnp_op_verify_stC2EP10rnp_ffi_stP12rnp_input_stP13rnp_output_st:
  251|  11.6k|        : ffi(affi), input(in), output(out),
  252|  11.6k|          rnpctx(ffi->context, ffi->key_provider, ffi->pass_provider)
  253|  11.6k|    {
  254|  11.6k|    }
_ZN25rnp_decryption_kp_param_tC2EP16rnp_op_verify_st:
  314|  11.6k|        : op(opobj), has_hidden(false), last(NULL){};
_ZN23rnp_recipient_handle_stC2Ev:
   93|  1.31k|    rnp_recipient_handle_st() : ffi(NULL), palg(PGP_PKA_NOTHING)
   94|  1.31k|    {
   95|  1.31k|    }
_ZN20rnp_symenc_handle_stC2Ev:
  106|  29.1k|    rnp_symenc_handle_st() : ffi(NULL), iterations(0)
  107|  29.1k|    {
  108|  29.1k|    }
_ZN17rnp_key_handle_stC2EP10rnp_ffi_stPN3rnp3KeyES4_:
   43|  3.89k|        : ffi(affi), pub(apub), sec(asec)
   44|  3.89k|    {
   45|  3.89k|    }

_ZN3pgp11FingerprintC2Ev:
   38|   756k|Fingerprint::Fingerprint() : keyid_({})
   39|   756k|{
   40|   756k|}
_ZN3pgp11FingerprintC2EPKhm:
   42|  63.9k|Fingerprint::Fingerprint(const uint8_t *data, size_t size) : Fingerprint()
   43|  63.9k|{
   44|  63.9k|    fp_.assign(data, data + size);
   45|  63.9k|}
_ZN3pgp11FingerprintC2ERK13pgp_key_pkt_t:
   48|  68.1k|{
   49|  68.1k|    switch (key.version) {
   50|    303|    case PGP_V2:
  ------------------
  |  Branch (50:5): [True: 303, False: 67.8k]
  ------------------
   51|  12.1k|    case PGP_V3: {
  ------------------
  |  Branch (51:5): [True: 11.8k, False: 56.2k]
  ------------------
   52|       |        /* v2/3 fingerprint is calculated from RSA public numbers */
   53|  12.1k|        if (!is_rsa_key_alg(key.alg)) {
  ------------------
  |  Branch (53:13): [True: 0, False: 12.1k]
  ------------------
   54|      0|            RNP_LOG("bad algorithm");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   55|      0|            throw rnp::rnp_exception(RNP_ERROR_NOT_SUPPORTED);
   56|      0|        }
   57|  12.1k|        auto &rsa = dynamic_cast<const pgp::RSAKeyMaterial &>(*key.material);
   58|  12.1k|        auto  hash = rnp::Hash::create(PGP_HASH_MD5);
   59|  12.1k|        hash->add(rsa.n());
   60|  12.1k|        hash->add(rsa.e());
   61|  12.1k|        fp_ = hash->finish();
   62|       |        /* keyid just low bytes of RSA n */
   63|  12.1k|        size_t n = rsa.n().size();
   64|  12.1k|        size_t sz = std::min(rsa.n().size(), keyid_.size());
   65|  12.1k|        std::memcpy(keyid_.data(), rsa.n().data() + n - sz, sz);
   66|  12.1k|        return;
   67|  12.1k|    }
   68|  46.9k|    case PGP_V4:
  ------------------
  |  Branch (68:5): [True: 46.9k, False: 21.1k]
  ------------------
   69|  47.0k|    case PGP_V5:
  ------------------
  |  Branch (69:5): [True: 126, False: 67.9k]
  ------------------
   70|  47.0k|#if defined(ENABLE_CRYPTO_REFRESH)
   71|  55.9k|    case PGP_V6:
  ------------------
  |  Branch (71:5): [True: 8.86k, False: 59.2k]
  ------------------
   72|  55.9k|#endif
   73|  55.9k|    {
   74|  55.9k|        auto halg = key.version == PGP_V4 ? PGP_HASH_SHA1 : PGP_HASH_SHA256;
  ------------------
  |  Branch (74:21): [True: 46.9k, False: 8.99k]
  ------------------
   75|  55.9k|        auto hash = rnp::Hash::create(halg);
   76|  55.9k|        signature_hash_key(key, *hash, key.version);
   77|  55.9k|        fp_ = hash->finish();
   78|       |        /* keyid */
   79|  55.9k|        if (key.version == PGP_V4) {
  ------------------
  |  Branch (79:13): [True: 46.9k, False: 8.99k]
  ------------------
   80|  46.9k|            assert(fp_.size() == PGP_FINGERPRINT_V4_SIZE);
   81|  46.9k|            const size_t inc = PGP_FINGERPRINT_V4_SIZE - PGP_KEY_ID_SIZE;
  ------------------
  |  |   43|  46.9k|#define PGP_FINGERPRINT_V4_SIZE 20
  ------------------
                          const size_t inc = PGP_FINGERPRINT_V4_SIZE - PGP_KEY_ID_SIZE;
  ------------------
  |  |   39|  46.9k|#define PGP_KEY_ID_SIZE 8
  ------------------
   82|  46.9k|            memcpy(keyid_.data(), fp_.data() + inc, keyid_.size());
   83|  46.9k|        } else {
   84|  8.99k|            memcpy(keyid_.data(), fp_.data(), keyid_.size());
   85|  8.99k|        }
   86|  55.9k|        return;
   87|  47.0k|    }
   88|      0|    default:
  ------------------
  |  Branch (88:5): [True: 0, False: 68.1k]
  ------------------
   89|      0|        RNP_LOG("unsupported key version");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   90|      0|        throw rnp::rnp_exception(RNP_ERROR_NOT_SUPPORTED);
   91|  68.1k|    }
   92|  68.1k|}
_ZNK3pgp11FingerprinteqERKS0_:
   96|   929k|{
   97|   929k|    return fp_ == src.fp_;
   98|   929k|}
_ZNK3pgp11FingerprintneERKS0_:
  102|  37.1k|{
  103|  37.1k|    return !(*this == src);
  104|  37.1k|}
_ZNK3pgp11Fingerprint5keyidEv:
  119|  60.1k|{
  120|  60.1k|    return keyid_;
  121|  60.1k|}
_ZNK3pgp11Fingerprint4dataEv:
  131|   536k|{
  132|   536k|    return fp_.data();
  133|   536k|}
_ZNK3pgp11Fingerprint4sizeEv:
  137|   901k|{
  138|   901k|    return fp_.size();
  139|   901k|}

_ZNKSt3__14hashIN3pgp11FingerprintEEclERKS2_:
   90|   509k|    {
   91|       |        /* since fingerprint value is hash itself, we may use its low bytes */
   92|   509k|        size_t res = 0;
   93|   509k|        size_t copy = std::min(sizeof(res), fp.size());
   94|   509k|        std::memcpy(&res, fp.data(), copy);
   95|   509k|        return res;
   96|   509k|    }

_ZN3rnp4json3addERN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapENSt3__16vectorENS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEblmdSA_NS2_14adl_serializerENS6_IhNSA_IhEEEEvEEPKcSJ_:
   53|  53.7k|{
   54|  53.7k|    obj[name] = value;
   55|  53.7k|    return true;
   56|  53.7k|}
_ZN3rnp4json7add_hexERN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapENSt3__16vectorENS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEblmdSA_NS2_14adl_serializerENS6_IhNSA_IhEEEEvEEPKcPKhm:
   95|  26.8k|{
   96|  26.8k|    if (val_len > 1024 * 1024) {
  ------------------
  |  Branch (96:9): [True: 0, False: 26.8k]
  ------------------
   97|      0|        RNP_LOG("too large json hex field: %zu", val_len);
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   98|      0|        val_len = 1024 * 1024;
   99|      0|    }
  100|  26.8k|    obj[name] = bin_to_hex(val, val_len, rnp::HexFormat::Lowercase);
  101|  26.8k|    return true;
  102|  26.8k|}
_ZN3rnp4json3addERN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapENSt3__16vectorENS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEblmdSA_NS2_14adl_serializerENS6_IhNSA_IhEEEEvEEPKcRKN3pgp11FingerprintE:
  118|  26.8k|{
  119|  26.8k|    return add_hex(obj, name, fp.data(), fp.size());
  120|  26.8k|}
_ZN3rnp4json9array_addERN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapENSt3__16vectorENS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEblmdSA_NS2_14adl_serializerENS6_IhNSA_IhEEEEvEESG_:
  131|  26.8k|{
  132|  26.8k|    arr.push_back(std::move(val));
  133|  26.8k|    return true;
  134|  26.8k|}
_ZN3rnp4json11dump_prettyERKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapENSt3__16vectorENS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEblmdSA_NS2_14adl_serializerENS6_IhNSA_IhEEEEvEE:
  213|  10.1k|{
  214|       |    /* nlohmann::ordered_json::dump(2) produces 2-space indent but with `": ` after
  215|       |     * keys. json-c uses `":` (no space). Walk the dumped string and remove
  216|       |     * the space after structural colons (colons that follow an unescaped
  217|       |     * closing quote of a key). Inside-string `":` is part of a value and
  218|       |     * is left untouched because the preceding quote is escaped (`\"`). */
  219|  10.1k|    std::string raw = jso.dump(2);
  220|  10.1k|    std::string out;
  221|  10.1k|    out.reserve(raw.size());
  222|  10.1k|    bool   in_string = false;
  223|  10.1k|    bool   escaped = false;
  224|  10.1k|    size_t i = 0;
  225|  3.51M|    while (i < raw.size()) {
  ------------------
  |  Branch (225:12): [True: 3.50M, False: 10.1k]
  ------------------
  226|  3.50M|        char c = raw[i];
  227|  3.50M|        if (escaped) {
  ------------------
  |  Branch (227:13): [True: 0, False: 3.50M]
  ------------------
  228|      0|            out.push_back(c);
  229|      0|            escaped = false;
  230|      0|            i++;
  231|      0|            continue;
  232|      0|        }
  233|  3.50M|        if (in_string) {
  ------------------
  |  Branch (233:13): [True: 2.17M, False: 1.33M]
  ------------------
  234|  2.17M|            if (c == '\\') {
  ------------------
  |  Branch (234:17): [True: 0, False: 2.17M]
  ------------------
  235|      0|                escaped = true;
  236|      0|                out.push_back(c);
  237|      0|                i++;
  238|      0|                continue;
  239|      0|            }
  240|  2.17M|            if (c == '"') {
  ------------------
  |  Branch (240:17): [True: 171k, False: 2.00M]
  ------------------
  241|   171k|                in_string = false;
  242|   171k|            }
  243|  2.17M|            out.push_back(c);
  244|  2.17M|            i++;
  245|  2.17M|            continue;
  246|  2.17M|        }
  247|  1.33M|        if (c == '"') {
  ------------------
  |  Branch (247:13): [True: 171k, False: 1.15M]
  ------------------
  248|   171k|            in_string = true;
  249|   171k|            out.push_back(c);
  250|   171k|            i++;
  251|   171k|            continue;
  252|   171k|        }
  253|       |        /* structural colon followed by space → drop the space */
  254|  1.15M|        if (c == ':' && i + 1 < raw.size() && raw[i + 1] == ' ') {
  ------------------
  |  Branch (254:13): [True: 90.8k, False: 1.06M]
  |  Branch (254:25): [True: 90.8k, False: 0]
  |  Branch (254:47): [True: 90.8k, False: 0]
  ------------------
  255|  90.8k|            out.push_back(':');
  256|  90.8k|            i += 2; /* skip the colon and its trailing space */
  257|  90.8k|            continue;
  258|  90.8k|        }
  259|  1.06M|        out.push_back(c);
  260|  1.06M|        i++;
  261|  1.06M|    }
  262|  10.1k|    return out;
  263|  10.1k|}

_ZN3rnp9KeySearch6createERKNSt3__15arrayIhLm8EEE:
   56|  6.67k|{
   57|  6.67k|    return std::unique_ptr<KeySearch>(new KeyIDSearch(keyid));
   58|  6.67k|}
_ZN3rnp9KeySearch6createERKN3pgp11FingerprintE:
   62|    515|{
   63|    515|    return std::unique_ptr<KeySearch>(new KeyFingerprintSearch(fp));
   64|    515|}
_ZNK3rnp11KeyIDSearch7matchesERKNS_3KeyE:
  125|  3.92k|{
  126|  3.92k|    return (key.keyid() == keyid_) || (keyid_ == pgp::KeyID({}));
  ------------------
  |  Branch (126:12): [True: 112, False: 3.80k]
  |  Branch (126:39): [True: 264, False: 3.54k]
  ------------------
  127|  3.92k|}
_ZNK3rnp11KeyIDSearch6hiddenEv:
  143|    882|{
  144|    882|    return keyid_ == pgp::KeyID({});
  145|    882|}
_ZN3rnp11KeyIDSearchC2ERKNSt3__15arrayIhLm8EEE:
  148|  6.67k|{
  149|  6.67k|    type_ = Type::KeyID;
  150|  6.67k|    keyid_ = keyid;
  151|  6.67k|}
_ZN3rnp20KeyFingerprintSearchC2ERKN3pgp11FingerprintE:
  172|    515|{
  173|    515|    type_ = Type::Fingerprint;
  174|    515|    fp_ = fp;
  175|    515|}
_ZNK3rnp20KeyFingerprintSearch6get_fpEv:
  179|    707|{
  180|    707|    return fp_;
  181|    707|}
_ZNK3rnp11KeyProvider11request_keyERKNS_9KeySearchE8pgp_op_tb:
  233|  1.32k|{
  234|  1.32k|    Key *key = nullptr;
  235|  1.32k|    if (!callback) {
  ------------------
  |  Branch (235:9): [True: 0, False: 1.32k]
  ------------------
  236|      0|        return key;
  237|      0|    }
  238|  1.32k|    pgp_key_request_ctx_t ctx(op, secret, search);
  239|  1.32k|    if (!(key = callback(&ctx, userdata))) {
  ------------------
  |  Branch (239:9): [True: 1.32k, False: 0]
  ------------------
  240|  1.32k|        return nullptr;
  241|  1.32k|    }
  242|       |    // confirm that the key actually matches the search criteria
  243|      0|    if (!search.matches(*key) || (key->is_secret() != secret)) {
  ------------------
  |  Branch (243:9): [True: 0, False: 0]
  |  Branch (243:34): [True: 0, False: 0]
  ------------------
  244|      0|        return nullptr;
  245|      0|    }
  246|      0|    return key;
  247|      0|}

_ZNK3rnp9KeySearch4typeEv:
   49|  7.99k|    {
   50|  7.99k|        return type_;
   51|  7.99k|    }
_ZN3rnp11KeyProviderC2EPFPNS_3KeyEPK21pgp_key_request_ctx_tPvES6_:
  120|  27.2k|        : callback(cb), userdata(ud){};
_ZN21pgp_key_request_ctx_tC2E8pgp_op_tbRKN3rnp9KeySearchE:
  140|  1.32k|        : op(anop), secret(sec), search(srch)
  141|  1.32k|    {
  142|  1.32k|    }
_ZN3rnp9KeySearchD2Ev:
   55|  7.19k|    virtual ~KeySearch() = default;

_ZN14pgp_validity_t5resetEv:
   59|   278k|{
   60|   278k|    validated = false;
   61|   278k|    valid = false;
   62|   278k|    expired = false;
   63|   278k|}
_ZN3rnp3KeyC2ERK13pgp_key_pkt_t:
  416|  68.1k|Key::Key(const pgp_key_pkt_t &keypkt) : pkt_(keypkt)
  417|  68.1k|{
  418|  68.1k|    if (!is_key_pkt(pkt_.tag) || !pkt_.material->alg()) {
  ------------------
  |  Branch (418:9): [True: 0, False: 68.1k]
  |  Branch (418:34): [True: 0, False: 68.1k]
  ------------------
  419|      0|        throw rnp_exception(RNP_ERROR_BAD_PARAMETERS);
  420|      0|    }
  421|  68.1k|    fingerprint_ = pgp::Fingerprint(pkt_);
  422|  68.1k|    grip_ = pkt_.material->grip();
  423|       |
  424|       |    /* parse secret key if not encrypted */
  425|  68.1k|    if (is_secret_key_pkt(pkt_.tag)) {
  ------------------
  |  Branch (425:9): [True: 19.4k, False: 48.6k]
  ------------------
  426|  19.4k|        bool cleartext = pkt_.sec_protection.s2k.usage == PGP_S2KU_NONE;
  427|  19.4k|        if (cleartext && decrypt_secret_key(&pkt_, NULL)) {
  ------------------
  |  Branch (427:13): [True: 1.48k, False: 17.9k]
  |  Branch (427:26): [True: 698, False: 791]
  ------------------
  428|    698|            RNP_LOG("failed to setup key fields");
  ------------------
  |  |   84|    698|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    698|    do {                                                                                 \
  |  |  |  |   77|    698|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 698, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    698|            break;                                                                       \
  |  |  |  |   79|    698|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  429|    698|            throw rnp_exception(RNP_ERROR_BAD_PARAMETERS);
  430|    698|        }
  431|       |        /* decryption resets validity */
  432|  18.7k|        pkt_.material->set_validity(keypkt.material->validity());
  433|  18.7k|    }
  434|       |    /* add rawpacket */
  435|  67.4k|    rawpkt_ = RawPacket(pkt_);
  436|  67.4k|    format = KeyFormat::GPG;
  437|  67.4k|}
_ZN3rnp3KeyC2ERKS0_b:
  445|  92.9k|{
  446|       |    /* Do some checks for g10 keys */
  447|  92.9k|    if (src.format == KeyFormat::G10) {
  ------------------
  |  Branch (447:9): [True: 0, False: 92.9k]
  ------------------
  448|      0|        if (pubonly) {
  ------------------
  |  Branch (448:13): [True: 0, False: 0]
  ------------------
  449|      0|            RNP_LOG("attempt to copy public part from g10 key");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  450|      0|            throw std::invalid_argument("pubonly");
  451|      0|        }
  452|      0|    }
  453|       |
  454|  92.9k|    if (pubonly) {
  ------------------
  |  Branch (454:9): [True: 34.2k, False: 58.7k]
  ------------------
  455|  34.2k|        pkt_ = pgp_key_pkt_t(src.pkt_, true);
  456|  34.2k|        rawpkt_ = RawPacket(pkt_);
  457|  58.7k|    } else {
  458|  58.7k|        pkt_ = src.pkt_;
  459|  58.7k|        rawpkt_ = src.rawpkt_;
  460|  58.7k|    }
  461|       |
  462|  92.9k|    uids_ = src.uids_;
  463|  92.9k|    sigs_ = src.sigs_;
  464|  92.9k|    sigs_map_ = src.sigs_map_;
  465|  92.9k|    keysigs_ = src.keysigs_;
  466|  92.9k|    subkey_fps_ = src.subkey_fps_;
  467|  92.9k|    primary_fp_set_ = src.primary_fp_set_;
  468|  92.9k|    primary_fp_ = src.primary_fp_;
  469|  92.9k|    expiration_ = src.expiration_;
  470|  92.9k|    flags_ = src.flags_;
  471|  92.9k|    fingerprint_ = src.fingerprint_;
  472|  92.9k|    grip_ = src.grip_;
  473|  92.9k|    uid0_ = src.uid0_;
  474|  92.9k|    uid0_set_ = src.uid0_set_;
  475|  92.9k|    revoked_ = src.revoked_;
  476|  92.9k|    revocation_ = src.revocation_;
  477|  92.9k|    revokers_ = src.revokers_;
  478|  92.9k|    format = src.format;
  479|  92.9k|    validity_ = src.validity_;
  480|  92.9k|    valid_till_ = src.valid_till_;
  481|  92.9k|}
_ZN3rnp3KeyC2ERK22pgp_transferable_key_t:
  483|  42.0k|Key::Key(const pgp_transferable_key_t &src) : Key(src.key)
  484|  42.0k|{
  485|       |    /* add direct-key signatures */
  486|  42.0k|    for (auto &sig : src.signatures) {
  ------------------
  |  Branch (486:20): [True: 15.4k, False: 42.0k]
  ------------------
  487|  15.4k|        add_sig(sig);
  488|  15.4k|    }
  489|       |
  490|       |    /* add userids and their signatures */
  491|   499k|    for (auto &uid : src.userids) {
  ------------------
  |  Branch (491:20): [True: 499k, False: 42.0k]
  ------------------
  492|   499k|        add_uid(uid);
  493|   499k|    }
  494|  42.0k|}
_ZN3rnp3KeyC2ERK25pgp_transferable_subkey_tPS0_:
  496|  26.0k|Key::Key(const pgp_transferable_subkey_t &src, Key *primary) : Key(src.subkey)
  497|  26.0k|{
  498|       |    /* add subkey binding signatures */
  499|  26.0k|    for (auto &sig : src.signatures) {
  ------------------
  |  Branch (499:20): [True: 16.3k, False: 26.0k]
  ------------------
  500|  16.3k|        add_sig(sig);
  501|  16.3k|    }
  502|       |
  503|       |    /* setup key grips if primary is available */
  504|  26.0k|    if (primary) {
  ------------------
  |  Branch (504:9): [True: 24.7k, False: 1.31k]
  ------------------
  505|  24.7k|        primary->link_subkey_fp(*this);
  506|  24.7k|    }
  507|  26.0k|}
_ZNK3rnp3Key9sig_countEv:
  511|  77.3k|{
  512|  77.3k|    return sigs_.size();
  513|  77.3k|}
_ZNK3rnp3Key7get_sigEm:
  523|  12.7k|{
  524|  12.7k|    return get_sig(sigs_.at(idx));
  525|  12.7k|}
_ZNK3rnp3Key7has_sigERKNSt3__15arrayIhLm20EEE:
  529|  5.56M|{
  530|  5.56M|    return sigs_map_.count(id);
  531|  5.56M|}
_ZN3rnp3Key7get_sigERKNSt3__15arrayIhLm20EEE:
  535|  5.40M|{
  536|  5.40M|    if (!has_sig(id)) {
  ------------------
  |  Branch (536:9): [True: 0, False: 5.40M]
  ------------------
  537|      0|        throw rnp_exception(RNP_ERROR_BAD_PARAMETERS);
  538|      0|    }
  539|  5.40M|    return sigs_map_.at(id);
  540|  5.40M|}
_ZNK3rnp3Key7get_sigERKNSt3__15arrayIhLm20EEE:
  544|  25.5k|{
  545|  25.5k|    if (!has_sig(id)) {
  ------------------
  |  Branch (545:9): [True: 0, False: 25.5k]
  ------------------
  546|      0|        throw rnp_exception(RNP_ERROR_BAD_PARAMETERS);
  547|      0|    }
  548|  25.5k|    return sigs_map_.at(id);
  549|  25.5k|}
_ZN3rnp3Key7add_sigERKN3pgp3pkt9SignatureEmb:
  580|  81.1k|{
  581|  81.1k|    auto sigid = sig.get_id();
  582|       |    /* signature id doesn't cover the userid, so drop any earlier copy from its old place */
  583|  81.1k|    del_sig(sigid);
  584|  81.1k|    auto &res = sigs_map_.emplace(std::make_pair(sigid, sig)).first->second;
  585|  81.1k|    res.uid = uid;
  586|  81.1k|    if (uid == UserID::None) {
  ------------------
  |  Branch (586:9): [True: 36.8k, False: 44.3k]
  ------------------
  587|  36.8k|        size_t idx = begin ? 0 : keysigs_.size();
  ------------------
  |  Branch (587:22): [True: 0, False: 36.8k]
  ------------------
  588|  36.8k|        sigs_.insert(sigs_.begin() + idx, sigid);
  589|  36.8k|        keysigs_.insert(keysigs_.begin() + idx, sigid);
  590|  36.8k|        return res;
  591|  36.8k|    }
  592|       |
  593|       |    /* Calculate correct position in sigs_ */
  594|  44.3k|    size_t idx = keysigs_.size();
  595|   415k|    for (size_t u = 0; u < uid; u++) {
  ------------------
  |  Branch (595:24): [True: 371k, False: 44.3k]
  ------------------
  596|   371k|        idx += uids_[u].sig_count();
  597|   371k|    }
  598|  44.3k|    if (!begin) {
  ------------------
  |  Branch (598:9): [True: 44.3k, False: 0]
  ------------------
  599|  44.3k|        idx += uids_[uid].sig_count();
  600|  44.3k|    }
  601|  44.3k|    sigs_.insert(sigs_.begin() + idx, sigid);
  602|  44.3k|    uids_[uid].add_sig(sigid, begin);
  603|  44.3k|    return res;
  604|  81.1k|}
_ZN3rnp3Key7del_sigERKNSt3__15arrayIhLm20EEE:
  608|  81.1k|{
  609|  81.1k|    if (!has_sig(sigid)) {
  ------------------
  |  Branch (609:9): [True: 73.1k, False: 8.01k]
  ------------------
  610|  73.1k|        return false;
  611|  73.1k|    }
  612|  8.01k|    uint32_t uid = get_sig(sigid).uid;
  613|  8.01k|    if (uid == UserID::None) {
  ------------------
  |  Branch (613:9): [True: 4.17k, False: 3.83k]
  ------------------
  614|       |        /* signature over the key itself */
  615|  4.17k|        auto it = std::find(keysigs_.begin(), keysigs_.end(), sigid);
  616|  4.17k|        if (it != keysigs_.end()) {
  ------------------
  |  Branch (616:13): [True: 4.17k, False: 0]
  ------------------
  617|  4.17k|            keysigs_.erase(it);
  618|  4.17k|        }
  619|  4.17k|    } else if (uid < uids_.size()) {
  ------------------
  |  Branch (619:16): [True: 3.83k, False: 0]
  ------------------
  620|       |        /* userid-related signature */
  621|  3.83k|        uids_[uid].del_sig(sigid);
  622|  3.83k|    }
  623|  8.01k|    auto it = std::find(sigs_.begin(), sigs_.end(), sigid);
  624|  8.01k|    if (it != sigs_.end()) {
  ------------------
  |  Branch (624:9): [True: 8.01k, False: 0]
  ------------------
  625|  8.01k|        sigs_.erase(it);
  626|  8.01k|    }
  627|  8.01k|    return sigs_map_.erase(sigid);
  628|  81.1k|}
_ZNK3rnp3Key9uid_countEv:
  675|   137k|{
  676|   137k|    return uids_.size();
  677|   137k|}
_ZN3rnp3Key7get_uidEm:
  681|  28.1k|{
  682|  28.1k|    return uids_.at(idx);
  683|  28.1k|}
_ZNK3rnp3Key7get_uidEm:
  687|  13.8k|{
  688|  13.8k|    return uids_.at(idx);
  689|  13.8k|}
_ZNK3rnp3Key7uid_idxERK16pgp_userid_pkt_t:
  707|   253k|{
  708|  3.57M|    for (uint32_t idx = 0; idx < uids_.size(); idx++) {
  ------------------
  |  Branch (708:28): [True: 3.57M, False: 1.89k]
  ------------------
  709|  3.57M|        if (uids_[idx].pkt == uid) {
  ------------------
  |  Branch (709:13): [True: 251k, False: 3.32M]
  ------------------
  710|   251k|            return idx;
  711|   251k|        }
  712|  3.57M|    }
  713|  1.89k|    return UserID::None;
  714|   253k|}
_ZN3rnp3Key7add_uidERK25pgp_transferable_userid_t:
  764|   499k|{
  765|       |    /* construct userid */
  766|   499k|    uids_.emplace_back(uid.uid);
  767|       |    /* add certifications */
  768|   499k|    for (auto &sig : uid.signatures) {
  ------------------
  |  Branch (768:20): [True: 36.6k, False: 499k]
  ------------------
  769|  36.6k|        add_sig(sig, uid_count() - 1);
  770|  36.6k|    }
  771|   499k|    return uids_.back();
  772|   499k|}
_ZNK3rnp3Key7revokedEv:
  776|   195k|{
  777|   195k|    return revoked_;
  778|   195k|}
_ZN3rnp3Key13clear_revokesEv:
  791|   302k|{
  792|   302k|    revoked_ = false;
  793|   302k|    revocation_ = {};
  794|  2.00M|    for (auto &uid : uids_) {
  ------------------
  |  Branch (794:20): [True: 2.00M, False: 302k]
  ------------------
  795|  2.00M|        uid.revoked = false;
  796|  2.00M|        uid.revocation = {};
  797|  2.00M|    }
  798|   302k|}
_ZN3rnp3Key11add_revokerERKN3pgp11FingerprintE:
  802|  28.1k|{
  803|  28.1k|    if (std::find(revokers_.begin(), revokers_.end(), revoker) == revokers_.end()) {
  ------------------
  |  Branch (803:9): [True: 24.2k, False: 3.93k]
  ------------------
  804|  24.2k|        revokers_.push_back(revoker);
  805|  24.2k|    }
  806|  28.1k|}
_ZNK3rnp3Key11has_revokerERKN3pgp11FingerprintE:
  810|    328|{
  811|    328|    return std::find(revokers_.begin(), revokers_.end(), revoker) != revokers_.end();
  812|    328|}
_ZNK3rnp3Key3pktEv:
  828|  29.8k|{
  829|  29.8k|    return pkt_;
  830|  29.8k|}
_ZN3rnp3Key3pktEv:
  834|      6|{
  835|      6|    return pkt_;
  836|      6|}
_ZNK3rnp3Key8materialEv:
  846|  26.2k|{
  847|  26.2k|    return pkt_.material.get();
  848|  26.2k|}
_ZNK3rnp3Key3algEv:
  858|   272k|{
  859|   272k|    return pkt_.alg;
  860|   272k|}
_ZNK3rnp3Key9encryptedEv:
  882|  13.1k|{
  883|  13.1k|    return is_secret() && material() && !material()->secret();
  ------------------
  |  Branch (883:12): [True: 13.1k, False: 0]
  |  Branch (883:27): [True: 13.1k, False: 0]
  |  Branch (883:41): [True: 11.9k, False: 1.20k]
  ------------------
  884|  13.1k|}
_ZN3rnp3Key10is_pqc_algE16pgp_pubkey_alg_t:
  938|   102k|{
  939|   102k|    switch (alg) {
  940|     90|    case PGP_PKA_KYBER768_X25519:
  ------------------
  |  Branch (940:5): [True: 90, False: 102k]
  ------------------
  941|     90|#if defined(ENABLE_PQC) && defined(ENABLE_CRYPTO_REFRESH)
  942|     90|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|     90|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
  943|    115|    case PGP_PKA_KYBER1024_X448:
  ------------------
  |  Branch (943:5): [True: 25, False: 102k]
  ------------------
  944|    115|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|    115|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
  945|    180|    case PGP_PKA_KYBER768_P384:
  ------------------
  |  Branch (945:5): [True: 65, False: 102k]
  ------------------
  946|    180|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|    180|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
  947|    216|    case PGP_PKA_KYBER1024_P521:
  ------------------
  |  Branch (947:5): [True: 36, False: 102k]
  ------------------
  948|    216|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|    216|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
  949|    254|    case PGP_PKA_KYBER768_BP384:
  ------------------
  |  Branch (949:5): [True: 38, False: 102k]
  ------------------
  950|    254|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|    254|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
  951|    274|    case PGP_PKA_KYBER1024_BP512:
  ------------------
  |  Branch (951:5): [True: 20, False: 102k]
  ------------------
  952|    274|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|    274|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
  953|    629|    case PGP_PKA_DILITHIUM3_ED25519:
  ------------------
  |  Branch (953:5): [True: 355, False: 102k]
  ------------------
  954|    629|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|    629|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
  955|    907|    case PGP_PKA_DILITHIUM5_ED448:
  ------------------
  |  Branch (955:5): [True: 278, False: 102k]
  ------------------
  956|    907|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|    907|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
  957|    936|    case PGP_PKA_DILITHIUM3_P384:
  ------------------
  |  Branch (957:5): [True: 29, False: 102k]
  ------------------
  958|    936|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|    936|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
  959|    979|    case PGP_PKA_DILITHIUM5_P521:
  ------------------
  |  Branch (959:5): [True: 43, False: 102k]
  ------------------
  960|    979|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|    979|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
  961|  1.03k|    case PGP_PKA_DILITHIUM3_BP384:
  ------------------
  |  Branch (961:5): [True: 52, False: 102k]
  ------------------
  962|  1.03k|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|  1.03k|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
  963|  1.07k|    case PGP_PKA_DILITHIUM5_BP512:
  ------------------
  |  Branch (963:5): [True: 46, False: 102k]
  ------------------
  964|  1.07k|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|  1.07k|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
  965|  6.27k|    case PGP_PKA_SPHINCSPLUS_SHAKE_128f:
  ------------------
  |  Branch (965:5): [True: 5.19k, False: 97.4k]
  ------------------
  966|  6.27k|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|  6.27k|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
  967|  10.2k|    case PGP_PKA_SPHINCSPLUS_SHAKE_128s:
  ------------------
  |  Branch (967:5): [True: 3.97k, False: 98.6k]
  ------------------
  968|  10.2k|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|  10.2k|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
  969|  10.4k|    case PGP_PKA_SPHINCSPLUS_SHAKE_256s:
  ------------------
  |  Branch (969:5): [True: 169, False: 102k]
  ------------------
  970|  10.4k|#endif
  971|  10.4k|        return true;
  972|  92.2k|    default:
  ------------------
  |  Branch (972:5): [True: 92.2k, False: 10.4k]
  ------------------
  973|  92.2k|        return false;
  974|   102k|    }
  975|   102k|}
_ZNK3rnp3Key10expirationEv:
 1013|   246k|{
 1014|   246k|    if (pkt_.version >= 4) {
  ------------------
  |  Branch (1014:9): [True: 184k, False: 62.2k]
  ------------------
 1015|   184k|        return expiration_;
 1016|   184k|    }
 1017|       |    /* too large value for pkt.v3_days may overflow uint32_t */
 1018|  62.2k|    if (pkt_.v3_days > (0xffffffffu / 86400)) {
  ------------------
  |  Branch (1018:9): [True: 2.17k, False: 60.0k]
  ------------------
 1019|  2.17k|        return 0xffffffffu;
 1020|  2.17k|    }
 1021|  60.0k|    return (uint32_t) pkt_.v3_days * 86400;
 1022|  62.2k|}
_ZNK3rnp3Key7expiredEv:
 1026|   531k|{
 1027|   531k|    return validity_.expired;
 1028|   531k|}
_ZNK3rnp3Key8creationEv:
 1032|  51.1k|{
 1033|  51.1k|    return pkt_.creation_time;
 1034|  51.1k|}
_ZNK3rnp3Key9is_secretEv:
 1044|   180k|{
 1045|   180k|    return is_secret_key_pkt(pkt_.tag);
 1046|   180k|}
_ZNK3rnp3Key10is_primaryEv:
 1050|   785k|{
 1051|   785k|    return is_primary_key_pkt(pkt_.tag);
 1052|   785k|}
_ZNK3rnp3Key9is_subkeyEv:
 1056|   733k|{
 1057|   733k|    return is_subkey_pkt(pkt_.tag);
 1058|   733k|}
_ZNK3rnp3Key9is_lockedEv:
 1062|  13.1k|{
 1063|  13.1k|    if (!is_secret()) {
  ------------------
  |  Branch (1063:9): [True: 0, False: 13.1k]
  ------------------
 1064|      0|        RNP_LOG("key is not a secret key");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1065|      0|        return false;
 1066|      0|    }
 1067|  13.1k|    return encrypted();
 1068|  13.1k|}
_ZNK3rnp3Key5validEv:
 1082|   339k|{
 1083|   339k|    return validity_.validated && validity_.valid && !validity_.expired;
  ------------------
  |  Branch (1083:12): [True: 339k, False: 0]
  |  Branch (1083:35): [True: 67.6k, False: 271k]
  |  Branch (1083:54): [True: 67.6k, False: 0]
  ------------------
 1084|   339k|}
_ZNK3rnp3Key9validatedEv:
 1088|   321k|{
 1089|   321k|    return validity_.validated;
 1090|   321k|}
_ZNK3rnp3Key17valid_till_commonEb:
 1094|   302k|{
 1095|   302k|    if (!validated()) {
  ------------------
  |  Branch (1095:9): [True: 84.6k, False: 217k]
  ------------------
 1096|  84.6k|        return 0;
 1097|  84.6k|    }
 1098|   217k|    uint64_t till = expiration() ? (uint64_t) creation() + expiration() : UINT64_MAX;
  ------------------
  |  Branch (1098:21): [True: 24.0k, False: 193k]
  ------------------
 1099|   217k|    if (valid()) {
  ------------------
  |  Branch (1099:9): [True: 21.4k, False: 195k]
  ------------------
 1100|  21.4k|        return till;
 1101|  21.4k|    }
 1102|   195k|    if (revoked()) {
  ------------------
  |  Branch (1102:9): [True: 0, False: 195k]
  ------------------
 1103|       |        /* we should not believe to the compromised key at all */
 1104|      0|        if (revocation_.code == PGP_REVOCATION_COMPROMISED) {
  ------------------
  |  Branch (1104:13): [True: 0, False: 0]
  ------------------
 1105|      0|            return 0;
 1106|      0|        }
 1107|      0|        auto &revsig = get_sig(revocation_.sigid);
 1108|      0|        if (revsig.sig.creation() > creation()) {
  ------------------
  |  Branch (1108:13): [True: 0, False: 0]
  ------------------
 1109|       |            /* pick less time from revocation time and expiration time */
 1110|      0|            return std::min((uint64_t) revsig.sig.creation(), till);
 1111|      0|        }
 1112|      0|        return 0;
 1113|      0|    }
 1114|       |    /* if key is not marked as expired then it wasn't valid at all */
 1115|   195k|    return expiry ? till : 0;
  ------------------
  |  Branch (1115:12): [True: 9.08k, False: 186k]
  ------------------
 1116|   195k|}
_ZNK3rnp3Key10valid_tillEv:
 1120|   153k|{
 1121|   153k|    return valid_till_;
 1122|   153k|}
_ZNK3rnp3Key5keyidEv:
 1134|  8.80k|{
 1135|  8.80k|    return fingerprint_.keyid();
 1136|  8.80k|}
_ZNK3rnp3Key2fpEv:
 1140|   822k|{
 1141|   822k|    return fingerprint_;
 1142|   822k|}
_ZNK3rnp3Key10primary_fpEv:
 1152|   124k|{
 1153|   124k|    if (!primary_fp_set_) {
  ------------------
  |  Branch (1153:9): [True: 0, False: 124k]
  ------------------
 1154|      0|        throw rnp_exception(RNP_ERROR_BAD_PARAMETERS);
 1155|      0|    }
 1156|   124k|    return primary_fp_;
 1157|   124k|}
_ZNK3rnp3Key14has_primary_fpEv:
 1161|   179k|{
 1162|   179k|    return primary_fp_set_;
 1163|   179k|}
_ZN3rnp3Key16unset_primary_fpEv:
 1167|    417|{
 1168|    417|    primary_fp_set_ = false;
 1169|    417|    primary_fp_ = {};
 1170|    417|}
_ZN3rnp3Key14link_subkey_fpERS0_:
 1174|  63.1k|{
 1175|  63.1k|    if (!is_primary() || !subkey.is_subkey()) {
  ------------------
  |  Branch (1175:9): [True: 22, False: 63.1k]
  |  Branch (1175:26): [True: 52, False: 63.1k]
  ------------------
 1176|     74|        throw rnp_exception(RNP_ERROR_BAD_PARAMETERS);
 1177|     74|    }
 1178|  63.1k|    subkey.primary_fp_ = fp();
 1179|  63.1k|    subkey.primary_fp_set_ = true;
 1180|  63.1k|    add_subkey_fp(subkey.fp());
 1181|  63.1k|}
_ZN3rnp3Key13add_subkey_fpERKN3pgp11FingerprintE:
 1185|  69.2k|{
 1186|  69.2k|    if (std::find(subkey_fps_.begin(), subkey_fps_.end(), fp) == subkey_fps_.end()) {
  ------------------
  |  Branch (1186:9): [True: 15.1k, False: 54.1k]
  ------------------
 1187|  15.1k|        subkey_fps_.push_back(fp);
 1188|  15.1k|    }
 1189|  69.2k|}
_ZNK3rnp3Key12subkey_countEv:
 1193|   258k|{
 1194|   258k|    return subkey_fps_.size();
 1195|   258k|}
_ZN3rnp3Key16remove_subkey_fpERKN3pgp11FingerprintE:
 1199|  4.20k|{
 1200|  4.20k|    auto it = std::find(subkey_fps_.begin(), subkey_fps_.end(), fp);
 1201|  4.20k|    if (it != subkey_fps_.end()) {
  ------------------
  |  Branch (1201:9): [True: 4.20k, False: 0]
  ------------------
 1202|  4.20k|        subkey_fps_.erase(it);
 1203|  4.20k|    }
 1204|  4.20k|}
_ZNK3rnp3Key13get_subkey_fpEm:
 1208|  97.9k|{
 1209|  97.9k|    return subkey_fps_[idx];
 1210|  97.9k|}
_ZNK3rnp3Key10subkey_fpsEv:
 1214|  35.6k|{
 1215|  35.6k|    return subkey_fps_;
 1216|  35.6k|}
_ZNK3rnp3Key12rawpkt_countEv:
 1220|  60.0k|{
 1221|  60.0k|    if (format == KeyFormat::G10) {
  ------------------
  |  Branch (1221:9): [True: 0, False: 60.0k]
  ------------------
 1222|      0|        return 1;
 1223|      0|    }
 1224|  60.0k|    return 1 + uid_count() + sig_count();
 1225|  60.0k|}
_ZNK3rnp3Key6rawpktEv:
 1235|     51|{
 1236|     51|    return rawpkt_;
 1237|     51|}
_ZN3rnp3Key14latest_selfsigEjb:
 1528|   663k|{
 1529|   663k|    uint32_t   latest = 0;
 1530|   663k|    Signature *res = nullptr;
 1531|       |
 1532|  2.03M|    for (auto &sigid : sigs_) {
  ------------------
  |  Branch (1532:22): [True: 2.03M, False: 663k]
  ------------------
 1533|  2.03M|        auto &sig = get_sig(sigid);
 1534|  2.03M|        if (validated && !sig.validity.valid()) {
  ------------------
  |  Branch (1534:13): [True: 2.03M, False: 0]
  |  Branch (1534:26): [True: 1.84M, False: 190k]
  ------------------
 1535|  1.84M|            continue;
 1536|  1.84M|        }
 1537|   190k|        bool skip = false;
 1538|   190k|        switch (uid) {
 1539|  66.6k|        case UserID::None:
  ------------------
  |  Branch (1539:9): [True: 66.6k, False: 124k]
  ------------------
 1540|  66.6k|            skip = (sig.uid != UserID::None) || !is_direct_self(sig);
  ------------------
  |  Branch (1540:20): [True: 38.4k, False: 28.2k]
  |  Branch (1540:49): [True: 0, False: 28.2k]
  ------------------
 1541|  66.6k|            break;
 1542|  66.6k|        case UserID::Primary: {
  ------------------
  |  Branch (1542:9): [True: 66.6k, False: 124k]
  ------------------
 1543|  66.6k|            skip = !is_self_cert(sig) ||
  ------------------
  |  Branch (1543:20): [True: 29.9k, False: 36.6k]
  ------------------
 1544|  36.6k|                   !sig.sig.get_subpkt(pgp::pkt::sigsub::Type::PrimaryUserID) ||
  ------------------
  |  Branch (1544:20): [True: 31.2k, False: 5.42k]
  ------------------
 1545|  5.42k|                   !sig.sig.primary_uid() || (sig.uid == UserID::None);
  ------------------
  |  Branch (1545:20): [True: 269, False: 5.15k]
  |  Branch (1545:46): [True: 0, False: 5.15k]
  ------------------
 1546|  66.6k|            break;
 1547|      0|        }
 1548|  51.5k|        case UserID::Any:
  ------------------
  |  Branch (1548:9): [True: 51.5k, False: 139k]
  ------------------
 1549|  51.5k|            skip = !is_self_cert(sig) || (sig.uid == UserID::None);
  ------------------
  |  Branch (1549:20): [True: 19.7k, False: 31.8k]
  |  Branch (1549:42): [True: 0, False: 31.8k]
  ------------------
 1550|  51.5k|            break;
 1551|  5.95k|        default:
  ------------------
  |  Branch (1551:9): [True: 5.95k, False: 184k]
  ------------------
 1552|  5.95k|            skip = (sig.uid != uid) || !is_self_cert(sig);
  ------------------
  |  Branch (1552:20): [True: 68, False: 5.88k]
  |  Branch (1552:40): [True: 520, False: 5.36k]
  ------------------
 1553|  5.95k|            break;
 1554|   190k|        }
 1555|   190k|        if (skip) {
  ------------------
  |  Branch (1555:13): [True: 120k, False: 70.5k]
  ------------------
 1556|   120k|            continue;
 1557|   120k|        }
 1558|       |
 1559|  70.5k|        uint32_t creation = sig.sig.creation();
 1560|  70.5k|        if (creation >= latest) {
  ------------------
  |  Branch (1560:13): [True: 64.4k, False: 6.13k]
  ------------------
 1561|  64.4k|            latest = creation;
 1562|  64.4k|            res = &sig;
 1563|  64.4k|        }
 1564|  70.5k|    }
 1565|       |
 1566|       |    /* if there is later self-sig for the same uid without primary flag, then drop res */
 1567|   663k|    if ((uid == UserID::Primary) && res) {
  ------------------
  |  Branch (1567:9): [True: 221k, False: 441k]
  |  Branch (1567:37): [True: 5.13k, False: 216k]
  ------------------
 1568|  5.13k|        auto overres = latest_selfsig(res->uid, validated);
 1569|  5.13k|        if (overres && (overres->sig.creation() > res->sig.creation())) {
  ------------------
  |  Branch (1569:13): [True: 5.13k, False: 0]
  |  Branch (1569:24): [True: 211, False: 4.92k]
  ------------------
 1570|    211|            res = nullptr;
 1571|    211|        }
 1572|  5.13k|    }
 1573|   663k|    return res;
 1574|   663k|}
_ZN3rnp3Key14latest_bindingEb:
 1578|   274k|{
 1579|   274k|    uint32_t   latest = 0;
 1580|   274k|    Signature *res = nullptr;
 1581|       |
 1582|   274k|    for (auto &sigid : sigs_) {
  ------------------
  |  Branch (1582:22): [True: 258k, False: 274k]
  ------------------
 1583|   258k|        auto &sig = get_sig(sigid);
 1584|   258k|        if (validated && !sig.validity.valid()) {
  ------------------
  |  Branch (1584:13): [True: 250k, False: 7.66k]
  |  Branch (1584:26): [True: 230k, False: 19.7k]
  ------------------
 1585|   230k|            continue;
 1586|   230k|        }
 1587|  27.3k|        if (!is_binding(sig) || !is_authorized(sig)) {
  ------------------
  |  Branch (1587:13): [True: 4.51k, False: 22.8k]
  |  Branch (1587:33): [True: 63, False: 22.8k]
  ------------------
 1588|  4.57k|            continue;
 1589|  4.57k|        }
 1590|       |
 1591|  22.8k|        uint32_t creation = sig.sig.creation();
 1592|  22.8k|        if (creation >= latest) {
  ------------------
  |  Branch (1592:13): [True: 21.7k, False: 1.11k]
  ------------------
 1593|  21.7k|            latest = creation;
 1594|  21.7k|            res = &sig;
 1595|  21.7k|        }
 1596|  22.8k|    }
 1597|   274k|    return res;
 1598|   274k|}
_ZNK3rnp3Key9is_signerERKNS_9SignatureE:
 1645|   413k|{
 1646|   413k|    return is_issuer(sig.sig, fp());
 1647|   413k|}
_ZNK3rnp3Key13is_authorizedERKNS_9SignatureE:
 1651|  66.0k|{
 1652|       |    /* subkey binding and revocation must be issued by the primary key. Without known primary
 1653|       |     * key subkey is not valid anyway. */
 1654|  66.0k|    if (is_subkey()) {
  ------------------
  |  Branch (1654:9): [True: 22.8k, False: 43.1k]
  ------------------
 1655|  22.8k|        return !has_primary_fp() || is_issuer(sig.sig, primary_fp());
  ------------------
  |  Branch (1655:16): [True: 3.23k, False: 19.6k]
  |  Branch (1655:37): [True: 19.5k, False: 63]
  ------------------
 1656|  22.8k|    }
 1657|  43.1k|    if (is_signer(sig)) {
  ------------------
  |  Branch (1657:9): [True: 43.1k, False: 0]
  ------------------
 1658|  43.1k|        return true;
 1659|  43.1k|    }
 1660|       |    /* key revocation may be issued by the designated revoker as well */
 1661|      0|    return (sig.sig.type() == PGP_SIG_REV_KEY) && sig.sig.has_keyfp() &&
  ------------------
  |  Branch (1661:12): [True: 0, False: 0]
  |  Branch (1661:51): [True: 0, False: 0]
  ------------------
 1662|      0|           has_revoker(sig.sig.keyfp());
  ------------------
  |  Branch (1662:12): [True: 0, False: 0]
  ------------------
 1663|  43.1k|}
_ZNK3rnp3Key12expired_withERKNS_9SignatureEm:
 1667|  22.5k|{
 1668|       |    /* key expiration: absence of subpkt or 0 means it never expires */
 1669|  22.5k|    uint64_t expiration = sig.sig.key_expiration();
 1670|  22.5k|    if (!expiration) {
  ------------------
  |  Branch (1670:9): [True: 20.0k, False: 2.56k]
  ------------------
 1671|  20.0k|        return false;
 1672|  20.0k|    }
 1673|  2.56k|    return expiration + creation() < at;
 1674|  22.5k|}
_ZNK3rnp3Key12is_self_certERKNS_9SignatureE:
 1678|   167k|{
 1679|   167k|    return is_primary() && sig.is_cert() && is_signer(sig);
  ------------------
  |  Branch (1679:12): [True: 159k, False: 7.18k]
  |  Branch (1679:28): [True: 101k, False: 58.6k]
  |  Branch (1679:45): [True: 101k, False: 0]
  ------------------
 1680|   167k|}
_ZNK3rnp3Key14is_direct_selfERKNS_9SignatureE:
 1684|   115k|{
 1685|   115k|    return is_primary() && (sig.sig.type() == PGP_SIG_DIRECT) && is_signer(sig);
  ------------------
  |  Branch (1685:12): [True: 115k, False: 0]
  |  Branch (1685:28): [True: 59.2k, False: 56.4k]
  |  Branch (1685:66): [True: 59.2k, False: 0]
  ------------------
 1686|   115k|}
_ZNK3rnp3Key13is_revocationERKNS_9SignatureE:
 1690|   189k|{
 1691|   189k|    return is_primary() ? (sig.sig.type() == PGP_SIG_REV_KEY) :
  ------------------
  |  Branch (1691:12): [True: 157k, False: 32.3k]
  ------------------
 1692|   189k|                          (sig.sig.type() == PGP_SIG_REV_SUBKEY);
 1693|   189k|}
_ZNK3rnp3Key17is_uid_revocationERKNS_9SignatureE:
 1697|  47.4k|{
 1698|  47.4k|    return is_primary() && (sig.sig.type() == PGP_SIG_REV_CERT);
  ------------------
  |  Branch (1698:12): [True: 47.4k, False: 0]
  |  Branch (1698:28): [True: 1.39k, False: 46.0k]
  ------------------
 1699|  47.4k|}
_ZNK3rnp3Key10is_bindingERKNS_9SignatureE:
 1703|  59.1k|{
 1704|  59.1k|    return is_subkey() && (sig.sig.type() == PGP_SIG_SUBKEY);
  ------------------
  |  Branch (1704:12): [True: 55.0k, False: 4.06k]
  |  Branch (1704:27): [True: 37.2k, False: 17.8k]
  ------------------
 1705|  59.1k|}
_ZNK3rnp3Key12validate_sigERKS0_RNS_9SignatureERKNS_15SecurityContextE:
 1709|  24.9k|{
 1710|  24.9k|    sig.validity.reset();
 1711|       |
 1712|  24.9k|    SignatureInfo sinfo;
 1713|  24.9k|    sinfo.sig = &sig.sig;
 1714|  24.9k|    sinfo.signer_valid = true;
 1715|  24.9k|    sinfo.ignore_expiry = key.is_self_cert(sig) || key.is_binding(sig);
  ------------------
  |  Branch (1715:27): [True: 13.6k, False: 11.2k]
  |  Branch (1715:52): [True: 7.16k, False: 4.08k]
  ------------------
 1716|  24.9k|    sinfo.ignore_sig_expiry = sig.is_revocation();
 1717|       |
 1718|  24.9k|    pgp_sig_type_t stype = sig.sig.type();
 1719|  24.9k|    try {
 1720|  24.9k|        switch (stype) {
 1721|      0|        case PGP_SIG_BINARY:
  ------------------
  |  Branch (1721:9): [True: 0, False: 24.9k]
  ------------------
 1722|      0|        case PGP_SIG_TEXT:
  ------------------
  |  Branch (1722:9): [True: 0, False: 24.9k]
  ------------------
 1723|      0|        case PGP_SIG_STANDALONE:
  ------------------
  |  Branch (1723:9): [True: 0, False: 24.9k]
  ------------------
 1724|      0|        case PGP_SIG_PRIMARY:
  ------------------
  |  Branch (1724:9): [True: 0, False: 24.9k]
  ------------------
 1725|      0|            RNP_LOG("Invalid key signature type: %d", (int) stype);
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1726|      0|            sinfo.validity.add_error(RNP_ERROR_SIG_WRONG_KEY_SIG);
 1727|      0|            break;
 1728|  3.75k|        case PGP_CERT_GENERIC:
  ------------------
  |  Branch (1728:9): [True: 3.75k, False: 21.1k]
  ------------------
 1729|  3.82k|        case PGP_CERT_PERSONA:
  ------------------
  |  Branch (1729:9): [True: 66, False: 24.8k]
  ------------------
 1730|  4.13k|        case PGP_CERT_CASUAL:
  ------------------
  |  Branch (1730:9): [True: 309, False: 24.6k]
  ------------------
 1731|  13.6k|        case PGP_CERT_POSITIVE:
  ------------------
  |  Branch (1731:9): [True: 9.56k, False: 15.3k]
  ------------------
 1732|  13.9k|        case PGP_SIG_REV_CERT: {
  ------------------
  |  Branch (1732:9): [True: 243, False: 24.7k]
  ------------------
 1733|  13.9k|            if (sig.uid >= key.uid_count()) {
  ------------------
  |  Branch (1733:17): [True: 65, False: 13.8k]
  ------------------
 1734|     65|                RNP_LOG("Userid not found");
  ------------------
  |  |   84|     65|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     65|    do {                                                                                 \
  |  |  |  |   77|     65|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 65, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     65|            break;                                                                       \
  |  |  |  |   79|     65|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1735|     65|                sinfo.validity.add_error(RNP_ERROR_SIG_UID_MISSING);
 1736|     65|                break;
 1737|     65|            }
 1738|  13.8k|            validate_cert(sinfo, key.pkt(), key.get_uid(sig.uid).pkt, ctx);
 1739|  13.8k|            break;
 1740|  13.9k|        }
 1741|  7.16k|        case PGP_SIG_SUBKEY:
  ------------------
  |  Branch (1741:9): [True: 7.16k, False: 17.7k]
  ------------------
 1742|  7.16k|            if (!is_signer(sig)) {
  ------------------
  |  Branch (1742:17): [True: 1.12k, False: 6.03k]
  ------------------
 1743|  1.12k|                RNP_LOG("Invalid subkey binding's signer.");
  ------------------
  |  |   84|  1.12k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  1.12k|    do {                                                                                 \
  |  |  |  |   77|  1.12k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 1.12k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  1.12k|            break;                                                                       \
  |  |  |  |   79|  1.12k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1744|  1.12k|                sinfo.validity.add_error(RNP_ERROR_SIG_WRONG_BINDING);
 1745|  1.12k|                break;
 1746|  1.12k|            }
 1747|  6.03k|            validate_binding(sinfo, key, ctx);
 1748|  6.03k|            break;
 1749|  2.79k|        case PGP_SIG_DIRECT:
  ------------------
  |  Branch (1749:9): [True: 2.79k, False: 22.1k]
  ------------------
 1750|  2.79k|            if (!is_signer(sig)) {
  ------------------
  |  Branch (1750:17): [True: 0, False: 2.79k]
  ------------------
 1751|      0|                RNP_LOG("Invalid direct key signer.");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1752|      0|                sinfo.validity.add_error(RNP_ERROR_SIG_WRONG_DIRECT);
 1753|      0|                break;
 1754|      0|            }
 1755|  2.79k|            validate_direct(sinfo, ctx);
 1756|  2.79k|            break;
 1757|  1.02k|        case PGP_SIG_REV_KEY:
  ------------------
  |  Branch (1757:9): [True: 1.02k, False: 23.9k]
  ------------------
 1758|  1.02k|            if (!is_signer(sig)) {
  ------------------
  |  Branch (1758:17): [True: 0, False: 1.02k]
  ------------------
 1759|      0|                RNP_LOG("Invalid key revocation signer.");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1760|      0|                sinfo.validity.add_error(RNP_ERROR_SIG_WRONG_REV);
 1761|      0|                break;
 1762|      0|            }
 1763|  1.02k|            validate_key_rev(sinfo, key.pkt(), ctx);
 1764|  1.02k|            break;
 1765|     22|        case PGP_SIG_REV_SUBKEY:
  ------------------
  |  Branch (1765:9): [True: 22, False: 24.9k]
  ------------------
 1766|     22|            if (!is_signer(sig)) {
  ------------------
  |  Branch (1766:17): [True: 10, False: 12]
  ------------------
 1767|     10|                RNP_LOG("Invalid subkey revocation's signer.");
  ------------------
  |  |   84|     10|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     10|    do {                                                                                 \
  |  |  |  |   77|     10|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 10, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     10|            break;                                                                       \
  |  |  |  |   79|     10|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1768|     10|                sinfo.validity.add_error(RNP_ERROR_SIG_WRONG_REV);
 1769|     10|                break;
 1770|     10|            }
 1771|     12|            validate_sub_rev(sinfo, key.pkt(), ctx);
 1772|     12|            break;
 1773|      0|        default:
  ------------------
  |  Branch (1773:9): [True: 0, False: 24.9k]
  ------------------
 1774|      0|            RNP_LOG("Unsupported key signature type: %d", (int) stype);
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1775|      0|            sinfo.validity.add_error(RNP_ERROR_SIG_UNSUPPORTED);
 1776|      0|            break;
 1777|  24.9k|        }
 1778|  24.9k|    } catch (const std::exception &e) {
 1779|     80|        RNP_LOG("Key signature validation failed: %s", e.what());
  ------------------
  |  |   84|     80|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     80|    do {                                                                                 \
  |  |  |  |   77|     80|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 80, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     80|            break;                                                                       \
  |  |  |  |   79|     80|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1780|     80|        sinfo.validity.add_error(RNP_ERROR_SIG_ERROR);
 1781|     80|    }
 1782|       |
 1783|  24.9k|    sinfo.validity.mark_validated();
 1784|  24.9k|    sig.validity = std::move(sinfo.validity);
 1785|  24.9k|}
_ZNK3rnp3Key12validate_sigERNS_13SignatureInfoERNS_4HashERKNS_15SecurityContextEPK17pgp_literal_hdr_t:
 1792|  23.6k|{
 1793|       |    /* Validate signature itself */
 1794|  23.6k|    auto res = signature_validate(*sinfo.sig, *pkt_.material, hash, ctx, hdr);
 1795|  23.6k|    if (!sinfo.signer_valid && !valid_at(sinfo.sig->creation())) {
  ------------------
  |  Branch (1795:9): [True: 0, False: 23.6k]
  |  Branch (1795:32): [True: 0, False: 0]
  ------------------
 1796|      0|        RNP_LOG("invalid or untrusted key");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1797|      0|        res.add_error(RNP_ERROR_SIG_SIGNER_UNTRUSTED);
 1798|      0|    }
 1799|       |
 1800|       |    /* Check signature's expiration time */
 1801|  23.6k|    uint32_t now = ctx.time();
 1802|  23.6k|    uint32_t create = sinfo.sig->creation();
 1803|  23.6k|    uint32_t expiry = sinfo.sig->expiration();
 1804|  23.6k|    if (create > now) {
  ------------------
  |  Branch (1804:9): [True: 705, False: 22.9k]
  ------------------
 1805|       |        /* signature created later then now */
 1806|    705|        RNP_LOG("signature created %d seconds in future", (int) (create - now));
  ------------------
  |  |   84|    705|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    705|    do {                                                                                 \
  |  |  |  |   77|    705|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 705, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    705|            break;                                                                       \
  |  |  |  |   79|    705|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1807|    705|        if (!sinfo.ignore_sig_expiry) {
  ------------------
  |  Branch (1807:13): [True: 311, False: 394]
  ------------------
 1808|    311|            res.add_error(RNP_ERROR_SIG_FROM_FUTURE);
 1809|    311|        }
 1810|    705|    }
 1811|  23.6k|    if (create && expiry && (create + expiry < now)) {
  ------------------
  |  Branch (1811:9): [True: 23.2k, False: 438]
  |  Branch (1811:19): [True: 124, False: 23.1k]
  |  Branch (1811:29): [True: 87, False: 37]
  ------------------
 1812|       |        /* signature expired */
 1813|     87|        RNP_LOG("signature expired");
  ------------------
  |  |   84|     87|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     87|    do {                                                                                 \
  |  |  |  |   77|     87|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 87, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     87|            break;                                                                       \
  |  |  |  |   79|     87|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1814|     87|        if (!sinfo.ignore_sig_expiry) {
  ------------------
  |  Branch (1814:13): [True: 83, False: 4]
  ------------------
 1815|     83|            res.add_error(RNP_ERROR_SIG_EXPIRED);
 1816|     83|        }
 1817|     87|    }
 1818|       |
 1819|       |    /* check key creation time vs signature creation */
 1820|  23.6k|    if (creation() > create) {
  ------------------
  |  Branch (1820:9): [True: 1.73k, False: 21.9k]
  ------------------
 1821|  1.73k|        RNP_LOG("key is newer than signature");
  ------------------
  |  |   84|  1.73k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  1.73k|    do {                                                                                 \
  |  |  |  |   77|  1.73k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 1.73k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  1.73k|            break;                                                                       \
  |  |  |  |   79|  1.73k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1822|  1.73k|        res.add_error(RNP_ERROR_SIG_OLDER_KEY);
 1823|  1.73k|    }
 1824|       |
 1825|       |    /* check whether key was not expired when sig created */
 1826|  23.6k|    if (!sinfo.ignore_expiry && expiration() && (creation() + expiration() < create)) {
  ------------------
  |  Branch (1826:9): [True: 4.06k, False: 19.5k]
  |  Branch (1826:33): [True: 813, False: 3.25k]
  |  Branch (1826:49): [True: 575, False: 238]
  ------------------
 1827|    575|        RNP_LOG("signature made after key expiration");
  ------------------
  |  |   84|    575|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    575|    do {                                                                                 \
  |  |  |  |   77|    575|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 575, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    575|            break;                                                                       \
  |  |  |  |   79|    575|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1828|    575|        res.add_error(RNP_ERROR_SIG_EXPIRED_KEY);
 1829|    575|    }
 1830|       |
 1831|       |    /* Check signer's fingerprint. RNP_ERROR_SIG_FP_MISMATCH stays "bytes differ".
 1832|       |     * A v4/v6 version-octet mismatch is a malformed issuer fingerprint (RFC 9580
 1833|       |     * §5.2.3.35) and is reported as a general signature error, without a new code. */
 1834|  23.6k|    if (sinfo.sig->has_keyfp()) {
  ------------------
  |  Branch (1834:9): [True: 16.1k, False: 7.54k]
  ------------------
 1835|  16.1k|        if (!sinfo.sig->issuer_fp_version_matches()) {
  ------------------
  |  Branch (1835:13): [True: 0, False: 16.1k]
  ------------------
 1836|      0|            RNP_LOG("issuer fingerprint version does not match signature version");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1837|      0|            res.add_error(RNP_ERROR_SIG_ERROR);
 1838|  16.1k|        } else if (sinfo.sig->keyfp() != fp()) {
  ------------------
  |  Branch (1838:20): [True: 0, False: 16.1k]
  ------------------
 1839|      0|            RNP_LOG("issuer fingerprint doesn't match signer's one");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1840|      0|            res.add_error(RNP_ERROR_SIG_FP_MISMATCH);
 1841|      0|        }
 1842|  16.1k|    }
 1843|       |
 1844|       |    /* Check for unknown critical notations, unhashed ones may be added by anyone */
 1845|   130k|    for (auto &subpkt : sinfo.sig->subpkts) {
  ------------------
  |  Branch (1845:23): [True: 130k, False: 23.6k]
  ------------------
 1846|   130k|        if (!subpkt->hashed() || !subpkt->critical() ||
  ------------------
  |  Branch (1846:13): [True: 19.0k, False: 111k]
  |  Branch (1846:34): [True: 109k, False: 1.90k]
  ------------------
 1847|   130k|            (subpkt->type() != pgp::pkt::sigsub::Type::NotationData)) {
  ------------------
  |  Branch (1847:13): [True: 1.89k, False: 9]
  ------------------
 1848|   130k|            continue;
 1849|   130k|        }
 1850|      9|        auto &notation = dynamic_cast<pgp::pkt::sigsub::NotationData &>(*subpkt);
 1851|      9|        RNP_LOG("unknown critical notation: %s", notation.name().c_str());
  ------------------
  |  |   84|      9|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      9|    do {                                                                                 \
  |  |  |  |   77|      9|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 9, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      9|            break;                                                                       \
  |  |  |  |   79|      9|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1852|      9|        res.add_error(RNP_ERROR_SIG_UNKNOWN_NOTATION);
 1853|      9|    }
 1854|       |
 1855|  47.5k|    for (auto &err : res.errors()) {
  ------------------
  |  Branch (1855:20): [True: 47.5k, False: 23.6k]
  ------------------
 1856|  47.5k|        sinfo.validity.add_error(err);
 1857|  47.5k|    }
 1858|  23.6k|    sinfo.validity.mark_validated();
 1859|  23.6k|}
_ZNK3rnp3Key13validate_certERNS_13SignatureInfoERK13pgp_key_pkt_tRK16pgp_userid_pkt_tRKNS_15SecurityContextE:
 1866|  13.8k|{
 1867|  13.8k|    auto hash = signature_hash_certification(*sinfo.sig, key, uid);
 1868|  13.8k|    validate_sig(sinfo, *hash, ctx);
 1869|  13.8k|}
_ZNK3rnp3Key16validate_bindingERNS_13SignatureInfoERKS0_RKNS_15SecurityContextE:
 1875|  6.03k|{
 1876|  6.03k|    if (!is_primary() || !subkey.is_subkey()) {
  ------------------
  |  Branch (1876:9): [True: 0, False: 6.03k]
  |  Branch (1876:26): [True: 0, False: 6.03k]
  ------------------
 1877|      0|        RNP_LOG("Invalid binding signature key type(s)");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1878|      0|        sinfo.validity.add_error(RNP_ERROR_SIG_ERROR);
 1879|      0|        sinfo.validity.mark_validated();
 1880|      0|        return;
 1881|      0|    }
 1882|       |    /* RFC 9980 §7.2: Subkey binding signatures (Signature Type 0x18) over
 1883|       |     * PQ(/T) algorithms MUST NOT be made with MD5, SHA-1, or RIPEMD-160.
 1884|       |     * A receiving implementation MUST treat such a signature as invalid. */
 1885|  6.03k|#if defined(ENABLE_PQC)
 1886|  6.03k|    if (Key::is_pqc_alg(subkey.alg())) {
  ------------------
  |  Branch (1886:9): [True: 0, False: 6.03k]
  ------------------
 1887|      0|        auto halg = sinfo.sig->halg;
 1888|      0|        if (halg == PGP_HASH_MD5 || halg == PGP_HASH_SHA1 || halg == PGP_HASH_RIPEMD) {
  ------------------
  |  Branch (1888:13): [True: 0, False: 0]
  |  Branch (1888:37): [True: 0, False: 0]
  |  Branch (1888:62): [True: 0, False: 0]
  ------------------
 1889|      0|            RNP_LOG("Weak hash algorithm %d in PQ subkey binding signature (RFC 9980 §7.2)",
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1890|      0|                    (int) halg);
 1891|      0|            sinfo.validity.add_error(RNP_ERROR_SIG_WEAK_HASH);
 1892|      0|            sinfo.validity.mark_validated();
 1893|      0|            return;
 1894|      0|        }
 1895|      0|    }
 1896|  6.03k|#endif
 1897|  6.03k|    auto hash = signature_hash_binding(*sinfo.sig, pkt(), subkey.pkt());
 1898|  6.03k|    validate_sig(sinfo, *hash, ctx);
 1899|       |    /* Check whether subkey is capable of signing and return otherwise. Without key flags
 1900|       |     * the subkey gets the algorithm's capabilities, see refresh_data(). */
 1901|  6.03k|    pgp_key_flags_t realkf = (pgp_key_flags_t) sinfo.sig->key_flags();
 1902|  6.03k|    if (!sinfo.sig->has_subpkt(PGP_SIG_SUBPKT_KEY_FLAGS)) {
  ------------------
  |  Branch (1902:9): [True: 223, False: 5.81k]
  ------------------
 1903|    223|        realkf = pgp_pk_alg_capabilities(subkey.alg());
 1904|    223|    }
 1905|  6.03k|    if (!sinfo.validity.valid() || !(realkf & PGP_KF_SIGN)) {
  ------------------
  |  Branch (1905:9): [True: 5.58k, False: 449]
  |  Branch (1905:36): [True: 449, False: 0]
  ------------------
 1906|  6.03k|        return;
 1907|  6.03k|    }
 1908|       |
 1909|       |    /* check primary key binding signature if any */
 1910|      1|    auto sub = dynamic_cast<pgp::pkt::sigsub::EmbeddedSignature *>(
 1911|      1|      sinfo.sig->get_subpkt(pgp::pkt::sigsub::Type::EmbeddedSignature, false));
 1912|      1|    if (!sub) {
  ------------------
  |  Branch (1912:9): [True: 0, False: 1]
  ------------------
 1913|      0|        RNP_LOG("error! no primary key binding signature");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1914|      0|        sinfo.validity.add_error(RNP_ERROR_SIG_NO_PRIMARY_BINDING);
 1915|      0|        return;
 1916|      0|    }
 1917|      1|    if (!sub->signature()) {
  ------------------
  |  Branch (1917:9): [True: 0, False: 1]
  ------------------
 1918|      0|        RNP_LOG("invalid embedded signature subpacket");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1919|      0|        sinfo.validity.add_error(RNP_ERROR_SIG_BINDING_PARSE);
 1920|      0|        return;
 1921|      0|    }
 1922|      1|    if (sub->signature()->type() != PGP_SIG_PRIMARY) {
  ------------------
  |  Branch (1922:9): [True: 0, False: 1]
  ------------------
 1923|      0|        RNP_LOG("invalid primary key binding signature");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1924|      0|        sinfo.validity.add_error(RNP_ERROR_SIG_WRONG_BIND_TYPE);
 1925|      0|        return;
 1926|      0|    }
 1927|      1|    if (sub->signature()->version < PGP_V4) {
  ------------------
  |  Branch (1927:9): [True: 0, False: 1]
  ------------------
 1928|      0|        RNP_LOG("invalid primary key binding signature version");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1929|      0|        sinfo.validity.add_error(RNP_ERROR_SIG_WRONG_BIND_TYPE);
 1930|      0|        return;
 1931|      0|    }
 1932|       |
 1933|      1|    hash = signature_hash_binding(*sub->signature(), pkt(), subkey.pkt());
 1934|      1|    SignatureInfo bindinfo;
 1935|      1|    bindinfo.sig = sub->signature();
 1936|      1|    bindinfo.signer_valid = true;
 1937|      1|    bindinfo.ignore_expiry = true;
 1938|      1|    subkey.validate_sig(bindinfo, *hash, ctx);
 1939|      1|    if (!bindinfo.validity.valid()) {
  ------------------
  |  Branch (1939:9): [True: 0, False: 1]
  ------------------
 1940|      0|        sinfo.validity.add_error(RNP_ERROR_SIG_INVALID_BINDING);
 1941|      0|        for (auto &err : bindinfo.validity.errors()) {
  ------------------
  |  Branch (1941:24): [True: 0, False: 0]
  ------------------
 1942|      0|            sinfo.validity.add_error(err);
 1943|      0|        }
 1944|      0|    }
 1945|      1|}
_ZNK3rnp3Key16validate_sub_revERNS_13SignatureInfoERK13pgp_key_pkt_tRKNS_15SecurityContextE:
 1951|     12|{
 1952|     12|    auto hash = signature_hash_binding(*sinfo.sig, pkt(), subkey);
 1953|     12|    validate_sig(sinfo, *hash, ctx);
 1954|     12|}
_ZNK3rnp3Key15validate_directERNS_13SignatureInfoERKNS_15SecurityContextE:
 1958|  2.79k|{
 1959|  2.79k|    auto hash = signature_hash_direct(*sinfo.sig, pkt());
 1960|  2.79k|    validate_sig(sinfo, *hash, ctx);
 1961|  2.79k|}
_ZNK3rnp3Key16validate_key_revERNS_13SignatureInfoERK13pgp_key_pkt_tRKNS_15SecurityContextE:
 1967|  1.02k|{
 1968|  1.02k|    auto hash = signature_hash_direct(*sinfo.sig, key);
 1969|  1.02k|    validate_sig(sinfo, *hash, ctx);
 1970|  1.02k|}
_ZN3rnp3Key24validate_self_signaturesERKNS_15SecurityContextE:
 1974|   221k|{
 1975|   695k|    for (auto &sigid : sigs_) {
  ------------------
  |  Branch (1975:22): [True: 695k, False: 221k]
  ------------------
 1976|   695k|        auto &sig = get_sig(sigid);
 1977|   695k|        if (sig.validity.validated()) {
  ------------------
  |  Branch (1977:13): [True: 521k, False: 173k]
  ------------------
 1978|   521k|            continue;
 1979|   521k|        }
 1980|   173k|        if (!is_signer(sig)) {
  ------------------
  |  Branch (1980:13): [True: 152k, False: 20.7k]
  ------------------
 1981|   152k|            continue;
 1982|   152k|        }
 1983|       |
 1984|  20.7k|        if (is_direct_self(sig) || is_self_cert(sig) || is_uid_revocation(sig) ||
  ------------------
  |  Branch (1984:13): [True: 2.79k, False: 17.9k]
  |  Branch (1984:36): [True: 13.6k, False: 4.28k]
  |  Branch (1984:57): [True: 243, False: 4.04k]
  ------------------
 1985|  17.7k|            is_revocation(sig)) {
  ------------------
  |  Branch (1985:13): [True: 1.02k, False: 3.01k]
  ------------------
 1986|  17.7k|            validate_sig(*this, sig, ctx);
 1987|  17.7k|        }
 1988|  20.7k|    }
 1989|   221k|}
_ZN3rnp3Key24validate_self_signaturesERS0_RKNS_15SecurityContextE:
 1993|   269k|{
 1994|   269k|    for (auto &sigid : sigs_) {
  ------------------
  |  Branch (1994:22): [True: 250k, False: 269k]
  ------------------
 1995|   250k|        auto &sig = get_sig(sigid);
 1996|   250k|        if (sig.validity.validated()) {
  ------------------
  |  Branch (1996:13): [True: 230k, False: 20.4k]
  ------------------
 1997|   230k|            continue;
 1998|   230k|        }
 1999|       |
 2000|  20.4k|        if (is_binding(sig) || is_revocation(sig)) {
  ------------------
  |  Branch (2000:13): [True: 7.16k, False: 13.3k]
  |  Branch (2000:32): [True: 22, False: 13.2k]
  ------------------
 2001|  7.18k|            primary.validate_sig(*this, sig, ctx);
 2002|  7.18k|        }
 2003|  20.4k|    }
 2004|   269k|}
_ZN3rnp3Key22validate_desig_revokesERNS_8KeyStoreE:
 2008|   477k|{
 2009|   477k|    if (revokers_.empty()) {
  ------------------
  |  Branch (2009:9): [True: 470k, False: 6.92k]
  ------------------
 2010|   470k|        return false;
 2011|   470k|    }
 2012|  6.92k|    bool refresh = false;
 2013|  86.3k|    for (auto &sigid : sigs_) {
  ------------------
  |  Branch (2013:22): [True: 86.3k, False: 6.92k]
  ------------------
 2014|  86.3k|        auto &sig = get_sig(sigid);
 2015|  86.3k|        if (!is_revocation(sig) || is_signer(sig)) {
  ------------------
  |  Branch (2015:13): [True: 84.9k, False: 1.43k]
  |  Branch (2015:36): [True: 1.02k, False: 408]
  ------------------
 2016|  85.9k|            continue;
 2017|  85.9k|        }
 2018|       |        /* Don't think we should deal with sigs without issuer's fingerprint */
 2019|    408|        if (!sig.sig.has_keyfp() || !has_revoker(sig.sig.keyfp())) {
  ------------------
  |  Branch (2019:13): [True: 80, False: 328]
  |  Branch (2019:13): [True: 408, False: 0]
  |  Branch (2019:37): [True: 328, False: 0]
  ------------------
 2020|    408|            continue;
 2021|    408|        }
 2022|       |        /* If signature was validated and valid, do not re-validate it */
 2023|      0|        if (sig.validity.valid()) {
  ------------------
  |  Branch (2023:13): [True: 0, False: 0]
  ------------------
 2024|      0|            continue;
 2025|      0|        }
 2026|       |
 2027|      0|        auto revoker = keyring.get_signer(sig.sig);
 2028|      0|        if (!revoker) {
  ------------------
  |  Branch (2028:13): [True: 0, False: 0]
  ------------------
 2029|      0|            continue;
 2030|      0|        }
 2031|       |
 2032|      0|        revoker->validate_sig(*this, sig, keyring.secctx);
 2033|      0|        if (sig.validity.valid()) {
  ------------------
  |  Branch (2033:13): [True: 0, False: 0]
  ------------------
 2034|       |            /* return true only if new valid revocation was added */
 2035|      0|            refresh = true;
 2036|      0|        }
 2037|      0|    }
 2038|       |
 2039|  6.92k|    return refresh;
 2040|   477k|}
_ZN3rnp3Key16validate_primaryERNS_8KeyStoreE:
 2044|  78.3k|{
 2045|       |    /* validate signatures if needed */
 2046|  78.3k|    validate_self_signatures(keyring.secctx);
 2047|       |    /* designated revokers may have changed */
 2048|  78.3k|    refresh_revokers();
 2049|       |
 2050|       |    /* consider public key as valid on this level if it is not expired and has at least one
 2051|       |     * valid self-signature, and is not revoked */
 2052|  78.3k|    validity_.reset();
 2053|  78.3k|    validity_.validated = true;
 2054|  78.3k|    bool has_cert = false;
 2055|  78.3k|    bool has_expired = false;
 2056|       |    /* check whether key is revoked */
 2057|   244k|    for (auto &sigid : sigs_) {
  ------------------
  |  Branch (2057:22): [True: 244k, False: 78.3k]
  ------------------
 2058|   244k|        auto &sig = get_sig(sigid);
 2059|   244k|        if (!sig.validity.valid()) {
  ------------------
  |  Branch (2059:13): [True: 220k, False: 23.5k]
  ------------------
 2060|   220k|            continue;
 2061|   220k|        }
 2062|  23.5k|        if (is_revocation(sig) && is_authorized(sig)) {
  ------------------
  |  Branch (2062:13): [True: 0, False: 23.5k]
  |  Branch (2062:35): [True: 0, False: 0]
  ------------------
 2063|      0|            return;
 2064|      0|        }
 2065|  23.5k|    }
 2066|       |    /* if we have direct-key signature, then it has higher priority for expiration check */
 2067|  78.3k|    uint64_t now = keyring.secctx.time();
 2068|  78.3k|    auto     dirsig = latest_selfsig(UserID::None);
 2069|  78.3k|    if (dirsig) {
  ------------------
  |  Branch (2069:9): [True: 5.20k, False: 73.1k]
  ------------------
 2070|  5.20k|        has_expired = expired_with(*dirsig, now);
 2071|  5.20k|        has_cert = !has_expired;
 2072|  5.20k|    }
 2073|       |    /* if we have primary uid and it is more restrictive, then use it as well */
 2074|  78.3k|    Signature *prisig = nullptr;
 2075|  78.3k|    if (!has_expired && (prisig = latest_selfsig(UserID::Primary))) {
  ------------------
  |  Branch (2075:9): [True: 78.3k, False: 0]
  |  Branch (2075:25): [True: 1.77k, False: 76.5k]
  ------------------
 2076|  1.77k|        has_expired = expired_with(*prisig, now);
 2077|  1.77k|        has_cert = !has_expired;
 2078|  1.77k|    }
 2079|       |    /* if we don't have direct-key sig and primary uid, use the latest self-cert */
 2080|  78.3k|    Signature *latest = nullptr;
 2081|  78.3k|    if (!dirsig && !prisig && (latest = latest_selfsig(UserID::Any))) {
  ------------------
  |  Branch (2081:9): [True: 73.1k, False: 5.20k]
  |  Branch (2081:20): [True: 71.3k, False: 1.77k]
  |  Branch (2081:31): [True: 7.91k, False: 63.4k]
  ------------------
 2082|  7.91k|        has_expired = expired_with(*latest, now);
 2083|  7.91k|        has_cert = !has_expired;
 2084|  7.91k|    }
 2085|       |
 2086|       |    /* we have at least one non-expiring key self-signature */
 2087|  78.3k|    if (has_cert) {
  ------------------
  |  Branch (2087:9): [True: 12.6k, False: 65.7k]
  ------------------
 2088|  12.6k|        validity_.valid = true;
 2089|  12.6k|        return;
 2090|  12.6k|    }
 2091|       |    /* we have valid self-signature which expires key */
 2092|  65.7k|    if (has_expired) {
  ------------------
  |  Branch (2092:9): [True: 2.29k, False: 63.4k]
  ------------------
 2093|  2.29k|        validity_.expired = true;
 2094|  2.29k|        return;
 2095|  2.29k|    }
 2096|       |
 2097|       |    /* let's check whether key has at least one valid subkey binding */
 2098|   160k|    for (size_t i = 0; i < subkey_count(); i++) {
  ------------------
  |  Branch (2098:24): [True: 97.5k, False: 62.8k]
  ------------------
 2099|  97.5k|        Key *sub = keyring.get_subkey(*this, i);
 2100|  97.5k|        if (!sub) {
  ------------------
  |  Branch (2100:13): [True: 27.0k, False: 70.5k]
  ------------------
 2101|  27.0k|            continue;
 2102|  27.0k|        }
 2103|  70.5k|        sub->validate_self_signatures(*this, keyring.secctx);
 2104|  70.5k|        auto sig = sub->latest_binding();
 2105|  70.5k|        if (!sig) {
  ------------------
  |  Branch (2105:13): [True: 69.8k, False: 693]
  ------------------
 2106|  69.8k|            continue;
 2107|  69.8k|        }
 2108|       |        /* check whether subkey is expired - then do not mark key as valid */
 2109|    693|        if (sub->expired_with(*sig, now)) {
  ------------------
  |  Branch (2109:13): [True: 31, False: 662]
  ------------------
 2110|     31|            continue;
 2111|     31|        }
 2112|    662|        validity_.valid = true;
 2113|    662|        return;
 2114|    693|    }
 2115|  63.4k|}
_ZN3rnp3Key15validate_subkeyEPS0_RKNS_15SecurityContextE:
 2119|   120k|{
 2120|       |    /* consider subkey as valid on this level if it has valid primary key, its latest binding
 2121|       |     * signature is not expired, and it is not revoked. */
 2122|   120k|    validity_.reset();
 2123|   120k|    validity_.validated = true;
 2124|   120k|    if (!primary || (!primary->valid() && !primary->expired())) {
  ------------------
  |  Branch (2124:9): [True: 4.92k, False: 115k]
  |  Branch (2124:22): [True: 75.8k, False: 39.3k]
  |  Branch (2124:43): [True: 69.7k, False: 6.17k]
  ------------------
 2125|  74.6k|        return;
 2126|  74.6k|    }
 2127|       |    /* validate signatures if needed */
 2128|  45.4k|    validate_self_signatures(*primary, ctx);
 2129|       |
 2130|  74.1k|    for (auto &sigid : sigs_) {
  ------------------
  |  Branch (2130:22): [True: 74.1k, False: 45.4k]
  ------------------
 2131|  74.1k|        auto &sig = get_sig(sigid);
 2132|  74.1k|        if (sig.validity.valid() && is_revocation(sig) && is_authorized(sig)) {
  ------------------
  |  Branch (2132:13): [True: 7.02k, False: 67.1k]
  |  Branch (2132:37): [True: 0, False: 7.02k]
  |  Branch (2132:59): [True: 0, False: 0]
  ------------------
 2133|      0|            return;
 2134|      0|        }
 2135|  74.1k|    }
 2136|       |    /* expiration is taken from the latest binding, see refresh_data() */
 2137|  45.4k|    auto binding = latest_binding();
 2138|  45.4k|    if (!binding) {
  ------------------
  |  Branch (2138:9): [True: 38.4k, False: 6.99k]
  ------------------
 2139|  38.4k|        return;
 2140|  38.4k|    }
 2141|  6.99k|    if (expired_with(*binding, ctx.time())) {
  ------------------
  |  Branch (2141:9): [True: 104, False: 6.89k]
  ------------------
 2142|    104|        validity_.expired = true;
 2143|    104|        return;
 2144|    104|    }
 2145|  6.89k|    validity_.valid = primary->valid();
 2146|  6.89k|}
_ZN3rnp3Key8validateERNS_8KeyStoreE:
 2150|  78.3k|{
 2151|  78.3k|    validity_.reset();
 2152|  78.3k|    if (!is_subkey()) {
  ------------------
  |  Branch (2152:9): [True: 78.3k, False: 0]
  ------------------
 2153|  78.3k|        validate_primary(keyring);
 2154|  78.3k|        return;
 2155|  78.3k|    }
 2156|      0|    Key *primary = nullptr;
 2157|      0|    if (has_primary_fp()) {
  ------------------
  |  Branch (2157:9): [True: 0, False: 0]
  ------------------
 2158|      0|        primary = keyring.get_key(primary_fp());
 2159|      0|    }
 2160|      0|    validate_subkey(primary, keyring.secctx);
 2161|      0|}
_ZN3rnp3Key10revalidateERNS_8KeyStoreE:
 2165|  96.2k|{
 2166|  96.2k|    if (is_subkey()) {
  ------------------
  |  Branch (2166:9): [True: 17.8k, False: 78.3k]
  ------------------
 2167|  17.8k|        Key *primary = keyring.primary_key(*this);
 2168|  17.8k|        if (primary) {
  ------------------
  |  Branch (2168:13): [True: 13.8k, False: 4.02k]
  ------------------
 2169|  13.8k|            primary->revalidate(keyring);
 2170|  13.8k|        } else {
 2171|  4.02k|            validate_subkey(NULL, keyring.secctx);
 2172|  4.02k|        }
 2173|  17.8k|        return;
 2174|  17.8k|    }
 2175|       |
 2176|  78.3k|    validate_desig_revokes(keyring);
 2177|  78.3k|    validate(keyring);
 2178|  78.3k|    if (!refresh_data(keyring.secctx)) {
  ------------------
  |  Branch (2178:9): [True: 0, False: 78.3k]
  ------------------
 2179|      0|        RNP_LOG("Failed to refresh key data");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2180|      0|    }
 2181|       |    /* validate/re-validate all subkeys as well */
 2182|   150k|    for (auto &fp : subkey_fps_) {
  ------------------
  |  Branch (2182:19): [True: 150k, False: 78.3k]
  ------------------
 2183|   150k|        Key *subkey = keyring.get_key(fp);
 2184|   150k|        if (subkey) {
  ------------------
  |  Branch (2184:13): [True: 115k, False: 34.8k]
  ------------------
 2185|   115k|            subkey->validate_subkey(this, keyring.secctx);
 2186|   115k|            if (!subkey->refresh_data(this, keyring.secctx)) {
  ------------------
  |  Branch (2186:17): [True: 0, False: 115k]
  ------------------
 2187|      0|                RNP_LOG("Failed to refresh subkey data");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2188|      0|            }
 2189|   115k|        }
 2190|   150k|    }
 2191|  78.3k|}
_ZN3rnp3Key16refresh_revokersEv:
 2433|   221k|{
 2434|   221k|    revokers_.clear();
 2435|   695k|    for (auto &sigid : sigs_) {
  ------------------
  |  Branch (2435:22): [True: 695k, False: 221k]
  ------------------
 2436|   695k|        auto &sig = get_sig(sigid);
 2437|       |        /* pick designated revokers only from direct-key signatures */
 2438|   695k|        if (!sig.validity.valid() || !is_direct_self(sig)) {
  ------------------
  |  Branch (2438:13): [True: 628k, False: 66.6k]
  |  Branch (2438:38): [True: 38.4k, False: 28.2k]
  ------------------
 2439|   667k|            continue;
 2440|   667k|        }
 2441|  28.2k|        if (!sig.sig.has_revoker()) {
  ------------------
  |  Branch (2441:13): [True: 48, False: 28.1k]
  ------------------
 2442|     48|            continue;
 2443|     48|        }
 2444|  28.1k|        add_revoker(sig.sig.revoker());
 2445|  28.1k|    }
 2446|   221k|}
_ZN3rnp3Key19refresh_revocationsEv:
 2450|   143k|{
 2451|   143k|    clear_revokes();
 2452|   451k|    for (auto &sigid : sigs_) {
  ------------------
  |  Branch (2452:22): [True: 451k, False: 143k]
  ------------------
 2453|   451k|        auto &sig = get_sig(sigid);
 2454|   451k|        if (!sig.validity.valid() || !is_authorized(sig)) {
  ------------------
  |  Branch (2454:13): [True: 408k, False: 43.1k]
  |  Branch (2454:38): [True: 0, False: 43.1k]
  ------------------
 2455|   408k|            continue;
 2456|   408k|        }
 2457|  43.1k|        if (is_revocation(sig)) {
  ------------------
  |  Branch (2457:13): [True: 0, False: 43.1k]
  ------------------
 2458|      0|            update_revocation(sig);
 2459|      0|            continue;
 2460|      0|        }
 2461|  43.1k|        if (is_uid_revocation(sig)) {
  ------------------
  |  Branch (2461:13): [True: 1.15k, False: 42.0k]
  ------------------
 2462|  1.15k|            if (sig.uid >= uid_count()) {
  ------------------
  |  Branch (2462:17): [True: 0, False: 1.15k]
  ------------------
 2463|      0|                RNP_LOG("Invalid uid index");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2464|      0|                continue;
 2465|      0|            }
 2466|  1.15k|            auto &uid = get_uid(sig.uid);
 2467|  1.15k|            if (uid.revoked) {
  ------------------
  |  Branch (2467:17): [True: 72, False: 1.07k]
  ------------------
 2468|     72|                continue;
 2469|     72|            }
 2470|  1.07k|            uid.revoked = true;
 2471|  1.07k|            uid.revocation = Revocation(sig);
 2472|  1.07k|        }
 2473|  43.1k|    }
 2474|   143k|}
_ZN3rnp3Key12refresh_dataERKNS_15SecurityContextE:
 2478|   143k|{
 2479|   143k|    if (!is_primary()) {
  ------------------
  |  Branch (2479:9): [True: 356, False: 143k]
  ------------------
 2480|    356|        RNP_LOG("key must be primary");
  ------------------
  |  |   84|    356|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    356|    do {                                                                                 \
  |  |  |  |   77|    356|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 356, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    356|            break;                                                                       \
  |  |  |  |   79|    356|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2481|    356|        return false;
 2482|    356|    }
 2483|       |    /* validate self-signatures if not done yet */
 2484|   143k|    validate_self_signatures(ctx);
 2485|       |    /* key expiration */
 2486|   143k|    expiration_ = 0;
 2487|       |    /* if we have direct-key signature, then it has higher priority */
 2488|   143k|    auto dirsig = latest_selfsig(UserID::None);
 2489|   143k|    if (dirsig) {
  ------------------
  |  Branch (2489:9): [True: 9.39k, False: 134k]
  ------------------
 2490|  9.39k|        expiration_ = dirsig->sig.key_expiration();
 2491|  9.39k|    }
 2492|       |    /* if we have primary uid and it is more restrictive, then use it as well */
 2493|   143k|    auto prisig = latest_selfsig(UserID::Primary);
 2494|   143k|    if (prisig && prisig->sig.key_expiration() &&
  ------------------
  |  Branch (2494:9): [True: 3.14k, False: 140k]
  |  Branch (2494:19): [True: 3.14k, False: 0]
  ------------------
 2495|  3.14k|        (!expiration_ || (prisig->sig.key_expiration() < expiration_))) {
  ------------------
  |  Branch (2495:10): [True: 3.14k, False: 0]
  |  Branch (2495:26): [True: 0, False: 0]
  ------------------
 2496|  3.14k|        expiration_ = prisig->sig.key_expiration();
 2497|  3.14k|    }
 2498|       |    /* if we don't have direct-key sig and primary uid, use the latest self-cert */
 2499|   143k|    auto latest = latest_selfsig(UserID::Any);
 2500|   143k|    if (!dirsig && !prisig && latest) {
  ------------------
  |  Branch (2500:9): [True: 134k, False: 9.39k]
  |  Branch (2500:20): [True: 130k, False: 3.14k]
  |  Branch (2500:31): [True: 14.8k, False: 116k]
  ------------------
 2501|  14.8k|        expiration_ = latest->sig.key_expiration();
 2502|  14.8k|    }
 2503|       |    /* key flags: check in direct-key sig first, then primary uid, and then latest */
 2504|   143k|    if (dirsig && dirsig->sig.has_subpkt(PGP_SIG_SUBPKT_KEY_FLAGS)) {
  ------------------
  |  Branch (2504:9): [True: 9.39k, False: 134k]
  |  Branch (2504:19): [True: 35, False: 9.35k]
  ------------------
 2505|     35|        flags_ = dirsig->sig.key_flags();
 2506|   143k|    } else if (prisig && prisig->sig.has_subpkt(PGP_SIG_SUBPKT_KEY_FLAGS)) {
  ------------------
  |  Branch (2506:16): [True: 3.14k, False: 140k]
  |  Branch (2506:26): [True: 3.14k, False: 0]
  ------------------
 2507|  3.14k|        flags_ = prisig->sig.key_flags();
 2508|   140k|    } else if (latest && latest->sig.has_subpkt(PGP_SIG_SUBPKT_KEY_FLAGS)) {
  ------------------
  |  Branch (2508:16): [True: 20.4k, False: 119k]
  |  Branch (2508:26): [True: 20.4k, False: 0]
  ------------------
 2509|  20.4k|        flags_ = latest->sig.key_flags();
 2510|   119k|    } else {
 2511|   119k|        flags_ = pgp_pk_alg_capabilities(alg());
 2512|   119k|    }
 2513|       |    /* designated revokers */
 2514|   143k|    refresh_revokers();
 2515|       |    /* revocation(s) */
 2516|   143k|    refresh_revocations();
 2517|       |    /* valid till */
 2518|   143k|    valid_till_ = valid_till_common(expired());
 2519|       |    /* userid validities */
 2520|  2.00M|    for (auto &uid : uids_) {
  ------------------
  |  Branch (2520:20): [True: 2.00M, False: 143k]
  ------------------
 2521|  2.00M|        uid.valid = false;
 2522|  2.00M|    }
 2523|   451k|    for (auto &sigid : sigs_) {
  ------------------
  |  Branch (2523:22): [True: 451k, False: 143k]
  ------------------
 2524|   451k|        auto &sig = get_sig(sigid);
 2525|       |        /* consider userid as valid if it has at least one non-expired self-sig */
 2526|   451k|        if (!sig.validity.valid() || !sig.is_cert() || !is_signer(sig) ||
  ------------------
  |  Branch (2526:13): [True: 408k, False: 43.1k]
  |  Branch (2526:38): [True: 19.3k, False: 23.8k]
  |  Branch (2526:56): [True: 0, False: 23.8k]
  ------------------
 2527|   427k|            sig.expired(ctx.time())) {
  ------------------
  |  Branch (2527:13): [True: 0, False: 23.8k]
  ------------------
 2528|   427k|            continue;
 2529|   427k|        }
 2530|  23.8k|        if (sig.uid >= uid_count()) {
  ------------------
  |  Branch (2530:13): [True: 0, False: 23.8k]
  ------------------
 2531|      0|            continue;
 2532|      0|        }
 2533|  23.8k|        get_uid(sig.uid).valid = true;
 2534|  23.8k|    }
 2535|       |    /* check whether uid is revoked */
 2536|  2.00M|    for (auto &uid : uids_) {
  ------------------
  |  Branch (2536:20): [True: 2.00M, False: 143k]
  ------------------
 2537|  2.00M|        if (uid.revoked) {
  ------------------
  |  Branch (2537:13): [True: 1.07k, False: 1.99M]
  ------------------
 2538|  1.07k|            uid.valid = false;
 2539|  1.07k|        }
 2540|  2.00M|    }
 2541|       |    /* primary userid: use latest one which is not overridden by later non-primary selfsig */
 2542|   143k|    uid0_set_ = false;
 2543|   143k|    if (prisig && get_uid(prisig->uid).valid) {
  ------------------
  |  Branch (2543:9): [True: 3.14k, False: 140k]
  |  Branch (2543:19): [True: 2.80k, False: 345]
  ------------------
 2544|  2.80k|        uid0_ = prisig->uid;
 2545|  2.80k|        uid0_set_ = true;
 2546|  2.80k|    }
 2547|   143k|    return true;
 2548|   143k|}
_ZN3rnp3Key12refresh_dataEPS0_RKNS_15SecurityContextE:
 2552|   158k|{
 2553|       |    /* validate self-signatures if not done yet */
 2554|   158k|    if (primary) {
  ------------------
  |  Branch (2554:9): [True: 153k, False: 4.92k]
  ------------------
 2555|   153k|        validate_self_signatures(*primary, ctx);
 2556|   153k|    }
 2557|   158k|    auto sig = latest_binding(primary);
 2558|       |    /* subkey expiration */
 2559|   158k|    expiration_ = sig ? sig->sig.key_expiration() : 0;
  ------------------
  |  Branch (2559:19): [True: 12.9k, False: 145k]
  ------------------
 2560|       |    /* subkey flags */
 2561|   158k|    if (sig && sig->sig.has_subpkt(PGP_SIG_SUBPKT_KEY_FLAGS)) {
  ------------------
  |  Branch (2561:9): [True: 12.9k, False: 145k]
  |  Branch (2561:16): [True: 11.9k, False: 1.06k]
  ------------------
 2562|  11.9k|        flags_ = sig->sig.key_flags();
 2563|   146k|    } else {
 2564|   146k|        flags_ = pgp_pk_alg_capabilities(alg());
 2565|   146k|    }
 2566|       |    /* revocation */
 2567|   158k|    clear_revokes();
 2568|   158k|    for (auto &sigid : sigs_) {
  ------------------
  |  Branch (2568:22): [True: 150k, False: 158k]
  ------------------
 2569|   150k|        auto &rev = get_sig(sigid);
 2570|   150k|        if (!rev.validity.valid() || !is_revocation(rev) || !is_authorized(rev)) {
  ------------------
  |  Branch (2570:13): [True: 138k, False: 11.9k]
  |  Branch (2570:38): [True: 11.9k, False: 0]
  |  Branch (2570:61): [True: 0, False: 0]
  ------------------
 2571|   150k|            continue;
 2572|   150k|        }
 2573|      0|        try {
 2574|      0|            update_revocation(rev);
 2575|      0|        } catch (const std::exception &e) {
 2576|      0|            RNP_LOG("%s", e.what());
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2577|      0|            return false;
 2578|      0|        }
 2579|      0|    }
 2580|       |    /* valid till */
 2581|   158k|    if (primary) {
  ------------------
  |  Branch (2581:9): [True: 153k, False: 4.92k]
  ------------------
 2582|   153k|        valid_till_ =
 2583|   153k|          std::min(primary->valid_till(), valid_till_common(expired() || primary->expired()));
  ------------------
  |  Branch (2583:61): [True: 115, False: 153k]
  |  Branch (2583:74): [True: 6.65k, False: 146k]
  ------------------
 2584|   153k|    } else {
 2585|  4.92k|        valid_till_ = valid_till_common(expired());
 2586|  4.92k|    }
 2587|   158k|    return true;
 2588|   158k|}
_ZN3rnp3Key14merge_validityERK14pgp_validity_t:
 2592|  57.3k|{
 2593|  57.3k|    validity_.valid = validity_.valid && src.valid;
  ------------------
  |  Branch (2593:23): [True: 13.9k, False: 43.4k]
  |  Branch (2593:42): [True: 489, False: 13.4k]
  ------------------
 2594|       |    /* We may safely leave validated status only if both merged keys are valid && validated.
 2595|       |     * Otherwise we'll need to revalidate. For instance, one validated but invalid key may add
 2596|       |     * revocation signature, or valid key may add certification to the invalid one. */
 2597|  57.3k|    validity_.validated = validity_.valid && validity_.validated && src.validated;
  ------------------
  |  Branch (2597:27): [True: 489, False: 56.9k]
  |  Branch (2597:46): [True: 489, False: 0]
  |  Branch (2597:69): [True: 489, False: 0]
  ------------------
 2598|       |    /* if expired is true at least in one case then valid and validated are false */
 2599|  57.3k|    validity_.expired = false;
 2600|  57.3k|}
_ZN3rnp3Key5mergeERKS0_:
 2604|  35.6k|{
 2605|  35.6k|    assert(!is_subkey());
 2606|  35.6k|    assert(!src.is_subkey());
 2607|       |
 2608|       |    /* if src is secret key then merged key will become secret as well. */
 2609|  35.6k|    if (src.is_secret() && !is_secret()) {
  ------------------
  |  Branch (2609:9): [True: 5.69k, False: 29.9k]
  |  Branch (2609:28): [True: 25, False: 5.67k]
  ------------------
 2610|     25|        pkt_ = src.pkt();
 2611|     25|        rawpkt_ = src.rawpkt();
 2612|       |        /* no subkey processing here - they are separated from the main key */
 2613|     25|    }
 2614|       |
 2615|       |    /* merge direct-key signatures */
 2616|  35.6k|    for (auto &sigid : src.keysigs_) {
  ------------------
  |  Branch (2616:22): [True: 11.5k, False: 35.6k]
  ------------------
 2617|  11.5k|        if (has_sig(sigid)) {
  ------------------
  |  Branch (2617:13): [True: 8.86k, False: 2.71k]
  ------------------
 2618|  8.86k|            continue;
 2619|  8.86k|        }
 2620|  2.71k|        add_sig(src.get_sig(sigid).sig);
 2621|  2.71k|    }
 2622|       |
 2623|       |    /* merge user ids and their signatures */
 2624|   253k|    for (auto &srcuid : src.uids_) {
  ------------------
  |  Branch (2624:23): [True: 253k, False: 35.6k]
  ------------------
 2625|       |        /* check whether we have this uid and add if needed */
 2626|   253k|        auto uididx = uid_idx(srcuid.pkt);
 2627|   253k|        if (uididx == UserID::None) {
  ------------------
  |  Branch (2627:13): [True: 1.89k, False: 251k]
  ------------------
 2628|  1.89k|            uididx = uid_count();
 2629|  1.89k|            uids_.emplace_back(srcuid.pkt);
 2630|  1.89k|        }
 2631|       |        /* add uid signatures */
 2632|   283k|        for (size_t idx = 0; idx < srcuid.sig_count(); idx++) {
  ------------------
  |  Branch (2632:30): [True: 30.2k, False: 253k]
  ------------------
 2633|  30.2k|            auto &sigid = srcuid.get_sig(idx);
 2634|  30.2k|            if (has_sig(sigid)) {
  ------------------
  |  Branch (2634:17): [True: 22.5k, False: 7.73k]
  ------------------
 2635|  22.5k|                continue;
 2636|  22.5k|            }
 2637|  7.73k|            add_sig(src.get_sig(sigid).sig, uididx);
 2638|  7.73k|        }
 2639|   253k|    }
 2640|       |
 2641|       |    /* Update subkey fingerprints */
 2642|  35.6k|    for (auto &fp : src.subkey_fps()) {
  ------------------
  |  Branch (2642:19): [True: 6.13k, False: 35.6k]
  ------------------
 2643|  6.13k|        add_subkey_fp(fp);
 2644|  6.13k|    }
 2645|       |
 2646|       |    /* check whether key was unlocked and assign secret key data */
 2647|  35.6k|    if (src.is_secret() && !src.is_locked() && (!is_secret() || is_locked())) {
  ------------------
  |  Branch (2647:9): [True: 5.69k, False: 29.9k]
  |  Branch (2647:28): [True: 361, False: 5.33k]
  |  Branch (2647:49): [True: 0, False: 361]
  |  Branch (2647:65): [True: 3, False: 358]
  ------------------
 2648|      3|        pkt().material = src.pkt().material->clone();
 2649|      3|    }
 2650|       |    /* copy validity status */
 2651|  35.6k|    merge_validity(src.validity_);
 2652|  35.6k|    return true;
 2653|  35.6k|}
_ZN3rnp3Key5mergeERKS0_PS0_:
 2657|  21.7k|{
 2658|  21.7k|    assert(is_subkey());
 2659|  21.7k|    assert(src.is_subkey());
 2660|       |
 2661|       |    /* if src is secret key then merged key will become secret as well. */
 2662|  21.7k|    if (src.is_secret() && !is_secret()) {
  ------------------
  |  Branch (2662:9): [True: 6.80k, False: 14.9k]
  |  Branch (2662:28): [True: 26, False: 6.77k]
  ------------------
 2663|     26|        pkt_ = src.pkt();
 2664|     26|        rawpkt_ = src.rawpkt();
 2665|     26|    }
 2666|       |
 2667|       |    /* add subkey binding signatures */
 2668|  21.7k|    for (auto &sigid : src.keysigs_) {
  ------------------
  |  Branch (2668:22): [True: 12.8k, False: 21.7k]
  ------------------
 2669|  12.8k|        if (has_sig(sigid)) {
  ------------------
  |  Branch (2669:13): [True: 10.6k, False: 2.28k]
  ------------------
 2670|  10.6k|            continue;
 2671|  10.6k|        }
 2672|  2.28k|        add_sig(src.get_sig(sigid).sig);
 2673|  2.28k|    }
 2674|       |
 2675|       |    /* check whether key was unlocked and assign secret key data */
 2676|  21.7k|    if (src.is_secret() && !src.is_locked() && (!is_secret() || is_locked())) {
  ------------------
  |  Branch (2676:9): [True: 6.80k, False: 14.9k]
  |  Branch (2676:28): [True: 243, False: 6.56k]
  |  Branch (2676:49): [True: 0, False: 243]
  |  Branch (2676:65): [True: 3, False: 240]
  ------------------
 2677|      3|        pkt().material = src.pkt().material->clone();
 2678|      3|    }
 2679|       |    /* copy validity status */
 2680|  21.7k|    merge_validity(src.validity_);
 2681|       |    /* link subkey fps */
 2682|  21.7k|    if (primary) {
  ------------------
  |  Branch (2682:9): [True: 19.5k, False: 2.21k]
  ------------------
 2683|  19.5k|        primary->link_subkey_fp(*this);
 2684|  19.5k|    }
 2685|  21.7k|    return true;
 2686|  21.7k|}
_Z23pgp_pk_alg_capabilities16pgp_pubkey_alg_t:
 2691|   266k|{
 2692|   266k|    switch (alg) {
 2693|  43.5k|    case PGP_PKA_RSA:
  ------------------
  |  Branch (2693:5): [True: 43.5k, False: 223k]
  ------------------
 2694|  43.5k|        return pgp_key_flags_t(PGP_KF_SIGN | PGP_KF_CERTIFY | PGP_KF_AUTH | PGP_KF_ENCRYPT);
 2695|       |
 2696|  25.0k|    case PGP_PKA_RSA_SIGN_ONLY:
  ------------------
  |  Branch (2696:5): [True: 25.0k, False: 241k]
  ------------------
 2697|       |        // deprecated, but still usable
 2698|  25.0k|        return PGP_KF_SIGN;
 2699|       |
 2700|  2.10k|    case PGP_PKA_RSA_ENCRYPT_ONLY:
  ------------------
  |  Branch (2700:5): [True: 2.10k, False: 264k]
  ------------------
 2701|       |        // deprecated, but still usable
 2702|  2.10k|        return PGP_KF_ENCRYPT;
 2703|       |
 2704|    209|    case PGP_PKA_ELGAMAL_ENCRYPT_OR_SIGN: /* deprecated */
  ------------------
  |  Branch (2704:5): [True: 209, False: 266k]
  ------------------
 2705|       |        // These are no longer permitted per the RFC
 2706|    209|        return PGP_KF_NONE;
 2707|       |
 2708|  1.72k|    case PGP_PKA_DSA:
  ------------------
  |  Branch (2708:5): [True: 1.72k, False: 265k]
  ------------------
 2709|  24.5k|    case PGP_PKA_ECDSA:
  ------------------
  |  Branch (2709:5): [True: 22.8k, False: 243k]
  ------------------
 2710|  64.8k|    case PGP_PKA_EDDSA:
  ------------------
  |  Branch (2710:5): [True: 40.2k, False: 226k]
  ------------------
 2711|  64.8k|        return pgp_key_flags_t(PGP_KF_SIGN | PGP_KF_CERTIFY | PGP_KF_AUTH);
 2712|       |
 2713|      0|#if defined(ENABLE_CRYPTO_REFRESH)
 2714|  3.92k|    case PGP_PKA_ED25519:
  ------------------
  |  Branch (2714:5): [True: 3.92k, False: 262k]
  ------------------
 2715|  5.27k|    case PGP_PKA_ED448:
  ------------------
  |  Branch (2715:5): [True: 1.35k, False: 265k]
  ------------------
 2716|  5.27k|        return pgp_key_flags_t(PGP_KF_SIGN | PGP_KF_CERTIFY | PGP_KF_AUTH);
 2717|  9.49k|    case PGP_PKA_X25519:
  ------------------
  |  Branch (2717:5): [True: 9.49k, False: 257k]
  ------------------
 2718|  13.3k|    case PGP_PKA_X448:
  ------------------
  |  Branch (2718:5): [True: 3.84k, False: 262k]
  ------------------
 2719|  13.3k|        return PGP_KF_ENCRYPT;
 2720|      0|#endif
 2721|       |
 2722|  27.9k|    case PGP_PKA_SM2:
  ------------------
  |  Branch (2722:5): [True: 27.9k, False: 238k]
  ------------------
 2723|  27.9k|        return pgp_key_flags_t(PGP_KF_SIGN | PGP_KF_CERTIFY | PGP_KF_AUTH | PGP_KF_ENCRYPT);
 2724|       |
 2725|  45.6k|    case PGP_PKA_ECDH:
  ------------------
  |  Branch (2725:5): [True: 45.6k, False: 221k]
  ------------------
 2726|  45.7k|    case PGP_PKA_ELGAMAL:
  ------------------
  |  Branch (2726:5): [True: 182, False: 266k]
  ------------------
 2727|  45.7k|        return PGP_KF_ENCRYPT;
 2728|       |
 2729|      0|#if defined(ENABLE_PQC)
 2730|     78|    case PGP_PKA_KYBER768_X25519:
  ------------------
  |  Branch (2730:5): [True: 78, False: 266k]
  ------------------
 2731|     78|#if defined(ENABLE_PQC) && defined(ENABLE_CRYPTO_REFRESH)
 2732|     78|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|     78|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
 2733|    106|    case PGP_PKA_KYBER1024_X448:
  ------------------
  |  Branch (2733:5): [True: 28, False: 266k]
  ------------------
 2734|    106|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|    106|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
 2735|    201|    case PGP_PKA_KYBER768_P384:
  ------------------
  |  Branch (2735:5): [True: 95, False: 266k]
  ------------------
 2736|    201|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|    201|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
 2737|    235|    case PGP_PKA_KYBER1024_P521:
  ------------------
  |  Branch (2737:5): [True: 34, False: 266k]
  ------------------
 2738|    235|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|    235|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
 2739|    306|    case PGP_PKA_KYBER768_BP384:
  ------------------
  |  Branch (2739:5): [True: 71, False: 266k]
  ------------------
 2740|    306|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|    306|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
 2741|    334|    case PGP_PKA_KYBER1024_BP512:
  ------------------
  |  Branch (2741:5): [True: 28, False: 266k]
  ------------------
 2742|    334|#endif
 2743|    334|        return PGP_KF_ENCRYPT;
 2744|      0|#endif
 2745|       |
 2746|      0|#if defined(ENABLE_PQC) && defined(ENABLE_CRYPTO_REFRESH)
 2747|     24|    case PGP_PKA_DILITHIUM3_ED25519:
  ------------------
  |  Branch (2747:5): [True: 24, False: 266k]
  ------------------
 2748|     24|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|     24|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
 2749|     60|    case PGP_PKA_DILITHIUM5_ED448:
  ------------------
  |  Branch (2749:5): [True: 36, False: 266k]
  ------------------
 2750|     60|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|     60|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
 2751|    104|    case PGP_PKA_DILITHIUM3_P384:
  ------------------
  |  Branch (2751:5): [True: 44, False: 266k]
  ------------------
 2752|    104|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|    104|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
 2753|    150|    case PGP_PKA_DILITHIUM5_P521:
  ------------------
  |  Branch (2753:5): [True: 46, False: 266k]
  ------------------
 2754|    150|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|    150|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
 2755|    367|    case PGP_PKA_DILITHIUM3_BP384:
  ------------------
  |  Branch (2755:5): [True: 217, False: 266k]
  ------------------
 2756|    367|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|    367|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
 2757|    395|    case PGP_PKA_DILITHIUM5_BP512:
  ------------------
  |  Branch (2757:5): [True: 28, False: 266k]
  ------------------
 2758|    395|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|    395|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
 2759|  35.7k|    case PGP_PKA_SPHINCSPLUS_SHAKE_128f:
  ------------------
  |  Branch (2759:5): [True: 35.3k, False: 231k]
  ------------------
 2760|  35.7k|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|  35.7k|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
 2761|  37.7k|    case PGP_PKA_SPHINCSPLUS_SHAKE_128s:
  ------------------
  |  Branch (2761:5): [True: 1.99k, False: 264k]
  ------------------
 2762|  37.7k|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|  37.7k|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
 2763|  38.2k|    case PGP_PKA_SPHINCSPLUS_SHAKE_256s:
  ------------------
  |  Branch (2763:5): [True: 485, False: 266k]
  ------------------
 2764|  38.2k|        return pgp_key_flags_t(PGP_KF_SIGN | PGP_KF_CERTIFY | PGP_KF_AUTH);
 2765|      0|#endif
 2766|       |
 2767|      0|    default:
  ------------------
  |  Branch (2767:5): [True: 0, False: 266k]
  ------------------
 2768|      0|        RNP_LOG("unknown pk alg: %d\n", alg);
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2769|      0|        return PGP_KF_NONE;
 2770|   266k|    }
 2771|   266k|}
key.cpp:_ZN3rnpL9is_issuerERKN3pgp3pkt9SignatureERKNS0_11FingerprintE:
 1630|   433k|{
 1631|       |    /* A present issuer fingerprint is authoritative. A bad version octet must not
 1632|       |     * fall through to the key id, which is weaker and, for a parsed v5/v6 fingerprint,
 1633|       |     * may be all zeros. */
 1634|   433k|    if (sig.has_keyfp()) {
  ------------------
  |  Branch (1634:9): [True: 342k, False: 90.3k]
  ------------------
 1635|   342k|        return sig.issuer_fp_version_matches() && (sig.keyfp() == fp);
  ------------------
  |  Branch (1635:16): [True: 337k, False: 4.69k]
  |  Branch (1635:51): [True: 254k, False: 83.1k]
  ------------------
 1636|   342k|    }
 1637|  90.3k|    if (!sig.has_keyid()) {
  ------------------
  |  Branch (1637:9): [True: 44.0k, False: 46.3k]
  ------------------
 1638|  44.0k|        return false;
 1639|  44.0k|    }
 1640|  46.3k|    return fp.keyid() == sig.keyid();
 1641|  90.3k|}

_ZN3rnp3KeyC2Ev:
   90|  51.4k|    Key() = default;
_ZN3rnp3KeyaSEOS0_:
   97|  51.4k|    Key &operator=(Key &&) = default;

_ZN3pgp11KeyMaterialD2Ev:
  252|   474k|{
  253|   474k|}
_ZNK3pgp11KeyMaterial3algEv:
  257|   139k|{
  258|   139k|    return alg_;
  259|   139k|}
_ZNK3pgp11KeyMaterial6secretEv:
  263|  13.1k|{
  264|  13.1k|    return secret_;
  265|  13.1k|}
_ZNK3pgp11KeyMaterial8validityEv:
  291|  18.7k|{
  292|  18.7k|    return validity_;
  293|  18.7k|}
_ZN3pgp11KeyMaterial12set_validityERK14pgp_validity_t:
  297|  18.7k|{
  298|  18.7k|    validity_ = val;
  299|  18.7k|}
_ZN3pgp11KeyMaterial14reset_validityEv:
  303|  1.48k|{
  304|  1.48k|    validity_.reset();
  305|  1.48k|}
_ZN3pgp11KeyMaterial12clear_secretEv:
  309|  34.2k|{
  310|  34.2k|    secret_ = false;
  311|  34.2k|}
_ZNK3pgp11KeyMaterial6verifyERKN3rnp15SecurityContextERKNS_11SigMaterialERKNSt3__16vectorIhNS1_16secure_allocatorIhEEEE:
  348|     12|{
  349|     12|    return RNP_ERROR_NOT_SUPPORTED;
  350|     12|}
_ZNK3pgp11KeyMaterial16sig_hash_allowedE14pgp_hash_alg_t:
  368|  23.5k|{
  369|  23.5k|    return true;
  370|  23.5k|}
_ZNK3pgp11KeyMaterial4gripEv:
  380|  68.1k|{
  381|  68.1k|    auto hash = rnp::Hash::create(PGP_HASH_SHA1);
  382|  68.1k|    grip_update(*hash);
  383|  68.1k|    KeyGrip res{};
  384|  68.1k|    hash->finish(res.data());
  385|  68.1k|    return res;
  386|  68.1k|}
_ZN3pgp11KeyMaterial6createE16pgp_pubkey_alg_t:
  390|   102k|{
  391|   102k|    switch (alg) {
  392|  14.2k|    case PGP_PKA_RSA:
  ------------------
  |  Branch (392:5): [True: 14.2k, False: 88.2k]
  ------------------
  393|  15.5k|    case PGP_PKA_RSA_ENCRYPT_ONLY:
  ------------------
  |  Branch (393:5): [True: 1.38k, False: 101k]
  ------------------
  394|  23.3k|    case PGP_PKA_RSA_SIGN_ONLY:
  ------------------
  |  Branch (394:5): [True: 7.80k, False: 94.6k]
  ------------------
  395|  23.3k|        return std::unique_ptr<KeyMaterial>(new RSAKeyMaterial(alg));
  396|    632|    case PGP_PKA_ELGAMAL:
  ------------------
  |  Branch (396:5): [True: 632, False: 101k]
  ------------------
  397|    882|    case PGP_PKA_ELGAMAL_ENCRYPT_OR_SIGN:
  ------------------
  |  Branch (397:5): [True: 250, False: 102k]
  ------------------
  398|    882|        return std::unique_ptr<KeyMaterial>(new EGKeyMaterial(alg));
  399|    664|    case PGP_PKA_DSA:
  ------------------
  |  Branch (399:5): [True: 664, False: 101k]
  ------------------
  400|    664|        return std::unique_ptr<KeyMaterial>(new DSAKeyMaterial());
  401|  10.4k|    case PGP_PKA_ECDH:
  ------------------
  |  Branch (401:5): [True: 10.4k, False: 91.9k]
  ------------------
  402|  10.4k|        return std::unique_ptr<KeyMaterial>(new ECDHKeyMaterial());
  403|  9.47k|    case PGP_PKA_ECDSA:
  ------------------
  |  Branch (403:5): [True: 9.47k, False: 92.9k]
  ------------------
  404|  9.47k|        return std::unique_ptr<KeyMaterial>(new ECDSAKeyMaterial());
  405|  22.9k|    case PGP_PKA_EDDSA:
  ------------------
  |  Branch (405:5): [True: 22.9k, False: 79.4k]
  ------------------
  406|  22.9k|        return std::unique_ptr<KeyMaterial>(new EDDSAKeyMaterial());
  407|      0|#if defined(ENABLE_CRYPTO_REFRESH)
  408|  1.27k|    case PGP_PKA_ED25519:
  ------------------
  |  Branch (408:5): [True: 1.27k, False: 101k]
  ------------------
  409|  1.27k|        return std::unique_ptr<KeyMaterial>(new Ed25519KeyMaterial());
  410|  4.67k|    case PGP_PKA_X25519:
  ------------------
  |  Branch (410:5): [True: 4.67k, False: 97.7k]
  ------------------
  411|  4.67k|        return std::unique_ptr<KeyMaterial>(new X25519KeyMaterial());
  412|    372|    case PGP_PKA_ED448:
  ------------------
  |  Branch (412:5): [True: 372, False: 102k]
  ------------------
  413|    372|        return std::unique_ptr<KeyMaterial>(new Ed448KeyMaterial());
  414|    574|    case PGP_PKA_X448:
  ------------------
  |  Branch (414:5): [True: 574, False: 101k]
  ------------------
  415|    574|        return std::unique_ptr<KeyMaterial>(new X448KeyMaterial());
  416|      0|#endif
  417|  11.7k|    case PGP_PKA_SM2:
  ------------------
  |  Branch (417:5): [True: 11.7k, False: 90.7k]
  ------------------
  418|  11.7k|        return std::unique_ptr<KeyMaterial>(new SM2KeyMaterial());
  419|      0|#if defined(ENABLE_PQC)
  420|    162|    case PGP_PKA_KYBER768_X25519:
  ------------------
  |  Branch (420:5): [True: 162, False: 102k]
  ------------------
  421|    162|#if defined(ENABLE_PQC) && defined(ENABLE_CRYPTO_REFRESH)
  422|    162|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|    162|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
  423|    215|    case PGP_PKA_KYBER1024_X448:
  ------------------
  |  Branch (423:5): [True: 53, False: 102k]
  ------------------
  424|    215|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|    215|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
  425|    284|    case PGP_PKA_KYBER768_P384:
  ------------------
  |  Branch (425:5): [True: 69, False: 102k]
  ------------------
  426|    284|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|    284|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
  427|    322|    case PGP_PKA_KYBER1024_P521:
  ------------------
  |  Branch (427:5): [True: 38, False: 102k]
  ------------------
  428|    322|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|    322|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
  429|    375|    case PGP_PKA_KYBER768_BP384:
  ------------------
  |  Branch (429:5): [True: 53, False: 102k]
  ------------------
  430|    375|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|    375|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
  431|    400|    case PGP_PKA_KYBER1024_BP512:
  ------------------
  |  Branch (431:5): [True: 25, False: 102k]
  ------------------
  432|    400|#endif
  433|    400|        return std::unique_ptr<KeyMaterial>(new MlkemEcdhKeyMaterial(alg));
  434|      0|#endif
  435|      0|#if defined(ENABLE_PQC) && defined(ENABLE_CRYPTO_REFRESH)
  436|    371|    case PGP_PKA_DILITHIUM3_ED25519:
  ------------------
  |  Branch (436:5): [True: 371, False: 102k]
  ------------------
  437|    371|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|    371|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
  438|    668|    case PGP_PKA_DILITHIUM5_ED448:
  ------------------
  |  Branch (438:5): [True: 297, False: 102k]
  ------------------
  439|    668|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|    668|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
  440|    699|    case PGP_PKA_DILITHIUM3_P384:
  ------------------
  |  Branch (440:5): [True: 31, False: 102k]
  ------------------
  441|    699|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|    699|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
  442|    774|    case PGP_PKA_DILITHIUM5_P521:
  ------------------
  |  Branch (442:5): [True: 75, False: 102k]
  ------------------
  443|    774|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|    774|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
  444|    827|    case PGP_PKA_DILITHIUM3_BP384:
  ------------------
  |  Branch (444:5): [True: 53, False: 102k]
  ------------------
  445|    827|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|    827|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
  446|    876|    case PGP_PKA_DILITHIUM5_BP512:
  ------------------
  |  Branch (446:5): [True: 49, False: 102k]
  ------------------
  447|    876|        return std::unique_ptr<KeyMaterial>(new DilithiumEccKeyMaterial(alg));
  448|  5.21k|    case PGP_PKA_SPHINCSPLUS_SHAKE_128f:
  ------------------
  |  Branch (448:5): [True: 5.21k, False: 97.2k]
  ------------------
  449|  5.21k|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|  5.21k|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
  450|  9.30k|    case PGP_PKA_SPHINCSPLUS_SHAKE_128s:
  ------------------
  |  Branch (450:5): [True: 4.09k, False: 98.3k]
  ------------------
  451|  9.30k|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|  9.30k|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
  452|  9.48k|    case PGP_PKA_SPHINCSPLUS_SHAKE_256s:
  ------------------
  |  Branch (452:5): [True: 174, False: 102k]
  ------------------
  453|  9.48k|        return std::unique_ptr<KeyMaterial>(new SlhdsaKeyMaterial(alg));
  454|      0|#endif
  455|  5.15k|    default:
  ------------------
  |  Branch (455:5): [True: 5.15k, False: 97.2k]
  ------------------
  456|  5.15k|        return nullptr;
  457|   102k|    }
  458|   102k|}
_ZN3pgp14RSAKeyMaterial5cloneEv:
  497|  97.0k|{
  498|  97.0k|    return std::unique_ptr<KeyMaterial>(new RSAKeyMaterial(*this));
  499|  97.0k|}
_ZNK3pgp14RSAKeyMaterial11grip_updateERN3rnp4HashE:
  503|  16.5k|{
  504|       |    /* keygrip is subjectKeyHash from pkcs#15 for RSA. */
  505|  16.5k|    grip_hash_mpi(hash, key_.n, '\0');
  506|  16.5k|}
_ZN3pgp14RSAKeyMaterial12clear_secretEv:
  516|  12.4k|{
  517|  12.4k|    key_.clear_secret();
  518|  12.4k|    KeyMaterial::clear_secret();
  519|  12.4k|}
_ZN3pgp14RSAKeyMaterial5parseER17pgp_packet_body_t:
  523|  23.1k|{
  524|  23.1k|    secret_ = false;
  525|  23.1k|    return pkt.get(key_.n) && pkt.get(key_.e);
  ------------------
  |  Branch (525:12): [True: 22.9k, False: 263]
  |  Branch (525:31): [True: 22.6k, False: 218]
  ------------------
  526|  23.1k|}
_ZN3pgp14RSAKeyMaterial12parse_secretER17pgp_packet_body_t:
  530|     36|{
  531|     36|    if (!pkt.get(key_.d) || !pkt.get(key_.p) || !pkt.get(key_.q) || !pkt.get(key_.u)) {
  ------------------
  |  Branch (531:9): [True: 19, False: 17]
  |  Branch (531:29): [True: 3, False: 14]
  |  Branch (531:49): [True: 6, False: 8]
  |  Branch (531:69): [True: 5, False: 3]
  ------------------
  532|     33|        RNP_LOG("failed to parse rsa secret key data");
  ------------------
  |  |   84|     33|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     33|    do {                                                                                 \
  |  |  |  |   77|     33|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 33, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     33|            break;                                                                       \
  |  |  |  |   79|     33|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  533|     33|        return false;
  534|     33|    }
  535|      3|    secret_ = true;
  536|      3|    return true;
  537|     36|}
_ZNK3pgp14RSAKeyMaterial6verifyERKN3rnp15SecurityContextERKNS_11SigMaterialERKNSt3__16vectorIhNS1_16secure_allocatorIhEEEE:
  598|  4.70k|{
  599|  4.70k|    if (alg() == PGP_PKA_RSA_ENCRYPT_ONLY) {
  ------------------
  |  Branch (599:9): [True: 160, False: 4.54k]
  ------------------
  600|    160|        RNP_LOG("RSA encrypt-only signature considered as invalid.");
  ------------------
  |  |   84|    160|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    160|    do {                                                                                 \
  |  |  |  |   77|    160|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 160, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    160|            break;                                                                       \
  |  |  |  |   79|    160|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  601|    160|        return RNP_ERROR_SIGNATURE_INVALID;
  602|    160|    }
  603|  4.54k|    auto rsa = dynamic_cast<const RSASigMaterial *>(&sig);
  604|  4.54k|    if (!rsa) {
  ------------------
  |  Branch (604:9): [True: 7, False: 4.53k]
  ------------------
  605|      7|        return RNP_ERROR_BAD_PARAMETERS;
  606|      7|    }
  607|  4.53k|    return key_.verify_pkcs1(rsa->sig, rsa->halg, hash);
  608|  4.54k|}
_ZNK3pgp14RSAKeyMaterial1nEv:
  640|  48.6k|{
  641|  48.6k|    return key_.n;
  642|  48.6k|}
_ZNK3pgp14RSAKeyMaterial1eEv:
  646|  12.1k|{
  647|  12.1k|    return key_.e;
  648|  12.1k|}
_ZN3pgp14DSAKeyMaterial5cloneEv:
  676|  2.19k|{
  677|  2.19k|    return std::unique_ptr<KeyMaterial>(new DSAKeyMaterial(*this));
  678|  2.19k|}
_ZNK3pgp14DSAKeyMaterial11grip_updateERN3rnp4HashE:
  682|    420|{
  683|    420|    grip_hash_mpi(hash, key_.p, 'p');
  684|    420|    grip_hash_mpi(hash, key_.q, 'q');
  685|    420|    grip_hash_mpi(hash, key_.g, 'g');
  686|    420|    grip_hash_mpi(hash, key_.y, 'y');
  687|    420|}
_ZN3pgp14DSAKeyMaterial12clear_secretEv:
  697|    458|{
  698|    458|    key_.clear_secret();
  699|    458|    KeyMaterial::clear_secret();
  700|    458|}
_ZN3pgp14DSAKeyMaterial5parseER17pgp_packet_body_t:
  704|    627|{
  705|    627|    secret_ = false;
  706|    627|    return pkt.get(key_.p) && pkt.get(key_.q) && pkt.get(key_.g) && pkt.get(key_.y);
  ------------------
  |  Branch (706:12): [True: 544, False: 83]
  |  Branch (706:31): [True: 501, False: 43]
  |  Branch (706:50): [True: 483, False: 18]
  |  Branch (706:69): [True: 478, False: 5]
  ------------------
  707|    627|}
_ZN3pgp14DSAKeyMaterial12parse_secretER17pgp_packet_body_t:
  711|     12|{
  712|     12|    if (!pkt.get(key_.x)) {
  ------------------
  |  Branch (712:9): [True: 7, False: 5]
  ------------------
  713|      7|        RNP_LOG("failed to parse dsa secret key data");
  ------------------
  |  |   84|      7|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      7|    do {                                                                                 \
  |  |  |  |   77|      7|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 7, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      7|            break;                                                                       \
  |  |  |  |   79|      7|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  714|      7|        return false;
  715|      7|    }
  716|      5|    secret_ = true;
  717|      5|    return true;
  718|     12|}
_ZNK3pgp14DSAKeyMaterial6verifyERKN3rnp15SecurityContextERKNS_11SigMaterialERKNSt3__16vectorIhNS1_16secure_allocatorIhEEEE:
  750|    547|{
  751|    547|    auto dsa = dynamic_cast<const DSASigMaterial *>(&sig);
  752|    547|    if (!dsa) {
  ------------------
  |  Branch (752:9): [True: 5, False: 542]
  ------------------
  753|      5|        return RNP_ERROR_BAD_PARAMETERS;
  754|      5|    }
  755|    542|    return key_.verify(dsa->sig, hash);
  756|    547|}
_ZN3pgp13EGKeyMaterial5cloneEv:
  831|    499|{
  832|    499|    return std::unique_ptr<KeyMaterial>(new EGKeyMaterial(*this));
  833|    499|}
_ZNK3pgp13EGKeyMaterial11grip_updateERN3rnp4HashE:
  837|     95|{
  838|     95|    grip_hash_mpi(hash, key_.p, 'p');
  839|     95|    grip_hash_mpi(hash, key_.g, 'g');
  840|     95|    grip_hash_mpi(hash, key_.y, 'y');
  841|     95|}
_ZN3pgp13EGKeyMaterial12clear_secretEv:
  851|    108|{
  852|    108|    key_.clear_secret();
  853|    108|    KeyMaterial::clear_secret();
  854|    108|}
_ZN3pgp13EGKeyMaterial5parseER17pgp_packet_body_t:
  858|    867|{
  859|    867|    secret_ = false;
  860|    867|    return pkt.get(key_.p) && pkt.get(key_.g) && pkt.get(key_.y);
  ------------------
  |  Branch (860:12): [True: 735, False: 132]
  |  Branch (860:31): [True: 219, False: 516]
  |  Branch (860:50): [True: 114, False: 105]
  ------------------
  861|    867|}
_ZN3pgp13EGKeyMaterial12parse_secretER17pgp_packet_body_t:
  865|     19|{
  866|     19|    if (!pkt.get(key_.x)) {
  ------------------
  |  Branch (866:9): [True: 9, False: 10]
  ------------------
  867|      9|        RNP_LOG("failed to parse eg secret key data");
  ------------------
  |  |   84|      9|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      9|    do {                                                                                 \
  |  |  |  |   77|      9|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 9, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      9|            break;                                                                       \
  |  |  |  |   79|      9|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  868|      9|        return false;
  869|      9|    }
  870|     10|    secret_ = true;
  871|     10|    return true;
  872|     19|}
_ZNK3pgp13EGKeyMaterial6verifyERKN3rnp15SecurityContextERKNS_11SigMaterialERKNSt3__16vectorIhNS1_16secure_allocatorIhEEEE:
  931|      1|{
  932|      1|    RNP_LOG("ElGamal signatures are considered as invalid.");
  ------------------
  |  |   84|      1|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      1|    do {                                                                                 \
  |  |  |  |   77|      1|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 1, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      1|            break;                                                                       \
  |  |  |  |   79|      1|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  933|      1|    return RNP_ERROR_SIGNATURE_INVALID;
  934|      1|}
_ZNK3pgp13ECKeyMaterial11grip_updateERN3rnp4HashE:
  975|  42.1k|{
  976|  42.1k|    grip_hash_ec(hash, key_);
  977|  42.1k|}
_ZN3pgp13ECKeyMaterial12clear_secretEv:
  981|  14.4k|{
  982|  14.4k|    key_.clear_secret();
  983|  14.4k|    KeyMaterial::clear_secret();
  984|  14.4k|}
_ZN3pgp13ECKeyMaterial5parseER17pgp_packet_body_t:
 1008|  54.6k|{
 1009|  54.6k|    secret_ = false;
 1010|  54.6k|    if (!pkt.get(key_.curve) || !pkt.get(key_.p)) {
  ------------------
  |  Branch (1010:9): [True: 1.63k, False: 53.0k]
  |  Branch (1010:33): [True: 497, False: 52.5k]
  ------------------
 1011|  2.12k|        return false;
 1012|  2.12k|    }
 1013|  52.5k|    return true;
 1014|  54.6k|}
_ZN3pgp13ECKeyMaterial12parse_secretER17pgp_packet_body_t:
 1018|    662|{
 1019|    662|    if (!pkt.get(key_.x)) {
  ------------------
  |  Branch (1019:9): [True: 5, False: 657]
  ------------------
 1020|      5|        RNP_LOG("failed to parse ecc secret key data");
  ------------------
  |  |   84|      5|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      5|    do {                                                                                 \
  |  |  |  |   77|      5|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 5, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      5|            break;                                                                       \
  |  |  |  |   79|      5|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1021|      5|        return false;
 1022|      5|    }
 1023|    657|    secret_ = true;
 1024|    657|    return true;
 1025|    662|}
_ZN3pgp16ECDSAKeyMaterial5cloneEv:
 1101|  34.8k|{
 1102|  34.8k|    return std::unique_ptr<KeyMaterial>(new ECDSAKeyMaterial(*this));
 1103|  34.8k|}
_ZNK3pgp16ECDSAKeyMaterial6verifyERKN3rnp15SecurityContextERKNS_11SigMaterialERKNSt3__16vectorIhNS1_16secure_allocatorIhEEEE:
 1109|  9.77k|{
 1110|  9.77k|    if (!ec::Curve::is_supported(key_.curve)) {
  ------------------
  |  Branch (1110:9): [True: 0, False: 9.77k]
  ------------------
 1111|      0|        RNP_LOG("Curve %d is not supported.", key_.curve);
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1112|      0|        return RNP_ERROR_NOT_SUPPORTED;
 1113|      0|    }
 1114|  9.77k|    auto ec = dynamic_cast<const ECSigMaterial *>(&sig);
 1115|  9.77k|    if (!ec) {
  ------------------
  |  Branch (1115:9): [True: 23, False: 9.75k]
  ------------------
 1116|     23|        return RNP_ERROR_BAD_PARAMETERS;
 1117|     23|    }
 1118|  9.75k|    return ecdsa::verify(ec->sig, ec->halg, hash, key_);
 1119|  9.77k|}
_ZN3pgp15ECDHKeyMaterial5cloneEv:
 1160|  45.7k|{
 1161|  45.7k|    return std::unique_ptr<KeyMaterial>(new ECDHKeyMaterial(*this));
 1162|  45.7k|}
_ZN3pgp15ECDHKeyMaterial5parseER17pgp_packet_body_t:
 1166|  10.4k|{
 1167|  10.4k|    if (!ECKeyMaterial::parse(pkt)) {
  ------------------
  |  Branch (1167:9): [True: 951, False: 9.53k]
  ------------------
 1168|    951|        return false;
 1169|    951|    }
 1170|       |    /* Additional ECDH fields */
 1171|       |    /* Read KDF parameters. At the moment should be 0x03 0x01 halg ealg */
 1172|  9.53k|    uint8_t len = 0, halg = 0, walg = 0;
 1173|  9.53k|    if (!pkt.get(len) || (len != 3)) {
  ------------------
  |  Branch (1173:9): [True: 12, False: 9.51k]
  |  Branch (1173:26): [True: 70, False: 9.44k]
  ------------------
 1174|     82|        return false;
 1175|     82|    }
 1176|  9.44k|    if (!pkt.get(len) || (len != 1)) {
  ------------------
  |  Branch (1176:9): [True: 12, False: 9.43k]
  |  Branch (1176:26): [True: 73, False: 9.36k]
  ------------------
 1177|     85|        return false;
 1178|     85|    }
 1179|  9.36k|    if (!pkt.get(halg) || !pkt.get(walg)) {
  ------------------
  |  Branch (1179:9): [True: 3, False: 9.36k]
  |  Branch (1179:27): [True: 284, False: 9.07k]
  ------------------
 1180|    287|        return false;
 1181|    287|    }
 1182|  9.07k|    key_.kdf_hash_alg = (pgp_hash_alg_t) halg;
 1183|  9.07k|    key_.key_wrap_alg = (pgp_symm_alg_t) walg;
 1184|  9.07k|    return true;
 1185|  9.36k|}
_ZN3pgp16EDDSAKeyMaterial5cloneEv:
 1285|  79.8k|{
 1286|  79.8k|    return std::unique_ptr<KeyMaterial>(new EDDSAKeyMaterial(*this));
 1287|  79.8k|}
_ZNK3pgp16EDDSAKeyMaterial6verifyERKN3rnp15SecurityContextERKNS_11SigMaterialERKNSt3__16vectorIhNS1_16secure_allocatorIhEEEE:
 1303|  4.12k|{
 1304|  4.12k|    auto ec = dynamic_cast<const ECSigMaterial *>(&sig);
 1305|  4.12k|    if (!ec) {
  ------------------
  |  Branch (1305:9): [True: 65, False: 4.05k]
  ------------------
 1306|     65|        return RNP_ERROR_BAD_PARAMETERS;
 1307|     65|    }
 1308|  4.05k|    return eddsa::verify(ec->sig, hash, key_);
 1309|  4.12k|}
_ZN3pgp14SM2KeyMaterial5cloneEv:
 1336|  47.6k|{
 1337|  47.6k|    return std::unique_ptr<KeyMaterial>(new SM2KeyMaterial(*this));
 1338|  47.6k|}
_ZNK3pgp14SM2KeyMaterial6verifyERKN3rnp15SecurityContextERKNS_11SigMaterialERKNSt3__16vectorIhNS1_16secure_allocatorIhEEEE:
 1378|  4.39k|{
 1379|  4.39k|#if defined(ENABLE_SM2)
 1380|  4.39k|    auto ec = dynamic_cast<const ECSigMaterial *>(&sig);
 1381|  4.39k|    if (!ec) {
  ------------------
  |  Branch (1381:9): [True: 4, False: 4.38k]
  ------------------
 1382|      4|        return RNP_ERROR_BAD_PARAMETERS;
 1383|      4|    }
 1384|  4.38k|    return sm2::verify(ec->sig, ec->halg, hash, key_);
 1385|       |#else
 1386|       |    RNP_LOG("SM2 verification is not available.");
 1387|       |    return RNP_ERROR_NOT_IMPLEMENTED;
 1388|       |#endif
 1389|  4.39k|}
_ZNK3pgp14SM2KeyMaterial10compute_zaERN3rnp4HashE:
 1414|  4.41k|{
 1415|  4.41k|#if defined(ENABLE_SM2)
 1416|  4.41k|    auto res = sm2::compute_za(key_, hash);
 1417|  4.41k|    if (res) {
  ------------------
  |  Branch (1417:9): [True: 21, False: 4.39k]
  ------------------
 1418|     21|        RNP_LOG("failed to compute SM2 ZA field");
  ------------------
  |  |   84|     21|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     21|    do {                                                                                 \
  |  |  |  |   77|     21|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 21, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     21|            break;                                                                       \
  |  |  |  |   79|     21|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1419|     21|        throw rnp::rnp_exception(res);
 1420|     21|    }
 1421|       |#else
 1422|       |    RNP_LOG("SM2 ZA computation not available");
 1423|       |    throw rnp::rnp_exception(RNP_ERROR_NOT_IMPLEMENTED);
 1424|       |#endif
 1425|  4.41k|}
_ZN3pgp18Ed25519KeyMaterial5cloneEv:
 1430|  5.33k|{
 1431|  5.33k|    return std::unique_ptr<KeyMaterial>(new Ed25519KeyMaterial(*this));
 1432|  5.33k|}
_ZNK3pgp18Ed25519KeyMaterial11grip_updateERN3rnp4HashE:
 1436|    774|{
 1437|       |    // TODO: if GnuPG would ever support v6, check whether this works correctly.
 1438|    774|    hash.add(pub());
 1439|    774|}
_ZN3pgp18Ed25519KeyMaterial12clear_secretEv:
 1449|    840|{
 1450|    840|    key_.clear_secret();
 1451|    840|    KeyMaterial::clear_secret();
 1452|    840|}
_ZN3pgp18Ed25519KeyMaterial5parseER17pgp_packet_body_t:
 1456|  1.27k|{
 1457|  1.27k|    secret_ = false;
 1458|  1.27k|    auto                 ec_desc = ec::Curve::get(PGP_CURVE_ED25519);
 1459|  1.27k|    std::vector<uint8_t> buf(ec_desc->bytes());
 1460|  1.27k|    if (!pkt.get(buf.data(), buf.size())) {
  ------------------
  |  Branch (1460:9): [True: 72, False: 1.19k]
  ------------------
 1461|     72|        RNP_LOG("failed to parse Ed25519 public key data");
  ------------------
  |  |   84|     72|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     72|    do {                                                                                 \
  |  |  |  |   77|     72|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 72, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     72|            break;                                                                       \
  |  |  |  |   79|     72|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1462|     72|        return false;
 1463|     72|    }
 1464|  1.19k|    key_.pub = buf;
 1465|  1.19k|    return true;
 1466|  1.27k|}
_ZN3pgp18Ed25519KeyMaterial12parse_secretER17pgp_packet_body_t:
 1470|     58|{
 1471|     58|    auto ec_desc = ec::Curve::get(PGP_CURVE_ED25519);
 1472|     58|    if (!pkt.get(key_.priv, ec_desc->bytes())) {
  ------------------
  |  Branch (1472:9): [True: 24, False: 34]
  ------------------
 1473|     24|        RNP_LOG("failed to parse Ed25519 secret key data");
  ------------------
  |  |   84|     24|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     24|    do {                                                                                 \
  |  |  |  |   77|     24|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 24, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     24|            break;                                                                       \
  |  |  |  |   79|     24|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1474|     24|        return false;
 1475|     24|    }
 1476|     34|    secret_ = true;
 1477|     34|    return true;
 1478|     58|}
_ZNK3pgp18Ed25519KeyMaterial6verifyERKN3rnp15SecurityContextERKNS_11SigMaterialERKNSt3__16vectorIhNS1_16secure_allocatorIhEEEE:
 1506|     51|{
 1507|     51|    auto ed25519 = dynamic_cast<const Ed25519SigMaterial *>(&sig);
 1508|     51|    if (!ed25519) {
  ------------------
  |  Branch (1508:9): [True: 0, False: 51]
  ------------------
 1509|      0|        return RNP_ERROR_BAD_PARAMETERS;
 1510|      0|    }
 1511|     51|    return ed25519_verify_native(ed25519->sig.sig, key_.pub, hash.data(), hash.size());
 1512|     51|}
_ZNK3pgp18Ed25519KeyMaterial16sig_hash_allowedE14pgp_hash_alg_t:
 1538|     51|{
 1539|     51|    return rnp::Hash::size(hash) >= 32;
 1540|     51|}
_ZNK3pgp18Ed25519KeyMaterial3pubEv:
 1556|    774|{
 1557|    774|    return key_.pub;
 1558|    774|}
_ZN3pgp17X25519KeyMaterial5cloneEv:
 1568|  22.5k|{
 1569|  22.5k|    return std::unique_ptr<KeyMaterial>(new X25519KeyMaterial(*this));
 1570|  22.5k|}
_ZNK3pgp17X25519KeyMaterial11grip_updateERN3rnp4HashE:
 1574|  2.99k|{
 1575|       |    // TODO: if GnuPG would ever support v6, check whether this works correctly.
 1576|  2.99k|    hash.add(pub());
 1577|  2.99k|}
_ZN3pgp17X25519KeyMaterial12clear_secretEv:
 1587|    999|{
 1588|    999|    key_.clear_secret();
 1589|    999|    KeyMaterial::clear_secret();
 1590|    999|}
_ZN3pgp17X25519KeyMaterial5parseER17pgp_packet_body_t:
 1594|  4.67k|{
 1595|  4.67k|    secret_ = false;
 1596|  4.67k|    auto                 ec_desc = ec::Curve::get(PGP_CURVE_25519);
 1597|  4.67k|    std::vector<uint8_t> buf(ec_desc->bytes());
 1598|  4.67k|    if (!pkt.get(buf.data(), buf.size())) {
  ------------------
  |  Branch (1598:9): [True: 70, False: 4.60k]
  ------------------
 1599|     70|        RNP_LOG("failed to parse X25519 public key data");
  ------------------
  |  |   84|     70|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     70|    do {                                                                                 \
  |  |  |  |   77|     70|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 70, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     70|            break;                                                                       \
  |  |  |  |   79|     70|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1600|     70|        return false;
 1601|     70|    }
 1602|  4.60k|    key_.pub = buf;
 1603|  4.60k|    return true;
 1604|  4.67k|}
_ZN3pgp17X25519KeyMaterial12parse_secretER17pgp_packet_body_t:
 1608|    130|{
 1609|    130|    auto ec_desc = ec::Curve::get(PGP_CURVE_25519);
 1610|    130|    if (!pkt.get(key_.priv, ec_desc->bytes())) {
  ------------------
  |  Branch (1610:9): [True: 11, False: 119]
  ------------------
 1611|     11|        RNP_LOG("failed to parse X25519 secret key data");
  ------------------
  |  |   84|     11|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     11|    do {                                                                                 \
  |  |  |  |   77|     11|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 11, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     11|            break;                                                                       \
  |  |  |  |   79|     11|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1612|     11|        return false;
 1613|     11|    }
 1614|    119|    secret_ = true;
 1615|    119|    return true;
 1616|    130|}
_ZNK3pgp17X25519KeyMaterial3pubEv:
 1684|  2.99k|{
 1685|  2.99k|    return key_.pub;
 1686|  2.99k|}
_ZN3pgp16Ed448KeyMaterial5cloneEv:
 1696|  1.62k|{
 1697|  1.62k|    return std::unique_ptr<KeyMaterial>(new Ed448KeyMaterial(*this));
 1698|  1.62k|}
_ZNK3pgp16Ed448KeyMaterial11grip_updateERN3rnp4HashE:
 1702|    196|{
 1703|       |    // TODO: if GnuPG would ever support v6, check whether this works correctly.
 1704|    196|    hash.add(pub());
 1705|    196|}
_ZN3pgp16Ed448KeyMaterial12clear_secretEv:
 1715|    253|{
 1716|    253|    key_.clear_secret();
 1717|    253|    KeyMaterial::clear_secret();
 1718|    253|}
_ZN3pgp16Ed448KeyMaterial5parseER17pgp_packet_body_t:
 1722|    370|{
 1723|    370|    secret_ = false;
 1724|    370|    auto                 ec_desc = ec::Curve::get(PGP_CURVE_ED448);
 1725|    370|    std::vector<uint8_t> buf(BITS_TO_BYTES(ec_desc->bitlen));
  ------------------
  |  |   56|    370|#define BITS_TO_BYTES(b) (((b) + (CHAR_BIT - 1)) / CHAR_BIT)
  ------------------
 1726|    370|    if (!pkt.get(buf.data(), buf.size())) {
  ------------------
  |  Branch (1726:9): [True: 79, False: 291]
  ------------------
 1727|     79|        RNP_LOG("failed to parse Ed448 public key data");
  ------------------
  |  |   84|     79|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     79|    do {                                                                                 \
  |  |  |  |   77|     79|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 79, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     79|            break;                                                                       \
  |  |  |  |   79|     79|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1728|     79|        return false;
 1729|     79|    }
 1730|    291|    key_.pub = buf;
 1731|    291|    return true;
 1732|    370|}
_ZN3pgp16Ed448KeyMaterial12parse_secretER17pgp_packet_body_t:
 1736|     15|{
 1737|     15|    auto ec_desc = ec::Curve::get(PGP_CURVE_ED448);
 1738|     15|    if (!pkt.get(key_.priv, BITS_TO_BYTES(ec_desc->bitlen))) {
  ------------------
  |  |   56|     15|#define BITS_TO_BYTES(b) (((b) + (CHAR_BIT - 1)) / CHAR_BIT)
  ------------------
  |  Branch (1738:9): [True: 10, False: 5]
  ------------------
 1739|     10|        RNP_LOG("failed to parse Ed448 secret key data");
  ------------------
  |  |   84|     10|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     10|    do {                                                                                 \
  |  |  |  |   77|     10|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 10, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     10|            break;                                                                       \
  |  |  |  |   79|     10|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1740|     10|        return false;
 1741|     10|    }
 1742|      5|    secret_ = true;
 1743|      5|    return true;
 1744|     15|}
_ZNK3pgp16Ed448KeyMaterial3pubEv:
 1821|    196|{
 1822|    196|    return key_.pub;
 1823|    196|}
_ZN3pgp15X448KeyMaterial5cloneEv:
 1833|  3.39k|{
 1834|  3.39k|    return std::unique_ptr<KeyMaterial>(new X448KeyMaterial(*this));
 1835|  3.39k|}
_ZNK3pgp15X448KeyMaterial11grip_updateERN3rnp4HashE:
 1839|    406|{
 1840|       |    // TODO: if GnuPG would ever support v6, check whether this works correctly.
 1841|    406|    hash.add(pub());
 1842|    406|}
_ZN3pgp15X448KeyMaterial12clear_secretEv:
 1852|    616|{
 1853|    616|    key_.clear_secret();
 1854|    616|    KeyMaterial::clear_secret();
 1855|    616|}
_ZN3pgp15X448KeyMaterial5parseER17pgp_packet_body_t:
 1859|    574|{
 1860|    574|    secret_ = false;
 1861|    574|    auto                 ec_desc = ec::Curve::get(PGP_CURVE_448);
 1862|    574|    std::vector<uint8_t> buf(BITS_TO_BYTES(ec_desc->bitlen));
  ------------------
  |  |   56|    574|#define BITS_TO_BYTES(b) (((b) + (CHAR_BIT - 1)) / CHAR_BIT)
  ------------------
 1863|    574|    if (!pkt.get(buf.data(), buf.size())) {
  ------------------
  |  Branch (1863:9): [True: 12, False: 562]
  ------------------
 1864|     12|        RNP_LOG("failed to parse X448 public key data");
  ------------------
  |  |   84|     12|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     12|    do {                                                                                 \
  |  |  |  |   77|     12|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 12, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     12|            break;                                                                       \
  |  |  |  |   79|     12|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1865|     12|        return false;
 1866|     12|    }
 1867|    562|    key_.pub = buf;
 1868|    562|    return true;
 1869|    574|}
_ZN3pgp15X448KeyMaterial12parse_secretER17pgp_packet_body_t:
 1873|     26|{
 1874|     26|    auto ec_desc = ec::Curve::get(PGP_CURVE_448);
 1875|     26|    if (!pkt.get(key_.priv, BITS_TO_BYTES(ec_desc->bitlen))) {
  ------------------
  |  |   56|     26|#define BITS_TO_BYTES(b) (((b) + (CHAR_BIT - 1)) / CHAR_BIT)
  ------------------
  |  Branch (1875:9): [True: 23, False: 3]
  ------------------
 1876|     23|        RNP_LOG("failed to parse X448 secret key data");
  ------------------
  |  |   84|     23|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     23|    do {                                                                                 \
  |  |  |  |   77|     23|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 23, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     23|            break;                                                                       \
  |  |  |  |   79|     23|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1877|     23|        return false;
 1878|     23|    }
 1879|      3|    secret_ = true;
 1880|      3|    return true;
 1881|     26|}
_ZNK3pgp15X448KeyMaterial3pubEv:
 1949|    406|{
 1950|    406|    return key_.pub;
 1951|    406|}
_ZN3pgp20MlkemEcdhKeyMaterial5cloneEv:
 1963|    449|{
 1964|    449|    return std::unique_ptr<KeyMaterial>(new MlkemEcdhKeyMaterial(*this));
 1965|    449|}
_ZNK3pgp20MlkemEcdhKeyMaterial11grip_updateERN3rnp4HashE:
 1969|     80|{
 1970|     80|    hash.add(pub().get_encoded());
 1971|     80|}
_ZN3pgp20MlkemEcdhKeyMaterial12clear_secretEv:
 1981|     96|{
 1982|     96|    key_.priv.secure_clear();
 1983|     96|    KeyMaterial::clear_secret();
 1984|     96|}
_ZN3pgp20MlkemEcdhKeyMaterial5parseER17pgp_packet_body_t:
 1988|    255|{
 1989|    255|    secret_ = false;
 1990|    255|    std::vector<uint8_t> buf(pgp_kyber_ecdh_composite_public_key_t::encoded_size(alg()));
 1991|    255|    if (!pkt.get(buf.data(), buf.size())) {
  ------------------
  |  Branch (1991:9): [True: 135, False: 120]
  ------------------
 1992|    135|        RNP_LOG("failed to parse mlkem-ecdh public key data");
  ------------------
  |  |   84|    135|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    135|    do {                                                                                 \
  |  |  |  |   77|    135|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 135, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    135|            break;                                                                       \
  |  |  |  |   79|    135|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1993|    135|        return false;
 1994|    135|    }
 1995|    120|    key_.pub = pgp_kyber_ecdh_composite_public_key_t(buf, alg());
 1996|    120|    return true;
 1997|    255|}
_ZN3pgp20MlkemEcdhKeyMaterial12parse_secretER17pgp_packet_body_t:
 2001|     31|{
 2002|     31|    rnp::secure_bytes buf(pgp_kyber_ecdh_composite_private_key_t::encoded_size(alg()));
 2003|     31|    if (!pkt.get(buf.data(), buf.size())) {
  ------------------
  |  Branch (2003:9): [True: 11, False: 20]
  ------------------
 2004|     11|        RNP_LOG("failed to parse mkem-ecdh secret key data");
  ------------------
  |  |   84|     11|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     11|    do {                                                                                 \
  |  |  |  |   77|     11|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 11, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     11|            break;                                                                       \
  |  |  |  |   79|     11|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2005|     11|        return false;
 2006|     11|    }
 2007|     20|    key_.priv = pgp_kyber_ecdh_composite_private_key_t(buf.data(), buf.size(), alg());
 2008|     20|    secret_ = true;
 2009|     20|    return true;
 2010|     31|}
_ZNK3pgp20MlkemEcdhKeyMaterial3pubEv:
 2072|     80|{
 2073|     80|    return key_.pub;
 2074|     80|}
_ZN3pgp23DilithiumEccKeyMaterial5cloneEv:
 2086|    441|{
 2087|    441|    return std::unique_ptr<KeyMaterial>(new DilithiumEccKeyMaterial(*this));
 2088|    441|}
_ZNK3pgp23DilithiumEccKeyMaterial11grip_updateERN3rnp4HashE:
 2092|     70|{
 2093|     70|    hash.add(pub().get_encoded());
 2094|     70|}
_ZN3pgp23DilithiumEccKeyMaterial12clear_secretEv:
 2104|     94|{
 2105|     94|    key_.priv.secure_clear();
 2106|     94|    KeyMaterial::clear_secret();
 2107|     94|}
_ZN3pgp23DilithiumEccKeyMaterial5parseER17pgp_packet_body_t:
 2111|    454|{
 2112|    454|    secret_ = false;
 2113|    454|    std::vector<uint8_t> buf(pgp_dilithium_exdsa_composite_public_key_t::encoded_size(alg()));
 2114|    454|    if (!pkt.get(buf.data(), buf.size())) {
  ------------------
  |  Branch (2114:9): [True: 358, False: 96]
  ------------------
 2115|    358|        RNP_LOG("failed to parse mldsa-ecdsa/eddsa public key data");
  ------------------
  |  |   84|    358|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    358|    do {                                                                                 \
  |  |  |  |   77|    358|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 358, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    358|            break;                                                                       \
  |  |  |  |   79|    358|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2116|    358|        return false;
 2117|    358|    }
 2118|     96|    key_.pub = pgp_dilithium_exdsa_composite_public_key_t(buf, alg());
 2119|     96|    return true;
 2120|    454|}
_ZN3pgp23DilithiumEccKeyMaterial12parse_secretER17pgp_packet_body_t:
 2124|     21|{
 2125|     21|    rnp::secure_bytes buf(pgp_dilithium_exdsa_composite_private_key_t::encoded_size(alg()));
 2126|     21|    if (!pkt.get(buf.data(), buf.size())) {
  ------------------
  |  Branch (2126:9): [True: 8, False: 13]
  ------------------
 2127|      8|        RNP_LOG("failed to parse mldsa-ecdsa/eddsa secret key data");
  ------------------
  |  |   84|      8|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      8|    do {                                                                                 \
  |  |  |  |   77|      8|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 8, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      8|            break;                                                                       \
  |  |  |  |   79|      8|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2128|      8|        return false;
 2129|      8|    }
 2130|     13|    key_.priv = pgp_dilithium_exdsa_composite_private_key_t(buf.data(), buf.size(), alg());
 2131|     13|    secret_ = true;
 2132|     13|    return true;
 2133|     21|}
_ZNK3pgp23DilithiumEccKeyMaterial3pubEv:
 2205|     70|{
 2206|     70|    return key_.pub;
 2207|     70|}
_ZN3pgp17SlhdsaKeyMaterial5cloneEv:
 2217|  36.1k|{
 2218|  36.1k|    return std::unique_ptr<KeyMaterial>(new SlhdsaKeyMaterial(*this));
 2219|  36.1k|}
_ZNK3pgp17SlhdsaKeyMaterial11grip_updateERN3rnp4HashE:
 2223|  4.37k|{
 2224|  4.37k|    hash.add(pub().get_encoded());
 2225|  4.37k|}
_ZN3pgp17SlhdsaKeyMaterial12clear_secretEv:
 2235|  3.86k|{
 2236|  3.86k|    key_.priv.secure_clear();
 2237|  3.86k|    KeyMaterial::clear_secret();
 2238|  3.86k|}
_ZN3pgp17SlhdsaKeyMaterial5parseER17pgp_packet_body_t:
 2242|  9.33k|{
 2243|  9.33k|    secret_ = false;
 2244|  9.33k|    auto size = sphincsplus_pubkey_size(alg());
 2245|  9.33k|    if (!size) {
  ------------------
  |  Branch (2245:9): [True: 0, False: 9.33k]
  ------------------
 2246|      0|        RNP_LOG("invalid algorithm");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2247|      0|        return false;
 2248|      0|    }
 2249|  9.33k|    std::vector<uint8_t> buf(size);
 2250|  9.33k|    if (!pkt.get(buf.data(), buf.size())) {
  ------------------
  |  Branch (2250:9): [True: 30, False: 9.30k]
  ------------------
 2251|     30|        RNP_LOG("failed to parse SLH-DSA public key data");
  ------------------
  |  |   84|     30|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     30|    do {                                                                                 \
  |  |  |  |   77|     30|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 30, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     30|            break;                                                                       \
  |  |  |  |   79|     30|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2252|     30|        return false;
 2253|     30|    }
 2254|  9.30k|    key_.pub = pgp_sphincsplus_public_key_t(buf, alg());
 2255|  9.30k|    return true;
 2256|  9.33k|}
_ZN3pgp17SlhdsaKeyMaterial12parse_secretER17pgp_packet_body_t:
 2260|     89|{
 2261|     89|    rnp::secure_bytes buf(sphincsplus_privkey_size(alg()));
 2262|     89|    if (!pkt.get(buf.data(), buf.size())) {
  ------------------
  |  Branch (2262:9): [True: 80, False: 9]
  ------------------
 2263|     80|        RNP_LOG("failed to parse SLH-DSA secret key data");
  ------------------
  |  |   84|     80|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     80|    do {                                                                                 \
  |  |  |  |   77|     80|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 80, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     80|            break;                                                                       \
  |  |  |  |   79|     80|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2264|     80|        return false;
 2265|     80|    }
 2266|      9|    key_.priv = pgp_sphincsplus_private_key_t(buf.data(), buf.size(), alg());
 2267|      9|    secret_ = true;
 2268|      9|    return true;
 2269|     89|}
_ZNK3pgp17SlhdsaKeyMaterial6verifyERKN3rnp15SecurityContextERKNS_11SigMaterialERKNSt3__16vectorIhNS1_16secure_allocatorIhEEEE:
 2297|     64|{
 2298|     64|    auto slhdsa = dynamic_cast<const SlhdsaSigMaterial *>(&sig);
 2299|     64|    if (!slhdsa) {
  ------------------
  |  Branch (2299:9): [True: 0, False: 64]
  ------------------
 2300|      0|        return RNP_ERROR_BAD_PARAMETERS;
 2301|      0|    }
 2302|     64|    return key_.pub.verify(&slhdsa->sig, hash.data(), hash.size());
 2303|     64|}
_ZNK3pgp17SlhdsaKeyMaterial16sig_hash_allowedE14pgp_hash_alg_t:
 2328|     64|{
 2329|     64|    return rnp::Hash::size(hash) >= 32;
 2330|     64|}
_ZNK3pgp17SlhdsaKeyMaterial3pubEv:
 2340|  4.37k|{
 2341|  4.37k|    return key_.pub;
 2342|  4.37k|}
key_material.cpp:_ZN12_GLOBAL__N_113grip_hash_mpiERN3rnp4HashERKN3pgp3mpiEcb:
   37|   271k|{
   38|   271k|    size_t len = val.size();
   39|   271k|    size_t idx = 0;
   40|   513k|    for (idx = 0; (idx < len) && !val[idx]; idx++)
  ------------------
  |  Branch (40:19): [True: 506k, False: 6.76k]
  |  Branch (40:34): [True: 242k, False: 264k]
  ------------------
   41|   242k|        ;
   42|       |
   43|   271k|    if (name) {
  ------------------
  |  Branch (43:9): [True: 254k, False: 16.5k]
  ------------------
   44|   254k|        size_t hlen = idx >= len ? 0 : len - idx;
  ------------------
  |  Branch (44:23): [True: 3.41k, False: 251k]
  ------------------
   45|   254k|        if ((len > idx) && lzero && (val[idx] & 0x80)) {
  ------------------
  |  Branch (45:13): [True: 251k, False: 3.41k]
  |  Branch (45:28): [True: 1.87k, False: 249k]
  |  Branch (45:37): [True: 904, False: 971]
  ------------------
   46|    904|            hlen++;
   47|    904|        }
   48|       |
   49|   254k|        char buf[26] = {0};
   50|   254k|        snprintf(buf, sizeof(buf), "(1:%c%zu:", name, hlen);
   51|   254k|        hash.add(buf, strlen(buf));
   52|   254k|    }
   53|       |
   54|   271k|    if (idx < len) {
  ------------------
  |  Branch (54:9): [True: 264k, False: 6.76k]
  ------------------
   55|       |        /* gcrypt prepends mpis with zero if higher bit is set */
   56|   264k|        if (lzero && (val[idx] & 0x80)) {
  ------------------
  |  Branch (56:13): [True: 15.1k, False: 249k]
  |  Branch (56:22): [True: 4.52k, False: 10.5k]
  ------------------
   57|  4.52k|            uint8_t zero = 0;
   58|  4.52k|            hash.add(&zero, 1);
   59|  4.52k|        }
   60|   264k|        hash.add(val.data() + idx, len - idx);
   61|   264k|    }
   62|   271k|    if (name) {
  ------------------
  |  Branch (62:9): [True: 254k, False: 16.5k]
  ------------------
   63|   254k|        hash.add(")", 1);
   64|   254k|    }
   65|   271k|}
key_material.cpp:_ZN12_GLOBAL__N_112grip_hash_ecERN3rnp4HashERKN3pgp2ec3KeyE:
   85|  42.1k|{
   86|  42.1k|    auto desc = pgp::ec::Curve::get(key.curve);
   87|  42.1k|    if (!desc) {
  ------------------
  |  Branch (87:9): [True: 22, False: 42.0k]
  ------------------
   88|     22|        RNP_LOG("unknown curve %d", (int) key.curve);
  ------------------
  |  |   84|     22|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     22|    do {                                                                                 \
  |  |  |  |   77|     22|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 22, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     22|            break;                                                                       \
  |  |  |  |   79|     22|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   89|     22|        throw rnp::rnp_exception(RNP_ERROR_BAD_PARAMETERS);
   90|     22|    }
   91|       |
   92|       |    /* build uncompressed point from gx and gy */
   93|  42.0k|    auto gxbin = rnp::hex_to_bin(desc->gx);
   94|  42.0k|    auto gybin = rnp::hex_to_bin(desc->gy);
   95|  42.0k|    assert(!gxbin.empty());
   96|  42.0k|    assert(!gybin.empty());
   97|  42.0k|    pgp::mpi g;
   98|  42.0k|    g.resize(1 + gxbin.size() + gybin.size());
   99|  42.0k|    g[0] = 0x04;
  100|  42.0k|    memcpy(g.data() + 1, gxbin.data(), gxbin.size());
  101|  42.0k|    memcpy(g.data() + 1 + gxbin.size(), gybin.data(), gybin.size());
  102|       |
  103|       |    /* p, a, b, g, n, q */
  104|  42.0k|    grip_hash_ecc_hex(hash, desc->p, 'p');
  105|  42.0k|    grip_hash_ecc_hex(hash, desc->a, 'a');
  106|  42.0k|    grip_hash_ecc_hex(hash, desc->b, 'b');
  107|  42.0k|    grip_hash_mpi(hash, g, 'g', false);
  108|  42.0k|    grip_hash_ecc_hex(hash, desc->n, 'n');
  109|       |
  110|  42.0k|    if ((key.curve == PGP_CURVE_ED25519) || (key.curve == PGP_CURVE_25519)) {
  ------------------
  |  Branch (110:9): [True: 17.1k, False: 24.9k]
  |  Branch (110:45): [True: 1.10k, False: 23.8k]
  ------------------
  111|  18.2k|        if (g.size() < 1) {
  ------------------
  |  Branch (111:13): [True: 0, False: 18.2k]
  ------------------
  112|      0|            RNP_LOG("wrong 25519 p");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  113|      0|            throw rnp::rnp_exception(RNP_ERROR_BAD_PARAMETERS);
  114|      0|        }
  115|  18.2k|        g.resize(key.p.size() - 1);
  116|  18.2k|        memcpy(g.data(), key.p.data() + 1, g.size());
  117|  18.2k|        grip_hash_mpi(hash, g, 'q', false);
  118|  23.8k|    } else {
  119|  23.8k|        grip_hash_mpi(hash, key.p, 'q', false);
  120|  23.8k|    }
  121|  42.0k|}
key_material.cpp:_ZN12_GLOBAL__N_117grip_hash_ecc_hexERN3rnp4HashEPKcc:
   69|   168k|{
   70|   168k|    auto bin = rnp::hex_to_bin(hex);
   71|   168k|    if (bin.empty()) {
  ------------------
  |  Branch (71:9): [True: 0, False: 168k]
  ------------------
   72|      0|        RNP_LOG("wrong hex mpi");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   73|      0|        throw rnp::rnp_exception(RNP_ERROR_BAD_PARAMETERS);
   74|      0|    }
   75|       |
   76|   168k|    pgp::mpi mpi;
   77|   168k|    mpi.assign(bin.data(), bin.size());
   78|       |
   79|       |    /* libgcrypt doesn't add leading zero when hashes ecc mpis */
   80|   168k|    return grip_hash_mpi(hash, mpi, name, false);
   81|   168k|}

_ZN3pgp11KeyMaterialC2E16pgp_pubkey_alg_tb:
  180|  97.2k|        : validity_({}), alg_(kalg), secret_(secret){};
_ZN3pgp14RSAKeyMaterialC2E16pgp_pubkey_alg_t:
  232|  23.3k|    RSAKeyMaterial(pgp_pubkey_alg_t kalg) : KeyMaterial(kalg), key_{} {};
_ZN3pgp14DSAKeyMaterialC2Ev:
  275|    664|    DSAKeyMaterial() : KeyMaterial(PGP_PKA_DSA), key_{} {};
_ZN3pgp13EGKeyMaterialC2E16pgp_pubkey_alg_t:
  312|    882|    EGKeyMaterial(pgp_pubkey_alg_t kalg) : KeyMaterial(kalg), key_{} {};
_ZN3pgp13ECKeyMaterialC2E16pgp_pubkey_alg_t:
  350|  54.6k|    ECKeyMaterial(pgp_pubkey_alg_t kalg) : KeyMaterial(kalg), key_{} {};
_ZN3pgp16ECDSAKeyMaterialC2Ev:
  373|  9.47k|    ECDSAKeyMaterial() : ECKeyMaterial(PGP_PKA_ECDSA){};
_ZN3pgp15ECDHKeyMaterialC2Ev:
  392|  10.4k|    ECDHKeyMaterial() : ECKeyMaterial(PGP_PKA_ECDH){};
_ZN3pgp16EDDSAKeyMaterialC2Ev:
  418|  22.9k|    EDDSAKeyMaterial() : ECKeyMaterial(PGP_PKA_EDDSA){};
_ZN3pgp14SM2KeyMaterialC2Ev:
  437|  11.7k|    SM2KeyMaterial() : ECKeyMaterial(PGP_PKA_SM2){};
_ZN3pgp18Ed25519KeyMaterialC2Ev:
  466|  1.27k|    Ed25519KeyMaterial() : KeyMaterial(PGP_PKA_ED25519), key_{} {};
_ZN3pgp17X25519KeyMaterialC2Ev:
  498|  4.67k|    X25519KeyMaterial() : KeyMaterial(PGP_PKA_X25519), key_{} {};
_ZN3pgp16Ed448KeyMaterialC2Ev:
  528|    372|    Ed448KeyMaterial() : KeyMaterial(PGP_PKA_ED448), key_{} {};
_ZN3pgp15X448KeyMaterialC2Ev:
  561|    574|    X448KeyMaterial() : KeyMaterial(PGP_PKA_X448), key_{} {};
_ZN3pgp20MlkemEcdhKeyMaterialC2E16pgp_pubkey_alg_t:
  593|    400|    MlkemEcdhKeyMaterial(pgp_pubkey_alg_t kalg) : KeyMaterial(kalg), key_{} {};
_ZN3pgp23DilithiumEccKeyMaterialC2E16pgp_pubkey_alg_t:
  624|    876|    DilithiumEccKeyMaterial(pgp_pubkey_alg_t kalg) : KeyMaterial(kalg), key_{} {};
_ZN3pgp17SlhdsaKeyMaterialC2E16pgp_pubkey_alg_t:
  657|  9.48k|    SlhdsaKeyMaterial(pgp_pubkey_alg_t kalg) : KeyMaterial(kalg), key_{} {};

_Z14rnp_log_switchv:
   53|  1.31M|{
   54|  1.31M|    if (_rnp_log_switch < 0) {
  ------------------
  |  Branch (54:9): [True: 1, False: 1.31M]
  ------------------
   55|      1|        const char *var = getenv(RNP_LOG_CONSOLE);
   56|      1|        _rnp_log_switch = (var && strcmp(var, "0")) ? 1 : 0;
  ------------------
  |  Branch (56:28): [True: 0, False: 1]
  |  Branch (56:35): [True: 0, False: 0]
  ------------------
   57|      1|    }
   58|  1.31M|    return !_rnp_log_disable && !!_rnp_log_switch;
  ------------------
  |  Branch (58:12): [True: 1.31M, False: 0]
  |  Branch (58:33): [True: 0, False: 1.31M]
  ------------------
   59|  1.31M|}

_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapENSt3__16vectorENS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE9push_backEOSE_:
22391|  26.8k|    {
22392|       |        // push_back only works for null objects or arrays
22393|  26.8k|        if (JSON_HEDLEY_UNLIKELY(!(is_null() || is_array())))
  ------------------
  |  | 1677|  53.7k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1677:57): [True: 0, False: 26.8k]
  |  |  |  Branch (1677:94): [True: 0, False: 26.8k]
  |  |  |  Branch (1677:94): [True: 26.8k, False: 0]
  |  |  ------------------
  ------------------
22394|      0|        {
22395|      0|            JSON_THROW(type_error::create(308, detail::concat("cannot use push_back() with ", type_name()), this));
  ------------------
  |  | 2517|      0|    #define JSON_THROW(exception) throw exception
  ------------------
22396|      0|        }
22397|       |
22398|       |        // transform null object into an array
22399|  26.8k|        if (is_null())
  ------------------
  |  Branch (22399:13): [True: 0, False: 26.8k]
  ------------------
22400|      0|        {
22401|      0|            m_data.m_type = value_t::array;
22402|      0|            m_data.m_value = value_t::array;
22403|      0|            assert_invariant();
22404|      0|        }
22405|       |
22406|       |        // add element to array (move semantics)
22407|  26.8k|        const auto old_capacity = m_data.m_value.array->capacity();
22408|  26.8k|        m_data.m_value.array->push_back(std::move(val));
22409|  26.8k|        set_parent(m_data.m_value.array->back(), old_capacity);
22410|       |        // if val is moved from, basic_json move constructor marks it null, so we do not call the destructor
22411|  26.8k|    }
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapENSt3__16vectorENS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_valueC2ENS0_6detail7value_tE:
19756|   138k|        {
19757|   138k|            switch (t)
19758|   138k|            {
19759|  37.0k|                case value_t::object:
  ------------------
  |  Branch (19759:17): [True: 37.0k, False: 101k]
  ------------------
19760|  37.0k|                {
19761|  37.0k|                    object = create<object_t>();
19762|  37.0k|                    break;
19763|      0|                }
19764|       |
19765|      0|                case value_t::array:
  ------------------
  |  Branch (19765:17): [True: 0, False: 138k]
  ------------------
19766|      0|                {
19767|      0|                    array = create<array_t>();
19768|      0|                    break;
19769|      0|                }
19770|       |
19771|      0|                case value_t::string:
  ------------------
  |  Branch (19771:17): [True: 0, False: 138k]
  ------------------
19772|      0|                {
19773|      0|                    string = create<string_t>("");
19774|      0|                    break;
19775|      0|                }
19776|       |
19777|      0|                case value_t::binary:
  ------------------
  |  Branch (19777:17): [True: 0, False: 138k]
  ------------------
19778|      0|                {
19779|      0|                    binary = create<binary_t>();
19780|      0|                    break;
19781|      0|                }
19782|       |
19783|      0|                case value_t::boolean:
  ------------------
  |  Branch (19783:17): [True: 0, False: 138k]
  ------------------
19784|      0|                {
19785|      0|                    boolean = static_cast<boolean_t>(false);
19786|      0|                    break;
19787|      0|                }
19788|       |
19789|      0|                case value_t::number_integer:
  ------------------
  |  Branch (19789:17): [True: 0, False: 138k]
  ------------------
19790|      0|                {
19791|      0|                    number_integer = static_cast<number_integer_t>(0);
19792|      0|                    break;
19793|      0|                }
19794|       |
19795|      0|                case value_t::number_unsigned:
  ------------------
  |  Branch (19795:17): [True: 0, False: 138k]
  ------------------
19796|      0|                {
19797|      0|                    number_unsigned = static_cast<number_unsigned_t>(0);
19798|      0|                    break;
19799|      0|                }
19800|       |
19801|      0|                case value_t::number_float:
  ------------------
  |  Branch (19801:17): [True: 0, False: 138k]
  ------------------
19802|      0|                {
19803|      0|                    number_float = static_cast<number_float_t>(0.0);
19804|      0|                    break;
19805|      0|                }
19806|       |
19807|   101k|                case value_t::null:
  ------------------
  |  Branch (19807:17): [True: 101k, False: 37.0k]
  ------------------
19808|   101k|                {
19809|   101k|                    object = nullptr;  // silence warning, see #821
19810|   101k|                    break;
19811|      0|                }
19812|       |
19813|      0|                case value_t::discarded:
  ------------------
  |  Branch (19813:17): [True: 0, False: 138k]
  ------------------
19814|      0|                default:
  ------------------
  |  Branch (19814:17): [True: 0, False: 138k]
  ------------------
19815|      0|                {
19816|      0|                    object = nullptr;  // silence warning, see #821
19817|      0|                    if (JSON_HEDLEY_UNLIKELY(t == value_t::null))
  ------------------
  |  | 1677|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1677:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
19818|      0|                    {
19819|      0|                        JSON_THROW(other_error::create(500, "961c151d2e87f2686a955a9be24d316f1362bf21 3.11.3", nullptr)); // LCOV_EXCL_LINE
  ------------------
  |  | 2517|      0|    #define JSON_THROW(exception) throw exception
  ------------------
19820|      0|                    }
19821|      0|                    break;
19822|      0|                }
19823|   138k|            }
19824|   138k|        }
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapENSt3__16vectorENS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE6createINS2_ISA_SE_NS3_4lessIvEENS8_INS3_4pairIKSA_SE_EEEEEEJEEEPT_DpOT0_:
19681|  37.0k|    {
19682|  37.0k|        AllocatorType<T> alloc;
19683|  37.0k|        using AllocatorTraits = std::allocator_traits<AllocatorType<T>>;
19684|       |
19685|  37.0k|        auto deleter = [&](T * obj)
19686|  37.0k|        {
19687|  37.0k|            AllocatorTraits::deallocate(alloc, obj, 1);
19688|  37.0k|        };
19689|  37.0k|        std::unique_ptr<T, decltype(deleter)> obj(AllocatorTraits::allocate(alloc, 1), deleter);
19690|  37.0k|        AllocatorTraits::construct(alloc, obj.get(), std::forward<Args>(args)...);
19691|       |        JSON_ASSERT(obj != nullptr);
  ------------------
  |  | 2552|  37.0k|    #define JSON_ASSERT(x) assert(x)
  ------------------
19692|  37.0k|        return obj.release();
19693|  37.0k|    }
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS0_10basic_jsonIS1_NS2_6vectorES8_blmdS6_NS0_14adl_serializerENSA_IhNS6_IhEEEEvEENS2_4lessIvEENS6_INS2_4pairIKS8_SE_EEEEEC2Ev:
19050|  37.0k|    ordered_map() noexcept(noexcept(Container())) : Container{} {}
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapENSt3__16vectorENS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE16assert_invariantEb:
19985|  3.15M|    {
19986|  3.15M|        JSON_ASSERT(m_data.m_type != value_t::object || m_data.m_value.object != nullptr);
  ------------------
  |  | 2552|  3.15M|    #define JSON_ASSERT(x) assert(x)
  ------------------
19987|  3.15M|        JSON_ASSERT(m_data.m_type != value_t::array || m_data.m_value.array != nullptr);
  ------------------
  |  | 2552|  3.15M|    #define JSON_ASSERT(x) assert(x)
  ------------------
19988|  3.15M|        JSON_ASSERT(m_data.m_type != value_t::string || m_data.m_value.string != nullptr);
  ------------------
  |  | 2552|  3.15M|    #define JSON_ASSERT(x) assert(x)
  ------------------
19989|  3.15M|        JSON_ASSERT(m_data.m_type != value_t::binary || m_data.m_value.binary != nullptr);
  ------------------
  |  | 2552|  3.15M|    #define JSON_ASSERT(x) assert(x)
  ------------------
19990|       |
19991|       |#if JSON_DIAGNOSTICS
19992|       |        JSON_TRY
19993|       |        {
19994|       |            // cppcheck-suppress assertWithSideEffect
19995|       |            JSON_ASSERT(!check_parents || !is_structured() || std::all_of(begin(), end(), [this](const basic_json & j)
19996|       |            {
19997|       |                return j.m_parent == this;
19998|       |            }));
19999|       |        }
20000|       |        JSON_CATCH(...) {} // LCOV_EXCL_LINE
20001|       |#endif
20002|  3.15M|        static_cast<void>(check_parents);
20003|  3.15M|    }
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapENSt3__16vectorENS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10set_parentERSE_m:
20056|   127k|    {
20057|       |#if JSON_DIAGNOSTICS
20058|       |        if (old_capacity != static_cast<std::size_t>(-1))
20059|       |        {
20060|       |            // see https://github.com/nlohmann/json/issues/2838
20061|       |            JSON_ASSERT(type() == value_t::array);
20062|       |            if (JSON_HEDLEY_UNLIKELY(m_data.m_value.array->capacity() != old_capacity))
20063|       |            {
20064|       |                // capacity has changed: update all parents
20065|       |                set_parents();
20066|       |                return j;
20067|       |            }
20068|       |        }
20069|       |
20070|       |        // ordered_json uses a vector internally, so pointers could have
20071|       |        // been invalidated; see https://github.com/nlohmann/json/issues/2962
20072|       |#ifdef JSON_HEDLEY_MSVC_VERSION
20073|       |#pragma warning(push )
20074|       |#pragma warning(disable : 4127) // ignore warning to replace if with if constexpr
20075|       |#endif
20076|       |        if (detail::is_ordered_map<object_t>::value)
20077|       |        {
20078|       |            set_parents();
20079|       |            return j;
20080|       |        }
20081|       |#ifdef JSON_HEDLEY_MSVC_VERSION
20082|       |#pragma warning( pop )
20083|       |#endif
20084|       |
20085|       |        j.m_parent = this;
20086|       |#else
20087|   127k|        static_cast<void>(j);
20088|   127k|        static_cast<void>(old_capacity);
20089|   127k|#endif
20090|   127k|        return j;
20091|   127k|    }
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapENSt3__16vectorENS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE4dataC2Ev:
23510|   316k|        data() noexcept = default;
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapENSt3__16vectorENS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_value7destroyENS0_6detail7value_tE:
19857|  1.08M|        {
19858|  1.08M|            if (
19859|  1.08M|                (t == value_t::object && object == nullptr) ||
  ------------------
  |  Branch (19859:18): [True: 63.9k, False: 1.02M]
  |  Branch (19859:42): [True: 0, False: 63.9k]
  ------------------
19860|  1.08M|                (t == value_t::array && array == nullptr) ||
  ------------------
  |  Branch (19860:18): [True: 10.1k, False: 1.07M]
  |  Branch (19860:41): [True: 0, False: 10.1k]
  ------------------
19861|  1.08M|                (t == value_t::string && string == nullptr) ||
  ------------------
  |  Branch (19861:18): [True: 242k, False: 846k]
  |  Branch (19861:42): [True: 0, False: 242k]
  ------------------
19862|  1.08M|                (t == value_t::binary && binary == nullptr)
  ------------------
  |  Branch (19862:18): [True: 0, False: 1.08M]
  |  Branch (19862:42): [True: 0, False: 0]
  ------------------
19863|  1.08M|            )
19864|      0|            {
19865|       |                //not initialized (e.g. due to exception in the ctor)
19866|      0|                return;
19867|      0|            }
19868|  1.08M|            if (t == value_t::array || t == value_t::object)
  ------------------
  |  Branch (19868:17): [True: 10.1k, False: 1.07M]
  |  Branch (19868:40): [True: 63.9k, False: 1.01M]
  ------------------
19869|  74.1k|            {
19870|       |                // flatten the current json_value to a heap-allocated stack
19871|  74.1k|                std::vector<basic_json> stack;
19872|       |
19873|       |                // move the top-level items to stack
19874|  74.1k|                if (t == value_t::array)
  ------------------
  |  Branch (19874:21): [True: 10.1k, False: 63.9k]
  ------------------
19875|  10.1k|                {
19876|  10.1k|                    stack.reserve(array->size());
19877|  10.1k|                    std::move(array->begin(), array->end(), std::back_inserter(stack));
19878|  10.1k|                }
19879|  63.9k|                else
19880|  63.9k|                {
19881|  63.9k|                    stack.reserve(object->size());
19882|  63.9k|                    for (auto&& it : *object)
  ------------------
  |  Branch (19882:36): [True: 90.8k, False: 63.9k]
  ------------------
19883|  90.8k|                    {
19884|  90.8k|                        stack.push_back(std::move(it.second));
19885|  90.8k|                    }
19886|  63.9k|                }
19887|       |
19888|   272k|                while (!stack.empty())
  ------------------
  |  Branch (19888:24): [True: 198k, False: 74.1k]
  ------------------
19889|   198k|                {
19890|       |                    // move the last item to local variable to be processed
19891|   198k|                    basic_json current_item(std::move(stack.back()));
19892|   198k|                    stack.pop_back();
19893|       |
19894|       |                    // if current_item is array/object, move
19895|       |                    // its children to the stack to be processed later
19896|   198k|                    if (current_item.is_array())
  ------------------
  |  Branch (19896:25): [True: 10.1k, False: 188k]
  ------------------
19897|  10.1k|                    {
19898|  10.1k|                        std::move(current_item.m_data.m_value.array->begin(), current_item.m_data.m_value.array->end(), std::back_inserter(stack));
19899|       |
19900|  10.1k|                        current_item.m_data.m_value.array->clear();
19901|  10.1k|                    }
19902|   188k|                    else if (current_item.is_object())
  ------------------
  |  Branch (19902:30): [True: 26.8k, False: 161k]
  ------------------
19903|  26.8k|                    {
19904|  26.8k|                        for (auto&& it : *current_item.m_data.m_value.object)
  ------------------
  |  Branch (19904:40): [True: 80.6k, False: 26.8k]
  ------------------
19905|  80.6k|                        {
19906|  80.6k|                            stack.push_back(std::move(it.second));
19907|  80.6k|                        }
19908|       |
19909|  26.8k|                        current_item.m_data.m_value.object->clear();
19910|  26.8k|                    }
19911|       |
19912|       |                    // it's now safe that current_item get destructed
19913|       |                    // since it doesn't have any children
19914|   198k|                }
19915|  74.1k|            }
19916|       |
19917|  1.08M|            switch (t)
19918|  1.08M|            {
19919|  63.9k|                case value_t::object:
  ------------------
  |  Branch (19919:17): [True: 63.9k, False: 1.02M]
  ------------------
19920|  63.9k|                {
19921|  63.9k|                    AllocatorType<object_t> alloc;
19922|  63.9k|                    std::allocator_traits<decltype(alloc)>::destroy(alloc, object);
19923|  63.9k|                    std::allocator_traits<decltype(alloc)>::deallocate(alloc, object, 1);
19924|  63.9k|                    break;
19925|      0|                }
19926|       |
19927|  10.1k|                case value_t::array:
  ------------------
  |  Branch (19927:17): [True: 10.1k, False: 1.07M]
  ------------------
19928|  10.1k|                {
19929|  10.1k|                    AllocatorType<array_t> alloc;
19930|  10.1k|                    std::allocator_traits<decltype(alloc)>::destroy(alloc, array);
19931|  10.1k|                    std::allocator_traits<decltype(alloc)>::deallocate(alloc, array, 1);
19932|  10.1k|                    break;
19933|      0|                }
19934|       |
19935|   242k|                case value_t::string:
  ------------------
  |  Branch (19935:17): [True: 242k, False: 846k]
  ------------------
19936|   242k|                {
19937|   242k|                    AllocatorType<string_t> alloc;
19938|   242k|                    std::allocator_traits<decltype(alloc)>::destroy(alloc, string);
19939|   242k|                    std::allocator_traits<decltype(alloc)>::deallocate(alloc, string, 1);
19940|   242k|                    break;
19941|      0|                }
19942|       |
19943|      0|                case value_t::binary:
  ------------------
  |  Branch (19943:17): [True: 0, False: 1.08M]
  ------------------
19944|      0|                {
19945|      0|                    AllocatorType<binary_t> alloc;
19946|      0|                    std::allocator_traits<decltype(alloc)>::destroy(alloc, binary);
19947|      0|                    std::allocator_traits<decltype(alloc)>::deallocate(alloc, binary, 1);
19948|      0|                    break;
19949|      0|                }
19950|       |
19951|   772k|                case value_t::null:
  ------------------
  |  Branch (19951:17): [True: 772k, False: 316k]
  ------------------
19952|   772k|                case value_t::boolean:
  ------------------
  |  Branch (19952:17): [True: 0, False: 1.08M]
  ------------------
19953|   772k|                case value_t::number_integer:
  ------------------
  |  Branch (19953:17): [True: 0, False: 1.08M]
  ------------------
19954|   772k|                case value_t::number_unsigned:
  ------------------
  |  Branch (19954:17): [True: 0, False: 1.08M]
  ------------------
19955|   772k|                case value_t::number_float:
  ------------------
  |  Branch (19955:17): [True: 0, False: 1.08M]
  ------------------
19956|   772k|                case value_t::discarded:
  ------------------
  |  Branch (19956:17): [True: 0, False: 1.08M]
  ------------------
19957|   772k|                default:
  ------------------
  |  Branch (19957:17): [True: 0, False: 1.08M]
  ------------------
19958|   772k|                {
19959|   772k|                    break;
19960|   772k|                }
19961|  1.08M|            }
19962|  1.08M|        }
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapENSt3__16vectorENS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE9is_objectEv:
20660|   289k|    {
20661|   289k|        return m_data.m_type == value_t::object;
20662|   289k|    }
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapENSt3__16vectorENS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE11set_parentsEv:
20006|   997k|    {
20007|       |#if JSON_DIAGNOSTICS
20008|       |        switch (m_data.m_type)
20009|       |        {
20010|       |            case value_t::array:
20011|       |            {
20012|       |                for (auto& element : *m_data.m_value.array)
20013|       |                {
20014|       |                    element.m_parent = this;
20015|       |                }
20016|       |                break;
20017|       |            }
20018|       |
20019|       |            case value_t::object:
20020|       |            {
20021|       |                for (auto& element : *m_data.m_value.object)
20022|       |                {
20023|       |                    element.second.m_parent = this;
20024|       |                }
20025|       |                break;
20026|       |            }
20027|       |
20028|       |            case value_t::null:
20029|       |            case value_t::string:
20030|       |            case value_t::boolean:
20031|       |            case value_t::number_integer:
20032|       |            case value_t::number_unsigned:
20033|       |            case value_t::number_float:
20034|       |            case value_t::binary:
20035|       |            case value_t::discarded:
20036|       |            default:
20037|       |                break;
20038|       |        }
20039|       |#endif
20040|   997k|    }
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapENSt3__16vectorENS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvEixESA_:
21422|   101k|    {
21423|       |        // implicitly convert null value to an empty object
21424|   101k|        if (is_null())
  ------------------
  |  Branch (21424:13): [True: 0, False: 101k]
  ------------------
21425|      0|        {
21426|      0|            m_data.m_type = value_t::object;
21427|      0|            m_data.m_value.object = create<object_t>();
21428|      0|            assert_invariant();
21429|      0|        }
21430|       |
21431|       |        // operator[] only works for objects
21432|   101k|        if (JSON_HEDLEY_LIKELY(is_object()))
  ------------------
  |  | 1676|   101k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1676:57): [True: 101k, False: 0]
  |  |  ------------------
  ------------------
21433|   101k|        {
21434|   101k|            auto result = m_data.m_value.object->emplace(std::move(key), nullptr);
21435|   101k|            return set_parent(result.first->second);
21436|   101k|        }
21437|       |
21438|      0|        JSON_THROW(type_error::create(305, detail::concat("cannot use operator[] with a string argument with ", type_name()), this));
  ------------------
  |  | 2517|      0|    #define JSON_THROW(exception) throw exception
  ------------------
21439|   101k|    }
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS0_10basic_jsonIS1_NS2_6vectorES8_blmdS6_NS0_14adl_serializerENSA_IhNS6_IhEEEEvEENS2_4lessIvEENS6_INS2_4pairIKS8_SE_EEEEE7emplaceERSI_OSE_:
19059|   101k|    {
19060|   181k|        for (auto it = this->begin(); it != this->end(); ++it)
  ------------------
  |  Branch (19060:39): [True: 90.8k, False: 90.8k]
  ------------------
19061|  90.8k|        {
19062|  90.8k|            if (m_compare(it->first, key))
  ------------------
  |  Branch (19062:17): [True: 10.1k, False: 80.6k]
  ------------------
19063|  10.1k|            {
19064|  10.1k|                return {it, false};
19065|  10.1k|            }
19066|  90.8k|        }
19067|  90.8k|        Container::emplace_back(key, std::forward<T>(t));
19068|  90.8k|        return {std::prev(this->end()), true};
19069|   101k|    }
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapENSt3__16vectorENS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvEC2ERKSE_:
20448|   188k|        : json_base_class_t(other)
20449|   188k|    {
20450|   188k|        m_data.m_type = other.m_data.m_type;
20451|       |        // check of passed value is valid
20452|   188k|        other.assert_invariant();
20453|       |
20454|   188k|        switch (m_data.m_type)
20455|   188k|        {
20456|  26.8k|            case value_t::object:
  ------------------
  |  Branch (20456:13): [True: 26.8k, False: 161k]
  ------------------
20457|  26.8k|            {
20458|  26.8k|                m_data.m_value = *other.m_data.m_value.object;
20459|  26.8k|                break;
20460|      0|            }
20461|       |
20462|      0|            case value_t::array:
  ------------------
  |  Branch (20462:13): [True: 0, False: 188k]
  ------------------
20463|      0|            {
20464|      0|                m_data.m_value = *other.m_data.m_value.array;
20465|      0|                break;
20466|      0|            }
20467|       |
20468|   161k|            case value_t::string:
  ------------------
  |  Branch (20468:13): [True: 161k, False: 26.8k]
  ------------------
20469|   161k|            {
20470|   161k|                m_data.m_value = *other.m_data.m_value.string;
20471|   161k|                break;
20472|      0|            }
20473|       |
20474|      0|            case value_t::boolean:
  ------------------
  |  Branch (20474:13): [True: 0, False: 188k]
  ------------------
20475|      0|            {
20476|      0|                m_data.m_value = other.m_data.m_value.boolean;
20477|      0|                break;
20478|      0|            }
20479|       |
20480|      0|            case value_t::number_integer:
  ------------------
  |  Branch (20480:13): [True: 0, False: 188k]
  ------------------
20481|      0|            {
20482|      0|                m_data.m_value = other.m_data.m_value.number_integer;
20483|      0|                break;
20484|      0|            }
20485|       |
20486|      0|            case value_t::number_unsigned:
  ------------------
  |  Branch (20486:13): [True: 0, False: 188k]
  ------------------
20487|      0|            {
20488|      0|                m_data.m_value = other.m_data.m_value.number_unsigned;
20489|      0|                break;
20490|      0|            }
20491|       |
20492|      0|            case value_t::number_float:
  ------------------
  |  Branch (20492:13): [True: 0, False: 188k]
  ------------------
20493|      0|            {
20494|      0|                m_data.m_value = other.m_data.m_value.number_float;
20495|      0|                break;
20496|      0|            }
20497|       |
20498|      0|            case value_t::binary:
  ------------------
  |  Branch (20498:13): [True: 0, False: 188k]
  ------------------
20499|      0|            {
20500|      0|                m_data.m_value = *other.m_data.m_value.binary;
20501|      0|                break;
20502|      0|            }
20503|       |
20504|      0|            case value_t::null:
  ------------------
  |  Branch (20504:13): [True: 0, False: 188k]
  ------------------
20505|      0|            case value_t::discarded:
  ------------------
  |  Branch (20505:13): [True: 0, False: 188k]
  ------------------
20506|      0|            default:
  ------------------
  |  Branch (20506:13): [True: 0, False: 188k]
  ------------------
20507|      0|                break;
20508|   188k|        }
20509|       |
20510|   188k|        set_parents();
20511|   188k|        assert_invariant();
20512|   188k|    }
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapENSt3__16vectorENS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_valueC2ERKNS2_ISA_SE_NS3_4lessIvEENS8_INS3_4pairIKSA_SE_EEEEEE:
19833|  26.8k|        json_value(const object_t& value) : object(create<object_t>(value)) {}
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapENSt3__16vectorENS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE6createINS2_ISA_SE_NS3_4lessIvEENS8_INS3_4pairIKSA_SE_EEEEEEJRKSM_EEEPT_DpOT0_:
19681|  26.8k|    {
19682|  26.8k|        AllocatorType<T> alloc;
19683|  26.8k|        using AllocatorTraits = std::allocator_traits<AllocatorType<T>>;
19684|       |
19685|  26.8k|        auto deleter = [&](T * obj)
19686|  26.8k|        {
19687|  26.8k|            AllocatorTraits::deallocate(alloc, obj, 1);
19688|  26.8k|        };
19689|  26.8k|        std::unique_ptr<T, decltype(deleter)> obj(AllocatorTraits::allocate(alloc, 1), deleter);
19690|  26.8k|        AllocatorTraits::construct(alloc, obj.get(), std::forward<Args>(args)...);
19691|       |        JSON_ASSERT(obj != nullptr);
  ------------------
  |  | 2552|  26.8k|    #define JSON_ASSERT(x) assert(x)
  ------------------
19692|  26.8k|        return obj.release();
19693|  26.8k|    }
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapENSt3__16vectorENS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_valueC2ERKSA_:
19827|   161k|        json_value(const string_t& value) : string(create<string_t>(value)) {}
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapENSt3__16vectorENS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE6createISA_JRKSA_EEEPT_DpOT0_:
19681|   161k|    {
19682|   161k|        AllocatorType<T> alloc;
19683|   161k|        using AllocatorTraits = std::allocator_traits<AllocatorType<T>>;
19684|       |
19685|   161k|        auto deleter = [&](T * obj)
19686|   161k|        {
19687|   161k|            AllocatorTraits::deallocate(alloc, obj, 1);
19688|   161k|        };
19689|   161k|        std::unique_ptr<T, decltype(deleter)> obj(AllocatorTraits::allocate(alloc, 1), deleter);
19690|   161k|        AllocatorTraits::construct(alloc, obj.get(), std::forward<Args>(args)...);
19691|       |        JSON_ASSERT(obj != nullptr);
  ------------------
  |  | 2552|   161k|    #define JSON_ASSERT(x) assert(x)
  ------------------
19692|   161k|        return obj.release();
19693|   161k|    }
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapENSt3__16vectorENS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE4dataD2Ev:
23517|  1.00M|        {
23518|  1.00M|            m_value.destroy(m_type);
23519|  1.00M|        }
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapENSt3__16vectorENS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE7is_nullEv:
20618|   154k|    {
20619|   154k|        return m_data.m_type == value_t::null;
20620|   154k|    }
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapENSt3__16vectorENS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE8is_arrayEv:
20667|   225k|    {
20668|   225k|        return m_data.m_type == value_t::array;
20669|   225k|    }
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapENSt3__16vectorENS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvEixIKcEERSE_PT_:
21460|   101k|    {
21461|   101k|        return operator[](typename object_t::key_type(key));
21462|   101k|    }
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapENSt3__16vectorENS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE5arrayESt16initializer_listINS0_6detail8json_refISE_EEE:
20308|  10.1k|    {
20309|  10.1k|        return basic_json(init, false, value_t::array);
20310|  10.1k|    }
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapENSt3__16vectorENS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvEC2ESt16initializer_listINS0_6detail8json_refISE_EEEbNSG_7value_tE:
20207|  47.2k|    {
20208|       |        // check if each element is an array with two elements whose first
20209|       |        // element is a string
20210|  47.2k|        bool is_an_object = std::all_of(init.begin(), init.end(),
20211|  47.2k|                                        [](const detail::json_ref<basic_json>& element_ref)
20212|  47.2k|        {
20213|       |            // The cast is to ensure op[size_type] is called, bearing in mind size_type may not be int;
20214|       |            // (many string types can be constructed from 0 via its null-pointer guise, so we get a
20215|       |            // broken call to op[key_type], the wrong semantics and a 4804 warning on Windows)
20216|  47.2k|            return element_ref->is_array() && element_ref->size() == 2 && (*element_ref)[static_cast<size_type>(0)].is_string();
20217|  47.2k|        });
20218|       |
20219|       |        // adjust type if type deduction is not wanted
20220|  47.2k|        if (!type_deduction)
  ------------------
  |  Branch (20220:13): [True: 47.2k, False: 0]
  ------------------
20221|  47.2k|        {
20222|       |            // if array is wanted, do not create an object though possible
20223|  47.2k|            if (manual_type == value_t::array)
  ------------------
  |  Branch (20223:17): [True: 10.1k, False: 37.0k]
  ------------------
20224|  10.1k|            {
20225|  10.1k|                is_an_object = false;
20226|  10.1k|            }
20227|       |
20228|       |            // if object is wanted but impossible, throw an exception
20229|  47.2k|            if (JSON_HEDLEY_UNLIKELY(manual_type == value_t::object && !is_an_object))
  ------------------
  |  | 1677|  84.2k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1677:57): [True: 0, False: 47.2k]
  |  |  |  Branch (1677:94): [True: 37.0k, False: 10.1k]
  |  |  |  Branch (1677:94): [True: 0, False: 37.0k]
  |  |  ------------------
  ------------------
20230|      0|            {
20231|      0|                JSON_THROW(type_error::create(301, "cannot create object from initializer list", nullptr));
  ------------------
  |  | 2517|      0|    #define JSON_THROW(exception) throw exception
  ------------------
20232|      0|            }
20233|  47.2k|        }
20234|       |
20235|  47.2k|        if (is_an_object)
  ------------------
  |  Branch (20235:13): [True: 37.0k, False: 10.1k]
  ------------------
20236|  37.0k|        {
20237|       |            // the initializer list is a list of pairs -> create object
20238|  37.0k|            m_data.m_type = value_t::object;
20239|  37.0k|            m_data.m_value = value_t::object;
20240|       |
20241|  37.0k|            for (auto& element_ref : init)
  ------------------
  |  Branch (20241:36): [True: 0, False: 37.0k]
  ------------------
20242|      0|            {
20243|      0|                auto element = element_ref.moved_or_copied();
20244|      0|                m_data.m_value.object->emplace(
20245|      0|                    std::move(*((*element.m_data.m_value.array)[0].m_data.m_value.string)),
20246|      0|                    std::move((*element.m_data.m_value.array)[1]));
20247|      0|            }
20248|  37.0k|        }
20249|  10.1k|        else
20250|  10.1k|        {
20251|       |            // the initializer list describes an array -> create array
20252|  10.1k|            m_data.m_type = value_t::array;
20253|  10.1k|            m_data.m_value.array = create<array_t>(init.begin(), init.end());
20254|  10.1k|        }
20255|       |
20256|  47.2k|        set_parents();
20257|  47.2k|        assert_invariant();
20258|  47.2k|    }
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapENSt3__16vectorENS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE6createINS4_ISE_NS8_ISE_EEEEJPKNS0_6detail8json_refISE_EESM_EEEPT_DpOT0_:
19681|  10.1k|    {
19682|  10.1k|        AllocatorType<T> alloc;
19683|  10.1k|        using AllocatorTraits = std::allocator_traits<AllocatorType<T>>;
19684|       |
19685|  10.1k|        auto deleter = [&](T * obj)
19686|  10.1k|        {
19687|  10.1k|            AllocatorTraits::deallocate(alloc, obj, 1);
19688|  10.1k|        };
19689|  10.1k|        std::unique_ptr<T, decltype(deleter)> obj(AllocatorTraits::allocate(alloc, 1), deleter);
19690|  10.1k|        AllocatorTraits::construct(alloc, obj.get(), std::forward<Args>(args)...);
19691|       |        JSON_ASSERT(obj != nullptr);
  ------------------
  |  | 2552|  10.1k|    #define JSON_ASSERT(x) assert(x)
  ------------------
19692|  10.1k|        return obj.release();
19693|  10.1k|    }
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapENSt3__16vectorENS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvEC2EOSE_:
20517|   590k|        : json_base_class_t(std::forward<json_base_class_t>(other)),
20518|   590k|          m_data(std::move(other.m_data))
20519|   590k|    {
20520|       |        // check that passed value is valid
20521|   590k|        other.assert_invariant(false);
20522|       |
20523|       |        // invalidate payload
20524|   590k|        other.m_data.m_type = value_t::null;
20525|   590k|        other.m_data.m_value = {};
20526|       |
20527|   590k|        set_parents();
20528|   590k|        assert_invariant();
20529|   590k|    }
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapENSt3__16vectorENS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvED2Ev:
20557|  1.00M|    {
20558|  1.00M|        assert_invariant(false);
20559|  1.00M|    }
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapENSt3__16vectorENS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvEaSESE_:
20540|  90.8k|    {
20541|       |        // check that passed value is valid
20542|  90.8k|        other.assert_invariant();
20543|       |
20544|  90.8k|        using std::swap;
20545|  90.8k|        swap(m_data.m_type, other.m_data.m_type);
20546|  90.8k|        swap(m_data.m_value, other.m_data.m_value);
20547|  90.8k|        json_base_class_t::operator=(std::move(other));
20548|       |
20549|  90.8k|        set_parents();
20550|  90.8k|        assert_invariant();
20551|  90.8k|        return *this;
20552|  90.8k|    }
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapENSt3__16vectorENS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE6objectESt16initializer_listINS0_6detail8json_refISE_EEE:
20316|  37.0k|    {
20317|  37.0k|        return basic_json(init, false, value_t::object);
20318|  37.0k|    }
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapENSt3__16vectorENS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvEC2EDn:
20126|   101k|        : basic_json(value_t::null)
20127|   101k|    {
20128|   101k|        assert_invariant();
20129|   101k|    }
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapENSt3__16vectorENS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvEC2ENS0_6detail7value_tE:
20118|   101k|        : m_data(v)
20119|   101k|    {
20120|   101k|        assert_invariant();
20121|   101k|    }
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapENSt3__16vectorENS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE4dataC2ENS0_6detail7value_tE:
23500|   101k|            : m_type(v), m_value(v)
23501|   101k|        {
23502|   101k|        }
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapENSt3__16vectorENS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvEC2IRPKcSH_TnNS3_9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISE_SK_EE5valueEiE4typeELi0EEEOT_:
20140|  53.7k|    {
20141|  53.7k|        JSONSerializer<U>::to_json(*this, std::forward<CompatibleType>(val));
20142|  53.7k|        set_parents();
20143|  53.7k|        assert_invariant();
20144|  53.7k|    }
_ZN8nlohmann16json_abi_v3_11_314adl_serializerIPKcvE7to_jsonINS0_10basic_jsonINS0_11ordered_mapENSt3__16vectorENS8_12basic_stringIcNS8_11char_traitsIcEENS8_9allocatorIcEEEEblmdSD_S1_NS9_IhNSD_IhEEEEvEERS3_EEDTcmclL_ZNS0_7to_jsonEEfp_clsr3stdE7forwardIT0_Efp0_EEcvv_EERT_OSK_:
 5860|  53.7k|    {
 5861|  53.7k|        ::nlohmann::to_json(j, std::forward<TargetType>(val));
 5862|  53.7k|    }
_ZNK8nlohmann16json_abi_v3_11_36detail10to_json_fnclINS0_10basic_jsonINS0_11ordered_mapENSt3__16vectorENS6_12basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEblmdSB_NS0_14adl_serializerENS7_IhNSB_IhEEEEvEERPKcEEDTcmcl7to_jsonfp_clsr3stdE7forwardIT0_Efp0_EEcvv_EERT_OSL_:
 5804|  53.7k|    {
 5805|  53.7k|        return to_json(j, std::forward<T>(val));
 5806|  53.7k|    }
_ZN8nlohmann16json_abi_v3_11_36detail7to_jsonINS0_10basic_jsonINS0_11ordered_mapENSt3__16vectorENS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEPKcTnNS5_9enable_ifIXsr3std16is_constructibleINT_8string_tET0_EE5valueEiE4typeELi0EEEvRSK_RKSM_:
 5663|  53.7k|{
 5664|  53.7k|    external_constructor<value_t::string>::construct(j, s);
 5665|  53.7k|}
_ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE3EE9constructINS0_10basic_jsonINS0_11ordered_mapENSt3__16vectorENS8_12basic_stringIcNS8_11char_traitsIcEENS8_9allocatorIcEEEEblmdSD_NS0_14adl_serializerENS9_IhNSD_IhEEEEvEEPKcTnNS8_9enable_ifIXntsr3std7is_sameIT0_NT_8string_tEEE5valueEiE4typeELi0EEEvRSO_RKSN_:
 5459|  53.7k|    {
 5460|  53.7k|        j.m_data.m_value.destroy(j.m_data.m_type);
 5461|  53.7k|        j.m_data.m_type = value_t::string;
 5462|  53.7k|        j.m_data.m_value.string = j.template create<typename BasicJsonType::string_t>(str);
 5463|  53.7k|        j.assert_invariant();
 5464|  53.7k|    }
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapENSt3__16vectorENS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE6createISA_JRKPKcEEEPT_DpOT0_:
19681|  53.7k|    {
19682|  53.7k|        AllocatorType<T> alloc;
19683|  53.7k|        using AllocatorTraits = std::allocator_traits<AllocatorType<T>>;
19684|       |
19685|  53.7k|        auto deleter = [&](T * obj)
19686|  53.7k|        {
19687|  53.7k|            AllocatorTraits::deallocate(alloc, obj, 1);
19688|  53.7k|        };
19689|  53.7k|        std::unique_ptr<T, decltype(deleter)> obj(AllocatorTraits::allocate(alloc, 1), deleter);
19690|  53.7k|        AllocatorTraits::construct(alloc, obj.get(), std::forward<Args>(args)...);
19691|       |        JSON_ASSERT(obj != nullptr);
  ------------------
  |  | 2552|  53.7k|    #define JSON_ASSERT(x) assert(x)
  ------------------
19692|  53.7k|        return obj.release();
19693|  53.7k|    }
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapENSt3__16vectorENS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvEC2ISA_SA_TnNS3_9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISE_SH_EE5valueEiE4typeELi0EEEOT_:
20140|  26.8k|    {
20141|  26.8k|        JSONSerializer<U>::to_json(*this, std::forward<CompatibleType>(val));
20142|  26.8k|        set_parents();
20143|  26.8k|        assert_invariant();
20144|  26.8k|    }
_ZN8nlohmann16json_abi_v3_11_314adl_serializerINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEvE7to_jsonINS0_10basic_jsonINS0_11ordered_mapENS2_6vectorES8_blmdS6_S1_NSD_IhNS6_IhEEEEvEES8_EEDTcmclL_ZNS0_7to_jsonEEfp_clsr3stdE7forwardIT0_Efp0_EEcvv_EERT_OSH_:
 5860|  26.8k|    {
 5861|  26.8k|        ::nlohmann::to_json(j, std::forward<TargetType>(val));
 5862|  26.8k|    }
_ZNK8nlohmann16json_abi_v3_11_36detail10to_json_fnclINS0_10basic_jsonINS0_11ordered_mapENSt3__16vectorENS6_12basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEblmdSB_NS0_14adl_serializerENS7_IhNSB_IhEEEEvEESD_EEDTcmcl7to_jsonfp_clsr3stdE7forwardIT0_Efp0_EEcvv_EERT_OSI_:
 5804|  26.8k|    {
 5805|  26.8k|        return to_json(j, std::forward<T>(val));
 5806|  26.8k|    }
_ZN8nlohmann16json_abi_v3_11_36detail7to_jsonINS0_10basic_jsonINS0_11ordered_mapENSt3__16vectorENS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEEEvRT_ONSH_8string_tE:
 5669|  26.8k|{
 5670|  26.8k|    external_constructor<value_t::string>::construct(j, std::move(s));
 5671|  26.8k|}
_ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE3EE9constructINS0_10basic_jsonINS0_11ordered_mapENSt3__16vectorENS8_12basic_stringIcNS8_11char_traitsIcEENS8_9allocatorIcEEEEblmdSD_NS0_14adl_serializerENS9_IhNSD_IhEEEEvEEEEvRT_ONSK_8string_tE:
 5448|  26.8k|    {
 5449|  26.8k|        j.m_data.m_value.destroy(j.m_data.m_type);
 5450|  26.8k|        j.m_data.m_type = value_t::string;
 5451|  26.8k|        j.m_data.m_value = std::move(s);
 5452|  26.8k|        j.assert_invariant();
 5453|  26.8k|    }
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapENSt3__16vectorENS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_valueC2EOSA_:
19830|  26.8k|        json_value(string_t&& value) : string(create<string_t>(std::move(value))) {}
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapENSt3__16vectorENS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE6createISA_JSA_EEEPT_DpOT0_:
19681|  26.8k|    {
19682|  26.8k|        AllocatorType<T> alloc;
19683|  26.8k|        using AllocatorTraits = std::allocator_traits<AllocatorType<T>>;
19684|       |
19685|  26.8k|        auto deleter = [&](T * obj)
19686|  26.8k|        {
19687|  26.8k|            AllocatorTraits::deallocate(alloc, obj, 1);
19688|  26.8k|        };
19689|  26.8k|        std::unique_ptr<T, decltype(deleter)> obj(AllocatorTraits::allocate(alloc, 1), deleter);
19690|  26.8k|        AllocatorTraits::construct(alloc, obj.get(), std::forward<Args>(args)...);
19691|       |        JSON_ASSERT(obj != nullptr);
  ------------------
  |  | 2552|  26.8k|    #define JSON_ASSERT(x) assert(x)
  ------------------
19692|  26.8k|        return obj.release();
19693|  26.8k|    }
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapENSt3__16vectorENS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE4dumpEicbNS0_6detail15error_handler_tE:
20578|  10.1k|    {
20579|  10.1k|        string_t result;
20580|  10.1k|        serializer s(detail::output_adapter<char, string_t>(result), indent_char, error_handler);
20581|       |
20582|  10.1k|        if (indent >= 0)
  ------------------
  |  Branch (20582:13): [True: 10.1k, False: 0]
  ------------------
20583|  10.1k|        {
20584|  10.1k|            s.dump(*this, true, ensure_ascii, static_cast<unsigned int>(indent));
20585|  10.1k|        }
20586|      0|        else
20587|      0|        {
20588|      0|            s.dump(*this, false, ensure_ascii, 0);
20589|      0|        }
20590|       |
20591|  10.1k|        return result;
20592|  10.1k|    }
_ZN8nlohmann16json_abi_v3_11_36detail14output_adapterIcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEC2ERS9_:
15049|  10.1k|        : oa(std::make_shared<output_string_adapter<CharType, StringType>>(s)) {}
_ZN8nlohmann16json_abi_v3_11_36detail21output_string_adapterIcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEC2ERS9_:
15017|  10.1k|        : str(s)
15018|  10.1k|    {}
_ZN8nlohmann16json_abi_v3_11_36detail23output_adapter_protocolIcEC2Ev:
14950|  10.1k|    output_adapter_protocol() = default;
_ZN8nlohmann16json_abi_v3_11_36detail23output_adapter_protocolIcED2Ev:
14948|  10.1k|    virtual ~output_adapter_protocol() = default;
_ZN8nlohmann16json_abi_v3_11_36detail21output_string_adapterIcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEE15write_characterEc:
15021|   345k|    {
15022|   345k|        str.push_back(c);
15023|   345k|    }
_ZN8nlohmann16json_abi_v3_11_36detail21output_string_adapterIcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEE16write_charactersEPKcm:
15027|   545k|    {
15028|   545k|        str.append(s, length);
15029|   545k|    }
_ZN8nlohmann16json_abi_v3_11_36detail14output_adapterIcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEcvNS3_10shared_ptrINS1_23output_adapter_protocolIcEEEEEv:
15052|  10.1k|    {
15053|  10.1k|        return oa;
15054|  10.1k|    }
_ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapENSt3__16vectorENS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEEC2ENS5_10shared_ptrINS1_23output_adapter_protocolIcEEEEcNS1_15error_handler_tE:
18077|  10.1k|        : o(std::move(s))
18078|  10.1k|        , loc(std::localeconv())
18079|  10.1k|        , thousands_sep(loc->thousands_sep == nullptr ? '\0' : std::char_traits<char>::to_char_type(* (loc->thousands_sep)))
  ------------------
  |  Branch (18079:25): [True: 0, False: 10.1k]
  ------------------
18080|  10.1k|        , decimal_point(loc->decimal_point == nullptr ? '\0' : std::char_traits<char>::to_char_type(* (loc->decimal_point)))
  ------------------
  |  Branch (18080:25): [True: 0, False: 10.1k]
  ------------------
18081|  10.1k|        , indent_char(ichar)
18082|  10.1k|        , indent_string(512, indent_char)
18083|  10.1k|        , error_handler(error_handler_)
18084|  10.1k|    {}
_ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapENSt3__16vectorENS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE4dumpERKSG_bbjj:
18120|   127k|    {
18121|   127k|        switch (val.m_data.m_type)
18122|   127k|        {
18123|  37.0k|            case value_t::object:
  ------------------
  |  Branch (18123:13): [True: 37.0k, False: 90.8k]
  ------------------
18124|  37.0k|            {
18125|  37.0k|                if (val.m_data.m_value.object->empty())
  ------------------
  |  Branch (18125:21): [True: 0, False: 37.0k]
  ------------------
18126|      0|                {
18127|      0|                    o->write_characters("{}", 2);
18128|      0|                    return;
18129|      0|                }
18130|       |
18131|  37.0k|                if (pretty_print)
  ------------------
  |  Branch (18131:21): [True: 37.0k, False: 0]
  ------------------
18132|  37.0k|                {
18133|  37.0k|                    o->write_characters("{\n", 2);
18134|       |
18135|       |                    // variable to hold indentation for recursive calls
18136|  37.0k|                    const auto new_indent = current_indent + indent_step;
18137|  37.0k|                    if (JSON_HEDLEY_UNLIKELY(indent_string.size() < new_indent))
  ------------------
  |  | 1677|  37.0k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1677:57): [True: 0, False: 37.0k]
  |  |  ------------------
  ------------------
18138|      0|                    {
18139|      0|                        indent_string.resize(indent_string.size() * 2, ' ');
18140|      0|                    }
18141|       |
18142|       |                    // first n-1 elements
18143|  37.0k|                    auto i = val.m_data.m_value.object->cbegin();
18144|  90.8k|                    for (std::size_t cnt = 0; cnt < val.m_data.m_value.object->size() - 1; ++cnt, ++i)
  ------------------
  |  Branch (18144:47): [True: 53.7k, False: 37.0k]
  ------------------
18145|  53.7k|                    {
18146|  53.7k|                        o->write_characters(indent_string.c_str(), new_indent);
18147|  53.7k|                        o->write_character('\"');
18148|  53.7k|                        dump_escaped(i->first, ensure_ascii);
18149|  53.7k|                        o->write_characters("\": ", 3);
18150|  53.7k|                        dump(i->second, true, ensure_ascii, indent_step, new_indent);
18151|  53.7k|                        o->write_characters(",\n", 2);
18152|  53.7k|                    }
18153|       |
18154|       |                    // last element
18155|  37.0k|                    JSON_ASSERT(i != val.m_data.m_value.object->cend());
  ------------------
  |  | 2552|  37.0k|    #define JSON_ASSERT(x) assert(x)
  ------------------
18156|  37.0k|                    JSON_ASSERT(std::next(i) == val.m_data.m_value.object->cend());
  ------------------
  |  | 2552|  37.0k|    #define JSON_ASSERT(x) assert(x)
  ------------------
18157|  37.0k|                    o->write_characters(indent_string.c_str(), new_indent);
18158|  37.0k|                    o->write_character('\"');
18159|  37.0k|                    dump_escaped(i->first, ensure_ascii);
18160|  37.0k|                    o->write_characters("\": ", 3);
18161|  37.0k|                    dump(i->second, true, ensure_ascii, indent_step, new_indent);
18162|       |
18163|  37.0k|                    o->write_character('\n');
18164|  37.0k|                    o->write_characters(indent_string.c_str(), current_indent);
18165|  37.0k|                    o->write_character('}');
18166|  37.0k|                }
18167|      0|                else
18168|      0|                {
18169|      0|                    o->write_character('{');
18170|       |
18171|       |                    // first n-1 elements
18172|      0|                    auto i = val.m_data.m_value.object->cbegin();
18173|      0|                    for (std::size_t cnt = 0; cnt < val.m_data.m_value.object->size() - 1; ++cnt, ++i)
  ------------------
  |  Branch (18173:47): [True: 0, False: 0]
  ------------------
18174|      0|                    {
18175|      0|                        o->write_character('\"');
18176|      0|                        dump_escaped(i->first, ensure_ascii);
18177|      0|                        o->write_characters("\":", 2);
18178|      0|                        dump(i->second, false, ensure_ascii, indent_step, current_indent);
18179|      0|                        o->write_character(',');
18180|      0|                    }
18181|       |
18182|       |                    // last element
18183|      0|                    JSON_ASSERT(i != val.m_data.m_value.object->cend());
  ------------------
  |  | 2552|      0|    #define JSON_ASSERT(x) assert(x)
  ------------------
18184|      0|                    JSON_ASSERT(std::next(i) == val.m_data.m_value.object->cend());
  ------------------
  |  | 2552|      0|    #define JSON_ASSERT(x) assert(x)
  ------------------
18185|      0|                    o->write_character('\"');
18186|      0|                    dump_escaped(i->first, ensure_ascii);
18187|      0|                    o->write_characters("\":", 2);
18188|      0|                    dump(i->second, false, ensure_ascii, indent_step, current_indent);
18189|       |
18190|      0|                    o->write_character('}');
18191|      0|                }
18192|       |
18193|  37.0k|                return;
18194|  37.0k|            }
18195|       |
18196|  10.1k|            case value_t::array:
  ------------------
  |  Branch (18196:13): [True: 10.1k, False: 117k]
  ------------------
18197|  10.1k|            {
18198|  10.1k|                if (val.m_data.m_value.array->empty())
  ------------------
  |  Branch (18198:21): [True: 797, False: 9.37k]
  ------------------
18199|    797|                {
18200|    797|                    o->write_characters("[]", 2);
18201|    797|                    return;
18202|    797|                }
18203|       |
18204|  9.37k|                if (pretty_print)
  ------------------
  |  Branch (18204:21): [True: 9.37k, False: 0]
  ------------------
18205|  9.37k|                {
18206|  9.37k|                    o->write_characters("[\n", 2);
18207|       |
18208|       |                    // variable to hold indentation for recursive calls
18209|  9.37k|                    const auto new_indent = current_indent + indent_step;
18210|  9.37k|                    if (JSON_HEDLEY_UNLIKELY(indent_string.size() < new_indent))
  ------------------
  |  | 1677|  9.37k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1677:57): [True: 0, False: 9.37k]
  |  |  ------------------
  ------------------
18211|      0|                    {
18212|      0|                        indent_string.resize(indent_string.size() * 2, ' ');
18213|      0|                    }
18214|       |
18215|       |                    // first n-1 elements
18216|  9.37k|                    for (auto i = val.m_data.m_value.array->cbegin();
18217|  26.8k|                            i != val.m_data.m_value.array->cend() - 1; ++i)
  ------------------
  |  Branch (18217:29): [True: 17.5k, False: 9.37k]
  ------------------
18218|  17.5k|                    {
18219|  17.5k|                        o->write_characters(indent_string.c_str(), new_indent);
18220|  17.5k|                        dump(*i, true, ensure_ascii, indent_step, new_indent);
18221|  17.5k|                        o->write_characters(",\n", 2);
18222|  17.5k|                    }
18223|       |
18224|       |                    // last element
18225|  9.37k|                    JSON_ASSERT(!val.m_data.m_value.array->empty());
  ------------------
  |  | 2552|  9.37k|    #define JSON_ASSERT(x) assert(x)
  ------------------
18226|  9.37k|                    o->write_characters(indent_string.c_str(), new_indent);
18227|  9.37k|                    dump(val.m_data.m_value.array->back(), true, ensure_ascii, indent_step, new_indent);
18228|       |
18229|  9.37k|                    o->write_character('\n');
18230|  9.37k|                    o->write_characters(indent_string.c_str(), current_indent);
18231|  9.37k|                    o->write_character(']');
18232|  9.37k|                }
18233|      0|                else
18234|      0|                {
18235|      0|                    o->write_character('[');
18236|       |
18237|       |                    // first n-1 elements
18238|      0|                    for (auto i = val.m_data.m_value.array->cbegin();
18239|      0|                            i != val.m_data.m_value.array->cend() - 1; ++i)
  ------------------
  |  Branch (18239:29): [True: 0, False: 0]
  ------------------
18240|      0|                    {
18241|      0|                        dump(*i, false, ensure_ascii, indent_step, current_indent);
18242|      0|                        o->write_character(',');
18243|      0|                    }
18244|       |
18245|       |                    // last element
18246|      0|                    JSON_ASSERT(!val.m_data.m_value.array->empty());
  ------------------
  |  | 2552|      0|    #define JSON_ASSERT(x) assert(x)
  ------------------
18247|      0|                    dump(val.m_data.m_value.array->back(), false, ensure_ascii, indent_step, current_indent);
18248|       |
18249|      0|                    o->write_character(']');
18250|      0|                }
18251|       |
18252|  9.37k|                return;
18253|  10.1k|            }
18254|       |
18255|  80.6k|            case value_t::string:
  ------------------
  |  Branch (18255:13): [True: 80.6k, False: 47.2k]
  ------------------
18256|  80.6k|            {
18257|  80.6k|                o->write_character('\"');
18258|  80.6k|                dump_escaped(*val.m_data.m_value.string, ensure_ascii);
18259|  80.6k|                o->write_character('\"');
18260|  80.6k|                return;
18261|  10.1k|            }
18262|       |
18263|      0|            case value_t::binary:
  ------------------
  |  Branch (18263:13): [True: 0, False: 127k]
  ------------------
18264|      0|            {
18265|      0|                if (pretty_print)
  ------------------
  |  Branch (18265:21): [True: 0, False: 0]
  ------------------
18266|      0|                {
18267|      0|                    o->write_characters("{\n", 2);
18268|       |
18269|       |                    // variable to hold indentation for recursive calls
18270|      0|                    const auto new_indent = current_indent + indent_step;
18271|      0|                    if (JSON_HEDLEY_UNLIKELY(indent_string.size() < new_indent))
  ------------------
  |  | 1677|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1677:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
18272|      0|                    {
18273|      0|                        indent_string.resize(indent_string.size() * 2, ' ');
18274|      0|                    }
18275|       |
18276|      0|                    o->write_characters(indent_string.c_str(), new_indent);
18277|       |
18278|      0|                    o->write_characters("\"bytes\": [", 10);
18279|       |
18280|      0|                    if (!val.m_data.m_value.binary->empty())
  ------------------
  |  Branch (18280:25): [True: 0, False: 0]
  ------------------
18281|      0|                    {
18282|      0|                        for (auto i = val.m_data.m_value.binary->cbegin();
18283|      0|                                i != val.m_data.m_value.binary->cend() - 1; ++i)
  ------------------
  |  Branch (18283:33): [True: 0, False: 0]
  ------------------
18284|      0|                        {
18285|      0|                            dump_integer(*i);
18286|      0|                            o->write_characters(", ", 2);
18287|      0|                        }
18288|      0|                        dump_integer(val.m_data.m_value.binary->back());
18289|      0|                    }
18290|       |
18291|      0|                    o->write_characters("],\n", 3);
18292|      0|                    o->write_characters(indent_string.c_str(), new_indent);
18293|       |
18294|      0|                    o->write_characters("\"subtype\": ", 11);
18295|      0|                    if (val.m_data.m_value.binary->has_subtype())
  ------------------
  |  Branch (18295:25): [True: 0, False: 0]
  ------------------
18296|      0|                    {
18297|      0|                        dump_integer(val.m_data.m_value.binary->subtype());
18298|      0|                    }
18299|      0|                    else
18300|      0|                    {
18301|      0|                        o->write_characters("null", 4);
18302|      0|                    }
18303|      0|                    o->write_character('\n');
18304|      0|                    o->write_characters(indent_string.c_str(), current_indent);
18305|      0|                    o->write_character('}');
18306|      0|                }
18307|      0|                else
18308|      0|                {
18309|      0|                    o->write_characters("{\"bytes\":[", 10);
18310|       |
18311|      0|                    if (!val.m_data.m_value.binary->empty())
  ------------------
  |  Branch (18311:25): [True: 0, False: 0]
  ------------------
18312|      0|                    {
18313|      0|                        for (auto i = val.m_data.m_value.binary->cbegin();
18314|      0|                                i != val.m_data.m_value.binary->cend() - 1; ++i)
  ------------------
  |  Branch (18314:33): [True: 0, False: 0]
  ------------------
18315|      0|                        {
18316|      0|                            dump_integer(*i);
18317|      0|                            o->write_character(',');
18318|      0|                        }
18319|      0|                        dump_integer(val.m_data.m_value.binary->back());
18320|      0|                    }
18321|       |
18322|      0|                    o->write_characters("],\"subtype\":", 12);
18323|      0|                    if (val.m_data.m_value.binary->has_subtype())
  ------------------
  |  Branch (18323:25): [True: 0, False: 0]
  ------------------
18324|      0|                    {
18325|      0|                        dump_integer(val.m_data.m_value.binary->subtype());
18326|      0|                        o->write_character('}');
18327|      0|                    }
18328|      0|                    else
18329|      0|                    {
18330|      0|                        o->write_characters("null}", 5);
18331|      0|                    }
18332|      0|                }
18333|      0|                return;
18334|  10.1k|            }
18335|       |
18336|      0|            case value_t::boolean:
  ------------------
  |  Branch (18336:13): [True: 0, False: 127k]
  ------------------
18337|      0|            {
18338|      0|                if (val.m_data.m_value.boolean)
  ------------------
  |  Branch (18338:21): [True: 0, False: 0]
  ------------------
18339|      0|                {
18340|      0|                    o->write_characters("true", 4);
18341|      0|                }
18342|      0|                else
18343|      0|                {
18344|      0|                    o->write_characters("false", 5);
18345|      0|                }
18346|      0|                return;
18347|  10.1k|            }
18348|       |
18349|      0|            case value_t::number_integer:
  ------------------
  |  Branch (18349:13): [True: 0, False: 127k]
  ------------------
18350|      0|            {
18351|      0|                dump_integer(val.m_data.m_value.number_integer);
18352|      0|                return;
18353|  10.1k|            }
18354|       |
18355|      0|            case value_t::number_unsigned:
  ------------------
  |  Branch (18355:13): [True: 0, False: 127k]
  ------------------
18356|      0|            {
18357|      0|                dump_integer(val.m_data.m_value.number_unsigned);
18358|      0|                return;
18359|  10.1k|            }
18360|       |
18361|      0|            case value_t::number_float:
  ------------------
  |  Branch (18361:13): [True: 0, False: 127k]
  ------------------
18362|      0|            {
18363|      0|                dump_float(val.m_data.m_value.number_float);
18364|      0|                return;
18365|  10.1k|            }
18366|       |
18367|      0|            case value_t::discarded:
  ------------------
  |  Branch (18367:13): [True: 0, False: 127k]
  ------------------
18368|      0|            {
18369|      0|                o->write_characters("<discarded>", 11);
18370|      0|                return;
18371|  10.1k|            }
18372|       |
18373|      0|            case value_t::null:
  ------------------
  |  Branch (18373:13): [True: 0, False: 127k]
  ------------------
18374|      0|            {
18375|      0|                o->write_characters("null", 4);
18376|      0|                return;
18377|  10.1k|            }
18378|       |
18379|      0|            default:            // LCOV_EXCL_LINE
  ------------------
  |  Branch (18379:13): [True: 0, False: 127k]
  ------------------
18380|       |                JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
  ------------------
  |  | 2552|      0|    #define JSON_ASSERT(x) assert(x)
  ------------------
18381|   127k|        }
18382|   127k|    }
_ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapENSt3__16vectorENS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE12dump_escapedERKSC_b:
18400|   171k|    {
18401|   171k|        std::uint32_t codepoint{};
18402|   171k|        std::uint8_t state = UTF8_ACCEPT;
18403|   171k|        std::size_t bytes = 0;  // number of bytes written to string_buffer
18404|       |
18405|       |        // number of bytes written at the point of the last valid byte
18406|   171k|        std::size_t bytes_after_last_accept = 0;
18407|   171k|        std::size_t undumped_chars = 0;
18408|       |
18409|  2.17M|        for (std::size_t i = 0; i < s.size(); ++i)
  ------------------
  |  Branch (18409:33): [True: 2.00M, False: 171k]
  ------------------
18410|  2.00M|        {
18411|  2.00M|            const auto byte = static_cast<std::uint8_t>(s[i]);
18412|       |
18413|  2.00M|            switch (decode(state, codepoint, byte))
18414|  2.00M|            {
18415|  2.00M|                case UTF8_ACCEPT:  // decode found a new code point
  ------------------
  |  Branch (18415:17): [True: 2.00M, False: 0]
  ------------------
18416|  2.00M|                {
18417|  2.00M|                    switch (codepoint)
18418|  2.00M|                    {
18419|      0|                        case 0x08: // backspace
  ------------------
  |  Branch (18419:25): [True: 0, False: 2.00M]
  ------------------
18420|      0|                        {
18421|      0|                            string_buffer[bytes++] = '\\';
18422|      0|                            string_buffer[bytes++] = 'b';
18423|      0|                            break;
18424|      0|                        }
18425|       |
18426|      0|                        case 0x09: // horizontal tab
  ------------------
  |  Branch (18426:25): [True: 0, False: 2.00M]
  ------------------
18427|      0|                        {
18428|      0|                            string_buffer[bytes++] = '\\';
18429|      0|                            string_buffer[bytes++] = 't';
18430|      0|                            break;
18431|      0|                        }
18432|       |
18433|      0|                        case 0x0A: // newline
  ------------------
  |  Branch (18433:25): [True: 0, False: 2.00M]
  ------------------
18434|      0|                        {
18435|      0|                            string_buffer[bytes++] = '\\';
18436|      0|                            string_buffer[bytes++] = 'n';
18437|      0|                            break;
18438|      0|                        }
18439|       |
18440|      0|                        case 0x0C: // formfeed
  ------------------
  |  Branch (18440:25): [True: 0, False: 2.00M]
  ------------------
18441|      0|                        {
18442|      0|                            string_buffer[bytes++] = '\\';
18443|      0|                            string_buffer[bytes++] = 'f';
18444|      0|                            break;
18445|      0|                        }
18446|       |
18447|      0|                        case 0x0D: // carriage return
  ------------------
  |  Branch (18447:25): [True: 0, False: 2.00M]
  ------------------
18448|      0|                        {
18449|      0|                            string_buffer[bytes++] = '\\';
18450|      0|                            string_buffer[bytes++] = 'r';
18451|      0|                            break;
18452|      0|                        }
18453|       |
18454|      0|                        case 0x22: // quotation mark
  ------------------
  |  Branch (18454:25): [True: 0, False: 2.00M]
  ------------------
18455|      0|                        {
18456|      0|                            string_buffer[bytes++] = '\\';
18457|      0|                            string_buffer[bytes++] = '\"';
18458|      0|                            break;
18459|      0|                        }
18460|       |
18461|      0|                        case 0x5C: // reverse solidus
  ------------------
  |  Branch (18461:25): [True: 0, False: 2.00M]
  ------------------
18462|      0|                        {
18463|      0|                            string_buffer[bytes++] = '\\';
18464|      0|                            string_buffer[bytes++] = '\\';
18465|      0|                            break;
18466|      0|                        }
18467|       |
18468|  2.00M|                        default:
  ------------------
  |  Branch (18468:25): [True: 2.00M, False: 0]
  ------------------
18469|  2.00M|                        {
18470|       |                            // escape control characters (0x00..0x1F) or, if
18471|       |                            // ensure_ascii parameter is used, non-ASCII characters
18472|  2.00M|                            if ((codepoint <= 0x1F) || (ensure_ascii && (codepoint >= 0x7F)))
  ------------------
  |  Branch (18472:33): [True: 0, False: 2.00M]
  |  Branch (18472:57): [True: 0, False: 2.00M]
  |  Branch (18472:73): [True: 0, False: 0]
  ------------------
18473|      0|                            {
18474|      0|                                if (codepoint <= 0xFFFF)
  ------------------
  |  Branch (18474:37): [True: 0, False: 0]
  ------------------
18475|      0|                                {
18476|       |                                    // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg,hicpp-vararg)
18477|      0|                                    static_cast<void>((std::snprintf)(string_buffer.data() + bytes, 7, "\\u%04x",
18478|      0|                                                                      static_cast<std::uint16_t>(codepoint)));
18479|      0|                                    bytes += 6;
18480|      0|                                }
18481|      0|                                else
18482|      0|                                {
18483|       |                                    // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg,hicpp-vararg)
18484|      0|                                    static_cast<void>((std::snprintf)(string_buffer.data() + bytes, 13, "\\u%04x\\u%04x",
18485|      0|                                                                      static_cast<std::uint16_t>(0xD7C0u + (codepoint >> 10u)),
18486|      0|                                                                      static_cast<std::uint16_t>(0xDC00u + (codepoint & 0x3FFu))));
18487|      0|                                    bytes += 12;
18488|      0|                                }
18489|      0|                            }
18490|  2.00M|                            else
18491|  2.00M|                            {
18492|       |                                // copy byte to buffer (all previous bytes
18493|       |                                // been copied have in default case above)
18494|  2.00M|                                string_buffer[bytes++] = s[i];
18495|  2.00M|                            }
18496|  2.00M|                            break;
18497|      0|                        }
18498|  2.00M|                    }
18499|       |
18500|       |                    // write buffer and reset index; there must be 13 bytes
18501|       |                    // left, as this is the maximal number of bytes to be
18502|       |                    // written ("\uxxxx\uxxxx\0") for one code point
18503|  2.00M|                    if (string_buffer.size() - bytes < 13)
  ------------------
  |  Branch (18503:25): [True: 0, False: 2.00M]
  ------------------
18504|      0|                    {
18505|      0|                        o->write_characters(string_buffer.data(), bytes);
18506|      0|                        bytes = 0;
18507|      0|                    }
18508|       |
18509|       |                    // remember the byte position of this accept
18510|  2.00M|                    bytes_after_last_accept = bytes;
18511|  2.00M|                    undumped_chars = 0;
18512|  2.00M|                    break;
18513|  2.00M|                }
18514|       |
18515|      0|                case UTF8_REJECT:  // decode found invalid UTF-8 byte
  ------------------
  |  Branch (18515:17): [True: 0, False: 2.00M]
  ------------------
18516|      0|                {
18517|      0|                    switch (error_handler)
18518|      0|                    {
18519|      0|                        case error_handler_t::strict:
  ------------------
  |  Branch (18519:25): [True: 0, False: 0]
  ------------------
18520|      0|                        {
18521|      0|                            JSON_THROW(type_error::create(316, concat("invalid UTF-8 byte at index ", std::to_string(i), ": 0x", hex_bytes(byte | 0)), nullptr));
  ------------------
  |  | 2517|      0|    #define JSON_THROW(exception) throw exception
  ------------------
18522|      0|                        }
18523|       |
18524|      0|                        case error_handler_t::ignore:
  ------------------
  |  Branch (18524:25): [True: 0, False: 0]
  ------------------
18525|      0|                        case error_handler_t::replace:
  ------------------
  |  Branch (18525:25): [True: 0, False: 0]
  ------------------
18526|      0|                        {
18527|       |                            // in case we saw this character the first time, we
18528|       |                            // would like to read it again, because the byte
18529|       |                            // may be OK for itself, but just not OK for the
18530|       |                            // previous sequence
18531|      0|                            if (undumped_chars > 0)
  ------------------
  |  Branch (18531:33): [True: 0, False: 0]
  ------------------
18532|      0|                            {
18533|      0|                                --i;
18534|      0|                            }
18535|       |
18536|       |                            // reset length buffer to the last accepted index;
18537|       |                            // thus removing/ignoring the invalid characters
18538|      0|                            bytes = bytes_after_last_accept;
18539|       |
18540|      0|                            if (error_handler == error_handler_t::replace)
  ------------------
  |  Branch (18540:33): [True: 0, False: 0]
  ------------------
18541|      0|                            {
18542|       |                                // add a replacement character
18543|      0|                                if (ensure_ascii)
  ------------------
  |  Branch (18543:37): [True: 0, False: 0]
  ------------------
18544|      0|                                {
18545|      0|                                    string_buffer[bytes++] = '\\';
18546|      0|                                    string_buffer[bytes++] = 'u';
18547|      0|                                    string_buffer[bytes++] = 'f';
18548|      0|                                    string_buffer[bytes++] = 'f';
18549|      0|                                    string_buffer[bytes++] = 'f';
18550|      0|                                    string_buffer[bytes++] = 'd';
18551|      0|                                }
18552|      0|                                else
18553|      0|                                {
18554|      0|                                    string_buffer[bytes++] = detail::binary_writer<BasicJsonType, char>::to_char_type('\xEF');
18555|      0|                                    string_buffer[bytes++] = detail::binary_writer<BasicJsonType, char>::to_char_type('\xBF');
18556|      0|                                    string_buffer[bytes++] = detail::binary_writer<BasicJsonType, char>::to_char_type('\xBD');
18557|      0|                                }
18558|       |
18559|       |                                // write buffer and reset index; there must be 13 bytes
18560|       |                                // left, as this is the maximal number of bytes to be
18561|       |                                // written ("\uxxxx\uxxxx\0") for one code point
18562|      0|                                if (string_buffer.size() - bytes < 13)
  ------------------
  |  Branch (18562:37): [True: 0, False: 0]
  ------------------
18563|      0|                                {
18564|      0|                                    o->write_characters(string_buffer.data(), bytes);
18565|      0|                                    bytes = 0;
18566|      0|                                }
18567|       |
18568|      0|                                bytes_after_last_accept = bytes;
18569|      0|                            }
18570|       |
18571|      0|                            undumped_chars = 0;
18572|       |
18573|       |                            // continue processing the string
18574|      0|                            state = UTF8_ACCEPT;
18575|      0|                            break;
18576|      0|                        }
18577|       |
18578|      0|                        default:            // LCOV_EXCL_LINE
  ------------------
  |  Branch (18578:25): [True: 0, False: 0]
  ------------------
18579|      0|                            JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
  ------------------
  |  | 2552|      0|    #define JSON_ASSERT(x) assert(x)
  ------------------
18580|      0|                    }
18581|      0|                    break;
18582|      0|                }
18583|       |
18584|      0|                default:  // decode found yet incomplete multi-byte code point
  ------------------
  |  Branch (18584:17): [True: 0, False: 2.00M]
  ------------------
18585|      0|                {
18586|      0|                    if (!ensure_ascii)
  ------------------
  |  Branch (18586:25): [True: 0, False: 0]
  ------------------
18587|      0|                    {
18588|       |                        // code point will not be escaped - copy byte to buffer
18589|      0|                        string_buffer[bytes++] = s[i];
18590|      0|                    }
18591|      0|                    ++undumped_chars;
18592|      0|                    break;
18593|      0|                }
18594|  2.00M|            }
18595|  2.00M|        }
18596|       |
18597|       |        // we finished processing the string
18598|   171k|        if (JSON_HEDLEY_LIKELY(state == UTF8_ACCEPT))
  ------------------
  |  | 1676|   171k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1676:57): [True: 171k, False: 0]
  |  |  ------------------
  ------------------
18599|   171k|        {
18600|       |            // write buffer
18601|   171k|            if (bytes > 0)
  ------------------
  |  Branch (18601:17): [True: 171k, False: 0]
  ------------------
18602|   171k|            {
18603|   171k|                o->write_characters(string_buffer.data(), bytes);
18604|   171k|            }
18605|   171k|        }
18606|      0|        else
18607|      0|        {
18608|       |            // we finish reading, but do not accept: string was incomplete
18609|      0|            switch (error_handler)
18610|      0|            {
18611|      0|                case error_handler_t::strict:
  ------------------
  |  Branch (18611:17): [True: 0, False: 0]
  ------------------
18612|      0|                {
18613|      0|                    JSON_THROW(type_error::create(316, concat("incomplete UTF-8 string; last byte: 0x", hex_bytes(static_cast<std::uint8_t>(s.back() | 0))), nullptr));
  ------------------
  |  | 2517|      0|    #define JSON_THROW(exception) throw exception
  ------------------
18614|      0|                }
18615|       |
18616|      0|                case error_handler_t::ignore:
  ------------------
  |  Branch (18616:17): [True: 0, False: 0]
  ------------------
18617|      0|                {
18618|       |                    // write all accepted bytes
18619|      0|                    o->write_characters(string_buffer.data(), bytes_after_last_accept);
18620|      0|                    break;
18621|      0|                }
18622|       |
18623|      0|                case error_handler_t::replace:
  ------------------
  |  Branch (18623:17): [True: 0, False: 0]
  ------------------
18624|      0|                {
18625|       |                    // write all accepted bytes
18626|      0|                    o->write_characters(string_buffer.data(), bytes_after_last_accept);
18627|       |                    // add a replacement character
18628|      0|                    if (ensure_ascii)
  ------------------
  |  Branch (18628:25): [True: 0, False: 0]
  ------------------
18629|      0|                    {
18630|      0|                        o->write_characters("\\ufffd", 6);
18631|      0|                    }
18632|      0|                    else
18633|      0|                    {
18634|      0|                        o->write_characters("\xEF\xBF\xBD", 3);
18635|      0|                    }
18636|      0|                    break;
18637|      0|                }
18638|       |
18639|      0|                default:            // LCOV_EXCL_LINE
  ------------------
  |  Branch (18639:17): [True: 0, False: 0]
  ------------------
18640|       |                    JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
  ------------------
  |  | 2552|      0|    #define JSON_ASSERT(x) assert(x)
  ------------------
18641|      0|            }
18642|      0|        }
18643|   171k|    }
_ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapENSt3__16vectorENS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE6decodeERhRjh:
18909|  2.00M|    {
18910|  2.00M|        static const std::array<std::uint8_t, 400> utf8d =
18911|  2.00M|        {
18912|  2.00M|            {
18913|  2.00M|                0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 00..1F
18914|  2.00M|                0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 20..3F
18915|  2.00M|                0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 40..5F
18916|  2.00M|                0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 60..7F
18917|  2.00M|                1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, // 80..9F
18918|  2.00M|                7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // A0..BF
18919|  2.00M|                8, 8, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, // C0..DF
18920|  2.00M|                0xA, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x4, 0x3, 0x3, // E0..EF
18921|  2.00M|                0xB, 0x6, 0x6, 0x6, 0x5, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, // F0..FF
18922|  2.00M|                0x0, 0x1, 0x2, 0x3, 0x5, 0x8, 0x7, 0x1, 0x1, 0x1, 0x4, 0x6, 0x1, 0x1, 0x1, 0x1, // s0..s0
18923|  2.00M|                1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, // s1..s2
18924|  2.00M|                1, 2, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, // s3..s4
18925|  2.00M|                1, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 3, 1, 1, 1, 1, 1, 1, // s5..s6
18926|  2.00M|                1, 3, 1, 1, 1, 1, 1, 3, 1, 3, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 // s7..s8
18927|  2.00M|            }
18928|  2.00M|        };
18929|       |
18930|  2.00M|        JSON_ASSERT(byte < utf8d.size());
  ------------------
  |  | 2552|  2.00M|    #define JSON_ASSERT(x) assert(x)
  ------------------
18931|  2.00M|        const std::uint8_t type = utf8d[byte];
18932|       |
18933|  2.00M|        codep = (state != UTF8_ACCEPT)
  ------------------
  |  Branch (18933:17): [True: 0, False: 2.00M]
  ------------------
18934|  2.00M|                ? (byte & 0x3fu) | (codep << 6u)
18935|  2.00M|                : (0xFFu >> type) & (byte);
18936|       |
18937|  2.00M|        const std::size_t index = 256u + static_cast<size_t>(state) * 16u + static_cast<size_t>(type);
18938|       |        JSON_ASSERT(index < utf8d.size());
  ------------------
  |  | 2552|  2.00M|    #define JSON_ASSERT(x) assert(x)
  ------------------
18939|  2.00M|        state = utf8d[index];
18940|  2.00M|        return state;
18941|  2.00M|    }
_ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapENSt3__16vectorENS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEED2Ev:
18091|  10.1k|    ~serializer() = default;

_Z20pgp_request_passwordPK23pgp_password_provider_tPK18pgp_password_ctx_tPcm:
   51|  3.90k|{
   52|  3.90k|    if (!provider || !provider->callback || !ctx || !password || !password_size) {
  ------------------
  |  Branch (52:9): [True: 0, False: 3.90k]
  |  Branch (52:22): [True: 0, False: 3.90k]
  |  Branch (52:45): [True: 0, False: 3.90k]
  |  Branch (52:53): [True: 0, False: 3.90k]
  |  Branch (52:66): [True: 0, False: 3.90k]
  ------------------
   53|      0|        return false;
   54|      0|    }
   55|  3.90k|    return provider->callback(ctx, password, password_size, provider->userdata);
   56|  3.90k|}

_ZN18pgp_password_ctx_tC2EhPKN3rnp3KeyE:
   40|  2.36k|    pgp_password_ctx_t(uint8_t anop, const rnp::Key *akey = NULL) : op(anop), key(akey){};
_ZN23pgp_password_provider_tC2EPFbPK18pgp_password_ctx_tPcmPvES4_:
   52|  15.6k|        : callback(cb), userdata(ud){};

_ZN3rnp9RawPacketC2ERKN3pgp3pkt9SignatureE:
   41|  81.1k|{
   42|  81.1k|    data_ = sig.write();
   43|  81.1k|    tag_ = PGP_PKT_SIGNATURE;
   44|  81.1k|}
_ZN3rnp9RawPacketC2ER13pgp_key_pkt_t:
   47|   101k|{
   48|   101k|    rnp::MemoryDest dst;
   49|   101k|    key.write(dst.dst());
   50|   101k|    data_ = dst.to_vector();
   51|   101k|    tag_ = key.tag;
   52|   101k|}
_ZN3rnp9RawPacketC2ERK16pgp_userid_pkt_t:
   55|   500k|{
   56|   500k|    rnp::MemoryDest dst;
   57|   500k|    uid.write(dst.dst());
   58|   500k|    data_ = dst.to_vector();
   59|   500k|    tag_ = uid.tag;
   60|   500k|}

_ZN3rnp9RawPacketC2Ev:
   42|   713k|    RawPacket() : tag_(PGP_PKT_RESERVED){};

_ZN10rnp_ffi_stC2EN3rnp9KeyFormatES1_:
  622|  15.6k|{
  623|  15.6k|    errs = stderr;
  624|  15.6k|    pubring = new rnp::KeyStore("", context, pub_fmt);
  625|  15.6k|    secring = new rnp::KeyStore("", context, sec_fmt);
  626|  15.6k|    getkeycb = NULL;
  627|  15.6k|    getkeycb_ctx = NULL;
  628|  15.6k|    getpasscb = NULL;
  629|       |    getpasscb_ctx = NULL;
  630|  15.6k|    key_provider.callback = ffi_key_provider;
  631|  15.6k|    key_provider.userdata = this;
  632|  15.6k|    pass_provider.callback = rnp_password_cb_bounce;
  633|  15.6k|    pass_provider.userdata = this;
  634|  15.6k|}
rnp_ffi_create:
  650|  15.6k|try {
  651|       |    // checks
  652|  15.6k|    if (!ffi || !pub_format || !sec_format) {
  ------------------
  |  Branch (652:9): [True: 0, False: 15.6k]
  |  Branch (652:17): [True: 0, False: 15.6k]
  |  Branch (652:32): [True: 0, False: 15.6k]
  ------------------
  653|      0|        return RNP_ERROR_NULL_POINTER;
  654|      0|    }
  655|       |
  656|  15.6k|    auto pub_ks_format = rnp::KeyFormat::Unknown;
  657|  15.6k|    auto sec_ks_format = rnp::KeyFormat::Unknown;
  658|  15.6k|    if (!parse_ks_format(&pub_ks_format, pub_format) ||
  ------------------
  |  Branch (658:9): [True: 0, False: 15.6k]
  ------------------
  659|  15.6k|        !parse_ks_format(&sec_ks_format, sec_format)) {
  ------------------
  |  Branch (659:9): [True: 0, False: 15.6k]
  ------------------
  660|      0|        return RNP_ERROR_BAD_PARAMETERS;
  661|      0|    }
  662|       |
  663|  15.6k|    struct rnp_ffi_st *ob = new rnp_ffi_st(pub_ks_format, sec_ks_format);
  664|  15.6k|    *ffi = ob;
  665|  15.6k|    return RNP_SUCCESS;
  666|  15.6k|}
  667|  15.6k|FFI_GUARD
  ------------------
  |  |  619|  15.6k|#define FFI_GUARD FFI_GUARD_FP((stderr))
  |  |  ------------------
  |  |  |  |  602|  15.6k|    catch (rnp::rnp_exception & e)                                                  \
  |  |  |  |  603|  15.6k|    {                                                                               \
  |  |  |  |  604|      0|        return ffi_exception((fp), __func__, e.what(), e.code());                   \
  |  |  |  |  605|      0|    }                                                                               \
  |  |  |  |  606|  15.6k|    catch (std::bad_alloc &)                                                        \
  |  |  |  |  607|  15.6k|    {                                                                               \
  |  |  |  |  608|      0|        return ffi_exception((fp), __func__, "bad_alloc", RNP_ERROR_OUT_OF_MEMORY); \
  |  |  |  |  609|      0|    }                                                                               \
  |  |  |  |  610|  15.6k|    catch (std::exception & e)                                                      \
  |  |  |  |  611|  15.6k|    {                                                                               \
  |  |  |  |  612|      0|        return ffi_exception((fp), __func__, e.what());                             \
  |  |  |  |  613|      0|    }                                                                               \
  |  |  |  |  614|  15.6k|    catch (...)                                                                     \
  |  |  |  |  615|  15.6k|    {                                                                               \
  |  |  |  |  616|      0|        return ffi_exception((fp), __func__, "unknown exception");                  \
  |  |  |  |  617|      0|    }
  |  |  ------------------
  ------------------
_ZN10rnp_ffi_stD2Ev:
  685|  15.6k|{
  686|  15.6k|    close_io_file(&errs);
  687|  15.6k|    delete pubring;
  688|  15.6k|    delete secring;
  689|  15.6k|}
rnp_ffi_destroy:
  693|  15.6k|try {
  694|  15.6k|    if (ffi) {
  ------------------
  |  Branch (694:9): [True: 15.6k, False: 0]
  ------------------
  695|  15.6k|        delete ffi;
  696|  15.6k|    }
  697|  15.6k|    return RNP_SUCCESS;
  698|  15.6k|}
  699|  15.6k|FFI_GUARD
  ------------------
  |  |  619|  15.6k|#define FFI_GUARD FFI_GUARD_FP((stderr))
  |  |  ------------------
  |  |  |  |  602|  15.6k|    catch (rnp::rnp_exception & e)                                                  \
  |  |  |  |  603|  15.6k|    {                                                                               \
  |  |  |  |  604|      0|        return ffi_exception((fp), __func__, e.what(), e.code());                   \
  |  |  |  |  605|      0|    }                                                                               \
  |  |  |  |  606|  15.6k|    catch (std::bad_alloc &)                                                        \
  |  |  |  |  607|  15.6k|    {                                                                               \
  |  |  |  |  608|      0|        return ffi_exception((fp), __func__, "bad_alloc", RNP_ERROR_OUT_OF_MEMORY); \
  |  |  |  |  609|      0|    }                                                                               \
  |  |  |  |  610|  15.6k|    catch (std::exception & e)                                                      \
  |  |  |  |  611|  15.6k|    {                                                                               \
  |  |  |  |  612|      0|        return ffi_exception((fp), __func__, e.what());                             \
  |  |  |  |  613|      0|    }                                                                               \
  |  |  |  |  614|  15.6k|    catch (...)                                                                     \
  |  |  |  |  615|  15.6k|    {                                                                               \
  |  |  |  |  616|      0|        return ffi_exception((fp), __func__, "unknown exception");                  \
  |  |  |  |  617|      0|    }
  |  |  ------------------
  ------------------
rnp_ffi_set_pass_provider:
  735|  2.74k|try {
  736|  2.74k|    if (!ffi) {
  ------------------
  |  Branch (736:9): [True: 0, False: 2.74k]
  ------------------
  737|      0|        return RNP_ERROR_NULL_POINTER;
  738|      0|    }
  739|  2.74k|    ffi->getpasscb = getpasscb;
  740|  2.74k|    ffi->getpasscb_ctx = getpasscb_ctx;
  741|  2.74k|    return RNP_SUCCESS;
  742|  2.74k|}
  743|  2.74k|FFI_GUARD
  ------------------
  |  |  619|  2.74k|#define FFI_GUARD FFI_GUARD_FP((stderr))
  |  |  ------------------
  |  |  |  |  602|  2.74k|    catch (rnp::rnp_exception & e)                                                  \
  |  |  |  |  603|  2.74k|    {                                                                               \
  |  |  |  |  604|      0|        return ffi_exception((fp), __func__, e.what(), e.code());                   \
  |  |  |  |  605|      0|    }                                                                               \
  |  |  |  |  606|  2.74k|    catch (std::bad_alloc &)                                                        \
  |  |  |  |  607|  2.74k|    {                                                                               \
  |  |  |  |  608|      0|        return ffi_exception((fp), __func__, "bad_alloc", RNP_ERROR_OUT_OF_MEMORY); \
  |  |  |  |  609|      0|    }                                                                               \
  |  |  |  |  610|  2.74k|    catch (std::exception & e)                                                      \
  |  |  |  |  611|  2.74k|    {                                                                               \
  |  |  |  |  612|      0|        return ffi_exception((fp), __func__, e.what());                             \
  |  |  |  |  613|      0|    }                                                                               \
  |  |  |  |  614|  2.74k|    catch (...)                                                                     \
  |  |  |  |  615|  2.74k|    {                                                                               \
  |  |  |  |  616|      0|        return ffi_exception((fp), __func__, "unknown exception");                  \
  |  |  |  |  617|      0|    }
  |  |  ------------------
  ------------------
rnp_import_keys:
 1889|  22.1k|try {
 1890|  22.1k|    if (!ffi || !input) {
  ------------------
  |  Branch (1890:9): [True: 0, False: 22.1k]
  |  Branch (1890:17): [True: 0, False: 22.1k]
  ------------------
 1891|      0|        return RNP_ERROR_NULL_POINTER;
 1892|      0|    }
 1893|  22.1k|    bool sec = extract_flag(flags, RNP_LOAD_SAVE_SECRET_KEYS);
  ------------------
  |  |   81|  22.1k|#define RNP_LOAD_SAVE_SECRET_KEYS (1U << 1)
  ------------------
 1894|  22.1k|    bool pub = extract_flag(flags, RNP_LOAD_SAVE_PUBLIC_KEYS);
  ------------------
  |  |   80|  22.1k|#define RNP_LOAD_SAVE_PUBLIC_KEYS (1U << 0)
  ------------------
 1895|  22.1k|    if (!pub && !sec) {
  ------------------
  |  Branch (1895:9): [True: 0, False: 22.1k]
  |  Branch (1895:17): [True: 0, False: 0]
  ------------------
 1896|      0|        FFI_LOG(ffi, "bad flags: need to specify public and/or secret keys");
  ------------------
  |  |   68|      0|    do {                             \
  |  |   69|      0|        FILE *fp = stderr;           \
  |  |   70|      0|        if (ffi && ffi->errs) {      \
  |  |  ------------------
  |  |  |  Branch (70:13): [True: 0, False: 0]
  |  |  |  Branch (70:20): [True: 0, False: 0]
  |  |  ------------------
  |  |   71|      0|            fp = ffi->errs;          \
  |  |   72|      0|        }                            \
  |  |   73|      0|        RNP_LOG_FD(fp, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   74|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (74:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1897|      0|        return RNP_ERROR_BAD_PARAMETERS;
 1898|      0|    }
 1899|  22.1k|    bool skipbad = extract_flag(flags, RNP_LOAD_SAVE_PERMISSIVE);
  ------------------
  |  |   82|  22.1k|#define RNP_LOAD_SAVE_PERMISSIVE (1U << 8)
  ------------------
 1900|  22.1k|    bool single = extract_flag(flags, RNP_LOAD_SAVE_SINGLE);
  ------------------
  |  |   83|  22.1k|#define RNP_LOAD_SAVE_SINGLE (1U << 9)
  ------------------
 1901|  22.1k|    bool base64 = extract_flag(flags, RNP_LOAD_SAVE_BASE64);
  ------------------
  |  |   84|  22.1k|#define RNP_LOAD_SAVE_BASE64 (1U << 10)
  ------------------
 1902|  22.1k|    if (flags) {
  ------------------
  |  Branch (1902:9): [True: 0, False: 22.1k]
  ------------------
 1903|      0|        FFI_LOG(ffi, "unexpected flags remaining: 0x%X", flags);
  ------------------
  |  |   68|      0|    do {                             \
  |  |   69|      0|        FILE *fp = stderr;           \
  |  |   70|      0|        if (ffi && ffi->errs) {      \
  |  |  ------------------
  |  |  |  Branch (70:13): [True: 0, False: 0]
  |  |  |  Branch (70:20): [True: 0, False: 0]
  |  |  ------------------
  |  |   71|      0|            fp = ffi->errs;          \
  |  |   72|      0|        }                            \
  |  |   73|      0|        RNP_LOG_FD(fp, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   74|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (74:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1904|      0|        return RNP_ERROR_BAD_PARAMETERS;
 1905|      0|    }
 1906|       |
 1907|  22.1k|    rnp_result_t  ret = RNP_ERROR_GENERIC;
 1908|  22.1k|    rnp::KeyStore tmp_store("", ffi->context);
 1909|       |
 1910|       |    /* check whether input is base64 */
 1911|  22.1k|    if (base64 && input->src.is_base64()) {
  ------------------
  |  Branch (1911:9): [True: 0, False: 22.1k]
  |  Branch (1911:19): [True: 0, False: 0]
  ------------------
 1912|      0|        ret = rnp_input_dearmor_if_needed(input, true);
 1913|      0|        if (ret) {
  ------------------
  |  Branch (1913:13): [True: 0, False: 0]
  ------------------
 1914|      0|            return ret;
 1915|      0|        }
 1916|      0|    }
 1917|       |
 1918|       |    // load keys to temporary keystore.
 1919|  22.1k|    if (single) {
  ------------------
  |  Branch (1919:9): [True: 0, False: 22.1k]
  ------------------
 1920|       |        /* we need to init and handle dearmor on this layer since it may be used for the next
 1921|       |         * keys import */
 1922|      0|        ret = rnp_input_dearmor_if_needed(input);
 1923|      0|        if (ret == RNP_ERROR_EOF) {
  ------------------
  |  Branch (1923:13): [True: 0, False: 0]
  ------------------
 1924|      0|            return ret;
 1925|      0|        }
 1926|      0|        if (ret) {
  ------------------
  |  Branch (1926:13): [True: 0, False: 0]
  ------------------
 1927|      0|            FFI_LOG(ffi, "Failed to init/check dearmor.");
  ------------------
  |  |   68|      0|    do {                             \
  |  |   69|      0|        FILE *fp = stderr;           \
  |  |   70|      0|        if (ffi && ffi->errs) {      \
  |  |  ------------------
  |  |  |  Branch (70:13): [True: 0, False: 0]
  |  |  |  Branch (70:20): [True: 0, False: 0]
  |  |  ------------------
  |  |   71|      0|            fp = ffi->errs;          \
  |  |   72|      0|        }                            \
  |  |   73|      0|        RNP_LOG_FD(fp, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   74|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (74:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1928|      0|            return ret;
 1929|      0|        }
 1930|      0|        ret = tmp_store.load_pgp_key(input->src, skipbad);
 1931|      0|        if (ret) {
  ------------------
  |  Branch (1931:13): [True: 0, False: 0]
  ------------------
 1932|      0|            return ret;
 1933|      0|        }
 1934|  22.1k|    } else {
 1935|  22.1k|        ret = tmp_store.load_pgp(input->src, skipbad);
 1936|  22.1k|        if (ret) {
  ------------------
  |  Branch (1936:13): [True: 11.9k, False: 10.1k]
  ------------------
 1937|  11.9k|            return ret;
 1938|  11.9k|        }
 1939|  22.1k|    }
 1940|       |
 1941|  10.1k|    nlohmann::ordered_json jsores = nlohmann::ordered_json::object();
 1942|  10.1k|    jsores["keys"] = nlohmann::ordered_json::array();
 1943|  10.1k|    nlohmann::ordered_json &jsokeys = jsores["keys"];
 1944|       |
 1945|       |    // import keys to the main keystore.
 1946|  26.8k|    for (auto &key : tmp_store.keys) {
  ------------------
  |  Branch (1946:20): [True: 26.8k, False: 10.1k]
  ------------------
 1947|  26.8k|        pgp_key_import_status_t pub_status = PGP_KEY_IMPORT_STATUS_UNKNOWN;
 1948|  26.8k|        pgp_key_import_status_t sec_status = PGP_KEY_IMPORT_STATUS_UNKNOWN;
 1949|  26.8k|        if (!pub && key.is_public()) {
  ------------------
  |  Branch (1949:13): [True: 0, False: 26.8k]
  |  Branch (1949:21): [True: 0, False: 0]
  ------------------
 1950|      0|            continue;
 1951|      0|        }
 1952|       |        // if we got here then we add public key itself or public part of the secret key
 1953|  26.8k|        if (!ffi->pubring->import_key(key, true, &pub_status)) {
  ------------------
  |  Branch (1953:13): [True: 0, False: 26.8k]
  ------------------
 1954|      0|            return RNP_ERROR_BAD_PARAMETERS;
 1955|      0|        }
 1956|       |        // import secret key part if available and requested
 1957|  26.8k|        if (sec && key.is_secret()) {
  ------------------
  |  Branch (1957:13): [True: 26.8k, False: 0]
  |  Branch (1957:20): [True: 7.31k, False: 19.5k]
  ------------------
 1958|  7.31k|            if (!ffi->secring->import_key(key, false, &sec_status)) {
  ------------------
  |  Branch (1958:17): [True: 0, False: 7.31k]
  ------------------
 1959|      0|                return RNP_ERROR_BAD_PARAMETERS;
 1960|      0|            }
 1961|       |            // add uids, certifications and other stuff from the public key if any
 1962|  7.31k|            auto *expub = ffi->pubring->get_key(key.fp());
 1963|  7.31k|            if (expub && !ffi->secring->import_key(*expub, true)) {
  ------------------
  |  Branch (1963:17): [True: 7.31k, False: 0]
  |  Branch (1963:26): [True: 0, False: 7.31k]
  ------------------
 1964|      0|                return RNP_ERROR_BAD_PARAMETERS;
 1965|      0|            }
 1966|  19.5k|        } else if (pub_status != PGP_KEY_IMPORT_STATUS_UNCHANGED) {
  ------------------
  |  Branch (1966:20): [True: 12.9k, False: 6.64k]
  ------------------
 1967|       |            // public key was new or updated: sync into secring if a secret key exists there
 1968|  12.9k|            auto *expub = ffi->pubring->get_key(key.fp());
 1969|  12.9k|            if (expub && ffi->secring->get_key(key.fp())) {
  ------------------
  |  Branch (1969:17): [True: 12.9k, False: 0]
  |  Branch (1969:26): [True: 0, False: 12.9k]
  ------------------
 1970|      0|                if (!ffi->secring->import_key(*expub, true)) {
  ------------------
  |  Branch (1970:21): [True: 0, False: 0]
  ------------------
 1971|      0|                    return RNP_ERROR_BAD_PARAMETERS;
 1972|      0|                }
 1973|      0|            }
 1974|  12.9k|        }
 1975|       |        // now add key fingerprint to json based on statuses
 1976|  26.8k|        rnp_result_t tmpret = add_key_status(jsokeys, &key, pub_status, sec_status);
 1977|  26.8k|        if (tmpret) {
  ------------------
  |  Branch (1977:13): [True: 0, False: 26.8k]
  ------------------
 1978|      0|            return tmpret;
 1979|      0|        }
 1980|  26.8k|    }
 1981|  10.1k|    if (!results) {
  ------------------
  |  Branch (1981:9): [True: 0, False: 10.1k]
  ------------------
 1982|      0|        return RNP_SUCCESS;
 1983|      0|    }
 1984|  10.1k|    return ret_str_value(rnp::json::dump_pretty(jsores).c_str(), results);
 1985|  10.1k|}
 1986|  22.1k|FFI_GUARD
  ------------------
  |  |  619|  22.1k|#define FFI_GUARD FFI_GUARD_FP((stderr))
  |  |  ------------------
  |  |  |  |  602|  22.1k|    catch (rnp::rnp_exception & e)                                                  \
  |  |  |  |  603|  22.1k|    {                                                                               \
  |  |  |  |  604|      0|        return ffi_exception((fp), __func__, e.what(), e.code());                   \
  |  |  |  |  605|      0|    }                                                                               \
  |  |  |  |  606|  22.1k|    catch (std::bad_alloc &)                                                        \
  |  |  |  |  607|  22.1k|    {                                                                               \
  |  |  |  |  608|      0|        return ffi_exception((fp), __func__, "bad_alloc", RNP_ERROR_OUT_OF_MEMORY); \
  |  |  |  |  609|      0|    }                                                                               \
  |  |  |  |  610|  22.1k|    catch (std::exception & e)                                                      \
  |  |  |  |  611|  22.1k|    {                                                                               \
  |  |  |  |  612|      0|        return ffi_exception((fp), __func__, e.what());                             \
  |  |  |  |  613|      0|    }                                                                               \
  |  |  |  |  614|  22.1k|    catch (...)                                                                     \
  |  |  |  |  615|  22.1k|    {                                                                               \
  |  |  |  |  616|      0|        return ffi_exception((fp), __func__, "unknown exception");                  \
  |  |  |  |  617|      0|    }
  |  |  ------------------
  ------------------
_ZN12rnp_input_stC2Ev:
 2240|  33.7k|rnp_input_st::rnp_input_st() : reader(NULL), closer(NULL), app_ctx(NULL)
 2241|  33.7k|{
 2242|  33.7k|    memset(&src, 0, sizeof(src));
 2243|  33.7k|}
_ZN12rnp_input_stD2Ev:
 2262|  33.7k|{
 2263|  33.7k|    bool armored = src.type == PGP_STREAM_ARMORED;
 2264|  33.7k|    src.close();
 2265|  33.7k|    if (armored) {
  ------------------
  |  Branch (2265:9): [True: 0, False: 33.7k]
  ------------------
 2266|      0|        rnp_input_t armored = (rnp_input_t) app_ctx;
 2267|      0|        delete armored;
 2268|       |        app_ctx = NULL;
 2269|      0|    }
 2270|  33.7k|}
rnp_input_from_memory:
 2319|  33.7k|try {
 2320|  33.7k|    if (!input) {
  ------------------
  |  Branch (2320:9): [True: 0, False: 33.7k]
  ------------------
 2321|      0|        return RNP_ERROR_NULL_POINTER;
 2322|      0|    }
 2323|  33.7k|    if (!buf && buf_len) {
  ------------------
  |  Branch (2323:9): [True: 0, False: 33.7k]
  |  Branch (2323:17): [True: 0, False: 0]
  ------------------
 2324|      0|        return RNP_ERROR_NULL_POINTER;
 2325|      0|    }
 2326|  33.7k|    if (!buf_len) {
  ------------------
  |  Branch (2326:9): [True: 10, False: 33.7k]
  ------------------
 2327|       |        // prevent malloc(0)
 2328|     10|        do_copy = false;
 2329|     10|    }
 2330|  33.7k|    *input = new rnp_input_st();
 2331|  33.7k|    uint8_t *data = (uint8_t *) buf;
 2332|  33.7k|    if (do_copy) {
  ------------------
  |  Branch (2332:9): [True: 0, False: 33.7k]
  ------------------
 2333|      0|        data = (uint8_t *) malloc(buf_len);
 2334|      0|        if (!data) {
  ------------------
  |  Branch (2334:13): [True: 0, False: 0]
  ------------------
 2335|       |            /* LCOV_EXCL_START */
 2336|      0|            delete *input;
 2337|      0|            *input = NULL;
 2338|      0|            return RNP_ERROR_OUT_OF_MEMORY;
 2339|       |            /* LCOV_EXCL_END */
 2340|      0|        }
 2341|      0|        memcpy(data, buf, buf_len);
 2342|      0|    }
 2343|  33.7k|    rnp_result_t ret = init_mem_src(&(*input)->src, data, buf_len, do_copy);
 2344|  33.7k|    if (ret) {
  ------------------
  |  Branch (2344:9): [True: 0, False: 33.7k]
  ------------------
 2345|       |        /* LCOV_EXCL_START */
 2346|      0|        if (do_copy) {
  ------------------
  |  Branch (2346:13): [True: 0, False: 0]
  ------------------
 2347|      0|            free(data);
 2348|      0|        }
 2349|      0|        delete *input;
 2350|      0|        *input = NULL;
 2351|       |        /* LCOV_EXCL_END */
 2352|      0|    }
 2353|  33.7k|    return ret;
 2354|  33.7k|}
 2355|  33.7k|FFI_GUARD
  ------------------
  |  |  619|  33.7k|#define FFI_GUARD FFI_GUARD_FP((stderr))
  |  |  ------------------
  |  |  |  |  602|  33.7k|    catch (rnp::rnp_exception & e)                                                  \
  |  |  |  |  603|  33.7k|    {                                                                               \
  |  |  |  |  604|      0|        return ffi_exception((fp), __func__, e.what(), e.code());                   \
  |  |  |  |  605|      0|    }                                                                               \
  |  |  |  |  606|  33.7k|    catch (std::bad_alloc &)                                                        \
  |  |  |  |  607|  33.7k|    {                                                                               \
  |  |  |  |  608|      0|        return ffi_exception((fp), __func__, "bad_alloc", RNP_ERROR_OUT_OF_MEMORY); \
  |  |  |  |  609|      0|    }                                                                               \
  |  |  |  |  610|  33.7k|    catch (std::exception & e)                                                      \
  |  |  |  |  611|  33.7k|    {                                                                               \
  |  |  |  |  612|      0|        return ffi_exception((fp), __func__, e.what());                             \
  |  |  |  |  613|      0|    }                                                                               \
  |  |  |  |  614|  33.7k|    catch (...)                                                                     \
  |  |  |  |  615|  33.7k|    {                                                                               \
  |  |  |  |  616|      0|        return ffi_exception((fp), __func__, "unknown exception");                  \
  |  |  |  |  617|      0|    }
  |  |  ------------------
  ------------------
rnp_input_destroy:
 2408|  33.7k|try {
 2409|  33.7k|    delete input;
 2410|  33.7k|    return RNP_SUCCESS;
 2411|  33.7k|}
 2412|  33.7k|FFI_GUARD
  ------------------
  |  |  619|  33.7k|#define FFI_GUARD FFI_GUARD_FP((stderr))
  |  |  ------------------
  |  |  |  |  602|  33.7k|    catch (rnp::rnp_exception & e)                                                  \
  |  |  |  |  603|  33.7k|    {                                                                               \
  |  |  |  |  604|      0|        return ffi_exception((fp), __func__, e.what(), e.code());                   \
  |  |  |  |  605|      0|    }                                                                               \
  |  |  |  |  606|  33.7k|    catch (std::bad_alloc &)                                                        \
  |  |  |  |  607|  33.7k|    {                                                                               \
  |  |  |  |  608|      0|        return ffi_exception((fp), __func__, "bad_alloc", RNP_ERROR_OUT_OF_MEMORY); \
  |  |  |  |  609|      0|    }                                                                               \
  |  |  |  |  610|  33.7k|    catch (std::exception & e)                                                      \
  |  |  |  |  611|  33.7k|    {                                                                               \
  |  |  |  |  612|      0|        return ffi_exception((fp), __func__, e.what());                             \
  |  |  |  |  613|      0|    }                                                                               \
  |  |  |  |  614|  33.7k|    catch (...)                                                                     \
  |  |  |  |  615|  33.7k|    {                                                                               \
  |  |  |  |  616|      0|        return ffi_exception((fp), __func__, "unknown exception");                  \
  |  |  |  |  617|      0|    }
  |  |  ------------------
  ------------------
rnp_output_to_null:
 2600|  11.6k|try {
 2601|       |    // checks
 2602|  11.6k|    if (!output) {
  ------------------
  |  Branch (2602:9): [True: 0, False: 11.6k]
  ------------------
 2603|      0|        return RNP_ERROR_NULL_POINTER;
 2604|      0|    }
 2605|       |
 2606|  11.6k|    *output = new rnp_output_st{};
 2607|  11.6k|    rnp_result_t ret = init_null_dest(&(*output)->dst);
 2608|  11.6k|    if (ret) {
  ------------------
  |  Branch (2608:9): [True: 0, False: 11.6k]
  ------------------
 2609|       |        /* LCOV_EXCL_START */
 2610|      0|        delete *output;
 2611|      0|        *output = NULL;
 2612|       |        /* LCOV_EXCL_END */
 2613|      0|    }
 2614|  11.6k|    return ret;
 2615|  11.6k|}
 2616|  11.6k|FFI_GUARD
  ------------------
  |  |  619|  11.6k|#define FFI_GUARD FFI_GUARD_FP((stderr))
  |  |  ------------------
  |  |  |  |  602|  11.6k|    catch (rnp::rnp_exception & e)                                                  \
  |  |  |  |  603|  11.6k|    {                                                                               \
  |  |  |  |  604|      0|        return ffi_exception((fp), __func__, e.what(), e.code());                   \
  |  |  |  |  605|      0|    }                                                                               \
  |  |  |  |  606|  11.6k|    catch (std::bad_alloc &)                                                        \
  |  |  |  |  607|  11.6k|    {                                                                               \
  |  |  |  |  608|      0|        return ffi_exception((fp), __func__, "bad_alloc", RNP_ERROR_OUT_OF_MEMORY); \
  |  |  |  |  609|      0|    }                                                                               \
  |  |  |  |  610|  11.6k|    catch (std::exception & e)                                                      \
  |  |  |  |  611|  11.6k|    {                                                                               \
  |  |  |  |  612|      0|        return ffi_exception((fp), __func__, e.what());                             \
  |  |  |  |  613|      0|    }                                                                               \
  |  |  |  |  614|  11.6k|    catch (...)                                                                     \
  |  |  |  |  615|  11.6k|    {                                                                               \
  |  |  |  |  616|      0|        return ffi_exception((fp), __func__, "unknown exception");                  \
  |  |  |  |  617|      0|    }
  |  |  ------------------
  ------------------
rnp_output_destroy:
 2679|  11.6k|try {
 2680|  11.6k|    if (output) {
  ------------------
  |  Branch (2680:9): [True: 11.6k, False: 0]
  ------------------
 2681|  11.6k|        if (output->dst.type == PGP_STREAM_ARMORED) {
  ------------------
  |  Branch (2681:13): [True: 0, False: 11.6k]
  ------------------
 2682|      0|            ((rnp_output_t) output->app_ctx)->keep = output->keep;
 2683|      0|        }
 2684|  11.6k|        dst_close(&output->dst, !output->keep);
 2685|  11.6k|        free(output->dst_directory);
 2686|  11.6k|        delete output;
 2687|  11.6k|    }
 2688|  11.6k|    return RNP_SUCCESS;
 2689|  11.6k|}
 2690|  11.6k|FFI_GUARD
  ------------------
  |  |  619|  11.6k|#define FFI_GUARD FFI_GUARD_FP((stderr))
  |  |  ------------------
  |  |  |  |  602|  11.6k|    catch (rnp::rnp_exception & e)                                                  \
  |  |  |  |  603|  11.6k|    {                                                                               \
  |  |  |  |  604|      0|        return ffi_exception((fp), __func__, e.what(), e.code());                   \
  |  |  |  |  605|      0|    }                                                                               \
  |  |  |  |  606|  11.6k|    catch (std::bad_alloc &)                                                        \
  |  |  |  |  607|  11.6k|    {                                                                               \
  |  |  |  |  608|      0|        return ffi_exception((fp), __func__, "bad_alloc", RNP_ERROR_OUT_OF_MEMORY); \
  |  |  |  |  609|      0|    }                                                                               \
  |  |  |  |  610|  11.6k|    catch (std::exception & e)                                                      \
  |  |  |  |  611|  11.6k|    {                                                                               \
  |  |  |  |  612|      0|        return ffi_exception((fp), __func__, e.what());                             \
  |  |  |  |  613|      0|    }                                                                               \
  |  |  |  |  614|  11.6k|    catch (...)                                                                     \
  |  |  |  |  615|  11.6k|    {                                                                               \
  |  |  |  |  616|      0|        return ffi_exception((fp), __func__, "unknown exception");                  \
  |  |  |  |  617|      0|    }
  |  |  ------------------
  ------------------
rnp_op_verify_create:
 3550|  11.6k|try {
 3551|  11.6k|    if (!op || !ffi || !input || !output) {
  ------------------
  |  Branch (3551:9): [True: 0, False: 11.6k]
  |  Branch (3551:16): [True: 0, False: 11.6k]
  |  Branch (3551:24): [True: 0, False: 11.6k]
  |  Branch (3551:34): [True: 0, False: 11.6k]
  ------------------
 3552|      0|        return RNP_ERROR_NULL_POINTER;
 3553|      0|    }
 3554|       |
 3555|  11.6k|    *op = new rnp_op_verify_st(ffi, input, output);
 3556|  11.6k|    return RNP_SUCCESS;
 3557|  11.6k|}
 3558|  11.6k|FFI_GUARD
  ------------------
  |  |  619|  11.6k|#define FFI_GUARD FFI_GUARD_FP((stderr))
  |  |  ------------------
  |  |  |  |  602|  11.6k|    catch (rnp::rnp_exception & e)                                                  \
  |  |  |  |  603|  11.6k|    {                                                                               \
  |  |  |  |  604|      0|        return ffi_exception((fp), __func__, e.what(), e.code());                   \
  |  |  |  |  605|      0|    }                                                                               \
  |  |  |  |  606|  11.6k|    catch (std::bad_alloc &)                                                        \
  |  |  |  |  607|  11.6k|    {                                                                               \
  |  |  |  |  608|      0|        return ffi_exception((fp), __func__, "bad_alloc", RNP_ERROR_OUT_OF_MEMORY); \
  |  |  |  |  609|      0|    }                                                                               \
  |  |  |  |  610|  11.6k|    catch (std::exception & e)                                                      \
  |  |  |  |  611|  11.6k|    {                                                                               \
  |  |  |  |  612|      0|        return ffi_exception((fp), __func__, e.what());                             \
  |  |  |  |  613|      0|    }                                                                               \
  |  |  |  |  614|  11.6k|    catch (...)                                                                     \
  |  |  |  |  615|  11.6k|    {                                                                               \
  |  |  |  |  616|      0|        return ffi_exception((fp), __func__, "unknown exception");                  \
  |  |  |  |  617|      0|    }
  |  |  ------------------
  ------------------
rnp_op_verify_execute:
 3643|  11.6k|try {
 3644|  11.6k|    if (!op) {
  ------------------
  |  Branch (3644:9): [True: 0, False: 11.6k]
  ------------------
 3645|      0|        return RNP_ERROR_NULL_POINTER;
 3646|      0|    }
 3647|       |
 3648|  11.6k|    pgp_parse_handler_t handler;
 3649|       |
 3650|  11.6k|    handler.password_provider = &op->ffi->pass_provider;
 3651|       |
 3652|  11.6k|    rnp_decryption_kp_param_t kparam(op);
 3653|  11.6k|    rnp::KeyProvider          kprov(ffi_decrypt_key_provider, &kparam);
 3654|       |
 3655|  11.6k|    handler.key_provider = &kprov;
 3656|  11.6k|    handler.on_signatures = rnp_op_verify_on_signatures;
 3657|  11.6k|    handler.src_provider = rnp_verify_src_provider;
 3658|  11.6k|    handler.dest_provider = rnp_verify_dest_provider;
 3659|  11.6k|    handler.on_recipients = rnp_verify_on_recipients;
 3660|  11.6k|    handler.on_decryption_start = rnp_verify_on_decryption_start;
 3661|  11.6k|    handler.on_decryption_info = rnp_verify_on_decryption_info;
 3662|  11.6k|    handler.on_decryption_done = rnp_verify_on_decryption_done;
 3663|  11.6k|    handler.param = op;
 3664|  11.6k|    handler.ctx = &op->rnpctx;
 3665|       |
 3666|  11.6k|    rnp_result_t ret = process_pgp_source(&handler, op->input->src);
 3667|       |    /* For hidden recipients, patch used_recipient with the actual key id that was used.
 3668|       |     * kparam.last still points to the key that succeeded: the stream-parse loop breaks
 3669|       |     * immediately after a successful encrypted_try_key(), so the key provider is not
 3670|       |     * called again after that point. */
 3671|  11.6k|    if (kparam.has_hidden && kparam.last && op->used_recipient) {
  ------------------
  |  Branch (3671:9): [True: 0, False: 11.6k]
  |  Branch (3671:30): [True: 0, False: 0]
  |  Branch (3671:45): [True: 0, False: 0]
  ------------------
 3672|      0|        op->used_recipient->keyid = kparam.last->keyid();
 3673|      0|    }
 3674|       |    /* Allow to decrypt data ignoring the signatures check if requested */
 3675|  11.6k|    if (op->ignore_sigs && op->validated && (ret == RNP_ERROR_SIGNATURE_INVALID)) {
  ------------------
  |  Branch (3675:9): [True: 0, False: 11.6k]
  |  Branch (3675:28): [True: 0, False: 0]
  |  Branch (3675:45): [True: 0, False: 0]
  ------------------
 3676|      0|        ret = RNP_SUCCESS;
 3677|      0|    }
 3678|       |    /* Allow to require all signatures be valid */
 3679|  11.6k|    if (op->require_all_sigs && !ret) {
  ------------------
  |  Branch (3679:9): [True: 0, False: 11.6k]
  |  Branch (3679:33): [True: 0, False: 0]
  ------------------
 3680|      0|        for (auto &sig : op->signatures_) {
  ------------------
  |  Branch (3680:24): [True: 0, False: 0]
  ------------------
 3681|      0|            if (sig.verify_status) {
  ------------------
  |  Branch (3681:17): [True: 0, False: 0]
  ------------------
 3682|      0|                ret = RNP_ERROR_SIGNATURE_INVALID;
 3683|      0|                break;
 3684|      0|            }
 3685|      0|        }
 3686|      0|    }
 3687|  11.6k|    if (op->output) {
  ------------------
  |  Branch (3687:9): [True: 11.6k, False: 0]
  ------------------
 3688|  11.6k|        dst_flush(&op->output->dst);
 3689|  11.6k|        op->output->keep = ret == RNP_SUCCESS;
 3690|  11.6k|    }
 3691|  11.6k|    return ret;
 3692|  11.6k|}
 3693|  11.6k|FFI_GUARD
  ------------------
  |  |  619|  11.6k|#define FFI_GUARD FFI_GUARD_FP((stderr))
  |  |  ------------------
  |  |  |  |  602|  11.6k|    catch (rnp::rnp_exception & e)                                                  \
  |  |  |  |  603|  11.6k|    {                                                                               \
  |  |  |  |  604|      0|        return ffi_exception((fp), __func__, e.what(), e.code());                   \
  |  |  |  |  605|      0|    }                                                                               \
  |  |  |  |  606|  11.6k|    catch (std::bad_alloc &)                                                        \
  |  |  |  |  607|  11.6k|    {                                                                               \
  |  |  |  |  608|      0|        return ffi_exception((fp), __func__, "bad_alloc", RNP_ERROR_OUT_OF_MEMORY); \
  |  |  |  |  609|      0|    }                                                                               \
  |  |  |  |  610|  11.6k|    catch (std::exception & e)                                                      \
  |  |  |  |  611|  11.6k|    {                                                                               \
  |  |  |  |  612|      0|        return ffi_exception((fp), __func__, e.what());                             \
  |  |  |  |  613|      0|    }                                                                               \
  |  |  |  |  614|  11.6k|    catch (...)                                                                     \
  |  |  |  |  615|  11.6k|    {                                                                               \
  |  |  |  |  616|      0|        return ffi_exception((fp), __func__, "unknown exception");                  \
  |  |  |  |  617|      0|    }
  |  |  ------------------
  ------------------
rnp_op_verify_destroy:
 3956|  11.6k|try {
 3957|  11.6k|    delete op;
 3958|  11.6k|    return RNP_SUCCESS;
 3959|  11.6k|}
 3960|  11.6k|FFI_GUARD
  ------------------
  |  |  619|  11.6k|#define FFI_GUARD FFI_GUARD_FP((stderr))
  |  |  ------------------
  |  |  |  |  602|  11.6k|    catch (rnp::rnp_exception & e)                                                  \
  |  |  |  |  603|  11.6k|    {                                                                               \
  |  |  |  |  604|      0|        return ffi_exception((fp), __func__, e.what(), e.code());                   \
  |  |  |  |  605|      0|    }                                                                               \
  |  |  |  |  606|  11.6k|    catch (std::bad_alloc &)                                                        \
  |  |  |  |  607|  11.6k|    {                                                                               \
  |  |  |  |  608|      0|        return ffi_exception((fp), __func__, "bad_alloc", RNP_ERROR_OUT_OF_MEMORY); \
  |  |  |  |  609|      0|    }                                                                               \
  |  |  |  |  610|  11.6k|    catch (std::exception & e)                                                      \
  |  |  |  |  611|  11.6k|    {                                                                               \
  |  |  |  |  612|      0|        return ffi_exception((fp), __func__, e.what());                             \
  |  |  |  |  613|      0|    }                                                                               \
  |  |  |  |  614|  11.6k|    catch (...)                                                                     \
  |  |  |  |  615|  11.6k|    {                                                                               \
  |  |  |  |  616|      0|        return ffi_exception((fp), __func__, "unknown exception");                  \
  |  |  |  |  617|      0|    }
  |  |  ------------------
  ------------------
_ZN16rnp_op_verify_stD2Ev:
 3963|  11.6k|{
 3964|  11.6k|    delete used_recipient;
 3965|  11.6k|    delete used_symenc;
 3966|  11.6k|}
rnp_buffer_destroy:
 5886|  22.1k|{
 5887|  22.1k|    free(ptr);
 5888|  22.1k|}
rnp.cpp:_ZL16ffi_key_providerPK21pgp_key_request_ctx_tPv:
  123|    798|{
  124|    798|    rnp_ffi_t ffi = (rnp_ffi_t) userdata;
  125|    798|    return find_key(ffi, ctx->search, ctx->secret, true);
  126|    798|}
rnp.cpp:_ZL15parse_ks_formatPN3rnp9KeyFormatEPKc:
  509|  31.3k|{
  510|  31.3k|    if (!strcmp(format, RNP_KEYSTORE_GPG)) {
  ------------------
  |  | 4375|  31.3k|#define RNP_KEYSTORE_GPG ("GPG")
  ------------------
  |  Branch (510:9): [True: 31.3k, False: 0]
  ------------------
  511|  31.3k|        *key_store_format = rnp::KeyFormat::GPG;
  512|  31.3k|    } else if (!strcmp(format, RNP_KEYSTORE_KBX)) {
  ------------------
  |  | 4376|      0|#define RNP_KEYSTORE_KBX ("KBX")
  ------------------
  |  Branch (512:16): [True: 0, False: 0]
  ------------------
  513|      0|        *key_store_format = rnp::KeyFormat::KBX;
  514|      0|    } else if (!strcmp(format, RNP_KEYSTORE_G10)) {
  ------------------
  |  | 4377|      0|#define RNP_KEYSTORE_G10 ("G10")
  ------------------
  |  Branch (514:16): [True: 0, False: 0]
  ------------------
  515|      0|        *key_store_format = rnp::KeyFormat::G10;
  516|      0|    } else {
  517|      0|        return false;
  518|      0|    }
  519|  31.3k|    return true;
  520|  31.3k|}
rnp.cpp:_ZL13close_io_filePP8_IO_FILE:
  677|  15.6k|{
  678|  15.6k|    if (*fp && !is_std_file(*fp)) {
  ------------------
  |  Branch (678:9): [True: 15.6k, False: 0]
  |  Branch (678:16): [True: 0, False: 15.6k]
  ------------------
  679|      0|        fclose(*fp);
  680|      0|    }
  681|       |    *fp = NULL;
  682|  15.6k|}
rnp.cpp:_ZL11is_std_fileP8_IO_FILE:
  671|  15.6k|{
  672|  15.6k|    return fp == stdout || fp == stderr;
  ------------------
  |  Branch (672:12): [True: 0, False: 15.6k]
  |  Branch (672:28): [True: 15.6k, False: 0]
  ------------------
  673|  15.6k|}
rnp.cpp:_ZL22rnp_password_cb_bouncePK18pgp_password_ctx_tPcmPv:
  777|  3.90k|{
  778|  3.90k|    rnp_ffi_t ffi = (rnp_ffi_t) userdata_void;
  779|       |
  780|  3.90k|    if (!ffi || !ffi->getpasscb) {
  ------------------
  |  Branch (780:9): [True: 0, False: 3.90k]
  |  Branch (780:17): [True: 10, False: 3.89k]
  ------------------
  781|     10|        return false;
  782|     10|    }
  783|       |
  784|  3.89k|    rnp_key_handle_st key(ffi, nullptr, (rnp::Key *) ctx->key);
  785|  3.89k|    return ffi->getpasscb(ffi,
  786|  3.89k|                          ffi->getpasscb_ctx,
  787|  3.89k|                          ctx->key ? &key : NULL,
  ------------------
  |  Branch (787:27): [True: 0, False: 3.89k]
  ------------------
  788|  3.89k|                          operation_description(ctx->op),
  789|  3.89k|                          password,
  790|  3.89k|                          password_size);
  791|  3.90k|}
rnp.cpp:_ZL21operation_descriptionh:
  747|  3.89k|{
  748|  3.89k|    switch (op) {
  749|      0|    case PGP_OP_ADD_SUBKEY:
  ------------------
  |  Branch (749:5): [True: 0, False: 3.89k]
  ------------------
  750|      0|        return "add subkey";
  751|      0|    case PGP_OP_ADD_USERID:
  ------------------
  |  Branch (751:5): [True: 0, False: 3.89k]
  ------------------
  752|      0|        return "add userid";
  753|      0|    case PGP_OP_SIGN:
  ------------------
  |  Branch (753:5): [True: 0, False: 3.89k]
  ------------------
  754|      0|        return "sign";
  755|      0|    case PGP_OP_DECRYPT:
  ------------------
  |  Branch (755:5): [True: 0, False: 3.89k]
  ------------------
  756|      0|        return "decrypt";
  757|      0|    case PGP_OP_UNLOCK:
  ------------------
  |  Branch (757:5): [True: 0, False: 3.89k]
  ------------------
  758|      0|        return "unlock";
  759|      0|    case PGP_OP_PROTECT:
  ------------------
  |  Branch (759:5): [True: 0, False: 3.89k]
  ------------------
  760|      0|        return "protect";
  761|      0|    case PGP_OP_UNPROTECT:
  ------------------
  |  Branch (761:5): [True: 0, False: 3.89k]
  ------------------
  762|      0|        return "unprotect";
  763|  3.89k|    case PGP_OP_DECRYPT_SYM:
  ------------------
  |  Branch (763:5): [True: 3.89k, False: 0]
  ------------------
  764|  3.89k|        return "decrypt (symmetric)";
  765|      0|    case PGP_OP_ENCRYPT_SYM:
  ------------------
  |  Branch (765:5): [True: 0, False: 3.89k]
  ------------------
  766|      0|        return "encrypt (symmetric)";
  767|      0|    default:
  ------------------
  |  Branch (767:5): [True: 0, False: 3.89k]
  ------------------
  768|      0|        return "unknown";
  769|  3.89k|    }
  770|  3.89k|}
rnp.cpp:_ZL13ret_str_valuePKcPPc:
  542|  10.1k|{
  543|  10.1k|    if (!str) {
  ------------------
  |  Branch (543:9): [True: 0, False: 10.1k]
  ------------------
  544|      0|        return RNP_ERROR_BAD_PARAMETERS;
  545|      0|    }
  546|  10.1k|    char *strcp = strdup(str);
  547|  10.1k|    if (!strcp) {
  ------------------
  |  Branch (547:9): [True: 0, False: 10.1k]
  ------------------
  548|      0|        *res = NULL;                    // LCOV_EXCL_LINE
  549|      0|        return RNP_ERROR_OUT_OF_MEMORY; // LCOV_EXCL_LINE
  550|      0|    }
  551|  10.1k|    *res = strcp;
  552|  10.1k|    return RNP_SUCCESS;
  553|  10.1k|}
rnp.cpp:_ZL12extract_flagRjj:
 1298|   110k|{
 1299|   110k|    bool res = flags & flag;
 1300|   110k|    flags &= ~flag;
 1301|   110k|    return res;
 1302|   110k|}
rnp.cpp:_ZL14add_key_statusRN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapENSt3__16vectorENS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvEEPKN3rnp3KeyE23pgp_key_import_status_tSK_:
 1872|  26.8k|{
 1873|  26.8k|    nlohmann::ordered_json jsokey = nlohmann::ordered_json::object();
 1874|       |
 1875|  26.8k|    if (!rnp::json::add(jsokey, "public", key_status_to_str(pub)) ||
  ------------------
  |  Branch (1875:9): [True: 0, False: 26.8k]
  |  Branch (1875:9): [True: 0, False: 26.8k]
  ------------------
 1876|  26.8k|        !rnp::json::add(jsokey, "secret", key_status_to_str(sec)) ||
  ------------------
  |  Branch (1876:9): [True: 0, False: 26.8k]
  ------------------
 1877|  26.8k|        !rnp::json::add(jsokey, "fingerprint", key->fp()) ||
  ------------------
  |  Branch (1877:9): [True: 0, False: 26.8k]
  ------------------
 1878|  26.8k|        !rnp::json::array_add(keys, jsokey)) {
  ------------------
  |  Branch (1878:9): [True: 0, False: 26.8k]
  ------------------
 1879|       |        /* LCOV_EXCL_START */
 1880|      0|        return RNP_ERROR_OUT_OF_MEMORY;
 1881|       |        /* LCOV_EXCL_END */
 1882|      0|    }
 1883|       |
 1884|  26.8k|    return RNP_SUCCESS;
 1885|  26.8k|}
rnp.cpp:_ZL17key_status_to_str23pgp_key_import_status_t:
 1860|  53.7k|{
 1861|  53.7k|    if (status == PGP_KEY_IMPORT_STATUS_UNKNOWN) {
  ------------------
  |  Branch (1861:9): [True: 19.5k, False: 34.2k]
  ------------------
 1862|  19.5k|        return "none";
 1863|  19.5k|    }
 1864|  34.2k|    return id_str_pair::lookup(key_import_status_map, status, "none");
 1865|  53.7k|}
rnp.cpp:_ZL24ffi_decrypt_key_providerPK21pgp_key_request_ctx_tPv:
 3577|  1.32k|{
 3578|  1.32k|    rnp_decryption_kp_param_t *kparam = (rnp_decryption_kp_param_t *) userdata;
 3579|       |
 3580|  1.32k|    auto ffi = kparam->op->ffi;
 3581|  1.32k|    bool hidden = false;
 3582|  1.32k|    if (ctx->secret && (ctx->search.type() == rnp::KeySearch::Type::KeyID)) {
  ------------------
  |  Branch (3582:9): [True: 1.08k, False: 245]
  |  Branch (3582:24): [True: 882, False: 202]
  ------------------
 3583|    882|        auto ksearch = dynamic_cast<const rnp::KeyIDSearch *>(&ctx->search);
 3584|    882|        assert(ksearch != nullptr);
 3585|    882|        hidden = ksearch && ksearch->hidden();
  ------------------
  |  Branch (3585:18): [True: 882, False: 0]
  |  Branch (3585:29): [True: 531, False: 351]
  ------------------
 3586|    882|    }
 3587|       |    /* default to the FFI key provider if not hidden keyid request */
 3588|  1.32k|    if (!hidden) {
  ------------------
  |  Branch (3588:9): [True: 798, False: 531]
  ------------------
 3589|    798|        return ffi->key_provider.callback(ctx, ffi->key_provider.userdata);
 3590|    798|    }
 3591|    531|    if (!kparam->op->allow_hidden) {
  ------------------
  |  Branch (3591:9): [True: 531, False: 0]
  ------------------
 3592|    531|        return NULL;
 3593|    531|    }
 3594|       |    /* Iterate over the loaded secret keys, returning the next one on each call. Once the
 3595|       |     * search is exhausted NULL is returned and kparam->last is reset, so the next hidden
 3596|       |     * PKESK (a message may contain several of them, e.g. Delta Chat with anonymous v6
 3597|       |     * PKESKs) starts again from the first key instead of being skipped. */
 3598|       |    /* inform user about the hidden recipient before searching through the loaded keys */
 3599|      0|    if (!kparam->has_hidden) {
  ------------------
  |  Branch (3599:9): [True: 0, False: 0]
  ------------------
 3600|      0|        call_key_callback(ffi, ctx->search, ctx->secret);
 3601|      0|    }
 3602|      0|    kparam->has_hidden = true;
 3603|      0|    kparam->last = find_key(ffi, ctx->search, true, true, kparam->last);
 3604|      0|    return kparam->last;
 3605|    531|}
rnp.cpp:_ZL17call_key_callbackP10rnp_ffi_stRKN3rnp9KeySearchEb:
   96|    798|{
   97|    798|    if (!ffi->getkeycb) {
  ------------------
  |  Branch (97:9): [True: 798, False: 0]
  ------------------
   98|    798|        return false;
   99|    798|    }
  100|      0|    ffi->getkeycb(
  101|      0|      ffi, ffi->getkeycb_ctx, search.name().c_str(), search.value().c_str(), secret);
  102|      0|    return true;
  103|    798|}
rnp.cpp:_ZL27rnp_op_verify_on_signaturesRKNSt3__16vectorIN3rnp13SignatureInfoENS_9allocatorIS2_EEEEPv:
 3373|  1.04k|{
 3374|  1.04k|    rnp_op_verify_t op = (rnp_op_verify_t) param;
 3375|       |
 3376|  1.04k|    try {
 3377|       |        /* in case we have multiple signed layers */
 3378|  1.04k|        op->signatures_.resize(sigs.size());
 3379|       |
 3380|  1.04k|        size_t i = 0;
 3381|  55.2k|        for (const auto &sinfo : sigs) {
  ------------------
  |  Branch (3381:32): [True: 55.2k, False: 1.04k]
  ------------------
 3382|  55.2k|            auto &res = op->signatures_[i++];
 3383|       |            /* sinfo.sig may be NULL */
 3384|  55.2k|            if (sinfo.sig) {
  ------------------
  |  Branch (3384:17): [True: 882, False: 54.4k]
  ------------------
 3385|    882|                res.sig_pkt = *sinfo.sig;
 3386|    882|            }
 3387|  55.2k|            res.validity = sinfo.validity;
 3388|  55.2k|            res.ffi = op->ffi;
 3389|       |
 3390|       |            /* signature is valid */
 3391|  55.2k|            if (res.validity.valid()) {
  ------------------
  |  Branch (3391:17): [True: 0, False: 55.2k]
  ------------------
 3392|      0|                res.verify_status = RNP_SUCCESS;
 3393|      0|                continue;
 3394|      0|            }
 3395|       |            /* failed to parse signature */
 3396|  55.2k|            if (res.validity.unknown()) {
  ------------------
  |  Branch (3396:17): [True: 54.4k, False: 882]
  ------------------
 3397|  54.4k|                res.verify_status = RNP_ERROR_SIGNATURE_UNKNOWN;
 3398|  54.4k|                continue;
 3399|  54.4k|            }
 3400|       |            /* expired signature */
 3401|    882|            if (res.validity.expired()) {
  ------------------
  |  Branch (3401:17): [True: 0, False: 882]
  ------------------
 3402|      0|                res.verify_status = RNP_ERROR_SIGNATURE_EXPIRED;
 3403|      0|                continue;
 3404|      0|            }
 3405|       |            /* signer's key not found */
 3406|    882|            if (res.validity.no_signer()) {
  ------------------
  |  Branch (3406:17): [True: 85, False: 797]
  ------------------
 3407|     85|                res.verify_status = RNP_ERROR_KEY_NOT_FOUND;
 3408|     85|                continue;
 3409|     85|            }
 3410|       |            /* other reasons */
 3411|    797|            res.verify_status = RNP_ERROR_SIGNATURE_INVALID;
 3412|    797|        }
 3413|  1.04k|    } catch (const std::exception &e) {
 3414|       |        FFI_LOG(op->ffi, "%s", e.what()); // LCOV_EXCL_LINE
  ------------------
  |  |   68|      0|    do {                             \
  |  |   69|      0|        FILE *fp = stderr;           \
  |  |   70|      0|        if (ffi && ffi->errs) {      \
  |  |  ------------------
  |  |  |  Branch (70:13): [True: 0, False: 0]
  |  |  |  Branch (70:20): [True: 0, False: 0]
  |  |  ------------------
  |  |   71|      0|            fp = ffi->errs;          \
  |  |   72|      0|        }                            \
  |  |   73|      0|        RNP_LOG_FD(fp, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   74|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (74:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3415|      0|    }
 3416|  1.04k|}
rnp.cpp:_ZL24rnp_verify_dest_providerP19pgp_parse_handler_tPP10pgp_dest_tPbPK17pgp_literal_hdr_t:
 3437|  1.40k|{
 3438|  1.40k|    rnp_op_verify_t op = (rnp_op_verify_t) handler->param;
 3439|  1.40k|    if (!op->output) {
  ------------------
  |  Branch (3439:9): [True: 0, False: 1.40k]
  ------------------
 3440|      0|        return false;
 3441|      0|    }
 3442|  1.40k|    *dst = &(op->output->dst);
 3443|  1.40k|    *closedst = false;
 3444|  1.40k|    op->lithdr = lithdr ? *lithdr : pgp_literal_hdr_t();
  ------------------
  |  Branch (3444:18): [True: 1.08k, False: 325]
  ------------------
 3445|  1.40k|    return true;
 3446|  1.40k|}
rnp.cpp:_ZL24rnp_verify_on_recipientsRKNSt3__16vectorI16pgp_pk_sesskey_tNS_9allocatorIS1_EEEERKNS0_I16pgp_sk_sesskey_tNS2_IS7_EEEEPv:
 3474|  2.40k|{
 3475|  2.40k|    rnp_op_verify_t op = (rnp_op_verify_t) param;
 3476|       |    /* store only top-level encrypted stream recipients info for now */
 3477|  2.40k|    if (op->encrypted_layers++) {
  ------------------
  |  Branch (3477:9): [True: 2, False: 2.40k]
  ------------------
 3478|      2|        return;
 3479|      2|    }
 3480|  2.40k|    if (!recipients.empty()) {
  ------------------
  |  Branch (3480:9): [True: 43, False: 2.36k]
  ------------------
 3481|     43|        op->recipients.resize(recipients.size());
 3482|  1.35k|        for (size_t i = 0; i < recipients.size(); i++) {
  ------------------
  |  Branch (3482:28): [True: 1.31k, False: 43]
  ------------------
 3483|  1.31k|            recipient_handle_from_pk_sesskey(op->recipients[i], recipients[i]);
 3484|  1.31k|        }
 3485|     43|    }
 3486|  2.40k|    if (!passwords.empty()) {
  ------------------
  |  Branch (3486:9): [True: 2.36k, False: 35]
  ------------------
 3487|  2.36k|        op->symencs.resize(passwords.size());
 3488|  30.3k|        for (size_t i = 0; i < passwords.size(); i++) {
  ------------------
  |  Branch (3488:28): [True: 27.9k, False: 2.36k]
  ------------------
 3489|  27.9k|            symenc_handle_from_sk_sesskey(op->symencs[i], passwords[i]);
 3490|  27.9k|        }
 3491|  2.36k|    }
 3492|  2.40k|}
rnp.cpp:_ZL32recipient_handle_from_pk_sesskeyR23rnp_recipient_handle_stRK16pgp_pk_sesskey_t:
 3451|  1.31k|{
 3452|  1.31k|    handle.keyid = sesskey.key_id;
 3453|  1.31k|    handle.palg = sesskey.alg;
 3454|  1.31k|}
rnp.cpp:_ZL29symenc_handle_from_sk_sesskeyR20rnp_symenc_handle_stRK16pgp_sk_sesskey_t:
 3458|  29.1k|{
 3459|  29.1k|    handle.alg = sesskey.alg;
 3460|  29.1k|    handle.halg = sesskey.s2k.hash_alg;
 3461|  29.1k|    handle.s2k_type = sesskey.s2k.specifier;
 3462|  29.1k|    if (sesskey.s2k.specifier == PGP_S2KS_ITERATED_AND_SALTED) {
  ------------------
  |  Branch (3462:9): [True: 751, False: 28.3k]
  ------------------
 3463|    751|        handle.iterations = pgp_s2k_decode_iterations(sesskey.s2k.iterations);
 3464|  28.3k|    } else {
 3465|  28.3k|        handle.iterations = 1;
 3466|  28.3k|    }
 3467|  29.1k|    handle.aalg = sesskey.aalg;
 3468|  29.1k|}
rnp.cpp:_ZL30rnp_verify_on_decryption_startP16pgp_pk_sesskey_tP16pgp_sk_sesskey_tPv:
 3496|  1.18k|{
 3497|  1.18k|    rnp_op_verify_t op = (rnp_op_verify_t) param;
 3498|       |    /* store only top-level encrypted stream info */
 3499|  1.18k|    if (op->encrypted_layers > 1) {
  ------------------
  |  Branch (3499:9): [True: 0, False: 1.18k]
  ------------------
 3500|      0|        return;
 3501|      0|    }
 3502|  1.18k|    if (pubenc) {
  ------------------
  |  Branch (3502:9): [True: 0, False: 1.18k]
  ------------------
 3503|      0|        op->used_recipient = new (std::nothrow) rnp_recipient_handle_st();
 3504|      0|        if (!op->used_recipient) {
  ------------------
  |  Branch (3504:13): [True: 0, False: 0]
  ------------------
 3505|      0|            return;
 3506|      0|        }
 3507|      0|        recipient_handle_from_pk_sesskey(*op->used_recipient, *pubenc);
 3508|      0|        return;
 3509|      0|    }
 3510|  1.18k|    if (symenc) {
  ------------------
  |  Branch (3510:9): [True: 1.18k, False: 0]
  ------------------
 3511|  1.18k|        op->used_symenc = new (std::nothrow) rnp_symenc_handle_st();
 3512|  1.18k|        if (!op->used_symenc) {
  ------------------
  |  Branch (3512:13): [True: 0, False: 1.18k]
  ------------------
 3513|      0|            return;
 3514|      0|        }
 3515|  1.18k|        symenc_handle_from_sk_sesskey(*op->used_symenc, *symenc);
 3516|  1.18k|        return;
 3517|  1.18k|    }
 3518|      0|    FFI_LOG(op->ffi, "Warning! Both pubenc and symenc are NULL.");
  ------------------
  |  |   68|      0|    do {                             \
  |  |   69|      0|        FILE *fp = stderr;           \
  |  |   70|      0|        if (ffi && ffi->errs) {      \
  |  |  ------------------
  |  |  |  Branch (70:13): [True: 0, False: 0]
  |  |  |  Branch (70:20): [True: 0, False: 0]
  |  |  ------------------
  |  |   71|      0|            fp = ffi->errs;          \
  |  |   72|      0|        }                            \
  |  |   73|      0|        RNP_LOG_FD(fp, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   74|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (74:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3519|      0|}
rnp.cpp:_ZL29rnp_verify_on_decryption_infob14pgp_aead_alg_t14pgp_symm_alg_tPv:
 3523|  2.39k|{
 3524|  2.39k|    rnp_op_verify_t op = (rnp_op_verify_t) param;
 3525|       |    /* store only top-level encrypted stream info for now */
 3526|  2.39k|    if (op->encrypted_layers > 1) {
  ------------------
  |  Branch (3526:9): [True: 2, False: 2.39k]
  ------------------
 3527|      2|        return;
 3528|      2|    }
 3529|  2.39k|    op->mdc = mdc;
 3530|  2.39k|    op->aead = aead;
 3531|  2.39k|    op->salg = salg;
 3532|  2.39k|    op->encrypted = true;
 3533|  2.39k|}
rnp.cpp:_ZL29rnp_verify_on_decryption_donebPv:
 3537|      1|{
 3538|      1|    rnp_op_verify_t op = (rnp_op_verify_t) param;
 3539|      1|    if (op->encrypted_layers > 1) {
  ------------------
  |  Branch (3539:9): [True: 0, False: 1]
  ------------------
 3540|      0|        return;
 3541|      0|    }
 3542|      1|    op->validated = validated;
 3543|      1|}
rnp.cpp:_ZL8find_keyP10rnp_ffi_stRKN3rnp9KeySearchEbbPNS1_3KeyE:
  111|    798|{
  112|    798|    auto      ks = secret ? ffi->secring : ffi->pubring;
  ------------------
  |  Branch (112:20): [True: 553, False: 245]
  ------------------
  113|    798|    rnp::Key *key = ks->search(search, after);
  114|    798|    if (!key && try_key_provider && call_key_callback(ffi, search, secret)) {
  ------------------
  |  Branch (114:9): [True: 798, False: 0]
  |  Branch (114:17): [True: 798, False: 0]
  |  Branch (114:37): [True: 0, False: 798]
  ------------------
  115|       |        // recurse and try the store search above once more
  116|      0|        return find_key(ffi, search, secret, false, after);
  117|      0|    }
  118|    798|    return key;
  119|    798|}

_ZNK3rnp12SecurityRule7matchesENS_11FeatureTypeEimNS_14SecurityActionE:
   52|   202k|{
   53|   202k|    if ((type != ftype) || (feature != fval) || (from > ftime)) {
  ------------------
  |  Branch (53:9): [True: 94.6k, False: 107k]
  |  Branch (53:28): [True: 97.0k, False: 10.2k]
  |  Branch (53:49): [True: 1.49k, False: 8.78k]
  ------------------
   54|   193k|        return false;
   55|   193k|    }
   56|  8.78k|    return (action == SecurityAction::Any) || (faction == SecurityAction::Any) ||
  ------------------
  |  Branch (56:12): [True: 8.41k, False: 370]
  |  Branch (56:47): [True: 0, False: 370]
  ------------------
   57|    370|           (action == faction);
  ------------------
  |  Branch (57:12): [True: 74, False: 296]
  ------------------
   58|   202k|}
_ZN3rnp15SecurityProfile8add_ruleEONS_12SecurityRuleE:
   75|   125k|{
   76|   125k|    rules_.emplace_back(rule);
   77|   125k|    return rules_.back();
   78|   125k|}
_ZNK3rnp15SecurityProfile8has_ruleENS_11FeatureTypeEimNS_14SecurityActionE:
  123|  23.6k|{
  124|   168k|    for (auto &rule : rules_) {
  ------------------
  |  Branch (124:21): [True: 168k, False: 19.4k]
  ------------------
  125|   168k|        if (rule.matches(type, value, time, action)) {
  ------------------
  |  Branch (125:13): [True: 4.24k, False: 163k]
  ------------------
  126|  4.24k|            return true;
  127|  4.24k|        }
  128|   168k|    }
  129|  19.4k|    return false;
  130|  23.6k|}
_ZNK3rnp15SecurityProfile8get_ruleENS_11FeatureTypeEimNS_14SecurityActionE:
  137|  4.24k|{
  138|  4.24k|    const SecurityRule *res = nullptr;
  139|  33.9k|    for (auto &rule : rules_) {
  ------------------
  |  Branch (139:21): [True: 33.9k, False: 4.24k]
  ------------------
  140|  33.9k|        if (!rule.matches(type, value, time, action)) {
  ------------------
  |  Branch (140:13): [True: 29.7k, False: 4.24k]
  ------------------
  141|  29.7k|            continue;
  142|  29.7k|        }
  143|  4.24k|        if (rule.override) {
  ------------------
  |  Branch (143:13): [True: 0, False: 4.24k]
  ------------------
  144|      0|            return rule;
  145|      0|        }
  146|  4.24k|        if (!res || (res->from < rule.from)) {
  ------------------
  |  Branch (146:13): [True: 4.24k, False: 0]
  |  Branch (146:21): [True: 0, False: 0]
  ------------------
  147|  4.24k|            res = &rule;
  148|  4.24k|        }
  149|  4.24k|    }
  150|  4.24k|    if (!res) {
  ------------------
  |  Branch (150:9): [True: 0, False: 4.24k]
  ------------------
  151|      0|        throw rnp::rnp_exception(RNP_ERROR_BAD_PARAMETERS);
  152|      0|    }
  153|  4.24k|    return *res;
  154|  4.24k|}
_ZNK3rnp15SecurityProfile10hash_levelE14pgp_hash_alg_tmNS_14SecurityActionE:
  160|  23.6k|{
  161|  23.6k|    if (!has_rule(FeatureType::Hash, hash, time, action)) {
  ------------------
  |  Branch (161:9): [True: 19.4k, False: 4.24k]
  ------------------
  162|  19.4k|        return def_level();
  163|  19.4k|    }
  164|       |
  165|  4.24k|    try {
  166|  4.24k|        return get_rule(FeatureType::Hash, hash, time, action).level;
  167|  4.24k|    } catch (const std::exception &e) {
  168|       |        /* this should never happen however we need to satisfy noexcept specifier */
  169|      0|        return def_level();
  170|      0|    }
  171|  4.24k|}
_ZNK3rnp15SecurityProfile9def_levelEv:
  175|  19.4k|{
  176|  19.4k|    return SecurityLevel::Default;
  177|  19.4k|};
_ZN3rnp15SecurityContextC2Ev:
  185|  15.6k|SecurityContext::SecurityContext() : time_(0), prov_state_(NULL), rng(RNG::Type::DRBG)
  186|  15.6k|{
  187|       |    /* Initialize crypto provider if needed (currently only for OpenSSL 3.0) */
  188|  15.6k|    if (!rnp::backend_init(&prov_state_)) {
  ------------------
  |  Branch (188:9): [True: 0, False: 15.6k]
  ------------------
  189|      0|        throw rnp::rnp_exception(RNP_ERROR_BAD_STATE);
  190|      0|    }
  191|       |    /* Mark SHA-1 data signature insecure since 2019-01-19, as GnuPG does */
  192|  15.6k|    profile.add_rule({FeatureType::Hash,
  193|  15.6k|                      PGP_HASH_SHA1,
  194|  15.6k|                      SecurityLevel::Insecure,
  195|  15.6k|                      1547856000,
  196|  15.6k|                      SecurityAction::VerifyData});
  197|       |    /* Mark SHA-1 key signature insecure since 2024-01-19 by default */
  198|  15.6k|    profile.add_rule({FeatureType::Hash,
  199|  15.6k|                      PGP_HASH_SHA1,
  200|  15.6k|                      SecurityLevel::Insecure,
  201|  15.6k|                      1705629600,
  202|  15.6k|                      SecurityAction::VerifyKey});
  203|       |    /* Mark MD5 insecure since 2012-01-01 */
  204|  15.6k|    profile.add_rule({FeatureType::Hash, PGP_HASH_MD5, SecurityLevel::Insecure, 1325376000});
  205|       |    /* Mark CAST5, 3DES, IDEA, BLOWFISH insecure since 2024-10-01*/
  206|  15.6k|    profile.add_rule({FeatureType::Cipher, PGP_SA_CAST5, SecurityLevel::Insecure, 1727730000});
  207|  15.6k|    profile.add_rule(
  208|  15.6k|      {FeatureType::Cipher, PGP_SA_TRIPLEDES, SecurityLevel::Insecure, 1727730000});
  209|  15.6k|    profile.add_rule({FeatureType::Cipher, PGP_SA_IDEA, SecurityLevel::Insecure, 1727730000});
  210|  15.6k|    profile.add_rule(
  211|  15.6k|      {FeatureType::Cipher, PGP_SA_BLOWFISH, SecurityLevel::Insecure, 1727730000});
  212|  15.6k|#if defined(ENABLE_CRYPTO_REFRESH)
  213|       |    /* Mark RIPEMD insecure since 2024-01-19 by default */
  214|  15.6k|    profile.add_rule(
  215|  15.6k|      {FeatureType::Hash, PGP_HASH_RIPEMD, SecurityLevel::Insecure, 1705629600});
  216|  15.6k|#endif
  217|       |#if defined(RNP_FIPS_MODE)
  218|       |    /*
  219|       |     * FIPS-compliant defaults: mark non-FIPS-approved algorithms as Disabled
  220|       |     * (not merely Insecure) so they cannot be used at all. These rules have
  221|       |     * from = 0, so they apply to objects regardless of creation time. The
  222|       |     * caller may still relax individual rules via rnp_add_security_rule() with
  223|       |     * the RNP_SECURITY_OVERRIDE flag, but the defaults are intentionally
  224|       |     * strict. See docs/security.adoc for the certification boundary.
  225|       |     *
  226|       |     * Note: this enforces rnp's policy on top of OpenSSL's validated module.
  227|       |     * It does not by itself make rnp a FIPS-validated module.
  228|       |     */
  229|       |    /* Non-FIPS symmetric algorithms */
  230|       |    profile.add_rule({FeatureType::Cipher, PGP_SA_TWOFISH, SecurityLevel::Disabled, 0});
  231|       |    profile.add_rule({FeatureType::Cipher, PGP_SA_CAST5, SecurityLevel::Disabled, 0});
  232|       |    profile.add_rule({FeatureType::Cipher, PGP_SA_IDEA, SecurityLevel::Disabled, 0});
  233|       |    profile.add_rule({FeatureType::Cipher, PGP_SA_BLOWFISH, SecurityLevel::Disabled, 0});
  234|       |    profile.add_rule({FeatureType::Cipher, PGP_SA_SM4, SecurityLevel::Disabled, 0});
  235|       |    /* Non-FIPS hash algorithms */
  236|       |    profile.add_rule({FeatureType::Hash, PGP_HASH_MD5, SecurityLevel::Disabled, 0});
  237|       |    profile.add_rule({FeatureType::Hash, PGP_HASH_SHA1, SecurityLevel::Disabled, 0});
  238|       |    profile.add_rule({FeatureType::Hash, PGP_HASH_RIPEMD, SecurityLevel::Disabled, 0});
  239|       |    /* Non-FIPS public-key algorithms. DSA is FIPS-approved but only with
  240|       |     * approved key sizes; that size gating is enforced separately during key
  241|       |     * generation/use, not via a blanket rule here. */
  242|       |    profile.add_rule({FeatureType::PublicKey, PGP_PKA_EDDSA, SecurityLevel::Disabled, 0});
  243|       |    profile.add_rule({FeatureType::PublicKey, PGP_PKA_SM2, SecurityLevel::Disabled, 0});
  244|       |    profile.add_rule({FeatureType::PublicKey, PGP_PKA_ELGAMAL, SecurityLevel::Disabled, 0});
  245|       |    profile.add_rule(
  246|       |      {FeatureType::PublicKey, PGP_PKA_ELGAMAL_ENCRYPT_OR_SIGN, SecurityLevel::Disabled, 0});
  247|       |#endif
  248|  15.6k|}
_ZN3rnp15SecurityContextD2Ev:
  251|  15.6k|{
  252|  15.6k|    rnp::backend_finish(prov_state_);
  253|  15.6k|}
_ZNK3rnp15SecurityContext4timeEv:
  273|   132k|{
  274|   132k|    return time_ ? time_ : ::time(NULL);
  ------------------
  |  Branch (274:12): [True: 0, False: 132k]
  ------------------
  275|   132k|}

_ZN3rnp12SecurityRuleC2ENS_11FeatureTypeEiNS_13SecurityLevelEmNS_14SecurityActionE:
   54|   125k|        : type(ftype), feature(fval), level(flevel), from(ffrom), override(false),
   55|   125k|          action(faction){};

_ZN3pgp11SigMaterial6createE16pgp_pubkey_alg_t14pgp_hash_alg_t:
   35|   109k|{
   36|   109k|    switch (palg) {
   37|  32.8k|    case PGP_PKA_RSA:
  ------------------
  |  Branch (37:5): [True: 32.8k, False: 76.1k]
  ------------------
   38|  34.0k|    case PGP_PKA_RSA_SIGN_ONLY:
  ------------------
  |  Branch (38:5): [True: 1.19k, False: 107k]
  ------------------
   39|  34.0k|        return std::unique_ptr<SigMaterial>(new RSASigMaterial(halg));
   40|  2.15k|    case PGP_PKA_DSA:
  ------------------
  |  Branch (40:5): [True: 2.15k, False: 106k]
  ------------------
   41|  2.15k|        return std::unique_ptr<SigMaterial>(new DSASigMaterial(halg));
   42|  16.5k|    case PGP_PKA_EDDSA:
  ------------------
  |  Branch (42:5): [True: 16.5k, False: 92.5k]
  ------------------
   43|  54.9k|    case PGP_PKA_ECDSA:
  ------------------
  |  Branch (43:5): [True: 38.4k, False: 70.6k]
  ------------------
   44|  69.5k|    case PGP_PKA_SM2:
  ------------------
  |  Branch (44:5): [True: 14.5k, False: 94.4k]
  ------------------
   45|  70.8k|    case PGP_PKA_ECDH:
  ------------------
  |  Branch (45:5): [True: 1.29k, False: 107k]
  ------------------
   46|  70.8k|        return std::unique_ptr<SigMaterial>(new ECSigMaterial(halg));
   47|     33|    case PGP_PKA_ELGAMAL: /* we support reading it but will not validate */
  ------------------
  |  Branch (47:5): [True: 33, False: 109k]
  ------------------
   48|    452|    case PGP_PKA_ELGAMAL_ENCRYPT_OR_SIGN:
  ------------------
  |  Branch (48:5): [True: 419, False: 108k]
  ------------------
   49|    452|        return std::unique_ptr<SigMaterial>(new EGSigMaterial(halg));
   50|      0|#if defined(ENABLE_CRYPTO_REFRESH)
   51|    455|    case PGP_PKA_ED25519: {
  ------------------
  |  Branch (51:5): [True: 455, False: 108k]
  ------------------
   52|    455|        return std::unique_ptr<SigMaterial>(new Ed25519SigMaterial(halg));
   53|     33|    }
   54|     30|    case PGP_PKA_ED448: {
  ------------------
  |  Branch (54:5): [True: 30, False: 109k]
  ------------------
   55|     30|        return std::unique_ptr<SigMaterial>(new Ed448SigMaterial(halg));
   56|     33|    }
   57|      0|#endif
   58|      0|#if defined(ENABLE_PQC) && defined(ENABLE_CRYPTO_REFRESH)
   59|     37|    case PGP_PKA_DILITHIUM3_ED25519:
  ------------------
  |  Branch (59:5): [True: 37, False: 109k]
  ------------------
   60|     37|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|     37|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
   61|     75|    case PGP_PKA_DILITHIUM5_ED448:
  ------------------
  |  Branch (61:5): [True: 38, False: 109k]
  ------------------
   62|     75|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|     75|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
   63|    122|    case PGP_PKA_DILITHIUM3_P384:
  ------------------
  |  Branch (63:5): [True: 47, False: 108k]
  ------------------
   64|    122|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|    122|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
   65|    196|    case PGP_PKA_DILITHIUM5_P521:
  ------------------
  |  Branch (65:5): [True: 74, False: 108k]
  ------------------
   66|    196|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|    196|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
   67|    274|    case PGP_PKA_DILITHIUM3_BP384:
  ------------------
  |  Branch (67:5): [True: 78, False: 108k]
  ------------------
   68|    274|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|    274|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
   69|    288|    case PGP_PKA_DILITHIUM5_BP512:
  ------------------
  |  Branch (69:5): [True: 14, False: 109k]
  ------------------
   70|    288|        return std::unique_ptr<SigMaterial>(new DilithiumSigMaterial(palg, halg));
   71|    146|    case PGP_PKA_SPHINCSPLUS_SHAKE_128f:
  ------------------
  |  Branch (71:5): [True: 146, False: 108k]
  ------------------
   72|    146|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|    146|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
   73|    296|    case PGP_PKA_SPHINCSPLUS_SHAKE_128s:
  ------------------
  |  Branch (73:5): [True: 150, False: 108k]
  ------------------
   74|    296|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|    296|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
   75|    391|    case PGP_PKA_SPHINCSPLUS_SHAKE_256s:
  ------------------
  |  Branch (75:5): [True: 95, False: 108k]
  ------------------
   76|    391|        return std::unique_ptr<SigMaterial>(new SlhdsaSigMaterial(palg, halg));
   77|      0|#endif
   78|    385|    default:
  ------------------
  |  Branch (78:5): [True: 385, False: 108k]
  ------------------
   79|    385|        RNP_LOG("Unknown pk algorithm : %d", (int) palg);
  ------------------
  |  |   84|    385|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    385|    do {                                                                                 \
  |  |  |  |   77|    385|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 385, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    385|            break;                                                                       \
  |  |  |  |   79|    385|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   80|    385|        return nullptr;
   81|   109k|    }
   82|   109k|}
_ZN3pgp14RSASigMaterial5parseER17pgp_packet_body_t:
   86|  34.0k|{
   87|  34.0k|    return pkt.get(sig.s);
   88|  34.0k|}
_ZN3pgp14DSASigMaterial5parseER17pgp_packet_body_t:
   98|  2.15k|{
   99|  2.15k|    return pkt.get(sig.r) && pkt.get(sig.s);
  ------------------
  |  Branch (99:12): [True: 2.07k, False: 77]
  |  Branch (99:30): [True: 2.00k, False: 77]
  ------------------
  100|  2.15k|}
_ZN3pgp13EGSigMaterial5parseER17pgp_packet_body_t:
  111|    452|{
  112|    452|    return pkt.get(sig.r) && pkt.get(sig.s);
  ------------------
  |  Branch (112:12): [True: 430, False: 22]
  |  Branch (112:30): [True: 423, False: 7]
  ------------------
  113|    452|}
_ZN3pgp13ECSigMaterial5parseER17pgp_packet_body_t:
  125|  70.8k|{
  126|  70.8k|    return pkt.get(sig.r) && pkt.get(sig.s);
  ------------------
  |  Branch (126:12): [True: 70.6k, False: 234]
  |  Branch (126:30): [True: 70.1k, False: 482]
  ------------------
  127|  70.8k|}
_ZN3pgp18Ed25519SigMaterial5parseER17pgp_packet_body_t:
  139|    455|{
  140|    455|    auto ec_desc = pgp::ec::Curve::get(PGP_CURVE_25519);
  141|    455|    if (!pkt.get(sig.sig, 2 * ec_desc->bytes())) {
  ------------------
  |  Branch (141:9): [True: 70, False: 385]
  ------------------
  142|     70|        RNP_LOG("failed to parse ED25519 signature data");
  ------------------
  |  |   84|     70|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     70|    do {                                                                                 \
  |  |  |  |   77|     70|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 70, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     70|            break;                                                                       \
  |  |  |  |   79|     70|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  143|     70|        return false;
  144|     70|    }
  145|    385|    return true;
  146|    455|}
_ZN3pgp16Ed448SigMaterial5parseER17pgp_packet_body_t:
  156|     30|{
  157|     30|    auto ec_desc = pgp::ec::Curve::get(PGP_CURVE_448);
  158|     30|    if (!pkt.get(sig.sig, 2 * ec_desc->bytes())) {
  ------------------
  |  Branch (158:9): [True: 20, False: 10]
  ------------------
  159|     20|        RNP_LOG("failed to parse ED448 signature data");
  ------------------
  |  |   84|     20|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     20|    do {                                                                                 \
  |  |  |  |   77|     20|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 20, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     20|            break;                                                                       \
  |  |  |  |   79|     20|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  160|     20|        return false;
  161|     20|    }
  162|     10|    return true;
  163|     30|}
_ZN3pgp20DilithiumSigMaterial5parseER17pgp_packet_body_t:
  175|    288|{
  176|    288|    if (!pkt.get(sig.sig, pgp_dilithium_exdsa_signature_t::composite_signature_size(palg))) {
  ------------------
  |  Branch (176:9): [True: 285, False: 3]
  ------------------
  177|    285|        RNP_LOG("failed to get mldsa-ecdsa/eddsa signature");
  ------------------
  |  |   84|    285|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    285|    do {                                                                                 \
  |  |  |  |   77|    285|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 285, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    285|            break;                                                                       \
  |  |  |  |   79|    285|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  178|    285|        return false;
  179|    285|    }
  180|      3|    return true;
  181|    288|}
_ZN3pgp17SlhdsaSigMaterial5parseER17pgp_packet_body_t:
  191|    391|{
  192|    391|    auto sig_size = sphincsplus_signature_size(palg);
  193|    391|    if (!sig_size) {
  ------------------
  |  Branch (193:9): [True: 0, False: 391]
  ------------------
  194|      0|        RNP_LOG("invalid SLH-DSA algorithm value");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  195|      0|        return false;
  196|      0|    }
  197|    391|    if (!pkt.get(sig.sig, sig_size)) {
  ------------------
  |  Branch (197:9): [True: 190, False: 201]
  ------------------
  198|    190|        RNP_LOG("failed to parse SLH-DSA signature data");
  ------------------
  |  |   84|    190|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    190|    do {                                                                                 \
  |  |  |  |   77|    190|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 190, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    190|            break;                                                                       \
  |  |  |  |   79|    190|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  199|    190|        return false;
  200|    190|    }
  201|    201|    return true;
  202|    391|}

_ZN3pgp11SigMaterialC2E14pgp_hash_alg_t:
   40|   108k|    SigMaterial(pgp_hash_alg_t ahalg) : halg(ahalg){};
_ZN3pgp11SigMaterialD2Ev:
   41|   108k|    virtual ~SigMaterial(){};
_ZN3pgp14RSASigMaterialC2E14pgp_hash_alg_t:
   52|  34.0k|    RSASigMaterial(pgp_hash_alg_t ahalg) : SigMaterial(ahalg){};
_ZN3pgp14DSASigMaterialC2E14pgp_hash_alg_t:
   61|  2.15k|    DSASigMaterial(pgp_hash_alg_t ahalg) : SigMaterial(ahalg){};
_ZN3pgp13EGSigMaterialC2E14pgp_hash_alg_t:
   70|    452|    EGSigMaterial(pgp_hash_alg_t ahalg) : SigMaterial(ahalg){};
_ZN3pgp13ECSigMaterialC2E14pgp_hash_alg_t:
   79|  70.8k|    ECSigMaterial(pgp_hash_alg_t ahalg) : SigMaterial(ahalg){};
_ZN3pgp18Ed25519SigMaterialC2E14pgp_hash_alg_t:
   89|    455|    Ed25519SigMaterial(pgp_hash_alg_t ahalg) : SigMaterial(ahalg){};
_ZN3pgp16Ed448SigMaterialC2E14pgp_hash_alg_t:
   98|     30|    Ed448SigMaterial(pgp_hash_alg_t ahalg) : SigMaterial(ahalg){};
_ZN3pgp20DilithiumSigMaterialC2E16pgp_pubkey_alg_t14pgp_hash_alg_t:
  112|    288|        : SigMaterial(ahalg), palg(apalg){};
_ZN3pgp17SlhdsaSigMaterialC2E16pgp_pubkey_alg_t14pgp_hash_alg_t:
  123|    391|        : SigMaterial(ahalg), palg(apalg){};

_ZN3pgp3pkt6sigsub3RawC2Ehbb:
   43|  17.9k|    : hashed_(hashed), raw_type_(rawtype), critical_(critical), type_(Type::Unknown)
   44|  17.9k|{
   45|  17.9k|}
_ZN3pgp3pkt6sigsub3RawC2ENS1_4TypeEbb:
   48|   389k|    : hashed_(hashed), raw_type_(static_cast<uint8_t>(type)), critical_(critical), type_(type)
   49|   389k|{
   50|   389k|}
_ZN3pgp3pkt6sigsub3RawD2Ev:
   53|  2.84M|{
   54|  2.84M|}
_ZNK3pgp3pkt6sigsub3Raw10check_sizeEm:
   58|  20.0k|{
   59|  20.0k|    return true;
   60|  20.0k|};
_ZN3pgp3pkt6sigsub3Raw10parse_dataEPKhm:
   64|  17.9k|{
   65|  17.9k|    return true;
   66|  17.9k|};
_ZN3pgp3pkt6sigsub3Raw5parseEPKhmm:
   70|   407k|{
   71|   407k|    parse_depth_ = depth;
   72|   407k|    if (!check_size(size)) {
  ------------------
  |  Branch (72:9): [True: 5.81k, False: 401k]
  ------------------
   73|  5.81k|        RNP_LOG("wrong len %zu of subpacket type %" PRIu8, size, raw_type_);
  ------------------
  |  |   84|  5.81k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  5.81k|    do {                                                                                 \
  |  |  |  |   77|  5.81k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 5.81k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  5.81k|            break;                                                                       \
  |  |  |  |   79|  5.81k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   74|  5.81k|        return false;
   75|  5.81k|    }
   76|   401k|    if (!parse_data(data, size)) {
  ------------------
  |  Branch (76:9): [True: 762, False: 400k]
  ------------------
   77|    762|        return false;
   78|    762|    }
   79|   400k|    data_.assign(data, data + size);
   80|   400k|    return true;
   81|   401k|}
_ZN3pgp3pkt6sigsub3Raw6createEhbb:
  129|   407k|{
  130|   407k|    switch (type) {
  131|  56.9k|    case (uint8_t) Type::CreationTime:
  ------------------
  |  Branch (131:5): [True: 56.9k, False: 350k]
  ------------------
  132|  56.9k|        return RawPtr(new CreationTime(hashed, critical));
  133|    917|    case (uint8_t) Type::ExpirationTime:
  ------------------
  |  Branch (133:5): [True: 917, False: 406k]
  ------------------
  134|    917|        return RawPtr(new ExpirationTime(hashed, critical));
  135|    308|    case (uint8_t) Type::ExportableCert:
  ------------------
  |  Branch (135:5): [True: 308, False: 406k]
  ------------------
  136|    308|        return RawPtr(new ExportableCert(hashed, critical));
  137|  3.39k|    case (uint8_t) Type::Trust:
  ------------------
  |  Branch (137:5): [True: 3.39k, False: 403k]
  ------------------
  138|  3.39k|        return RawPtr(new Trust(hashed, critical));
  139|    761|    case (uint8_t) Type::RegExp:
  ------------------
  |  Branch (139:5): [True: 761, False: 406k]
  ------------------
  140|    761|        return RawPtr(new RegExp(hashed, critical));
  141|  11.5k|    case (uint8_t) Type::Revocable:
  ------------------
  |  Branch (141:5): [True: 11.5k, False: 395k]
  ------------------
  142|  11.5k|        return RawPtr(new Revocable(hashed, critical));
  143|  5.49k|    case (uint8_t) Type::KeyExpirationTime:
  ------------------
  |  Branch (143:5): [True: 5.49k, False: 401k]
  ------------------
  144|  5.49k|        return RawPtr(new KeyExpirationTime(hashed, critical));
  145|  29.2k|    case (uint8_t) Type::PreferredSymmetric:
  ------------------
  |  Branch (145:5): [True: 29.2k, False: 377k]
  ------------------
  146|  29.2k|        return RawPtr(new PreferredSymmetric(hashed, critical));
  147|  11.6k|    case (uint8_t) Type::RevocationKey:
  ------------------
  |  Branch (147:5): [True: 11.6k, False: 395k]
  ------------------
  148|  11.6k|        return RawPtr(new RevocationKey(hashed, critical));
  149|  53.6k|    case (uint8_t) Type::IssuerKeyID:
  ------------------
  |  Branch (149:5): [True: 53.6k, False: 353k]
  ------------------
  150|  53.6k|        return RawPtr(new IssuerKeyID(hashed, critical));
  151|    515|    case (uint8_t) Type::NotationData:
  ------------------
  |  Branch (151:5): [True: 515, False: 406k]
  ------------------
  152|    515|        return RawPtr(new NotationData(hashed, critical));
  153|  28.4k|    case (uint8_t) Type::PreferredHash:
  ------------------
  |  Branch (153:5): [True: 28.4k, False: 378k]
  ------------------
  154|  28.4k|        return RawPtr(new PreferredHash(hashed, critical));
  155|  28.3k|    case (uint8_t) Type::PreferredCompress:
  ------------------
  |  Branch (155:5): [True: 28.3k, False: 378k]
  ------------------
  156|  28.3k|        return RawPtr(new PreferredCompress(hashed, critical));
  157|  19.5k|    case (uint8_t) Type::KeyserverPrefs:
  ------------------
  |  Branch (157:5): [True: 19.5k, False: 387k]
  ------------------
  158|  19.5k|        return RawPtr(new KeyserverPrefs(hashed, critical));
  159|    674|    case (uint8_t) Type::PreferredKeyserver:
  ------------------
  |  Branch (159:5): [True: 674, False: 406k]
  ------------------
  160|    674|        return RawPtr(new PreferredKeyserver(hashed, critical));
  161|  4.27k|    case (uint8_t) Type::PrimaryUserID:
  ------------------
  |  Branch (161:5): [True: 4.27k, False: 402k]
  ------------------
  162|  4.27k|        return RawPtr(new PrimaryUserID(hashed, critical));
  163|    503|    case (uint8_t) Type::PolicyURI:
  ------------------
  |  Branch (163:5): [True: 503, False: 406k]
  ------------------
  164|    503|        return RawPtr(new PolicyURI(hashed, critical));
  165|  43.2k|    case (uint8_t) Type::KeyFlags:
  ------------------
  |  Branch (165:5): [True: 43.2k, False: 363k]
  ------------------
  166|  43.2k|        return RawPtr(new KeyFlags(hashed, critical));
  167|    165|    case (uint8_t) Type::SignersUserID:
  ------------------
  |  Branch (167:5): [True: 165, False: 406k]
  ------------------
  168|    165|        return RawPtr(new SignersUserID(hashed, critical));
  169|  1.02k|    case (uint8_t) Type::RevocationReason:
  ------------------
  |  Branch (169:5): [True: 1.02k, False: 406k]
  ------------------
  170|  1.02k|        return RawPtr(new RevocationReason(hashed, critical));
  171|  20.5k|    case (uint8_t) Type::Features:
  ------------------
  |  Branch (171:5): [True: 20.5k, False: 386k]
  ------------------
  172|  20.5k|        return RawPtr(new Features(hashed, critical));
  173|    459|    case (uint8_t) Type::EmbeddedSignature:
  ------------------
  |  Branch (173:5): [True: 459, False: 406k]
  ------------------
  174|    459|        return RawPtr(new EmbeddedSignature(hashed, critical));
  175|  50.4k|    case (uint8_t) Type::IssuerFingerprint:
  ------------------
  |  Branch (175:5): [True: 50.4k, False: 356k]
  ------------------
  176|  50.4k|        return RawPtr(new IssuerFingerprint(hashed, critical));
  177|  16.0k|    case (uint8_t) Type::PreferredAEAD:
  ------------------
  |  Branch (177:5): [True: 16.0k, False: 391k]
  ------------------
  178|  16.0k|        return RawPtr(new PreferredAEAD(hashed, critical));
  179|      0|#if defined(ENABLE_CRYPTO_REFRESH)
  180|    237|    case (uint8_t) Type::IntendedRecipientFingerprint:
  ------------------
  |  Branch (180:5): [True: 237, False: 406k]
  ------------------
  181|    237|        return RawPtr(new IntendedRecipientFingerprint(hashed, critical));
  182|    694|    case (uint8_t) Type::PreferredAEADv6:
  ------------------
  |  Branch (182:5): [True: 694, False: 406k]
  ------------------
  183|    694|        return RawPtr(new PreferredAEADv6(hashed, critical));
  184|      0|#endif
  185|  17.9k|    default:
  ------------------
  |  Branch (185:5): [True: 17.9k, False: 389k]
  ------------------
  186|  17.9k|        report_unknown(type, critical);
  187|  17.9k|        return RawPtr(new Raw(type, hashed, critical));
  188|   407k|    }
  189|   407k|}
_ZN3pgp3pkt6sigsub3Raw6createEPKhmbm:
  199|   407k|{
  200|   407k|    if (!size) {
  ------------------
  |  Branch (200:9): [True: 0, False: 407k]
  ------------------
  201|      0|        RNP_LOG("got subpacket with 0 length");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  202|      0|        return nullptr;
  203|      0|    }
  204|   407k|    bool    critical = data[0] & 0x80;
  205|   407k|    uint8_t type = data[0] & 0x7f;
  206|   407k|    auto    sub = create(type, hashed, critical);
  207|       |    /* Unknown subpacket (including the critical one) is kept as unparsed Raw subpacket,
  208|       |     * so the signature can still be loaded. Signature with the unknown critical subpacket
  209|       |     * is marked as invalid during the validation, see RFC 9580: 5.2.3.16. */
  210|   407k|    if (!sub || !sub->parse(data + 1, size - 1, depth)) {
  ------------------
  |  Branch (210:9): [True: 0, False: 407k]
  |  Branch (210:17): [True: 6.57k, False: 400k]
  ------------------
  211|  6.57k|        return nullptr;
  212|  6.57k|    }
  213|   400k|    return sub;
  214|   407k|}
_ZNK3pgp3pkt6sigsub3Raw5cloneEv:
  218|  71.2k|{
  219|  71.2k|    return RawPtr(new Raw(*this));
  220|  71.2k|}
_ZNK3pgp3pkt6sigsub4Time10check_sizeEm:
  232|  63.3k|{
  233|  63.3k|    return size == 4;
  234|  63.3k|}
_ZN3pgp3pkt6sigsub4Time10parse_dataEPKhm:
  238|  60.1k|{
  239|  60.1k|    time_ = read_uint32(data);
  240|  60.1k|    return true;
  241|  60.1k|}
_ZNK3pgp3pkt6sigsub12CreationTime5cloneEv:
  246|   357k|{
  247|   357k|    return RawPtr(new CreationTime(*this));
  248|   357k|}
_ZNK3pgp3pkt6sigsub14ExpirationTime5cloneEv:
  253|  2.96k|{
  254|  2.96k|    return RawPtr(new ExpirationTime(*this));
  255|  2.96k|}
_ZNK3pgp3pkt6sigsub17KeyExpirationTime5cloneEv:
  260|  31.4k|{
  261|  31.4k|    return RawPtr(new KeyExpirationTime(*this));
  262|  31.4k|}
_ZNK3pgp3pkt6sigsub4Bool10check_sizeEm:
  274|  16.1k|{
  275|  16.1k|    return size == 1;
  276|  16.1k|}
_ZN3pgp3pkt6sigsub4Bool10parse_dataEPKhm:
  280|  15.1k|{
  281|  15.1k|    value_ = data[0];
  282|  15.1k|    return true;
  283|  15.1k|}
_ZNK3pgp3pkt6sigsub14ExportableCert5cloneEv:
  288|    168|{
  289|    168|    return RawPtr(new ExportableCert(*this));
  290|    168|}
_ZNK3pgp3pkt6sigsub5Trust10check_sizeEm:
  303|  3.39k|{
  304|  3.39k|    return size == 2;
  305|  3.39k|}
_ZN3pgp3pkt6sigsub5Trust10parse_dataEPKhm:
  309|  3.14k|{
  310|  3.14k|    level_ = data[0];
  311|  3.14k|    amount_ = data[1];
  312|  3.14k|    return true;
  313|  3.14k|}
_ZNK3pgp3pkt6sigsub5Trust5cloneEv:
  317|  24.1k|{
  318|  24.1k|    return RawPtr(new Trust(*this));
  319|  24.1k|}
_ZN3pgp3pkt6sigsub6String10parse_dataEPKhm:
  330|  2.10k|{
  331|  2.10k|    value_.assign(data, data + size);
  332|  2.10k|    return true;
  333|  2.10k|}
_ZNK3pgp3pkt6sigsub6RegExp5cloneEv:
  338|  1.28k|{
  339|  1.28k|    return RawPtr(new RegExp(*this));
  340|  1.28k|}
_ZNK3pgp3pkt6sigsub9Revocable5cloneEv:
  345|  72.6k|{
  346|  72.6k|    return RawPtr(new Revocable(*this));
  347|  72.6k|}
_ZNK3pgp3pkt6sigsub9Preferred10check_sizeEm:
  358|   102k|{
  359|       |    /* No reason to have more then 256 bytes */
  360|   102k|    return size < 256;
  361|   102k|}
_ZN3pgp3pkt6sigsub9Preferred10parse_dataEPKhm:
  365|   102k|{
  366|   102k|    algs_.assign(data, data + size);
  367|   102k|    return true;
  368|   102k|}
_ZNK3pgp3pkt6sigsub18PreferredSymmetric5cloneEv:
  373|   169k|{
  374|   169k|    return RawPtr(new PreferredSymmetric(*this));
  375|   169k|}
_ZNK3pgp3pkt6sigsub13PreferredHash5cloneEv:
  380|   164k|{
  381|   164k|    return RawPtr(new PreferredHash(*this));
  382|   164k|}
_ZNK3pgp3pkt6sigsub17PreferredCompress5cloneEv:
  387|   172k|{
  388|   172k|    return RawPtr(new PreferredCompress(*this));
  389|   172k|}
_ZNK3pgp3pkt6sigsub13PreferredAEAD5cloneEv:
  394|  83.8k|{
  395|  83.8k|    return RawPtr(new PreferredAEAD(*this));
  396|  83.8k|}
_ZNK3pgp3pkt6sigsub15PreferredAEADv610check_sizeEm:
  402|    694|{
  403|    694|    if (size % 2) {
  ------------------
  |  Branch (403:9): [True: 85, False: 609]
  ------------------
  404|     85|        RNP_LOG("v6 AEAD Ciphersuite Preferences must contain an even number of bytes");
  ------------------
  |  |   84|     85|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     85|    do {                                                                                 \
  |  |  |  |   77|     85|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 85, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     85|            break;                                                                       \
  |  |  |  |   79|     85|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  405|     85|        return false;
  406|     85|    }
  407|    609|    return Preferred::check_size(size);
  408|    694|}
_ZNK3pgp3pkt6sigsub15PreferredAEADv65cloneEv:
  412|  2.51k|{
  413|  2.51k|    return RawPtr(new PreferredAEADv6(*this));
  414|  2.51k|}
_ZNK3pgp3pkt6sigsub13RevocationKey10check_sizeEm:
  429|  11.6k|{
  430|  11.6k|    return (size == 2 + PGP_FINGERPRINT_V4_SIZE) || (size == 2 + PGP_FINGERPRINT_V5_SIZE);
  ------------------
  |  |   43|  11.6k|#define PGP_FINGERPRINT_V4_SIZE 20
  ------------------
                  return (size == 2 + PGP_FINGERPRINT_V4_SIZE) || (size == 2 + PGP_FINGERPRINT_V5_SIZE);
  ------------------
  |  |   44|    537|#define PGP_FINGERPRINT_V5_SIZE 32
  ------------------
  |  Branch (430:12): [True: 11.1k, False: 537]
  |  Branch (430:53): [True: 8, False: 529]
  ------------------
  431|  11.6k|}
_ZN3pgp3pkt6sigsub13RevocationKey10parse_dataEPKhm:
  435|  11.1k|{
  436|  11.1k|    rev_class_ = data[0];
  437|  11.1k|    alg_ = static_cast<pgp_pubkey_alg_t>(data[1]);
  438|  11.1k|    fp_ = pgp::Fingerprint(data + 2, size - 2);
  439|  11.1k|    return true;
  440|  11.1k|}
_ZNK3pgp3pkt6sigsub13RevocationKey5cloneEv:
  444|  71.7k|{
  445|  71.7k|    return RawPtr(new RevocationKey(*this));
  446|  71.7k|}
_ZNK3pgp3pkt6sigsub11IssuerKeyID10check_sizeEm:
  457|  53.6k|{
  458|  53.6k|    return size == PGP_KEY_ID_SIZE;
  ------------------
  |  |   39|  53.6k|#define PGP_KEY_ID_SIZE 8
  ------------------
  459|  53.6k|}
_ZN3pgp3pkt6sigsub11IssuerKeyID10parse_dataEPKhm:
  463|  53.4k|{
  464|  53.4k|    memcpy(keyid_.data(), data, keyid_.size());
  465|  53.4k|    return true;
  466|  53.4k|}
_ZNK3pgp3pkt6sigsub11IssuerKeyID5cloneEv:
  470|   357k|{
  471|   357k|    return RawPtr(new IssuerKeyID(*this));
  472|   357k|}
_ZNK3pgp3pkt6sigsub12NotationData10check_sizeEm:
  492|    515|{
  493|    515|    return size >= 8;
  494|    515|}
_ZN3pgp3pkt6sigsub12NotationData10parse_dataEPKhm:
  498|    480|{
  499|    480|    size_t nlen = read_uint16(data + 4);
  500|    480|    size_t vlen = read_uint16(data + 6);
  501|    480|    if (size != nlen + vlen + 8) {
  ------------------
  |  Branch (501:9): [True: 422, False: 58]
  ------------------
  502|    422|        return false;
  503|    422|    }
  504|     58|    memcpy(flags_.data(), data, 4);
  505|     58|    name_.assign(data + 8, data + 8 + nlen);
  506|     58|    value_.assign(data + 8 + nlen, data + 8 + nlen + vlen);
  507|     58|    return true;
  508|    480|}
_ZNK3pgp3pkt6sigsub12NotationData5cloneEv:
  542|    143|{
  543|    143|    return RawPtr(new NotationData(*this));
  544|    143|}
_ZNK3pgp3pkt6sigsub5Flags10check_sizeEm:
  556|  83.3k|{
  557|  83.3k|    return size >= 1;
  558|  83.3k|}
_ZN3pgp3pkt6sigsub5Flags10parse_dataEPKhm:
  562|  83.2k|{
  563|  83.2k|    flags_ = data[0];
  564|  83.2k|    return true;
  565|  83.2k|}
_ZNK3pgp3pkt6sigsub14KeyserverPrefs5cloneEv:
  570|   117k|{
  571|   117k|    return RawPtr(new KeyserverPrefs(*this));
  572|   117k|}
_ZNK3pgp3pkt6sigsub18PreferredKeyserver5cloneEv:
  577|  3.40k|{
  578|  3.40k|    return RawPtr(new PreferredKeyserver(*this));
  579|  3.40k|}
_ZNK3pgp3pkt6sigsub13PrimaryUserID5cloneEv:
  584|  17.3k|{
  585|  17.3k|    return RawPtr(new PrimaryUserID(*this));
  586|  17.3k|}
_ZNK3pgp3pkt6sigsub9PolicyURI5cloneEv:
  591|  2.76k|{
  592|  2.76k|    return RawPtr(new PolicyURI(*this));
  593|  2.76k|}
_ZNK3pgp3pkt6sigsub8KeyFlags5cloneEv:
  598|   269k|{
  599|   269k|    return RawPtr(new KeyFlags(*this));
  600|   269k|}
_ZNK3pgp3pkt6sigsub13SignersUserID5cloneEv:
  605|    401|{
  606|    401|    return RawPtr(new SignersUserID(*this));
  607|    401|}
_ZNK3pgp3pkt6sigsub16RevocationReason10check_sizeEm:
  620|  1.02k|{
  621|  1.02k|    return size >= 1;
  622|  1.02k|}
_ZN3pgp3pkt6sigsub16RevocationReason10parse_dataEPKhm:
  626|    942|{
  627|    942|    code_ = static_cast<pgp_revocation_type_t>(data[0]);
  628|    942|    reason_.assign(data + 1, data + size);
  629|    942|    return true;
  630|    942|}
_ZNK3pgp3pkt6sigsub16RevocationReason5cloneEv:
  634|  4.06k|{
  635|  4.06k|    return RawPtr(new RevocationReason(*this));
  636|  4.06k|}
_ZNK3pgp3pkt6sigsub8Features5cloneEv:
  641|   119k|{
  642|   119k|    return RawPtr(new Features(*this));
  643|   119k|}
_ZN3pgp3pkt6sigsub17EmbeddedSignatureC2ERKS2_:
  646|     91|EmbeddedSignature::EmbeddedSignature(const EmbeddedSignature &src) : Raw(src)
  647|     91|{
  648|     91|    signature_ = std::unique_ptr<Signature>(new Signature(*src.signature_));
  649|     91|}
_ZN3pgp3pkt6sigsub17EmbeddedSignatureC2Ebb:
  652|    459|    : Raw(Type::EmbeddedSignature, hashed, critical)
  653|    459|{
  654|    459|}
_ZNK3pgp3pkt6sigsub17EmbeddedSignature10check_sizeEm:
  671|    459|{
  672|    459|    return size > 6;
  673|    459|}
_ZN3pgp3pkt6sigsub17EmbeddedSignature10parse_dataEPKhm:
  677|    368|{
  678|    368|    if (parse_depth_ >= MAX_EMBEDDED_SIGNATURE_DEPTH) {
  ------------------
  |  Branch (678:9): [True: 0, False: 368]
  ------------------
  679|      0|        RNP_LOG("embedded signature nesting is too deep: %zu", parse_depth_);
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  680|      0|        return false;
  681|      0|    }
  682|    368|    pgp_packet_body_t pkt(data, size);
  683|    368|    Signature         sig;
  684|    368|    if (sig.parse(pkt, parse_depth_ + 1)) {
  ------------------
  |  Branch (684:9): [True: 340, False: 28]
  ------------------
  685|    340|        return false;
  686|    340|    }
  687|     28|    signature_ = std::unique_ptr<Signature>(new Signature(std::move(sig)));
  688|     28|    return true;
  689|    368|}
_ZNK3pgp3pkt6sigsub17EmbeddedSignature5cloneEv:
  712|     91|{
  713|     91|    return RawPtr(new EmbeddedSignature(*this));
  714|     91|}
_ZNK3pgp3pkt6sigsub17IssuerFingerprint10check_sizeEm:
  727|  50.4k|{
  728|  50.4k|    return (size >= 21) && (size <= PGP_MAX_FINGERPRINT_SIZE + 1);
  ------------------
  |  |   45|  50.3k|#define PGP_MAX_FINGERPRINT_SIZE 32
  ------------------
  |  Branch (728:12): [True: 50.3k, False: 46]
  |  Branch (728:28): [True: 50.3k, False: 77]
  ------------------
  729|  50.4k|}
_ZN3pgp3pkt6sigsub17IssuerFingerprint10parse_dataEPKhm:
  733|  50.3k|{
  734|  50.3k|    version_ = data[0];
  735|  50.3k|    fp_ = pgp::Fingerprint(data + 1, size - 1);
  736|  50.3k|    return true;
  737|  50.3k|}
_ZNK3pgp3pkt6sigsub17IssuerFingerprint5cloneEv:
  741|   319k|{
  742|   319k|    return RawPtr(new IssuerFingerprint(*this));
  743|   319k|}
_ZNK3pgp3pkt6sigsub28IntendedRecipientFingerprint10check_sizeEm:
  757|    237|{
  758|    237|    return (size >= 21) && (size <= PGP_MAX_FINGERPRINT_SIZE + 1);
  ------------------
  |  |   45|    217|#define PGP_MAX_FINGERPRINT_SIZE 32
  ------------------
  |  Branch (758:12): [True: 217, False: 20]
  |  Branch (758:28): [True: 207, False: 10]
  ------------------
  759|    237|}
_ZN3pgp3pkt6sigsub28IntendedRecipientFingerprint10parse_dataEPKhm:
  763|    207|{
  764|    207|    version_ = data[0];
  765|    207|    fp_ = pgp::Fingerprint(data + 1, size - 1);
  766|    207|    return true;
  767|    207|}
_ZNK3pgp3pkt6sigsub28IntendedRecipientFingerprint5cloneEv:
  771|    993|{
  772|    993|    return RawPtr(new IntendedRecipientFingerprint(*this));
  773|    993|}
_ZN3pgp3pkt6sigsub4ListC2ERKS2_:
  777|   535k|{
  778|   535k|    items.reserve(src.items.size());
  779|  2.43M|    for (auto &item : src.items) {
  ------------------
  |  Branch (779:21): [True: 2.43M, False: 535k]
  ------------------
  780|  2.43M|        items.push_back(item->clone());
  781|  2.43M|    }
  782|   535k|}
_ZN3pgp3pkt6sigsub4ListaSERKS2_:
  786|    882|{
  787|    882|    if (&src == this) {
  ------------------
  |  Branch (787:9): [True: 0, False: 882]
  ------------------
  788|      0|        return *this;
  789|      0|    }
  790|    882|    items.clear();
  791|    882|    items.reserve(src.items.size());
  792|  1.19k|    for (auto &item : src.items) {
  ------------------
  |  Branch (792:21): [True: 1.19k, False: 882]
  ------------------
  793|  1.19k|        items.push_back(item->clone());
  794|  1.19k|    }
  795|    882|    return *this;
  796|    882|}
sig_subpacket.cpp:_ZN3pgp3pkt6sigsubL14report_unknownEhb:
   94|  17.9k|{
   95|  17.9k|    switch (type) {
   96|    541|    case (uint8_t) Type::Private_100:
  ------------------
  |  Branch (96:5): [True: 541, False: 17.3k]
  ------------------
   97|    646|    case (uint8_t) Type::Private_101:
  ------------------
  |  Branch (97:5): [True: 105, False: 17.7k]
  ------------------
   98|    792|    case (uint8_t) Type::Private_102:
  ------------------
  |  Branch (98:5): [True: 146, False: 17.7k]
  ------------------
   99|    914|    case (uint8_t) Type::Private_103:
  ------------------
  |  Branch (99:5): [True: 122, False: 17.7k]
  ------------------
  100|  1.02k|    case (uint8_t) Type::Private_104:
  ------------------
  |  Branch (100:5): [True: 113, False: 17.7k]
  ------------------
  101|  1.14k|    case (uint8_t) Type::Private_105:
  ------------------
  |  Branch (101:5): [True: 122, False: 17.7k]
  ------------------
  102|  1.25k|    case (uint8_t) Type::Private_106:
  ------------------
  |  Branch (102:5): [True: 110, False: 17.7k]
  ------------------
  103|  1.51k|    case (uint8_t) Type::Private_107:
  ------------------
  |  Branch (103:5): [True: 253, False: 17.6k]
  ------------------
  104|  1.60k|    case (uint8_t) Type::Private_108:
  ------------------
  |  Branch (104:5): [True: 90, False: 17.8k]
  ------------------
  105|  1.88k|    case (uint8_t) Type::Private_109:
  ------------------
  |  Branch (105:5): [True: 282, False: 17.6k]
  ------------------
  106|  1.99k|    case (uint8_t) Type::Private_110:
  ------------------
  |  Branch (106:5): [True: 112, False: 17.7k]
  ------------------
  107|  1.99k|        if (critical) {
  ------------------
  |  Branch (107:13): [True: 493, False: 1.50k]
  ------------------
  108|    493|            RNP_LOG("unknown critical private subpacket %" PRIu8, type);
  ------------------
  |  |   84|    493|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    493|    do {                                                                                 \
  |  |  |  |   77|    493|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 493, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    493|            break;                                                                       \
  |  |  |  |   79|    493|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  109|    493|        }
  110|  1.99k|        return;
  111|  4.40k|    case (uint8_t) Type::Reserved_1:
  ------------------
  |  Branch (111:5): [True: 4.40k, False: 13.4k]
  ------------------
  112|  4.81k|    case (uint8_t) Type::Reserved_8:
  ------------------
  |  Branch (112:5): [True: 408, False: 17.4k]
  ------------------
  113|  5.14k|    case (uint8_t) Type::Placeholder:
  ------------------
  |  Branch (113:5): [True: 330, False: 17.5k]
  ------------------
  114|  5.42k|    case (uint8_t) Type::Reserved_13:
  ------------------
  |  Branch (114:5): [True: 284, False: 17.6k]
  ------------------
  115|  5.64k|    case (uint8_t) Type::Reserved_14:
  ------------------
  |  Branch (115:5): [True: 213, False: 17.6k]
  ------------------
  116|  5.78k|    case (uint8_t) Type::Reserved_15:
  ------------------
  |  Branch (116:5): [True: 146, False: 17.7k]
  ------------------
  117|  6.20k|    case (uint8_t) Type::Reserved_17:
  ------------------
  |  Branch (117:5): [True: 415, False: 17.4k]
  ------------------
  118|  6.51k|    case (uint8_t) Type::Reserved_18:
  ------------------
  |  Branch (118:5): [True: 310, False: 17.5k]
  ------------------
  119|  6.67k|    case (uint8_t) Type::Reserved_19:
  ------------------
  |  Branch (119:5): [True: 162, False: 17.7k]
  ------------------
  120|       |        /* do not report reserved/placeholder subpacket */
  121|  6.67k|        return;
  122|  9.23k|    default:
  ------------------
  |  Branch (122:5): [True: 9.23k, False: 8.67k]
  ------------------
  123|  9.23k|        RNP_LOG("unknown subpacket : %" PRIu8, type);
  ------------------
  |  |   84|  9.23k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  9.23k|    do {                                                                                 \
  |  |  |  |   77|  9.23k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 9.23k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  9.23k|            break;                                                                       \
  |  |  |  |   79|  9.23k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  124|  17.9k|    }
  125|  17.9k|}

_ZNK3pgp3pkt6sigsub3Raw8raw_typeEv:
  130|  6.48M|    {
  131|  6.48M|        return raw_type_;
  132|  6.48M|    }
_ZNK3pgp3pkt6sigsub3Raw4dataEv:
  136|   167k|    {
  137|   167k|        return data_;
  138|   167k|    }
_ZNK3pgp3pkt6sigsub3Raw4typeEv:
  142|   110k|    {
  143|   110k|        return type_;
  144|   110k|    }
_ZNK3pgp3pkt6sigsub3Raw8criticalEv:
  148|   172k|    {
  149|   172k|        return critical_;
  150|   172k|    }
_ZNK3pgp3pkt6sigsub3Raw6hashedEv:
  160|  2.02M|    {
  161|  2.02M|        return hashed_;
  162|  2.02M|    }
_ZN3pgp3pkt6sigsub4TimeC2ENS1_4TypeEbb:
  188|  63.3k|    Time(Type type, bool hashed, bool critical) : Raw(type, hashed, critical), time_(0)
  189|  63.3k|    {
  190|  63.3k|    }
_ZNK3pgp3pkt6sigsub4Time4timeEv:
  194|   148k|    {
  195|   148k|        return time_;
  196|   148k|    }
_ZN3pgp3pkt6sigsub12CreationTimeC2Ebb:
  212|  56.9k|        : Time(Type::CreationTime, hashed, critical)
  213|  56.9k|    {
  214|  56.9k|    }
_ZN3pgp3pkt6sigsub14ExpirationTimeC2Ebb:
  223|    917|        : Time(Type::ExpirationTime, hashed, critical)
  224|    917|    {
  225|    917|    }
_ZN3pgp3pkt6sigsub17KeyExpirationTimeC2Ebb:
  234|  5.49k|        : Time(Type::KeyExpirationTime, hashed, critical)
  235|  5.49k|    {
  236|  5.49k|    }
_ZN3pgp3pkt6sigsub4BoolC2ENS1_4TypeEbb:
  251|  16.1k|    Bool(Type type, bool hashed, bool critical) : Raw(type, hashed, critical), value_(false)
  252|  16.1k|    {
  253|  16.1k|    }
_ZN3pgp3pkt6sigsub14ExportableCertC2Ebb:
  262|    308|        : Bool(Type::ExportableCert, hashed, critical)
  263|    308|    {
  264|    308|        value_ = true;
  265|    308|    }
_ZN3pgp3pkt6sigsub5TrustC2Ebb:
  296|  3.39k|        : Raw(Type::Trust, hashed, critical), level_(0), amount_(0)
  297|  3.39k|    {
  298|  3.39k|    }
_ZN3pgp3pkt6sigsub6StringC2ENS1_4TypeEbb:
  339|  2.10k|    String(Type type, bool hashed, bool critical) : Raw(type, hashed, critical)
  340|  2.10k|    {
  341|  2.10k|    }
_ZN3pgp3pkt6sigsub6RegExpC2Ebb:
  349|    761|    RegExp(bool hashed = true, bool critical = false) : String(Type::RegExp, hashed, critical)
  350|    761|    {
  351|    761|    }
_ZN3pgp3pkt6sigsub9RevocableC2Ebb:
  366|  11.5k|        : Bool(Type::Revocable, hashed, critical)
  367|  11.5k|    {
  368|  11.5k|        value_ = true;
  369|  11.5k|    }
_ZN3pgp3pkt6sigsub9PreferredC2ENS1_4TypeEbb:
  398|   102k|    Preferred(Type type, bool hashed, bool critical) : Raw(type, hashed, critical){};
_ZN3pgp3pkt6sigsub18PreferredSymmetricC2Ebb:
  420|  29.2k|        : Preferred(Type::PreferredSymmetric, hashed, critical){};
_ZN3pgp3pkt6sigsub13PreferredHashC2Ebb:
  429|  28.4k|        : Preferred(Type::PreferredHash, hashed, critical){};
_ZN3pgp3pkt6sigsub17PreferredCompressC2Ebb:
  438|  28.3k|        : Preferred(Type::PreferredCompress, hashed, critical){};
_ZN3pgp3pkt6sigsub13PreferredAEADC2Ebb:
  447|  16.0k|        : Preferred(Type::PreferredAEAD, hashed, critical){};
_ZN3pgp3pkt6sigsub15PreferredAEADv6C2Ebb:
  460|    694|        : Preferred(Type::PreferredAEADv6, hashed, critical){};
_ZN3pgp3pkt6sigsub13RevocationKeyC2Ebb:
  480|  11.6k|        : Raw(Type::RevocationKey, hashed, critical), rev_class_(0),
  481|  11.6k|          alg_(PGP_PKA_NOTHING), fp_{} {};
_ZNK3pgp3pkt6sigsub13RevocationKey2fpEv:
  511|  28.1k|    {
  512|  28.1k|        return fp_;
  513|  28.1k|    }
_ZN3pgp3pkt6sigsub11IssuerKeyIDC2Ebb:
  537|  53.6k|        : Raw(Type::IssuerKeyID, hashed, critical)
  538|  53.6k|    {
  539|  53.6k|    }
_ZNK3pgp3pkt6sigsub11IssuerKeyID5keyidEv:
  543|  20.0k|    {
  544|  20.0k|        return keyid_;
  545|  20.0k|    }
_ZN3pgp3pkt6sigsub12NotationDataC2Ebb:
  572|    515|        : Raw(Type::NotationData, hashed, critical)
  573|    515|    {
  574|    515|    }
_ZN3pgp3pkt6sigsub5FlagsC2ENS1_4TypeEbb:
  614|  83.3k|        : Raw(type, hashed, critical), flags_(0)
  615|  83.3k|    {
  616|  83.3k|    }
_ZN3pgp3pkt6sigsub14KeyserverPrefsC2Ebb:
  625|  19.5k|        : Flags(Type::KeyserverPrefs, hashed, critical)
  626|  19.5k|    {
  627|  19.5k|    }
_ZN3pgp3pkt6sigsub18PreferredKeyserverC2Ebb:
  662|    674|        : String(Type::PreferredKeyserver, hashed, critical)
  663|    674|    {
  664|    674|    }
_ZN3pgp3pkt6sigsub13PrimaryUserIDC2Ebb:
  686|  4.27k|        : Bool(Type::PrimaryUserID, hashed, critical)
  687|  4.27k|    {
  688|  4.27k|    }
_ZNK3pgp3pkt6sigsub13PrimaryUserID7primaryEv:
  692|  5.42k|    {
  693|  5.42k|        return value_;
  694|  5.42k|    }
_ZN3pgp3pkt6sigsub9PolicyURIC2Ebb:
  710|    503|        : String(Type::PolicyURI, hashed, critical)
  711|    503|    {
  712|    503|    }
_ZN3pgp3pkt6sigsub8KeyFlagsC2Ebb:
  727|  43.2k|        : Flags(Type::KeyFlags, hashed, critical)
  728|  43.2k|    {
  729|  43.2k|    }
_ZNK3pgp3pkt6sigsub8KeyFlags5flagsEv:
  733|  41.3k|    {
  734|  41.3k|        return flags_;
  735|  41.3k|    }
_ZN3pgp3pkt6sigsub13SignersUserIDC2Ebb:
  751|    165|        : String(Type::SignersUserID, hashed, critical)
  752|    165|    {
  753|    165|    }
_ZN3pgp3pkt6sigsub16RevocationReasonC2Ebb:
  784|  1.02k|        : Raw(Type::RevocationReason, hashed, critical), code_(PGP_REVOCATION_NO_REASON)
  785|  1.02k|    {
  786|  1.02k|    }
_ZNK3pgp3pkt6sigsub16RevocationReason4codeEv:
  790|  1.07k|    {
  791|  1.07k|        return code_;
  792|  1.07k|    }
_ZNK3pgp3pkt6sigsub16RevocationReason6reasonEv:
  803|  1.07k|    {
  804|  1.07k|        return reason_;
  805|  1.07k|    }
_ZN3pgp3pkt6sigsub8FeaturesC2Ebb:
  821|  20.5k|        : Flags(Type::Features, hashed, critical)
  822|  20.5k|    {
  823|  20.5k|    }
_ZN3pgp3pkt6sigsub17IssuerFingerprintC2Ebb:
  877|  50.4k|        : Raw(Type::IssuerFingerprint, hashed, critical), version_(0), fp_{}
  878|  50.4k|    {
  879|  50.4k|    }
_ZNK3pgp3pkt6sigsub17IssuerFingerprint7versionEv:
  883|   358k|    {
  884|   358k|        return version_;
  885|   358k|    }
_ZNK3pgp3pkt6sigsub17IssuerFingerprint2fpEv:
  896|   724k|    {
  897|   724k|        return fp_;
  898|   724k|    }
_ZN3pgp3pkt6sigsub28IntendedRecipientFingerprintC2Ebb:
  924|    237|        : Raw(Type::IntendedRecipientFingerprint, hashed, critical), version_(0), fp_{}
  925|    237|    {
  926|    237|    }
_ZN3pgp3pkt6sigsub4ListC2Ev:
  963|   600k|    {
  964|   600k|    }
_ZN3pgp3pkt6sigsub4List5beginEv:
  970|  23.6k|    {
  971|  23.6k|        return items.begin();
  972|  23.6k|    }
_ZN3pgp3pkt6sigsub4List3endEv:
  976|  23.6k|    {
  977|  23.6k|        return items.end();
  978|  23.6k|    }
_ZNK3pgp3pkt6sigsub4List5beginEv:
  982|  72.7k|    {
  983|  72.7k|        return items.begin();
  984|  72.7k|    }
_ZNK3pgp3pkt6sigsub4List3endEv:
  988|  72.7k|    {
  989|  72.7k|        return items.end();
  990|  72.7k|    }
_ZNK3pgp3pkt6sigsub4List4sizeEv:
  994|  7.13M|    {
  995|  7.13M|        return items.size();
  996|  7.13M|    }
_ZN3pgp3pkt6sigsub4ListixEm:
 1000|  5.42k|    {
 1001|  5.42k|        return items[idx];
 1002|  5.42k|    }
_ZNK3pgp3pkt6sigsub4ListixEm:
 1006|  9.16M|    {
 1007|  9.16M|        return items[idx];
 1008|  9.16M|    }

_ZN3rnp9SignatureC2ERKN3pgp3pkt9SignatureE:
   32|  81.1k|    : sig(sigpkt), sigid(sig.get_id()), raw(sigpkt)
   33|  81.1k|{
   34|  81.1k|}
_ZNK3rnp9Signature7is_certEv:
   38|   203k|{
   39|   203k|    switch (sig.type()) {
   40|    618|    case PGP_CERT_CASUAL:
  ------------------
  |  Branch (40:5): [True: 618, False: 202k]
  ------------------
   41|  8.12k|    case PGP_CERT_GENERIC:
  ------------------
  |  Branch (41:5): [True: 7.51k, False: 195k]
  ------------------
   42|  8.26k|    case PGP_CERT_PERSONA:
  ------------------
  |  Branch (42:5): [True: 132, False: 202k]
  ------------------
   43|   125k|    case PGP_CERT_POSITIVE:
  ------------------
  |  Branch (43:5): [True: 116k, False: 86.1k]
  ------------------
   44|   125k|        return true;
   45|  77.9k|    default:
  ------------------
  |  Branch (45:5): [True: 77.9k, False: 125k]
  ------------------
   46|  77.9k|        return false;
   47|   203k|    }
   48|   203k|}
_ZNK3rnp9Signature13is_revocationEv:
   52|  24.9k|{
   53|  24.9k|    switch (sig.type()) {
   54|  1.02k|    case PGP_SIG_REV_KEY:
  ------------------
  |  Branch (54:5): [True: 1.02k, False: 23.9k]
  ------------------
   55|  1.05k|    case PGP_SIG_REV_SUBKEY:
  ------------------
  |  Branch (55:5): [True: 22, False: 24.9k]
  ------------------
   56|  1.29k|    case PGP_SIG_REV_CERT:
  ------------------
  |  Branch (56:5): [True: 243, False: 24.7k]
  ------------------
   57|  1.29k|        return true;
   58|  23.6k|    default:
  ------------------
  |  Branch (58:5): [True: 23.6k, False: 1.29k]
  ------------------
   59|  23.6k|        return false;
   60|  24.9k|    }
   61|  24.9k|}
_ZNK3rnp9Signature7expiredEm:
   65|  23.8k|{
   66|       |    /* sig expiration: absence of subpkt or 0 means it never expires */
   67|  23.8k|    uint64_t expiration = sig.expiration();
   68|  23.8k|    if (!expiration) {
  ------------------
  |  Branch (68:9): [True: 23.8k, False: 0]
  ------------------
   69|  23.8k|        return false;
   70|  23.8k|    }
   71|      0|    return expiration + sig.creation() < at;
   72|  23.8k|}
_ZN3rnp10RevocationC2ERNS_9SignatureE:
   83|  1.07k|Revocation::Revocation(Signature &sig) : uid(sig.uid), sigid(sig.sigid)
   84|  1.07k|{
   85|  1.07k|    if (!sig.sig.has_subpkt(PGP_SIG_SUBPKT_REVOCATION_REASON)) {
  ------------------
  |  Branch (85:9): [True: 0, False: 1.07k]
  ------------------
   86|      0|        RNP_LOG("Warning: no revocation reason in the revocation");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   87|      0|        code = PGP_REVOCATION_NO_REASON;
   88|  1.07k|    } else {
   89|  1.07k|        code = sig.sig.revocation_code();
   90|  1.07k|        reason = sig.sig.revocation_reason();
   91|  1.07k|    }
   92|  1.07k|    if (reason.empty()) {
  ------------------
  |  Branch (92:9): [True: 0, False: 1.07k]
  ------------------
   93|      0|        reason = id_str_pair::lookup(revocation_code_map, code);
   94|      0|    }
   95|  1.07k|}

_ZN3rnp11SigValidityC2Ev:
   41|   319k|    SigValidity() : validated_(false){};
_ZNK3rnp11SigValidity6errorsEv:
   45|  23.6k|    {
   46|  23.6k|        return errors_;
   47|  23.6k|    }
_ZN3rnp11SigValidity9add_errorEi:
   51|   235k|    {
   52|   235k|        errors_.push_back(err);
   53|   235k|    }
_ZNK3rnp11SigValidity5validEv:
   58|  4.41M|    {
   59|  4.41M|        return validated_ && errors_.empty();
  ------------------
  |  Branch (59:16): [True: 3.45M, False: 959k]
  |  Branch (59:30): [True: 406k, False: 3.04M]
  ------------------
   60|  4.41M|    }
_ZNK3rnp11SigValidity9validatedEv:
   64|   945k|    {
   65|   945k|        return validated_;
   66|   945k|    }
_ZN3rnp11SigValidity14mark_validatedEj:
   70|  49.4k|    {
   71|  49.4k|        if (err) {
  ------------------
  |  Branch (71:13): [True: 881, False: 48.6k]
  ------------------
   72|    881|            errors_.push_back(err);
   73|    881|        }
   74|  49.4k|        validated_ = true;
   75|  49.4k|    }
_ZN3rnp11SigValidity5resetEb:
   79|  24.9k|    {
   80|  24.9k|        errors_.clear();
   81|  24.9k|        validated_ = mark_valid;
   82|  24.9k|    }
_ZNK3rnp11SigValidity7unknownEv:
   86|  55.2k|    {
   87|  55.2k|        return (errors_.size() == 1) && (errors_[0] == RNP_ERROR_SIG_PARSE_ERROR);
  ------------------
  |  Branch (87:16): [True: 54.8k, False: 471]
  |  Branch (87:41): [True: 54.4k, False: 411]
  ------------------
   88|  55.2k|    }
_ZNK3rnp11SigValidity7expiredEv:
   92|    882|    {
   93|    882|        bool res = false;
   94|    882|        for (auto &err : errors_) {
  ------------------
  |  Branch (94:24): [True: 881, False: 1]
  ------------------
   95|       |            /* only these two cases were used as expired value */
   96|    881|            if ((err != RNP_ERROR_SIG_FROM_FUTURE) && (err != RNP_ERROR_SIG_EXPIRED)) {
  ------------------
  |  Branch (96:17): [True: 881, False: 0]
  |  Branch (96:55): [True: 881, False: 0]
  ------------------
   97|    881|                return false;
   98|    881|            }
   99|      0|            res = true;
  100|      0|        }
  101|      1|        return res;
  102|    882|    }
_ZNK3rnp11SigValidity9no_signerEv:
  106|    882|    {
  107|    882|        return (errors_.size() == 1) && (errors_[0] == RNP_ERROR_SIG_NO_SIGNER_KEY);
  ------------------
  |  Branch (107:16): [True: 411, False: 471]
  |  Branch (107:41): [True: 85, False: 326]
  ------------------
  108|    882|    }
_ZN3rnp10RevocationC2Ev:
  145|  3.01M|    Revocation() : uid(0), code(PGP_REVOCATION_NO_REASON), sigid(){};

_ZN3rnp13rnp_exceptionC2Ej:
  101|  2.48k|    rnp_exception(rnp_result_t code = RNP_ERROR_GENERIC) : code_(code){};
_ZNKSt3__14hashINS_5arrayIhLm20EEEEclERKS2_:
   85|  11.2M|    {
   86|       |        /* since signature id value is hash itself, we may use its low bytes */
   87|  11.2M|        size_t res = 0;
   88|  11.2M|        static_assert(std::tuple_size<pgp::SigID>::value >= sizeof(res),
   89|  11.2M|                      "pgp::SigID size mismatch");
   90|  11.2M|        std::memcpy(&res, sigid.data(), sizeof(res));
   91|  11.2M|        return res;
   92|  11.2M|    }
_ZNK3rnp13rnp_exception4codeEv:
  109|    626|    {
  110|    626|        return code_;
  111|    626|    };
_ZN14pgp_aead_hdr_tC2Ev:
  192|  3.31k|    pgp_aead_hdr_t() : ealg(PGP_SA_UNKNOWN), aalg(PGP_AEAD_NONE)
  193|  3.31k|    {
  194|  3.31k|    }

_ZN3rnp6UserIDC2ERK16pgp_userid_pkt_t:
   33|   500k|UserID::UserID(const pgp_userid_pkt_t &uidpkt) : UserID()
   34|   500k|{
   35|       |    /* copy packet data */
   36|   500k|    pkt = uidpkt;
   37|   500k|    rawpkt = RawPacket(uidpkt);
   38|       |    /* populate uid string */
   39|   500k|    if (uidpkt.tag == PGP_PKT_USER_ID) {
  ------------------
  |  Branch (39:9): [True: 498k, False: 2.09k]
  ------------------
   40|   498k|        str.assign(uidpkt.uid.data(), uidpkt.uid.data() + uidpkt.uid.size());
   41|   498k|    } else {
   42|  2.09k|        str = "(photo)";
   43|  2.09k|    }
   44|   500k|}
_ZNK3rnp6UserID9sig_countEv:
   48|   699k|{
   49|   699k|    return sigs_.size();
   50|   699k|}
_ZNK3rnp6UserID7get_sigEm:
   54|  30.2k|{
   55|  30.2k|    return sigs_.at(idx);
   56|  30.2k|}
_ZN3rnp6UserID7add_sigERKNSt3__15arrayIhLm20EEEb:
   66|  44.3k|{
   67|  44.3k|    size_t idx = begin ? 0 : sigs_.size();
  ------------------
  |  Branch (67:18): [True: 0, False: 44.3k]
  ------------------
   68|  44.3k|    sigs_.insert(sigs_.begin() + idx, sig);
   69|  44.3k|}
_ZN3rnp6UserID7del_sigERKNSt3__15arrayIhLm20EEE:
   83|  3.83k|{
   84|  3.83k|    auto it = std::find(sigs_.begin(), sigs_.end(), id);
   85|  3.83k|    if (it == sigs_.end()) {
  ------------------
  |  Branch (85:9): [True: 0, False: 3.83k]
  ------------------
   86|      0|        return false;
   87|      0|    }
   88|  3.83k|    sigs_.erase(it);
   89|  3.83k|    return true;
   90|  3.83k|}

_ZN3rnp6UserIDC2Ev:
   49|   500k|    UserID() : valid(false), revoked(false){};

_ZN11id_str_pair6lookupEPKS_iPKc:
   32|   160k|{
   33|   695k|    while (pair && pair->str) {
  ------------------
  |  Branch (33:12): [True: 695k, False: 0]
  |  Branch (33:20): [True: 690k, False: 5.70k]
  ------------------
   34|   690k|        if (pair->id == id) {
  ------------------
  |  Branch (34:13): [True: 154k, False: 535k]
  ------------------
   35|   154k|            return pair->str;
   36|   154k|        }
   37|   535k|        pair++;
   38|   535k|    }
   39|  5.70k|    return notfound;
   40|   160k|}

_Z11read_uint16PKh:
   61|   489k|{
   62|   489k|    return ((uint16_t) buf[0] << 8) | buf[1];
   63|   489k|}
_Z11read_uint32PKh:
   68|   469k|{
   69|   469k|    return ((uint32_t) buf[0] << 24) | ((uint32_t) buf[1] << 16) | ((uint32_t) buf[2] << 8) |
   70|   469k|           (uint32_t) buf[3];
   71|   469k|}
_Z12write_uint16Pht:
   76|   148k|{
   77|   148k|    buf[0] = val >> 8;
   78|   148k|    buf[1] = val & 0xff;
   79|   148k|}
_Z12write_uint32Phj:
   84|  63.1k|{
   85|  63.1k|    buf[0] = (uint8_t)(val >> 24) & 0xff;
   86|  63.1k|    buf[1] = (uint8_t)(val >> 16) & 0xff;
   87|  63.1k|    buf[2] = (uint8_t)(val >> 8) & 0xff;
   88|  63.1k|    buf[3] = (uint8_t)(val >> 0) & 0xff;
   89|  63.1k|}
_Z12write_uint64Phm:
   93|  1.10k|{
   94|  1.10k|    buf[0] = (uint8_t)(val >> 56) & 0xff;
   95|  1.10k|    buf[1] = (uint8_t)(val >> 48) & 0xff;
   96|  1.10k|    buf[2] = (uint8_t)(val >> 40) & 0xff;
   97|  1.10k|    buf[3] = (uint8_t)(val >> 32) & 0xff;
   98|  1.10k|    buf[4] = (uint8_t)(val >> 24) & 0xff;
   99|  1.10k|    buf[5] = (uint8_t)(val >> 16) & 0xff;
  100|  1.10k|    buf[6] = (uint8_t)(val >> 8) & 0xff;
  101|  1.10k|    buf[7] = (uint8_t)(val >> 0) & 0xff;
  102|  1.10k|}

_ZN3rnp8KeyStore13add_ts_subkeyERK25pgp_transferable_subkey_tPNS_3KeyE:
   43|  26.0k|{
   44|  26.0k|    try {
   45|       |        /* create subkey */
   46|  26.0k|        Key skey(tskey, pkey);
   47|       |        /* add it to the storage */
   48|  26.0k|        return add_key(skey);
   49|  26.0k|    } catch (const std::exception &e) {
   50|       |        /* LCOV_EXCL_START */
   51|    490|        RNP_LOG("failed to create subkey: %s", e.what());
  ------------------
  |  |   84|    490|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    490|    do {                                                                                 \
  |  |  |  |   77|    490|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 490, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    490|            break;                                                                       \
  |  |  |  |   79|    490|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   52|    490|        RNP_LOG_KEY("primary key is %s", pkey);
  ------------------
  |  |   87|    490|    do {                                                                                \
  |  |   88|    490|        if (!(key)) {                                                                   \
  |  |  ------------------
  |  |  |  Branch (88:13): [True: 158, False: 332]
  |  |  ------------------
  |  |   89|    158|            RNP_LOG(msg, "(null)");                                                     \
  |  |  ------------------
  |  |  |  |   84|    158|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   76|    158|    do {                                                                                 \
  |  |  |  |  |  |   77|    158|        if (!rnp_log_switch())                                                           \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (77:13): [True: 158, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   78|    158|            break;                                                                       \
  |  |  |  |  |  |   79|    158|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   90|    158|            break;                                                                      \
  |  |   91|    158|        }                                                                               \
  |  |   92|    490|        auto keyid = (key)->keyid();                                                    \
  |  |   93|    332|        auto idhex = bin_to_hex(keyid.data(), keyid.size(), rnp::HexFormat::Lowercase); \
  |  |   94|    332|        RNP_LOG(msg, idhex.c_str());                                                    \
  |  |  ------------------
  |  |  |  |   84|    332|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   76|    332|    do {                                                                                 \
  |  |  |  |  |  |   77|    332|        if (!rnp_log_switch())                                                           \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (77:13): [True: 332, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   78|    332|            break;                                                                       \
  |  |  |  |  |  |   79|    332|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   95|    332|    } while (0)
  |  |  ------------------
  |  |  |  Branch (95:14): [Folded, False: 332]
  |  |  ------------------
  ------------------
   53|    490|        return false;
   54|       |        /* LCOV_EXCL_END */
   55|    490|    }
   56|  26.0k|}
_ZN3rnp8KeyStore10add_ts_keyER22pgp_transferable_key_t:
   60|  42.0k|{
   61|  42.0k|    Key *addkey = nullptr;
   62|       |
   63|       |    /* create key from transferable key */
   64|  42.0k|    try {
   65|  42.0k|        Key key(tkey);
   66|       |        /* temporary disable key validation */
   67|  42.0k|        disable_validation = true;
   68|       |        /* add key to the storage before subkeys */
   69|  42.0k|        addkey = add_key(key);
   70|  42.0k|    } catch (const std::exception &e) {
   71|    327|        disable_validation = false;
   72|    327|        RNP_LOG("failed to add key: %s", e.what());
  ------------------
  |  |   84|    327|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    327|    do {                                                                                 \
  |  |  |  |   77|    327|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 327, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    327|            break;                                                                       \
  |  |  |  |   79|    327|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   73|    327|        return false;
   74|    327|    }
   75|       |
   76|  41.7k|    if (!addkey) {
  ------------------
  |  Branch (76:9): [True: 0, False: 41.7k]
  ------------------
   77|      0|        disable_validation = false;
   78|      0|        RNP_LOG("Failed to add key to key store.");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   79|      0|        return false;
   80|      0|    }
   81|       |
   82|       |    /* add subkeys */
   83|  41.7k|    for (auto &subkey : tkey.subkeys) {
  ------------------
  |  Branch (83:23): [True: 25.0k, False: 41.3k]
  ------------------
   84|  25.0k|        if (!add_ts_subkey(subkey, addkey)) {
  ------------------
  |  Branch (84:13): [True: 332, False: 24.6k]
  ------------------
   85|    332|            RNP_LOG("Failed to add subkey to key store.");
  ------------------
  |  |   84|    332|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    332|    do {                                                                                 \
  |  |  |  |   77|    332|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 332, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    332|            break;                                                                       \
  |  |  |  |   79|    332|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   86|    332|            disable_validation = false;
   87|       |            /* during key addition all fields are copied so will be cleaned below */
   88|    332|            remove_key(*addkey, false);
   89|    332|            return false;
   90|    332|        }
   91|  25.0k|    }
   92|       |
   93|       |    /* now validate/refresh the whole key with subkeys */
   94|  41.3k|    disable_validation = false;
   95|  41.3k|    addkey->revalidate(*this);
   96|  41.3k|    return true;
   97|  41.7k|}
_ZN3rnp8KeyStore8load_pgpER12pgp_source_tb:
  124|  22.1k|{
  125|       |    /* check whether we have transferable subkey in source */
  126|  22.1k|    if (is_subkey_pkt(stream_pkt_type(src))) {
  ------------------
  |  Branch (126:9): [True: 1.62k, False: 20.5k]
  ------------------
  127|  1.62k|        pgp_transferable_subkey_t tskey;
  128|  1.62k|        rnp_result_t              ret = process_pgp_subkey(src, tskey, skiperrors);
  129|  1.62k|        if (ret == RNP_ERROR_NOT_SUPPORTED) {
  ------------------
  |  Branch (129:13): [True: 4, False: 1.61k]
  ------------------
  130|       |            /* subkey with unsupported algorithm: skip it */
  131|      4|            return RNP_SUCCESS;
  132|      4|        }
  133|  1.61k|        if (ret) {
  ------------------
  |  Branch (133:13): [True: 566, False: 1.05k]
  ------------------
  134|    566|            return ret;
  135|    566|        }
  136|  1.05k|        return add_ts_subkey(tskey) ? RNP_SUCCESS : RNP_ERROR_BAD_STATE;
  ------------------
  |  Branch (136:16): [True: 894, False: 158]
  ------------------
  137|  1.61k|    }
  138|       |
  139|       |    /* process armored or raw transferable key packets sequence(s) */
  140|  20.5k|    try {
  141|  20.5k|        pgp_key_sequence_t keys;
  142|  20.5k|        rnp_result_t       ret = process_pgp_keys(src, keys, skiperrors);
  143|  20.5k|        if (ret) {
  ------------------
  |  Branch (143:13): [True: 9.66k, False: 10.8k]
  ------------------
  144|  9.66k|            return ret;
  145|  9.66k|        }
  146|  42.0k|        for (auto &key : keys.keys) {
  ------------------
  |  Branch (146:24): [True: 42.0k, False: 10.1k]
  ------------------
  147|  42.0k|            if (!add_ts_key(key)) {
  ------------------
  |  Branch (147:17): [True: 659, False: 41.3k]
  ------------------
  148|    659|                return RNP_ERROR_BAD_STATE;
  149|    659|            }
  150|  42.0k|        }
  151|  10.1k|        return RNP_SUCCESS;
  152|  10.8k|    } catch (const std::exception &e) {
  153|       |        /* LCOV_EXCL_START */
  154|    923|        RNP_LOG("%s", e.what());
  ------------------
  |  |   84|    923|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    923|    do {                                                                                 \
  |  |  |  |   77|    923|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 923, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    923|            break;                                                                       \
  |  |  |  |   79|    923|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  155|    923|        return RNP_ERROR_BAD_PARAMETERS;
  156|       |        /* LCOV_EXCL_END */
  157|    923|    }
  158|  20.5k|}

_ZN3rnp8KeyStore5clearEv:
  209|  53.4k|{
  210|  53.4k|    keybyfp.clear();
  211|  53.4k|    keys.clear();
  212|  53.4k|    blobs.clear();
  213|  53.4k|}
_ZN3rnp8KeyStore20refresh_subkey_gripsERNS_3KeyE:
  223|  29.8k|{
  224|  29.8k|    if (key.is_subkey()) {
  ------------------
  |  Branch (224:9): [True: 0, False: 29.8k]
  ------------------
  225|      0|        RNP_LOG("wrong argument");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  226|      0|        return false;
  227|      0|    }
  228|       |
  229|   161k|    for (auto &skey : keys) {
  ------------------
  |  Branch (229:21): [True: 161k, False: 29.8k]
  ------------------
  230|   161k|        bool found = false;
  231|       |
  232|       |        /* if we have primary_grip then we also added to subkey_grips */
  233|   161k|        if (!skey.is_subkey() || skey.has_primary_fp()) {
  ------------------
  |  Branch (233:13): [True: 111k, False: 50.7k]
  |  Branch (233:34): [True: 50.7k, False: 0]
  ------------------
  234|   161k|            continue;
  235|   161k|        }
  236|       |
  237|      0|        for (size_t i = 0; i < skey.sig_count(); i++) {
  ------------------
  |  Branch (237:28): [True: 0, False: 0]
  ------------------
  238|      0|            auto &subsig = skey.get_sig(i);
  239|       |
  240|      0|            if (subsig.sig.type() != PGP_SIG_SUBKEY) {
  ------------------
  |  Branch (240:17): [True: 0, False: 0]
  ------------------
  241|      0|                continue;
  242|      0|            }
  243|      0|            if (subsig.sig.has_keyfp()) {
  ------------------
  |  Branch (243:17): [True: 0, False: 0]
  ------------------
  244|       |                /* Version mismatch: do not use this signature's key id. A matching
  245|       |                 * version with different fingerprint bytes still falls through, as before. */
  246|      0|                if (!subsig.sig.issuer_fp_version_matches()) {
  ------------------
  |  Branch (246:21): [True: 0, False: 0]
  ------------------
  247|      0|                    continue;
  248|      0|                }
  249|      0|                if (key.fp() == subsig.sig.keyfp()) {
  ------------------
  |  Branch (249:21): [True: 0, False: 0]
  ------------------
  250|      0|                    found = true;
  251|      0|                    break;
  252|      0|                }
  253|      0|            }
  254|      0|            if (subsig.sig.has_keyid() && (key.keyid() == subsig.sig.keyid())) {
  ------------------
  |  Branch (254:17): [True: 0, False: 0]
  |  Branch (254:17): [True: 0, False: 0]
  |  Branch (254:43): [True: 0, False: 0]
  ------------------
  255|      0|                found = true;
  256|      0|                break;
  257|      0|            }
  258|      0|        }
  259|       |
  260|      0|        if (found) {
  ------------------
  |  Branch (260:13): [True: 0, False: 0]
  ------------------
  261|      0|            try {
  262|      0|                key.link_subkey_fp(skey);
  263|      0|            } catch (const std::exception &e) {
  264|       |                /* LCOV_EXCL_START */
  265|      0|                RNP_LOG("%s", e.what());
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  266|      0|                return false;
  267|       |                /* LCOV_EXCL_END */
  268|      0|            }
  269|      0|        }
  270|      0|    }
  271|       |
  272|  29.8k|    return true;
  273|  29.8k|}
_ZN3rnp8KeyStore10add_subkeyERNS_3KeyEPS1_:
  277|  43.3k|{
  278|  43.3k|    Key *primary = NULL;
  279|  43.3k|    if (oldkey) {
  ------------------
  |  Branch (279:9): [True: 21.7k, False: 21.5k]
  ------------------
  280|  21.7k|        primary = primary_key(*oldkey);
  281|  21.7k|    }
  282|  43.3k|    if (!primary) {
  ------------------
  |  Branch (282:9): [True: 23.8k, False: 19.4k]
  ------------------
  283|  23.8k|        primary = primary_key(srckey);
  284|  23.8k|    }
  285|       |
  286|  43.3k|    if (oldkey) {
  ------------------
  |  Branch (286:9): [True: 21.7k, False: 21.5k]
  ------------------
  287|       |        /* check for the weird case when same subkey has different primary keys */
  288|  21.7k|        if (srckey.has_primary_fp() && oldkey->has_primary_fp() &&
  ------------------
  |  Branch (288:13): [True: 21.0k, False: 698]
  |  Branch (288:40): [True: 20.9k, False: 78]
  ------------------
  289|  20.9k|            (srckey.primary_fp() != oldkey->primary_fp())) {
  ------------------
  |  Branch (289:13): [True: 4.19k, False: 16.7k]
  ------------------
  290|  4.19k|            RNP_LOG_KEY("Warning: different primary keys for subkey %s", &srckey);
  ------------------
  |  |   87|  4.19k|    do {                                                                                \
  |  |   88|  4.19k|        if (!(key)) {                                                                   \
  |  |  ------------------
  |  |  |  Branch (88:13): [True: 0, False: 4.19k]
  |  |  ------------------
  |  |   89|      0|            RNP_LOG(msg, "(null)");                                                     \
  |  |  ------------------
  |  |  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   90|      0|            break;                                                                      \
  |  |   91|      0|        }                                                                               \
  |  |   92|  4.19k|        auto keyid = (key)->keyid();                                                    \
  |  |   93|  4.19k|        auto idhex = bin_to_hex(keyid.data(), keyid.size(), rnp::HexFormat::Lowercase); \
  |  |   94|  4.19k|        RNP_LOG(msg, idhex.c_str());                                                    \
  |  |  ------------------
  |  |  |  |   84|  4.19k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   76|  4.19k|    do {                                                                                 \
  |  |  |  |  |  |   77|  4.19k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (77:13): [True: 4.19k, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   78|  4.19k|            break;                                                                       \
  |  |  |  |  |  |   79|  4.19k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   95|  4.19k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (95:14): [Folded, False: 4.19k]
  |  |  ------------------
  ------------------
  291|  4.19k|            auto *srcprim = get_key(srckey.primary_fp());
  292|  4.19k|            if (srcprim && (srcprim != primary)) {
  ------------------
  |  Branch (292:17): [True: 4.19k, False: 0]
  |  Branch (292:28): [True: 4.18k, False: 7]
  ------------------
  293|  4.18k|                srcprim->remove_subkey_fp(srckey.fp());
  294|  4.18k|            }
  295|  4.19k|        }
  296|       |        /* in case we already have key let's merge it in */
  297|  21.7k|        if (!oldkey->merge(srckey, primary)) {
  ------------------
  |  Branch (297:13): [True: 0, False: 21.7k]
  ------------------
  298|      0|            RNP_LOG_KEY("failed to merge subkey %s", &srckey);
  ------------------
  |  |   87|      0|    do {                                                                                \
  |  |   88|      0|        if (!(key)) {                                                                   \
  |  |  ------------------
  |  |  |  Branch (88:13): [True: 0, False: 0]
  |  |  ------------------
  |  |   89|      0|            RNP_LOG(msg, "(null)");                                                     \
  |  |  ------------------
  |  |  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   90|      0|            break;                                                                      \
  |  |   91|      0|        }                                                                               \
  |  |   92|      0|        auto keyid = (key)->keyid();                                                    \
  |  |   93|      0|        auto idhex = bin_to_hex(keyid.data(), keyid.size(), rnp::HexFormat::Lowercase); \
  |  |   94|      0|        RNP_LOG(msg, idhex.c_str());                                                    \
  |  |  ------------------
  |  |  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   95|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (95:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  299|      0|            RNP_LOG_KEY("primary key is %s", primary);
  ------------------
  |  |   87|      0|    do {                                                                                \
  |  |   88|      0|        if (!(key)) {                                                                   \
  |  |  ------------------
  |  |  |  Branch (88:13): [True: 0, False: 0]
  |  |  ------------------
  |  |   89|      0|            RNP_LOG(msg, "(null)");                                                     \
  |  |  ------------------
  |  |  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   90|      0|            break;                                                                      \
  |  |   91|      0|        }                                                                               \
  |  |   92|      0|        auto keyid = (key)->keyid();                                                    \
  |  |   93|      0|        auto idhex = bin_to_hex(keyid.data(), keyid.size(), rnp::HexFormat::Lowercase); \
  |  |   94|      0|        RNP_LOG(msg, idhex.c_str());                                                    \
  |  |  ------------------
  |  |  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   95|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (95:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  300|      0|            return NULL;
  301|      0|        }
  302|  21.7k|    } else {
  303|  21.5k|        try {
  304|  21.5k|            keys.emplace_back();
  305|  21.5k|            oldkey = &keys.back();
  306|  21.5k|            keybyfp[srckey.fp()] = std::prev(keys.end());
  307|  21.5k|            *oldkey = Key(srckey);
  308|  21.5k|            if (primary) {
  ------------------
  |  Branch (308:17): [True: 18.8k, False: 2.70k]
  ------------------
  309|  18.8k|                primary->link_subkey_fp(*oldkey);
  310|  18.8k|            }
  311|  21.5k|        } catch (const std::exception &e) {
  312|       |            /* LCOV_EXCL_START */
  313|      0|            RNP_LOG_KEY("key %s copying failed", &srckey);
  ------------------
  |  |   87|      0|    do {                                                                                \
  |  |   88|      0|        if (!(key)) {                                                                   \
  |  |  ------------------
  |  |  |  Branch (88:13): [True: 0, False: 0]
  |  |  ------------------
  |  |   89|      0|            RNP_LOG(msg, "(null)");                                                     \
  |  |  ------------------
  |  |  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   90|      0|            break;                                                                      \
  |  |   91|      0|        }                                                                               \
  |  |   92|      0|        auto keyid = (key)->keyid();                                                    \
  |  |   93|      0|        auto idhex = bin_to_hex(keyid.data(), keyid.size(), rnp::HexFormat::Lowercase); \
  |  |   94|      0|        RNP_LOG(msg, idhex.c_str());                                                    \
  |  |  ------------------
  |  |  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   95|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (95:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  314|      0|            RNP_LOG_KEY("primary key is %s", primary);
  ------------------
  |  |   87|      0|    do {                                                                                \
  |  |   88|      0|        if (!(key)) {                                                                   \
  |  |  ------------------
  |  |  |  Branch (88:13): [True: 0, False: 0]
  |  |  ------------------
  |  |   89|      0|            RNP_LOG(msg, "(null)");                                                     \
  |  |  ------------------
  |  |  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   90|      0|            break;                                                                      \
  |  |   91|      0|        }                                                                               \
  |  |   92|      0|        auto keyid = (key)->keyid();                                                    \
  |  |   93|      0|        auto idhex = bin_to_hex(keyid.data(), keyid.size(), rnp::HexFormat::Lowercase); \
  |  |   94|      0|        RNP_LOG(msg, idhex.c_str());                                                    \
  |  |  ------------------
  |  |  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   95|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (95:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  315|      0|            RNP_LOG("%s", e.what());
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  316|      0|            if (oldkey) {
  ------------------
  |  Branch (316:17): [True: 0, False: 0]
  ------------------
  317|      0|                keys.pop_back();
  318|      0|                keybyfp.erase(srckey.fp());
  319|      0|            }
  320|      0|            return nullptr;
  321|       |            /* LCOV_EXCL_END */
  322|      0|        }
  323|  21.5k|    }
  324|       |
  325|       |    /* validate all added keys if not disabled */
  326|  43.3k|    if (!disable_validation && !oldkey->validated()) {
  ------------------
  |  Branch (326:9): [True: 894, False: 42.4k]
  |  Branch (326:32): [True: 894, False: 0]
  ------------------
  327|    894|        oldkey->validate_subkey(primary, secctx);
  328|    894|    }
  329|  43.3k|    if (!oldkey->refresh_data(primary, secctx)) {
  ------------------
  |  Branch (329:9): [True: 0, False: 43.3k]
  ------------------
  330|      0|        RNP_LOG_KEY("Failed to refresh subkey %s data", &srckey);
  ------------------
  |  |   87|      0|    do {                                                                                \
  |  |   88|      0|        if (!(key)) {                                                                   \
  |  |  ------------------
  |  |  |  Branch (88:13): [True: 0, False: 0]
  |  |  ------------------
  |  |   89|      0|            RNP_LOG(msg, "(null)");                                                     \
  |  |  ------------------
  |  |  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   90|      0|            break;                                                                      \
  |  |   91|      0|        }                                                                               \
  |  |   92|      0|        auto keyid = (key)->keyid();                                                    \
  |  |   93|      0|        auto idhex = bin_to_hex(keyid.data(), keyid.size(), rnp::HexFormat::Lowercase); \
  |  |   94|      0|        RNP_LOG(msg, idhex.c_str());                                                    \
  |  |  ------------------
  |  |  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   95|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (95:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  331|      0|        RNP_LOG_KEY("primary key is %s", primary);
  ------------------
  |  |   87|      0|    do {                                                                                \
  |  |   88|      0|        if (!(key)) {                                                                   \
  |  |  ------------------
  |  |  |  Branch (88:13): [True: 0, False: 0]
  |  |  ------------------
  |  |   89|      0|            RNP_LOG(msg, "(null)");                                                     \
  |  |  ------------------
  |  |  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   90|      0|            break;                                                                      \
  |  |   91|      0|        }                                                                               \
  |  |   92|      0|        auto keyid = (key)->keyid();                                                    \
  |  |   93|      0|        auto idhex = bin_to_hex(keyid.data(), keyid.size(), rnp::HexFormat::Lowercase); \
  |  |   94|      0|        RNP_LOG(msg, idhex.c_str());                                                    \
  |  |  ------------------
  |  |  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   95|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (95:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  332|      0|    }
  333|  43.3k|    return oldkey;
  334|  43.3k|}
_ZN3rnp8KeyStore7add_keyERNS_3KeyE:
  339|   108k|{
  340|   108k|    assert(srckey.type() && srckey.version());
  341|   108k|    auto *added_key = get_key(srckey.fp());
  342|       |    /* we cannot merge G10 keys - so just return it */
  343|   108k|    if (added_key && (srckey.format == KeyFormat::G10)) {
  ------------------
  |  Branch (343:9): [True: 57.3k, False: 51.4k]
  |  Branch (343:22): [True: 0, False: 57.3k]
  ------------------
  344|      0|        return added_key;
  345|      0|    }
  346|       |    /* different processing for subkeys */
  347|   108k|    if (srckey.is_subkey()) {
  ------------------
  |  Branch (347:9): [True: 43.3k, False: 65.5k]
  ------------------
  348|  43.3k|        return add_subkey(srckey, added_key);
  349|  43.3k|    }
  350|       |
  351|  65.5k|    if (added_key) {
  ------------------
  |  Branch (351:9): [True: 35.6k, False: 29.8k]
  ------------------
  352|  35.6k|        if (!added_key->merge(srckey)) {
  ------------------
  |  Branch (352:13): [True: 0, False: 35.6k]
  ------------------
  353|      0|            RNP_LOG_KEY("failed to merge key %s", &srckey);
  ------------------
  |  |   87|      0|    do {                                                                                \
  |  |   88|      0|        if (!(key)) {                                                                   \
  |  |  ------------------
  |  |  |  Branch (88:13): [True: 0, False: 0]
  |  |  ------------------
  |  |   89|      0|            RNP_LOG(msg, "(null)");                                                     \
  |  |  ------------------
  |  |  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   90|      0|            break;                                                                      \
  |  |   91|      0|        }                                                                               \
  |  |   92|      0|        auto keyid = (key)->keyid();                                                    \
  |  |   93|      0|        auto idhex = bin_to_hex(keyid.data(), keyid.size(), rnp::HexFormat::Lowercase); \
  |  |   94|      0|        RNP_LOG(msg, idhex.c_str());                                                    \
  |  |  ------------------
  |  |  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   95|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (95:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  354|      0|            return NULL;
  355|      0|        }
  356|  35.6k|    } else {
  357|  29.8k|        try {
  358|  29.8k|            keys.emplace_back();
  359|  29.8k|            added_key = &keys.back();
  360|  29.8k|            keybyfp[srckey.fp()] = std::prev(keys.end());
  361|  29.8k|            *added_key = Key(srckey);
  362|       |            /* primary key may be added after subkeys, so let's handle this case correctly */
  363|  29.8k|            if (!refresh_subkey_grips(*added_key)) {
  ------------------
  |  Branch (363:17): [True: 0, False: 29.8k]
  ------------------
  364|      0|                RNP_LOG_KEY("failed to refresh subkey grips for %s", added_key);
  ------------------
  |  |   87|      0|    do {                                                                                \
  |  |   88|      0|        if (!(key)) {                                                                   \
  |  |  ------------------
  |  |  |  Branch (88:13): [True: 0, False: 0]
  |  |  ------------------
  |  |   89|      0|            RNP_LOG(msg, "(null)");                                                     \
  |  |  ------------------
  |  |  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   90|      0|            break;                                                                      \
  |  |   91|      0|        }                                                                               \
  |  |   92|      0|        auto keyid = (key)->keyid();                                                    \
  |  |   93|      0|        auto idhex = bin_to_hex(keyid.data(), keyid.size(), rnp::HexFormat::Lowercase); \
  |  |   94|      0|        RNP_LOG(msg, idhex.c_str());                                                    \
  |  |  ------------------
  |  |  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   95|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (95:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  365|      0|            }
  366|  29.8k|        } catch (const std::exception &e) {
  367|       |            /* LCOV_EXCL_START */
  368|      0|            RNP_LOG_KEY("key %s copying failed", &srckey);
  ------------------
  |  |   87|      0|    do {                                                                                \
  |  |   88|      0|        if (!(key)) {                                                                   \
  |  |  ------------------
  |  |  |  Branch (88:13): [True: 0, False: 0]
  |  |  ------------------
  |  |   89|      0|            RNP_LOG(msg, "(null)");                                                     \
  |  |  ------------------
  |  |  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   90|      0|            break;                                                                      \
  |  |   91|      0|        }                                                                               \
  |  |   92|      0|        auto keyid = (key)->keyid();                                                    \
  |  |   93|      0|        auto idhex = bin_to_hex(keyid.data(), keyid.size(), rnp::HexFormat::Lowercase); \
  |  |   94|      0|        RNP_LOG(msg, idhex.c_str());                                                    \
  |  |  ------------------
  |  |  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   95|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (95:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  369|      0|            RNP_LOG("%s", e.what());
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  370|      0|            if (added_key) {
  ------------------
  |  Branch (370:17): [True: 0, False: 0]
  ------------------
  371|      0|                keys.pop_back();
  372|      0|                keybyfp.erase(srckey.fp());
  373|      0|            }
  374|      0|            return NULL;
  375|       |            /* LCOV_EXCL_END */
  376|      0|        }
  377|  29.8k|    }
  378|       |
  379|       |    /* validate all added keys if not disabled or already validated */
  380|  65.5k|    if (!disable_validation && !added_key->validated()) {
  ------------------
  |  Branch (380:9): [True: 0, False: 65.5k]
  |  Branch (380:32): [True: 0, False: 0]
  ------------------
  381|      0|        added_key->revalidate(*this);
  382|  65.5k|    } else if (!added_key->refresh_data(secctx)) {
  ------------------
  |  Branch (382:16): [True: 356, False: 65.1k]
  ------------------
  383|    356|        RNP_LOG_KEY("Failed to refresh key %s data", &srckey);
  ------------------
  |  |   87|    356|    do {                                                                                \
  |  |   88|    356|        if (!(key)) {                                                                   \
  |  |  ------------------
  |  |  |  Branch (88:13): [True: 0, False: 356]
  |  |  ------------------
  |  |   89|      0|            RNP_LOG(msg, "(null)");                                                     \
  |  |  ------------------
  |  |  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   90|      0|            break;                                                                      \
  |  |   91|      0|        }                                                                               \
  |  |   92|    356|        auto keyid = (key)->keyid();                                                    \
  |  |   93|    356|        auto idhex = bin_to_hex(keyid.data(), keyid.size(), rnp::HexFormat::Lowercase); \
  |  |   94|    356|        RNP_LOG(msg, idhex.c_str());                                                    \
  |  |  ------------------
  |  |  |  |   84|    356|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   76|    356|    do {                                                                                 \
  |  |  |  |  |  |   77|    356|        if (!rnp_log_switch())                                                           \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (77:13): [True: 356, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   78|    356|            break;                                                                       \
  |  |  |  |  |  |   79|    356|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   95|    356|    } while (0)
  |  |  ------------------
  |  |  |  Branch (95:14): [Folded, False: 356]
  |  |  ------------------
  ------------------
  384|    356|    }
  385|       |    /* Revalidate non-self revocations for all keys in keyring, as added_key key could be a
  386|       |     * revoker. Should not be time-consuming as `validate_desig_revokes()` has early exit. */
  387|   464k|    for (auto &key : keys) {
  ------------------
  |  Branch (387:20): [True: 464k, False: 65.5k]
  ------------------
  388|   464k|        if (&key == added_key) {
  ------------------
  |  Branch (388:13): [True: 65.5k, False: 399k]
  ------------------
  389|  65.5k|            continue;
  390|  65.5k|        }
  391|   399k|        if (key.validate_desig_revokes(*this)) {
  ------------------
  |  Branch (391:13): [True: 0, False: 399k]
  ------------------
  392|      0|            key.revalidate(*this);
  393|      0|        }
  394|   399k|    }
  395|  65.5k|    return added_key;
  396|  65.5k|}
_ZN3rnp8KeyStore10import_keyERNS_3KeyEbP23pgp_key_import_status_t:
  444|  41.5k|{
  445|       |    /* add public key */
  446|  41.5k|    auto * exkey = get_key(srckey.fp());
  447|  41.5k|    size_t expackets = exkey ? exkey->rawpkt_count() : 0;
  ------------------
  |  Branch (447:24): [True: 18.5k, False: 22.9k]
  ------------------
  448|  41.5k|    try {
  449|  41.5k|        Key keycp(srckey, pubkey);
  450|  41.5k|        disable_validation = true;
  451|  41.5k|        exkey = add_key(keycp);
  452|  41.5k|        disable_validation = false;
  453|  41.5k|        if (!exkey) {
  ------------------
  |  Branch (453:13): [True: 0, False: 41.5k]
  ------------------
  454|      0|            RNP_LOG("failed to add key to the keyring");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  455|      0|            return nullptr;
  456|      0|        }
  457|  41.5k|        bool changed = exkey->rawpkt_count() > expackets;
  458|  41.5k|        if (changed || !exkey->validated()) {
  ------------------
  |  Branch (458:13): [True: 22.9k, False: 18.5k]
  |  Branch (458:24): [True: 18.0k, False: 489]
  ------------------
  459|       |            /* this will revalidate primary key with all of its subkeys */
  460|  41.0k|            exkey->revalidate(*this);
  461|  41.0k|        }
  462|  41.5k|        if (status) {
  ------------------
  |  Branch (462:13): [True: 34.2k, False: 7.31k]
  ------------------
  463|  34.2k|            *status = changed ? (expackets ? PGP_KEY_IMPORT_STATUS_UPDATED :
  ------------------
  |  Branch (463:23): [True: 22.9k, False: 11.2k]
  |  Branch (463:34): [True: 0, False: 22.9k]
  ------------------
  464|  22.9k|                                             PGP_KEY_IMPORT_STATUS_NEW) :
  465|  34.2k|                                PGP_KEY_IMPORT_STATUS_UNCHANGED;
  466|  34.2k|        }
  467|  41.5k|        return exkey;
  468|  41.5k|    } catch (const std::exception &e) {
  469|       |        /* LCOV_EXCL_START */
  470|      0|        RNP_LOG("%s", e.what());
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  471|      0|        disable_validation = false;
  472|      0|        return nullptr;
  473|       |        /* LCOV_EXCL_END */
  474|      0|    }
  475|  41.5k|}
_ZN3rnp8KeyStore10remove_keyERKNS_3KeyEb:
  577|    332|{
  578|    332|    auto it = keybyfp.find(key.fp());
  579|    332|    if (it == keybyfp.end()) {
  ------------------
  |  Branch (579:9): [True: 0, False: 332]
  ------------------
  580|      0|        return false;
  581|      0|    }
  582|       |
  583|       |    /* cleanup primary_grip (or subkey)/subkey_grips */
  584|    332|    if (key.is_primary() && key.subkey_count()) {
  ------------------
  |  Branch (584:9): [True: 308, False: 24]
  |  Branch (584:29): [True: 170, False: 138]
  ------------------
  585|    587|        for (size_t i = 0; i < key.subkey_count(); i++) {
  ------------------
  |  Branch (585:28): [True: 417, False: 170]
  ------------------
  586|    417|            auto its = keybyfp.find(key.get_subkey_fp(i));
  587|    417|            if (its == keybyfp.end()) {
  ------------------
  |  Branch (587:17): [True: 0, False: 417]
  ------------------
  588|      0|                continue;
  589|      0|            }
  590|       |            /* if subkeys are deleted then no need to update grips */
  591|    417|            if (subkeys) {
  ------------------
  |  Branch (591:17): [True: 0, False: 417]
  ------------------
  592|      0|                keys.erase(its->second);
  593|      0|                keybyfp.erase(its);
  594|      0|                continue;
  595|      0|            }
  596|    417|            its->second->unset_primary_fp();
  597|    417|        }
  598|    170|    }
  599|    332|    if (key.is_subkey() && key.has_primary_fp()) {
  ------------------
  |  Branch (599:9): [True: 24, False: 308]
  |  Branch (599:28): [True: 20, False: 4]
  ------------------
  600|     20|        auto *primary = primary_key(key);
  601|     20|        if (primary) {
  ------------------
  |  Branch (601:13): [True: 19, False: 1]
  ------------------
  602|     19|            primary->remove_subkey_fp(key.fp());
  603|     19|        }
  604|     20|    }
  605|       |
  606|    332|    keys.erase(it->second);
  607|    332|    keybyfp.erase(it);
  608|    332|    return true;
  609|    332|}
_ZN3rnp8KeyStore7get_keyERKN3pgp11FingerprintE:
  623|   494k|{
  624|   494k|    auto it = keybyfp.find(fpr);
  625|   494k|    if (it == keybyfp.end()) {
  ------------------
  |  Branch (625:9): [True: 156k, False: 338k]
  ------------------
  626|   156k|        return nullptr;
  627|   156k|    }
  628|   338k|    return &*it->second;
  629|   494k|}
_ZN3rnp8KeyStore10get_subkeyERKNS_3KeyEm:
  633|  97.5k|{
  634|  97.5k|    if (idx >= key.subkey_count()) {
  ------------------
  |  Branch (634:9): [True: 0, False: 97.5k]
  ------------------
  635|      0|        return nullptr;
  636|      0|    }
  637|  97.5k|    return get_key(key.get_subkey_fp(idx));
  638|  97.5k|}
_ZN3rnp8KeyStore11primary_keyERKNS_3KeyE:
  642|  63.5k|{
  643|  63.5k|    if (!subkey.is_subkey()) {
  ------------------
  |  Branch (643:9): [True: 78, False: 63.4k]
  ------------------
  644|     78|        return nullptr;
  645|     78|    }
  646|       |
  647|  63.4k|    if (subkey.has_primary_fp()) {
  ------------------
  |  Branch (647:9): [True: 58.9k, False: 4.48k]
  ------------------
  648|  58.9k|        Key *primary = get_key(subkey.primary_fp());
  649|  58.9k|        return primary && primary->is_primary() ? primary : nullptr;
  ------------------
  |  Branch (649:16): [True: 52.3k, False: 6.64k]
  |  Branch (649:27): [True: 52.2k, False: 55]
  ------------------
  650|  58.9k|    }
  651|       |
  652|  17.2k|    for (size_t i = 0; i < subkey.sig_count(); i++) {
  ------------------
  |  Branch (652:24): [True: 12.7k, False: 4.48k]
  ------------------
  653|  12.7k|        auto &subsig = subkey.get_sig(i);
  654|  12.7k|        if (subsig.sig.type() != PGP_SIG_SUBKEY) {
  ------------------
  |  Branch (654:13): [True: 6.32k, False: 6.44k]
  ------------------
  655|  6.32k|            continue;
  656|  6.32k|        }
  657|       |
  658|  6.44k|        Key *primary = get_signer(subsig.sig);
  659|  6.44k|        if (!primary || !primary->is_primary()) {
  ------------------
  |  Branch (659:13): [True: 6.05k, False: 395]
  |  Branch (659:25): [True: 395, False: 0]
  ------------------
  660|  6.44k|            continue;
  661|  6.44k|        }
  662|       |        /* Fingerprint lookup ignores the version octet. Do not bind a subkey to a
  663|       |         * primary whose issuer fingerprint version does not match the signature. */
  664|      0|        if (subsig.sig.has_keyfp() && !subsig.sig.issuer_fp_version_matches()) {
  ------------------
  |  Branch (664:13): [True: 0, False: 0]
  |  Branch (664:39): [True: 0, False: 0]
  ------------------
  665|      0|            continue;
  666|      0|        }
  667|      0|        return primary;
  668|      0|    }
  669|  4.48k|    return nullptr;
  670|  4.48k|}
_ZN3rnp8KeyStore6searchERKNS_9KeySearchEPNS_3KeyE:
  674|  6.90k|{
  675|       |    // since keys are distinguished by fingerprint then just do map lookup
  676|  6.90k|    if (search.type() == KeySearch::Type::Fingerprint) {
  ------------------
  |  Branch (676:9): [True: 707, False: 6.20k]
  ------------------
  677|    707|        auto fpsearch = dynamic_cast<const KeyFingerprintSearch *>(&search);
  678|    707|        assert(fpsearch != nullptr);
  679|    707|        auto key = get_key(fpsearch->get_fp());
  680|    707|        if (after && (after != key)) {
  ------------------
  |  Branch (680:13): [True: 0, False: 707]
  |  Branch (680:22): [True: 0, False: 0]
  ------------------
  681|      0|            RNP_LOG("searching with invalid after param");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  682|      0|            return nullptr;
  683|      0|        }
  684|       |        // return NULL if after is specified
  685|    707|        return after ? nullptr : key;
  ------------------
  |  Branch (685:16): [True: 0, False: 707]
  ------------------
  686|    707|    }
  687|       |
  688|       |    // if after is provided, make sure it is a member of the appropriate list
  689|  6.20k|    auto it = std::find_if(
  690|  6.20k|      keys.begin(), keys.end(), [after](const Key &key) { return !after || (after == &key); });
  691|  6.20k|    if (after && (it == keys.end())) {
  ------------------
  |  Branch (691:9): [True: 0, False: 6.20k]
  |  Branch (691:9): [True: 0, False: 6.20k]
  |  Branch (691:18): [True: 0, False: 0]
  ------------------
  692|      0|        RNP_LOG("searching with non-keyrings after param");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  693|      0|        return nullptr;
  694|      0|    }
  695|  6.20k|    if (after) {
  ------------------
  |  Branch (695:9): [True: 0, False: 6.20k]
  ------------------
  696|      0|        it = std::next(it);
  697|      0|    }
  698|  6.20k|    it =
  699|  6.20k|      std::find_if(it, keys.end(), [&search](const Key &key) { return search.matches(key); });
  700|  6.20k|    return (it == keys.end()) ? nullptr : &(*it);
  ------------------
  |  Branch (700:12): [True: 5.82k, False: 376]
  ------------------
  701|  6.20k|}
_ZN3rnp8KeyStore10get_signerERKN3pgp3pkt9SignatureEPKNS_11KeyProviderE:
  705|  6.44k|{
  706|       |    /* if we have fingerprint let's check it */
  707|  6.44k|    std::unique_ptr<KeySearch> ks;
  708|  6.44k|    if (sig.has_keyfp()) {
  ------------------
  |  Branch (708:9): [True: 313, False: 6.13k]
  ------------------
  709|    313|        ks = KeySearch::create(sig.keyfp());
  710|  6.13k|    } else if (sig.has_keyid()) {
  ------------------
  |  Branch (710:16): [True: 5.79k, False: 339]
  ------------------
  711|  5.79k|        ks = KeySearch::create(sig.keyid());
  712|  5.79k|    } else {
  713|    339|        RNP_LOG("No way to search for the signer.");
  ------------------
  |  |   84|    339|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    339|    do {                                                                                 \
  |  |  |  |   77|    339|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 339, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    339|            break;                                                                       \
  |  |  |  |   79|    339|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  714|    339|        return nullptr;
  715|    339|    }
  716|       |
  717|  6.11k|    auto key = search(*ks);
  718|  6.11k|    if (key || !prov) {
  ------------------
  |  Branch (718:9): [True: 395, False: 5.71k]
  |  Branch (718:16): [True: 5.71k, False: 0]
  ------------------
  719|  6.11k|        return key;
  720|  6.11k|    }
  721|      0|    return prov->request_key(*ks, PGP_OP_VERIFY);
  722|  6.11k|}
_ZN3rnp8KeyStoreC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERNS_15SecurityContextENS_9KeyFormatE:
  725|  53.4k|    : secctx(ctx)
  726|  53.4k|{
  727|  53.4k|    if (_format == KeyFormat::Unknown) {
  ------------------
  |  Branch (727:9): [True: 0, False: 53.4k]
  ------------------
  728|      0|        RNP_LOG("Invalid key store format");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  729|      0|        throw std::invalid_argument("format");
  730|      0|    }
  731|  53.4k|    format = _format;
  732|  53.4k|    path = _path;
  733|  53.4k|}
_ZN3rnp8KeyStoreD2Ev:
  736|  53.4k|{
  737|  53.4k|    clear();
  738|  53.4k|}
rnp_key_store.cpp:_ZZN3rnp8KeyStore6searchERKNS_9KeySearchEPNS_3KeyEENK3$_0clERKS4_:
  690|  3.92k|      keys.begin(), keys.end(), [after](const Key &key) { return !after || (after == &key); });
  ------------------
  |  Branch (690:66): [True: 3.92k, False: 0]
  |  Branch (690:76): [True: 0, False: 0]
  ------------------
rnp_key_store.cpp:_ZZN3rnp8KeyStore6searchERKNS_9KeySearchEPNS_3KeyEENK3$_1clERKS4_:
  699|  3.92k|      std::find_if(it, keys.end(), [&search](const Key &key) { return search.matches(key); });

_Z16init_armored_srcP12pgp_source_tS0_b:
  939|  27.0k|{
  940|  27.0k|    if (!init_src_common(src, 0)) {
  ------------------
  |  Branch (940:9): [True: 0, False: 27.0k]
  ------------------
  941|      0|        return RNP_ERROR_OUT_OF_MEMORY;
  942|      0|    }
  943|  27.0k|    pgp_source_armored_param_t *param = new (std::nothrow) pgp_source_armored_param_t();
  944|  27.0k|    if (!param) {
  ------------------
  |  Branch (944:9): [True: 0, False: 27.0k]
  ------------------
  945|      0|        RNP_LOG("allocation failed");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  946|      0|        return RNP_ERROR_OUT_OF_MEMORY;
  947|      0|    }
  948|       |
  949|  27.0k|    param->readsrc = readsrc;
  950|  27.0k|    param->noheaders = noheaders;
  951|  27.0k|    src->param = param;
  952|  27.0k|    src->raw_read = armored_src_read;
  953|  27.0k|    src->raw_close = armored_src_close;
  954|  27.0k|    src->type = PGP_STREAM_ARMORED;
  955|       |
  956|       |    /* base64 data only */
  957|  27.0k|    if (noheaders) {
  ------------------
  |  Branch (957:9): [True: 0, False: 27.0k]
  ------------------
  958|      0|        return RNP_SUCCESS;
  959|      0|    }
  960|       |
  961|       |    /* initialize crc context */
  962|  27.0k|    param->crc_ctx = rnp::CRC24::create();
  963|       |    /* parsing armored header */
  964|  27.0k|    rnp_result_t errcode = RNP_ERROR_GENERIC;
  965|  27.0k|    if (!armor_parse_header(param)) {
  ------------------
  |  Branch (965:9): [True: 671, False: 26.3k]
  ------------------
  966|    671|        errcode = RNP_ERROR_BAD_FORMAT;
  967|    671|        goto finish;
  968|    671|    }
  969|       |    /* eol */
  970|  26.3k|    if (!param->readsrc->skip_eol()) {
  ------------------
  |  Branch (970:9): [True: 386, False: 25.9k]
  ------------------
  971|    386|        RNP_LOG("no eol after the armor header");
  ------------------
  |  |   84|    386|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    386|    do {                                                                                 \
  |  |  |  |   77|    386|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 386, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    386|            break;                                                                       \
  |  |  |  |   79|    386|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  972|    386|        errcode = RNP_ERROR_BAD_FORMAT;
  973|    386|        goto finish;
  974|    386|    }
  975|       |    /* parsing headers */
  976|  25.9k|    if (!armor_parse_headers(param)) {
  ------------------
  |  Branch (976:9): [True: 563, False: 25.4k]
  ------------------
  977|    563|        RNP_LOG("failed to parse headers");
  ------------------
  |  |   84|    563|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    563|    do {                                                                                 \
  |  |  |  |   77|    563|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 563, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    563|            break;                                                                       \
  |  |  |  |   79|    563|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  978|    563|        errcode = RNP_ERROR_BAD_FORMAT;
  979|    563|        goto finish;
  980|    563|    }
  981|       |
  982|       |    /* now we are good to go with base64-encoded data */
  983|  25.4k|    errcode = RNP_SUCCESS;
  984|  27.0k|finish:
  985|  27.0k|    if (errcode) {
  ------------------
  |  Branch (985:9): [True: 1.62k, False: 25.4k]
  ------------------
  986|  1.62k|        src->close();
  987|  1.62k|    }
  988|  27.0k|    return errcode;
  989|  25.4k|}
_ZN12pgp_source_t10is_armoredEv:
 1293|  79.2k|{
 1294|  79.2k|    char   buf[ARMORED_PEEK_BUF_SIZE] = {0};
 1295|  79.2k|    size_t read = 0;
 1296|       |
 1297|  79.2k|    if (!peek(buf, sizeof(buf) - 1, &read) || (read < strlen(ST_ARMOR_BEGIN) + 1)) {
  ------------------
  |  |   46|  79.2k|#define ST_ARMOR_BEGIN ("-----BEGIN PGP ")
  ------------------
  |  Branch (1297:9): [True: 0, False: 79.2k]
  |  Branch (1297:47): [True: 2.39k, False: 76.8k]
  ------------------
 1298|  2.39k|        return false;
 1299|  2.39k|    }
 1300|  76.8k|    buf[read] = 0;
 1301|  76.8k|    if (!!strstr(buf, ST_CLEAR_BEGIN)) {
  ------------------
  |  |   48|  76.8k|#define ST_CLEAR_BEGIN ("-----BEGIN PGP SIGNED MESSAGE-----")
  ------------------
  |  Branch (1301:9): [True: 209, False: 76.6k]
  ------------------
 1302|    209|        return false;
 1303|    209|    }
 1304|  76.6k|    return !!strstr(buf, ST_ARMOR_BEGIN);
  ------------------
  |  |   46|  76.6k|#define ST_ARMOR_BEGIN ("-----BEGIN PGP ")
  ------------------
 1305|  76.8k|}
_ZN12pgp_source_t12is_cleartextEv:
 1309|  10.2k|{
 1310|  10.2k|    char   buf[ARMORED_PEEK_BUF_SIZE] = {0};
 1311|  10.2k|    size_t read = 0;
 1312|       |
 1313|  10.2k|    if (!peek(buf, sizeof(buf) - 1, &read) || (read < strlen(ST_CLEAR_BEGIN))) {
  ------------------
  |  |   48|  10.2k|#define ST_CLEAR_BEGIN ("-----BEGIN PGP SIGNED MESSAGE-----")
  ------------------
  |  Branch (1313:9): [True: 0, False: 10.2k]
  |  Branch (1313:47): [True: 1.01k, False: 9.21k]
  ------------------
 1314|  1.01k|        return false;
 1315|  1.01k|    }
 1316|  9.21k|    buf[read] = 0;
 1317|  9.21k|    return !!strstr(buf, ST_CLEAR_BEGIN);
  ------------------
  |  |   48|  9.21k|#define ST_CLEAR_BEGIN ("-----BEGIN PGP SIGNED MESSAGE-----")
  ------------------
 1318|  10.2k|}
_ZN3rnp13ArmoredSourceC2ER12pgp_source_tj:
 1378|  94.0k|    : Source(), readsrc_(readsrc), multiple_(false)
 1379|  94.0k|{
 1380|       |    /* Do not dearmor already armored stream */
 1381|  94.0k|    bool already = readsrc_.type == PGP_STREAM_ARMORED;
 1382|       |    /* Check for base64 source: no multiple streams allowed */
 1383|  94.0k|    if (!already && (flags & AllowBase64) && (readsrc.is_base64())) {
  ------------------
  |  Branch (1383:9): [True: 74.2k, False: 19.7k]
  |  Branch (1383:21): [True: 0, False: 74.2k]
  |  Branch (1383:46): [True: 0, False: 0]
  ------------------
 1384|      0|        auto res = init_armored_src(&src_, &readsrc_, true);
 1385|      0|        if (res) {
  ------------------
  |  Branch (1385:13): [True: 0, False: 0]
  ------------------
 1386|      0|            RNP_LOG("Failed to parse base64 data.");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1387|      0|            throw rnp::rnp_exception(res);
 1388|      0|        }
 1389|      0|        armored_ = true;
 1390|      0|        return;
 1391|      0|    }
 1392|       |    /* Check for armored source */
 1393|  94.0k|    if (!already && readsrc.is_armored()) {
  ------------------
  |  Branch (1393:9): [True: 74.2k, False: 19.7k]
  |  Branch (1393:21): [True: 6.80k, False: 67.4k]
  ------------------
 1394|  6.80k|        auto res = init_armored_src(&src_, &readsrc_);
 1395|  6.80k|        if (res) {
  ------------------
  |  Branch (1395:13): [True: 1.15k, False: 5.65k]
  ------------------
 1396|  1.15k|            RNP_LOG("Failed to parse armored data.");
  ------------------
  |  |   84|  1.15k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  1.15k|    do {                                                                                 \
  |  |  |  |   77|  1.15k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 1.15k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  1.15k|            break;                                                                       \
  |  |  |  |   79|  1.15k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1397|  1.15k|            throw rnp::rnp_exception(res);
 1398|  1.15k|        }
 1399|  5.65k|        armored_ = true;
 1400|  5.65k|        multiple_ = flags & AllowMultiple;
 1401|  5.65k|        return;
 1402|  6.80k|    }
 1403|       |    /* Use binary source if allowed */
 1404|  87.2k|    if (!(flags & AllowBinary)) {
  ------------------
  |  Branch (1404:9): [True: 314, False: 86.8k]
  ------------------
 1405|    314|        RNP_LOG("Non-armored data is not allowed here.");
  ------------------
  |  |   84|    314|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    314|    do {                                                                                 \
  |  |  |  |   77|    314|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 314, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    314|            break;                                                                       \
  |  |  |  |   79|    314|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1406|    314|        throw rnp::rnp_exception(RNP_ERROR_BAD_PARAMETERS);
 1407|    314|    }
 1408|  86.8k|    armored_ = false;
 1409|  86.8k|}
_ZN3rnp13ArmoredSource7restartEv:
 1413|  19.5k|{
 1414|  19.5k|    if (!armored_ || readsrc_.eof() || readsrc_.error()) {
  ------------------
  |  Branch (1414:9): [True: 0, False: 19.5k]
  |  Branch (1414:22): [True: 177, False: 19.3k]
  |  Branch (1414:40): [True: 0, False: 19.3k]
  ------------------
 1415|    177|        return;
 1416|    177|    }
 1417|  19.3k|    src_.close();
 1418|  19.3k|    auto res = init_armored_src(&src_, &readsrc_);
 1419|  19.3k|    if (res) {
  ------------------
  |  Branch (1419:9): [True: 81, False: 19.3k]
  ------------------
 1420|     81|        throw rnp::rnp_exception(res);
 1421|     81|    }
 1422|  19.3k|}
_ZN3rnp13ArmoredSource3srcEv:
 1426|  3.05M|{
 1427|  3.05M|    return armored_ ? src_ : readsrc_;
  ------------------
  |  Branch (1427:12): [True: 167k, False: 2.88M]
  ------------------
 1428|  3.05M|}
stream-armor.cpp:_ZL22armor_str_to_data_typeRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE:
  715|  26.7k|{
  716|  26.7k|    if ((str == "MESSAGE") || (str == "ARMORED FILE")) {
  ------------------
  |  Branch (716:9): [True: 448, False: 26.2k]
  |  Branch (716:31): [True: 13, False: 26.2k]
  ------------------
  717|    461|        return PGP_ARMORED_MESSAGE;
  718|    461|    }
  719|  26.2k|    if ((str == "PUBLIC KEY BLOCK") || (str == "PUBLIC KEY")) {
  ------------------
  |  Branch (719:9): [True: 19.3k, False: 6.88k]
  |  Branch (719:40): [True: 6, False: 6.87k]
  ------------------
  720|  19.4k|        return PGP_ARMORED_PUBLIC_KEY;
  721|  19.4k|    }
  722|  6.87k|    if ((str == "SECRET KEY BLOCK") || (str == "SECRET KEY") || (str == "PRIVATE KEY BLOCK") ||
  ------------------
  |  Branch (722:9): [True: 9, False: 6.86k]
  |  Branch (722:40): [True: 22, False: 6.84k]
  |  Branch (722:65): [True: 973, False: 5.87k]
  ------------------
  723|  5.87k|        (str == "PRIVATE KEY")) {
  ------------------
  |  Branch (723:9): [True: 6, False: 5.86k]
  ------------------
  724|  1.01k|        return PGP_ARMORED_SECRET_KEY;
  725|  1.01k|    }
  726|  5.86k|    if (str == "SIGNATURE") {
  ------------------
  |  Branch (726:9): [True: 5.50k, False: 362]
  ------------------
  727|  5.50k|        return PGP_ARMORED_SIGNATURE;
  728|  5.50k|    }
  729|    362|    return PGP_ARMORED_UNKNOWN;
  730|  5.86k|}
stream-armor.cpp:_ZL17peek_armor_headerR12pgp_source_tPmb:
  797|  27.0k|{
  798|  27.0k|    std::string hdr(ARMORED_PEEK_BUF_SIZE, '\0');
  ------------------
  |  |   46|  27.0k|#define ARMORED_PEEK_BUF_SIZE 1024
  ------------------
  799|  27.0k|    size_t      read = 0;
  800|  27.0k|    if (skip) {
  ------------------
  |  Branch (800:9): [True: 27.0k, False: 0]
  ------------------
  801|  27.0k|        *skip = 0;
  802|  27.0k|    }
  803|  27.0k|    if (!src.peek(&hdr.front(), hdr.size(), &read) || (read < 20)) {
  ------------------
  |  Branch (803:9): [True: 0, False: 27.0k]
  |  Branch (803:55): [True: 22, False: 27.0k]
  ------------------
  804|     22|        return "";
  805|     22|    }
  806|  27.0k|    hdr.resize(read);
  807|       |
  808|  27.0k|    std::string type;
  809|  27.0k|    size_t      armhdrlen = 0;
  810|  27.0k|    size_t      pos = find_armor_header(hdr, armhdrlen, type);
  811|  27.0k|    if (pos == std::string::npos) {
  ------------------
  |  Branch (811:9): [True: 267, False: 26.7k]
  ------------------
  812|    267|        return "";
  813|    267|    }
  814|       |
  815|       |    /* if there are non-whitespaces before the armor header then issue warning */
  816|   137k|    for (size_t idx = 0; check && (idx < pos); idx++) {
  ------------------
  |  Branch (816:26): [True: 137k, False: 0]
  |  Branch (816:35): [True: 135k, False: 1.05k]
  ------------------
  817|   135k|        if (B64DEC[(uint8_t) hdr[idx]] != 0xfd) {
  ------------------
  |  Branch (817:13): [True: 25.7k, False: 110k]
  ------------------
  818|  25.7k|            RNP_LOG("extra data before the header line");
  ------------------
  |  |   84|  25.7k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  25.7k|    do {                                                                                 \
  |  |  |  |   77|  25.7k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 25.7k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  25.7k|            break;                                                                       \
  |  |  |  |   79|  25.7k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  819|  25.7k|            break;
  820|  25.7k|        }
  821|   135k|    }
  822|       |
  823|  26.7k|    if (skip) {
  ------------------
  |  Branch (823:9): [True: 26.7k, False: 0]
  ------------------
  824|  26.7k|        *skip = armhdrlen;
  825|  26.7k|    }
  826|  26.7k|    return type;
  827|  27.0k|}
stream-armor.cpp:_ZL17find_armor_headerRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERmRS5_:
  698|  27.0k|{
  699|  27.0k|    size_t bg_len = strlen(ST_ARMOR_BEGIN);
  ------------------
  |  |   46|  27.0k|#define ST_ARMOR_BEGIN ("-----BEGIN PGP ")
  ------------------
  700|  27.0k|    size_t pos = str.find(ST_ARMOR_BEGIN);
  ------------------
  |  |   46|  27.0k|#define ST_ARMOR_BEGIN ("-----BEGIN PGP ")
  ------------------
  701|  27.0k|    if (pos == std::string::npos) {
  ------------------
  |  Branch (701:9): [True: 52, False: 26.9k]
  ------------------
  702|     52|        return pos;
  703|     52|    }
  704|  26.9k|    size_t end = str.find(ST_DASHES, pos + bg_len);
  ------------------
  |  |   45|  26.9k|#define ST_DASHES ("-----")
  ------------------
  705|  26.9k|    if (end == std::string::npos) {
  ------------------
  |  Branch (705:9): [True: 215, False: 26.7k]
  ------------------
  706|    215|        return end;
  707|    215|    }
  708|  26.7k|    hdrlen = end + 5;
  709|  26.7k|    type.assign(str.begin() + pos + bg_len, str.begin() + end);
  710|  26.7k|    return pos;
  711|  26.9k|}
stream-armor.cpp:_ZL16armored_src_readP12pgp_source_tPvmPm:
  476|   150k|{
  477|   150k|    pgp_source_armored_param_t *param = (pgp_source_armored_param_t *) src->param;
  478|   150k|    uint8_t  b64buf[ARMORED_BLOCK_SIZE];     /* input base64 data with spaces and so on */
  479|   150k|    uint8_t  decbuf[ARMORED_BLOCK_SIZE + 4]; /* decoded 6-bit values */
  480|   150k|    uint8_t *bufptr = (uint8_t *) buf;       /* for better readability below */
  481|   150k|    uint8_t *bptr, *bend;                    /* pointer to input data in b64buf */
  482|   150k|    uint8_t *dptr, *dend, *pend; /* pointers to decoded data in decbuf: working pointer, last
  483|       |                                    available byte, last byte to process */
  484|   150k|    uint8_t  bval;
  485|   150k|    uint32_t b24;
  486|   150k|    size_t   read = 0;
  487|   150k|    size_t   left = len;
  488|   150k|    size_t   eqcount = 0; /* number of '=' at the end of base64 stream */
  489|       |
  490|   150k|    if (!param) {
  ------------------
  |  Branch (490:9): [True: 0, False: 150k]
  ------------------
  491|      0|        return false;
  492|      0|    }
  493|       |
  494|       |    /* checking whether there are some decoded bytes */
  495|   150k|    if (param->restpos < param->restlen) {
  ------------------
  |  Branch (495:9): [True: 384, False: 150k]
  ------------------
  496|    384|        if (param->restlen - param->restpos >= len) {
  ------------------
  |  Branch (496:13): [True: 0, False: 384]
  ------------------
  497|      0|            memcpy(bufptr, &param->rest[param->restpos], len);
  498|      0|            param->restpos += len;
  499|      0|            try {
  500|      0|                param->crc_ctx->add(bufptr, len);
  501|      0|            } catch (const std::exception &e) {
  502|      0|                RNP_LOG("%s", e.what());
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  503|      0|                return false;
  504|      0|            }
  505|      0|            *readres = len;
  506|      0|            return true;
  507|    384|        } else {
  508|    384|            left = len - (param->restlen - param->restpos);
  509|    384|            memcpy(bufptr, &param->rest[param->restpos], len - left);
  510|    384|            param->restpos = param->restlen = 0;
  511|    384|            bufptr += len - left;
  512|    384|        }
  513|    384|    }
  514|       |
  515|   150k|    if (param->eofb64) {
  ------------------
  |  Branch (515:9): [True: 124k, False: 25.8k]
  ------------------
  516|   124k|        *readres = len - left;
  517|   124k|        return true;
  518|   124k|    }
  519|       |
  520|  25.8k|    memcpy(decbuf, param->brest, param->brestlen);
  521|  25.8k|    dend = decbuf + param->brestlen;
  522|       |
  523|  31.4k|    do {
  524|  31.4k|        if (!param->readsrc->peek(b64buf, sizeof(b64buf), &read)) {
  ------------------
  |  Branch (524:13): [True: 0, False: 31.4k]
  ------------------
  525|      0|            return false;
  526|      0|        }
  527|  31.4k|        if (!read) {
  ------------------
  |  Branch (527:13): [True: 135, False: 31.2k]
  ------------------
  528|    135|            RNP_LOG("premature end of armored input");
  ------------------
  |  |   84|    135|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    135|    do {                                                                                 \
  |  |  |  |   77|    135|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 135, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    135|            break;                                                                       \
  |  |  |  |   79|    135|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  529|    135|            return false;
  530|    135|        }
  531|       |
  532|  31.2k|        dptr = dend;
  533|  31.2k|        bptr = b64buf;
  534|  31.2k|        bend = b64buf + read;
  535|       |        /* checking input data, stripping away whitespaces, checking for end of the b64 data */
  536|  37.3M|        while (bptr < bend) {
  ------------------
  |  Branch (536:16): [True: 37.3M, False: 6.06k]
  ------------------
  537|  37.3M|            if ((bval = B64DEC[*(bptr++)]) < 64) {
  ------------------
  |  Branch (537:17): [True: 36.7M, False: 620k]
  ------------------
  538|  36.7M|                *(dptr++) = bval;
  539|  36.7M|            } else if (bval == 0xfe) {
  ------------------
  |  Branch (539:24): [True: 24.3k, False: 596k]
  ------------------
  540|       |                /* '=' means the base64 padding or the beginning of checksum */
  541|  24.3k|                param->eofb64 = true;
  542|  24.3k|                break;
  543|   596k|            } else if (bval == 0xff) {
  ------------------
  |  Branch (543:24): [True: 862, False: 595k]
  ------------------
  544|    862|                auto ch = *(bptr - 1);
  545|       |                /* OpenPGP message headers without the crc and without trailing = */
  546|    862|                if ((ch == CH_DASH) && !param->noheaders) {
  ------------------
  |  |   34|    862|#define CH_DASH ('-')
  ------------------
  |  Branch (546:21): [True: 717, False: 145]
  |  Branch (546:40): [True: 717, False: 0]
  ------------------
  547|    717|                    param->eofb64 = true;
  548|    717|                    break;
  549|    717|                }
  550|    145|                RNP_LOG("wrong base64 character 0x%02hhX", ch);
  ------------------
  |  |   84|    145|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    145|    do {                                                                                 \
  |  |  |  |   77|    145|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 145, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    145|            break;                                                                       \
  |  |  |  |   79|    145|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  551|    145|                return false;
  552|    862|            }
  553|  37.3M|        }
  554|       |
  555|  31.1k|        dend = dptr;
  556|  31.1k|        dptr = decbuf;
  557|       |        /* Processing full 4s which will go directly to the buf.
  558|       |           After this left < 3 or decbuf has < 4 bytes */
  559|  31.1k|        if ((size_t)(dend - dptr) / 4 * 3 < left) {
  ------------------
  |  Branch (559:13): [True: 30.6k, False: 481]
  ------------------
  560|  30.6k|            pend = decbuf + (dend - dptr) / 4 * 4;
  561|  30.6k|            left -= (dend - dptr) / 4 * 3;
  562|  30.6k|        } else {
  563|    481|            pend = decbuf + (left / 3) * 4;
  564|    481|            left -= left / 3 * 3;
  565|    481|        }
  566|       |
  567|       |        /* this one would the most performance-consuming part for large chunks */
  568|  9.01M|        while (dptr < pend) {
  ------------------
  |  Branch (568:16): [True: 8.98M, False: 31.1k]
  ------------------
  569|  8.98M|            b24 = *dptr++ << 18;
  570|  8.98M|            b24 |= *dptr++ << 12;
  571|  8.98M|            b24 |= *dptr++ << 6;
  572|  8.98M|            b24 |= *dptr++;
  573|  8.98M|            *bufptr++ = b24 >> 16;
  574|  8.98M|            *bufptr++ = b24 >> 8;
  575|  8.98M|            *bufptr++ = b24 & 0xff;
  576|  8.98M|        }
  577|       |
  578|       |        /* moving rest to the beginning of decbuf */
  579|  31.1k|        memmove(decbuf, dptr, dend - dptr);
  580|  31.1k|        dend = decbuf + (dend - dptr);
  581|       |
  582|       |        /* skip already processed data */
  583|  31.1k|        if (!param->eofb64) {
  ------------------
  |  Branch (583:13): [True: 6.06k, False: 25.0k]
  ------------------
  584|       |            /* all input is base64 data or eol/spaces, so skipping it */
  585|  6.06k|            param->readsrc->skip(read);
  586|       |            /* check for eof for base64-encoded data without headers */
  587|  6.06k|            if (param->noheaders && param->readsrc->eof()) {
  ------------------
  |  Branch (587:17): [True: 0, False: 6.06k]
  |  Branch (587:37): [True: 0, False: 0]
  ------------------
  588|      0|                param->readsrc->skip(read);
  589|      0|                param->eofb64 = true;
  590|  6.06k|            } else {
  591|  6.06k|                continue;
  592|  6.06k|            }
  593|  25.0k|        } else {
  594|       |            /* '=' reached, bptr points on it */
  595|  25.0k|            param->readsrc->skip(bptr - b64buf - 1);
  596|  25.0k|        }
  597|       |
  598|       |        /* end of base64 data */
  599|  25.0k|        if (param->noheaders) {
  ------------------
  |  Branch (599:13): [True: 0, False: 25.0k]
  ------------------
  600|      0|            if (!base64_read_padding(*param->readsrc, &eqcount)) {
  ------------------
  |  Branch (600:17): [True: 0, False: 0]
  ------------------
  601|      0|                return false;
  602|      0|            }
  603|      0|            break;
  604|      0|        }
  605|       |        /* reading b64 padding if any */
  606|  25.0k|        if (!armor_read_padding(*param->readsrc, &eqcount)) {
  ------------------
  |  Branch (606:13): [True: 85, False: 24.9k]
  ------------------
  607|     85|            RNP_LOG("wrong padding");
  ------------------
  |  |   84|     85|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     85|    do {                                                                                 \
  |  |  |  |   77|     85|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 85, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     85|            break;                                                                       \
  |  |  |  |   79|     85|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  608|     85|            return false;
  609|     85|        }
  610|       |        /* reading crc */
  611|  24.9k|        if (!armor_read_crc(param)) {
  ------------------
  |  Branch (611:13): [True: 1.65k, False: 23.3k]
  ------------------
  612|  1.65k|            RNP_LOG("Warning: missing or malformed CRC line");
  ------------------
  |  |   84|  1.65k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  1.65k|    do {                                                                                 \
  |  |  |  |   77|  1.65k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 1.65k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  1.65k|            break;                                                                       \
  |  |  |  |   79|  1.65k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  613|  1.65k|        }
  614|       |        /* reading armor trailing line */
  615|  24.9k|        if (!armor_read_trailer(param)) {
  ------------------
  |  Branch (615:13): [True: 500, False: 24.4k]
  ------------------
  616|    500|            RNP_LOG("wrong armor trailer");
  ------------------
  |  |   84|    500|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    500|    do {                                                                                 \
  |  |  |  |   77|    500|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 500, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    500|            break;                                                                       \
  |  |  |  |   79|    500|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  617|    500|            return false;
  618|    500|        }
  619|  24.4k|        break;
  620|  24.9k|    } while (left >= 3);
  ------------------
  |  Branch (620:14): [True: 5.58k, False: 475]
  ------------------
  621|       |
  622|       |    /* process bytes left in decbuf */
  623|       |
  624|  24.9k|    dptr = decbuf;
  625|  24.9k|    pend = decbuf + (dend - decbuf) / 4 * 4;
  626|  24.9k|    bptr = param->rest;
  627|   199k|    while (dptr < pend) {
  ------------------
  |  Branch (627:12): [True: 174k, False: 24.9k]
  ------------------
  628|   174k|        b24 = *dptr++ << 18;
  629|   174k|        b24 |= *dptr++ << 12;
  630|   174k|        b24 |= *dptr++ << 6;
  631|   174k|        b24 |= *dptr++;
  632|   174k|        *bptr++ = b24 >> 16;
  633|   174k|        *bptr++ = b24 >> 8;
  634|   174k|        *bptr++ = b24 & 0xff;
  635|   174k|    }
  636|       |
  637|  24.9k|    if (!armored_update_crc(param, buf, bufptr - (uint8_t *) buf)) {
  ------------------
  |  Branch (637:9): [True: 0, False: 24.9k]
  ------------------
  638|      0|        return false;
  639|      0|    }
  640|       |
  641|  24.9k|    if (param->eofb64) {
  ------------------
  |  Branch (641:9): [True: 24.4k, False: 475]
  ------------------
  642|  24.4k|        if ((dend - dptr + eqcount) % 4 != 0) {
  ------------------
  |  Branch (642:13): [True: 995, False: 23.4k]
  ------------------
  643|    995|            RNP_LOG("wrong b64 padding");
  ------------------
  |  |   84|    995|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    995|    do {                                                                                 \
  |  |  |  |   77|    995|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 995, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    995|            break;                                                                       \
  |  |  |  |   79|    995|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  644|    995|            return false;
  645|    995|        }
  646|       |
  647|  23.4k|        if (eqcount == 1) {
  ------------------
  |  Branch (647:13): [True: 7.12k, False: 16.3k]
  ------------------
  648|  7.12k|            b24 = (*dptr << 10) | (*(dptr + 1) << 4) | (*(dptr + 2) >> 2);
  649|  7.12k|            *bptr++ = b24 >> 8;
  650|  7.12k|            *bptr++ = b24 & 0xff;
  651|  16.3k|        } else if (eqcount == 2) {
  ------------------
  |  Branch (651:20): [True: 7.68k, False: 8.67k]
  ------------------
  652|  7.68k|            *bptr++ = (*dptr << 2) | (*(dptr + 1) >> 4);
  653|  7.68k|        }
  654|       |
  655|       |        /* Calculate CRC after reading whole input stream */
  656|  23.4k|        if (!armored_update_crc(param, param->rest, bptr - param->rest, true)) {
  ------------------
  |  Branch (656:13): [True: 0, False: 23.4k]
  ------------------
  657|      0|            return false;
  658|      0|        }
  659|  23.4k|    } else {
  660|       |        /* few bytes which do not fit to 4 boundary */
  661|  1.21k|        for (int i = 0; i < dend - dptr; i++) {
  ------------------
  |  Branch (661:25): [True: 736, False: 475]
  ------------------
  662|    736|            param->brest[i] = *(dptr + i);
  663|    736|        }
  664|    475|        param->brestlen = dend - dptr;
  665|    475|    }
  666|       |
  667|  23.9k|    param->restlen = bptr - param->rest;
  668|       |
  669|       |    /* check whether we have some bytes to add */
  670|  23.9k|    if ((left > 0) && (param->restlen > 0)) {
  ------------------
  |  Branch (670:9): [True: 23.8k, False: 92]
  |  Branch (670:23): [True: 15.1k, False: 8.67k]
  ------------------
  671|  15.1k|        read = left > param->restlen ? param->restlen : left;
  ------------------
  |  Branch (671:16): [True: 14.7k, False: 387]
  ------------------
  672|  15.1k|        memcpy(bufptr, param->rest, read);
  673|  15.1k|        if (!param->eofb64 && !armored_update_crc(param, bufptr, read)) {
  ------------------
  |  Branch (673:13): [True: 383, False: 14.8k]
  |  Branch (673:31): [True: 0, False: 383]
  ------------------
  674|      0|            return false;
  675|      0|        }
  676|  15.1k|        left -= read;
  677|  15.1k|        param->restpos += read;
  678|  15.1k|    }
  679|       |
  680|  23.9k|    *readres = len - left;
  681|  23.9k|    return true;
  682|  23.9k|}
stream-armor.cpp:_ZL18armor_read_paddingR12pgp_source_tPm:
  340|  25.0k|{
  341|  25.0k|    char   st[64];
  342|  25.0k|    size_t stlen = 0;
  343|       |
  344|  25.0k|    if (!src.peek_line(st, 64, &stlen)) {
  ------------------
  |  Branch (344:9): [True: 22, False: 25.0k]
  ------------------
  345|     22|        return false;
  346|     22|    }
  347|       |
  348|  25.0k|    if ((stlen == 1) || (stlen == 2)) {
  ------------------
  |  Branch (348:9): [True: 8.40k, False: 16.6k]
  |  Branch (348:25): [True: 7.74k, False: 8.88k]
  ------------------
  349|  16.1k|        if ((st[0] != CH_EQ) || ((stlen == 2) && (st[1] != CH_EQ))) {
  ------------------
  |  |   33|  16.1k|#define CH_EQ ('=')
  ------------------
                      if ((st[0] != CH_EQ) || ((stlen == 2) && (st[1] != CH_EQ))) {
  ------------------
  |  |   33|  7.73k|#define CH_EQ ('=')
  ------------------
  |  Branch (349:13): [True: 18, False: 16.1k]
  |  Branch (349:34): [True: 7.73k, False: 8.40k]
  |  Branch (349:50): [True: 16, False: 7.71k]
  ------------------
  350|     34|            return false;
  351|     34|        }
  352|       |
  353|  16.1k|        *read = stlen;
  354|  16.1k|        src.skip(stlen);
  355|  16.1k|        return src.skip_eol();
  356|  16.1k|    } else if (stlen == 5) {
  ------------------
  |  Branch (356:16): [True: 8.20k, False: 683]
  ------------------
  357|  8.20k|        *read = 0;
  358|  8.20k|        return true;
  359|  8.20k|    } else if ((stlen > 5) && !memcmp(st, ST_DASHES, 5)) {
  ------------------
  |  |   45|    673|#define ST_DASHES ("-----")
  ------------------
  |  Branch (359:16): [True: 673, False: 10]
  |  Branch (359:31): [True: 654, False: 19]
  ------------------
  360|       |        /* case with absent crc and 3-byte last chunk */
  361|    654|        *read = 0;
  362|    654|        return true;
  363|    654|    }
  364|     29|    return false;
  365|  25.0k|}
stream-armor.cpp:_ZL14armor_read_crcP26pgp_source_armored_param_t:
  401|  24.9k|{
  402|  24.9k|    uint8_t dec[4] = {0};
  403|  24.9k|    char    crc[8] = {0};
  404|  24.9k|    size_t  clen = 0;
  405|       |
  406|  24.9k|    if (!param->readsrc->peek_line(crc, sizeof(crc), &clen)) {
  ------------------
  |  Branch (406:9): [True: 1.40k, False: 23.5k]
  ------------------
  407|  1.40k|        return false;
  408|  1.40k|    }
  409|       |
  410|  23.5k|    if ((clen != 5) || (crc[0] != CH_EQ)) {
  ------------------
  |  |   33|  23.3k|#define CH_EQ ('=')
  ------------------
  |  Branch (410:9): [True: 212, False: 23.3k]
  |  Branch (410:24): [True: 13, False: 23.3k]
  ------------------
  411|    225|        return false;
  412|    225|    }
  413|       |
  414|   116k|    for (int i = 0; i < 4; i++) {
  ------------------
  |  Branch (414:21): [True: 93.3k, False: 23.3k]
  ------------------
  415|  93.3k|        if ((dec[i] = B64DEC[(uint8_t) crc[i + 1]]) >= 64) {
  ------------------
  |  Branch (415:13): [True: 31, False: 93.3k]
  ------------------
  416|     31|            return false;
  417|     31|        }
  418|  93.3k|    }
  419|       |
  420|  23.3k|    param->readcrc[0] = (dec[0] << 2) | ((dec[1] >> 4) & 0x0F);
  421|  23.3k|    param->readcrc[1] = (dec[1] << 4) | ((dec[2] >> 2) & 0x0F);
  422|  23.3k|    param->readcrc[2] = (dec[2] << 6) | dec[3];
  423|       |
  424|  23.3k|    param->has_crc = true;
  425|       |
  426|  23.3k|    param->readsrc->skip(5);
  427|  23.3k|    return param->readsrc->skip_eol();
  428|  23.3k|}
stream-armor.cpp:_ZL18armor_read_trailerP26pgp_source_armored_param_t:
  432|  24.9k|{
  433|       |    /* Space or tab could get between armor and trailer, see issue #2199 */
  434|  24.9k|    if (!param->readsrc->skip_chars("\r\n \t")) {
  ------------------
  |  Branch (434:9): [True: 0, False: 24.9k]
  ------------------
  435|      0|        return false;
  436|      0|    }
  437|       |
  438|  24.9k|    std::string st = ST_ARMOR_END + param->armorhdr + ST_DASHES;
  ------------------
  |  |   47|  74.9k|#define ST_ARMOR_END ("-----END PGP ")
  ------------------
                  std::string st = ST_ARMOR_END + param->armorhdr + ST_DASHES;
  ------------------
  |  |   45|  24.9k|#define ST_DASHES ("-----")
  ------------------
  439|  24.9k|    std::string str(st.size(), 0);
  440|  24.9k|    if (!param->readsrc->peek_eq(&str.front(), str.size()) || (st != str)) {
  ------------------
  |  Branch (440:9): [True: 100, False: 24.8k]
  |  Branch (440:63): [True: 400, False: 24.4k]
  ------------------
  441|    500|        return false;
  442|    500|    }
  443|  24.4k|    param->readsrc->skip(st.size());
  444|  24.4k|    (void) param->readsrc->skip_chars("\t ");
  445|  24.4k|    (void) param->readsrc->skip_eol();
  446|  24.4k|    return true;
  447|  24.9k|}
stream-armor.cpp:_ZL18armored_update_crcP26pgp_source_armored_param_tPKvmb:
  454|  48.8k|{
  455|  48.8k|    if (param->noheaders) {
  ------------------
  |  Branch (455:9): [True: 0, False: 48.8k]
  ------------------
  456|      0|        return true;
  457|      0|    }
  458|  48.8k|    try {
  459|  48.8k|        param->crc_ctx->add(buf, len);
  460|  48.8k|        if (!finish) {
  ------------------
  |  Branch (460:13): [True: 25.3k, False: 23.4k]
  ------------------
  461|  25.3k|            return true;
  462|  25.3k|        }
  463|  23.4k|        auto crc = param->crc_ctx->finish();
  464|  23.4k|        if (param->has_crc && memcmp(param->readcrc, crc.data(), 3)) {
  ------------------
  |  Branch (464:13): [True: 22.3k, False: 1.16k]
  |  Branch (464:31): [True: 19.6k, False: 2.71k]
  ------------------
  465|  19.6k|            RNP_LOG("Warning: CRC mismatch");
  ------------------
  |  |   84|  19.6k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  19.6k|    do {                                                                                 \
  |  |  |  |   77|  19.6k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 19.6k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  19.6k|            break;                                                                       \
  |  |  |  |   79|  19.6k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  466|  19.6k|        }
  467|  23.4k|        return true;
  468|  48.8k|    } catch (const std::exception &e) {
  469|      0|        RNP_LOG("%s", e.what());
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  470|      0|        return false;
  471|      0|    }
  472|  48.8k|}
stream-armor.cpp:_ZL17armored_src_closeP12pgp_source_t:
  686|  28.2k|{
  687|  28.2k|    auto param = (pgp_source_armored_param_t *) src->param;
  688|  28.2k|    delete param;
  689|       |    src->param = NULL;
  690|  28.2k|}
stream-armor.cpp:_ZL18armor_parse_headerP26pgp_source_armored_param_t:
  841|  27.0k|{
  842|  27.0k|    size_t      skip = 0;
  843|  27.0k|    std::string hdr = peek_armor_header(*param->readsrc, &skip, true);
  844|  27.0k|    if (hdr.empty()) {
  ------------------
  |  Branch (844:9): [True: 309, False: 26.7k]
  ------------------
  845|    309|        RNP_LOG("no armor header");
  ------------------
  |  |   84|    309|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    309|    do {                                                                                 \
  |  |  |  |   77|    309|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 309, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    309|            break;                                                                       \
  |  |  |  |   79|    309|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  846|    309|        return false;
  847|    309|    }
  848|       |
  849|  26.7k|    param->type = armor_str_to_data_type(hdr);
  850|  26.7k|    if (param->type == PGP_ARMORED_UNKNOWN) {
  ------------------
  |  Branch (850:9): [True: 362, False: 26.3k]
  ------------------
  851|    362|        RNP_LOG("unknown armor header");
  ------------------
  |  |   84|    362|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    362|    do {                                                                                 \
  |  |  |  |   77|    362|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 362, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    362|            break;                                                                       \
  |  |  |  |   79|    362|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  852|    362|        return false;
  853|    362|    }
  854|       |
  855|  26.3k|    param->armorhdr = std::move(hdr);
  856|  26.3k|    param->readsrc->skip(skip);
  857|  26.3k|    param->readsrc->skip_chars("\t ");
  858|  26.3k|    return true;
  859|  26.7k|}
stream-armor.cpp:_ZL19armor_parse_headersP26pgp_source_armored_param_t:
  896|  25.9k|{
  897|  25.9k|    std::vector<char> header(ARMORED_PEEK_BUF_SIZE, '\0');
  ------------------
  |  |   46|  25.9k|#define ARMORED_PEEK_BUF_SIZE 1024
  ------------------
  898|       |
  899|  52.8k|    do {
  900|  52.8k|        size_t hdrlen = 0;
  901|  52.8k|        if (!param->readsrc->peek_line(header.data(), header.size(), &hdrlen)) {
  ------------------
  |  Branch (901:13): [True: 2.36k, False: 50.4k]
  ------------------
  902|       |            /* if line is too long let's cut it to the reasonable size */
  903|  2.36k|            param->readsrc->skip(hdrlen);
  904|  2.36k|            if ((hdrlen != header.size() - 1) || !armor_skip_line(*param->readsrc)) {
  ------------------
  |  Branch (904:17): [True: 531, False: 1.83k]
  |  Branch (904:50): [True: 32, False: 1.80k]
  ------------------
  905|    563|                RNP_LOG("failed to peek line: unexpected end of data");
  ------------------
  |  |   84|    563|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    563|    do {                                                                                 \
  |  |  |  |   77|    563|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 563, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    563|            break;                                                                       \
  |  |  |  |   79|    563|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  906|    563|                return false;
  907|    563|            }
  908|  1.80k|            RNP_LOG("Too long armor header - truncated.");
  ------------------
  |  |   84|  1.80k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  1.80k|    do {                                                                                 \
  |  |  |  |   77|  1.80k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 1.80k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  1.80k|            break;                                                                       \
  |  |  |  |   79|  1.80k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  909|  50.4k|        } else if (hdrlen) {
  ------------------
  |  Branch (909:20): [True: 29.6k, False: 20.8k]
  ------------------
  910|  29.6k|            if (is_base64_line(header.data(), hdrlen)) {
  ------------------
  |  Branch (910:17): [True: 4.61k, False: 25.0k]
  ------------------
  911|  4.61k|                RNP_LOG("Warning: no empty line after the base64 headers");
  ------------------
  |  |   84|  4.61k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  4.61k|    do {                                                                                 \
  |  |  |  |   77|  4.61k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 4.61k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  4.61k|            break;                                                                       \
  |  |  |  |   79|  4.61k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  912|  4.61k|                return true;
  913|  4.61k|            }
  914|  25.0k|            param->readsrc->skip(hdrlen);
  915|  25.0k|            if (rnp::is_blank_line(header.data(), hdrlen)) {
  ------------------
  |  Branch (915:17): [True: 0, False: 25.0k]
  ------------------
  916|      0|                return param->readsrc->skip_eol();
  917|      0|            }
  918|  25.0k|        } else {
  919|       |            /* empty line - end of the headers */
  920|  20.8k|            return param->readsrc->skip_eol();
  921|  20.8k|        }
  922|       |
  923|  26.8k|        std::string hdrst(header.begin(), header.begin() + hdrlen);
  924|  26.8k|        size_t      pos = hdrst.find(": ");
  925|  26.8k|        if ((pos != std::string::npos) && armor_header_known(hdrst.substr(0, pos + 2))) {
  ------------------
  |  Branch (925:13): [True: 8.80k, False: 18.0k]
  |  Branch (925:13): [True: 4.22k, False: 22.6k]
  |  Branch (925:43): [True: 4.22k, False: 4.58k]
  ------------------
  926|       |            // do nothing at the moment, just check whether header is known
  927|  22.6k|        } else {
  928|  22.6k|            RNP_LOG("unknown header '%s'", hdrst.c_str());
  ------------------
  |  |   84|  22.6k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  22.6k|    do {                                                                                 \
  |  |  |  |   77|  22.6k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 22.6k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  22.6k|            break;                                                                       \
  |  |  |  |   79|  22.6k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  929|  22.6k|        }
  930|       |
  931|  26.8k|        if (!param->readsrc->skip_eol()) {
  ------------------
  |  Branch (931:13): [True: 0, False: 26.8k]
  ------------------
  932|      0|            return false;
  933|      0|        }
  934|  26.8k|    } while (1);
  ------------------
  |  Branch (934:14): [True: 26.8k, Folded]
  ------------------
  935|  25.9k|}
stream-armor.cpp:_ZL15armor_skip_lineR12pgp_source_t:
  863|  1.83k|{
  864|  1.83k|    char header[ARMORED_PEEK_BUF_SIZE] = {0};
  865|  4.45k|    do {
  866|  4.45k|        size_t hdrlen = 0;
  867|  4.45k|        bool   res = src.peek_line(header, sizeof(header), &hdrlen);
  868|  4.45k|        if (hdrlen) {
  ------------------
  |  Branch (868:13): [True: 4.08k, False: 375]
  ------------------
  869|  4.08k|            src.skip(hdrlen);
  870|  4.08k|        }
  871|  4.45k|        if (res || (hdrlen < sizeof(header) - 1)) {
  ------------------
  |  Branch (871:13): [True: 1.80k, False: 2.65k]
  |  Branch (871:20): [True: 32, False: 2.62k]
  ------------------
  872|  1.83k|            return res;
  873|  1.83k|        }
  874|  4.45k|    } while (1);
  ------------------
  |  Branch (874:14): [True: 2.62k, Folded]
  ------------------
  875|  1.83k|}
stream-armor.cpp:_ZL18armor_header_knownRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE:
  889|  8.80k|{
  890|  8.80k|    return (name == ST_HEADER_VERSION) || (name == ST_HEADER_COMMENT) ||
  ------------------
  |  |   50|  8.80k|#define ST_HEADER_VERSION ("Version: ")
  ------------------
                  return (name == ST_HEADER_VERSION) || (name == ST_HEADER_COMMENT) ||
  ------------------
  |  |   51|  7.33k|#define ST_HEADER_COMMENT ("Comment: ")
  ------------------
  |  Branch (890:12): [True: 1.47k, False: 7.33k]
  |  Branch (890:43): [True: 1.41k, False: 5.92k]
  ------------------
  891|  5.92k|           (name == ST_HEADER_CHARSET) || (name == ST_HEADER_HASH);
  ------------------
  |  |   53|  5.92k|#define ST_HEADER_CHARSET ("Charset: ")
  ------------------
                         (name == ST_HEADER_CHARSET) || (name == ST_HEADER_HASH);
  ------------------
  |  |   52|  5.53k|#define ST_HEADER_HASH ("Hash: ")
  ------------------
  |  Branch (891:12): [True: 387, False: 5.53k]
  |  Branch (891:43): [True: 951, False: 4.58k]
  ------------------
  892|  8.80k|}
stream-armor.cpp:_ZL14is_base64_linePKcm:
  879|  29.6k|{
  880|   185k|    for (size_t i = 0; i < len && line[i]; i++) {
  ------------------
  |  Branch (880:24): [True: 180k, False: 4.58k]
  |  Branch (880:35): [True: 180k, False: 23]
  ------------------
  881|   180k|        if (B64DEC[(uint8_t) line[i]] == 0xff)
  ------------------
  |  Branch (881:13): [True: 25.0k, False: 155k]
  ------------------
  882|  25.0k|            return false;
  883|   180k|    }
  884|  4.61k|    return true;
  885|  29.6k|}

_ZN3rnp13ArmoredSource8multipleEv:
  123|  27.8k|    {
  124|  27.8k|        return multiple_;
  125|  27.8k|    }

_ZN12pgp_source_t4readEPvmPm:
   57|  2.74M|{
   58|  2.74M|    size_t left = len;
   59|  2.74M|    size_t read;
   60|  2.74M|    bool   readahead = cache ? cache->readahead : false;
  ------------------
  |  Branch (60:24): [True: 2.74M, False: 0]
  ------------------
   61|       |
   62|  2.74M|    if (error_) {
  ------------------
  |  Branch (62:9): [True: 0, False: 2.74M]
  ------------------
   63|      0|        return false;
   64|      0|    }
   65|       |
   66|  2.74M|    if (eof_ || (len == 0)) {
  ------------------
  |  Branch (66:9): [True: 9.42k, False: 2.73M]
  |  Branch (66:17): [True: 0, False: 2.73M]
  ------------------
   67|  9.42k|        *readres = 0;
   68|  9.42k|        return true;
   69|  9.42k|    }
   70|       |
   71|       |    // Do not read more then available if source size is known
   72|  2.73M|    if (knownsize && (readb + len > size)) {
  ------------------
  |  Branch (72:9): [True: 1.51M, False: 1.21M]
  |  Branch (72:22): [True: 9.33k, False: 1.51M]
  ------------------
   73|  9.33k|        len = size - readb;
   74|  9.33k|        left = len;
   75|  9.33k|        readahead = false;
   76|  9.33k|    }
   77|       |
   78|       |    // Check whether we have cache and there is data inside
   79|  2.73M|    if (cache && (cache->len > cache->pos)) {
  ------------------
  |  Branch (79:9): [True: 2.73M, False: 0]
  |  Branch (79:18): [True: 2.73M, False: 8.68k]
  ------------------
   80|  2.73M|        read = cache->len - cache->pos;
   81|  2.73M|        if (read >= len) {
  ------------------
  |  Branch (81:13): [True: 2.70M, False: 25.8k]
  ------------------
   82|  2.70M|            memcpy(buf, &cache->buf[cache->pos], len);
   83|  2.70M|            cache->pos += len;
   84|  2.70M|            goto finish;
   85|  2.70M|        } else {
   86|  25.8k|            memcpy(buf, &cache->buf[cache->pos], read);
   87|  25.8k|            cache->pos += read;
   88|  25.8k|            buf = (uint8_t *) buf + read;
   89|  25.8k|            left = len - read;
   90|  25.8k|        }
   91|  2.73M|    }
   92|       |
   93|       |    // If we got here then we have empty cache or no cache at all
   94|  36.1k|    while (left > 0) {
  ------------------
  |  Branch (94:12): [True: 35.7k, False: 408]
  ------------------
   95|  35.7k|        if (left > sizeof(cache->buf) || !readahead || !cache) {
  ------------------
  |  Branch (95:13): [True: 395, False: 35.3k]
  |  Branch (95:42): [True: 495, False: 34.8k]
  |  Branch (95:56): [True: 0, False: 34.8k]
  ------------------
   96|       |            // If there is no cache or chunk is larger then read directly
   97|    890|            if (!raw_read(this, buf, left, &read)) {
  ------------------
  |  Branch (97:17): [True: 20, False: 870]
  ------------------
   98|     20|                error_ = 1;
   99|     20|                return false;
  100|     20|            }
  101|    870|            if (!read) {
  ------------------
  |  Branch (101:17): [True: 321, False: 549]
  ------------------
  102|    321|                eof_ = true;
  103|    321|                len = len - left;
  104|    321|                goto finish;
  105|    321|            }
  106|    549|            left -= read;
  107|    549|            buf = (uint8_t *) buf + read;
  108|  34.8k|        } else {
  109|       |            // Try to fill the cache to avoid small reads
  110|  34.8k|            if (!raw_read(this, &cache->buf[0], sizeof(cache->buf), &read)) {
  ------------------
  |  Branch (110:17): [True: 389, False: 34.4k]
  ------------------
  111|    389|                error_ = true;
  112|    389|                return false;
  113|    389|            }
  114|  34.4k|            if (!read) {
  ------------------
  |  Branch (114:17): [True: 7.32k, False: 27.1k]
  ------------------
  115|  7.32k|                eof_ = true;
  116|  7.32k|                len = len - left;
  117|  7.32k|                goto finish;
  118|  27.1k|            } else if (read < left) {
  ------------------
  |  Branch (118:24): [True: 1.00k, False: 26.1k]
  ------------------
  119|  1.00k|                memcpy(buf, &cache->buf[0], read);
  120|  1.00k|                left -= read;
  121|  1.00k|                buf = (uint8_t *) buf + read;
  122|  26.1k|            } else {
  123|  26.1k|                memcpy(buf, &cache->buf[0], left);
  124|  26.1k|                cache->pos = left;
  125|  26.1k|                cache->len = read;
  126|  26.1k|                goto finish;
  127|  26.1k|            }
  128|  34.4k|        }
  129|  35.7k|    }
  130|       |
  131|  2.73M|finish:
  132|  2.73M|    readb += len;
  133|  2.73M|    if (knownsize && (readb == size)) {
  ------------------
  |  Branch (133:9): [True: 1.51M, False: 1.21M]
  |  Branch (133:22): [True: 15.0k, False: 1.50M]
  ------------------
  134|  15.0k|        eof_ = true;
  135|  15.0k|    }
  136|  2.73M|    *readres = len;
  137|  2.73M|    return true;
  138|  34.5k|}
_ZN12pgp_source_t7read_eqEPvm:
  142|  1.71M|{
  143|  1.71M|    size_t res = 0;
  144|  1.71M|    return read(buf, len, &res) && (res == len);
  ------------------
  |  Branch (144:12): [True: 1.71M, False: 15]
  |  Branch (144:36): [True: 1.71M, False: 495]
  ------------------
  145|  1.71M|}
_ZN12pgp_source_t4peekEPvmPm:
  149|  26.7M|{
  150|  26.7M|    if (error_) {
  ------------------
  |  Branch (150:9): [True: 2.31k, False: 26.7M]
  ------------------
  151|  2.31k|        return false;
  152|  2.31k|    }
  153|  26.7M|    if (!cache || (len > sizeof(cache->buf))) {
  ------------------
  |  Branch (153:9): [True: 0, False: 26.7M]
  |  Branch (153:19): [True: 0, False: 26.7M]
  ------------------
  154|      0|        return false;
  155|      0|    }
  156|  26.7M|    if (eof_) {
  ------------------
  |  Branch (156:9): [True: 3.02k, False: 26.7M]
  ------------------
  157|  3.02k|        *peeked = 0;
  158|  3.02k|        return true;
  159|  3.02k|    }
  160|       |
  161|  26.7M|    size_t read = 0;
  162|  26.7M|    bool   readahead = cache->readahead;
  163|       |    // Do not read more then available if source size is known
  164|  26.7M|    if (knownsize && (readb + len > size)) {
  ------------------
  |  Branch (164:9): [True: 22.8M, False: 3.89M]
  |  Branch (164:22): [True: 66.5k, False: 22.7M]
  ------------------
  165|  66.5k|        len = size - readb;
  166|  66.5k|        readahead = false;
  167|  66.5k|    }
  168|       |
  169|  26.7M|    if (cache->len - cache->pos >= len) {
  ------------------
  |  Branch (169:9): [True: 26.5M, False: 193k]
  ------------------
  170|  26.5M|        if (buf) {
  ------------------
  |  Branch (170:13): [True: 26.5M, False: 0]
  ------------------
  171|  26.5M|            memcpy(buf, &cache->buf[cache->pos], len);
  172|  26.5M|        }
  173|  26.5M|        *peeked = len;
  174|  26.5M|        return true;
  175|  26.5M|    }
  176|       |
  177|   193k|    if (cache->pos > 0) {
  ------------------
  |  Branch (177:9): [True: 20.2k, False: 172k]
  ------------------
  178|  20.2k|        memmove(&cache->buf[0], &cache->buf[cache->pos], cache->len - cache->pos);
  179|  20.2k|        cache->len -= cache->pos;
  180|  20.2k|        cache->pos = 0;
  181|  20.2k|    }
  182|       |
  183|   193k|    while (cache->len < len) {
  ------------------
  |  Branch (183:12): [True: 193k, False: 0]
  ------------------
  184|   193k|        read = readahead ? sizeof(cache->buf) - cache->len : len - cache->len;
  ------------------
  |  Branch (184:16): [True: 192k, False: 72]
  ------------------
  185|   193k|        if (knownsize && (readb + read > size)) {
  ------------------
  |  Branch (185:13): [True: 35.4k, False: 157k]
  |  Branch (185:26): [True: 32.8k, False: 2.60k]
  ------------------
  186|  32.8k|            read = size - readb;
  187|  32.8k|        }
  188|   193k|        if (!raw_read(this, &cache->buf[cache->len], read, &read)) {
  ------------------
  |  Branch (188:13): [True: 2.96k, False: 190k]
  ------------------
  189|  2.96k|            error_ = true;
  190|  2.96k|            return false;
  191|  2.96k|        }
  192|   190k|        if (!read) {
  ------------------
  |  Branch (192:13): [True: 128k, False: 61.7k]
  ------------------
  193|   128k|            if (buf) {
  ------------------
  |  Branch (193:17): [True: 128k, False: 0]
  ------------------
  194|   128k|                memcpy(buf, &cache->buf[0], cache->len);
  195|   128k|            }
  196|   128k|            *peeked = cache->len;
  197|   128k|            return true;
  198|   128k|        }
  199|  61.7k|        cache->len += read;
  200|  61.7k|        if (cache->len >= len) {
  ------------------
  |  Branch (200:13): [True: 61.7k, False: 2]
  ------------------
  201|  61.7k|            if (buf) {
  ------------------
  |  Branch (201:17): [True: 61.7k, False: 0]
  ------------------
  202|  61.7k|                memcpy(buf, cache->buf, len);
  203|  61.7k|            }
  204|  61.7k|            *peeked = len;
  205|  61.7k|            return true;
  206|  61.7k|        }
  207|  61.7k|    }
  208|      0|    return false;
  209|   193k|}
_ZN12pgp_source_t7peek_eqEPvm:
  213|  19.7M|{
  214|  19.7M|    size_t res = 0;
  215|  19.7M|    return peek(buf, len, &res) && (res == len);
  ------------------
  |  Branch (215:12): [True: 19.7M, False: 2.97k]
  |  Branch (215:36): [True: 19.6M, False: 21.6k]
  ------------------
  216|  19.7M|}
_ZN12pgp_source_t4skipEm:
  220|   321k|{
  221|   321k|    if (cache && (cache->len - cache->pos >= len)) {
  ------------------
  |  Branch (221:9): [True: 321k, False: 0]
  |  Branch (221:18): [True: 321k, False: 0]
  ------------------
  222|   321k|        readb += len;
  223|   321k|        cache->pos += len;
  224|   321k|        return;
  225|   321k|    }
  226|       |
  227|      0|    size_t  res = 0;
  228|      0|    uint8_t sbuf[16];
  229|      0|    if (len < sizeof(sbuf)) {
  ------------------
  |  Branch (229:9): [True: 0, False: 0]
  ------------------
  230|      0|        (void) read(sbuf, len, &res);
  231|      0|        return;
  232|      0|    }
  233|      0|    if (eof()) {
  ------------------
  |  Branch (233:9): [True: 0, False: 0]
  ------------------
  234|      0|        return;
  235|      0|    }
  236|       |
  237|      0|    void *buf = calloc(1, std::min((size_t) PGP_INPUT_CACHE_SIZE, len));
  ------------------
  |  |   35|      0|#define PGP_INPUT_CACHE_SIZE 32768
  ------------------
  238|      0|    if (!buf) {
  ------------------
  |  Branch (238:9): [True: 0, False: 0]
  ------------------
  239|      0|        error_ = true;
  240|      0|        return;
  241|      0|    }
  242|       |
  243|      0|    while (len && !eof()) {
  ------------------
  |  Branch (243:12): [True: 0, False: 0]
  |  Branch (243:19): [True: 0, False: 0]
  ------------------
  244|      0|        if (!read(buf, std::min((size_t) PGP_INPUT_CACHE_SIZE, len), &res)) {
  ------------------
  |  |   35|      0|#define PGP_INPUT_CACHE_SIZE 32768
  ------------------
  |  Branch (244:13): [True: 0, False: 0]
  ------------------
  245|      0|            break;
  246|      0|        }
  247|      0|        len -= res;
  248|      0|    }
  249|      0|    free(buf);
  250|      0|}
_ZN12pgp_source_t6finishEv:
  254|  3.46k|{
  255|  3.46k|    if (raw_finish) {
  ------------------
  |  Branch (255:9): [True: 2.10k, False: 1.35k]
  ------------------
  256|  2.10k|        return raw_finish(this);
  257|  2.10k|    }
  258|  1.35k|    return RNP_SUCCESS;
  259|  3.46k|}
_ZNK12pgp_source_t5errorEv:
  263|   124k|{
  264|   124k|    return error_;
  265|   124k|}
_ZN12pgp_source_t3eofEv:
  269|  6.54M|{
  270|  6.54M|    if (eof_) {
  ------------------
  |  Branch (270:9): [True: 58.2k, False: 6.49M]
  ------------------
  271|  58.2k|        return true;
  272|  58.2k|    }
  273|       |    /* Error on stream read is NOT considered as eof. See error(). */
  274|  6.49M|    uint8_t check;
  275|  6.49M|    size_t  read = 0;
  276|  6.49M|    return peek(&check, 1, &read) && (read == 0);
  ------------------
  |  Branch (276:12): [True: 6.48M, False: 2.30k]
  |  Branch (276:38): [True: 109k, False: 6.37M]
  ------------------
  277|  6.54M|}
_ZN12pgp_source_t5closeEv:
  281|   161k|{
  282|   161k|    if (raw_close) {
  ------------------
  |  Branch (282:9): [True: 74.5k, False: 87.2k]
  ------------------
  283|  74.5k|        raw_close(this);
  284|  74.5k|    }
  285|       |
  286|   161k|    if (cache) {
  ------------------
  |  Branch (286:9): [True: 73.3k, False: 88.4k]
  ------------------
  287|  73.3k|        free(cache);
  288|       |        cache = NULL;
  289|  73.3k|    }
  290|   161k|}
_ZN12pgp_source_t8skip_eolEv:
  294|   149k|{
  295|   149k|    uint8_t eol[2];
  296|   149k|    size_t  read;
  297|       |
  298|   149k|    if (!peek(eol, 2, &read) || !read) {
  ------------------
  |  Branch (298:9): [True: 0, False: 149k]
  |  Branch (298:33): [True: 41, False: 149k]
  ------------------
  299|     41|        return false;
  300|     41|    }
  301|   149k|    if (eol[0] == '\n') {
  ------------------
  |  Branch (301:9): [True: 94.7k, False: 54.5k]
  ------------------
  302|  94.7k|        skip(1);
  303|  94.7k|        return true;
  304|  94.7k|    }
  305|  54.5k|    if ((read == 2) && (eol[0] == '\r') && (eol[1] == '\n')) {
  ------------------
  |  Branch (305:9): [True: 54.4k, False: 38]
  |  Branch (305:24): [True: 52.9k, False: 1.55k]
  |  Branch (305:44): [True: 52.6k, False: 307]
  ------------------
  306|  52.6k|        skip(2);
  307|  52.6k|        return true;
  308|  52.6k|    }
  309|  1.90k|    return false;
  310|  54.5k|}
_ZN12pgp_source_t10skip_charsERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE:
  314|  75.8k|{
  315|  76.6k|    do {
  316|  76.6k|        char   ch = 0;
  317|  76.6k|        size_t read = 0;
  318|  76.6k|        if (!peek(&ch, 1, &read)) {
  ------------------
  |  Branch (318:13): [True: 0, False: 76.6k]
  ------------------
  319|      0|            return false;
  320|      0|        }
  321|  76.6k|        if (!read) {
  ------------------
  |  Branch (321:13): [True: 55, False: 76.6k]
  ------------------
  322|       |            /* return true only if there is no underlying read error */
  323|     55|            return true;
  324|     55|        }
  325|  76.6k|        if (chars.find(ch) == std::string::npos) {
  ------------------
  |  Branch (325:13): [True: 75.7k, False: 851]
  ------------------
  326|  75.7k|            return true;
  327|  75.7k|        }
  328|    851|        skip(1);
  329|    851|    } while (1);
  ------------------
  |  Branch (329:14): [True: 851, Folded]
  ------------------
  330|  75.8k|}
_ZN12pgp_source_t9peek_lineEPcmPm:
  334|   118k|{
  335|   118k|    size_t scan_pos = 0;
  336|   118k|    size_t inc = 64;
  337|   118k|    len = len - 1;
  338|       |
  339|   149k|    do {
  340|   149k|        size_t to_peek = scan_pos + inc;
  341|   149k|        to_peek = to_peek > len ? len : to_peek;
  ------------------
  |  Branch (341:19): [True: 54.5k, False: 95.2k]
  ------------------
  342|   149k|        inc = inc * 2;
  343|       |
  344|       |        /* inefficient, each time we again read from the beginning */
  345|   149k|        if (!peek(buf, to_peek, readres)) {
  ------------------
  |  Branch (345:13): [True: 0, False: 149k]
  ------------------
  346|      0|            return false;
  347|      0|        }
  348|       |
  349|       |        /* we continue scanning where we stopped previously */
  350|  7.61M|        for (; scan_pos < *readres; scan_pos++) {
  ------------------
  |  Branch (350:16): [True: 7.57M, False: 38.2k]
  ------------------
  351|  7.57M|            if (buf[scan_pos] == '\n') {
  ------------------
  |  Branch (351:17): [True: 111k, False: 7.46M]
  ------------------
  352|   111k|                if ((scan_pos > 0) && (buf[scan_pos - 1] == '\r')) {
  ------------------
  |  Branch (352:21): [True: 96.3k, False: 15.3k]
  |  Branch (352:39): [True: 44.6k, False: 51.6k]
  ------------------
  353|  44.6k|                    scan_pos--;
  354|  44.6k|                }
  355|   111k|                buf[scan_pos] = '\0';
  356|   111k|                *readres = scan_pos;
  357|   111k|                return true;
  358|   111k|            }
  359|  7.57M|        }
  360|  38.2k|        if (*readres < to_peek) {
  ------------------
  |  Branch (360:13): [True: 817, False: 37.4k]
  ------------------
  361|    817|            return false;
  362|    817|        }
  363|  38.2k|    } while (scan_pos < len);
  ------------------
  |  Branch (363:14): [True: 31.5k, False: 5.84k]
  ------------------
  364|  5.84k|    return false;
  365|   118k|}
_Z15init_src_commonP12pgp_source_tm:
  369|  73.3k|{
  370|  73.3k|    memset(src, 0, sizeof(*src));
  371|  73.3k|    src->cache = (pgp_source_cache_t *) calloc(1, sizeof(*src->cache));
  372|  73.3k|    if (!src->cache) {
  ------------------
  |  Branch (372:9): [True: 0, False: 73.3k]
  ------------------
  373|      0|        RNP_LOG("cache allocation failed");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  374|      0|        return false;
  375|      0|    }
  376|  73.3k|    src->cache->readahead = true;
  377|  73.3k|    if (!paramsize) {
  ------------------
  |  Branch (377:9): [True: 35.0k, False: 38.2k]
  ------------------
  378|  35.0k|        return true;
  379|  35.0k|    }
  380|  38.2k|    src->param = calloc(1, paramsize);
  381|  38.2k|    if (!src->param) {
  ------------------
  |  Branch (381:9): [True: 0, False: 38.2k]
  ------------------
  382|      0|        RNP_LOG("param allocation failed");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  383|      0|        free(src->cache);
  384|      0|        src->cache = NULL;
  385|      0|        return false;
  386|      0|    }
  387|  38.2k|    return true;
  388|  38.2k|}
_Z12init_mem_srcP12pgp_source_tPKvmb:
  546|  33.7k|{
  547|  33.7k|    if (!mem && len) {
  ------------------
  |  Branch (547:9): [True: 0, False: 33.7k]
  |  Branch (547:17): [True: 0, False: 0]
  ------------------
  548|      0|        return RNP_ERROR_NULL_POINTER;
  549|      0|    }
  550|       |    /* this is actually double buffering, but then src_peek will fail */
  551|  33.7k|    if (!init_src_common(src, sizeof(pgp_source_mem_param_t))) {
  ------------------
  |  Branch (551:9): [True: 0, False: 33.7k]
  ------------------
  552|      0|        return RNP_ERROR_OUT_OF_MEMORY;
  553|      0|    }
  554|       |
  555|  33.7k|    pgp_source_mem_param_t *param = (pgp_source_mem_param_t *) src->param;
  556|  33.7k|    param->memory = mem;
  557|  33.7k|    param->len = len;
  558|  33.7k|    param->pos = 0;
  559|  33.7k|    param->free = free;
  560|  33.7k|    src->raw_read = mem_src_read;
  561|  33.7k|    src->raw_close = mem_src_close;
  562|  33.7k|    src->raw_finish = NULL;
  563|  33.7k|    src->size = len;
  564|  33.7k|    src->knownsize = 1;
  565|  33.7k|    src->type = PGP_STREAM_MEMORY;
  566|       |
  567|  33.7k|    return RNP_SUCCESS;
  568|  33.7k|}
_Z15init_dst_commonP10pgp_dest_tm:
  629|   683k|{
  630|   683k|    try {
  631|   683k|        *dst = pgp_dest_t();
  632|   683k|    } catch (const std::exception &e) {
  633|      0|        return false; // LCOV_EXCL_LINE
  634|      0|    }
  635|   683k|    if (!paramsize) {
  ------------------
  |  Branch (635:9): [True: 0, False: 683k]
  ------------------
  636|      0|        return true;
  637|      0|    }
  638|       |    /* allocate param */
  639|   683k|    dst->param = calloc(1, paramsize);
  640|   683k|    if (!dst->param) {
  ------------------
  |  Branch (640:9): [True: 0, False: 683k]
  ------------------
  641|       |        /* LCOV_EXCL_START */
  642|      0|        RNP_LOG("allocation failed");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  643|      0|        return false;
  644|       |        /* LCOV_EXCL_END */
  645|      0|    }
  646|   683k|    return true;
  647|   683k|}
_Z9dst_writeP10pgp_dest_tPKvm:
  651|  1.37M|{
  652|       |    /* we call write function only if all previous calls succeeded */
  653|  1.37M|    if ((len > 0) && (dst->write) && (dst->werr == RNP_SUCCESS)) {
  ------------------
  |  Branch (653:9): [True: 912k, False: 461k]
  |  Branch (653:22): [True: 912k, False: 0]
  |  Branch (653:38): [True: 912k, False: 0]
  ------------------
  654|       |        /* if cache non-empty and len will overflow it then fill it and write out */
  655|   912k|        if ((dst->clen > 0) && (dst->clen + len > dst->cache.size())) {
  ------------------
  |  Branch (655:13): [True: 0, False: 912k]
  |  Branch (655:32): [True: 0, False: 0]
  ------------------
  656|      0|            memcpy(dst->cache.data() + dst->clen, buf, dst->cache.size() - dst->clen);
  657|      0|            buf = (uint8_t *) buf + dst->cache.size() - dst->clen;
  658|      0|            len -= dst->cache.size() - dst->clen;
  659|      0|            dst->werr = dst->write(dst, dst->cache.data(), dst->cache.size());
  660|      0|            dst->writeb += dst->cache.size();
  661|      0|            dst->clen = 0;
  662|      0|            if (dst->werr != RNP_SUCCESS) {
  ------------------
  |  Branch (662:17): [True: 0, False: 0]
  ------------------
  663|      0|                return;
  664|      0|            }
  665|      0|        }
  666|       |
  667|       |        /* here everything will fit into the cache or cache is empty */
  668|   912k|        if (dst->no_cache || (len > dst->cache.size())) {
  ------------------
  |  Branch (668:13): [True: 912k, False: 0]
  |  Branch (668:30): [True: 0, False: 0]
  ------------------
  669|   912k|            dst->werr = dst->write(dst, buf, len);
  670|   912k|            if (!dst->werr) {
  ------------------
  |  Branch (670:17): [True: 912k, False: 0]
  ------------------
  671|   912k|                dst->writeb += len;
  672|   912k|            }
  673|   912k|        } else {
  674|      0|            memcpy(dst->cache.data() + dst->clen, buf, len);
  675|      0|            dst->clen += len;
  676|      0|        }
  677|   912k|    }
  678|  1.37M|}
_Z9dst_flushP10pgp_dest_t:
  706|  11.7k|{
  707|  11.7k|    if ((dst->clen > 0) && (dst->write) && (dst->werr == RNP_SUCCESS)) {
  ------------------
  |  Branch (707:9): [True: 0, False: 11.7k]
  |  Branch (707:28): [True: 0, False: 0]
  |  Branch (707:44): [True: 0, False: 0]
  ------------------
  708|      0|        dst->werr = dst->write(dst, dst->cache.data(), dst->clen);
  709|      0|        dst->writeb += dst->clen;
  710|      0|        dst->clen = 0;
  711|      0|    }
  712|  11.7k|}
_Z10dst_finishP10pgp_dest_t:
  716|     75|{
  717|     75|    rnp_result_t res = RNP_SUCCESS;
  718|       |
  719|     75|    if (!dst->finished) {
  ------------------
  |  Branch (719:9): [True: 75, False: 0]
  ------------------
  720|       |        /* flush write cache in the dst */
  721|     75|        dst_flush(dst);
  722|     75|        res = dst->werr;
  723|       |        /* do not run the finish callback (e.g. renaming of the temporary
  724|       |         * output file over the target one) if the data was not written
  725|       |         * in full, otherwise a truncated output would replace it */
  726|     75|        if (dst->finish && !res) {
  ------------------
  |  Branch (726:13): [True: 0, False: 75]
  |  Branch (726:28): [True: 0, False: 0]
  ------------------
  727|      0|            res = dst->finish(dst);
  728|      0|        }
  729|     75|        dst->finished = true;
  730|     75|    }
  731|       |
  732|     75|    return res;
  733|     75|}
_Z9dst_closeP10pgp_dest_tb:
  737|   695k|{
  738|   695k|    if (!discard && !dst->finished) {
  ------------------
  |  Branch (738:9): [True: 75, False: 695k]
  |  Branch (738:21): [True: 75, False: 0]
  ------------------
  739|     75|        dst_finish(dst);
  740|     75|    }
  741|       |
  742|   695k|    if (dst->close) {
  ------------------
  |  Branch (742:9): [True: 695k, False: 0]
  ------------------
  743|   695k|        dst->close(dst, discard);
  744|   695k|    }
  745|   695k|}
_Z13init_mem_destP10pgp_dest_tPvj:
 1057|   683k|{
 1058|   683k|    pgp_dest_mem_param_t *param;
 1059|       |
 1060|   683k|    if (!init_dst_common(dst, sizeof(*param))) {
  ------------------
  |  Branch (1060:9): [True: 0, False: 683k]
  ------------------
 1061|      0|        return RNP_ERROR_OUT_OF_MEMORY;
 1062|      0|    }
 1063|       |
 1064|   683k|    param = (pgp_dest_mem_param_t *) dst->param;
 1065|       |
 1066|   683k|    param->maxalloc = len;
 1067|   683k|    param->allocated = mem ? len : 0;
  ------------------
  |  Branch (1067:24): [True: 0, False: 683k]
  ------------------
 1068|   683k|    param->memory = mem;
 1069|   683k|    param->free = !mem;
 1070|   683k|    param->secure = false;
 1071|       |
 1072|   683k|    dst->write = mem_dst_write;
 1073|   683k|    dst->close = mem_dst_close;
 1074|   683k|    dst->type = PGP_STREAM_MEMORY;
 1075|   683k|    dst->werr = RNP_SUCCESS;
 1076|   683k|    dst->no_cache = true;
 1077|       |
 1078|   683k|    return RNP_SUCCESS;
 1079|   683k|}
_Z19mem_dest_get_memoryP10pgp_dest_t:
 1097|   683k|{
 1098|   683k|    if (dst->type != PGP_STREAM_MEMORY) {
  ------------------
  |  Branch (1098:9): [True: 0, False: 683k]
  ------------------
 1099|      0|        RNP_LOG("wrong function call");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1100|      0|        return NULL;
 1101|      0|    }
 1102|       |
 1103|   683k|    pgp_dest_mem_param_t *param = (pgp_dest_mem_param_t *) dst->param;
 1104|       |
 1105|   683k|    if (param) {
  ------------------
  |  Branch (1105:9): [True: 683k, False: 0]
  ------------------
 1106|   683k|        return param->memory;
 1107|   683k|    }
 1108|       |
 1109|      0|    return NULL;
 1110|   683k|}
_Z14init_null_destP10pgp_dest_t:
 1181|  11.6k|{
 1182|  11.6k|    dst->param = NULL;
 1183|  11.6k|    dst->write = null_dst_write;
 1184|  11.6k|    dst->close = null_dst_close;
 1185|  11.6k|    dst->type = PGP_STREAM_NULL;
 1186|  11.6k|    dst->writeb = 0;
 1187|  11.6k|    dst->clen = 0;
 1188|  11.6k|    dst->werr = RNP_SUCCESS;
 1189|  11.6k|    dst->no_cache = true;
 1190|       |
 1191|  11.6k|    return RNP_SUCCESS;
 1192|  11.6k|}
_Z13dst_write_srcP12pgp_source_tP10pgp_dest_tm:
 1196|  2.64k|{
 1197|  2.64k|    const size_t bufsize = PGP_INPUT_CACHE_SIZE;
  ------------------
  |  |   35|  2.64k|#define PGP_INPUT_CACHE_SIZE 32768
  ------------------
 1198|  2.64k|    uint8_t *    readbuf = (uint8_t *) malloc(bufsize);
 1199|  2.64k|    if (!readbuf) {
  ------------------
  |  Branch (1199:9): [True: 0, False: 2.64k]
  ------------------
 1200|      0|        return RNP_ERROR_OUT_OF_MEMORY;
 1201|      0|    }
 1202|  2.64k|    rnp_result_t res = RNP_SUCCESS;
 1203|  2.64k|    try {
 1204|  2.64k|        size_t   read;
 1205|  2.64k|        uint64_t totalread = 0;
 1206|       |
 1207|  5.68k|        while (!src->eof_) {
  ------------------
  |  Branch (1207:16): [True: 3.08k, False: 2.59k]
  ------------------
 1208|  3.08k|            if (!src->read(readbuf, bufsize, &read)) {
  ------------------
  |  Branch (1208:17): [True: 50, False: 3.03k]
  ------------------
 1209|     50|                res = RNP_ERROR_GENERIC;
 1210|     50|                break;
 1211|     50|            }
 1212|  3.03k|            if (!read) {
  ------------------
  |  Branch (1212:17): [True: 0, False: 3.03k]
  ------------------
 1213|      0|                continue;
 1214|      0|            }
 1215|  3.03k|            totalread += read;
 1216|  3.03k|            if (limit && totalread > limit) {
  ------------------
  |  Branch (1216:17): [True: 3.03k, False: 0]
  |  Branch (1216:26): [True: 0, False: 3.03k]
  ------------------
 1217|      0|                res = RNP_ERROR_GENERIC;
 1218|      0|                break;
 1219|      0|            }
 1220|  3.03k|            if (dst) {
  ------------------
  |  Branch (1220:17): [True: 0, False: 3.03k]
  ------------------
 1221|      0|                dst_write(dst, readbuf, read);
 1222|      0|                if (dst->werr) {
  ------------------
  |  Branch (1222:21): [True: 0, False: 0]
  ------------------
 1223|      0|                    RNP_LOG("failed to output data");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1224|      0|                    res = RNP_ERROR_WRITE;
 1225|      0|                    break;
 1226|      0|                }
 1227|      0|            }
 1228|  3.03k|        }
 1229|  2.64k|    } catch (...) {
 1230|      0|        free(readbuf);
 1231|      0|        throw;
 1232|      0|    }
 1233|  2.64k|    free(readbuf);
 1234|  2.64k|    if (res || !dst) {
  ------------------
  |  Branch (1234:9): [True: 50, False: 2.59k]
  |  Branch (1234:16): [True: 2.59k, False: 0]
  ------------------
 1235|  2.64k|        return res;
 1236|  2.64k|    }
 1237|      0|    dst_flush(dst);
 1238|      0|    return dst->werr;
 1239|  2.64k|}
_Z21encrypted_sesk_set_adR11pgp_crypt_tR16pgp_sk_sesskey_t:
 1289|      1|{
 1290|      1|    uint8_t ad_data[4];
 1291|       |
 1292|      1|    ad_data[0] = PGP_PKT_SK_SESSION_KEY | PGP_PTAG_ALWAYS_SET | PGP_PTAG_NEW_FORMAT;
  ------------------
  |  |   47|      1|#define PGP_PTAG_ALWAYS_SET 0x80
  ------------------
                  ad_data[0] = PGP_PKT_SK_SESSION_KEY | PGP_PTAG_ALWAYS_SET | PGP_PTAG_NEW_FORMAT;
  ------------------
  |  |   56|      1|#define PGP_PTAG_NEW_FORMAT 0x40
  ------------------
 1293|      1|    ad_data[1] = skey.version;
 1294|      1|    ad_data[2] = skey.alg;
 1295|      1|    ad_data[3] = skey.aalg;
 1296|       |
 1297|      1|    return pgp_cipher_aead_set_ad(&crypt, ad_data, 4);
 1298|      1|}
stream-common.cpp:_ZL12mem_src_readP12pgp_source_tPvmPm:
  516|  37.1k|{
  517|  37.1k|    pgp_source_mem_param_t *param = (pgp_source_mem_param_t *) src->param;
  518|  37.1k|    if (!param) {
  ------------------
  |  Branch (518:9): [True: 0, False: 37.1k]
  ------------------
  519|      0|        return false;
  520|      0|    }
  521|       |
  522|  37.1k|    if (len > param->len - param->pos) {
  ------------------
  |  Branch (522:9): [True: 681, False: 36.4k]
  ------------------
  523|    681|        len = param->len - param->pos;
  524|    681|    }
  525|  37.1k|    memcpy(buf, (uint8_t *) param->memory + param->pos, len);
  526|  37.1k|    param->pos += len;
  527|  37.1k|    *read = len;
  528|  37.1k|    return true;
  529|  37.1k|}
stream-common.cpp:_ZL13mem_src_closeP12pgp_source_t:
  533|  33.7k|{
  534|  33.7k|    pgp_source_mem_param_t *param = (pgp_source_mem_param_t *) src->param;
  535|  33.7k|    if (param) {
  ------------------
  |  Branch (535:9): [True: 33.7k, False: 0]
  ------------------
  536|  33.7k|        if (param->free) {
  ------------------
  |  Branch (536:13): [True: 0, False: 33.7k]
  ------------------
  537|      0|            free((void *) param->memory);
  538|      0|        }
  539|  33.7k|        free(src->param);
  540|       |        src->param = NULL;
  541|  33.7k|    }
  542|  33.7k|}
stream-common.cpp:_ZL13mem_dst_writeP10pgp_dest_tPKvm:
  994|   905k|{
  995|   905k|    pgp_dest_mem_param_t *param = (pgp_dest_mem_param_t *) dst->param;
  996|   905k|    if (!param) {
  ------------------
  |  Branch (996:9): [True: 0, False: 905k]
  ------------------
  997|      0|        return RNP_ERROR_BAD_PARAMETERS;
  998|      0|    }
  999|       |
 1000|       |    /* checking whether we need to realloc or discard extra bytes */
 1001|   905k|    if (param->discard_overflow && (dst->writeb >= param->allocated)) {
  ------------------
  |  Branch (1001:9): [True: 0, False: 905k]
  |  Branch (1001:36): [True: 0, False: 0]
  ------------------
 1002|      0|        return RNP_SUCCESS;
 1003|      0|    }
 1004|   905k|    if (param->discard_overflow && (dst->writeb + len > param->allocated)) {
  ------------------
  |  Branch (1004:9): [True: 0, False: 905k]
  |  Branch (1004:36): [True: 0, False: 0]
  ------------------
 1005|      0|        len = param->allocated - dst->writeb;
 1006|      0|    }
 1007|       |
 1008|   905k|    if (dst->writeb + len > param->allocated) {
  ------------------
  |  Branch (1008:9): [True: 683k, False: 221k]
  ------------------
 1009|   683k|        if ((param->maxalloc > 0) && (dst->writeb + len > param->maxalloc)) {
  ------------------
  |  Branch (1009:13): [True: 0, False: 683k]
  |  Branch (1009:38): [True: 0, False: 0]
  ------------------
 1010|      0|            RNP_LOG("attempt to alloc more then allowed");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1011|      0|            return RNP_ERROR_OUT_OF_MEMORY;
 1012|      0|        }
 1013|       |
 1014|       |        /* round up to the page boundary and do it exponentially */
 1015|   683k|        size_t alloc = ((dst->writeb + len) * 2 + 4095) / 4096 * 4096;
 1016|   683k|        if ((param->maxalloc > 0) && (alloc > param->maxalloc)) {
  ------------------
  |  Branch (1016:13): [True: 0, False: 683k]
  |  Branch (1016:38): [True: 0, False: 0]
  ------------------
 1017|      0|            alloc = param->maxalloc;
 1018|      0|        }
 1019|       |
 1020|   683k|        void *newalloc = param->secure ? calloc(1, alloc) : realloc(param->memory, alloc);
  ------------------
  |  Branch (1020:26): [True: 0, False: 683k]
  ------------------
 1021|   683k|        if (!newalloc) {
  ------------------
  |  Branch (1021:13): [True: 0, False: 683k]
  ------------------
 1022|      0|            return RNP_ERROR_OUT_OF_MEMORY;
 1023|      0|        }
 1024|   683k|        if (param->secure && param->memory) {
  ------------------
  |  Branch (1024:13): [True: 0, False: 683k]
  |  Branch (1024:30): [True: 0, False: 0]
  ------------------
 1025|      0|            memcpy(newalloc, param->memory, dst->writeb);
 1026|      0|            secure_clear(param->memory, dst->writeb);
 1027|      0|            free(param->memory);
 1028|      0|        }
 1029|   683k|        param->memory = newalloc;
 1030|   683k|        param->allocated = alloc;
 1031|   683k|    }
 1032|       |
 1033|   905k|    memcpy((uint8_t *) param->memory + dst->writeb, buf, len);
 1034|   905k|    return RNP_SUCCESS;
 1035|   905k|}
stream-common.cpp:_ZL13mem_dst_closeP10pgp_dest_tb:
 1039|   683k|{
 1040|   683k|    pgp_dest_mem_param_t *param = (pgp_dest_mem_param_t *) dst->param;
 1041|   683k|    if (!param) {
  ------------------
  |  Branch (1041:9): [True: 0, False: 683k]
  ------------------
 1042|      0|        return;
 1043|      0|    }
 1044|       |
 1045|   683k|    if (param->free) {
  ------------------
  |  Branch (1045:9): [True: 683k, False: 0]
  ------------------
 1046|   683k|        if (param->secure) {
  ------------------
  |  Branch (1046:13): [True: 0, False: 683k]
  ------------------
 1047|      0|            secure_clear(param->memory, param->allocated);
 1048|      0|        }
 1049|   683k|        free(param->memory);
 1050|   683k|    }
 1051|   683k|    free(param);
 1052|       |    dst->param = NULL;
 1053|   683k|}
stream-common.cpp:_ZL14null_dst_writeP10pgp_dest_tPKvm:
 1169|  6.82k|{
 1170|  6.82k|    return RNP_SUCCESS;
 1171|  6.82k|}
stream-common.cpp:_ZL14null_dst_closeP10pgp_dest_tb:
 1175|  11.6k|{
 1176|  11.6k|    ;
 1177|  11.6k|}

_ZN10pgp_dest_tC2Ev:
  259|  1.39M|    pgp_dest_t() = default;
_ZN10pgp_dest_taSEOS_:
  262|   683k|    pgp_dest_t &operator=(pgp_dest_t &&) = default;
_ZN3rnp6SourceC2Ev:
  404|  94.0k|    Source() : src_({})
  405|  94.0k|    {
  406|  94.0k|    }
_ZN3rnp6SourceD2Ev:
  409|  94.0k|    {
  410|  94.0k|        src_.close();
  411|  94.0k|    }
_ZN3rnp6Source5readbEv:
  427|  72.8k|    {
  428|  72.8k|        return src().readb;
  429|  72.8k|    }
_ZN3rnp6Source3eofEv:
  433|   287k|    {
  434|   287k|        return src().eof();
  435|   287k|    }
_ZN3rnp6Source5errorEv:
  439|   104k|    {
  440|   104k|        return src().error();
  441|   104k|    }
_ZN3rnp4DestC2Ev:
  498|   683k|    Dest() : dst_(), discard_(false)
  499|   683k|    {
  500|   683k|    }
_ZN3rnp4DestD2Ev:
  503|   683k|    {
  504|   683k|        dst_close(&dst_, discard_);
  505|   683k|    }
_ZN3rnp4Dest3dstEv:
  521|   683k|    {
  522|   683k|        return dst_;
  523|   683k|    }
_ZN3rnp4Dest6writebEv:
  527|   683k|    {
  528|   683k|        return dst_.writeb;
  529|   683k|    }
_ZN3rnp10MemoryDestC2EPvm:
  543|   683k|    MemoryDest(void *mem = NULL, size_t len = 0) : Dest()
  544|   683k|    {
  545|   683k|        auto res = init_mem_dest(&dst_, mem, len);
  546|   683k|        if (res) {
  ------------------
  |  Branch (546:13): [True: 0, False: 683k]
  ------------------
  547|      0|            throw std::bad_alloc();
  548|      0|        }
  549|   683k|        discard_ = true;
  550|   683k|    }
_ZN3rnp10MemoryDest6memoryEv:
  554|   683k|    {
  555|   683k|        return mem_dest_get_memory(&dst_);
  556|   683k|    }
_ZN3rnp10MemoryDest9to_vectorEv:
  566|   683k|    {
  567|   683k|        uint8_t *mem = (uint8_t *) memory();
  568|   683k|        return std::vector<uint8_t>(mem, mem + writeb());
  569|   683k|    }

_ZN9rnp_ctx_tC2ERN3rnp15SecurityContextERNS0_11KeyProviderER23pgp_password_provider_t:
  135|  11.6k|        : halg(DEFAULT_PGP_HASH_ALG), ealg(DEFAULT_PGP_SYMM_ALG), aalg(PGP_AEAD_NONE),
  ------------------
  |  |   31|  11.6k|#define DEFAULT_PGP_HASH_ALG PGP_HASH_SHA256
  ------------------
                      : halg(DEFAULT_PGP_HASH_ALG), ealg(DEFAULT_PGP_SYMM_ALG), aalg(PGP_AEAD_NONE),
  ------------------
  |  |   34|  11.6k|#define DEFAULT_PGP_SYMM_ALG PGP_SA_AES_256
  ------------------
  136|  11.6k|          abits(DEFAULT_AEAD_CHUNK_BITS), sec_ctx(sctx), key_provider(kprov),
  ------------------
  |  |   50|  11.6k|#define DEFAULT_AEAD_CHUNK_BITS 12
  ------------------
  137|  11.6k|          pass_provider(pprov){};

_Z15error_skippablejb:
   85|  32.1k|{
   86|  32.1k|    if (ret == RNP_ERROR_NOT_SUPPORTED) {
  ------------------
  |  Branch (86:9): [True: 3.49k, False: 28.6k]
  ------------------
   87|  3.49k|        return true;
   88|  3.49k|    }
   89|  28.6k|    return skiperrors && (ret == RNP_ERROR_BAD_FORMAT);
  ------------------
  |  Branch (89:12): [True: 22.3k, False: 6.34k]
  |  Branch (89:26): [True: 19.3k, False: 2.94k]
  ------------------
   90|  32.1k|}
_Z22skip_ignorable_packetsR12pgp_source_t:
  104|  2.05M|{
  105|  2.05M|    int pkt = stream_pkt_type(src);
  106|  2.05M|    while (pkt_is_ignorable(pkt)) {
  ------------------
  |  Branch (106:12): [True: 2.54k, False: 2.05M]
  ------------------
  107|  2.54k|        uint64_t ppos = src.readb;
  108|  2.54k|        RNP_LOG("skipping non-critical packet %d at %" PRIu64, pkt, ppos);
  ------------------
  |  |   84|  2.54k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  2.54k|    do {                                                                                 \
  |  |  |  |   77|  2.54k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 2.54k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  2.54k|            break;                                                                       \
  |  |  |  |   79|  2.54k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  109|  2.54k|        if (stream_skip_packet(&src)) {
  ------------------
  |  Branch (109:13): [True: 1.00k, False: 1.53k]
  ------------------
  110|  1.00k|            RNP_LOG("failed to skip packet at %" PRIu64, ppos);
  ------------------
  |  |   84|  1.00k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  1.00k|    do {                                                                                 \
  |  |  |  |   77|  1.00k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 1.00k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  1.00k|            break;                                                                       \
  |  |  |  |   79|  1.00k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  111|  1.00k|            return false;
  112|  1.00k|        }
  113|  1.53k|        pkt = stream_pkt_type(src);
  114|  1.53k|    }
  115|  2.05M|    return pkt >= 0;
  116|  2.05M|}
_Z18process_pgp_subkeyR12pgp_source_tR25pgp_transferable_subkey_tb:
  174|  45.2k|{
  175|  45.2k|    int ptag;
  176|  45.2k|    subkey = pgp_transferable_subkey_t();
  177|  45.2k|    uint64_t keypos = src.readb;
  178|  45.2k|    if (!skip_ignorable_packets(src) && src.error()) {
  ------------------
  |  Branch (178:9): [True: 0, False: 45.2k]
  |  Branch (178:41): [True: 0, False: 0]
  ------------------
  179|      0|        return RNP_ERROR_READ;
  180|      0|    }
  181|  45.2k|    if (!is_subkey_pkt(ptag = stream_pkt_type(src))) {
  ------------------
  |  Branch (181:9): [True: 0, False: 45.2k]
  ------------------
  182|      0|        RNP_LOG("wrong subkey ptag: %d at %" PRIu64, ptag, keypos);
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  183|      0|        return RNP_ERROR_BAD_FORMAT;
  184|      0|    }
  185|       |
  186|  45.2k|    rnp_result_t ret = RNP_ERROR_BAD_FORMAT;
  187|  45.2k|    try {
  188|  45.2k|        ret = subkey.subkey.parse(src);
  189|  45.2k|    } catch (const std::exception &e) {
  190|      0|        RNP_LOG("%s", e.what());
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  191|      0|        ret = RNP_ERROR_GENERIC;
  192|      0|    }
  193|  45.2k|    if (ret) {
  ------------------
  |  Branch (193:9): [True: 12.4k, False: 32.8k]
  ------------------
  194|  12.4k|        RNP_LOG("failed to parse subkey at %" PRIu64, keypos);
  ------------------
  |  |   84|  12.4k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  12.4k|    do {                                                                                 \
  |  |  |  |   77|  12.4k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 12.4k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  12.4k|            break;                                                                       \
  |  |  |  |   79|  12.4k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  195|  12.4k|        subkey.subkey = {};
  196|  12.4k|        return ret;
  197|  12.4k|    }
  198|       |
  199|  32.8k|    if (!skip_pgp_packets(src, {PGP_PKT_TRUST})) {
  ------------------
  |  Branch (199:9): [True: 45, False: 32.8k]
  ------------------
  200|     45|        return RNP_ERROR_READ;
  201|     45|    }
  202|       |
  203|  32.8k|    return process_pgp_key_signatures(src, subkey.signatures, skiperrors);
  204|  32.8k|}
_Z20process_pgp_key_autoR12pgp_source_tR22pgp_transferable_key_tbb:
  211|  83.3k|{
  212|  83.3k|    key = {};
  213|  83.3k|    uint64_t srcpos = src.readb;
  214|  83.3k|    if (!skip_ignorable_packets(src) && src.error()) {
  ------------------
  |  Branch (214:9): [True: 179, False: 83.1k]
  |  Branch (214:41): [True: 0, False: 179]
  ------------------
  215|      0|        return RNP_ERROR_READ;
  216|      0|    }
  217|  83.3k|    int ptag = stream_pkt_type(src);
  218|  83.3k|    if (ptag <= 0) {
  ------------------
  |  Branch (218:9): [True: 34, False: 83.2k]
  ------------------
  219|       |        /* eof or invalid header: only ignorable packets were skipped, if any */
  220|     34|        RNP_LOG("wrong key tag: %d at pos %" PRIu64, ptag, src.readb);
  ------------------
  |  |   84|     34|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     34|    do {                                                                                 \
  |  |  |  |   77|     34|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 34, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     34|            break;                                                                       \
  |  |  |  |   79|     34|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  221|     34|        return (ptag == 0) ? RNP_ERROR_BAD_STATE : RNP_ERROR_BAD_FORMAT;
  ------------------
  |  Branch (221:16): [True: 34, False: 0]
  ------------------
  222|     34|    }
  223|  83.2k|    if (is_subkey_pkt(ptag) && allowsub) {
  ------------------
  |  Branch (223:9): [True: 303, False: 82.9k]
  |  Branch (223:32): [True: 0, False: 303]
  ------------------
  224|      0|        pgp_transferable_subkey_t subkey;
  225|      0|        rnp_result_t              ret = process_pgp_subkey(src, subkey, skiperrors);
  226|      0|        if (subkey.subkey.tag != PGP_PKT_RESERVED) {
  ------------------
  |  Branch (226:13): [True: 0, False: 0]
  ------------------
  227|      0|            try {
  228|      0|                key.subkeys.push_back(std::move(subkey));
  229|      0|            } catch (const std::exception &e) {
  230|      0|                RNP_LOG("%s", e.what());
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  231|      0|                ret = RNP_ERROR_OUT_OF_MEMORY;
  232|      0|            }
  233|      0|        }
  234|       |        /* change error code if we didn't process anything at all */
  235|      0|        if (srcpos == src.readb) {
  ------------------
  |  Branch (235:13): [True: 0, False: 0]
  ------------------
  236|      0|            ret = RNP_ERROR_BAD_STATE;
  237|      0|        }
  238|      0|        return ret;
  239|      0|    }
  240|       |
  241|  83.2k|    rnp_result_t ret = RNP_ERROR_BAD_FORMAT;
  242|  83.2k|    if (!is_primary_key_pkt(ptag)) {
  ------------------
  |  Branch (242:9): [True: 10.1k, False: 73.1k]
  ------------------
  243|  10.1k|        RNP_LOG("wrong key tag: %d at pos %" PRIu64, ptag, src.readb);
  ------------------
  |  |   84|  10.1k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  10.1k|    do {                                                                                 \
  |  |  |  |   77|  10.1k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 10.1k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  10.1k|            break;                                                                       \
  |  |  |  |   79|  10.1k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  244|  73.1k|    } else {
  245|  73.1k|        try {
  246|  73.1k|            ret = process_pgp_key(src, key, skiperrors);
  247|  73.1k|        } catch (const rnp::rnp_exception &e) {
  248|    311|            RNP_LOG("%s", e.what());
  ------------------
  |  |   84|    311|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    311|    do {                                                                                 \
  |  |  |  |   77|    311|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 311, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    311|            break;                                                                       \
  |  |  |  |   79|    311|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  249|    311|            ret = e.code();
  250|    311|        } catch (const std::exception &e) {
  251|      0|            RNP_LOG("%s", e.what());
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  252|      0|            ret = RNP_ERROR_GENERIC;
  253|      0|        }
  254|  73.1k|    }
  255|  83.2k|    if (skiperrors && (ret == RNP_ERROR_BAD_FORMAT) &&
  ------------------
  |  Branch (255:9): [True: 59.4k, False: 23.8k]
  |  Branch (255:9): [True: 712, False: 82.5k]
  |  Branch (255:23): [True: 21.8k, False: 37.6k]
  ------------------
  256|  21.8k|        !skip_pgp_packets(src,
  ------------------
  |  Branch (256:9): [True: 712, False: 21.0k]
  ------------------
  257|  21.8k|                          {PGP_PKT_TRUST,
  258|  21.8k|                           PGP_PKT_SIGNATURE,
  259|  21.8k|                           PGP_PKT_USER_ID,
  260|  21.8k|                           PGP_PKT_USER_ATTR,
  261|  21.8k|                           PGP_PKT_PUBLIC_SUBKEY,
  262|  21.8k|                           PGP_PKT_SECRET_SUBKEY})) {
  263|    712|        ret = RNP_ERROR_READ;
  264|    712|    }
  265|       |    /* change error code if we didn't process anything at all */
  266|  83.2k|    if (srcpos == src.readb) {
  ------------------
  |  Branch (266:9): [True: 4.11k, False: 79.1k]
  ------------------
  267|  4.11k|        ret = RNP_ERROR_BAD_STATE;
  268|  4.11k|    }
  269|  83.2k|    return ret;
  270|  83.2k|}
_Z16process_pgp_keysR12pgp_source_tR18pgp_key_sequence_tb:
  274|  20.5k|{
  275|  20.5k|    bool has_secret = false;
  276|  20.5k|    bool has_public = false;
  277|       |
  278|  20.5k|    keys.keys.clear();
  279|       |    /* create maybe-armored stream */
  280|  20.5k|    rnp::ArmoredSource armor(
  281|  20.5k|      src, rnp::ArmoredSource::AllowBinary | rnp::ArmoredSource::AllowMultiple);
  282|       |
  283|       |    /* read sequence of transferable OpenPGP keys as described in RFC 4880, 11.1 - 11.2 */
  284|  94.6k|    while (!armor.error()) {
  ------------------
  |  Branch (284:12): [True: 93.6k, False: 943]
  ------------------
  285|       |        /* Allow multiple armored messages in a single stream */
  286|  93.6k|        if (armor.eof() && armor.multiple()) {
  ------------------
  |  Branch (286:13): [True: 27.8k, False: 65.8k]
  |  Branch (286:28): [True: 19.5k, False: 8.30k]
  ------------------
  287|  19.5k|            armor.restart();
  288|  19.5k|        }
  289|  93.6k|        if (armor.eof()) {
  ------------------
  |  Branch (289:13): [True: 9.63k, False: 84.0k]
  ------------------
  290|  9.63k|            break;
  291|  9.63k|        }
  292|       |        /* RFC 9580, 4.3: ignore unknown non-critical and padding packets anywhere
  293|       |         * in the sequence */
  294|  84.0k|        if (!skip_ignorable_packets(armor.src()) && armor.error()) {
  ------------------
  |  Branch (294:13): [True: 819, False: 83.2k]
  |  Branch (294:53): [True: 352, False: 467]
  ------------------
  295|    352|            keys.keys.clear();
  296|    352|            return RNP_ERROR_READ;
  297|    352|        }
  298|  83.6k|        if (armor.eof()) {
  ------------------
  |  Branch (298:13): [True: 299, False: 83.3k]
  ------------------
  299|    299|            break;
  300|    299|        }
  301|       |        /* Attempt to read the next key */
  302|  83.3k|        pgp_transferable_key_t curkey;
  303|  83.3k|        rnp_result_t ret = process_pgp_key_auto(armor.src(), curkey, false, skiperrors);
  304|  83.3k|        if (ret && !error_skippable(ret, skiperrors)) {
  ------------------
  |  Branch (304:13): [True: 32.1k, False: 51.2k]
  |  Branch (304:20): [True: 9.29k, False: 22.8k]
  ------------------
  305|  9.29k|            keys.keys.clear();
  306|  9.29k|            return ret;
  307|  9.29k|        }
  308|       |        /* check whether we actually read any key or just skipped erroneous packets */
  309|  74.1k|        if (curkey.key.tag == PGP_PKT_RESERVED) {
  ------------------
  |  Branch (309:13): [True: 22.4k, False: 51.6k]
  ------------------
  310|  22.4k|            continue;
  311|  22.4k|        }
  312|  51.6k|        has_secret |= (curkey.key.tag == PGP_PKT_SECRET_KEY);
  313|       |        /* public primary key with secret subkey(s) is not a public key, see #1469 */
  314|  51.6k|        if (curkey.key.tag == PGP_PKT_PUBLIC_KEY) {
  ------------------
  |  Branch (314:13): [True: 39.1k, False: 12.4k]
  ------------------
  315|  39.1k|            bool sec_sub = false;
  316|  39.1k|            for (auto &subkey : curkey.subkeys) {
  ------------------
  |  Branch (316:31): [True: 24.2k, False: 39.1k]
  ------------------
  317|  24.2k|                sec_sub |= (subkey.subkey.tag == PGP_PKT_SECRET_SUBKEY);
  318|  24.2k|            }
  319|  39.1k|            has_public |= !sec_sub;
  320|  39.1k|        }
  321|       |
  322|  51.6k|        keys.keys.emplace_back(std::move(curkey));
  323|  51.6k|    }
  324|       |
  325|  10.8k|    if (has_secret && has_public) {
  ------------------
  |  Branch (325:9): [True: 2.90k, False: 7.97k]
  |  Branch (325:23): [True: 373, False: 2.52k]
  ------------------
  326|    373|        RNP_LOG("warning! public keys are mixed together with secret ones!");
  ------------------
  |  |   84|    373|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    373|    do {                                                                                 \
  |  |  |  |   77|    373|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 373, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    373|            break;                                                                       \
  |  |  |  |   79|    373|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  327|    373|    }
  328|       |
  329|  10.8k|    if (armor.error()) {
  ------------------
  |  Branch (329:9): [True: 20, False: 10.8k]
  ------------------
  330|     20|        keys.keys.clear();
  331|     20|        return RNP_ERROR_READ;
  332|     20|    }
  333|  10.8k|    return RNP_SUCCESS;
  334|  10.8k|}
_Z15process_pgp_keyR12pgp_source_tR22pgp_transferable_key_tb:
  338|  73.1k|{
  339|  73.1k|    key = pgp_transferable_key_t();
  340|       |    /* create maybe-armored stream */
  341|  73.1k|    rnp::ArmoredSource armor(
  342|  73.1k|      src, rnp::ArmoredSource::AllowBinary | rnp::ArmoredSource::AllowMultiple);
  343|       |
  344|       |    /* main key packet */
  345|  73.1k|    uint64_t keypos = armor.readb();
  346|  73.1k|    int      ptag = stream_pkt_type(armor.src());
  347|  73.1k|    if ((ptag <= 0) || !is_primary_key_pkt(ptag)) {
  ------------------
  |  Branch (347:9): [True: 3.40k, False: 69.7k]
  |  Branch (347:24): [True: 230, False: 69.5k]
  ------------------
  348|  3.32k|        RNP_LOG("wrong key packet tag: %d at %" PRIu64, ptag, keypos);
  ------------------
  |  |   84|  3.32k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  3.32k|    do {                                                                                 \
  |  |  |  |   77|  3.32k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 3.32k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  3.32k|            break;                                                                       \
  |  |  |  |   79|  3.32k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  349|  3.32k|        return RNP_ERROR_BAD_FORMAT;
  350|  3.32k|    }
  351|       |
  352|  69.8k|    rnp_result_t ret = key.key.parse(armor.src());
  353|  69.8k|    if (ret == RNP_ERROR_NOT_SUPPORTED) {
  ------------------
  |  Branch (353:9): [True: 3.24k, False: 66.5k]
  ------------------
  354|       |        /* unknown or unsupported-in-this-build key algorithm: skip the rest of
  355|       |         * this transferable key (user ids, subkeys) and let the caller continue
  356|       |         * with the next one, see issue #2370 */
  357|  3.24k|        RNP_LOG("skipping key with unsupported algorithm at %" PRIu64, keypos);
  ------------------
  |  |   84|  3.24k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  3.24k|    do {                                                                                 \
  |  |  |  |   77|  3.24k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 3.24k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  3.24k|            break;                                                                       \
  |  |  |  |   79|  3.24k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  358|  3.24k|        key.key = {};
  359|  3.24k|        skip_pgp_packets(armor.src(),
  360|  3.24k|                         {PGP_PKT_TRUST,
  361|  3.24k|                          PGP_PKT_SIGNATURE,
  362|  3.24k|                          PGP_PKT_USER_ID,
  363|  3.24k|                          PGP_PKT_USER_ATTR,
  364|  3.24k|                          PGP_PKT_PUBLIC_SUBKEY,
  365|  3.24k|                          PGP_PKT_SECRET_SUBKEY});
  366|  3.24k|        return ret;
  367|  3.24k|    }
  368|  66.5k|    if (ret) {
  ------------------
  |  Branch (368:9): [True: 11.5k, False: 55.0k]
  ------------------
  369|  11.5k|        RNP_LOG("failed to parse key pkt at %" PRIu64, keypos);
  ------------------
  |  |   84|  11.5k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  11.5k|    do {                                                                                 \
  |  |  |  |   77|  11.5k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 11.5k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  11.5k|            break;                                                                       \
  |  |  |  |   79|  11.5k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  370|  11.5k|        key.key = {};
  371|  11.5k|        return ret;
  372|  11.5k|    }
  373|       |
  374|  55.0k|    if (!skip_pgp_packets(armor.src(), {PGP_PKT_TRUST})) {
  ------------------
  |  Branch (374:9): [True: 60, False: 55.0k]
  ------------------
  375|     60|        return RNP_ERROR_READ;
  376|     60|    }
  377|       |
  378|       |    /* direct-key signatures */
  379|  55.0k|    if ((ret = process_pgp_key_signatures(armor.src(), key.signatures, skiperrors))) {
  ------------------
  |  Branch (379:9): [True: 1.02k, False: 53.9k]
  ------------------
  380|  1.02k|        return ret;
  381|  1.02k|    }
  382|       |
  383|       |    /* user ids/attrs with signatures */
  384|   660k|    while (true) {
  ------------------
  |  Branch (384:12): [True: 660k, Folded]
  ------------------
  385|   660k|        if (!skip_ignorable_packets(armor.src()) && armor.src().error()) {
  ------------------
  |  Branch (385:13): [True: 28, False: 660k]
  |  Branch (385:53): [True: 0, False: 28]
  ------------------
  386|      0|            return RNP_ERROR_READ;
  387|      0|        }
  388|   660k|        if ((ptag = stream_pkt_type(armor.src())) <= 0) {
  ------------------
  |  Branch (388:13): [True: 12.6k, False: 647k]
  ------------------
  389|  12.6k|            break;
  390|  12.6k|        }
  391|   647k|        if ((ptag != PGP_PKT_USER_ID) && (ptag != PGP_PKT_USER_ATTR)) {
  ------------------
  |  Branch (391:13): [True: 42.0k, False: 605k]
  |  Branch (391:42): [True: 39.6k, False: 2.37k]
  ------------------
  392|  39.6k|            break;
  393|  39.6k|        }
  394|       |
  395|   608k|        pgp_transferable_userid_t uid;
  396|   608k|        ret = process_pgp_userid(armor.src(), uid, skiperrors);
  397|   608k|        if ((ret == RNP_ERROR_BAD_FORMAT) && skiperrors &&
  ------------------
  |  Branch (397:13): [True: 1.68k, False: 606k]
  |  Branch (397:13): [True: 977, False: 607k]
  |  Branch (397:46): [True: 995, False: 693]
  ------------------
  398|    995|            skip_pgp_packets(armor.src(), {PGP_PKT_TRUST, PGP_PKT_SIGNATURE})) {
  ------------------
  |  Branch (398:13): [True: 977, False: 18]
  ------------------
  399|       |            /* skip malformed uid */
  400|    977|            continue;
  401|    977|        }
  402|   607k|        if (ret) {
  ------------------
  |  Branch (402:13): [True: 1.41k, False: 605k]
  ------------------
  403|  1.41k|            return ret;
  404|  1.41k|        }
  405|   605k|        key.userids.push_back(std::move(uid));
  406|   605k|    }
  407|       |
  408|       |    /* subkeys with signatures */
  409|  95.1k|    while (ptag > 0) {
  ------------------
  |  Branch (409:12): [True: 82.1k, False: 12.9k]
  ------------------
  410|  82.1k|        if (!skip_ignorable_packets(armor.src()) && armor.src().error()) {
  ------------------
  |  Branch (410:13): [True: 24, False: 82.1k]
  |  Branch (410:53): [True: 0, False: 24]
  ------------------
  411|      0|            return RNP_ERROR_READ;
  412|      0|        }
  413|  82.1k|        if (!is_subkey_pkt(ptag = stream_pkt_type(armor.src()))) {
  ------------------
  |  Branch (413:13): [True: 38.5k, False: 43.6k]
  ------------------
  414|  38.5k|            break;
  415|  38.5k|        }
  416|       |
  417|  43.6k|        pgp_transferable_subkey_t subkey;
  418|  43.6k|        ret = process_pgp_subkey(armor.src(), subkey, skiperrors);
  419|  43.6k|        if (((ret == RNP_ERROR_BAD_FORMAT) && skiperrors ||
  ------------------
  |  Branch (419:13): [True: 11.4k, False: 32.1k]
  |  Branch (419:14): [True: 10.4k, False: 33.2k]
  |  Branch (419:47): [True: 9.94k, False: 488]
  ------------------
  420|  33.6k|             (ret == RNP_ERROR_NOT_SUPPORTED)) &&
  ------------------
  |  Branch (420:14): [True: 1.90k, False: 31.7k]
  ------------------
  421|  11.8k|            skip_pgp_packets(armor.src(), {PGP_PKT_TRUST, PGP_PKT_SIGNATURE})) {
  ------------------
  |  Branch (421:13): [True: 11.4k, False: 404]
  ------------------
  422|       |            /* skip malformed subkey or subkey with unsupported algorithm */
  423|  11.4k|            continue;
  424|  11.4k|        }
  425|  32.1k|        if (ret) {
  ------------------
  |  Branch (425:13): [True: 1.08k, False: 31.1k]
  ------------------
  426|  1.08k|            return ret;
  427|  1.08k|        }
  428|  31.1k|        key.subkeys.emplace_back(std::move(subkey));
  429|  31.1k|    }
  430|  51.4k|    return ptag >= 0 ? RNP_SUCCESS : RNP_ERROR_BAD_FORMAT;
  ------------------
  |  Branch (430:12): [True: 51.1k, False: 319]
  ------------------
  431|  52.5k|}
_Z18decrypt_secret_keyP13pgp_key_pkt_tPKc:
  653|  1.48k|{
  654|  1.48k|    if (!key) {
  ------------------
  |  Branch (654:9): [True: 0, False: 1.48k]
  ------------------
  655|      0|        return RNP_ERROR_NULL_POINTER;
  656|      0|    }
  657|  1.48k|    if (!is_secret_key_pkt(key->tag)) {
  ------------------
  |  Branch (657:9): [True: 0, False: 1.48k]
  ------------------
  658|      0|        return RNP_ERROR_BAD_PARAMETERS;
  659|      0|    }
  660|       |    /* mark material as not validated as it may be valid for public part */
  661|  1.48k|    key->material->reset_validity();
  662|       |
  663|       |    /* check whether data is not encrypted */
  664|  1.48k|    if (!key->sec_protection.s2k.usage) {
  ------------------
  |  Branch (664:9): [True: 1.48k, False: 0]
  ------------------
  665|  1.48k|        return parse_secret_key_mpis(*key, key->sec_data.data(), key->sec_data.size());
  666|  1.48k|    }
  667|       |
  668|       |    /* check whether secret key data present */
  669|      0|    if (key->sec_data.empty()) {
  ------------------
  |  Branch (669:9): [True: 0, False: 0]
  ------------------
  670|      0|        RNP_LOG("No secret key data");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  671|      0|        return RNP_ERROR_BAD_PARAMETERS;
  672|      0|    }
  673|       |
  674|       |    /* data is encrypted */
  675|      0|    if (!password) {
  ------------------
  |  Branch (675:9): [True: 0, False: 0]
  ------------------
  676|      0|        return RNP_ERROR_NULL_POINTER;
  677|      0|    }
  678|       |
  679|      0|    if (key->sec_protection.cipher_mode != PGP_CIPHER_MODE_CFB) {
  ------------------
  |  Branch (679:9): [True: 0, False: 0]
  ------------------
  680|      0|        RNP_LOG("unsupported secret key encryption mode");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  681|      0|        return RNP_ERROR_BAD_PARAMETERS;
  682|      0|    }
  683|       |
  684|      0|#if defined(ENABLE_CRYPTO_REFRESH)
  685|      0|    if ((key->sec_protection.s2k.specifier == PGP_S2KS_ARGON2) &&
  ------------------
  |  Branch (685:9): [True: 0, False: 0]
  ------------------
  686|      0|        key->sec_protection.s2k.usage != PGP_S2KU_AEAD) {
  ------------------
  |  Branch (686:9): [True: 0, False: 0]
  ------------------
  687|      0|        RNP_LOG("s2k usage must be AEAD if using Argon2");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  688|      0|        return RNP_ERROR_BAD_PARAMETERS;
  689|      0|    }
  690|      0|#endif
  691|       |
  692|      0|    rnp::secure_array<uint8_t, PGP_MAX_KEY_SIZE> keybuf;
  693|      0|    size_t keysize = pgp_key_size(key->sec_protection.symm_alg);
  694|      0|    if (!keysize ||
  ------------------
  |  Branch (694:9): [True: 0, False: 0]
  ------------------
  695|      0|        !pgp_s2k_derive_key(&key->sec_protection.s2k, password, keybuf.data(), keysize)) {
  ------------------
  |  Branch (695:9): [True: 0, False: 0]
  ------------------
  696|      0|        RNP_LOG("failed to derive key");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  697|      0|        return RNP_ERROR_BAD_PARAMETERS;
  698|      0|    }
  699|       |
  700|      0|    try {
  701|      0|        rnp::secure_bytes decdata(key->sec_data.size(), 0);
  702|      0|        pgp_crypt_t       crypt;
  703|      0|        rnp_result_t      ret = RNP_ERROR_GENERIC;
  704|       |
  705|      0|#if defined(ENABLE_CRYPTO_REFRESH)
  706|       |        /* AEAD case */
  707|      0|        if (key->sec_protection.s2k.usage == PGP_S2KU_AEAD) {
  ------------------
  |  Branch (707:13): [True: 0, False: 0]
  ------------------
  708|       |            /* HKDF input keying material is exactly the s2k-derived key */
  709|      0|            rnp::secure_vector<uint8_t> keybuf_vec(keybuf.data(), keybuf.data() + keysize);
  710|      0|            rnp::secure_vector<uint8_t> encr_vec(key->sec_data.data(),
  711|      0|                                                 key->sec_data.data() + key->sec_data.size());
  712|       |
  713|      0|            ret = crypt_secret_key_aead(key, keybuf_vec, encr_vec, decdata, true);
  714|      0|            if (ret) {
  ------------------
  |  Branch (714:17): [True: 0, False: 0]
  ------------------
  715|      0|                RNP_LOG("could not successfully decrypt key");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  716|      0|                return ret;
  717|      0|            }
  718|       |
  719|       |            // subtract authentication tag length to get the encrypted data length
  720|      0|            size_t sec_len =
  721|      0|              key->sec_data.size() - pgp_cipher_aead_tag_len(key->sec_protection.aead_alg);
  722|      0|            return parse_secret_key_mpis(*key, decdata.data(), sec_len);
  723|      0|        }
  724|      0|#endif
  725|       |
  726|      0|        if (!pgp_cipher_cfb_start(
  ------------------
  |  Branch (726:13): [True: 0, False: 0]
  ------------------
  727|      0|              &crypt, key->sec_protection.symm_alg, keybuf.data(), key->sec_protection.iv)) {
  728|      0|            RNP_LOG("failed to start cfb decryption");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  729|      0|            return RNP_ERROR_DECRYPT_FAILED;
  730|      0|        }
  731|       |
  732|      0|        switch (key->version) {
  733|      0|        case PGP_V3:
  ------------------
  |  Branch (733:9): [True: 0, False: 0]
  ------------------
  734|      0|            if (!is_rsa_key_alg(key->alg)) {
  ------------------
  |  Branch (734:17): [True: 0, False: 0]
  ------------------
  735|      0|                RNP_LOG("non-RSA v3 key");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  736|      0|                ret = RNP_ERROR_BAD_PARAMETERS;
  737|      0|                break;
  738|      0|            }
  739|      0|            ret = decrypt_secret_key_v3(
  740|      0|              &crypt, decdata.data(), key->sec_data.data(), key->sec_data.size());
  741|      0|            break;
  742|      0|#if defined(ENABLE_CRYPTO_REFRESH)
  743|      0|        case PGP_V6:
  ------------------
  |  Branch (743:9): [True: 0, False: 0]
  ------------------
  744|      0|            FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|      0|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
  745|      0|#endif
  746|      0|        case PGP_V4:
  ------------------
  |  Branch (746:9): [True: 0, False: 0]
  ------------------
  747|      0|        case PGP_V5:
  ------------------
  |  Branch (747:9): [True: 0, False: 0]
  ------------------
  748|      0|            pgp_cipher_cfb_decrypt(
  749|      0|              &crypt, decdata.data(), key->sec_data.data(), key->sec_data.size());
  750|      0|            ret = RNP_SUCCESS;
  751|      0|            break;
  752|      0|        default:
  ------------------
  |  Branch (752:9): [True: 0, False: 0]
  ------------------
  753|      0|            ret = RNP_ERROR_BAD_PARAMETERS;
  754|      0|        }
  755|       |
  756|      0|        pgp_cipher_cfb_finish(&crypt);
  757|      0|        if (ret) {
  ------------------
  |  Branch (757:13): [True: 0, False: 0]
  ------------------
  758|      0|            return ret;
  759|      0|        }
  760|       |
  761|      0|        return parse_secret_key_mpis(*key, decdata.data(), decdata.size());
  762|      0|    } catch (const std::exception &e) {
  763|      0|        RNP_LOG("%s", e.what());
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  764|      0|        return RNP_ERROR_GENERIC;
  765|      0|    }
  766|      0|}
_ZNK16pgp_userid_pkt_teqERKS_:
  943|  3.57M|{
  944|  3.57M|    return (tag == src.tag) && (uid == src.uid);
  ------------------
  |  Branch (944:12): [True: 3.54M, False: 33.4k]
  |  Branch (944:32): [True: 251k, False: 3.29M]
  ------------------
  945|  3.57M|}
_ZNK16pgp_userid_pkt_t5writeER10pgp_dest_t:
  954|   500k|{
  955|   500k|    if ((tag != PGP_PKT_USER_ID) && (tag != PGP_PKT_USER_ATTR)) {
  ------------------
  |  Branch (955:9): [True: 2.09k, False: 498k]
  |  Branch (955:37): [True: 0, False: 2.09k]
  ------------------
  956|      0|        RNP_LOG("wrong userid tag");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  957|      0|        throw rnp::rnp_exception(RNP_ERROR_BAD_PARAMETERS);
  958|      0|    }
  959|       |
  960|   500k|    pgp_packet_body_t pktbody(tag);
  961|   500k|    pktbody.add(uid.data(), uid.size());
  962|   500k|    pktbody.write(dst);
  963|   500k|}
_ZN16pgp_userid_pkt_t5parseER12pgp_source_t:
  967|   608k|{
  968|       |    /* check the tag */
  969|   608k|    int stag = stream_pkt_type(src);
  970|   608k|    if ((stag != PGP_PKT_USER_ID) && (stag != PGP_PKT_USER_ATTR)) {
  ------------------
  |  Branch (970:9): [True: 2.37k, False: 605k]
  |  Branch (970:38): [True: 0, False: 2.37k]
  ------------------
  971|      0|        RNP_LOG("wrong userid tag: %d", stag);
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  972|      0|        return RNP_ERROR_BAD_FORMAT;
  973|      0|    }
  974|       |
  975|   608k|    pgp_packet_body_t pkt(PGP_PKT_RESERVED);
  976|   608k|    rnp_result_t      res = pkt.read(src);
  977|   608k|    if (res) {
  ------------------
  |  Branch (977:9): [True: 1.09k, False: 607k]
  ------------------
  978|  1.09k|        return res;
  979|  1.09k|    }
  980|       |
  981|       |    /* userid type, i.e. tag */
  982|   607k|    tag = (pgp_pkt_type_t) stag;
  983|   607k|    uid.resize(pkt.size());
  984|   607k|    if (pkt.size()) {
  ------------------
  |  Branch (984:9): [True: 45.7k, False: 561k]
  ------------------
  985|  45.7k|        std::memcpy(uid.data(), pkt.data(), pkt.size());
  986|  45.7k|    }
  987|   607k|    return RNP_SUCCESS;
  988|   608k|}
_ZN13pgp_key_pkt_tC2ERKS_b:
  991|   318k|{
  992|   318k|    if (pubonly && is_secret_key_pkt(src.tag)) {
  ------------------
  |  Branch (992:9): [True: 34.2k, False: 284k]
  |  Branch (992:20): [True: 7.31k, False: 26.8k]
  ------------------
  993|  7.31k|        tag = (src.tag == PGP_PKT_SECRET_KEY) ? PGP_PKT_PUBLIC_KEY : PGP_PKT_PUBLIC_SUBKEY;
  ------------------
  |  Branch (993:15): [True: 3.97k, False: 3.33k]
  ------------------
  994|   311k|    } else {
  995|   311k|        tag = src.tag;
  996|   311k|    }
  997|   318k|    version = src.version;
  998|   318k|    creation_time = src.creation_time;
  999|   318k|    alg = src.alg;
 1000|   318k|    v3_days = src.v3_days;
 1001|   318k|    v5_pub_len = src.v5_pub_len;
 1002|   318k|    pub_data = src.pub_data;
 1003|   318k|    material = src.material ? src.material->clone() : nullptr;
  ------------------
  |  Branch (1003:16): [True: 318k, False: 0]
  ------------------
 1004|   318k|    if (pubonly) {
  ------------------
  |  Branch (1004:9): [True: 34.2k, False: 284k]
  ------------------
 1005|  34.2k|        if (material) {
  ------------------
  |  Branch (1005:13): [True: 34.2k, False: 0]
  ------------------
 1006|  34.2k|            material->clear_secret();
 1007|  34.2k|        }
 1008|  34.2k|        sec_data.resize(0);
 1009|  34.2k|        v5_s2k_len = 0;
 1010|  34.2k|        v5_sec_len = 0;
 1011|  34.2k|        sec_protection = {};
 1012|  34.2k|        return;
 1013|  34.2k|    }
 1014|   284k|    sec_data = src.sec_data;
 1015|   284k|    v5_s2k_len = src.v5_s2k_len;
 1016|   284k|    v5_sec_len = src.v5_sec_len;
 1017|   284k|    sec_protection = src.sec_protection;
 1018|   284k|}
_ZN13pgp_key_pkt_taSEOS_:
 1038|   329k|{
 1039|   329k|    if (this == &src) {
  ------------------
  |  Branch (1039:9): [True: 0, False: 329k]
  ------------------
 1040|      0|        return *this;
 1041|      0|    }
 1042|   329k|    tag = src.tag;
 1043|   329k|    version = src.version;
 1044|   329k|    creation_time = src.creation_time;
 1045|   329k|    alg = src.alg;
 1046|   329k|    v3_days = src.v3_days;
 1047|   329k|    pub_data = std::move(src.pub_data);
 1048|   329k|    material = std::move(src.material);
 1049|   329k|    secure_clear(sec_data.data(), sec_data.size());
 1050|   329k|    sec_data = std::move(src.sec_data);
 1051|   329k|    sec_protection = src.sec_protection;
 1052|   329k|    return *this;
 1053|   329k|}
_ZN13pgp_key_pkt_taSERKS_:
 1057|   260k|{
 1058|   260k|    if (this == &src) {
  ------------------
  |  Branch (1058:9): [True: 0, False: 260k]
  ------------------
 1059|      0|        return *this;
 1060|      0|    }
 1061|   260k|    tag = src.tag;
 1062|   260k|    version = src.version;
 1063|   260k|    creation_time = src.creation_time;
 1064|   260k|    alg = src.alg;
 1065|   260k|    v3_days = src.v3_days;
 1066|   260k|    pub_data = src.pub_data;
 1067|   260k|    material = src.material ? src.material->clone() : nullptr;
  ------------------
  |  Branch (1067:16): [True: 58.8k, False: 201k]
  ------------------
 1068|   260k|    secure_clear(sec_data.data(), sec_data.size());
 1069|   260k|    sec_data = std::move(src.sec_data);
 1070|   260k|    sec_protection = src.sec_protection;
 1071|   260k|    return *this;
 1072|   260k|}
_ZN13pgp_key_pkt_tD2Ev:
 1075|  1.03M|{
 1076|  1.03M|    secure_clear(sec_data.data(), sec_data.size());
 1077|  1.03M|}
_ZN13pgp_key_pkt_t15make_s2k_paramsER17pgp_packet_body_t:
 1081|  18.7k|{
 1082|  18.7k|    switch (sec_protection.s2k.usage) {
 1083|    791|    case PGP_S2KU_NONE:
  ------------------
  |  Branch (1083:5): [True: 791, False: 17.9k]
  ------------------
 1084|    791|        break;
 1085|  4.49k|    case PGP_S2KU_ENCRYPTED_AND_HASHED:
  ------------------
  |  Branch (1085:5): [True: 4.49k, False: 14.2k]
  ------------------
 1086|  16.9k|    case PGP_S2KU_ENCRYPTED: {
  ------------------
  |  Branch (1086:5): [True: 12.4k, False: 6.31k]
  ------------------
 1087|  16.9k|        hbody.add_byte(sec_protection.symm_alg);
 1088|  16.9k|        hbody.add(sec_protection.s2k, version);
 1089|  16.9k|        if (sec_protection.s2k.specifier != PGP_S2KS_EXPERIMENTAL) {
  ------------------
  |  Branch (1089:13): [True: 16.6k, False: 300]
  ------------------
 1090|  16.6k|            size_t blsize = pgp_block_size(sec_protection.symm_alg);
 1091|  16.6k|            if (!blsize) {
  ------------------
  |  Branch (1091:17): [True: 0, False: 16.6k]
  ------------------
 1092|      0|                RNP_LOG("wrong block size");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1093|      0|                throw rnp::rnp_exception(RNP_ERROR_BAD_PARAMETERS);
 1094|      0|            }
 1095|  16.6k|            hbody.add(sec_protection.iv, blsize);
 1096|  16.6k|        }
 1097|  16.9k|        break;
 1098|  16.9k|    }
 1099|  16.9k|#if defined(ENABLE_CRYPTO_REFRESH)
 1100|  16.9k|    case PGP_S2KU_AEAD: {
  ------------------
  |  Branch (1100:5): [True: 1.03k, False: 17.7k]
  ------------------
 1101|  1.03k|        hbody.add_byte(sec_protection.symm_alg);
 1102|  1.03k|        hbody.add_byte(sec_protection.aead_alg);
 1103|  1.03k|        hbody.add(sec_protection.s2k, version);
 1104|  1.03k|        size_t nonce_len = pgp_cipher_aead_nonce_len(sec_protection.aead_alg);
 1105|  1.03k|        if (!nonce_len) {
  ------------------
  |  Branch (1105:13): [True: 5, False: 1.03k]
  ------------------
 1106|      5|            RNP_LOG("invalid nonce size");
  ------------------
  |  |   84|      5|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      5|    do {                                                                                 \
  |  |  |  |   77|      5|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 5, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      5|            break;                                                                       \
  |  |  |  |   79|      5|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1107|      5|            throw rnp::rnp_exception(RNP_ERROR_BAD_PARAMETERS);
 1108|      5|        }
 1109|  1.03k|        hbody.add(sec_protection.iv, nonce_len);
 1110|  1.03k|        break;
 1111|  1.03k|    }
 1112|      0|#endif
 1113|      0|    default:
  ------------------
  |  Branch (1113:5): [True: 0, False: 18.7k]
  ------------------
 1114|      0|        RNP_LOG("wrong s2k usage");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1115|      0|        throw rnp::rnp_exception(RNP_ERROR_BAD_PARAMETERS);
 1116|  18.7k|    }
 1117|  18.7k|}
_ZN13pgp_key_pkt_t5writeER10pgp_dest_t:
 1121|   101k|{
 1122|   101k|    if (!is_key_pkt(tag)) {
  ------------------
  |  Branch (1122:9): [True: 0, False: 101k]
  ------------------
 1123|      0|        RNP_LOG("wrong key tag");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1124|      0|        throw rnp::rnp_exception(RNP_ERROR_BAD_PARAMETERS);
 1125|      0|    }
 1126|   101k|    if (pub_data.empty()) {
  ------------------
  |  Branch (1126:9): [True: 0, False: 101k]
  ------------------
 1127|      0|        fill_hashed_data();
 1128|      0|    }
 1129|       |
 1130|   101k|    pgp_packet_body_t pktbody(tag);
 1131|       |    /* all public key data is written in hashed_data */
 1132|   101k|    pktbody.add(pub_data);
 1133|       |    /* if we have public key then we do not need further processing */
 1134|   101k|    if (!is_secret_key_pkt(tag)) {
  ------------------
  |  Branch (1134:9): [True: 82.8k, False: 18.7k]
  ------------------
 1135|  82.8k|        pktbody.write(dst);
 1136|  82.8k|        return;
 1137|  82.8k|    }
 1138|       |
 1139|       |    /* secret key fields should be pre-populated in sec_data field */
 1140|  18.7k|    if ((sec_protection.s2k.specifier != PGP_S2KS_EXPERIMENTAL) && sec_data.empty()) {
  ------------------
  |  Branch (1140:9): [True: 18.4k, False: 306]
  |  Branch (1140:68): [True: 18, False: 18.4k]
  ------------------
 1141|     18|        RNP_LOG("secret key data is not populated");
  ------------------
  |  |   84|     18|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     18|    do {                                                                                 \
  |  |  |  |   77|     18|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 18, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     18|            break;                                                                       \
  |  |  |  |   79|     18|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1142|     18|        throw rnp::rnp_exception(RNP_ERROR_BAD_PARAMETERS);
 1143|     18|    }
 1144|  18.7k|    pktbody.add_byte(sec_protection.s2k.usage);
 1145|  18.7k|    if (version == PGP_V5) {
  ------------------
  |  Branch (1145:9): [True: 123, False: 18.6k]
  ------------------
 1146|    123|        pktbody.add_byte(v5_s2k_len);
 1147|    123|    }
 1148|       |
 1149|  18.7k|    pgp_packet_body_t s2k_params(tag);
 1150|  18.7k|    make_s2k_params(s2k_params);
 1151|  18.7k|#if defined(ENABLE_CRYPTO_REFRESH)
 1152|  18.7k|    if ((version == PGP_V6) && (sec_protection.s2k.usage != PGP_S2KU_NONE)) {
  ------------------
  |  Branch (1152:9): [True: 8.48k, False: 10.2k]
  |  Branch (1152:32): [True: 8.34k, False: 136]
  ------------------
 1153|       |        // V6 packages contain the count of the optional 1-byte parameters
 1154|  8.34k|        pktbody.add_byte(s2k_params.size());
 1155|  8.34k|    }
 1156|  18.7k|#endif
 1157|  18.7k|    pktbody.add(s2k_params.data(), s2k_params.size());
 1158|       |
 1159|  18.7k|    if (version == PGP_V5) {
  ------------------
  |  Branch (1159:9): [True: 123, False: 18.6k]
  ------------------
 1160|    123|        pktbody.add_uint32(sec_data.size());
 1161|    123|    }
 1162|       |    /* if key is stored on card, or exported via gpg --export-secret-subkeys, then
 1163|       |     * sec_data is empty */
 1164|  18.7k|    pktbody.add(sec_data);
 1165|  18.7k|    pktbody.write(dst);
 1166|  18.7k|}
_ZN13pgp_key_pkt_t5parseER12pgp_source_t:
 1170|   114k|{
 1171|       |    /* check the key tag */
 1172|   114k|    int atag = stream_pkt_type(src);
 1173|   114k|    if (!is_key_pkt(atag)) {
  ------------------
  |  Branch (1173:9): [True: 0, False: 114k]
  ------------------
 1174|      0|        RNP_LOG("wrong key packet tag: %d", atag);
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1175|      0|        return RNP_ERROR_BAD_FORMAT;
 1176|      0|    }
 1177|       |
 1178|   114k|    pgp_packet_body_t pkt((pgp_pkt_type_t) atag);
 1179|       |    /* Read the packet into memory */
 1180|   114k|    rnp_result_t res = pkt.read(src);
 1181|   114k|    if (res) {
  ------------------
  |  Branch (1181:9): [True: 6.86k, False: 107k]
  ------------------
 1182|  6.86k|        return res;
 1183|  6.86k|    }
 1184|       |    /* key type, i.e. tag */
 1185|   107k|    tag = (pgp_pkt_type_t) atag;
 1186|       |    /* version */
 1187|   107k|    uint8_t ver = 0;
 1188|   107k|    if (!pkt.get(ver)) {
  ------------------
  |  Branch (1188:9): [True: 1.06k, False: 106k]
  ------------------
 1189|  1.06k|        RNP_LOG("unable to retrieve key packet version");
  ------------------
  |  |   84|  1.06k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  1.06k|    do {                                                                                 \
  |  |  |  |   77|  1.06k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 1.06k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  1.06k|            break;                                                                       \
  |  |  |  |   79|  1.06k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1190|  1.06k|        return RNP_ERROR_BAD_FORMAT;
 1191|  1.06k|    }
 1192|   106k|    switch (ver) {
 1193|    546|    case PGP_V2:
  ------------------
  |  Branch (1193:5): [True: 546, False: 106k]
  ------------------
 1194|    546|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|    546|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
 1195|  19.0k|    case PGP_V3:
  ------------------
  |  Branch (1195:5): [True: 18.5k, False: 88.3k]
  ------------------
 1196|  19.0k|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|  19.0k|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
 1197|  82.1k|    case PGP_V4:
  ------------------
  |  Branch (1197:5): [True: 63.0k, False: 43.7k]
  ------------------
 1198|  82.1k|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|  82.1k|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
 1199|  83.8k|    case PGP_V5:
  ------------------
  |  Branch (1199:5): [True: 1.65k, False: 105k]
  ------------------
 1200|  83.8k|        break;
 1201|      0|#if defined(ENABLE_CRYPTO_REFRESH)
 1202|  19.1k|    case PGP_V6:
  ------------------
  |  Branch (1202:5): [True: 19.1k, False: 87.7k]
  ------------------
 1203|  19.1k|        break;
 1204|      0|#endif
 1205|  3.89k|    default:
  ------------------
  |  Branch (1205:5): [True: 3.89k, False: 102k]
  ------------------
 1206|  3.89k|        RNP_LOG("wrong key packet version");
  ------------------
  |  |   84|  3.89k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  3.89k|    do {                                                                                 \
  |  |  |  |   77|  3.89k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 3.89k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  3.89k|            break;                                                                       \
  |  |  |  |   79|  3.89k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1207|  3.89k|        return RNP_ERROR_BAD_FORMAT;
 1208|   106k|    }
 1209|   102k|    version = (pgp_version_t) ver;
 1210|       |    /* creation time */
 1211|   102k|    if (!pkt.get(creation_time)) {
  ------------------
  |  Branch (1211:9): [True: 271, False: 102k]
  ------------------
 1212|    271|        return RNP_ERROR_BAD_FORMAT;
 1213|    271|    }
 1214|       |    /* v3: validity days */
 1215|   102k|    if ((version < PGP_V4) && !pkt.get(v3_days)) {
  ------------------
  |  Branch (1215:9): [True: 18.8k, False: 83.8k]
  |  Branch (1215:31): [True: 72, False: 18.7k]
  ------------------
 1216|     72|        return RNP_ERROR_BAD_FORMAT;
 1217|     72|    }
 1218|       |    /* key algorithm */
 1219|   102k|    uint8_t analg = 0;
 1220|   102k|    if (!pkt.get(analg)) {
  ------------------
  |  Branch (1220:9): [True: 210, False: 102k]
  ------------------
 1221|    210|        return RNP_ERROR_BAD_FORMAT;
 1222|    210|    }
 1223|   102k|    alg = (pgp_pubkey_alg_t) analg;
 1224|   102k|    material = pgp::KeyMaterial::create(alg);
 1225|   102k|    if (!material) {
  ------------------
  |  Branch (1225:9): [True: 5.15k, False: 97.2k]
  ------------------
 1226|       |        /* Unknown or unsupported-in-this-build algorithm (for example a PQC
 1227|       |         * algorithm when the build has ENABLE_PQC off, issue #2370). The whole
 1228|       |         * packet is already framed and read, so skip the rest of it and let the
 1229|       |         * caller skip the key while continuing with the rest of the keyring. */
 1230|  5.15k|        RNP_LOG("unknown key algorithm: %d", (int) alg);
  ------------------
  |  |   84|  5.15k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  5.15k|    do {                                                                                 \
  |  |  |  |   77|  5.15k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 5.15k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  5.15k|            break;                                                                       \
  |  |  |  |   79|  5.15k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1231|  5.15k|        pkt.skip(pkt.left());
 1232|  5.15k|        return RNP_ERROR_NOT_SUPPORTED;
 1233|  5.15k|    }
 1234|  97.2k|    switch (version) {
 1235|    520|    case PGP_V2:
  ------------------
  |  Branch (1235:5): [True: 520, False: 96.7k]
  ------------------
 1236|  16.8k|    case PGP_V3:
  ------------------
  |  Branch (1236:5): [True: 16.2k, False: 80.9k]
  ------------------
 1237|       |        /* v3 keys must be RSA-only */
 1238|  16.8k|        if (!is_rsa_key_alg(alg)) {
  ------------------
  |  Branch (1238:13): [True: 132, False: 16.6k]
  ------------------
 1239|    132|            RNP_LOG("wrong v3 pk algorithm");
  ------------------
  |  |   84|    132|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    132|    do {                                                                                 \
  |  |  |  |   77|    132|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 132, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    132|            break;                                                                       \
  |  |  |  |   79|    132|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1240|    132|            return RNP_ERROR_BAD_FORMAT;
 1241|    132|        }
 1242|  16.6k|        break;
 1243|  16.6k|    case PGP_V5:
  ------------------
  |  Branch (1243:5): [True: 1.49k, False: 95.7k]
  ------------------
 1244|  1.49k|#if defined(ENABLE_CRYPTO_REFRESH)
 1245|  19.2k|    case PGP_V6:
  ------------------
  |  Branch (1245:5): [True: 17.7k, False: 79.5k]
  ------------------
 1246|  19.2k|#endif
 1247|       |        /* v5-v6 public key material length  */
 1248|  19.2k|        if (!pkt.get(v5_pub_len)) {
  ------------------
  |  Branch (1248:13): [True: 426, False: 18.7k]
  ------------------
 1249|    426|            RNP_LOG("failed to get v5 octet count field");
  ------------------
  |  |   84|    426|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    426|    do {                                                                                 \
  |  |  |  |   77|    426|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 426, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    426|            break;                                                                       \
  |  |  |  |   79|    426|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1250|    426|            return RNP_ERROR_BAD_FORMAT;
 1251|    426|        }
 1252|  18.7k|        if (is_public_key_pkt(atag) && (v5_pub_len != pkt.left())) {
  ------------------
  |  Branch (1252:13): [True: 279, False: 18.5k]
  |  Branch (1252:40): [True: 97, False: 182]
  ------------------
 1253|     97|            RNP_LOG("v5 octet count mismatch");
  ------------------
  |  |   84|     97|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     97|    do {                                                                                 \
  |  |  |  |   77|     97|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 97, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     97|            break;                                                                       \
  |  |  |  |   79|     97|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1254|     97|            return RNP_ERROR_BAD_FORMAT;
 1255|     97|        }
 1256|  18.7k|        break;
 1257|  61.2k|    default:;
  ------------------
  |  Branch (1257:5): [True: 61.2k, False: 36.0k]
  ------------------
 1258|  97.2k|    }
 1259|       |
 1260|  96.6k|#if defined(ENABLE_PQC) && defined(ENABLE_CRYPTO_REFRESH)
 1261|       |    /* PQC only for v6 keys aside from MLKEM768+X25519 */
 1262|  96.6k|    if (rnp::Key::is_pqc_alg(alg) && version < PGP_V6 && alg != PGP_PKA_KYBER768_X25519) {
  ------------------
  |  Branch (1262:9): [True: 10.4k, False: 86.1k]
  |  Branch (1262:38): [True: 438, False: 9.98k]
  |  Branch (1262:58): [True: 370, False: 68]
  ------------------
 1263|    370|        RNP_LOG("Invalid algorithm for key version");
  ------------------
  |  |   84|    370|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    370|    do {                                                                                 \
  |  |  |  |   77|    370|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 370, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    370|            break;                                                                       \
  |  |  |  |   79|    370|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1264|    370|        return RNP_ERROR_BAD_FORMAT;
 1265|    370|    }
 1266|  96.2k|#endif
 1267|       |
 1268|       |    /* algorithm specific fields */
 1269|  96.2k|    if (!material->parse(pkt)) {
  ------------------
  |  Branch (1269:9): [True: 4.72k, False: 91.5k]
  ------------------
 1270|  4.72k|        return RNP_ERROR_BAD_FORMAT;
 1271|  4.72k|    }
 1272|       |
 1273|       |    /* fill hashed data used for signatures */
 1274|  91.5k|    pub_data.assign(pkt.data(), pkt.data() + pkt.size() - pkt.left());
 1275|       |
 1276|       |    /* the algorithm-specific fields must exactly fill a public key packet
 1277|       |     * body; secret key packets continue with the protection fields below */
 1278|  91.5k|    if (!is_secret_key_pkt(tag) && pkt.left()) {
  ------------------
  |  Branch (1278:9): [True: 60.0k, False: 31.4k]
  |  Branch (1278:36): [True: 61, False: 60.0k]
  ------------------
 1279|     61|        RNP_LOG("extra data at the end of the key packet");
  ------------------
  |  |   84|     61|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     61|    do {                                                                                 \
  |  |  |  |   77|     61|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 61, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     61|            break;                                                                       \
  |  |  |  |   79|     61|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1280|     61|        return RNP_ERROR_BAD_FORMAT;
 1281|     61|    }
 1282|       |
 1283|       |    /* secret key fields if any */
 1284|  91.4k|    if (is_secret_key_pkt(tag)) {
  ------------------
  |  Branch (1284:9): [True: 31.4k, False: 60.0k]
  ------------------
 1285|  31.4k|        uint8_t usage = 0;
 1286|  31.4k|        if (!pkt.get(usage)) {
  ------------------
  |  Branch (1286:13): [True: 16, False: 31.4k]
  ------------------
 1287|     16|            RNP_LOG("failed to read key protection");
  ------------------
  |  |   84|     16|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     16|    do {                                                                                 \
  |  |  |  |   77|     16|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 16, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     16|            break;                                                                       \
  |  |  |  |   79|     16|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1288|     16|            return RNP_ERROR_BAD_FORMAT;
 1289|     16|        }
 1290|  31.4k|#if defined(ENABLE_CRYPTO_REFRESH)
 1291|  31.4k|        if (version == PGP_V6 && usage == 255) {
  ------------------
  |  Branch (1291:13): [True: 15.9k, False: 15.4k]
  |  Branch (1291:34): [True: 12, False: 15.9k]
  ------------------
 1292|     12|            RNP_LOG(
  ------------------
  |  |   84|     12|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     12|    do {                                                                                 \
  |  |  |  |   77|     12|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 12, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     12|            break;                                                                       \
  |  |  |  |   79|     12|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1293|     12|              "Error when parsing S2K usage: A version 6 packet MUST NOT use the value 255.");
 1294|     12|            return RNP_ERROR_BAD_FORMAT;
 1295|     12|        }
 1296|  31.3k|#endif
 1297|  31.3k|        sec_protection.s2k.usage = (pgp_s2k_usage_t) usage;
 1298|  31.3k|        sec_protection.cipher_mode = PGP_CIPHER_MODE_CFB;
 1299|       |
 1300|       |        /* v5 s2k length, ignored for now */
 1301|  31.3k|        if (version == PGP_V5) {
  ------------------
  |  Branch (1301:13): [True: 333, False: 31.0k]
  ------------------
 1302|    333|            if (!pkt.get(v5_s2k_len)) {
  ------------------
  |  Branch (1302:17): [True: 22, False: 311]
  ------------------
 1303|     22|                RNP_LOG("failed to read v5 s2k len");
  ------------------
  |  |   84|     22|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     22|    do {                                                                                 \
  |  |  |  |   77|     22|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 22, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     22|            break;                                                                       \
  |  |  |  |   79|     22|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1304|     22|                return RNP_ERROR_BAD_FORMAT;
 1305|     22|            }
 1306|    333|        }
 1307|  31.3k|#if defined(ENABLE_CRYPTO_REFRESH)
 1308|  31.3k|        if (version == PGP_V6 && sec_protection.s2k.usage != PGP_S2KU_NONE) {
  ------------------
  |  Branch (1308:13): [True: 15.9k, False: 15.3k]
  |  Branch (1308:34): [True: 15.0k, False: 953]
  ------------------
 1309|       |            // v6 packets contain the count of the following parameters
 1310|       |            // ignored for now
 1311|  15.0k|            uint8_t bt;
 1312|  15.0k|            if (!pkt.get(bt)) {
  ------------------
  |  Branch (1312:17): [True: 25, False: 14.9k]
  ------------------
 1313|     25|                RNP_LOG("failed to read s2k parameter length");
  ------------------
  |  |   84|     25|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     25|    do {                                                                                 \
  |  |  |  |   77|     25|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 25, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     25|            break;                                                                       \
  |  |  |  |   79|     25|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1314|     25|                return RNP_ERROR_BAD_FORMAT;
 1315|     25|            }
 1316|  15.0k|        }
 1317|  31.3k|#endif
 1318|       |
 1319|  31.3k|        switch (sec_protection.s2k.usage) {
 1320|  2.60k|        case PGP_S2KU_NONE:
  ------------------
  |  Branch (1320:9): [True: 2.60k, False: 28.7k]
  ------------------
 1321|  2.60k|            break;
 1322|    226|        case PGP_S2KU_ENCRYPTED:
  ------------------
  |  Branch (1322:9): [True: 226, False: 31.1k]
  ------------------
 1323|  5.91k|        case PGP_S2KU_ENCRYPTED_AND_HASHED: {
  ------------------
  |  Branch (1323:9): [True: 5.68k, False: 25.6k]
  ------------------
 1324|       |            /* we have s2k */
 1325|  5.91k|            uint8_t salg = 0;
 1326|  5.91k|            if (!pkt.get(salg)) {
  ------------------
  |  Branch (1326:17): [True: 12, False: 5.90k]
  ------------------
 1327|     12|                RNP_LOG("failed to read key protection (symmetric alg)");
  ------------------
  |  |   84|     12|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     12|    do {                                                                                 \
  |  |  |  |   77|     12|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 12, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     12|            break;                                                                       \
  |  |  |  |   79|     12|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1328|     12|                return RNP_ERROR_BAD_FORMAT;
 1329|     12|            }
 1330|  5.90k|#if defined(ENABLE_CRYPTO_REFRESH)
 1331|  5.90k|            if (version == PGP_V6) {
  ------------------
  |  Branch (1331:17): [True: 417, False: 5.48k]
  ------------------
 1332|       |                // V6 packages contain the length of the following field
 1333|    417|                uint8_t s2k_specifier_len;
 1334|    417|                if (!pkt.get(s2k_specifier_len)) {
  ------------------
  |  Branch (1334:21): [True: 10, False: 407]
  ------------------
 1335|     10|                    RNP_LOG("failed to read key protection (s2k specifier length)");
  ------------------
  |  |   84|     10|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     10|    do {                                                                                 \
  |  |  |  |   77|     10|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 10, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     10|            break;                                                                       \
  |  |  |  |   79|     10|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1336|     10|                    return RNP_ERROR_BAD_FORMAT;
 1337|     10|                }
 1338|    417|            }
 1339|  5.89k|#endif
 1340|  5.89k|            if (!pkt.get(sec_protection.s2k)) {
  ------------------
  |  Branch (1340:17): [True: 85, False: 5.80k]
  ------------------
 1341|     85|                RNP_LOG("failed to read key protection (s2k)");
  ------------------
  |  |   84|     85|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     85|    do {                                                                                 \
  |  |  |  |   77|     85|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 85, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     85|            break;                                                                       \
  |  |  |  |   79|     85|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1342|     85|                return RNP_ERROR_BAD_FORMAT;
 1343|     85|            }
 1344|  5.80k|            sec_protection.symm_alg = (pgp_symm_alg_t) salg;
 1345|  5.80k|            break;
 1346|  5.89k|        }
 1347|      0|#if defined(ENABLE_CRYPTO_REFRESH)
 1348|  1.94k|        case PGP_S2KU_AEAD: {
  ------------------
  |  Branch (1348:9): [True: 1.94k, False: 29.4k]
  ------------------
 1349|  1.94k|            uint8_t symm_alg = 0;
 1350|  1.94k|            uint8_t aead_alg = 0;
 1351|  1.94k|            if (!pkt.get(symm_alg)) {
  ------------------
  |  Branch (1351:17): [True: 12, False: 1.93k]
  ------------------
 1352|     12|                RNP_LOG("failed to read key protection (symmetric alg)");
  ------------------
  |  |   84|     12|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     12|    do {                                                                                 \
  |  |  |  |   77|     12|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 12, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     12|            break;                                                                       \
  |  |  |  |   79|     12|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1353|     12|                return RNP_ERROR_BAD_FORMAT;
 1354|     12|            }
 1355|  1.93k|            if (!pkt.get(aead_alg)) {
  ------------------
  |  Branch (1355:17): [True: 10, False: 1.92k]
  ------------------
 1356|     10|                RNP_LOG("failed to read key protection (aead alg)");
  ------------------
  |  |   84|     10|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     10|    do {                                                                                 \
  |  |  |  |   77|     10|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 10, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     10|            break;                                                                       \
  |  |  |  |   79|     10|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1357|     10|                return RNP_ERROR_BAD_FORMAT;
 1358|     10|            }
 1359|  1.92k|            if (version == PGP_V6) {
  ------------------
  |  Branch (1359:17): [True: 1.89k, False: 32]
  ------------------
 1360|       |                // V6 packages contain the length of the following field
 1361|  1.89k|                uint8_t s2k_specifier_len;
 1362|  1.89k|                if (!pkt.get(s2k_specifier_len)) {
  ------------------
  |  Branch (1362:21): [True: 3, False: 1.88k]
  ------------------
 1363|      3|                    RNP_LOG("failed to read key protection (s2k specifier length)");
  ------------------
  |  |   84|      3|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      3|    do {                                                                                 \
  |  |  |  |   77|      3|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 3, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      3|            break;                                                                       \
  |  |  |  |   79|      3|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1364|      3|                    return RNP_ERROR_BAD_FORMAT;
 1365|      3|                }
 1366|  1.89k|            }
 1367|  1.92k|            if (!pkt.get(sec_protection.s2k)) {
  ------------------
  |  Branch (1367:17): [True: 145, False: 1.77k]
  ------------------
 1368|    145|                RNP_LOG("failed to read key protection (s2k)");
  ------------------
  |  |   84|    145|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    145|    do {                                                                                 \
  |  |  |  |   77|    145|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 145, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    145|            break;                                                                       \
  |  |  |  |   79|    145|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1369|    145|                return RNP_ERROR_BAD_FORMAT;
 1370|    145|            }
 1371|  1.77k|            sec_protection.symm_alg = (pgp_symm_alg_t) symm_alg;
 1372|  1.77k|            sec_protection.aead_alg = (pgp_aead_alg_t) aead_alg;
 1373|  1.77k|            break;
 1374|  1.92k|        }
 1375|      0|#endif
 1376|  20.8k|        default:
  ------------------
  |  Branch (1376:9): [True: 20.8k, False: 10.4k]
  ------------------
 1377|       |            /* old-style: usage is symmetric algorithm identifier */
 1378|  20.8k|            sec_protection.symm_alg = (pgp_symm_alg_t) usage;
 1379|  20.8k|            sec_protection.s2k.usage = PGP_S2KU_ENCRYPTED;
 1380|  20.8k|            sec_protection.s2k.specifier = PGP_S2KS_SIMPLE;
 1381|  20.8k|            sec_protection.s2k.hash_alg = PGP_HASH_MD5;
 1382|  20.8k|            break;
 1383|  31.3k|        }
 1384|       |
 1385|       |        /* iv */
 1386|  31.0k|        if ((sec_protection.s2k.usage != PGP_S2KU_NONE)
  ------------------
  |  Branch (1386:13): [True: 28.4k, False: 2.60k]
  ------------------
 1387|  28.4k|#if defined(ENABLE_CRYPTO_REFRESH)
 1388|  28.4k|            && (sec_protection.s2k.usage != PGP_S2KU_AEAD)
  ------------------
  |  Branch (1388:16): [True: 26.6k, False: 1.77k]
  ------------------
 1389|  26.6k|#endif
 1390|  26.6k|            && (sec_protection.s2k.specifier != PGP_S2KS_EXPERIMENTAL)) {
  ------------------
  |  Branch (1390:16): [True: 26.1k, False: 507]
  ------------------
 1391|  26.1k|            size_t bl_size = pgp_block_size(sec_protection.symm_alg);
 1392|  26.1k|            if (!bl_size || !pkt.get(sec_protection.iv, bl_size)) {
  ------------------
  |  Branch (1392:17): [True: 3.12k, False: 23.0k]
  |  Branch (1392:29): [True: 203, False: 22.8k]
  ------------------
 1393|  3.33k|                RNP_LOG("failed to read iv");
  ------------------
  |  |   84|  3.33k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  3.33k|    do {                                                                                 \
  |  |  |  |   77|  3.33k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 3.33k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  3.33k|            break;                                                                       \
  |  |  |  |   79|  3.33k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1394|  3.33k|                return RNP_ERROR_BAD_FORMAT;
 1395|  3.33k|            }
 1396|  26.1k|        }
 1397|  4.88k|#if defined(ENABLE_CRYPTO_REFRESH)
 1398|  4.88k|        else if ((sec_protection.s2k.usage == PGP_S2KU_AEAD) &&
  ------------------
  |  Branch (1398:18): [True: 1.77k, False: 3.11k]
  ------------------
 1399|  1.77k|                 (sec_protection.s2k.specifier != PGP_S2KS_EXPERIMENTAL)) {
  ------------------
  |  Branch (1399:18): [True: 1.74k, False: 28]
  ------------------
 1400|  1.74k|            size_t nonce_len = pgp_cipher_aead_nonce_len(sec_protection.aead_alg);
 1401|  1.74k|            if (!nonce_len || !pkt.get(sec_protection.iv, nonce_len)) {
  ------------------
  |  Branch (1401:17): [True: 12, False: 1.73k]
  |  Branch (1401:31): [True: 18, False: 1.71k]
  ------------------
 1402|     30|                RNP_LOG("failed to read iv");
  ------------------
  |  |   84|     30|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     30|    do {                                                                                 \
  |  |  |  |   77|     30|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 30, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     30|            break;                                                                       \
  |  |  |  |   79|     30|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1403|     30|                return RNP_ERROR_BAD_FORMAT;
 1404|     30|            }
 1405|  1.74k|        }
 1406|  27.7k|#endif
 1407|       |
 1408|       |        /* v5 secret key fields length */
 1409|  27.7k|        if (version == PGP_V5) {
  ------------------
  |  Branch (1409:13): [True: 301, False: 27.4k]
  ------------------
 1410|    301|            if (!pkt.get(v5_sec_len)) {
  ------------------
  |  Branch (1410:17): [True: 12, False: 289]
  ------------------
 1411|     12|                RNP_LOG("failed to read v5 secret fields length");
  ------------------
  |  |   84|     12|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     12|    do {                                                                                 \
  |  |  |  |   77|     12|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 12, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     12|            break;                                                                       \
  |  |  |  |   79|     12|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1412|     12|                return RNP_ERROR_BAD_FORMAT;
 1413|     12|            }
 1414|    289|            if (v5_sec_len != pkt.left()) {
  ------------------
  |  Branch (1414:17): [True: 118, False: 171]
  ------------------
 1415|    118|                RNP_LOG("v5 secret fields length mismatch");
  ------------------
  |  |   84|    118|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    118|    do {                                                                                 \
  |  |  |  |   77|    118|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 118, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    118|            break;                                                                       \
  |  |  |  |   79|    118|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1416|    118|                return RNP_ERROR_BAD_FORMAT;
 1417|    118|            }
 1418|    289|        }
 1419|       |
 1420|       |        /* encrypted/cleartext secret MPIs are left */
 1421|  27.5k|        size_t sec_len = pkt.left();
 1422|  27.5k|        sec_data.resize(sec_len);
 1423|  27.5k|        if (sec_len && !pkt.get(sec_data.data(), sec_len)) {
  ------------------
  |  Branch (1423:13): [True: 26.9k, False: 675]
  |  Branch (1423:24): [True: 0, False: 26.9k]
  ------------------
 1424|      0|            return RNP_ERROR_BAD_STATE;
 1425|      0|        }
 1426|  27.5k|    }
 1427|       |
 1428|  87.6k|    if (pkt.left()) {
  ------------------
  |  Branch (1428:9): [True: 0, False: 87.6k]
  ------------------
 1429|      0|        RNP_LOG("extra %zu bytes in key packet", pkt.left());
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1430|      0|        return RNP_ERROR_BAD_FORMAT;
 1431|      0|    }
 1432|  87.6k|    return RNP_SUCCESS;
 1433|  87.6k|}
_ZN25pgp_transferable_subkey_tC2ERKS_b:
 1470|   106k|{
 1471|   106k|    subkey = pgp_key_pkt_t(src.subkey, pubonly);
 1472|   106k|    signatures = src.signatures;
 1473|   106k|}
_ZN22pgp_transferable_key_tC2ERKS_b:
 1476|   110k|{
 1477|   110k|    key = pgp_key_pkt_t(src.key, pubonly);
 1478|   110k|    userids = src.userids;
 1479|   110k|    subkeys = src.subkeys;
 1480|   110k|    signatures = src.signatures;
 1481|   110k|}
stream-key.cpp:_ZL16pkt_is_ignorablei:
   98|  2.05M|{
   99|  2.05M|    return ((ptag >= 40) && (ptag <= 63)) || (ptag == PGP_PKT_PADDING);
  ------------------
  |  Branch (99:13): [True: 2.47k, False: 2.05M]
  |  Branch (99:29): [True: 2.47k, False: 0]
  |  Branch (99:46): [True: 71, False: 2.05M]
  ------------------
  100|  2.05M|}
stream-key.cpp:_ZL16skip_pgp_packetsR12pgp_source_tRKNSt3__13setI14pgp_pkt_type_tNS1_4lessIS3_EENS1_9allocatorIS3_EEEE:
   61|  1.13M|{
   62|  1.26M|    do {
   63|  1.26M|        int pkt = stream_pkt_type(src);
   64|  1.26M|        if (!pkt) {
  ------------------
  |  Branch (64:13): [True: 27.3k, False: 1.23M]
  ------------------
   65|  27.3k|            break;
   66|  27.3k|        }
   67|  1.23M|        if (pkt < 0) {
  ------------------
  |  Branch (67:13): [True: 1.01k, False: 1.23M]
  ------------------
   68|  1.01k|            return false;
   69|  1.01k|        }
   70|  1.23M|        if (pkts.find((pgp_pkt_type_t) pkt) == pkts.end()) {
  ------------------
  |  Branch (70:13): [True: 1.11M, False: 124k]
  ------------------
   71|  1.11M|            return true;
   72|  1.11M|        }
   73|   124k|        uint64_t ppos = src.readb;
   74|   124k|        if (stream_skip_packet(&src)) {
  ------------------
  |  Branch (74:13): [True: 1.12k, False: 123k]
  ------------------
   75|  1.12k|            RNP_LOG("failed to skip packet at %" PRIu64, ppos);
  ------------------
  |  |   84|  1.12k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  1.12k|    do {                                                                                 \
  |  |  |  |   77|  1.12k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 1.12k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  1.12k|            break;                                                                       \
  |  |  |  |   79|  1.12k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   76|  1.12k|            return false;
   77|  1.12k|        }
   78|   124k|    } while (1);
  ------------------
  |  Branch (78:14): [True: 123k, Folded]
  ------------------
   79|       |
   80|  27.3k|    return true;
   81|  1.13M|}
stream-key.cpp:_ZL26process_pgp_key_signaturesR12pgp_source_tRNSt3__16vectorIN3pgp3pkt9SignatureENS1_9allocatorIS5_EEEEb:
  120|   694k|{
  121|   694k|    int ptag;
  122|  1.10M|    while (true) {
  ------------------
  |  Branch (122:12): [True: 1.10M, Folded]
  ------------------
  123|  1.10M|        if (!skip_ignorable_packets(src) && src.error()) {
  ------------------
  |  Branch (123:13): [True: 324, False: 1.10M]
  |  Branch (123:45): [True: 3, False: 321]
  ------------------
  124|      3|            return RNP_ERROR_READ;
  125|      3|        }
  126|  1.10M|        if ((ptag = stream_pkt_type(src)) != PGP_PKT_SIGNATURE) {
  ------------------
  |  Branch (126:13): [True: 691k, False: 409k]
  ------------------
  127|   691k|            break;
  128|   691k|        }
  129|   409k|        uint64_t sigpos = src.readb;
  130|   409k|        try {
  131|   409k|            pgp::pkt::Signature sig;
  132|   409k|            rnp_result_t        ret = sig.parse(src);
  133|   409k|            if (ret) {
  ------------------
  |  Branch (133:17): [True: 328k, False: 80.9k]
  ------------------
  134|   328k|                RNP_LOG("failed to parse signature at %" PRIu64, sigpos);
  ------------------
  |  |   84|   328k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|   328k|    do {                                                                                 \
  |  |  |  |   77|   328k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 328k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|   328k|            break;                                                                       \
  |  |  |  |   79|   328k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  135|   328k|                if (!skiperrors) {
  ------------------
  |  Branch (135:21): [True: 2.62k, False: 326k]
  ------------------
  136|  2.62k|                    return ret;
  137|  2.62k|                }
  138|   328k|            } else {
  139|  80.9k|                sigs.emplace_back(std::move(sig));
  140|  80.9k|            }
  141|   409k|        } catch (const std::exception &e) {
  142|      0|            RNP_LOG("%s", e.what());
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  143|      0|            return RNP_ERROR_OUT_OF_MEMORY;
  144|      0|        }
  145|   407k|        if (!skip_pgp_packets(src, {PGP_PKT_TRUST})) {
  ------------------
  |  Branch (145:13): [True: 295, False: 406k]
  ------------------
  146|    295|            return RNP_ERROR_READ;
  147|    295|        }
  148|   407k|    }
  149|   691k|    return ptag < 0 ? RNP_ERROR_BAD_FORMAT : RNP_SUCCESS;
  ------------------
  |  Branch (149:12): [True: 29, False: 691k]
  ------------------
  150|   694k|}
stream-key.cpp:_ZL18process_pgp_useridR12pgp_source_tR25pgp_transferable_userid_tb:
  154|   608k|{
  155|   608k|    rnp_result_t ret;
  156|   608k|    uint64_t     uidpos = src.readb;
  157|   608k|    try {
  158|   608k|        ret = uid.uid.parse(src);
  159|   608k|    } catch (const std::exception &e) {
  160|      0|        ret = RNP_ERROR_GENERIC;
  161|      0|    }
  162|   608k|    if (ret) {
  ------------------
  |  Branch (162:9): [True: 1.09k, False: 607k]
  ------------------
  163|  1.09k|        RNP_LOG("failed to parse userid at %" PRIu64, uidpos);
  ------------------
  |  |   84|  1.09k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  1.09k|    do {                                                                                 \
  |  |  |  |   77|  1.09k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 1.09k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  1.09k|            break;                                                                       \
  |  |  |  |   79|  1.09k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  164|  1.09k|        return ret;
  165|  1.09k|    }
  166|   607k|    if (!skip_pgp_packets(src, {PGP_PKT_TRUST})) {
  ------------------
  |  Branch (166:9): [True: 33, False: 607k]
  ------------------
  167|     33|        return RNP_ERROR_READ;
  168|     33|    }
  169|   607k|    return process_pgp_key_signatures(src, uid.signatures, skiperrors);
  170|   607k|}
stream-key.cpp:_ZL21parse_secret_key_mpisR13pgp_key_pkt_tPKhm:
  478|  1.48k|{
  479|  1.48k|    if (!mpis) {
  ------------------
  |  Branch (479:9): [True: 17, False: 1.47k]
  ------------------
  480|     17|        return RNP_ERROR_NULL_POINTER;
  481|     17|    }
  482|       |
  483|       |    /* check the cleartext data */
  484|  1.47k|    switch (key.sec_protection.s2k.usage) {
  485|  1.47k|    case PGP_S2KU_NONE:
  ------------------
  |  Branch (485:5): [True: 1.47k, False: 0]
  ------------------
  486|  1.47k|#if defined(ENABLE_CRYPTO_REFRESH)
  487|  1.47k|        if (key.version == PGP_V6) {
  ------------------
  |  Branch (487:13): [True: 422, False: 1.05k]
  ------------------
  488|    422|            break; /* checksum removed for v6 and usage byte zero */
  489|    422|        }
  490|  1.05k|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|  1.05k|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
  491|  1.05k|#endif
  492|  1.05k|    case PGP_S2KU_ENCRYPTED: {
  ------------------
  |  Branch (492:5): [True: 0, False: 1.47k]
  ------------------
  493|       |        /* calculate and check sum16 of the cleartext */
  494|  1.05k|        if (len < 2) {
  ------------------
  |  Branch (494:13): [True: 28, False: 1.02k]
  ------------------
  495|     28|            RNP_LOG("No space for checksum.");
  ------------------
  |  |   84|     28|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     28|    do {                                                                                 \
  |  |  |  |   77|     28|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 28, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     28|            break;                                                                       \
  |  |  |  |   79|     28|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  496|     28|            return RNP_ERROR_BAD_FORMAT;
  497|     28|        }
  498|  1.02k|        uint16_t sum = 0;
  499|  1.02k|        len -= 2;
  500|   168k|        for (size_t idx = 0; idx < len; idx++) {
  ------------------
  |  Branch (500:30): [True: 167k, False: 1.02k]
  ------------------
  501|   167k|            sum += mpis[idx];
  502|   167k|        }
  503|  1.02k|        uint16_t expsum = read_uint16(mpis + len);
  504|  1.02k|        if (sum != expsum) {
  ------------------
  |  Branch (504:13): [True: 345, False: 677]
  ------------------
  505|    345|            RNP_LOG("Wrong key checksum, got 0x%X instead of 0x%X.", (int) sum, (int) expsum);
  ------------------
  |  |   84|    345|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    345|    do {                                                                                 \
  |  |  |  |   77|    345|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 345, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    345|            break;                                                                       \
  |  |  |  |   79|    345|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  506|    345|            return RNP_ERROR_DECRYPT_FAILED;
  507|    345|        }
  508|    677|        break;
  509|  1.02k|    }
  510|    677|    case PGP_S2KU_ENCRYPTED_AND_HASHED: {
  ------------------
  |  Branch (510:5): [True: 0, False: 1.47k]
  ------------------
  511|      0|        if (len < PGP_SHA1_HASH_SIZE) {
  ------------------
  |  |   42|      0|#define PGP_SHA1_HASH_SIZE 20
  ------------------
  |  Branch (511:13): [True: 0, False: 0]
  ------------------
  512|      0|            RNP_LOG("No space for hash");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  513|      0|            return RNP_ERROR_BAD_FORMAT;
  514|      0|        }
  515|       |        /* calculate and check sha1 hash of the cleartext */
  516|      0|        uint8_t hval[PGP_SHA1_HASH_SIZE];
  517|      0|        try {
  518|      0|            auto hash = rnp::Hash::create(PGP_HASH_SHA1);
  519|      0|            assert(hash->size() == sizeof(hval));
  520|      0|            len -= PGP_SHA1_HASH_SIZE;
  ------------------
  |  |   42|      0|#define PGP_SHA1_HASH_SIZE 20
  ------------------
  521|      0|            hash->add(mpis, len);
  522|      0|            hash->finish(hval);
  523|      0|        } catch (const std::exception &e) {
  524|      0|            RNP_LOG("hash calculation failed: %s", e.what());
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  525|      0|            return RNP_ERROR_BAD_STATE;
  526|      0|        }
  527|      0|        if (memcmp(hval, mpis + len, PGP_SHA1_HASH_SIZE)) {
  ------------------
  |  |   42|      0|#define PGP_SHA1_HASH_SIZE 20
  ------------------
  |  Branch (527:13): [True: 0, False: 0]
  ------------------
  528|      0|            return RNP_ERROR_DECRYPT_FAILED;
  529|      0|        }
  530|      0|        break;
  531|      0|    }
  532|      0|#if defined(ENABLE_CRYPTO_REFRESH)
  533|      0|    case PGP_S2KU_AEAD: {
  ------------------
  |  Branch (533:5): [True: 0, False: 1.47k]
  ------------------
  534|      0|        break; // nothing to do here
  535|      0|    }
  536|      0|#endif
  537|      0|    default:
  ------------------
  |  Branch (537:5): [True: 0, False: 1.47k]
  ------------------
  538|      0|        RNP_LOG("unknown s2k usage: %d", (int) key.sec_protection.s2k.usage);
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  539|      0|        return RNP_ERROR_BAD_PARAMETERS;
  540|  1.47k|    }
  541|       |
  542|  1.09k|    try {
  543|       |        /* parse mpis depending on algorithm */
  544|  1.09k|        pgp_packet_body_t body(mpis, len);
  545|       |
  546|  1.09k|        if (!key.material) {
  ------------------
  |  Branch (546:13): [True: 0, False: 1.09k]
  ------------------
  547|      0|            RNP_LOG("unknown pk alg : %d", (int) key.alg);
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  548|      0|            return RNP_ERROR_BAD_PARAMETERS;
  549|      0|        }
  550|  1.09k|        if (!key.material->parse_secret(body)) {
  ------------------
  |  Branch (550:13): [True: 221, False: 878]
  ------------------
  551|    221|            return RNP_ERROR_BAD_FORMAT;
  552|    221|        }
  553|       |
  554|    878|        if (body.left()) {
  ------------------
  |  Branch (554:13): [True: 87, False: 791]
  ------------------
  555|     87|            RNP_LOG("extra data in sec key");
  ------------------
  |  |   84|     87|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     87|    do {                                                                                 \
  |  |  |  |   77|     87|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 87, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     87|            break;                                                                       \
  |  |  |  |   79|     87|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  556|     87|            return RNP_ERROR_BAD_FORMAT;
  557|     87|        }
  558|    791|        return RNP_SUCCESS;
  559|    878|    } catch (const std::exception &e) {
  560|      0|        RNP_LOG("%s", e.what());
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  561|      0|        return RNP_ERROR_GENERIC;
  562|      0|    }
  563|  1.09k|}

_ZN13pgp_key_pkt_tC2Ev:
   59|   718k|        : tag(PGP_PKT_RESERVED), version(PGP_VUNKNOWN), creation_time(0), alg(PGP_PKA_NOTHING),
   60|   718k|          v3_days(0), v5_pub_len(0), material(nullptr), sec_protection({}), v5_s2k_len(0),
   61|   718k|          v5_sec_len(0){};
_ZN25pgp_transferable_subkey_tC2Ev:
   90|  90.5k|    pgp_transferable_subkey_t() = default;
_ZN25pgp_transferable_subkey_taSERKS_:
   92|  45.2k|    pgp_transferable_subkey_t &operator=(const pgp_transferable_subkey_t &) = default;
_ZN22pgp_transferable_key_tC2Ev:
  102|   239k|    pgp_transferable_key_t() = default;
_ZN22pgp_transferable_key_taSERKS_:
  104|   156k|    pgp_transferable_key_t &operator=(const pgp_transferable_key_t &) = default;

_Z16write_packet_lenPhm:
   50|   739k|{
   51|   739k|    if (len < 192) {
  ------------------
  |  Branch (51:9): [True: 737k, False: 2.65k]
  ------------------
   52|   737k|        buf[0] = len;
   53|   737k|        return 1;
   54|   737k|    } else if (len < 8192 + 192) {
  ------------------
  |  Branch (54:16): [True: 2.58k, False: 75]
  ------------------
   55|  2.58k|        buf[0] = ((len - 192) >> 8) + 192;
   56|  2.58k|        buf[1] = (len - 192) & 0xff;
   57|  2.58k|        return 2;
   58|  2.58k|    } else {
   59|     75|        buf[0] = 0xff;
   60|     75|        write_uint32(&buf[1], len);
   61|     75|        return 5;
   62|     75|    }
   63|   739k|}
_Z15get_packet_typeh:
   67|  8.27M|{
   68|  8.27M|    if (!(ptag & PGP_PTAG_ALWAYS_SET)) {
  ------------------
  |  |   47|  8.27M|#define PGP_PTAG_ALWAYS_SET 0x80
  ------------------
  |  Branch (68:9): [True: 2.29k, False: 8.27M]
  ------------------
   69|  2.29k|        return -1;
   70|  2.29k|    }
   71|       |
   72|  8.27M|    if (ptag & PGP_PTAG_NEW_FORMAT) {
  ------------------
  |  |   56|  8.27M|#define PGP_PTAG_NEW_FORMAT 0x40
  ------------------
  |  Branch (72:9): [True: 4.92M, False: 3.34M]
  ------------------
   73|  4.92M|        return (int) (ptag & PGP_PTAG_NF_CONTENT_TAG_MASK);
  ------------------
  |  |  137|  4.92M|#define PGP_PTAG_NF_CONTENT_TAG_MASK 0x3f
  ------------------
   74|  4.92M|    } else {
   75|  3.34M|        return (int) ((ptag & PGP_PTAG_OF_CONTENT_TAG_MASK) >> PGP_PTAG_OF_CONTENT_TAG_SHIFT);
  ------------------
  |  |   66|  3.34M|#define PGP_PTAG_OF_CONTENT_TAG_MASK 0x3c
  ------------------
                      return (int) ((ptag & PGP_PTAG_OF_CONTENT_TAG_MASK) >> PGP_PTAG_OF_CONTENT_TAG_SHIFT);
  ------------------
  |  |   74|  3.34M|#define PGP_PTAG_OF_CONTENT_TAG_SHIFT 2
  ------------------
   76|  3.34M|    }
   77|  8.27M|}
_Z15stream_pkt_typeR12pgp_source_t:
   81|  6.11M|{
   82|  6.11M|    if (src.eof()) {
  ------------------
  |  Branch (82:9): [True: 128k, False: 5.98M]
  ------------------
   83|   128k|        return 0;
   84|   128k|    }
   85|  5.98M|    size_t hdrneed = 0;
   86|  5.98M|    if (!stream_pkt_hdr_len(src, hdrneed)) {
  ------------------
  |  Branch (86:9): [True: 5.00k, False: 5.97M]
  ------------------
   87|  5.00k|        return -1;
   88|  5.00k|    }
   89|  5.97M|    uint8_t hdr[PGP_MAX_HEADER_SIZE];
   90|  5.97M|    if (!src.peek_eq(hdr, hdrneed)) {
  ------------------
  |  Branch (90:9): [True: 51, False: 5.97M]
  ------------------
   91|     51|        return -1;
   92|     51|    }
   93|  5.97M|    return get_packet_type(hdr[0]);
   94|  5.97M|}
_Z18stream_pkt_hdr_lenR12pgp_source_tRm:
   98|  9.39M|{
   99|  9.39M|    uint8_t buf[2];
  100|       |
  101|  9.39M|    if (!src.peek_eq(buf, 2) || !(buf[0] & PGP_PTAG_ALWAYS_SET)) {
  ------------------
  |  |   47|  9.38M|#define PGP_PTAG_ALWAYS_SET 0x80
  ------------------
  |  Branch (101:9): [True: 1.93k, False: 9.38M]
  |  Branch (101:33): [True: 3.09k, False: 9.38M]
  ------------------
  102|  5.02k|        return false;
  103|  5.02k|    }
  104|       |
  105|  9.38M|    if (buf[0] & PGP_PTAG_NEW_FORMAT) {
  ------------------
  |  |   56|  9.38M|#define PGP_PTAG_NEW_FORMAT 0x40
  ------------------
  |  Branch (105:9): [True: 5.62M, False: 3.75M]
  ------------------
  106|  5.62M|        if (buf[1] < 192) {
  ------------------
  |  Branch (106:13): [True: 5.29M, False: 335k]
  ------------------
  107|  5.29M|            hdrlen = 2;
  108|  5.29M|        } else if (buf[1] < 224) {
  ------------------
  |  Branch (108:20): [True: 17.1k, False: 317k]
  ------------------
  109|  17.1k|            hdrlen = 3;
  110|   317k|        } else if (buf[1] < 255) {
  ------------------
  |  Branch (110:20): [True: 8.45k, False: 309k]
  ------------------
  111|  8.45k|            hdrlen = 2;
  112|   309k|        } else {
  113|   309k|            hdrlen = 6;
  114|   309k|        }
  115|  5.62M|        return true;
  116|  5.62M|    }
  117|       |
  118|  3.75M|    switch (buf[0] & PGP_PTAG_OF_LENGTH_TYPE_MASK) {
  ------------------
  |  |   83|  3.75M|#define PGP_PTAG_OF_LENGTH_TYPE_MASK 0x03
  ------------------
  119|  1.55M|    case PGP_PTAG_OLD_LEN_1:
  ------------------
  |  Branch (119:5): [True: 1.55M, False: 2.20M]
  ------------------
  120|  1.55M|        hdrlen = 2;
  121|  1.55M|        return true;
  122|   101k|    case PGP_PTAG_OLD_LEN_2:
  ------------------
  |  Branch (122:5): [True: 101k, False: 3.65M]
  ------------------
  123|   101k|        hdrlen = 3;
  124|   101k|        return true;
  125|   484k|    case PGP_PTAG_OLD_LEN_4:
  ------------------
  |  Branch (125:5): [True: 484k, False: 3.27M]
  ------------------
  126|   484k|        hdrlen = 5;
  127|   484k|        return true;
  128|  1.61M|    case PGP_PTAG_OLD_LEN_INDETERMINATE:
  ------------------
  |  Branch (128:5): [True: 1.61M, False: 2.14M]
  ------------------
  129|  1.61M|        hdrlen = 1;
  130|  1.61M|        return true;
  131|      0|    default:
  ------------------
  |  Branch (131:5): [True: 0, False: 3.75M]
  ------------------
  132|      0|        return false;
  133|  3.75M|    }
  134|  3.75M|}
_Z19stream_read_pkt_lenR12pgp_source_tPm:
  176|  1.69M|{
  177|  1.69M|    uint8_t buf[6] = {};
  178|  1.69M|    size_t  read = 0;
  179|       |
  180|  1.69M|    if (!stream_pkt_hdr_len(src, read)) {
  ------------------
  |  Branch (180:9): [True: 0, False: 1.69M]
  ------------------
  181|      0|        return false;
  182|      0|    }
  183|       |
  184|  1.69M|    if (!src.read_eq(buf, read)) {
  ------------------
  |  Branch (184:9): [True: 0, False: 1.69M]
  ------------------
  185|      0|        return false;
  186|      0|    }
  187|       |
  188|  1.69M|    return get_pkt_len(buf, pktlen);
  189|  1.69M|}
_Z29stream_read_partial_chunk_lenP12pgp_source_tPmPb:
  193|   316k|{
  194|   316k|    uint8_t hdr[5] = {};
  195|   316k|    size_t  read = 0;
  196|       |
  197|   316k|    if (!src->read(hdr, 1, &read)) {
  ------------------
  |  Branch (197:9): [True: 1, False: 316k]
  ------------------
  198|      1|        RNP_LOG("failed to read header");
  ------------------
  |  |   84|      1|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      1|    do {                                                                                 \
  |  |  |  |   77|      1|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 1, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      1|            break;                                                                       \
  |  |  |  |   79|      1|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  199|      1|        return false;
  200|      1|    }
  201|   316k|    if (read < 1) {
  ------------------
  |  Branch (201:9): [True: 17, False: 316k]
  ------------------
  202|     17|        RNP_LOG("wrong eof");
  ------------------
  |  |   84|     17|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     17|    do {                                                                                 \
  |  |  |  |   77|     17|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 17, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     17|            break;                                                                       \
  |  |  |  |   79|     17|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  203|     17|        return false;
  204|     17|    }
  205|       |
  206|   316k|    *last = true;
  207|       |    // partial length
  208|   316k|    if ((hdr[0] >= 224) && (hdr[0] < 255)) {
  ------------------
  |  Branch (208:9): [True: 315k, False: 1.12k]
  |  Branch (208:28): [True: 314k, False: 344]
  ------------------
  209|   314k|        *last = false;
  210|   314k|        *clen = get_partial_pkt_len(hdr[0]);
  211|   314k|        return true;
  212|   314k|    }
  213|       |    // 1-byte length
  214|  1.46k|    if (hdr[0] < 192) {
  ------------------
  |  Branch (214:9): [True: 987, False: 479]
  ------------------
  215|    987|        *clen = hdr[0];
  216|    987|        return true;
  217|    987|    }
  218|       |    // 2-byte length
  219|    479|    if (hdr[0] < 224) {
  ------------------
  |  Branch (219:9): [True: 135, False: 344]
  ------------------
  220|    135|        if (!src->read_eq(&hdr[1], 1)) {
  ------------------
  |  Branch (220:13): [True: 11, False: 124]
  ------------------
  221|     11|            RNP_LOG("wrong 2-byte length");
  ------------------
  |  |   84|     11|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     11|    do {                                                                                 \
  |  |  |  |   77|     11|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 11, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     11|            break;                                                                       \
  |  |  |  |   79|     11|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  222|     11|            return false;
  223|     11|        }
  224|    124|        *clen = ((size_t)(hdr[0] - 192) << 8) + (size_t) hdr[1] + 192;
  225|    124|        return true;
  226|    135|    }
  227|       |    // 4-byte length
  228|    344|    if (!src->read_eq(&hdr[1], 4)) {
  ------------------
  |  Branch (228:9): [True: 7, False: 337]
  ------------------
  229|      7|        RNP_LOG("wrong 4-byte length");
  ------------------
  |  |   84|      7|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      7|    do {                                                                                 \
  |  |  |  |   77|      7|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 7, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      7|            break;                                                                       \
  |  |  |  |   79|      7|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  230|      7|        return false;
  231|      7|    }
  232|    337|    *clen = ((size_t) hdr[1] << 24) | ((size_t) hdr[2] << 16) | ((size_t) hdr[3] << 8) |
  233|    337|            (size_t) hdr[4];
  234|    337|    return true;
  235|    344|}
_Z32stream_old_indeterminate_pkt_lenP12pgp_source_t:
  239|   132k|{
  240|   132k|    uint8_t ptag = 0;
  241|   132k|    if (!src->peek_eq(&ptag, 1)) {
  ------------------
  |  Branch (241:9): [True: 0, False: 132k]
  ------------------
  242|      0|        return false;
  243|      0|    }
  244|   132k|    return !(ptag & PGP_PTAG_NEW_FORMAT) &&
  ------------------
  |  |   56|   132k|#define PGP_PTAG_NEW_FORMAT 0x40
  ------------------
  |  Branch (244:12): [True: 14.4k, False: 118k]
  ------------------
  245|  14.4k|           ((ptag & PGP_PTAG_OF_LENGTH_TYPE_MASK) == PGP_PTAG_OLD_LEN_INDETERMINATE);
  ------------------
  |  |   83|  14.4k|#define PGP_PTAG_OF_LENGTH_TYPE_MASK 0x03
  ------------------
  |  Branch (245:12): [True: 3.05k, False: 11.4k]
  ------------------
  246|   132k|}
_Z22stream_partial_pkt_lenP12pgp_source_t:
  250|   131k|{
  251|   131k|    uint8_t hdr[2] = {};
  252|   131k|    if (!src->peek_eq(hdr, 2)) {
  ------------------
  |  Branch (252:9): [True: 16, False: 131k]
  ------------------
  253|     16|        return false;
  254|     16|    }
  255|   131k|    return (hdr[0] & PGP_PTAG_NEW_FORMAT) && (hdr[1] >= 224) && (hdr[1] < 255);
  ------------------
  |  |   56|   131k|#define PGP_PTAG_NEW_FORMAT 0x40
  ------------------
  |  Branch (255:12): [True: 119k, False: 11.8k]
  |  Branch (255:46): [True: 4.36k, False: 115k]
  |  Branch (255:65): [True: 2.55k, False: 1.81k]
  ------------------
  256|   131k|}
_Z19get_partial_pkt_lenh:
  260|   316k|{
  261|   316k|    return 1 << (blen & 0x1f);
  262|   316k|}
_Z22stream_peek_packet_hdrP12pgp_source_tP16pgp_packet_hdr_t:
  266|  5.61k|{
  267|  5.61k|    size_t hlen = 0;
  268|  5.61k|    memset(hdr, 0, sizeof(*hdr));
  269|  5.61k|    if (!stream_pkt_hdr_len(*src, hlen)) {
  ------------------
  |  Branch (269:9): [True: 20, False: 5.59k]
  ------------------
  270|     20|        uint8_t hdr2[2] = {0};
  271|     20|        if (!src->peek_eq(hdr2, 2)) {
  ------------------
  |  Branch (271:13): [True: 20, False: 0]
  ------------------
  272|     20|            RNP_LOG("pkt header read failed");
  ------------------
  |  |   84|     20|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     20|    do {                                                                                 \
  |  |  |  |   77|     20|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 20, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     20|            break;                                                                       \
  |  |  |  |   79|     20|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  273|     20|            return RNP_ERROR_READ;
  274|     20|        }
  275|       |
  276|      0|        RNP_LOG("bad packet header: 0x%02x%02x", hdr2[0], hdr2[1]);
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  277|      0|        return RNP_ERROR_BAD_FORMAT;
  278|     20|    }
  279|       |
  280|  5.59k|    if (!src->peek_eq(hdr->hdr, hlen)) {
  ------------------
  |  Branch (280:9): [True: 12, False: 5.58k]
  ------------------
  281|     12|        RNP_LOG("failed to read pkt header");
  ------------------
  |  |   84|     12|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     12|    do {                                                                                 \
  |  |  |  |   77|     12|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 12, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     12|            break;                                                                       \
  |  |  |  |   79|     12|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  282|     12|        return RNP_ERROR_READ;
  283|     12|    }
  284|       |
  285|  5.58k|    hdr->hdr_len = hlen;
  286|  5.58k|    hdr->tag = (pgp_pkt_type_t) get_packet_type(hdr->hdr[0]);
  287|       |
  288|       |    /* RFC 4880, section 4.3: packet tag 0 is reserved and must not be used. */
  289|  5.58k|    if (hdr->tag == PGP_PKT_RESERVED) {
  ------------------
  |  Branch (289:9): [True: 0, False: 5.58k]
  ------------------
  290|      0|        RNP_LOG("bad packet tag 0 (reserved)");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  291|      0|        return RNP_ERROR_BAD_FORMAT;
  292|      0|    }
  293|       |
  294|  5.58k|    if (stream_partial_pkt_len(src)) {
  ------------------
  |  Branch (294:9): [True: 1.35k, False: 4.22k]
  ------------------
  295|  1.35k|        hdr->partial = true;
  296|  4.22k|    } else if (stream_old_indeterminate_pkt_len(src)) {
  ------------------
  |  Branch (296:16): [True: 412, False: 3.81k]
  ------------------
  297|    412|        hdr->indeterminate = true;
  298|  3.81k|    } else {
  299|  3.81k|        (void) get_pkt_len(hdr->hdr, &hdr->pkt_len);
  300|  3.81k|    }
  301|       |
  302|  5.58k|    return RNP_SUCCESS;
  303|  5.58k|}
_Z18stream_read_packetP12pgp_source_tP10pgp_dest_t:
  351|   128k|{
  352|   128k|    if (stream_old_indeterminate_pkt_len(src)) {
  ------------------
  |  Branch (352:9): [True: 2.64k, False: 125k]
  ------------------
  353|  2.64k|        return dst_write_src(src, dst, PGP_MAX_OLD_LEN_INDETERMINATE_PKT_SIZE);
  ------------------
  |  |   43|  2.64k|#define PGP_MAX_OLD_LEN_INDETERMINATE_PKT_SIZE 0x40000000
  ------------------
  354|  2.64k|    }
  355|       |
  356|   125k|    if (stream_partial_pkt_len(src)) {
  ------------------
  |  Branch (356:9): [True: 1.20k, False: 124k]
  ------------------
  357|  1.20k|        return stream_read_packet_partial(src, dst);
  358|  1.20k|    }
  359|       |
  360|   124k|    try {
  361|   124k|        pgp_packet_body_t body(PGP_PKT_RESERVED);
  362|   124k|        rnp_result_t      ret = body.read(*src);
  363|   124k|        if (dst) {
  ------------------
  |  Branch (363:13): [True: 0, False: 124k]
  ------------------
  364|      0|            body.write(*dst, false);
  365|      0|        }
  366|   124k|        return ret;
  367|   124k|    } catch (const std::exception &e) {
  368|      0|        RNP_LOG("%s", e.what());
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  369|      0|        return RNP_ERROR_GENERIC;
  370|      0|    }
  371|   124k|}
_Z18stream_skip_packetP12pgp_source_t:
  375|   128k|{
  376|       |    return stream_read_packet(src, NULL);
  377|   128k|}
_Z19stream_parse_markerR12pgp_source_t:
  381|    196|{
  382|    196|    try {
  383|    196|        pgp_packet_body_t pkt(PGP_PKT_MARKER);
  384|    196|        rnp_result_t      res = pkt.read(src);
  385|    196|        if (res) {
  ------------------
  |  Branch (385:13): [True: 30, False: 166]
  ------------------
  386|     30|            return res;
  387|     30|        }
  388|    166|        if ((pkt.size() != PGP_MARKER_LEN) ||
  ------------------
  |  |  109|    166|#define PGP_MARKER_LEN 3
  ------------------
  |  Branch (388:13): [True: 6, False: 160]
  ------------------
  389|    160|            memcmp(pkt.data(), PGP_MARKER_CONTENTS, PGP_MARKER_LEN)) {
  ------------------
  |  |  108|    160|#define PGP_MARKER_CONTENTS "PGP"
  ------------------
                          memcmp(pkt.data(), PGP_MARKER_CONTENTS, PGP_MARKER_LEN)) {
  ------------------
  |  |  109|    160|#define PGP_MARKER_LEN 3
  ------------------
  |  Branch (389:13): [True: 28, False: 132]
  ------------------
  390|     34|            return RNP_ERROR_BAD_FORMAT;
  391|     34|        }
  392|    132|        return RNP_SUCCESS;
  393|    166|    } catch (const std::exception &e) {
  394|      0|        RNP_LOG("%s", e.what());
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  395|      0|        return RNP_ERROR_OUT_OF_MEMORY;
  396|      0|    }
  397|    196|}
_Z10is_key_pkti:
  401|   284k|{
  402|   284k|    switch (tag) {
  403|   131k|    case PGP_PKT_PUBLIC_KEY:
  ------------------
  |  Branch (403:5): [True: 131k, False: 152k]
  ------------------
  404|   201k|    case PGP_PKT_PUBLIC_SUBKEY:
  ------------------
  |  Branch (404:5): [True: 70.1k, False: 214k]
  ------------------
  405|   243k|    case PGP_PKT_SECRET_KEY:
  ------------------
  |  Branch (405:5): [True: 41.3k, False: 243k]
  ------------------
  406|   284k|    case PGP_PKT_SECRET_SUBKEY:
  ------------------
  |  Branch (406:5): [True: 41.1k, False: 243k]
  ------------------
  407|   284k|        return true;
  408|      0|    default:
  ------------------
  |  Branch (408:5): [True: 0, False: 284k]
  ------------------
  409|      0|        return false;
  410|   284k|    }
  411|   284k|}
_Z13is_subkey_pkti:
  415|   966k|{
  416|   966k|    return (tag == PGP_PKT_PUBLIC_SUBKEY) || (tag == PGP_PKT_SECRET_SUBKEY);
  ------------------
  |  Branch (416:12): [True: 285k, False: 680k]
  |  Branch (416:46): [True: 127k, False: 552k]
  ------------------
  417|   966k|}
_Z18is_primary_key_pkti:
  421|   938k|{
  422|   938k|    return (tag == PGP_PKT_PUBLIC_KEY) || (tag == PGP_PKT_SECRET_KEY);
  ------------------
  |  Branch (422:12): [True: 754k, False: 184k]
  |  Branch (422:43): [True: 133k, False: 50.7k]
  ------------------
  423|   938k|}
_Z17is_public_key_pkti:
  427|  18.7k|{
  428|  18.7k|    switch (tag) {
  429|    277|    case PGP_PKT_PUBLIC_KEY:
  ------------------
  |  Branch (429:5): [True: 277, False: 18.5k]
  ------------------
  430|    279|    case PGP_PKT_PUBLIC_SUBKEY:
  ------------------
  |  Branch (430:5): [True: 2, False: 18.7k]
  ------------------
  431|    279|        return true;
  432|  18.5k|    default:
  ------------------
  |  Branch (432:5): [True: 18.5k, False: 279]
  ------------------
  433|  18.5k|        return false;
  434|  18.7k|    }
  435|  18.7k|}
_Z17is_secret_key_pkti:
  439|   569k|{
  440|   569k|    switch (tag) {
  441|  84.9k|    case PGP_PKT_SECRET_KEY:
  ------------------
  |  Branch (441:5): [True: 84.9k, False: 484k]
  ------------------
  442|   181k|    case PGP_PKT_SECRET_SUBKEY:
  ------------------
  |  Branch (442:5): [True: 96.4k, False: 472k]
  ------------------
  443|   181k|        return true;
  444|   387k|    default:
  ------------------
  |  Branch (444:5): [True: 387k, False: 181k]
  ------------------
  445|   387k|        return false;
  446|   569k|    }
  447|   569k|}
_Z14is_rsa_key_alg16pgp_pubkey_alg_t:
  451|  28.9k|{
  452|  28.9k|    switch (alg) {
  453|  14.1k|    case PGP_PKA_RSA:
  ------------------
  |  Branch (453:5): [True: 14.1k, False: 14.8k]
  ------------------
  454|  15.0k|    case PGP_PKA_RSA_ENCRYPT_ONLY:
  ------------------
  |  Branch (454:5): [True: 885, False: 28.0k]
  ------------------
  455|  28.8k|    case PGP_PKA_RSA_SIGN_ONLY:
  ------------------
  |  Branch (455:5): [True: 13.8k, False: 15.1k]
  ------------------
  456|  28.8k|        return true;
  457|    132|    default:
  ------------------
  |  Branch (457:5): [True: 132, False: 28.8k]
  ------------------
  458|    132|        return false;
  459|  28.9k|    }
  460|  28.9k|}
_ZN17pgp_packet_body_tC2E14pgp_pkt_type_t:
  463|  2.48M|{
  464|  2.48M|    data_.reserve(16);
  465|  2.48M|    tag_ = tag;
  466|  2.48M|}
_ZN17pgp_packet_body_tC2EPKhm:
  469|   116k|{
  470|   116k|    data_.assign(data, data + len);
  471|   116k|    tag_ = PGP_PKT_RESERVED;
  472|   116k|}
_ZN17pgp_packet_body_tC2ERKNSt3__16vectorIhNS0_9allocatorIhEEEE:
  475|   115k|    : pgp_packet_body_t(data.data(), data.size())
  476|   115k|{
  477|   115k|}
_ZN17pgp_packet_body_t4dataEv:
  481|   247k|{
  482|   247k|    return data_.data();
  483|   247k|}
_ZN17pgp_packet_body_t3curEv:
  487|   255k|{
  488|   255k|    return data_.data() + pos_;
  489|   255k|}
_ZNK17pgp_packet_body_t4sizeEv:
  493|  1.47M|{
  494|  1.47M|    return data_.size();
  495|  1.47M|}
_ZNK17pgp_packet_body_t4leftEv:
  499|   775k|{
  500|   775k|    return data_.size() - pos_;
  501|   775k|}
_ZN17pgp_packet_body_t4skipEm:
  505|  81.8k|{
  506|  81.8k|    pos_ += bt;
  507|  81.8k|}
_ZN17pgp_packet_body_t9skip_backEm:
  511|  84.3k|{
  512|  84.3k|    pos_ = bt > pos_ ? 0 : pos_ - bt;
  ------------------
  |  Branch (512:12): [True: 0, False: 84.3k]
  ------------------
  513|  84.3k|}
_ZN17pgp_packet_body_t3getERh:
  517|   731k|{
  518|   731k|    if (pos_ >= data_.size()) {
  ------------------
  |  Branch (518:9): [True: 7.10k, False: 724k]
  ------------------
  519|  7.10k|        return false;
  520|  7.10k|    }
  521|   724k|    val = data_[pos_++];
  522|   724k|    return true;
  523|   731k|}
_ZN17pgp_packet_body_t3getERt:
  527|   472k|{
  528|   472k|    if (pos_ + 2 > data_.size()) {
  ------------------
  |  Branch (528:9): [True: 1.28k, False: 471k]
  ------------------
  529|  1.28k|        return false;
  530|  1.28k|    }
  531|   471k|    val = read_uint16(data_.data() + pos_);
  532|   471k|    pos_ += 2;
  533|   471k|    return true;
  534|   472k|}
_ZN17pgp_packet_body_t3getERj:
  538|   125k|{
  539|   125k|    if (pos_ + 4 > data_.size()) {
  ------------------
  |  Branch (539:9): [True: 1.03k, False: 124k]
  ------------------
  540|  1.03k|        return false;
  541|  1.03k|    }
  542|   124k|    val = read_uint32(data_.data() + pos_);
  543|   124k|    pos_ += 4;
  544|   124k|    return true;
  545|   125k|}
_ZN17pgp_packet_body_t3getEPhm:
  549|   682k|{
  550|   682k|    if (!len) {
  ------------------
  |  Branch (550:9): [True: 594, False: 681k]
  ------------------
  551|       |        /* Do not memcpy with a null destination and zero length, which is
  552|       |         * undefined behavior - callers may pass data() of an empty vector. */
  553|    594|        return true;
  554|    594|    }
  555|   681k|    if (pos_ + len > data_.size()) {
  ------------------
  |  Branch (555:9): [True: 8.75k, False: 672k]
  ------------------
  556|  8.75k|        return false;
  557|  8.75k|    }
  558|   672k|    memcpy(val, data_.data() + pos_, len);
  559|   672k|    pos_ += len;
  560|   672k|    return true;
  561|   681k|}
_ZN17pgp_packet_body_t3getERNSt3__16vectorIhNS0_9allocatorIhEEEEm:
  565|   141k|{
  566|   141k|    if (pos_ + len > data_.size()) {
  ------------------
  |  Branch (566:9): [True: 904, False: 140k]
  ------------------
  567|    904|        return false;
  568|    904|    }
  569|   140k|    val.assign(data_.data() + pos_, data_.data() + pos_ + len);
  570|   140k|    pos_ += len;
  571|   140k|    return true;
  572|   141k|}
_ZN17pgp_packet_body_t3getERNSt3__15arrayIhLm8EEE:
  576|  5.47k|{
  577|  5.47k|    static_assert(std::tuple_size<pgp::KeyID>::value == PGP_KEY_ID_SIZE,
  578|  5.47k|                  "pgp::KeyID size mismatch");
  579|  5.47k|    return get(val.data(), val.size());
  580|  5.47k|}
_ZN17pgp_packet_body_t3getERN3pgp3mpiE:
  584|   288k|{
  585|   288k|    uint16_t bits = 0;
  586|   288k|    if (!get(bits)) {
  ------------------
  |  Branch (586:9): [True: 204, False: 288k]
  ------------------
  587|    204|        return false;
  588|    204|    }
  589|   288k|    size_t len = (bits + 7) >> 3;
  590|   288k|    if (len > PGP_MPINT_SIZE) {
  ------------------
  |  |   36|   288k|#define PGP_MPINT_SIZE (PGP_MPINT_BITS >> 3)
  |  |  ------------------
  |  |  |  |   35|   288k|#define PGP_MPINT_BITS (16384)
  |  |  ------------------
  ------------------
  |  Branch (590:9): [True: 2.68k, False: 285k]
  ------------------
  591|  2.68k|        RNP_LOG("too large mpi");
  ------------------
  |  |   84|  2.68k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  2.68k|    do {                                                                                 \
  |  |  |  |   77|  2.68k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 2.68k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  2.68k|            break;                                                                       \
  |  |  |  |   79|  2.68k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  592|  2.68k|        return false;
  593|  2.68k|    }
  594|   285k|    if (!len) {
  ------------------
  |  Branch (594:9): [True: 339, False: 284k]
  ------------------
  595|    339|        RNP_LOG("0 mpi");
  ------------------
  |  |   84|    339|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    339|    do {                                                                                 \
  |  |  |  |   77|    339|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 339, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    339|            break;                                                                       \
  |  |  |  |   79|    339|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  596|    339|        return false;
  597|    339|    }
  598|   284k|    val.resize(len);
  599|   284k|    if (!get(val.data(), len)) {
  ------------------
  |  Branch (599:9): [True: 1.57k, False: 283k]
  ------------------
  600|  1.57k|        RNP_LOG("failed to read mpi body");
  ------------------
  |  |   84|  1.57k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  1.57k|    do {                                                                                 \
  |  |  |  |   77|  1.57k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 1.57k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  1.57k|            break;                                                                       \
  |  |  |  |   79|  1.57k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  601|  1.57k|        return false;
  602|  1.57k|    }
  603|       |    /* check the mpi bit count */
  604|   283k|    size_t mbits = val.bits();
  605|   283k|    if (mbits != bits) {
  ------------------
  |  Branch (605:9): [True: 82.9k, False: 200k]
  ------------------
  606|  82.9k|        RNP_LOG(
  ------------------
  |  |   84|  82.9k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  82.9k|    do {                                                                                 \
  |  |  |  |   77|  82.9k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 82.9k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  82.9k|            break;                                                                       \
  |  |  |  |   79|  82.9k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  607|  82.9k|          "Warning! Wrong mpi bit count: got %" PRIu16 ", but actual is %zu", bits, mbits);
  608|  82.9k|    }
  609|   283k|    return true;
  610|   284k|}
_ZN17pgp_packet_body_t3getER11pgp_curve_t:
  614|  54.6k|{
  615|  54.6k|    uint8_t oidlen = 0;
  616|  54.6k|    if (!get(oidlen)) {
  ------------------
  |  Branch (616:9): [True: 83, False: 54.5k]
  ------------------
  617|     83|        return false;
  618|     83|    }
  619|  54.5k|    if (!oidlen || (oidlen == 0xff)) {
  ------------------
  |  Branch (619:9): [True: 94, False: 54.4k]
  |  Branch (619:20): [True: 18, False: 54.4k]
  ------------------
  620|    112|        RNP_LOG("unsupported curve oid len: %" PRIu8, oidlen);
  ------------------
  |  |   84|    112|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    112|    do {                                                                                 \
  |  |  |  |   77|    112|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 112, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    112|            break;                                                                       \
  |  |  |  |   79|    112|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  621|    112|        return false;
  622|    112|    }
  623|  54.4k|    std::vector<uint8_t> oid(oidlen, 0);
  624|  54.4k|    if (!get(oid, oidlen)) {
  ------------------
  |  Branch (624:9): [True: 271, False: 54.1k]
  ------------------
  625|    271|        return false;
  626|    271|    }
  627|  54.1k|    pgp_curve_t res = pgp::ec::Curve::by_OID(oid);
  628|  54.1k|    if (res == PGP_CURVE_MAX) {
  ------------------
  |  Branch (628:9): [True: 1.16k, False: 53.0k]
  ------------------
  629|  1.16k|        RNP_LOG("unsupported curve");
  ------------------
  |  |   84|  1.16k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  1.16k|    do {                                                                                 \
  |  |  |  |   77|  1.16k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 1.16k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  1.16k|            break;                                                                       \
  |  |  |  |   79|  1.16k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  630|  1.16k|        return false;
  631|  1.16k|    }
  632|  53.0k|    val = res;
  633|  53.0k|    return true;
  634|  54.1k|}
_ZN17pgp_packet_body_t3getER9pgp_s2k_t:
  638|  47.6k|{
  639|  47.6k|    uint8_t spec = 0, halg = 0;
  640|  47.6k|    if (!get(spec)) {
  ------------------
  |  Branch (640:9): [True: 592, False: 47.0k]
  ------------------
  641|    592|        return false;
  642|    592|    }
  643|  47.0k|    s2k.specifier = (pgp_s2k_specifier_t) spec;
  644|       |
  645|  47.0k|#if defined(ENABLE_CRYPTO_REFRESH)
  646|  47.0k|    if (s2k.specifier != PGP_S2KS_ARGON2)
  ------------------
  |  Branch (646:9): [True: 46.0k, False: 1.01k]
  ------------------
  647|  46.0k|#endif
  648|  46.0k|    {
  649|  46.0k|        if (!get(halg)) {
  ------------------
  |  Branch (649:13): [True: 219, False: 45.8k]
  ------------------
  650|    219|            return false;
  651|    219|        }
  652|  45.8k|        s2k.hash_alg = (pgp_hash_alg_t) halg;
  653|  45.8k|    }
  654|       |
  655|  46.8k|    switch (s2k.specifier) {
  656|  31.3k|    case PGP_S2KS_SIMPLE:
  ------------------
  |  Branch (656:5): [True: 31.3k, False: 15.4k]
  ------------------
  657|  31.3k|        return true;
  658|  1.78k|    case PGP_S2KS_SALTED:
  ------------------
  |  Branch (658:5): [True: 1.78k, False: 45.0k]
  ------------------
  659|  1.78k|        return get(s2k.salt, s2k.salt_size(s2k.specifier));
  660|  6.29k|    case PGP_S2KS_ITERATED_AND_SALTED: {
  ------------------
  |  Branch (660:5): [True: 6.29k, False: 40.5k]
  ------------------
  661|  6.29k|        uint8_t iter = 0;
  662|  6.29k|        if (!get(s2k.salt, s2k.salt_size(s2k.specifier)) || !get(iter)) {
  ------------------
  |  Branch (662:13): [True: 87, False: 6.20k]
  |  Branch (662:61): [True: 71, False: 6.13k]
  ------------------
  663|    158|            return false;
  664|    158|        }
  665|  6.13k|        s2k.iterations = iter;
  666|  6.13k|        return true;
  667|  6.29k|    }
  668|      0|#if defined(ENABLE_CRYPTO_REFRESH)
  669|  1.01k|    case PGP_S2KS_ARGON2:
  ------------------
  |  Branch (669:5): [True: 1.01k, False: 45.8k]
  ------------------
  670|  1.01k|        if (!get(s2k.salt, s2k.salt_size(s2k.specifier))) {
  ------------------
  |  Branch (670:13): [True: 241, False: 771]
  ------------------
  671|    241|            return false;
  672|    241|        }
  673|    771|        if (!get(s2k.argon2_t)) {
  ------------------
  |  Branch (673:13): [True: 72, False: 699]
  ------------------
  674|     72|            return false;
  675|     72|        }
  676|    699|        if (!get(s2k.argon2_p)) {
  ------------------
  |  Branch (676:13): [True: 68, False: 631]
  ------------------
  677|     68|            return false;
  678|     68|        }
  679|    631|        if (!get(s2k.argon2_encoded_m)) {
  ------------------
  |  Branch (679:13): [True: 18, False: 613]
  ------------------
  680|     18|            return false;
  681|     18|        }
  682|    613|        return true;
  683|      0|#endif
  684|  3.35k|    case PGP_S2KS_EXPERIMENTAL: {
  ------------------
  |  Branch (684:5): [True: 3.35k, False: 43.5k]
  ------------------
  685|  3.35k|        try {
  686|  3.35k|            s2k.experimental = {data_.begin() + pos_, data_.end()};
  687|  3.35k|        } catch (const std::exception &e) {
  688|      0|            RNP_LOG("%s", e.what());
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  689|      0|            return false;
  690|      0|        }
  691|  3.35k|        uint8_t gnu[3] = {0};
  692|  3.35k|        if (!get(gnu, 3) || memcmp(gnu, "GNU", 3)) {
  ------------------
  |  Branch (692:13): [True: 2.26k, False: 1.08k]
  |  Branch (692:29): [True: 632, False: 454]
  ------------------
  693|  2.89k|            RNP_LOG("Unknown experimental s2k. Skipping.");
  ------------------
  |  |   84|  2.89k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  2.89k|    do {                                                                                 \
  |  |  |  |   77|  2.89k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 2.89k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  2.89k|            break;                                                                       \
  |  |  |  |   79|  2.89k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  694|  2.89k|            pos_ = data_.size();
  695|  2.89k|            s2k.gpg_ext_num = PGP_S2K_GPG_NONE;
  696|  2.89k|            return true;
  697|  2.89k|        }
  698|    454|        uint8_t ext_num = 0;
  699|    454|        if (!get(ext_num)) {
  ------------------
  |  Branch (699:13): [True: 75, False: 379]
  ------------------
  700|     75|            return false;
  701|     75|        }
  702|    379|        if ((ext_num != PGP_S2K_GPG_NO_SECRET) && (ext_num != PGP_S2K_GPG_SMARTCARD)) {
  ------------------
  |  Branch (702:13): [True: 312, False: 67]
  |  Branch (702:51): [True: 37, False: 275]
  ------------------
  703|     37|            RNP_LOG("Unsupported gpg extension num: %" PRIu8 ", skipping", ext_num);
  ------------------
  |  |   84|     37|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     37|    do {                                                                                 \
  |  |  |  |   77|     37|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 37, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     37|            break;                                                                       \
  |  |  |  |   79|     37|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  704|     37|            pos_ = data_.size();
  705|     37|            s2k.gpg_ext_num = PGP_S2K_GPG_NONE;
  706|     37|            return true;
  707|     37|        }
  708|    342|        s2k.gpg_ext_num = (pgp_s2k_gpg_extension_t) ext_num;
  709|    342|        if (s2k.gpg_ext_num == PGP_S2K_GPG_NO_SECRET) {
  ------------------
  |  Branch (709:13): [True: 67, False: 275]
  ------------------
  710|     67|            return true;
  711|     67|        }
  712|    275|        if (!get(s2k.gpg_serial_len)) {
  ------------------
  |  Branch (712:13): [True: 210, False: 65]
  ------------------
  713|    210|            RNP_LOG("Failed to get GPG serial len");
  ------------------
  |  |   84|    210|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    210|    do {                                                                                 \
  |  |  |  |   77|    210|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 210, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    210|            break;                                                                       \
  |  |  |  |   79|    210|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  714|    210|            return false;
  715|    210|        }
  716|     65|        size_t len = s2k.gpg_serial_len;
  717|     65|        if (s2k.gpg_serial_len > 16) {
  ------------------
  |  Branch (717:13): [True: 22, False: 43]
  ------------------
  718|     22|            RNP_LOG("Warning: gpg_serial_len is %d", (int) len);
  ------------------
  |  |   84|     22|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     22|    do {                                                                                 \
  |  |  |  |   77|     22|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 22, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     22|            break;                                                                       \
  |  |  |  |   79|     22|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  719|     22|            len = 16;
  720|     22|        }
  721|     65|        if (!get(s2k.gpg_serial, len)) {
  ------------------
  |  Branch (721:13): [True: 12, False: 53]
  ------------------
  722|     12|            RNP_LOG("Failed to get GPG serial");
  ------------------
  |  |   84|     12|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     12|    do {                                                                                 \
  |  |  |  |   77|     12|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 12, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     12|            break;                                                                       \
  |  |  |  |   79|     12|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  723|     12|            return false;
  724|     12|        }
  725|     53|        return true;
  726|     65|    }
  727|  3.04k|    default:
  ------------------
  |  Branch (727:5): [True: 3.04k, False: 43.8k]
  ------------------
  728|  3.04k|        RNP_LOG("unknown s2k specifier: %d", (int) s2k.specifier);
  ------------------
  |  |   84|  3.04k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  3.04k|    do {                                                                                 \
  |  |  |  |   77|  3.04k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 3.04k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  3.04k|            break;                                                                       \
  |  |  |  |   79|  3.04k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  729|  3.04k|        return false;
  730|  46.8k|    }
  731|  46.8k|}
_ZN17pgp_packet_body_t3addEPKvm:
  735|  1.17M|{
  736|  1.17M|    data_.insert(data_.end(), (uint8_t *) data, (uint8_t *) data + len);
  737|  1.17M|}
_ZN17pgp_packet_body_t3addERKNSt3__16vectorIhNS0_9allocatorIhEEEE:
  741|   283k|{
  742|   283k|    add(data.data(), data.size());
  743|   283k|}
_ZN17pgp_packet_body_t8add_byteEh:
  747|   185k|{
  748|   185k|    data_.push_back(bt);
  749|   185k|}
_ZN17pgp_packet_body_t10add_uint16Et:
  753|  72.3k|{
  754|  72.3k|    uint8_t bytes[2];
  755|  72.3k|    write_uint16(bytes, val);
  756|  72.3k|    add(bytes, 2);
  757|  72.3k|}
_ZN17pgp_packet_body_t10add_uint32Ej:
  761|    471|{
  762|    471|    uint8_t bytes[4];
  763|    471|    write_uint32(bytes, val);
  764|    471|    add(bytes, 4);
  765|    471|}
_ZN17pgp_packet_body_t3addERKNSt3__15arrayIhLm8EEE:
  769|  8.46k|{
  770|  8.46k|    add(val.data(), val.size());
  771|  8.46k|}
_ZN17pgp_packet_body_t14add_subpacketsERKN3pgp3pkt9SignatureEb:
  799|  72.7k|{
  800|  72.7k|    pgp_packet_body_t spbody(PGP_PKT_RESERVED);
  801|       |
  802|   381k|    for (auto &subpkt : sig.subpkts) {
  ------------------
  |  Branch (802:23): [True: 381k, False: 72.7k]
  ------------------
  803|   381k|        if (subpkt->hashed() != hashed) {
  ------------------
  |  Branch (803:13): [True: 325k, False: 55.9k]
  ------------------
  804|   325k|            continue;
  805|   325k|        }
  806|       |
  807|  55.9k|        uint8_t splen[6];
  808|  55.9k|        size_t  lenlen = write_packet_len(splen, subpkt->data().size() + 1);
  809|  55.9k|        spbody.add(splen, lenlen);
  810|  55.9k|        spbody.add_byte(subpkt->raw_type() | (subpkt->critical() << 7));
  811|  55.9k|        spbody.add(subpkt->data().data(), subpkt->data().size());
  812|  55.9k|    }
  813|       |
  814|  72.7k|    if (spbody.data_.size() > 0xffff) {
  ------------------
  |  Branch (814:9): [True: 0, False: 72.7k]
  ------------------
  815|      0|        throw rnp::rnp_exception(RNP_ERROR_BAD_PARAMETERS);
  816|      0|    }
  817|  72.7k|    switch (sig.version) {
  818|  71.7k|    case PGP_V4:
  ------------------
  |  Branch (818:5): [True: 71.7k, False: 995]
  ------------------
  819|  72.3k|    case PGP_V5:
  ------------------
  |  Branch (819:5): [True: 647, False: 72.0k]
  ------------------
  820|  72.3k|        add_uint16(spbody.data_.size());
  821|  72.3k|        break;
  822|      0|#if defined(ENABLE_CRYPTO_REFRESH)
  823|    348|    case PGP_V6:
  ------------------
  |  Branch (823:5): [True: 348, False: 72.3k]
  ------------------
  824|    348|        add_uint32(spbody.data_.size());
  825|    348|        break;
  826|      0|#endif
  827|      0|    default:
  ------------------
  |  Branch (827:5): [True: 0, False: 72.7k]
  ------------------
  828|      0|        RNP_LOG("should not reach this code");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  829|      0|        throw rnp::rnp_exception(RNP_ERROR_BAD_STATE);
  830|  72.7k|    }
  831|  72.7k|    add(spbody.data_.data(), spbody.data_.size());
  832|  72.7k|}
_ZN17pgp_packet_body_t3addERK9pgp_s2k_t13pgp_version_t:
  847|  17.9k|{
  848|  17.9k|#if defined(ENABLE_CRYPTO_REFRESH)
  849|  17.9k|    if (version == PGP_V6 && s2k.usage != PGP_S2KU_NONE) {
  ------------------
  |  Branch (849:9): [True: 8.35k, False: 9.60k]
  |  Branch (849:30): [True: 8.35k, False: 0]
  ------------------
  850|  8.35k|        add_byte(pgp_s2k_t::specifier_len(s2k.specifier));
  851|  8.35k|    }
  852|  17.9k|#endif
  853|  17.9k|    add_byte(s2k.specifier);
  854|       |
  855|  17.9k|    switch (s2k.specifier) {
  856|  13.3k|    case PGP_S2KS_SIMPLE:
  ------------------
  |  Branch (856:5): [True: 13.3k, False: 4.63k]
  ------------------
  857|  13.3k|        add_byte(s2k.hash_alg);
  858|  13.3k|        return;
  859|     29|    case PGP_S2KS_SALTED:
  ------------------
  |  Branch (859:5): [True: 29, False: 17.9k]
  ------------------
  860|     29|        add_byte(s2k.hash_alg);
  861|     29|        add(s2k.salt, s2k.salt_size(s2k.specifier));
  862|     29|        return;
  863|  4.28k|    case PGP_S2KS_ITERATED_AND_SALTED: {
  ------------------
  |  Branch (863:5): [True: 4.28k, False: 13.6k]
  ------------------
  864|  4.28k|        add_byte(s2k.hash_alg);
  865|  4.28k|        unsigned iter = s2k.iterations;
  866|  4.28k|        if (iter > 255) {
  ------------------
  |  Branch (866:13): [True: 0, False: 4.28k]
  ------------------
  867|      0|            iter = pgp_s2k_encode_iterations(iter);
  868|      0|        }
  869|  4.28k|        add(s2k.salt, s2k.salt_size(s2k.specifier));
  870|  4.28k|        add_byte(iter);
  871|  4.28k|        return;
  872|      0|    }
  873|      0|#if defined(ENABLE_CRYPTO_REFRESH)
  874|     21|    case PGP_S2KS_ARGON2:
  ------------------
  |  Branch (874:5): [True: 21, False: 17.9k]
  ------------------
  875|     21|        add(s2k.salt, s2k.salt_size(s2k.specifier));
  876|     21|        add_byte(s2k.argon2_t);
  877|     21|        add_byte(s2k.argon2_p);
  878|     21|        add_byte(s2k.argon2_encoded_m);
  879|     21|        return;
  880|      0|#endif
  881|    306|    case PGP_S2KS_EXPERIMENTAL: {
  ------------------
  |  Branch (881:5): [True: 306, False: 17.6k]
  ------------------
  882|    306|        add_byte(s2k.hash_alg);
  883|    306|        if ((s2k.gpg_ext_num != PGP_S2K_GPG_NO_SECRET) &&
  ------------------
  |  Branch (883:13): [True: 258, False: 48]
  ------------------
  884|    258|            (s2k.gpg_ext_num != PGP_S2K_GPG_SMARTCARD)) {
  ------------------
  |  Branch (884:13): [True: 226, False: 32]
  ------------------
  885|    226|            RNP_LOG("Unknown experimental s2k.");
  ------------------
  |  |   84|    226|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    226|    do {                                                                                 \
  |  |  |  |   77|    226|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 226, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    226|            break;                                                                       \
  |  |  |  |   79|    226|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  886|    226|            add(s2k.experimental.data(), s2k.experimental.size());
  887|    226|            return;
  888|    226|        }
  889|     80|        add("GNU", 3);
  890|     80|        add_byte(s2k.gpg_ext_num);
  891|     80|        if (s2k.gpg_ext_num == PGP_S2K_GPG_SMARTCARD) {
  ------------------
  |  Branch (891:13): [True: 32, False: 48]
  ------------------
  892|     32|            static_assert(sizeof(s2k.gpg_serial) == 16, "invalid gpg serial length");
  893|     32|            size_t slen = s2k.gpg_serial_len > 16 ? 16 : s2k.gpg_serial_len;
  ------------------
  |  Branch (893:27): [True: 9, False: 23]
  ------------------
  894|     32|            add_byte(s2k.gpg_serial_len);
  895|     32|            add(s2k.gpg_serial, slen);
  896|     32|        }
  897|     80|        return;
  898|    306|    }
  899|      0|    default:
  ------------------
  |  Branch (899:5): [True: 0, False: 17.9k]
  ------------------
  900|      0|        RNP_LOG("unknown s2k specifier");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  901|      0|        throw rnp::rnp_exception(RNP_ERROR_BAD_PARAMETERS);
  902|  17.9k|    }
  903|  17.9k|}
_ZN17pgp_packet_body_t4readER12pgp_source_t:
  907|  1.70M|{
  908|       |    /* Make sure we have enough data for packet header */
  909|  1.70M|    if (!src.peek_eq(hdr_, 2)) {
  ------------------
  |  Branch (909:9): [True: 207, False: 1.70M]
  ------------------
  910|    207|        return RNP_ERROR_READ;
  911|    207|    }
  912|       |
  913|       |    /* Read the packet header and length */
  914|  1.70M|    size_t len = 0;
  915|  1.70M|    if (!stream_pkt_hdr_len(src, len)) {
  ------------------
  |  Branch (915:9): [True: 0, False: 1.70M]
  ------------------
  916|      0|        return RNP_ERROR_BAD_FORMAT;
  917|      0|    }
  918|  1.70M|    if (!src.peek_eq(hdr_, len)) {
  ------------------
  |  Branch (918:9): [True: 16.4k, False: 1.69M]
  ------------------
  919|  16.4k|        return RNP_ERROR_READ;
  920|  16.4k|    }
  921|  1.69M|    hdr_len_ = len;
  922|       |
  923|  1.69M|    int ptag = get_packet_type(hdr_[0]);
  924|  1.69M|    if ((ptag < 0) || ((tag_ != PGP_PKT_RESERVED) && (tag_ != ptag))) {
  ------------------
  |  Branch (924:9): [True: 0, False: 1.69M]
  |  Branch (924:24): [True: 958k, False: 732k]
  |  Branch (924:54): [True: 0, False: 958k]
  ------------------
  925|      0|        RNP_LOG("tag mismatch: %d vs %d", (int) tag_, ptag);
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  926|      0|        return RNP_ERROR_BAD_FORMAT;
  927|      0|    }
  928|  1.69M|    tag_ = (pgp_pkt_type_t) ptag;
  929|       |
  930|  1.69M|    if (!stream_read_pkt_len(src, &len)) {
  ------------------
  |  Branch (930:9): [True: 338k, False: 1.35M]
  ------------------
  931|   338k|        return RNP_ERROR_READ;
  932|   338k|    }
  933|       |
  934|       |    /* early exit for the empty packet */
  935|  1.35M|    if (!len) {
  ------------------
  |  Branch (935:9): [True: 740k, False: 613k]
  ------------------
  936|   740k|        return RNP_SUCCESS;
  937|   740k|    }
  938|       |
  939|   613k|    if (len > PGP_MAX_PKT_SIZE) {
  ------------------
  |  |   40|   613k|#define PGP_MAX_PKT_SIZE 0x100000
  ------------------
  |  Branch (939:9): [True: 244k, False: 368k]
  ------------------
  940|   244k|        RNP_LOG("too large packet");
  ------------------
  |  |   84|   244k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|   244k|    do {                                                                                 \
  |  |  |  |   77|   244k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 244k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|   244k|            break;                                                                       \
  |  |  |  |   79|   244k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  941|   244k|        return RNP_ERROR_BAD_FORMAT;
  942|   244k|    }
  943|       |
  944|       |    /* Read the packet contents */
  945|   368k|    try {
  946|   368k|        data_.resize(len);
  947|   368k|    } catch (const std::exception &e) {
  948|      0|        RNP_LOG("malloc of %d bytes failed, %s", (int) len, e.what());
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  949|      0|        return RNP_ERROR_OUT_OF_MEMORY;
  950|      0|    }
  951|       |
  952|   368k|    size_t read = 0;
  953|   368k|    if (!src.read(data_.data(), len, &read) || (read != len)) {
  ------------------
  |  Branch (953:9): [True: 54, False: 368k]
  |  Branch (953:48): [True: 5.01k, False: 363k]
  ------------------
  954|  5.06k|        RNP_LOG("read %d instead of %d", (int) read, (int) len);
  ------------------
  |  |   84|  5.06k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  5.06k|    do {                                                                                 \
  |  |  |  |   77|  5.06k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 5.06k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  5.06k|            break;                                                                       \
  |  |  |  |   79|  5.06k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  955|  5.06k|        return RNP_ERROR_READ;
  956|  5.06k|    }
  957|   363k|    pos_ = 0;
  958|   363k|    return RNP_SUCCESS;
  959|   368k|}
_ZN17pgp_packet_body_t5writeER10pgp_dest_tb:
  963|   683k|{
  964|   683k|    if (hdr) {
  ------------------
  |  Branch (964:9): [True: 683k, False: 0]
  ------------------
  965|   683k|        uint8_t hdrbt[6] = {
  966|   683k|          (uint8_t)(tag_ | PGP_PTAG_ALWAYS_SET | PGP_PTAG_NEW_FORMAT), 0, 0, 0, 0, 0};
  ------------------
  |  |   47|   683k|#define PGP_PTAG_ALWAYS_SET 0x80
  ------------------
                        (uint8_t)(tag_ | PGP_PTAG_ALWAYS_SET | PGP_PTAG_NEW_FORMAT), 0, 0, 0, 0, 0};
  ------------------
  |  |   56|   683k|#define PGP_PTAG_NEW_FORMAT 0x40
  ------------------
  967|   683k|        size_t hlen = 1 + write_packet_len(&hdrbt[1], data_.size());
  968|   683k|        dst_write(&dst, hdrbt, hlen);
  969|   683k|    }
  970|   683k|    dst_write(&dst, data_.data(), data_.size());
  971|   683k|}
_ZN16pgp_sk_sesskey_t8parse_v6ER17pgp_packet_body_t:
 1051|  2.47k|{
 1052|  2.47k|    uint8_t bt;
 1053|  2.47k|    uint8_t octet_count;
 1054|  2.47k|    uint8_t s2k_len;
 1055|       |
 1056|       |    /* A one-octet scalar octet count for the 5 fields following this octet. */
 1057|       |    /* TODO: do we need to check octet_count? */
 1058|  2.47k|    if (!pkt.get(octet_count)) {
  ------------------
  |  Branch (1058:9): [True: 421, False: 2.05k]
  ------------------
 1059|    421|        RNP_LOG("failed to get octet count of next 5 fields");
  ------------------
  |  |   84|    421|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    421|    do {                                                                                 \
  |  |  |  |   77|    421|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 421, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    421|            break;                                                                       \
  |  |  |  |   79|    421|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1060|    421|        return RNP_ERROR_BAD_FORMAT;
 1061|    421|    }
 1062|       |
 1063|       |    /* symmetric algorithm */
 1064|  2.05k|    if (!pkt.get(bt)) {
  ------------------
  |  Branch (1064:9): [True: 579, False: 1.47k]
  ------------------
 1065|    579|        RNP_LOG("failed to get symm alg");
  ------------------
  |  |   84|    579|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    579|    do {                                                                                 \
  |  |  |  |   77|    579|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 579, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    579|            break;                                                                       \
  |  |  |  |   79|    579|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1066|    579|        return RNP_ERROR_BAD_FORMAT;
 1067|    579|    }
 1068|  1.47k|    alg = (pgp_symm_alg_t) bt;
 1069|       |
 1070|       |    /* aead algorithm */
 1071|  1.47k|    if (!pkt.get(bt)) {
  ------------------
  |  Branch (1071:9): [True: 66, False: 1.40k]
  ------------------
 1072|     66|        RNP_LOG("failed to get aead alg");
  ------------------
  |  |   84|     66|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     66|    do {                                                                                 \
  |  |  |  |   77|     66|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 66, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     66|            break;                                                                       \
  |  |  |  |   79|     66|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1073|     66|        return RNP_ERROR_BAD_FORMAT;
 1074|     66|    }
 1075|  1.40k|    aalg = (pgp_aead_alg_t) bt;
 1076|  1.40k|    if ((aalg != PGP_AEAD_EAX) && (aalg != PGP_AEAD_OCB)
  ------------------
  |  Branch (1076:9): [True: 1.30k, False: 102]
  |  Branch (1076:35): [True: 260, False: 1.04k]
  ------------------
 1077|    260|#if defined(ENABLE_AEAD_GCM)
 1078|    260|        && (aalg != PGP_AEAD_GCM)
  ------------------
  |  Branch (1078:12): [True: 247, False: 13]
  ------------------
 1079|  1.40k|#endif
 1080|  1.40k|    ) {
 1081|    247|        RNP_LOG("unsupported AEAD algorithm : %d", (int) aalg);
  ------------------
  |  |   84|    247|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    247|    do {                                                                                 \
  |  |  |  |   77|    247|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 247, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    247|            break;                                                                       \
  |  |  |  |   79|    247|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1082|    247|        return RNP_ERROR_BAD_PARAMETERS;
 1083|    247|    }
 1084|       |
 1085|       |    /* A one-octet scalar octet count of the following field. */
 1086|       |    /* TODO: do we need to check s2k_len? */
 1087|  1.16k|    if (!pkt.get(s2k_len)) {
  ------------------
  |  Branch (1087:9): [True: 528, False: 632]
  ------------------
 1088|    528|        RNP_LOG("failed to get octet count of next 5 fields");
  ------------------
  |  |   84|    528|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    528|    do {                                                                                 \
  |  |  |  |   77|    528|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 528, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    528|            break;                                                                       \
  |  |  |  |   79|    528|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1089|    528|        return RNP_ERROR_BAD_FORMAT;
 1090|    528|    }
 1091|       |
 1092|       |    /* s2k */
 1093|    632|    if (!pkt.get(s2k)) {
  ------------------
  |  Branch (1093:9): [True: 69, False: 563]
  ------------------
 1094|     69|        RNP_LOG("failed to parse s2k");
  ------------------
  |  |   84|     69|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     69|    do {                                                                                 \
  |  |  |  |   77|     69|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 69, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     69|            break;                                                                       \
  |  |  |  |   79|     69|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1095|     69|        return RNP_ERROR_BAD_FORMAT;
 1096|     69|    }
 1097|       |
 1098|    563|    size_t noncelen = pgp_cipher_aead_nonce_len(aalg);
 1099|    563|    size_t taglen = pgp_cipher_aead_tag_len(aalg);
 1100|    563|    size_t keylen = 0;
 1101|       |
 1102|    563|    if (pkt.left() > noncelen + taglen + PGP_MAX_KEY_SIZE) {
  ------------------
  |  |   89|    563|#define PGP_MAX_KEY_SIZE 32
  ------------------
  |  Branch (1102:9): [True: 19, False: 544]
  ------------------
 1103|     19|        RNP_LOG("too long esk");
  ------------------
  |  |   84|     19|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     19|    do {                                                                                 \
  |  |  |  |   77|     19|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 19, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     19|            break;                                                                       \
  |  |  |  |   79|     19|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1104|     19|        return RNP_ERROR_BAD_FORMAT;
 1105|     19|    }
 1106|    544|    if (pkt.left() < noncelen + taglen + 8) {
  ------------------
  |  Branch (1106:9): [True: 288, False: 256]
  ------------------
 1107|    288|        RNP_LOG("too short esk");
  ------------------
  |  |   84|    288|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    288|    do {                                                                                 \
  |  |  |  |   77|    288|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 288, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    288|            break;                                                                       \
  |  |  |  |   79|    288|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1108|    288|        return RNP_ERROR_BAD_FORMAT;
 1109|    288|    }
 1110|       |    /* iv */
 1111|    256|    if (!pkt.get(iv, noncelen)) {
  ------------------
  |  Branch (1111:9): [True: 0, False: 256]
  ------------------
 1112|      0|        RNP_LOG("failed to get iv");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1113|      0|        return RNP_ERROR_BAD_FORMAT;
 1114|      0|    }
 1115|    256|    ivlen = noncelen;
 1116|       |
 1117|       |    /* key */
 1118|    256|    keylen = pkt.left();
 1119|    256|    if (!pkt.get(enckey, keylen)) {
  ------------------
  |  Branch (1119:9): [True: 0, False: 256]
  ------------------
 1120|      0|        RNP_LOG("failed to get key");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1121|      0|        return RNP_ERROR_BAD_FORMAT;
 1122|      0|    }
 1123|    256|    enckeylen = keylen;
 1124|    256|    return RNP_SUCCESS;
 1125|    256|}
_ZN16pgp_sk_sesskey_t5parseER12pgp_source_t:
 1130|   111k|{
 1131|   111k|    pgp_packet_body_t pkt(PGP_PKT_SK_SESSION_KEY);
 1132|   111k|    rnp_result_t      res = pkt.read(src);
 1133|   111k|    if (res) {
  ------------------
  |  Branch (1133:9): [True: 56.0k, False: 54.9k]
  ------------------
 1134|  56.0k|        return res;
 1135|  56.0k|    }
 1136|       |
 1137|       |    /* version */
 1138|  54.9k|    uint8_t bt;
 1139|  54.9k|    if (!pkt.get(bt) || ((bt != PGP_SKSK_V4) && (bt != PGP_SKSK_V5))) {
  ------------------
  |  Branch (1139:9): [True: 419, False: 54.5k]
  |  Branch (1139:26): [True: 15.7k, False: 38.8k]
  |  Branch (1139:49): [True: 14.5k, False: 1.21k]
  ------------------
 1140|  14.9k|#if defined(ENABLE_CRYPTO_REFRESH)
 1141|  14.9k|        if (bt == PGP_SKSK_V6) {
  ------------------
  |  Branch (1141:13): [True: 2.47k, False: 12.4k]
  ------------------
 1142|  2.47k|            version = bt;
 1143|  2.47k|            return parse_v6(pkt);
 1144|  2.47k|        }
 1145|  12.4k|#endif
 1146|  12.4k|        RNP_LOG("wrong packet version");
  ------------------
  |  |   84|  12.4k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  12.4k|    do {                                                                                 \
  |  |  |  |   77|  12.4k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 12.4k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  12.4k|            break;                                                                       \
  |  |  |  |   79|  12.4k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1147|  12.4k|        return RNP_ERROR_BAD_FORMAT;
 1148|  14.9k|    }
 1149|  40.0k|    version = bt;
 1150|       |    /* symmetric algorithm */
 1151|  40.0k|    if (!pkt.get(bt)) {
  ------------------
  |  Branch (1151:9): [True: 83, False: 39.9k]
  ------------------
 1152|     83|        RNP_LOG("failed to get symm alg");
  ------------------
  |  |   84|     83|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     83|    do {                                                                                 \
  |  |  |  |   77|     83|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 83, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     83|            break;                                                                       \
  |  |  |  |   79|     83|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1153|     83|        return RNP_ERROR_BAD_FORMAT;
 1154|     83|    }
 1155|  39.9k|    alg = (pgp_symm_alg_t) bt;
 1156|       |
 1157|  39.9k|    if (version == PGP_SKSK_V5) {
  ------------------
  |  Branch (1157:9): [True: 1.14k, False: 38.8k]
  ------------------
 1158|       |        /* aead algorithm */
 1159|  1.14k|        if (!pkt.get(bt)) {
  ------------------
  |  Branch (1159:13): [True: 66, False: 1.08k]
  ------------------
 1160|     66|            RNP_LOG("failed to get aead alg");
  ------------------
  |  |   84|     66|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     66|    do {                                                                                 \
  |  |  |  |   77|     66|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 66, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     66|            break;                                                                       \
  |  |  |  |   79|     66|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1161|     66|            return RNP_ERROR_BAD_FORMAT;
 1162|     66|        }
 1163|  1.08k|        aalg = (pgp_aead_alg_t) bt;
 1164|  1.08k|        if ((aalg != PGP_AEAD_EAX) && (aalg != PGP_AEAD_OCB)
  ------------------
  |  Branch (1164:13): [True: 744, False: 339]
  |  Branch (1164:39): [True: 659, False: 85]
  ------------------
 1165|    659|#if defined(ENABLE_AEAD_GCM)
 1166|    659|            && (aalg != PGP_AEAD_GCM)
  ------------------
  |  Branch (1166:16): [True: 637, False: 22]
  ------------------
 1167|  1.08k|#endif
 1168|  1.08k|        ) {
 1169|    637|            RNP_LOG("unsupported AEAD algorithm : %d", (int) aalg);
  ------------------
  |  |   84|    637|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    637|    do {                                                                                 \
  |  |  |  |   77|    637|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 637, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    637|            break;                                                                       \
  |  |  |  |   79|    637|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1170|    637|            return RNP_ERROR_BAD_PARAMETERS;
 1171|    637|        }
 1172|  1.08k|    }
 1173|       |
 1174|       |    /* s2k */
 1175|  39.2k|    if (!pkt.get(s2k)) {
  ------------------
  |  Branch (1175:9): [True: 5.37k, False: 33.8k]
  ------------------
 1176|  5.37k|        RNP_LOG("failed to parse s2k");
  ------------------
  |  |   84|  5.37k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  5.37k|    do {                                                                                 \
  |  |  |  |   77|  5.37k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 5.37k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  5.37k|            break;                                                                       \
  |  |  |  |   79|  5.37k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1177|  5.37k|        return RNP_ERROR_BAD_FORMAT;
 1178|  5.37k|    }
 1179|       |
 1180|       |    /* v4 key */
 1181|  33.8k|    if (version == PGP_SKSK_V4) {
  ------------------
  |  Branch (1181:9): [True: 33.4k, False: 385]
  ------------------
 1182|       |        /* encrypted session key if present */
 1183|  33.4k|        size_t keylen = pkt.left();
 1184|  33.4k|        if (keylen) {
  ------------------
  |  Branch (1184:13): [True: 11.4k, False: 22.0k]
  ------------------
 1185|  11.4k|            if (keylen > PGP_MAX_KEY_SIZE + 1) {
  ------------------
  |  |   89|  11.4k|#define PGP_MAX_KEY_SIZE 32
  ------------------
  |  Branch (1185:17): [True: 152, False: 11.2k]
  ------------------
 1186|    152|                RNP_LOG("too long esk");
  ------------------
  |  |   84|    152|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    152|    do {                                                                                 \
  |  |  |  |   77|    152|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 152, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    152|            break;                                                                       \
  |  |  |  |   79|    152|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1187|    152|                return RNP_ERROR_BAD_FORMAT;
 1188|    152|            }
 1189|  11.2k|            if (!pkt.get(enckey, keylen)) {
  ------------------
  |  Branch (1189:17): [True: 0, False: 11.2k]
  ------------------
 1190|      0|                RNP_LOG("failed to get key");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1191|      0|                return RNP_ERROR_BAD_FORMAT;
 1192|      0|            }
 1193|  11.2k|        }
 1194|  33.3k|        enckeylen = keylen;
 1195|  33.3k|        return RNP_SUCCESS;
 1196|  33.4k|    }
 1197|       |
 1198|       |    /* v5: iv + esk + tag. For both EAX and OCB ivlen and taglen are 16 octets */
 1199|    385|    size_t noncelen = pgp_cipher_aead_nonce_len(aalg);
 1200|    385|    size_t taglen = pgp_cipher_aead_tag_len(aalg);
 1201|    385|    size_t keylen = 0;
 1202|       |
 1203|    385|    if (pkt.left() > noncelen + taglen + PGP_MAX_KEY_SIZE) {
  ------------------
  |  |   89|    385|#define PGP_MAX_KEY_SIZE 32
  ------------------
  |  Branch (1203:9): [True: 20, False: 365]
  ------------------
 1204|     20|        RNP_LOG("too long esk");
  ------------------
  |  |   84|     20|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     20|    do {                                                                                 \
  |  |  |  |   77|     20|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 20, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     20|            break;                                                                       \
  |  |  |  |   79|     20|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1205|     20|        return RNP_ERROR_BAD_FORMAT;
 1206|     20|    }
 1207|    365|    if (pkt.left() < noncelen + taglen + 8) {
  ------------------
  |  Branch (1207:9): [True: 259, False: 106]
  ------------------
 1208|    259|        RNP_LOG("too short esk");
  ------------------
  |  |   84|    259|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    259|    do {                                                                                 \
  |  |  |  |   77|    259|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 259, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    259|            break;                                                                       \
  |  |  |  |   79|    259|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1209|    259|        return RNP_ERROR_BAD_FORMAT;
 1210|    259|    }
 1211|       |    /* iv */
 1212|    106|    if (!pkt.get(iv, noncelen)) {
  ------------------
  |  Branch (1212:9): [True: 0, False: 106]
  ------------------
 1213|      0|        RNP_LOG("failed to get iv");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1214|      0|        return RNP_ERROR_BAD_FORMAT;
 1215|      0|    }
 1216|    106|    ivlen = noncelen;
 1217|       |
 1218|       |    /* key */
 1219|    106|    keylen = pkt.left();
 1220|    106|    if (!pkt.get(enckey, keylen)) {
  ------------------
  |  Branch (1220:9): [True: 0, False: 106]
  ------------------
 1221|      0|        RNP_LOG("failed to get key");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1222|      0|        return RNP_ERROR_BAD_FORMAT;
 1223|      0|    }
 1224|    106|    enckeylen = keylen;
 1225|    106|    return RNP_SUCCESS;
 1226|    106|}
_ZN16pgp_pk_sesskey_t5parseER12pgp_source_t:
 1258|  74.0k|{
 1259|  74.0k|    pgp_packet_body_t pkt(PGP_PKT_PK_SESSION_KEY);
 1260|  74.0k|    rnp_result_t      res = pkt.read(src);
 1261|  74.0k|    if (res) {
  ------------------
  |  Branch (1261:9): [True: 56.1k, False: 17.9k]
  ------------------
 1262|  56.1k|        return res;
 1263|  56.1k|    }
 1264|       |    /* version */
 1265|  17.9k|    uint8_t bt = 0;
 1266|  17.9k|    if (!pkt.get(bt)) {
  ------------------
  |  Branch (1266:9): [True: 213, False: 17.7k]
  ------------------
 1267|    213|        RNP_LOG("Error when reading packet version");
  ------------------
  |  |   84|    213|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    213|    do {                                                                                 \
  |  |  |  |   77|    213|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 213, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    213|            break;                                                                       \
  |  |  |  |   79|    213|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1268|    213|        return RNP_ERROR_BAD_FORMAT;
 1269|    213|    }
 1270|  17.7k|#if defined(ENABLE_CRYPTO_REFRESH)
 1271|  17.7k|    if ((bt != PGP_PKSK_V3) && (bt != PGP_PKSK_V6)) {
  ------------------
  |  Branch (1271:9): [True: 12.2k, False: 5.47k]
  |  Branch (1271:32): [True: 7.26k, False: 4.96k]
  ------------------
 1272|       |#else
 1273|       |    if ((bt != PGP_PKSK_V3)) {
 1274|       |#endif
 1275|  7.26k|        RNP_LOG("wrong packet version");
  ------------------
  |  |   84|  7.26k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  7.26k|    do {                                                                                 \
  |  |  |  |   77|  7.26k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 7.26k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  7.26k|            break;                                                                       \
  |  |  |  |   79|  7.26k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1276|  7.26k|        return RNP_ERROR_BAD_FORMAT;
 1277|  7.26k|    }
 1278|  10.4k|    version = (pgp_pkesk_version_t) bt;
 1279|       |
 1280|  10.4k|#if defined(ENABLE_CRYPTO_REFRESH)
 1281|  10.4k|    if (version == PGP_PKSK_V3)
  ------------------
  |  Branch (1281:9): [True: 5.47k, False: 4.96k]
  ------------------
 1282|  5.47k|#endif
 1283|  5.47k|    {
 1284|       |        /* key id */
 1285|  5.47k|        if (!pkt.get(key_id)) {
  ------------------
  |  Branch (1285:13): [True: 213, False: 5.26k]
  ------------------
 1286|    213|            RNP_LOG("failed to get key id");
  ------------------
  |  |   84|    213|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    213|    do {                                                                                 \
  |  |  |  |   77|    213|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 213, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    213|            break;                                                                       \
  |  |  |  |   79|    213|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1287|    213|            return RNP_ERROR_BAD_FORMAT;
 1288|    213|        }
 1289|  5.47k|    }
 1290|  4.96k|#if defined(ENABLE_CRYPTO_REFRESH)
 1291|  4.96k|    else {                          // PGP_PKSK_V6
 1292|  4.96k|        uint8_t fp_and_key_ver_len; // A one-octet size of the following two fields.
 1293|  4.96k|        if (!pkt.get(fp_and_key_ver_len)) {
  ------------------
  |  Branch (1293:13): [True: 196, False: 4.76k]
  ------------------
 1294|    196|            RNP_LOG("Error when reading length of next two fields");
  ------------------
  |  |   84|    196|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    196|    do {                                                                                 \
  |  |  |  |   77|    196|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 196, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    196|            break;                                                                       \
  |  |  |  |   79|    196|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1295|    196|            return RNP_ERROR_BAD_FORMAT;
 1296|    196|        }
 1297|       |        /* RFC 9580 §5.1.2: a zero size omits the key version and the
 1298|       |         * fingerprint. That is an anonymous recipient (§5.1.8). */
 1299|  4.76k|        if (!fp_and_key_ver_len) {
  ------------------
  |  Branch (1299:13): [True: 3.21k, False: 1.55k]
  ------------------
 1300|  3.21k|            fp = pgp::Fingerprint();
 1301|  3.21k|        } else {
 1302|  1.55k|            if ((fp_and_key_ver_len != 1 + PGP_FINGERPRINT_V4_SIZE) &&
  ------------------
  |  |   43|  1.55k|#define PGP_FINGERPRINT_V4_SIZE 20
  ------------------
  |  Branch (1302:17): [True: 1.17k, False: 375]
  ------------------
 1303|  1.17k|                (fp_and_key_ver_len != 1 + PGP_FINGERPRINT_V6_SIZE)) {
  ------------------
  |  |   51|  1.17k|#define PGP_FINGERPRINT_V6_SIZE 32
  ------------------
  |  Branch (1303:17): [True: 657, False: 518]
  ------------------
 1304|    657|                RNP_LOG("Invalid size for key version + length field");
  ------------------
  |  |   84|    657|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    657|    do {                                                                                 \
  |  |  |  |   77|    657|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 657, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    657|            break;                                                                       \
  |  |  |  |   79|    657|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1305|    657|                return RNP_ERROR_BAD_FORMAT;
 1306|    657|            }
 1307|       |
 1308|    893|            size_t  fp_len;
 1309|    893|            uint8_t fp_key_version;
 1310|    893|            if (!pkt.get(fp_key_version)) {
  ------------------
  |  Branch (1310:17): [True: 471, False: 422]
  ------------------
 1311|    471|                RNP_LOG("Error when reading key version");
  ------------------
  |  |   84|    471|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    471|    do {                                                                                 \
  |  |  |  |   77|    471|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 471, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    471|            break;                                                                       \
  |  |  |  |   79|    471|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1312|    471|                return RNP_ERROR_BAD_FORMAT;
 1313|    471|            }
 1314|    422|            switch (fp_key_version) {
 1315|     59|            case PGP_V4:
  ------------------
  |  Branch (1315:13): [True: 59, False: 363]
  ------------------
 1316|     59|                fp_len = PGP_FINGERPRINT_V4_SIZE;
  ------------------
  |  |   43|     59|#define PGP_FINGERPRINT_V4_SIZE 20
  ------------------
 1317|     59|                break;
 1318|    280|            case PGP_V6:
  ------------------
  |  Branch (1318:13): [True: 280, False: 142]
  ------------------
 1319|    280|                fp_len = PGP_FINGERPRINT_V6_SIZE;
  ------------------
  |  |   51|    280|#define PGP_FINGERPRINT_V6_SIZE 32
  ------------------
 1320|    280|                break;
 1321|     83|            default:
  ------------------
  |  Branch (1321:13): [True: 83, False: 339]
  ------------------
 1322|     83|                RNP_LOG("wrong key version used with PKESK v6");
  ------------------
  |  |   84|     83|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     83|    do {                                                                                 \
  |  |  |  |   77|     83|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 83, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     83|            break;                                                                       \
  |  |  |  |   79|     83|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1323|     83|                return RNP_ERROR_BAD_FORMAT;
 1324|    422|            }
 1325|    339|            if (fp_len + 1 != fp_and_key_ver_len) {
  ------------------
  |  Branch (1325:17): [True: 38, False: 301]
  ------------------
 1326|     38|                RNP_LOG("size mismatch (fingerprint size and fp+key version length field)");
  ------------------
  |  |   84|     38|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     38|    do {                                                                                 \
  |  |  |  |   77|     38|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 38, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     38|            break;                                                                       \
  |  |  |  |   79|     38|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1327|     38|                return RNP_ERROR_BAD_FORMAT;
 1328|     38|            }
 1329|    301|            std::vector<uint8_t> vec(fp_len, 0);
 1330|    301|            if (!pkt.get(vec.data(), vec.size())) {
  ------------------
  |  Branch (1330:17): [True: 47, False: 254]
  ------------------
 1331|     47|                RNP_LOG("Error when reading fingerprint");
  ------------------
  |  |   84|     47|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     47|    do {                                                                                 \
  |  |  |  |   77|     47|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 47, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     47|            break;                                                                       \
  |  |  |  |   79|     47|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1332|     47|                return RNP_ERROR_BAD_FORMAT;
 1333|     47|            }
 1334|    254|            fp = pgp::Fingerprint(vec.data(), vec.size());
 1335|       |            /* A v6 PKESK has no Key ID field. Derive one so recipient
 1336|       |             * reporting matches the key (RFC 9580 §5.5.4): the low 64 bits
 1337|       |             * of a v4 fingerprint, the high 64 bits of a v6 fingerprint.
 1338|       |             * An anonymous packet leaves the all-zero sentinel in place. */
 1339|    254|            if (fp_key_version == PGP_V4) {
  ------------------
  |  Branch (1339:17): [True: 14, False: 240]
  ------------------
 1340|     14|                memcpy(key_id.data(), vec.data() + fp_len - PGP_KEY_ID_SIZE, key_id.size());
  ------------------
  |  |   39|     14|#define PGP_KEY_ID_SIZE 8
  ------------------
 1341|    240|            } else {
 1342|    240|                memcpy(key_id.data(), vec.data(), key_id.size());
 1343|    240|            }
 1344|    254|        }
 1345|  4.76k|    }
 1346|  8.73k|#endif
 1347|       |
 1348|       |    /* public key algorithm */
 1349|  8.73k|    if (!pkt.get(bt)) {
  ------------------
  |  Branch (1349:9): [True: 228, False: 8.50k]
  ------------------
 1350|    228|        RNP_LOG("failed to get palg");
  ------------------
  |  |   84|    228|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    228|    do {                                                                                 \
  |  |  |  |   77|    228|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 228, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    228|            break;                                                                       \
  |  |  |  |   79|    228|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1351|    228|        return RNP_ERROR_BAD_FORMAT;
 1352|    228|    }
 1353|  8.50k|    alg = (pgp_pubkey_alg_t) bt;
 1354|       |
 1355|       |    /* symmetric algorithm */
 1356|  8.50k|    salg = PGP_SA_UNKNOWN;
 1357|       |
 1358|       |    /* raw encrypted material */
 1359|  8.50k|    if (!pkt.left()) {
  ------------------
  |  Branch (1359:9): [True: 203, False: 8.30k]
  ------------------
 1360|    203|        RNP_LOG("No encrypted material");
  ------------------
  |  |   84|    203|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    203|    do {                                                                                 \
  |  |  |  |   77|    203|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 203, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    203|            break;                                                                       \
  |  |  |  |   79|    203|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1361|    203|        return RNP_ERROR_BAD_FORMAT;
 1362|    203|    }
 1363|  8.30k|    try {
 1364|  8.30k|        material_buf.resize(pkt.left());
 1365|  8.30k|    } catch (const std::exception &e) {
 1366|      0|        RNP_LOG("%s", e.what());
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1367|      0|        return RNP_ERROR_OUT_OF_MEMORY;
 1368|      0|    }
 1369|       |    /* we cannot fail here */
 1370|  8.30k|    pkt.get(material_buf.data(), material_buf.size());
 1371|       |    /* check whether it can be parsed */
 1372|  8.30k|    if (!parse_material()) {
  ------------------
  |  Branch (1372:9): [True: 5.32k, False: 2.97k]
  ------------------
 1373|  5.32k|        return RNP_ERROR_BAD_FORMAT;
 1374|  5.32k|    }
 1375|  2.97k|    return RNP_SUCCESS;
 1376|  8.30k|}
_ZNK16pgp_pk_sesskey_t14parse_materialEv:
 1380|  8.30k|{
 1381|  8.30k|    auto enc = pgp::EncMaterial::create(alg);
 1382|  8.30k|    if (!enc) {
  ------------------
  |  Branch (1382:9): [True: 1.63k, False: 6.66k]
  ------------------
 1383|  1.63k|        return nullptr;
 1384|  1.63k|    }
 1385|  6.66k|#if defined(ENABLE_CRYPTO_REFRESH)
 1386|  6.66k|    enc->version = version;
 1387|  6.66k|#endif
 1388|  6.66k|    pgp_packet_body_t pkt(material_buf);
 1389|  6.66k|    if (!enc->parse(pkt)) {
  ------------------
  |  Branch (1389:9): [True: 2.89k, False: 3.77k]
  ------------------
 1390|  2.89k|        return nullptr;
 1391|  2.89k|    }
 1392|  3.77k|    if (pkt.left()) {
  ------------------
  |  Branch (1392:9): [True: 796, False: 2.97k]
  ------------------
 1393|    796|        RNP_LOG("extra %zu bytes in pk packet", pkt.left());
  ------------------
  |  |   84|    796|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    796|    do {                                                                                 \
  |  |  |  |   77|    796|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 796, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    796|            break;                                                                       \
  |  |  |  |   79|    796|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1394|    796|        return nullptr;
 1395|    796|    }
 1396|  2.97k|    return enc;
 1397|  3.77k|}
_ZN18pgp_one_pass_sig_t5parseER12pgp_source_t:
 1435|   125k|{
 1436|   125k|    pgp_packet_body_t pkt(PGP_PKT_ONE_PASS_SIG);
 1437|       |    /* Read the packet into memory */
 1438|   125k|    rnp_result_t res = pkt.read(src);
 1439|   125k|    if (res) {
  ------------------
  |  Branch (1439:9): [True: 38.4k, False: 87.3k]
  ------------------
 1440|  38.4k|        return res;
 1441|  38.4k|    }
 1442|       |
 1443|       |    /* version */
 1444|  87.3k|    if ((pkt.size() < 1) || !pkt.get(version)) {
  ------------------
  |  Branch (1444:9): [True: 68.1k, False: 19.1k]
  |  Branch (1444:29): [True: 0, False: 19.1k]
  ------------------
 1445|  68.1k|        return RNP_ERROR_BAD_FORMAT;
 1446|  68.1k|    }
 1447|  19.1k|    switch ((pgp_ops_version_t) version) {
 1448|  5.93k|    case PGP_OPS_V3:
  ------------------
  |  Branch (1448:5): [True: 5.93k, False: 13.2k]
  ------------------
 1449|  5.93k|        return parse_v3(pkt);
 1450|      0|#if defined(ENABLE_CRYPTO_REFRESH)
 1451|  2.68k|    case PGP_OPS_V6:
  ------------------
  |  Branch (1451:5): [True: 2.68k, False: 16.4k]
  ------------------
 1452|  2.68k|        return parse_v6(pkt);
 1453|      0|#endif
 1454|  10.5k|    default:
  ------------------
  |  Branch (1454:5): [True: 10.5k, False: 8.62k]
  ------------------
 1455|  10.5k|        RNP_LOG("wrong packet version");
  ------------------
  |  |   84|  10.5k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  10.5k|    do {                                                                                 \
  |  |  |  |   77|  10.5k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 10.5k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  10.5k|            break;                                                                       \
  |  |  |  |   79|  10.5k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1456|  10.5k|        return RNP_ERROR_BAD_FORMAT;
 1457|  19.1k|    }
 1458|  19.1k|}
_ZN18pgp_one_pass_sig_t8parse_v6ER17pgp_packet_body_t:
 1463|  2.68k|{
 1464|  2.68k|    uint8_t buf[4];
 1465|  2.68k|    uint8_t salt_size;
 1466|       |
 1467|       |    /* packet can't be smaller for v6 */
 1468|  2.68k|    const size_t min_size = 54;
 1469|  2.68k|    if ((pkt.size() < min_size)) {
  ------------------
  |  Branch (1469:9): [True: 211, False: 2.47k]
  ------------------
 1470|    211|        return RNP_ERROR_BAD_FORMAT;
 1471|    211|    }
 1472|       |    /* version */
 1473|  2.47k|    version = PGP_OPS_V6;
 1474|  2.47k|    if (!pkt.get(buf, 4)) {
  ------------------
  |  Branch (1474:9): [True: 0, False: 2.47k]
  ------------------
 1475|      0|        return RNP_ERROR_BAD_FORMAT;
 1476|      0|    }
 1477|       |    /* signature type */
 1478|  2.47k|    type = (pgp_sig_type_t) buf[0];
 1479|       |    /* hash algorithm */
 1480|  2.47k|    halg = (pgp_hash_alg_t) buf[1];
 1481|       |    /* pk algorithm */
 1482|  2.47k|    palg = (pgp_pubkey_alg_t) buf[2];
 1483|       |
 1484|       |    /* salt */
 1485|  2.47k|    salt_size = buf[3];
 1486|  2.47k|    size_t expect_salt_size;
 1487|  2.47k|    if (!pgp::pkt::Signature::v6_salt_size(halg, &expect_salt_size)) {
  ------------------
  |  Branch (1487:9): [True: 69, False: 2.40k]
  ------------------
 1488|     69|        RNP_LOG("invalid halg");
  ------------------
  |  |   84|     69|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     69|    do {                                                                                 \
  |  |  |  |   77|     69|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 69, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     69|            break;                                                                       \
  |  |  |  |   79|     69|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1489|     69|        return RNP_ERROR_BAD_FORMAT;
 1490|     69|    }
 1491|  2.40k|    if (salt_size != expect_salt_size) {
  ------------------
  |  Branch (1491:9): [True: 351, False: 2.05k]
  ------------------
 1492|    351|        RNP_LOG("invalid salt size");
  ------------------
  |  |   84|    351|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    351|    do {                                                                                 \
  |  |  |  |   77|    351|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 351, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    351|            break;                                                                       \
  |  |  |  |   79|    351|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1493|    351|        return RNP_ERROR_BAD_FORMAT;
 1494|    351|    }
 1495|  2.05k|    salt.resize(salt_size);
 1496|  2.05k|    if (!pkt.get(salt.data(), salt.size())) {
  ------------------
  |  Branch (1496:9): [True: 0, False: 2.05k]
  ------------------
 1497|      0|        RNP_LOG("failed to get salt");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1498|      0|        return RNP_ERROR_BAD_FORMAT;
 1499|      0|    }
 1500|       |
 1501|       |    /* fingerprint */
 1502|  2.05k|    std::vector<uint8_t> fp_vec;
 1503|  2.05k|    fp_vec.resize(PGP_FINGERPRINT_V6_SIZE);
  ------------------
  |  |   51|  2.05k|#define PGP_FINGERPRINT_V6_SIZE 32
  ------------------
 1504|  2.05k|    if (!pkt.get(fp_vec.data(), fp_vec.size())) {
  ------------------
  |  Branch (1504:9): [True: 19, False: 2.03k]
  ------------------
 1505|     19|        RNP_LOG("failed to get fingerprint");
  ------------------
  |  |   84|     19|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     19|    do {                                                                                 \
  |  |  |  |   77|     19|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 19, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     19|            break;                                                                       \
  |  |  |  |   79|     19|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1506|     19|        return RNP_ERROR_BAD_FORMAT;
 1507|     19|    }
 1508|  2.03k|    fp = pgp::Fingerprint(fp_vec.data(), fp_vec.size());
 1509|       |
 1510|       |    /* nested flag */
 1511|  2.03k|    if (!pkt.get(buf, 1)) {
  ------------------
  |  Branch (1511:9): [True: 19, False: 2.01k]
  ------------------
 1512|     19|        RNP_LOG("failed to get nested flag");
  ------------------
  |  |   84|     19|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     19|    do {                                                                                 \
  |  |  |  |   77|     19|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 19, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     19|            break;                                                                       \
  |  |  |  |   79|     19|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1513|     19|        return RNP_ERROR_BAD_FORMAT;
 1514|     19|    }
 1515|  2.01k|    nested = buf[0];
 1516|       |
 1517|  2.01k|    if (pkt.left()) {
  ------------------
  |  Branch (1517:9): [True: 38, False: 1.98k]
  ------------------
 1518|     38|        RNP_LOG("trailing bytes in V6 OPS packet.");
  ------------------
  |  |   84|     38|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     38|    do {                                                                                 \
  |  |  |  |   77|     38|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 38, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     38|            break;                                                                       \
  |  |  |  |   79|     38|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1519|     38|        return RNP_ERROR_BAD_FORMAT;
 1520|     38|    }
 1521|  1.98k|    return RNP_SUCCESS;
 1522|  2.01k|}
_ZN18pgp_one_pass_sig_t8parse_v3ER17pgp_packet_body_t:
 1527|  5.93k|{
 1528|  5.93k|    uint8_t buf[12] = {0};
 1529|  5.93k|    if ((pkt.size() != 13) || !pkt.get(buf, 12)) {
  ------------------
  |  Branch (1529:9): [True: 502, False: 5.43k]
  |  Branch (1529:31): [True: 0, False: 5.43k]
  ------------------
 1530|    502|        return RNP_ERROR_BAD_FORMAT;
 1531|    502|    }
 1532|       |    /* signature type */
 1533|  5.43k|    type = (pgp_sig_type_t) buf[0];
 1534|       |    /* hash algorithm */
 1535|  5.43k|    halg = (pgp_hash_alg_t) buf[1];
 1536|       |    /* pk algorithm */
 1537|  5.43k|    palg = (pgp_pubkey_alg_t) buf[2];
 1538|       |    /* key id */
 1539|  5.43k|    static_assert(std::tuple_size<decltype(keyid)>::value == PGP_KEY_ID_SIZE,
 1540|  5.43k|                  "pgp_one_pass_sig_t.keyid size mismatch");
 1541|  5.43k|    memcpy(keyid.data(), &buf[3], PGP_KEY_ID_SIZE);
  ------------------
  |  |   39|  5.43k|#define PGP_KEY_ID_SIZE 8
  ------------------
 1542|       |    /* nested flag */
 1543|  5.43k|    nested = buf[11];
 1544|  5.43k|    return RNP_SUCCESS;
 1545|  5.93k|}
stream-packet.cpp:_ZL11get_pkt_lenPhPm:
  138|  1.69M|{
  139|  1.69M|    if (hdr[0] & PGP_PTAG_NEW_FORMAT) {
  ------------------
  |  |   56|  1.69M|#define PGP_PTAG_NEW_FORMAT 0x40
  ------------------
  |  Branch (139:9): [True: 911k, False: 784k]
  ------------------
  140|       |        // 1-byte length
  141|   911k|        if (hdr[1] < 192) {
  ------------------
  |  Branch (141:13): [True: 835k, False: 76.3k]
  ------------------
  142|   835k|            *pktlen = hdr[1];
  143|   835k|            return true;
  144|   835k|        }
  145|       |        // 2-byte length
  146|  76.3k|        if (hdr[1] < 224) {
  ------------------
  |  Branch (146:13): [True: 5.91k, False: 70.4k]
  ------------------
  147|  5.91k|            *pktlen = ((size_t)(hdr[1] - 192) << 8) + (size_t) hdr[2] + 192;
  148|  5.91k|            return true;
  149|  5.91k|        }
  150|       |        // partial length - we do not allow it here
  151|  70.4k|        if (hdr[1] < 255) {
  ------------------
  |  Branch (151:13): [True: 241, False: 70.2k]
  ------------------
  152|    241|            return false;
  153|    241|        }
  154|       |        // 4-byte length
  155|  70.2k|        *pktlen = read_uint32(&hdr[2]);
  156|  70.2k|        return true;
  157|  70.4k|    }
  158|       |
  159|   784k|    switch (hdr[0] & PGP_PTAG_OF_LENGTH_TYPE_MASK) {
  ------------------
  |  |   83|   784k|#define PGP_PTAG_OF_LENGTH_TYPE_MASK 0x03
  ------------------
  160|   225k|    case PGP_PTAG_OLD_LEN_1:
  ------------------
  |  Branch (160:5): [True: 225k, False: 558k]
  ------------------
  161|   225k|        *pktlen = hdr[1];
  162|   225k|        return true;
  163|  16.4k|    case PGP_PTAG_OLD_LEN_2:
  ------------------
  |  Branch (163:5): [True: 16.4k, False: 767k]
  ------------------
  164|  16.4k|        *pktlen = read_uint16(&hdr[1]);
  165|  16.4k|        return true;
  166|   204k|    case PGP_PTAG_OLD_LEN_4:
  ------------------
  |  Branch (166:5): [True: 204k, False: 580k]
  ------------------
  167|   204k|        *pktlen = read_uint32(&hdr[1]);
  168|   204k|        return true;
  169|   337k|    default:
  ------------------
  |  Branch (169:5): [True: 337k, False: 446k]
  ------------------
  170|   337k|        return false;
  171|   784k|    }
  172|   784k|}
stream-packet.cpp:_ZL26stream_read_packet_partialP12pgp_source_tP10pgp_dest_t:
  307|  1.20k|{
  308|  1.20k|    uint8_t hdr = 0;
  309|  1.20k|    if (!src->read_eq(&hdr, 1)) {
  ------------------
  |  Branch (309:9): [True: 0, False: 1.20k]
  ------------------
  310|      0|        return RNP_ERROR_READ;
  311|      0|    }
  312|       |
  313|  1.20k|    bool   last = false;
  314|  1.20k|    size_t partlen = 0;
  315|  1.20k|    if (!stream_read_partial_chunk_len(src, &partlen, &last)) {
  ------------------
  |  Branch (315:9): [True: 0, False: 1.20k]
  ------------------
  316|      0|        return RNP_ERROR_BAD_FORMAT;
  317|      0|    }
  318|       |
  319|  1.20k|    uint8_t *buf = (uint8_t *) malloc(PGP_INPUT_CACHE_SIZE);
  ------------------
  |  |   35|  1.20k|#define PGP_INPUT_CACHE_SIZE 32768
  ------------------
  320|  1.20k|    if (!buf) {
  ------------------
  |  Branch (320:9): [True: 0, False: 1.20k]
  ------------------
  321|      0|        return RNP_ERROR_OUT_OF_MEMORY;
  322|      0|    }
  323|       |
  324|  11.0k|    while (partlen > 0) {
  ------------------
  |  Branch (324:12): [True: 10.4k, False: 576]
  ------------------
  325|  10.4k|        size_t read = std::min(partlen, (size_t) PGP_INPUT_CACHE_SIZE);
  ------------------
  |  |   35|  10.4k|#define PGP_INPUT_CACHE_SIZE 32768
  ------------------
  326|  10.4k|        if (!src->read_eq(buf, read)) {
  ------------------
  |  Branch (326:13): [True: 331, False: 10.1k]
  ------------------
  327|    331|            free(buf);
  328|    331|            return RNP_ERROR_READ;
  329|    331|        }
  330|  10.1k|        if (dst) {
  ------------------
  |  Branch (330:13): [True: 0, False: 10.1k]
  ------------------
  331|      0|            dst_write(dst, buf, read);
  332|      0|        }
  333|  10.1k|        partlen -= read;
  334|  10.1k|        if (partlen > 0) {
  ------------------
  |  Branch (334:13): [True: 159, False: 10.0k]
  ------------------
  335|    159|            continue;
  336|    159|        }
  337|  10.0k|        if (last) {
  ------------------
  |  Branch (337:13): [True: 265, False: 9.73k]
  ------------------
  338|    265|            break;
  339|    265|        }
  340|  9.73k|        if (!stream_read_partial_chunk_len(src, &partlen, &last)) {
  ------------------
  |  Branch (340:13): [True: 29, False: 9.71k]
  ------------------
  341|     29|            free(buf);
  342|     29|            return RNP_ERROR_BAD_FORMAT;
  343|     29|        }
  344|  9.73k|    }
  345|    841|    free(buf);
  346|    841|    return RNP_SUCCESS;
  347|  1.20k|}

_ZN16pgp_userid_pkt_tC2Ev:
  248|  1.10M|    pgp_userid_pkt_t() : tag(PGP_PKT_RESERVED){};

_Z16init_literal_srcP12pgp_source_tS0_:
 2037|  1.20k|{
 2038|  1.20k|    rnp_result_t                ret = RNP_ERROR_GENERIC;
 2039|  1.20k|    pgp_source_literal_param_t *param;
 2040|  1.20k|    uint8_t                     format = 0;
 2041|  1.20k|    uint8_t                     nlen = 0;
 2042|  1.20k|    uint8_t                     timestamp[4];
 2043|       |
 2044|  1.20k|    if (!init_src_common(src, sizeof(*param))) {
  ------------------
  |  Branch (2044:9): [True: 0, False: 1.20k]
  ------------------
 2045|      0|        return RNP_ERROR_OUT_OF_MEMORY; // LCOV_EXCL_LINE
 2046|      0|    }
 2047|       |
 2048|  1.20k|    param = (pgp_source_literal_param_t *) src->param;
 2049|  1.20k|    param->pkt.readsrc = readsrc;
 2050|  1.20k|    src->raw_read = literal_src_read;
 2051|  1.20k|    src->raw_close = literal_src_close;
 2052|  1.20k|    src->type = PGP_STREAM_LITERAL;
 2053|       |
 2054|       |    /* Reading packet length/checking whether it is partial */
 2055|  1.20k|    if ((ret = init_packet_params(param->pkt))) {
  ------------------
  |  Branch (2055:9): [True: 9, False: 1.19k]
  ------------------
 2056|      9|        goto finish;
 2057|      9|    }
 2058|       |
 2059|       |    /* data format */
 2060|  1.19k|    if (!param->pkt.readsrc->read_eq(&format, 1)) {
  ------------------
  |  Branch (2060:9): [True: 22, False: 1.16k]
  ------------------
 2061|     22|        RNP_LOG("failed to read data format");
  ------------------
  |  |   84|     22|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     22|    do {                                                                                 \
  |  |  |  |   77|     22|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 22, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     22|            break;                                                                       \
  |  |  |  |   79|     22|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2062|     22|        ret = RNP_ERROR_READ;
 2063|     22|        goto finish;
 2064|     22|    }
 2065|       |
 2066|  1.16k|    switch (format) {
 2067|    273|    case 'b':
  ------------------
  |  Branch (2067:5): [True: 273, False: 896]
  ------------------
 2068|    275|    case 't':
  ------------------
  |  Branch (2068:5): [True: 2, False: 1.16k]
  ------------------
 2069|    280|    case 'u':
  ------------------
  |  Branch (2069:5): [True: 5, False: 1.16k]
  ------------------
 2070|    281|    case 'l':
  ------------------
  |  Branch (2070:5): [True: 1, False: 1.16k]
  ------------------
 2071|    294|    case '1':
  ------------------
  |  Branch (2071:5): [True: 13, False: 1.15k]
  ------------------
 2072|    298|    case 'm':
  ------------------
  |  Branch (2072:5): [True: 4, False: 1.16k]
  ------------------
 2073|    298|        break;
 2074|    871|    default:
  ------------------
  |  Branch (2074:5): [True: 871, False: 298]
  ------------------
 2075|    871|        RNP_LOG("Warning: unknown data format %" PRIu8 ", ignoring.", format);
  ------------------
  |  |   84|    871|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    871|    do {                                                                                 \
  |  |  |  |   77|    871|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 871, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    871|            break;                                                                       \
  |  |  |  |   79|    871|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2076|    871|        break;
 2077|  1.16k|    }
 2078|  1.16k|    param->hdr.format = format;
 2079|       |    /* file name */
 2080|  1.16k|    if (!param->pkt.readsrc->read_eq(&nlen, 1)) {
  ------------------
  |  Branch (2080:9): [True: 26, False: 1.14k]
  ------------------
 2081|     26|        RNP_LOG("failed to read file name length");
  ------------------
  |  |   84|     26|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     26|    do {                                                                                 \
  |  |  |  |   77|     26|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 26, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     26|            break;                                                                       \
  |  |  |  |   79|     26|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2082|     26|        ret = RNP_ERROR_READ;
 2083|     26|        goto finish;
 2084|     26|    }
 2085|  1.14k|    if (nlen && !param->pkt.readsrc->read_eq(param->hdr.fname, nlen)) {
  ------------------
  |  Branch (2085:9): [True: 808, False: 335]
  |  Branch (2085:17): [True: 51, False: 757]
  ------------------
 2086|     51|        RNP_LOG("failed to read file name");
  ------------------
  |  |   84|     51|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     51|    do {                                                                                 \
  |  |  |  |   77|     51|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 51, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     51|            break;                                                                       \
  |  |  |  |   79|     51|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2087|     51|        ret = RNP_ERROR_READ;
 2088|     51|        goto finish;
 2089|     51|    }
 2090|  1.09k|    param->hdr.fname[nlen] = 0;
 2091|  1.09k|    param->hdr.fname_len = nlen;
 2092|       |    /* timestamp */
 2093|  1.09k|    if (!param->pkt.readsrc->read_eq(timestamp, 4)) {
  ------------------
  |  Branch (2093:9): [True: 7, False: 1.08k]
  ------------------
 2094|      7|        RNP_LOG("failed to read file timestamp");
  ------------------
  |  |   84|      7|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      7|    do {                                                                                 \
  |  |  |  |   77|      7|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 7, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      7|            break;                                                                       \
  |  |  |  |   79|      7|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2095|      7|        ret = RNP_ERROR_READ;
 2096|      7|        goto finish;
 2097|      7|    }
 2098|  1.08k|    param->hdr.timestamp = read_uint32(timestamp);
 2099|       |
 2100|  1.08k|    if (!param->pkt.hdr.indeterminate && !param->pkt.hdr.partial) {
  ------------------
  |  Branch (2100:9): [True: 938, False: 147]
  |  Branch (2100:42): [True: 666, False: 272]
  ------------------
 2101|       |        /* format filename-length filename timestamp */
 2102|    666|        const uint16_t nbytes = 1 + 1 + nlen + 4;
 2103|    666|        if (param->pkt.hdr.pkt_len < nbytes) {
  ------------------
  |  Branch (2103:13): [True: 1, False: 665]
  ------------------
 2104|      1|            ret = RNP_ERROR_BAD_FORMAT;
 2105|      1|            goto finish;
 2106|      1|        }
 2107|    665|        src->size = param->pkt.hdr.pkt_len - nbytes;
 2108|    665|        src->knownsize = 1;
 2109|    665|    }
 2110|  1.08k|    ret = RNP_SUCCESS;
 2111|  1.20k|finish:
 2112|  1.20k|    if (ret) {
  ------------------
  |  Branch (2112:9): [True: 116, False: 1.08k]
  ------------------
 2113|    116|        src->close();
 2114|    116|    }
 2115|  1.20k|    return ret;
 2116|  1.08k|}
_Z19get_literal_src_hdrR12pgp_source_t:
 2120|  1.08k|{
 2121|  1.08k|    return (static_cast<pgp_source_literal_param_t *>(src.param))->hdr;
 2122|  1.08k|}
_Z19init_compressed_srcP12pgp_source_tS0_Pm:
 2126|  1.95k|{
 2127|  1.95k|    rnp_result_t                   errcode = RNP_ERROR_GENERIC;
 2128|  1.95k|    pgp_source_compressed_param_t *param;
 2129|  1.95k|    uint8_t                        alg;
 2130|  1.95k|    int                            zret;
 2131|       |
 2132|  1.95k|    if (!init_src_common(src, sizeof(*param))) {
  ------------------
  |  Branch (2132:9): [True: 0, False: 1.95k]
  ------------------
 2133|      0|        return RNP_ERROR_OUT_OF_MEMORY; // LCOV_EXCL_LINE
 2134|      0|    }
 2135|       |
 2136|  1.95k|    param = (pgp_source_compressed_param_t *) src->param;
 2137|  1.95k|    param->pkt.readsrc = readsrc;
 2138|  1.95k|    param->decomp_left = decomp_left;
 2139|  1.95k|    src->raw_read = compressed_src_read;
 2140|  1.95k|    src->raw_close = compressed_src_close;
 2141|  1.95k|    src->type = PGP_STREAM_COMPRESSED;
 2142|       |
 2143|       |    /* Reading packet length/checking whether it is partial */
 2144|  1.95k|    errcode = init_packet_params(param->pkt);
 2145|  1.95k|    if (errcode != RNP_SUCCESS) {
  ------------------
  |  Branch (2145:9): [True: 20, False: 1.93k]
  ------------------
 2146|     20|        goto finish;
 2147|     20|    }
 2148|       |
 2149|       |    /* Reading compression algorithm */
 2150|  1.93k|    if (!param->pkt.readsrc->read_eq(&alg, 1)) {
  ------------------
  |  Branch (2150:9): [True: 49, False: 1.88k]
  ------------------
 2151|     49|        RNP_LOG("failed to read compression algorithm");
  ------------------
  |  |   84|     49|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     49|    do {                                                                                 \
  |  |  |  |   77|     49|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 49, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     49|            break;                                                                       \
  |  |  |  |   79|     49|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2152|     49|        errcode = RNP_ERROR_READ;
 2153|     49|        goto finish;
 2154|     49|    }
 2155|       |
 2156|       |    /* Initializing decompression */
 2157|  1.88k|    switch (alg) {
 2158|  1.37k|    case PGP_C_NONE:
  ------------------
  |  Branch (2158:5): [True: 1.37k, False: 519]
  ------------------
 2159|  1.37k|        break;
 2160|    408|    case PGP_C_ZIP:
  ------------------
  |  Branch (2160:5): [True: 408, False: 1.48k]
  ------------------
 2161|    411|    case PGP_C_ZLIB:
  ------------------
  |  Branch (2161:5): [True: 3, False: 1.88k]
  ------------------
 2162|    411|        (void) memset(&param->z, 0x0, sizeof(param->z));
 2163|    411|        zret =
 2164|    411|          alg == PGP_C_ZIP ? (int) inflateInit2(&param->z, -15) : (int) inflateInit(&param->z);
  ------------------
  |  Branch (2164:11): [True: 408, False: 3]
  ------------------
 2165|    411|        if (zret != Z_OK) {
  ------------------
  |  Branch (2165:13): [True: 0, False: 411]
  ------------------
 2166|      0|            RNP_LOG("failed to init zlib, error %d", zret);
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2167|      0|            errcode = RNP_ERROR_READ;
 2168|      0|            goto finish;
 2169|      0|        }
 2170|    411|        break;
 2171|    411|#ifdef HAVE_BZLIB_H
 2172|    411|    case PGP_C_BZIP2:
  ------------------
  |  Branch (2172:5): [True: 61, False: 1.82k]
  ------------------
 2173|     61|        (void) memset(&param->bz, 0x0, sizeof(param->bz));
 2174|     61|        zret = BZ2_bzDecompressInit(&param->bz, 0, 0);
 2175|     61|        if (zret != BZ_OK) {
  ------------------
  |  Branch (2175:13): [True: 0, False: 61]
  ------------------
 2176|      0|            RNP_LOG("failed to init bz, error %d", zret);
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2177|      0|            errcode = RNP_ERROR_READ;
 2178|      0|            goto finish;
 2179|      0|        }
 2180|     61|        break;
 2181|     61|#endif
 2182|     61|    default:
  ------------------
  |  Branch (2182:5): [True: 47, False: 1.84k]
  ------------------
 2183|     47|        RNP_LOG("unknown compression algorithm: %d", (int) alg);
  ------------------
  |  |   84|     47|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     47|    do {                                                                                 \
  |  |  |  |   77|     47|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 47, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     47|            break;                                                                       \
  |  |  |  |   79|     47|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2184|     47|        errcode = RNP_ERROR_BAD_FORMAT;
 2185|     47|        goto finish;
 2186|  1.88k|    }
 2187|  1.84k|    param->alg = (pgp_compression_type_t) alg;
 2188|  1.84k|    param->inlen = 0;
 2189|  1.84k|    param->inpos = 0;
 2190|       |
 2191|  1.84k|    errcode = RNP_SUCCESS;
 2192|  1.95k|finish:
 2193|  1.95k|    if (errcode != RNP_SUCCESS) {
  ------------------
  |  Branch (2193:9): [True: 116, False: 1.84k]
  ------------------
 2194|    116|        src->close();
 2195|    116|    }
 2196|  1.95k|    return errcode;
 2197|  1.84k|}
_Z19get_seipdv2_src_hdrP12pgp_source_tP17pgp_seipdv2_hdr_t:
 2232|     11|{
 2233|     11|    uint8_t hdrbt[3 + PGP_SEIPDV2_SALT_LEN] = {0};
 2234|       |
 2235|     11|    if (!src->read_eq(hdrbt, sizeof(hdrbt))) {
  ------------------
  |  Branch (2235:9): [True: 3, False: 8]
  ------------------
 2236|      3|        return false;
 2237|      3|    }
 2238|       |
 2239|      8|    hdr->version = PGP_SE_IP_DATA_V2;
 2240|      8|    hdr->cipher_alg = (pgp_symm_alg_t) hdrbt[0];
 2241|      8|    hdr->aead_alg = (pgp_aead_alg_t) hdrbt[1];
 2242|      8|    hdr->chunk_size_octet = hdrbt[2];
 2243|      8|    std::memcpy(hdr->salt, &hdrbt[3], PGP_SEIPDV2_SALT_LEN);
  ------------------
  |  |  101|      8|#define PGP_SEIPDV2_SALT_LEN 32
  ------------------
 2244|      8|    return true;
 2245|     11|}
_Z16get_aead_src_hdrP12pgp_source_tP14pgp_aead_hdr_t:
 2250|  1.13k|{
 2251|  1.13k|    uint8_t hdrbt[4] = {0};
 2252|       |
 2253|  1.13k|    if (!src->read_eq(hdrbt, 4)) {
  ------------------
  |  Branch (2253:9): [True: 0, False: 1.13k]
  ------------------
 2254|      0|        return false;
 2255|      0|    }
 2256|       |
 2257|  1.13k|    hdr->version = hdrbt[0];
 2258|  1.13k|    hdr->ealg = (pgp_symm_alg_t) hdrbt[1];
 2259|  1.13k|    hdr->aalg = (pgp_aead_alg_t) hdrbt[2];
 2260|  1.13k|    hdr->csize = hdrbt[3];
 2261|       |
 2262|  1.13k|    if (!(hdr->ivlen = pgp_cipher_aead_nonce_len(hdr->aalg))) {
  ------------------
  |  Branch (2262:9): [True: 8, False: 1.12k]
  ------------------
 2263|      8|        RNP_LOG("wrong aead nonce length: alg %d", (int) hdr->aalg);
  ------------------
  |  |   84|      8|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      8|    do {                                                                                 \
  |  |  |  |   77|      8|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 8, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      8|            break;                                                                       \
  |  |  |  |   79|      8|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2264|      8|        return false;
 2265|      8|    }
 2266|       |
 2267|  1.12k|    return src->read_eq(hdr->iv, hdr->ivlen);
 2268|  1.13k|}
_ZN20pgp_processing_ctx_tD2Ev:
 2891|  11.6k|{
 2892|  11.6k|    for (auto &src : sources) {
  ------------------
  |  Branch (2892:20): [True: 8.08k, False: 11.6k]
  ------------------
 2893|  8.08k|        src.close();
 2894|  8.08k|    }
 2895|  11.6k|}
_Z18process_pgp_sourceP19pgp_parse_handler_tR12pgp_source_t:
 3057|  11.6k|{
 3058|  11.6k|    rnp_result_t         res = RNP_ERROR_BAD_FORMAT;
 3059|  11.6k|    rnp_result_t         fres;
 3060|  11.6k|    pgp_processing_ctx_t ctx = {};
 3061|  11.6k|    pgp_source_t *       decsrc = NULL;
 3062|  11.6k|    pgp_source_t         datasrc = {0};
 3063|  11.6k|    pgp_dest_t *         outdest = NULL;
 3064|  11.6k|    bool                 closeout = true;
 3065|  11.6k|    uint8_t *            readbuf = NULL;
 3066|       |
 3067|  11.6k|    ctx.handler = *handler;
 3068|       |    /* Shared decompressed-data budget across all compression layers of the message */
 3069|  11.6k|    ctx.decomp_left = (handler->ctx && handler->ctx->max_decompressed) ?
  ------------------
  |  Branch (3069:24): [True: 11.6k, False: 0]
  |  Branch (3069:40): [True: 11.6k, False: 0]
  ------------------
 3070|  11.6k|                        handler->ctx->max_decompressed :
 3071|  11.6k|                        UINT64_MAX;
 3072|       |    /* Building readers sequence. Checking whether it is binary data */
 3073|  11.6k|    if (is_pgp_source(src)) {
  ------------------
  |  Branch (3073:9): [True: 6.11k, False: 5.51k]
  ------------------
 3074|  6.11k|        res = init_packet_sequence(ctx, src);
 3075|  6.11k|    } else {
 3076|       |        /* Trying armored or cleartext data */
 3077|  5.51k|        if (src.is_cleartext()) {
  ------------------
  |  Branch (3077:13): [True: 559, False: 4.96k]
  ------------------
 3078|       |            /* Initializing cleartext message */
 3079|    559|            res = init_cleartext_sequence(ctx, src);
 3080|  4.96k|        } else if (src.is_armored()) {
  ------------------
  |  Branch (3080:20): [True: 856, False: 4.10k]
  ------------------
 3081|       |            /* Initializing armored message */
 3082|    856|            res = init_armored_sequence(ctx, src);
 3083|  4.10k|        } else {
 3084|  4.10k|            RNP_LOG("not an OpenPGP data provided");
  ------------------
  |  |   84|  4.10k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  4.10k|    do {                                                                                 \
  |  |  |  |   77|  4.10k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 4.10k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  4.10k|            break;                                                                       \
  |  |  |  |   79|  4.10k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3085|  4.10k|            res = RNP_ERROR_BAD_FORMAT;
 3086|  4.10k|            goto finish;
 3087|  4.10k|        }
 3088|  5.51k|    }
 3089|       |
 3090|  7.52k|    if (res != RNP_SUCCESS) {
  ------------------
  |  Branch (3090:9): [True: 6.08k, False: 1.44k]
  ------------------
 3091|  6.08k|        goto finish;
 3092|  6.08k|    }
 3093|       |
 3094|  1.44k|    if (!(readbuf = (uint8_t *) calloc(1, PGP_INPUT_CACHE_SIZE))) {
  ------------------
  |  |   35|  1.44k|#define PGP_INPUT_CACHE_SIZE 32768
  ------------------
  |  Branch (3094:9): [True: 0, False: 1.44k]
  ------------------
 3095|       |        /* LCOV_EXCL_START */
 3096|      0|        RNP_LOG("allocation failure");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3097|      0|        res = RNP_ERROR_OUT_OF_MEMORY;
 3098|      0|        goto finish;
 3099|       |        /* LCOV_EXCL_END */
 3100|      0|    }
 3101|       |
 3102|  1.44k|    if (ctx.msg_type == PGP_MESSAGE_DETACHED) {
  ------------------
  |  Branch (3102:9): [True: 34, False: 1.40k]
  ------------------
 3103|       |        /* detached signature case */
 3104|     34|        if (!handler->ctx->detached) {
  ------------------
  |  Branch (3104:13): [True: 34, False: 0]
  ------------------
 3105|     34|            RNP_LOG("Unexpected detached signature input.");
  ------------------
  |  |   84|     34|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     34|    do {                                                                                 \
  |  |  |  |   77|     34|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 34, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     34|            break;                                                                       \
  |  |  |  |   79|     34|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3106|     34|            res = RNP_ERROR_BAD_STATE;
 3107|     34|            goto finish;
 3108|     34|        }
 3109|      0|        if (!handler->src_provider || !handler->src_provider(handler, &datasrc)) {
  ------------------
  |  Branch (3109:13): [True: 0, False: 0]
  |  Branch (3109:39): [True: 0, False: 0]
  ------------------
 3110|      0|            RNP_LOG("no data source for detached signature verification");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3111|      0|            res = RNP_ERROR_READ;
 3112|      0|            goto finish;
 3113|      0|        }
 3114|       |
 3115|      0|        while (!datasrc.eof_) {
  ------------------
  |  Branch (3115:16): [True: 0, False: 0]
  ------------------
 3116|      0|            size_t read = 0;
 3117|      0|            if (!datasrc.read(readbuf, PGP_INPUT_CACHE_SIZE, &read)) {
  ------------------
  |  |   35|      0|#define PGP_INPUT_CACHE_SIZE 32768
  ------------------
  |  Branch (3117:17): [True: 0, False: 0]
  ------------------
 3118|      0|                res = RNP_ERROR_GENERIC;
 3119|      0|                break;
 3120|      0|            }
 3121|      0|            if (read > 0) {
  ------------------
  |  Branch (3121:17): [True: 0, False: 0]
  ------------------
 3122|      0|                signed_src_update(ctx.signed_src, readbuf, read);
 3123|      0|            }
 3124|      0|        }
 3125|      0|        datasrc.close();
 3126|  1.40k|    } else {
 3127|  1.40k|        if (handler->ctx->detached) {
  ------------------
  |  Branch (3127:13): [True: 0, False: 1.40k]
  ------------------
 3128|      0|            RNP_LOG("Attached signature expected.");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3129|      0|            res = RNP_ERROR_BAD_STATE;
 3130|      0|            goto finish;
 3131|      0|        }
 3132|       |        /* file processing case */
 3133|  1.40k|        decsrc = &ctx.sources.back();
 3134|  1.40k|        const pgp_literal_hdr_t *lithdr = nullptr;
 3135|       |
 3136|  1.40k|        if (ctx.literal_src) {
  ------------------
  |  Branch (3136:13): [True: 1.08k, False: 325]
  ------------------
 3137|  1.08k|            lithdr = &get_literal_src_hdr(*ctx.literal_src);
 3138|  1.08k|            if (ctx.signed_src) {
  ------------------
  |  Branch (3138:17): [True: 971, False: 113]
  ------------------
 3139|    971|                signed_src_set_literal_hdr(*ctx.signed_src, *lithdr);
 3140|    971|            }
 3141|  1.08k|        }
 3142|       |
 3143|  1.40k|        if (!handler->dest_provider ||
  ------------------
  |  Branch (3143:13): [True: 0, False: 1.40k]
  ------------------
 3144|  1.40k|            !handler->dest_provider(handler, &outdest, &closeout, lithdr)) {
  ------------------
  |  Branch (3144:13): [True: 0, False: 1.40k]
  ------------------
 3145|      0|            res = RNP_ERROR_WRITE;
 3146|      0|            goto finish;
 3147|      0|        }
 3148|       |
 3149|       |        /* reading the input */
 3150|  8.32k|        while (!decsrc->eof_) {
  ------------------
  |  Branch (3150:16): [True: 7.00k, False: 1.32k]
  ------------------
 3151|  7.00k|            size_t read = 0;
 3152|  7.00k|            if (!decsrc->read(readbuf, PGP_INPUT_CACHE_SIZE, &read)) {
  ------------------
  |  |   35|  7.00k|#define PGP_INPUT_CACHE_SIZE 32768
  ------------------
  |  Branch (3152:17): [True: 83, False: 6.92k]
  ------------------
 3153|     83|                res = RNP_ERROR_GENERIC;
 3154|     83|                break;
 3155|     83|            }
 3156|  6.92k|            if (!read) {
  ------------------
  |  Branch (3156:17): [True: 93, False: 6.82k]
  ------------------
 3157|     93|                continue;
 3158|     93|            }
 3159|  6.82k|            if (ctx.signed_src) {
  ------------------
  |  Branch (3159:17): [True: 4.29k, False: 2.53k]
  ------------------
 3160|  4.29k|                signed_src_update(ctx.signed_src, readbuf, read);
 3161|  4.29k|            }
 3162|  6.82k|            dst_write(outdest, readbuf, read);
 3163|  6.82k|            if (outdest->werr != RNP_SUCCESS) {
  ------------------
  |  Branch (3163:17): [True: 0, False: 6.82k]
  ------------------
 3164|      0|                RNP_LOG("failed to output data");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3165|      0|                res = RNP_ERROR_WRITE;
 3166|      0|                break;
 3167|      0|            }
 3168|  6.82k|        }
 3169|  1.40k|    }
 3170|       |
 3171|       |    /* finalizing the input. Signatures are checked on this step */
 3172|  1.40k|    if (!res) {
  ------------------
  |  Branch (3172:9): [True: 1.32k, False: 83]
  ------------------
 3173|  3.46k|        for (auto &ctxsrc : ctx.sources) {
  ------------------
  |  Branch (3173:27): [True: 3.46k, False: 1.32k]
  ------------------
 3174|  3.46k|            fres = ctxsrc.finish();
 3175|  3.46k|            if (fres) {
  ------------------
  |  Branch (3175:17): [True: 2.10k, False: 1.35k]
  ------------------
 3176|  2.10k|                res = fres;
 3177|  2.10k|            }
 3178|  3.46k|        }
 3179|  1.32k|    }
 3180|       |
 3181|  1.40k|    if (closeout && (ctx.msg_type != PGP_MESSAGE_DETACHED)) {
  ------------------
  |  Branch (3181:9): [True: 0, False: 1.40k]
  |  Branch (3181:21): [True: 0, False: 0]
  ------------------
 3182|      0|        dst_close(outdest, res != RNP_SUCCESS);
 3183|      0|    }
 3184|       |
 3185|  11.6k|finish:
 3186|  11.6k|    free(readbuf);
 3187|  11.6k|    return res;
 3188|  1.40k|}
stream-parse.cpp:_ZL16literal_src_readP12pgp_source_tPvmPm:
  344|  7.17k|{
  345|  7.17k|    pgp_source_literal_param_t *param = (pgp_source_literal_param_t *) src->param;
  346|  7.17k|    if (!param) {
  ------------------
  |  Branch (346:9): [True: 0, False: 7.17k]
  ------------------
  347|      0|        return false;
  348|      0|    }
  349|  7.17k|    return param->pkt.readsrc->read(buf, len, read);
  350|  7.17k|}
stream-parse.cpp:_ZL17literal_src_closeP12pgp_source_t:
  354|  1.20k|{
  355|  1.20k|    pgp_source_literal_param_t *param = (pgp_source_literal_param_t *) src->param;
  356|  1.20k|    if (param) {
  ------------------
  |  Branch (356:9): [True: 1.20k, False: 0]
  ------------------
  357|  1.20k|        if (param->pkt.hdr.partial) {
  ------------------
  |  Branch (357:13): [True: 346, False: 854]
  ------------------
  358|    346|            param->pkt.readsrc->close();
  359|    346|            free(param->pkt.readsrc);
  360|    346|            param->pkt.readsrc = NULL;
  361|    346|        }
  362|       |
  363|  1.20k|        free(src->param);
  364|       |        src->param = NULL;
  365|  1.20k|    }
  366|  1.20k|}
stream-parse.cpp:_ZL18init_packet_paramsR25pgp_source_packet_param_t:
 2007|  5.61k|{
 2008|  5.61k|    param.origsrc = NULL;
 2009|       |
 2010|       |    /* save packet header */
 2011|  5.61k|    rnp_result_t ret = stream_peek_packet_hdr(param.readsrc, &param.hdr);
 2012|  5.61k|    if (ret) {
  ------------------
  |  Branch (2012:9): [True: 32, False: 5.58k]
  ------------------
 2013|     32|        return ret;
 2014|     32|    }
 2015|  5.58k|    param.readsrc->skip(param.hdr.hdr_len);
 2016|  5.58k|    if (!param.hdr.partial) {
  ------------------
  |  Branch (2016:9): [True: 4.22k, False: 1.35k]
  ------------------
 2017|  4.22k|        return RNP_SUCCESS;
 2018|  4.22k|    }
 2019|       |
 2020|       |    /* initialize partial reader if needed */
 2021|  1.35k|    pgp_source_t *partsrc = (pgp_source_t *) calloc(1, sizeof(*partsrc));
 2022|  1.35k|    if (!partsrc) {
  ------------------
  |  Branch (2022:9): [True: 0, False: 1.35k]
  ------------------
 2023|      0|        return RNP_ERROR_OUT_OF_MEMORY;
 2024|      0|    }
 2025|  1.35k|    rnp_result_t errcode = init_partial_pkt_src(partsrc, param.readsrc, param.hdr);
 2026|  1.35k|    if (errcode) {
  ------------------
  |  Branch (2026:9): [True: 0, False: 1.35k]
  ------------------
 2027|      0|        free(partsrc);
 2028|      0|        return errcode;
 2029|      0|    }
 2030|  1.35k|    param.origsrc = param.readsrc;
 2031|  1.35k|    param.readsrc = partsrc;
 2032|  1.35k|    return RNP_SUCCESS;
 2033|  1.35k|}
stream-parse.cpp:_ZL20init_partial_pkt_srcP12pgp_source_tS0_R16pgp_packet_hdr_t:
  314|  1.35k|{
  315|  1.35k|    pgp_source_partial_param_t *param;
  316|  1.35k|    if (!init_src_common(src, sizeof(*param))) {
  ------------------
  |  Branch (316:9): [True: 0, False: 1.35k]
  ------------------
  317|      0|        return RNP_ERROR_OUT_OF_MEMORY; // LCOV_EXCL_LINE
  318|      0|    }
  319|       |
  320|  1.35k|    assert(hdr.partial);
  321|       |    /* we are sure that header is indeterminate */
  322|  1.35k|    param = (pgp_source_partial_param_t *) src->param;
  323|  1.35k|    param->type = hdr.tag;
  324|  1.35k|    param->psize = get_partial_pkt_len(hdr.hdr[1]);
  325|  1.35k|    param->pleft = param->psize;
  326|  1.35k|    param->last = false;
  327|  1.35k|    param->readsrc = readsrc;
  328|       |
  329|  1.35k|    src->raw_read = partial_pkt_src_read;
  330|  1.35k|    src->raw_close = partial_pkt_src_close;
  331|  1.35k|    src->type = PGP_STREAM_PARLEN_PACKET;
  332|       |
  333|  1.35k|    if (param->psize < PGP_PARTIAL_PKT_FIRST_PART_MIN_SIZE) {
  ------------------
  |  |   38|  1.35k|#define PGP_PARTIAL_PKT_FIRST_PART_MIN_SIZE 512
  ------------------
  |  Branch (333:9): [True: 431, False: 923]
  ------------------
  334|    431|        RNP_LOG("first part of partial length packet sequence has size %d and that's less "
  ------------------
  |  |   84|    431|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    431|    do {                                                                                 \
  |  |  |  |   77|    431|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 431, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    431|            break;                                                                       \
  |  |  |  |   79|    431|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  335|    431|                "than allowed by the protocol",
  336|    431|                (int) param->psize);
  337|    431|    }
  338|       |
  339|  1.35k|    return RNP_SUCCESS;
  340|  1.35k|}
stream-parse.cpp:_ZL20partial_pkt_src_readP12pgp_source_tPvmPm:
  249|  6.66k|{
  250|  6.66k|    if (src->eof_) {
  ------------------
  |  Branch (250:9): [True: 0, False: 6.66k]
  ------------------
  251|      0|        *readres = 0;
  252|      0|        return true;
  253|      0|    }
  254|       |
  255|  6.66k|    pgp_source_partial_param_t *param = (pgp_source_partial_param_t *) src->param;
  256|  6.66k|    if (!param) {
  ------------------
  |  Branch (256:9): [True: 0, False: 6.66k]
  ------------------
  257|      0|        return false;
  258|      0|    }
  259|       |
  260|  6.66k|    size_t read;
  261|  6.66k|    size_t write = 0;
  262|   316k|    while (len > 0) {
  ------------------
  |  Branch (262:12): [True: 313k, False: 3.47k]
  ------------------
  263|   313k|        if (!param->pleft && param->last) {
  ------------------
  |  Branch (263:13): [True: 305k, False: 7.35k]
  |  Branch (263:30): [True: 431, False: 305k]
  ------------------
  264|       |            // we have the last chunk
  265|    431|            *readres = write;
  266|    431|            return true;
  267|    431|        }
  268|   312k|        if (!param->pleft) {
  ------------------
  |  Branch (268:13): [True: 305k, False: 7.35k]
  ------------------
  269|       |            // reading next chunk
  270|   305k|            if (!stream_read_partial_chunk_len(param->readsrc, &read, &param->last)) {
  ------------------
  |  Branch (270:17): [True: 7, False: 305k]
  ------------------
  271|      7|                return false;
  272|      7|            }
  273|   305k|            param->psize = read;
  274|   305k|            param->pleft = read;
  275|   305k|        }
  276|       |
  277|   312k|        if (!param->pleft) {
  ------------------
  |  Branch (277:13): [True: 19, False: 312k]
  ------------------
  278|     19|            *readres = write;
  279|     19|            return true;
  280|     19|        }
  281|       |
  282|   312k|        read = param->pleft > len ? len : param->pleft;
  ------------------
  |  Branch (282:16): [True: 4.64k, False: 308k]
  ------------------
  283|   312k|        if (!param->readsrc->read(buf, read, &read)) {
  ------------------
  |  Branch (283:13): [True: 48, False: 312k]
  ------------------
  284|     48|            RNP_LOG("failed to read data chunk");
  ------------------
  |  |   84|     48|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     48|    do {                                                                                 \
  |  |  |  |   77|     48|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 48, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     48|            break;                                                                       \
  |  |  |  |   79|     48|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  285|     48|            return false;
  286|     48|        }
  287|   312k|        if (!read) {
  ------------------
  |  Branch (287:13): [True: 2.69k, False: 310k]
  ------------------
  288|  2.69k|            RNP_LOG("unexpected eof");
  ------------------
  |  |   84|  2.69k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  2.69k|    do {                                                                                 \
  |  |  |  |   77|  2.69k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 2.69k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  2.69k|            break;                                                                       \
  |  |  |  |   79|  2.69k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  289|  2.69k|            *readres = write;
  290|  2.69k|            return true;
  291|  2.69k|        }
  292|   310k|        write += read;
  293|   310k|        len -= read;
  294|   310k|        buf = (uint8_t *) buf + read;
  295|   310k|        param->pleft -= read;
  296|   310k|    }
  297|       |
  298|  3.47k|    *readres = write;
  299|  3.47k|    return true;
  300|  6.66k|}
stream-parse.cpp:_ZL21partial_pkt_src_closeP12pgp_source_t:
  304|  1.35k|{
  305|  1.35k|    pgp_source_partial_param_t *param = (pgp_source_partial_param_t *) src->param;
  306|  1.35k|    if (param) {
  ------------------
  |  Branch (306:9): [True: 1.35k, False: 0]
  ------------------
  307|  1.35k|        free(src->param);
  308|       |        src->param = NULL;
  309|  1.35k|    }
  310|  1.35k|}
stream-parse.cpp:_ZL19compressed_src_readP12pgp_source_tPvmPm:
  385|  13.2k|{
  386|  13.2k|    pgp_source_compressed_param_t *param = (pgp_source_compressed_param_t *) src->param;
  387|  13.2k|    if (!param) {
  ------------------
  |  Branch (387:9): [True: 0, False: 13.2k]
  ------------------
  388|      0|        return false; // LCOV_EXCL_LINE
  389|      0|    }
  390|       |
  391|  13.2k|    if (src->eof_ || param->zend) {
  ------------------
  |  Branch (391:9): [True: 0, False: 13.2k]
  |  Branch (391:22): [True: 225, False: 13.0k]
  ------------------
  392|    225|        *readres = 0;
  393|    225|        return true;
  394|    225|    }
  395|       |
  396|  13.0k|    if (param->alg == PGP_C_NONE) {
  ------------------
  |  Branch (396:9): [True: 4.33k, False: 8.69k]
  ------------------
  397|  4.33k|        if (!param->pkt.readsrc->read(buf, len, readres)) {
  ------------------
  |  Branch (397:13): [True: 1, False: 4.33k]
  ------------------
  398|      1|            RNP_LOG("failed to read uncompressed data");
  ------------------
  |  |   84|      1|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      1|    do {                                                                                 \
  |  |  |  |   77|      1|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 1, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      1|            break;                                                                       \
  |  |  |  |   79|      1|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  399|      1|            return false;
  400|      1|        }
  401|  4.33k|        return compressed_budget_consume(param, *readres);
  402|  4.33k|    }
  403|  8.69k|    if ((param->alg == PGP_C_ZIP) || (param->alg == PGP_C_ZLIB)) {
  ------------------
  |  Branch (403:9): [True: 3.91k, False: 4.77k]
  |  Branch (403:38): [True: 3, False: 4.76k]
  ------------------
  404|  3.92k|        param->z.next_out = (Bytef *) buf;
  405|  3.92k|        param->z.avail_out = len;
  406|  3.92k|        param->z.next_in = param->in + param->inpos;
  407|  3.92k|        param->z.avail_in = param->inlen - param->inpos;
  408|       |
  409|  7.69k|        while ((param->z.avail_out > 0) && (!param->zend)) {
  ------------------
  |  Branch (409:16): [True: 4.12k, False: 3.57k]
  |  Branch (409:44): [True: 4.12k, False: 0]
  ------------------
  410|  4.12k|            if (param->z.avail_in == 0) {
  ------------------
  |  Branch (410:17): [True: 610, False: 3.51k]
  ------------------
  411|    610|                size_t read = 0;
  412|    610|                if (!param->pkt.readsrc->read(param->in, sizeof(param->in), &read)) {
  ------------------
  |  Branch (412:21): [True: 22, False: 588]
  ------------------
  413|     22|                    RNP_LOG("failed to read data");
  ------------------
  |  |   84|     22|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     22|    do {                                                                                 \
  |  |  |  |   77|     22|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 22, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     22|            break;                                                                       \
  |  |  |  |   79|     22|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  414|     22|                    return false;
  415|     22|                }
  416|    588|                param->z.next_in = param->in;
  417|    588|                param->z.avail_in = read;
  418|    588|                param->inlen = read;
  419|    588|                param->inpos = 0;
  420|    588|            }
  421|  4.09k|            int ret = inflate(&param->z, Z_SYNC_FLUSH);
  422|  4.09k|            if (ret == Z_STREAM_END) {
  ------------------
  |  Branch (422:17): [True: 244, False: 3.85k]
  ------------------
  423|    244|                param->zend = true;
  424|    244|                if (param->z.avail_in > 0) {
  ------------------
  |  Branch (424:21): [True: 211, False: 33]
  ------------------
  425|    211|                    RNP_LOG("data beyond the end of z stream");
  ------------------
  |  |   84|    211|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    211|    do {                                                                                 \
  |  |  |  |   77|    211|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 211, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    211|            break;                                                                       \
  |  |  |  |   79|    211|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  426|    211|                }
  427|    244|                break;
  428|    244|            }
  429|  3.85k|            if (ret != Z_OK) {
  ------------------
  |  Branch (429:17): [True: 26, False: 3.82k]
  ------------------
  430|     26|                RNP_LOG("inflate error %d", ret);
  ------------------
  |  |   84|     26|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     26|    do {                                                                                 \
  |  |  |  |   77|     26|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 26, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     26|            break;                                                                       \
  |  |  |  |   79|     26|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  431|     26|                return false;
  432|     26|            }
  433|  3.82k|            if (!param->z.avail_in && param->pkt.readsrc->eof()) {
  ------------------
  |  Branch (433:17): [True: 256, False: 3.57k]
  |  Branch (433:39): [True: 56, False: 200]
  ------------------
  434|     56|                RNP_LOG("unexpected end of zlib stream");
  ------------------
  |  |   84|     56|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     56|    do {                                                                                 \
  |  |  |  |   77|     56|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 56, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     56|            break;                                                                       \
  |  |  |  |   79|     56|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  435|     56|                return false;
  436|     56|            }
  437|  3.82k|        }
  438|  3.81k|        param->inpos = param->z.next_in - param->in;
  439|  3.81k|        *readres = len - param->z.avail_out;
  440|  3.81k|        return compressed_budget_consume(param, *readres);
  441|  3.92k|    }
  442|  4.76k|#ifdef HAVE_BZLIB_H
  443|  4.76k|    if (param->alg == PGP_C_BZIP2) {
  ------------------
  |  Branch (443:9): [True: 4.76k, False: 0]
  ------------------
  444|  4.76k|        param->bz.next_out = (char *) buf;
  445|  4.76k|        param->bz.avail_out = len;
  446|  4.76k|        param->bz.next_in = (char *) (param->in + param->inpos);
  447|  4.76k|        param->bz.avail_in = param->inlen - param->inpos;
  448|       |
  449|  9.49k|        while ((param->bz.avail_out > 0) && (!param->zend)) {
  ------------------
  |  Branch (449:16): [True: 4.76k, False: 4.72k]
  |  Branch (449:45): [True: 4.76k, False: 0]
  ------------------
  450|  4.76k|            if (param->bz.avail_in == 0) {
  ------------------
  |  Branch (450:17): [True: 61, False: 4.70k]
  ------------------
  451|     61|                size_t read = 0;
  452|     61|                if (!param->pkt.readsrc->read(param->in, sizeof(param->in), &read)) {
  ------------------
  |  Branch (452:21): [True: 0, False: 61]
  ------------------
  453|      0|                    RNP_LOG("failed to read data");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  454|      0|                    return false;
  455|      0|                }
  456|     61|                param->bz.next_in = (char *) param->in;
  457|     61|                param->bz.avail_in = read;
  458|     61|                param->inlen = read;
  459|     61|                param->inpos = 0;
  460|     61|            }
  461|  4.76k|            int ret = BZ2_bzDecompress(&param->bz);
  462|  4.76k|            if (ret == BZ_STREAM_END) {
  ------------------
  |  Branch (462:17): [True: 0, False: 4.76k]
  ------------------
  463|      0|                param->zend = true;
  464|      0|                if (param->bz.avail_in > 0) {
  ------------------
  |  Branch (464:21): [True: 0, False: 0]
  ------------------
  465|      0|                    RNP_LOG("data beyond the end of z stream");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  466|      0|                }
  467|      0|                break;
  468|      0|            }
  469|  4.76k|            if (ret != BZ_OK) {
  ------------------
  |  Branch (469:17): [True: 39, False: 4.73k]
  ------------------
  470|     39|                RNP_LOG("bzdecompress error %d", ret);
  ------------------
  |  |   84|     39|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     39|    do {                                                                                 \
  |  |  |  |   77|     39|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 39, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     39|            break;                                                                       \
  |  |  |  |   79|     39|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  471|     39|                return false;
  472|     39|            }
  473|  4.73k|            if (!param->bz.avail_in && param->pkt.readsrc->eof()) {
  ------------------
  |  Branch (473:17): [True: 4, False: 4.72k]
  |  Branch (473:40): [True: 4, False: 0]
  ------------------
  474|      4|                RNP_LOG("unexpected end of bzip stream");
  ------------------
  |  |   84|      4|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      4|    do {                                                                                 \
  |  |  |  |   77|      4|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 4, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      4|            break;                                                                       \
  |  |  |  |   79|      4|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  475|      4|                return false;
  476|      4|            }
  477|  4.73k|        }
  478|       |
  479|  4.72k|        param->inpos = (uint8_t *) param->bz.next_in - param->in;
  480|  4.72k|        *readres = len - param->bz.avail_out;
  481|  4.72k|        return compressed_budget_consume(param, *readres);
  482|  4.76k|    }
  483|      0|#endif
  484|      0|    return false;
  485|  4.76k|}
stream-parse.cpp:_ZL25compressed_budget_consumeP29pgp_source_compressed_param_tm:
  370|  12.8k|{
  371|  12.8k|    if (!param->decomp_left) {
  ------------------
  |  Branch (371:9): [True: 0, False: 12.8k]
  ------------------
  372|       |        /* no budget set: the caller bounds the data itself (dump layer) */
  373|      0|        return true;
  374|      0|    }
  375|  12.8k|    if (produced > *param->decomp_left) {
  ------------------
  |  Branch (375:9): [True: 0, False: 12.8k]
  ------------------
  376|      0|        RNP_LOG("decompressed data exceeds the allowed limit");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  377|      0|        return false;
  378|      0|    }
  379|  12.8k|    *param->decomp_left -= produced;
  380|  12.8k|    return true;
  381|  12.8k|}
stream-parse.cpp:_ZL20compressed_src_closeP12pgp_source_t:
  489|  1.95k|{
  490|  1.95k|    pgp_source_compressed_param_t *param = (pgp_source_compressed_param_t *) src->param;
  491|  1.95k|    if (!param) {
  ------------------
  |  Branch (491:9): [True: 0, False: 1.95k]
  ------------------
  492|      0|        return; // LCOV_EXCL_LINE
  493|      0|    }
  494|       |
  495|  1.95k|    if (param->pkt.hdr.partial) {
  ------------------
  |  Branch (495:9): [True: 723, False: 1.23k]
  ------------------
  496|    723|        param->pkt.readsrc->close();
  497|    723|        free(param->pkt.readsrc);
  498|    723|        param->pkt.readsrc = NULL;
  499|    723|    }
  500|       |
  501|  1.95k|#ifdef HAVE_BZLIB_H
  502|  1.95k|    if (param->alg == PGP_C_BZIP2) {
  ------------------
  |  Branch (502:9): [True: 61, False: 1.89k]
  ------------------
  503|     61|        BZ2_bzDecompressEnd(&param->bz);
  504|     61|    }
  505|  1.95k|#endif
  506|  1.95k|    if ((param->alg == PGP_C_ZIP) || (param->alg == PGP_C_ZLIB)) {
  ------------------
  |  Branch (506:9): [True: 408, False: 1.55k]
  |  Branch (506:38): [True: 3, False: 1.54k]
  ------------------
  507|    411|        inflateEnd(&param->z);
  508|    411|    }
  509|       |
  510|  1.95k|    free(src->param);
  511|       |    src->param = NULL;
  512|  1.95k|}
stream-parse.cpp:_ZL13is_pgp_sourceR12pgp_source_t:
  221|  11.6k|{
  222|  11.6k|    uint8_t buf;
  223|  11.6k|    if (!src.peek_eq(&buf, 1)) {
  ------------------
  |  Branch (223:9): [True: 10, False: 11.6k]
  ------------------
  224|     10|        return false;
  225|     10|    }
  226|       |
  227|  11.6k|    int ptype = get_packet_type(buf);
  228|  11.6k|    switch (ptype) {
  229|    502|    case PGP_PKT_PK_SESSION_KEY:
  ------------------
  |  Branch (229:5): [True: 502, False: 11.1k]
  ------------------
  230|  3.26k|    case PGP_PKT_SK_SESSION_KEY:
  ------------------
  |  Branch (230:5): [True: 2.75k, False: 8.86k]
  ------------------
  231|  3.96k|    case PGP_PKT_ONE_PASS_SIG:
  ------------------
  |  Branch (231:5): [True: 702, False: 10.9k]
  ------------------
  232|  5.13k|    case PGP_PKT_SIGNATURE:
  ------------------
  |  Branch (232:5): [True: 1.17k, False: 10.4k]
  ------------------
  233|  5.13k|    case PGP_PKT_SE_DATA:
  ------------------
  |  Branch (233:5): [True: 3, False: 11.6k]
  ------------------
  234|  5.14k|    case PGP_PKT_SE_IP_DATA:
  ------------------
  |  Branch (234:5): [True: 2, False: 11.6k]
  ------------------
  235|  5.74k|    case PGP_PKT_COMPRESSED:
  ------------------
  |  Branch (235:5): [True: 604, False: 11.0k]
  ------------------
  236|  5.90k|    case PGP_PKT_LITDATA:
  ------------------
  |  Branch (236:5): [True: 164, False: 11.4k]
  ------------------
  237|  5.95k|    case PGP_PKT_MARKER:
  ------------------
  |  Branch (237:5): [True: 44, False: 11.5k]
  ------------------
  238|  5.95k|        return true;
  239|  5.66k|    default:
  ------------------
  |  Branch (239:5): [True: 5.66k, False: 5.95k]
  ------------------
  240|       |        /* RFC 9580, 4.3 and 5.14: a message may begin with an unknown
  241|       |         * non-critical packet (type IDs 40-63) or a padding packet, which
  242|       |         * are then skipped */
  243|  5.66k|        return ((ptype >= 40) && (ptype <= 63)) || (ptype == PGP_PKT_PADDING);
  ------------------
  |  Branch (243:17): [True: 143, False: 5.52k]
  |  Branch (243:34): [True: 143, False: 0]
  |  Branch (243:52): [True: 14, False: 5.50k]
  ------------------
  244|  11.6k|    }
  245|  11.6k|}
stream-parse.cpp:_ZL20init_packet_sequenceR20pgp_processing_ctx_tR12pgp_source_t:
 2902|  6.58k|{
 2903|  6.58k|    pgp_source_t *lsrc = &src;
 2904|  6.58k|    size_t        srcnum = ctx.sources.size();
 2905|       |
 2906|  13.7k|    while (1) {
  ------------------
  |  Branch (2906:12): [True: 13.7k, Folded]
  ------------------
 2907|  13.7k|        uint8_t ptag = 0;
 2908|  13.7k|        if (!lsrc->peek_eq(&ptag, 1)) {
  ------------------
  |  Branch (2908:13): [True: 1.40k, False: 12.3k]
  ------------------
 2909|  1.40k|            RNP_LOG("cannot read packet tag");
  ------------------
  |  |   84|  1.40k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  1.40k|    do {                                                                                 \
  |  |  |  |   77|  1.40k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 1.40k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  1.40k|            break;                                                                       \
  |  |  |  |   79|  1.40k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2910|  1.40k|            return RNP_ERROR_READ;
 2911|  1.40k|        }
 2912|       |
 2913|  12.3k|        int type = get_packet_type(ptag);
 2914|  12.3k|        if (type < 0) {
  ------------------
  |  Branch (2914:13): [True: 167, False: 12.2k]
  ------------------
 2915|    167|            RNP_LOG("wrong pkt tag %d", (int) ptag);
  ------------------
  |  |   84|    167|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    167|    do {                                                                                 \
  |  |  |  |   77|    167|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 167, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    167|            break;                                                                       \
  |  |  |  |   79|    167|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2916|    167|            return RNP_ERROR_BAD_FORMAT;
 2917|    167|        }
 2918|       |
 2919|  12.2k|        if (ctx.sources.size() - srcnum == MAXIMUM_NESTING_LEVEL) {
  ------------------
  |  |   60|  12.2k|#define MAXIMUM_NESTING_LEVEL 32
  ------------------
  |  Branch (2919:13): [True: 18, False: 12.2k]
  ------------------
 2920|     18|            RNP_LOG("Too many nested OpenPGP packets");
  ------------------
  |  |   84|     18|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     18|    do {                                                                                 \
  |  |  |  |   77|     18|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 18, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     18|            break;                                                                       \
  |  |  |  |   79|     18|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2921|     18|            return RNP_ERROR_BAD_FORMAT;
 2922|     18|        }
 2923|       |
 2924|  12.2k|        pgp_source_t psrc = {};
 2925|  12.2k|        rnp_result_t ret = RNP_ERROR_BAD_FORMAT;
 2926|  12.2k|        switch (type) {
 2927|    522|        case PGP_PKT_PK_SESSION_KEY:
  ------------------
  |  Branch (2927:9): [True: 522, False: 11.6k]
  ------------------
 2928|  3.31k|        case PGP_PKT_SK_SESSION_KEY:
  ------------------
  |  Branch (2928:9): [True: 2.79k, False: 9.41k]
  ------------------
 2929|  3.31k|            ret = init_encrypted_src(&ctx.handler, &psrc, lsrc);
 2930|  3.31k|            break;
 2931|  1.50k|        case PGP_PKT_ONE_PASS_SIG:
  ------------------
  |  Branch (2931:9): [True: 1.50k, False: 10.7k]
  ------------------
 2932|  4.15k|        case PGP_PKT_SIGNATURE:
  ------------------
  |  Branch (2932:9): [True: 2.64k, False: 9.56k]
  ------------------
 2933|  4.15k|            ret = init_signed_src(&ctx.handler, &psrc, lsrc);
 2934|  4.15k|            break;
 2935|  1.95k|        case PGP_PKT_COMPRESSED:
  ------------------
  |  Branch (2935:9): [True: 1.95k, False: 10.2k]
  ------------------
 2936|  1.95k|            ret = init_compressed_src(&psrc, lsrc, &ctx.decomp_left);
 2937|  1.95k|            break;
 2938|  1.20k|        case PGP_PKT_LITDATA:
  ------------------
  |  Branch (2938:9): [True: 1.20k, False: 11.0k]
  ------------------
 2939|  1.20k|            if ((lsrc != &src) && (lsrc->type != PGP_STREAM_ENCRYPTED) &&
  ------------------
  |  Branch (2939:17): [True: 1.03k, False: 164]
  |  Branch (2939:35): [True: 1.01k, False: 25]
  ------------------
 2940|  1.01k|                (lsrc->type != PGP_STREAM_SIGNED) && (lsrc->type != PGP_STREAM_COMPRESSED)) {
  ------------------
  |  Branch (2940:17): [True: 44, False: 967]
  |  Branch (2940:54): [True: 0, False: 44]
  ------------------
 2941|      0|                RNP_LOG("unexpected literal pkt");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2942|      0|                ret = RNP_ERROR_BAD_FORMAT;
 2943|      0|                break;
 2944|      0|            }
 2945|  1.20k|            ret = init_literal_src(&psrc, lsrc);
 2946|  1.20k|            break;
 2947|    196|        case PGP_PKT_MARKER:
  ------------------
  |  Branch (2947:9): [True: 196, False: 12.0k]
  ------------------
 2948|    196|            if (ctx.sources.size() != srcnum) {
  ------------------
  |  Branch (2948:17): [True: 86, False: 110]
  ------------------
 2949|     86|                RNP_LOG("Warning: marker packet wrapped in pgp stream.");
  ------------------
  |  |   84|     86|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     86|    do {                                                                                 \
  |  |  |  |   77|     86|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 86, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     86|            break;                                                                       \
  |  |  |  |   79|     86|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2950|     86|            }
 2951|    196|            ret = stream_parse_marker(*lsrc);
 2952|    196|            if (ret) {
  ------------------
  |  Branch (2952:17): [True: 64, False: 132]
  ------------------
 2953|     64|                RNP_LOG("Invalid marker packet");
  ------------------
  |  |   84|     64|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     64|    do {                                                                                 \
  |  |  |  |   77|     64|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 64, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     64|            break;                                                                       \
  |  |  |  |   79|     64|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2954|     64|                return ret;
 2955|     64|            }
 2956|    132|            continue;
 2957|  1.38k|        default:
  ------------------
  |  Branch (2957:9): [True: 1.38k, False: 10.8k]
  ------------------
 2958|       |            /* RFC 9580, 4.3: packets with type IDs 40-63 are non-critical and unknown
 2959|       |             * ones must be ignored. This also covers padding packets (5.14). */
 2960|  1.38k|            if (((type >= 40) && (type <= 63)) || (type == PGP_PKT_PADDING)) {
  ------------------
  |  Branch (2960:18): [True: 992, False: 394]
  |  Branch (2960:34): [True: 992, False: 0]
  |  Branch (2960:51): [True: 36, False: 358]
  ------------------
 2961|  1.02k|                if (stream_skip_packet(lsrc)) {
  ------------------
  |  Branch (2961:21): [True: 110, False: 918]
  ------------------
 2962|    110|                    RNP_LOG("failed to skip packet");
  ------------------
  |  |   84|    110|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    110|    do {                                                                                 \
  |  |  |  |   77|    110|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 110, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    110|            break;                                                                       \
  |  |  |  |   79|    110|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2963|    110|                    ret = RNP_ERROR_READ;
 2964|    918|                } else {
 2965|    918|                    if (type == PGP_PKT_PADDING) {
  ------------------
  |  Branch (2965:25): [True: 31, False: 887]
  ------------------
 2966|       |                        /* RFC 9580, 5.14: the padding packet is the last
 2967|       |                         * packet of an Optionally Padded Message, so the
 2968|       |                         * packet sequence ends here */
 2969|     31|                        if (!ctx.sources.empty()) {
  ------------------
  |  Branch (2969:29): [True: 1, False: 30]
  ------------------
 2970|      1|                            return RNP_SUCCESS;
 2971|      1|                        }
 2972|     31|                    }
 2973|    917|                    continue;
 2974|    918|                }
 2975|    110|                break;
 2976|  1.02k|            }
 2977|    358|            RNP_LOG("unexpected pkt %d", type);
  ------------------
  |  |   84|    358|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    358|    do {                                                                                 \
  |  |  |  |   77|    358|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 358, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    358|            break;                                                                       \
  |  |  |  |   79|    358|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2978|    358|            ret = RNP_ERROR_BAD_FORMAT;
 2979|  12.2k|        }
 2980|       |
 2981|  11.0k|        if (ret) {
  ------------------
  |  Branch (2981:13): [True: 3.81k, False: 7.28k]
  ------------------
 2982|  3.81k|            return ret;
 2983|  3.81k|        }
 2984|       |
 2985|  7.28k|        try {
 2986|  7.28k|            ctx.sources.push_back(psrc);
 2987|  7.28k|            lsrc = &ctx.sources.back();
 2988|  7.28k|        } catch (const std::exception &e) {
 2989|       |            /* LCOV_EXCL_START */
 2990|      0|            psrc.close();
 2991|      0|            RNP_LOG("%s", e.what());
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2992|      0|            return RNP_ERROR_OUT_OF_MEMORY;
 2993|       |            /* LCOV_EXCL_END */
 2994|      0|        }
 2995|       |
 2996|  7.28k|        if (lsrc->type == PGP_STREAM_LITERAL) {
  ------------------
  |  Branch (2996:13): [True: 1.08k, False: 6.20k]
  ------------------
 2997|  1.08k|            ctx.literal_src = lsrc;
 2998|  1.08k|            ctx.msg_type = PGP_MESSAGE_NORMAL;
 2999|  1.08k|            return RNP_SUCCESS;
 3000|  1.08k|        }
 3001|  6.20k|        if (lsrc->type == PGP_STREAM_SIGNED) {
  ------------------
  |  Branch (3001:13): [True: 3.17k, False: 3.02k]
  ------------------
 3002|  3.17k|            ctx.signed_src = lsrc;
 3003|  3.17k|            pgp_source_signed_param_t *param = (pgp_source_signed_param_t *) lsrc->param;
 3004|  3.17k|            if (param->detached) {
  ------------------
  |  Branch (3004:17): [True: 34, False: 3.14k]
  ------------------
 3005|     34|                ctx.msg_type = PGP_MESSAGE_DETACHED;
 3006|     34|                return RNP_SUCCESS;
 3007|     34|            }
 3008|  3.17k|        }
 3009|  6.20k|    }
 3010|  6.58k|}
stream-parse.cpp:_ZL18init_encrypted_srcP19pgp_parse_handler_tP12pgp_source_tS2_:
 2473|  3.31k|{
 2474|  3.31k|    bool pub_decrypt_tried = false;
 2475|  3.31k|    if (!init_src_common(src, 0)) {
  ------------------
  |  Branch (2475:9): [True: 0, False: 3.31k]
  ------------------
 2476|      0|        return RNP_ERROR_OUT_OF_MEMORY; // LCOV_EXCL_LINE
 2477|      0|    }
 2478|  3.31k|    pgp_source_encrypted_param_t *param = new (std::nothrow) pgp_source_encrypted_param_t();
 2479|  3.31k|    if (!param) {
  ------------------
  |  Branch (2479:9): [True: 0, False: 3.31k]
  ------------------
 2480|      0|        return RNP_ERROR_OUT_OF_MEMORY; // LCOV_EXCL_LINE
 2481|      0|    }
 2482|  3.31k|    src->param = param;
 2483|  3.31k|    param->pkt.readsrc = readsrc;
 2484|  3.31k|    param->handler = handler;
 2485|       |
 2486|  3.31k|    src->raw_close = encrypted_src_close;
 2487|  3.31k|    src->raw_finish = encrypted_src_finish;
 2488|  3.31k|    src->type = PGP_STREAM_ENCRYPTED;
 2489|       |
 2490|       |    /* Read the packet-related information */
 2491|  3.31k|    rnp_result_t errcode = encrypted_read_packet_data(param);
 2492|  3.31k|    if (errcode) {
  ------------------
  |  Branch (2492:9): [True: 914, False: 2.40k]
  ------------------
 2493|    914|        goto finish;
 2494|    914|    }
 2495|       |
 2496|  2.40k|    src->raw_read = (!param->use_cfb()
  ------------------
  |  Branch (2496:22): [True: 1.11k, False: 1.28k]
  ------------------
 2497|  1.28k|#ifdef ENABLE_CRYPTO_REFRESH
 2498|  1.28k|                     || param->is_v2_seipd()
  ------------------
  |  Branch (2498:25): [True: 0, False: 1.28k]
  ------------------
 2499|  2.40k|#endif
 2500|  2.40k|                       ) ?
 2501|  1.11k|                      encrypted_src_read_aead :
 2502|  2.40k|                      encrypted_src_read_cfb;
 2503|       |
 2504|       |    /* Obtaining the symmetric key */
 2505|  2.40k|    if (!handler->password_provider) {
  ------------------
  |  Branch (2505:9): [True: 0, False: 2.40k]
  ------------------
 2506|       |        /* LCOV_EXCL_START */
 2507|      0|        RNP_LOG("no password provider");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2508|      0|        errcode = RNP_ERROR_BAD_PARAMETERS;
 2509|      0|        goto finish;
 2510|       |        /* LCOV_EXCL_END */
 2511|      0|    }
 2512|       |
 2513|       |    /* informing handler about the available pubencs/symencs */
 2514|  2.40k|    if (handler->on_recipients) {
  ------------------
  |  Branch (2514:9): [True: 2.40k, False: 0]
  ------------------
 2515|  2.40k|        handler->on_recipients(param->pubencs, param->symencs, handler->param);
 2516|  2.40k|    }
 2517|       |
 2518|       |    /* RFC 9580, 5.7: Symmetrically Encrypted Data packet is obsolete and malleable, so it
 2519|       |     * should be rejected. Do this before any session key decryption so no data is output.
 2520|       |     * Report the container first. The cipher is not known yet, and integrity is not
 2521|       |     * validated: on_decryption_done is intentionally not called. Allowed SED still reports
 2522|       |     * once, later, after the real cipher is known. */
 2523|  2.40k|    if ((param->auth_type == rnp::AuthType::None) &&
  ------------------
  |  Branch (2523:9): [True: 10, False: 2.39k]
  ------------------
 2524|     10|        (!handler->ctx || !handler->ctx->allow_unprotected)) {
  ------------------
  |  Branch (2524:10): [True: 0, False: 10]
  |  Branch (2524:27): [True: 10, False: 0]
  ------------------
 2525|     10|        RNP_LOG("Refusing to decrypt Symmetrically Encrypted Data packet without integrity "
  ------------------
  |  |   84|     10|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     10|    do {                                                                                 \
  |  |  |  |   77|     10|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 10, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     10|            break;                                                                       \
  |  |  |  |   79|     10|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2526|     10|                "protection (allow it explicitly to override).");
 2527|     10|        if (handler->on_decryption_info) {
  ------------------
  |  Branch (2527:13): [True: 10, False: 0]
  ------------------
 2528|     10|            handler->on_decryption_info(false, PGP_AEAD_NONE, PGP_SA_UNKNOWN, handler->param);
 2529|     10|        }
 2530|     10|        errcode = RNP_ERROR_DECRYPT_FAILED;
 2531|     10|        goto finish;
 2532|     10|    }
 2533|       |
 2534|  2.39k|    bool have_key;
 2535|  2.39k|    have_key = false;
 2536|       |    /* Trying public-key decryption */
 2537|  2.39k|    if (!param->pubencs.empty()) {
  ------------------
  |  Branch (2537:9): [True: 39, False: 2.35k]
  ------------------
 2538|     39|        if (!handler->key_provider) {
  ------------------
  |  Branch (2538:13): [True: 0, False: 39]
  ------------------
 2539|       |            /* LCOV_EXCL_START */
 2540|      0|            RNP_LOG("no key provider");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2541|      0|            errcode = RNP_ERROR_BAD_PARAMETERS;
 2542|      0|            goto finish;
 2543|       |            /* LCOV_EXCL_END */
 2544|      0|        }
 2545|       |
 2546|     39|        size_t pubidx = 0;
 2547|     39|        size_t hidden_tries = 0;
 2548|     39|        errcode = RNP_ERROR_NO_SUITABLE_KEY;
 2549|    878|        while (pubidx < param->pubencs.size()) {
  ------------------
  |  Branch (2549:16): [True: 839, False: 39]
  ------------------
 2550|    839|            auto &                          pubenc = param->pubencs[pubidx];
 2551|    839|            std::unique_ptr<rnp::KeySearch> search;
 2552|    839|#if defined(ENABLE_CRYPTO_REFRESH)
 2553|    839|            if (pubenc.version == PGP_PKSK_V3) {
  ------------------
  |  Branch (2553:17): [True: 314, False: 525]
  ------------------
 2554|    314|#endif
 2555|    314|                search = rnp::KeySearch::create(pubenc.key_id);
 2556|    314|#if defined(ENABLE_CRYPTO_REFRESH)
 2557|    525|            } else if (!pubenc.fp.size()) {
  ------------------
  |  Branch (2557:24): [True: 515, False: 10]
  ------------------
 2558|       |                /* Anonymous v6 PKESK (RFC 9580 §5.1.8): no fingerprint was
 2559|       |                 * stored. Reuse the wildcard Key ID search so every secret
 2560|       |                 * key is tried, under the same hidden-recipient gate as a v3
 2561|       |                 * all-zero Key ID. */
 2562|    515|                search = rnp::KeySearch::create(pgp::KeyID({}));
 2563|    515|            } else { // PGP_PKSK_V6
 2564|     10|                search = rnp::KeySearch::create(pubenc.fp);
 2565|     10|            }
 2566|    839|#endif
 2567|       |
 2568|       |            /* Get the key if any */
 2569|    839|            auto seckey = handler->key_provider->request_key(*search, PGP_OP_DECRYPT, true);
 2570|    839|            if (!seckey) {
  ------------------
  |  Branch (2570:17): [True: 839, False: 0]
  ------------------
 2571|    839|                pubidx++;
 2572|    839|                hidden_tries = 0;
 2573|    839|                continue;
 2574|    839|            }
 2575|       |            /* Check whether key fits our needs */
 2576|      0|            bool hidden;
 2577|      0|#if defined(ENABLE_CRYPTO_REFRESH)
 2578|      0|            if (pubenc.version == PGP_PKSK_V3) {
  ------------------
  |  Branch (2578:17): [True: 0, False: 0]
  ------------------
 2579|      0|#endif
 2580|      0|                hidden = (pubenc.key_id == pgp::KeyID({}));
 2581|      0|#if defined(ENABLE_CRYPTO_REFRESH)
 2582|      0|            } else { // PGP_PKSK_V6
 2583|      0|                hidden = !pubenc.fp.size();
 2584|      0|            }
 2585|      0|#endif
 2586|      0|            if (!hidden || (++hidden_tries >= MAX_HIDDEN_TRIES)) {
  ------------------
  |  | 2465|      0|#define MAX_HIDDEN_TRIES 64
  ------------------
  |  Branch (2586:17): [True: 0, False: 0]
  |  Branch (2586:28): [True: 0, False: 0]
  ------------------
 2587|      0|                pubidx++;
 2588|      0|            }
 2589|      0|            if (!seckey->has_secret() || !seckey->can_encrypt()) {
  ------------------
  |  Branch (2589:17): [True: 0, False: 0]
  |  Branch (2589:42): [True: 0, False: 0]
  ------------------
 2590|      0|                continue;
 2591|      0|            }
 2592|       |            /* Check whether key is of required algorithm for hidden keyid */
 2593|      0|            if (hidden && seckey->alg() != pubenc.alg) {
  ------------------
  |  Branch (2593:17): [True: 0, False: 0]
  |  Branch (2593:27): [True: 0, False: 0]
  ------------------
 2594|      0|                continue;
 2595|      0|            }
 2596|       |            /* Decrypt key */
 2597|      0|            rnp::KeyLocker seclock(*seckey);
 2598|      0|            if (!seckey->unlock(*handler->password_provider, PGP_OP_DECRYPT)) {
  ------------------
  |  Branch (2598:17): [True: 0, False: 0]
  ------------------
 2599|      0|                errcode = RNP_ERROR_BAD_PASSWORD;
 2600|      0|                continue;
 2601|      0|            }
 2602|       |
 2603|       |            /* Try to initialize the decryption */
 2604|      0|            rnp::LogStop logstop(hidden);
 2605|      0|            pub_decrypt_tried = true;
 2606|      0|            if (encrypted_try_key(param, pubenc, *seckey, handler->ctx->sec_ctx)) {
  ------------------
  |  Branch (2606:17): [True: 0, False: 0]
  ------------------
 2607|      0|                have_key = true;
 2608|       |                /* inform handler that we used this pubenc */
 2609|      0|                if (handler->on_decryption_start) {
  ------------------
  |  Branch (2609:21): [True: 0, False: 0]
  ------------------
 2610|      0|                    handler->on_decryption_start(&pubenc, NULL, handler->param);
 2611|      0|                }
 2612|      0|                break;
 2613|      0|            }
 2614|      0|        }
 2615|     39|    }
 2616|       |
 2617|       |    /* Trying password-based decryption */
 2618|  2.39k|    if (!have_key && !param->symencs.empty()) {
  ------------------
  |  Branch (2618:9): [True: 2.39k, False: 0]
  |  Branch (2618:22): [True: 2.36k, False: 29]
  ------------------
 2619|  2.36k|        rnp::secure_array<char, MAX_PASSWORD_LENGTH> password;
 2620|  2.36k|        pgp_password_ctx_t                           pass_ctx(PGP_OP_DECRYPT_SYM);
 2621|  2.36k|        int                                          attempts = RNP_PASSWORD_MAX_ATTEMPTS;
  ------------------
  |  | 2469|  2.36k|#define RNP_PASSWORD_MAX_ATTEMPTS 3
  ------------------
 2622|       |
 2623|  4.66k|        while (attempts--) {
  ------------------
  |  Branch (2623:16): [True: 3.90k, False: 767]
  ------------------
 2624|  3.90k|            if (!pgp_request_password(
  ------------------
  |  Branch (2624:17): [True: 10, False: 3.89k]
  ------------------
 2625|  3.90k|                  handler->password_provider, &pass_ctx, password.data(), password.size())) {
 2626|     10|                errcode = RNP_ERROR_BAD_PASSWORD;
 2627|     10|                goto finish;
 2628|     10|            }
 2629|       |
 2630|  3.89k|            int intres = encrypted_try_password(param, password.data());
 2631|  3.89k|            if (intres > 0) {
  ------------------
  |  Branch (2631:17): [True: 1.18k, False: 2.70k]
  ------------------
 2632|  1.18k|                have_key = true;
 2633|  1.18k|                break;
 2634|  2.70k|            } else if (intres < 0) {
  ------------------
  |  Branch (2634:24): [True: 407, False: 2.30k]
  ------------------
 2635|    407|                errcode = RNP_ERROR_NOT_SUPPORTED;
 2636|    407|                break;
 2637|  2.30k|            } else {
 2638|  2.30k|                errcode = RNP_ERROR_BAD_PASSWORD;
 2639|  2.30k|            }
 2640|  3.89k|        }
 2641|  2.36k|    }
 2642|       |
 2643|       |    /* report decryption start to the handler */
 2644|  2.38k|    if (handler->on_decryption_info) {
  ------------------
  |  Branch (2644:9): [True: 2.38k, False: 0]
  ------------------
 2645|  2.38k|        handler->on_decryption_info(param->auth_type == rnp::AuthType::MDC,
 2646|  2.38k|                                    param->aead_hdr.aalg,
 2647|  2.38k|                                    param->salg,
 2648|  2.38k|                                    handler->param);
 2649|  2.38k|    }
 2650|       |
 2651|  2.38k|    if (!have_key) {
  ------------------
  |  Branch (2651:9): [True: 1.20k, False: 1.18k]
  ------------------
 2652|  1.20k|        RNP_LOG("failed to obtain decrypting key or password");
  ------------------
  |  |   84|  1.20k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  1.20k|    do {                                                                                 \
  |  |  |  |   77|  1.20k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 1.20k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  1.20k|            break;                                                                       \
  |  |  |  |   79|  1.20k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2653|  1.20k|        if (pub_decrypt_tried && (errcode == RNP_ERROR_NO_SUITABLE_KEY)) {
  ------------------
  |  Branch (2653:13): [True: 0, False: 1.20k]
  |  Branch (2653:34): [True: 0, False: 0]
  ------------------
 2654|       |            /* A suitable key was found but its session-key decryption failed: report that
 2655|       |             * instead of the misleading "no suitable key" (issue #2465). */
 2656|      0|            errcode = RNP_ERROR_DECRYPT_FAILED;
 2657|      0|        }
 2658|  1.20k|        if (!errcode) {
  ------------------
  |  Branch (2658:13): [True: 7, False: 1.19k]
  ------------------
 2659|      7|            errcode = RNP_ERROR_NO_SUITABLE_KEY;
 2660|      7|        }
 2661|  1.20k|        goto finish;
 2662|  1.20k|    }
 2663|  1.18k|    errcode = RNP_SUCCESS;
 2664|  3.31k|finish:
 2665|  3.31k|    if (errcode != RNP_SUCCESS) {
  ------------------
  |  Branch (2665:9): [True: 2.13k, False: 1.18k]
  ------------------
 2666|  2.13k|        src->close();
 2667|  2.13k|    }
 2668|  3.31k|    return errcode;
 2669|  1.18k|}
_ZN28pgp_source_encrypted_param_tC2Ev:
  121|  3.31k|    pgp_source_encrypted_param_t() : auth_type(rnp::AuthType::None), salg(PGP_SA_UNKNOWN)
  122|  3.31k|    {
  123|  3.31k|    }
stream-parse.cpp:_ZL19encrypted_src_closeP12pgp_source_t:
  983|  3.31k|{
  984|  3.31k|    pgp_source_encrypted_param_t *param = (pgp_source_encrypted_param_t *) src->param;
  985|  3.31k|    if (!param) {
  ------------------
  |  Branch (985:9): [True: 0, False: 3.31k]
  ------------------
  986|      0|        return;
  987|      0|    }
  988|  3.31k|    if (param->pkt.hdr.partial) {
  ------------------
  |  Branch (988:9): [True: 285, False: 3.03k]
  ------------------
  989|    285|        param->pkt.readsrc->close();
  990|    285|        free(param->pkt.readsrc);
  991|    285|        param->pkt.readsrc = NULL;
  992|    285|    }
  993|       |
  994|  3.31k|    if (!param->use_cfb()) {
  ------------------
  |  Branch (994:9): [True: 1.15k, False: 2.16k]
  ------------------
  995|  1.15k|#if defined(ENABLE_AEAD)
  996|  1.15k|        pgp_cipher_aead_destroy(&param->decrypt);
  997|  1.15k|#endif
  998|  2.16k|    } else {
  999|  2.16k|        pgp_cipher_cfb_finish(&param->decrypt);
 1000|  2.16k|    }
 1001|       |
 1002|  3.31k|    delete param;
 1003|       |    src->param = NULL;
 1004|  3.31k|}
stream-parse.cpp:_ZL20encrypted_src_finishP12pgp_source_t:
  938|      1|{
  939|      1|    pgp_source_encrypted_param_t *param = (pgp_source_encrypted_param_t *) src->param;
  940|       |
  941|       |    /* report to the handler that decryption is finished */
  942|      1|    if (param->handler->on_decryption_done) {
  ------------------
  |  Branch (942:9): [True: 1, False: 0]
  ------------------
  943|      1|        bool validated = (param->auth_type != rnp::AuthType::None) && param->auth_validated;
  ------------------
  |  Branch (943:26): [True: 1, False: 0]
  |  Branch (943:71): [True: 0, False: 1]
  ------------------
  944|      1|        param->handler->on_decryption_done(validated, param->handler->param);
  945|      1|    }
  946|       |
  947|      1|#if defined(ENABLE_AEAD)
  948|      1|    if (!param->auth_validated && (param->auth_type == rnp::AuthType::AEADv1
  ------------------
  |  Branch (948:9): [True: 1, False: 0]
  |  Branch (948:36): [True: 0, False: 1]
  ------------------
  949|      1|#if defined(ENABLE_CRYPTO_REFRESH)
  950|      1|                                   || param->auth_type == rnp::AuthType::AEADv2
  ------------------
  |  Branch (950:39): [True: 0, False: 1]
  ------------------
  951|      1|#endif
  952|      1|                                   )) {
  953|       |        /* The message may end with a Padding packet, which ends the
  954|       |         * Optionally Padded Message: no reader then pulls the final AEAD
  955|       |         * chunk and its summary tag, leaving the auth unvalidated even for
  956|       |         * an intact message. Drain the remaining framing here. */
  957|      0|        while (!param->auth_validated) {
  ------------------
  |  Branch (957:16): [True: 0, False: 0]
  ------------------
  958|      0|            if (!encrypted_src_read_aead_part(param)) {
  ------------------
  |  Branch (958:17): [True: 0, False: 0]
  ------------------
  959|      0|                break;
  960|      0|            }
  961|      0|        }
  962|      0|    }
  963|      1|#endif
  964|      1|    if ((param->auth_type == rnp::AuthType::None) || param->auth_validated) {
  ------------------
  |  Branch (964:9): [True: 0, False: 1]
  |  Branch (964:54): [True: 0, False: 1]
  ------------------
  965|      0|        return RNP_SUCCESS;
  966|      0|    }
  967|      1|    switch (param->auth_type) {
  968|      1|    case rnp::AuthType::MDC:
  ------------------
  |  Branch (968:5): [True: 1, False: 0]
  ------------------
  969|      1|        RNP_LOG("mdc was not validated");
  ------------------
  |  |   84|      1|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      1|    do {                                                                                 \
  |  |  |  |   77|      1|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 1, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      1|            break;                                                                       \
  |  |  |  |   79|      1|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  970|      1|        break;
  971|      0|    case rnp::AuthType::AEADv1:
  ------------------
  |  Branch (971:5): [True: 0, False: 1]
  ------------------
  972|      0|        RNP_LOG("aead last chunk was not validated");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  973|      0|        break;
  974|      0|    default:
  ------------------
  |  Branch (974:5): [True: 0, False: 1]
  ------------------
  975|      0|        RNP_LOG("auth was not validated");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  976|      0|        break;
  977|      1|    }
  978|      1|    return RNP_ERROR_BAD_STATE;
  979|      1|}
stream-parse.cpp:_ZL28encrypted_src_read_aead_partP28pgp_source_encrypted_param_t:
  617|    983|{
  618|    983|    param->cachepos = 0;
  619|    983|    param->cachelen = 0;
  620|       |
  621|       |    /* Hand back the next batch of already-verified plaintext. */
  622|    983|    if (param->chunk_verified && param->chunk_bufpos < param->chunk_buflen) {
  ------------------
  |  Branch (622:9): [True: 0, False: 983]
  |  Branch (622:34): [True: 0, False: 0]
  ------------------
  623|      0|        size_t to_copy = param->chunk_buflen - param->chunk_bufpos;
  624|      0|        if (to_copy > sizeof(param->cache)) {
  ------------------
  |  Branch (624:13): [True: 0, False: 0]
  ------------------
  625|      0|            to_copy = sizeof(param->cache);
  626|      0|        }
  627|      0|        memcpy(param->cache, param->chunk_buf.data() + param->chunk_bufpos, to_copy);
  628|      0|        param->cachelen = to_copy;
  629|      0|        param->chunk_bufpos += to_copy;
  630|      0|        return true;
  631|      0|    }
  632|       |
  633|    983|    if (param->auth_validated) {
  ------------------
  |  Branch (633:9): [True: 0, False: 983]
  ------------------
  634|      0|        return true;
  635|      0|    }
  636|       |
  637|       |    /* Previous chunk fully drained: re-arm the accumulator for the next chunk.
  638|       |     * The next chunk is not decrypted until this point, so verified plaintext
  639|       |     * is never overwritten before the reader has consumed it. */
  640|    983|    if (param->chunk_verified) {
  ------------------
  |  Branch (640:9): [True: 0, False: 983]
  ------------------
  641|      0|        param->chunk_verified = false;
  642|      0|        param->chunk_buflen = 0;
  643|      0|        param->chunk_bufpos = 0;
  644|      0|    }
  645|       |
  646|       |    /* Un-decrypted remainder from the previous call is kept at the front of
  647|       |     * cache (the intermediate path compacts it), so no shift is needed here. */
  648|       |
  649|       |    /* it is always 16 for defined EAX and OCB, however this may change in future */
  650|    983|    size_t taglen = pgp_cipher_aead_tag_len(param->aead_hdr.aalg);
  651|       |
  652|       |    /* Withheld plaintext must not surface as a zero-length read: the caller
  653|       |     * (src_read_aead) treats a successful part-read with cachelen == 0 as end
  654|       |     * of data. Keep consuming input until a whole chunk is verified and can
  655|       |     * be released (or the stream ends). */
  656|  1.39k|    for (;;) {
  657|  1.39k|        size_t read = sizeof(param->cache) - 2 * PGP_AEAD_MAX_TAG_LEN - param->rawbytes;
  ------------------
  |  |   86|  1.39k|#define PGP_AEAD_MAX_TAG_LEN 16
  ------------------
  658|  1.39k|        bool   chunkend = false;
  659|       |
  660|  1.39k|        if (read >= param->chunklen - param->chunkin) {
  ------------------
  |  Branch (660:13): [True: 221, False: 1.17k]
  ------------------
  661|       |            /* param->rawbytes is smaller then param->chunklen - param->chunkin due to the
  662|       |             * previous call */
  663|    221|            read = param->chunklen - param->chunkin - param->rawbytes;
  664|    221|            chunkend = true;
  665|  1.17k|        } else {
  666|  1.17k|            read =
  667|  1.17k|              read - (read + param->rawbytes) % pgp_cipher_aead_granularity(&param->decrypt);
  668|  1.17k|        }
  669|       |
  670|  1.39k|        if (!param->pkt.readsrc->read(param->cache + param->rawbytes, read, &read)) {
  ------------------
  |  Branch (670:13): [True: 0, False: 1.39k]
  ------------------
  671|      0|            return false;
  672|      0|        }
  673|       |
  674|       |        /* checking whether we have enough input for the final tags */
  675|  1.39k|        size_t tagread = 0;
  676|  1.39k|        if (!param->pkt.readsrc->peek(
  ------------------
  |  Branch (676:13): [True: 0, False: 1.39k]
  ------------------
  677|  1.39k|              param->cache + param->rawbytes + read, taglen * 2, &tagread)) {
  678|      0|            return false;
  679|      0|        }
  680|       |
  681|  1.39k|        bool   lastchunk = false;
  682|  1.39k|        size_t avail = param->rawbytes + read + tagread;
  683|  1.39k|        if (tagread < taglen * 2) {
  ------------------
  |  Branch (683:13): [True: 973, False: 418]
  ------------------
  684|       |            /* this would mean the end of the stream */
  685|    973|            if ((param->chunkin == 0) && (avail == taglen)) {
  ------------------
  |  Branch (685:17): [True: 917, False: 56]
  |  Branch (685:42): [True: 34, False: 883]
  ------------------
  686|       |                /* we have empty chunk and final tag */
  687|     34|                chunkend = false;
  688|     34|                lastchunk = true;
  689|    939|            } else if (avail >= 2 * taglen) {
  ------------------
  |  Branch (689:24): [True: 814, False: 125]
  ------------------
  690|       |                /* we have end of chunk and final tag */
  691|    814|                chunkend = true;
  692|    814|                lastchunk = true;
  693|    814|            } else {
  694|    125|                RNP_LOG("unexpected end of data");
  ------------------
  |  |   84|    125|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    125|    do {                                                                                 \
  |  |  |  |   77|    125|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 125, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    125|            break;                                                                       \
  |  |  |  |   79|    125|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  695|    125|                return false;
  696|    125|            }
  697|    973|        } else if (chunkend && (tagread == taglen * 2)) {
  ------------------
  |  Branch (697:20): [True: 10, False: 408]
  |  Branch (697:32): [True: 10, False: 0]
  ------------------
  698|       |            /* A chunk boundary with exactly two tags ahead is ambiguous: it
  699|       |             * may be the end of the stream - the plaintext can end exactly at
  700|       |             * the chunk boundary, e.g. when a Padding packet fills the length
  701|       |             * bucket - or a following chunk with exactly taglen bytes of data
  702|       |             * peeked. Probe one byte beyond the tags: the stream end has
  703|       |             * nothing there, a following chunk always has data. Without this
  704|       |             * the final chunk would be treated as non-final and the summary
  705|       |             * tag validation left to a reader which stops at the Padding
  706|       |             * packet. */
  707|     10|            uint8_t probeb = 0;
  708|     10|            size_t  more = 0;
  709|     10|            if (!param->pkt.readsrc->peek(&probeb, 1, &more)) {
  ------------------
  |  Branch (709:17): [True: 0, False: 10]
  ------------------
  710|      0|                return false;
  711|      0|            }
  712|     10|            lastchunk = (more == 0);
  713|     10|        }
  714|       |
  715|  1.26k|        if (!chunkend && !lastchunk) {
  ------------------
  |  Branch (715:13): [True: 442, False: 824]
  |  Branch (715:26): [True: 408, False: 34]
  ------------------
  716|    408|            size_t used = 0;
  717|    408|            bool   res = pgp_cipher_aead_update(
  718|    408|              param->decrypt, param->cache, param->cache, param->rawbytes + read, used);
  719|       |
  720|    408|            param->chunkin += used;
  721|    408|            if (res) {
  ------------------
  |  Branch (721:17): [True: 408, False: 0]
  ------------------
  722|       |                /* Withhold plaintext until the chunk tag is verified: accumulate
  723|       |                 * it in chunk_buf instead of exposing it via cachelen. */
  724|    408|                encrypted_chunk_buf_append(param, param->cache, used);
  725|    408|                param->rawbytes = param->rawbytes + read - used;
  726|       |                /* Compact the un-decrypted remainder to the front of cache. */
  727|    408|                if (used > 0 && param->rawbytes > 0) {
  ------------------
  |  Branch (727:21): [True: 408, False: 0]
  |  Branch (727:33): [True: 0, False: 408]
  ------------------
  728|      0|                    memmove(param->cache, param->cache + used, param->rawbytes);
  729|      0|                }
  730|    408|            }
  731|    408|            if (!res) {
  ------------------
  |  Branch (731:17): [True: 0, False: 408]
  ------------------
  732|      0|                return false;
  733|      0|            }
  734|       |            /* Plaintext withheld until the chunk completes: read more input. */
  735|    408|            continue;
  736|    408|        }
  737|       |
  738|       |        /* Processing end of chunk */
  739|    858|        if (chunkend) {
  ------------------
  |  Branch (739:13): [True: 824, False: 34]
  ------------------
  740|    824|            if (tagread > taglen) {
  ------------------
  |  Branch (740:17): [True: 25, False: 799]
  ------------------
  741|     25|                param->pkt.readsrc->skip(tagread - taglen);
  742|     25|            }
  743|       |
  744|    824|            size_t finlen = param->rawbytes + read + tagread - taglen;
  745|    824|            if (!pgp_cipher_aead_finish(&param->decrypt, param->cache, param->cache, finlen)) {
  ------------------
  |  Branch (745:17): [True: 824, False: 0]
  ------------------
  746|    824|                RNP_LOG("failed to finalize aead chunk");
  ------------------
  |  |   84|    824|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    824|    do {                                                                                 \
  |  |  |  |   77|    824|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 824, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    824|            break;                                                                       \
  |  |  |  |   79|    824|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  747|       |                /* Zero unverified plaintext — tag verification failed. */
  748|    824|                if (!param->chunk_buf.empty() && param->chunk_buflen > 0) {
  ------------------
  |  Branch (748:21): [True: 56, False: 768]
  |  Branch (748:50): [True: 56, False: 0]
  ------------------
  749|     56|                    secure_clear(param->chunk_buf.data(), param->chunk_buflen);
  750|     56|                }
  751|    824|                param->chunk_buflen = 0;
  752|    824|                param->chunk_verified = false;
  753|    824|                return false;
  754|    824|            }
  755|       |            /* Chunk tag verified: the whole chunk's plaintext is authenticated.
  756|       |             * Append the final piece (now in cache[0..final_used]) to whatever the
  757|       |             * intermediate reads accumulated. Do NOT copy chunk_buf back into cache
  758|       |             * here: the last-chunk finish() below still needs the summary tag that
  759|       |             * sits right after this piece in cache. */
  760|      0|            size_t final_used = finlen - taglen;
  761|      0|            param->chunkin += final_used;
  762|      0|            encrypted_chunk_buf_append(param, param->cache, final_used);
  763|      0|            param->rawbytes = 0;
  764|      0|            param->chunk_verified = true;
  765|      0|            param->chunk_bufpos = 0;
  766|      0|        }
  767|       |
  768|       |        /* Starting a new chunk (cipher only; its plaintext is held back until the
  769|       |         * reader drains the current chunk_buf). */
  770|     34|        size_t chunkidx = param->chunkidx;
  771|     34|        if (chunkend && param->chunkin) {
  ------------------
  |  Branch (771:13): [True: 0, False: 34]
  |  Branch (771:25): [True: 0, False: 0]
  ------------------
  772|      0|            chunkidx++;
  773|      0|        }
  774|       |
  775|     34|        if (!encrypted_start_aead_chunk(param, chunkidx, lastchunk)) {
  ------------------
  |  Branch (775:13): [True: 0, False: 34]
  ------------------
  776|      0|            RNP_LOG("failed to start aead chunk");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  777|      0|            return false;
  778|      0|        }
  779|       |
  780|     34|        if (lastchunk) {
  ------------------
  |  Branch (780:13): [True: 34, False: 0]
  ------------------
  781|       |            /* Verify the summary tag. It sits at offset (avail - taglen) in cache
  782|       |             * in both the chunkend and empty-final-chunk cases, because the chunk
  783|       |             * finish() above left the peeked tag region untouched. */
  784|     34|            if (tagread > 0) {
  ------------------
  |  Branch (784:17): [True: 0, False: 34]
  ------------------
  785|      0|                param->pkt.readsrc->skip(tagread);
  786|      0|            }
  787|     34|            size_t off = avail - taglen;
  788|     34|            if (!pgp_cipher_aead_finish(
  ------------------
  |  Branch (788:17): [True: 34, False: 0]
  ------------------
  789|     34|                  &param->decrypt, param->cache + off, param->cache + off, taglen)) {
  790|     34|                RNP_LOG("wrong last chunk");
  ------------------
  |  |   84|     34|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     34|    do {                                                                                 \
  |  |  |  |   77|     34|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 34, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     34|            break;                                                                       \
  |  |  |  |   79|     34|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  791|     34|                if (!param->chunk_buf.empty() && param->chunk_buflen > 0) {
  ------------------
  |  Branch (791:21): [True: 0, False: 34]
  |  Branch (791:50): [True: 0, False: 0]
  ------------------
  792|      0|                    secure_clear(param->chunk_buf.data(), param->chunk_buflen);
  793|      0|                }
  794|     34|                param->chunk_buflen = 0;
  795|     34|                param->chunk_verified = false;
  796|     34|                return false;
  797|     34|            }
  798|      0|            param->auth_validated = true;
  799|      0|        }
  800|       |
  801|      0|        break;
  802|     34|    } /* for (;;) */
  803|       |
  804|       |    /* Release the first batch of verified plaintext. Subsequent calls drain the
  805|       |     * rest from chunk_buf before any new chunk is decrypted. */
  806|      0|    if (param->chunk_verified && param->chunk_buflen > 0) {
  ------------------
  |  Branch (806:9): [True: 0, False: 0]
  |  Branch (806:34): [True: 0, False: 0]
  ------------------
  807|      0|        size_t to_copy = param->chunk_buflen;
  808|      0|        if (to_copy > sizeof(param->cache)) {
  ------------------
  |  Branch (808:13): [True: 0, False: 0]
  ------------------
  809|      0|            to_copy = sizeof(param->cache);
  810|      0|        }
  811|      0|        memcpy(param->cache, param->chunk_buf.data(), to_copy);
  812|      0|        param->cachelen = to_copy;
  813|      0|        param->chunk_bufpos = to_copy;
  814|      0|    }
  815|      0|    param->rawbytes = 0;
  816|      0|    return true;
  817|    983|}
stream-parse.cpp:_ZL26encrypted_chunk_buf_appendP28pgp_source_encrypted_param_tPKhm:
  596|    408|{
  597|    408|    if (!len) {
  ------------------
  |  Branch (597:9): [True: 0, False: 408]
  ------------------
  598|      0|        return;
  599|      0|    }
  600|    408|    size_t need = param->chunk_buflen + len;
  601|    408|    if (param->chunk_buf.size() < need) {
  ------------------
  |  Branch (601:9): [True: 408, False: 0]
  ------------------
  602|       |        /* double the buffer, but do not go beyond the chunk size */
  603|    408|        size_t alloc = 2 * param->chunk_buf.size();
  604|    408|        if (alloc > param->chunklen) {
  ------------------
  |  Branch (604:13): [True: 18, False: 390]
  ------------------
  605|     18|            alloc = param->chunklen;
  606|     18|        }
  607|    408|        param->chunk_buf.reserve(alloc > need ? alloc : need);
  ------------------
  |  Branch (607:34): [True: 311, False: 97]
  ------------------
  608|    408|        param->chunk_buf.resize(need);
  609|    408|    }
  610|    408|    memcpy(param->chunk_buf.data() + param->chunk_buflen, data, len);
  611|    408|    param->chunk_buflen += len;
  612|    408|}
stream-parse.cpp:_ZL26encrypted_start_aead_chunkP28pgp_source_encrypted_param_tmb:
  517|  1.01k|{
  518|  1.01k|    size_t default_ad_len = param->aead_adlen;
  519|       |
  520|  1.01k|    if (last) {
  ------------------
  |  Branch (520:9): [True: 34, False: 983]
  ------------------
  521|     34|        uint64_t total = idx * param->chunklen;
  522|     34|        if (idx && param->chunkin) {
  ------------------
  |  Branch (522:13): [True: 0, False: 34]
  |  Branch (522:20): [True: 0, False: 0]
  ------------------
  523|      0|            total -= param->chunklen - param->chunkin;
  524|      0|        }
  525|       |
  526|     34|        if (!param->chunkin) {
  ------------------
  |  Branch (526:13): [True: 34, False: 0]
  ------------------
  527|       |            /* reset the crypto in case we had empty chunk before the last one */
  528|     34|            pgp_cipher_aead_reset(&param->decrypt);
  529|     34|        }
  530|     34|        write_uint64(param->aead_ad + param->aead_adlen, total);
  531|     34|        param->aead_adlen += 8;
  532|     34|    }
  533|       |
  534|  1.01k|    switch (param->auth_type) {
  ------------------
  |  Branch (534:13): [True: 1.01k, False: 0]
  ------------------
  535|      0|    case rnp::AuthType::MDC:
  ------------------
  |  Branch (535:5): [True: 0, False: 1.01k]
  ------------------
  536|      0|        break; // cannot happen
  537|      0|    case rnp::AuthType::None:
  ------------------
  |  Branch (537:5): [True: 0, False: 1.01k]
  ------------------
  538|      0|        break; // cannot happen
  539|  1.01k|    case rnp::AuthType::AEADv1:
  ------------------
  |  Branch (539:5): [True: 1.01k, False: 0]
  ------------------
  540|       |        /* set chunk index for additional data */
  541|  1.01k|        write_uint64(param->aead_ad + default_ad_len - 8, idx);
  542|       |
  543|  1.01k|        if (!pgp_cipher_aead_set_ad(&param->decrypt, param->aead_ad, param->aead_adlen)) {
  ------------------
  |  Branch (543:13): [True: 0, False: 1.01k]
  ------------------
  544|      0|            RNP_LOG("failed to set ad");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  545|      0|            return false;
  546|      0|        }
  547|  1.01k|        break;
  548|       |
  549|  1.01k|#ifdef ENABLE_CRYPTO_REFRESH
  550|  1.01k|    case rnp::AuthType::AEADv2:
  ------------------
  |  Branch (550:5): [True: 0, False: 1.01k]
  ------------------
  551|       |        /* set chunk index for additional data */
  552|      0|        write_uint64(param->aead_ad + default_ad_len - 8, idx);
  553|      0|        std::vector<uint8_t> add_data_seipd_v2 = {
  554|      0|          static_cast<uint8_t>(PGP_PKT_SE_IP_DATA | PGP_PTAG_ALWAYS_SET | PGP_PTAG_NEW_FORMAT),
  ------------------
  |  |   47|      0|#define PGP_PTAG_ALWAYS_SET 0x80
  ------------------
                        static_cast<uint8_t>(PGP_PKT_SE_IP_DATA | PGP_PTAG_ALWAYS_SET | PGP_PTAG_NEW_FORMAT),
  ------------------
  |  |   56|      0|#define PGP_PTAG_NEW_FORMAT 0x40
  ------------------
  555|      0|          static_cast<uint8_t>(param->seipdv2_hdr.version),
  556|      0|          static_cast<uint8_t>(param->seipdv2_hdr.cipher_alg),
  557|      0|          static_cast<uint8_t>(param->seipdv2_hdr.aead_alg),
  558|      0|          param->seipdv2_hdr.chunk_size_octet};
  559|       |
  560|      0|        if (param->is_v2_seipd()) {
  ------------------
  |  Branch (560:13): [True: 0, False: 0]
  ------------------
  561|      0|            if (last) {
  ------------------
  |  Branch (561:17): [True: 0, False: 0]
  ------------------
  562|      0|                std::copy(&param->aead_ad[5],
  563|      0|                          &param->aead_ad[5 + 8],
  564|      0|                          std::back_inserter(add_data_seipd_v2));
  565|      0|            }
  566|      0|            if (!pgp_cipher_aead_set_ad(
  ------------------
  |  Branch (566:17): [True: 0, False: 0]
  ------------------
  567|      0|                  &param->decrypt, add_data_seipd_v2.data(), add_data_seipd_v2.size())) {
  568|      0|                RNP_LOG("failed to set ad");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  569|      0|                return false;
  570|      0|            }
  571|      0|        }
  572|      0|        break;
  573|       |
  574|  1.01k|#endif
  575|  1.01k|    }
  576|       |
  577|       |    /* setup chunk */
  578|  1.01k|    param->chunkidx = idx;
  579|  1.01k|    param->chunkin = 0;
  580|       |
  581|       |    /* set chunk index for nonce */
  582|  1.01k|    uint8_t nonce[PGP_AEAD_MAX_NONCE_LEN];
  583|  1.01k|    size_t  nlen = pgp_cipher_aead_nonce(param->aead_hdr.aalg, param->aead_hdr.iv, nonce, idx);
  584|       |
  585|       |    /* start cipher */
  586|  1.01k|    return pgp_cipher_aead_start(&param->decrypt, nonce, nlen);
  587|  1.01k|}
stream-parse.cpp:_ZL26encrypted_read_packet_dataP28pgp_source_encrypted_param_t:
 2274|  3.31k|{
 2275|  3.31k|    int ptype;
 2276|       |    /* Reading pk/sk encrypted session key(s) */
 2277|  3.31k|    try {
 2278|  3.31k|        size_t errors = 0;
 2279|  3.31k|        bool   stop = false;
 2280|   190k|        while (!stop) {
  ------------------
  |  Branch (2280:16): [True: 188k, False: 2.45k]
  ------------------
 2281|   188k|            if (param->pubencs.size() + param->symencs.size() + errors > MAX_RECIPIENTS) {
  ------------------
  |  | 2270|   188k|#define MAX_RECIPIENTS 16384
  ------------------
  |  Branch (2281:17): [True: 5, False: 188k]
  ------------------
 2282|      5|                RNP_LOG("Too many recipients of the encrypted message. Aborting.");
  ------------------
  |  |   84|      5|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      5|    do {                                                                                 \
  |  |  |  |   77|      5|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 5, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      5|            break;                                                                       \
  |  |  |  |   79|      5|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2283|      5|                return RNP_ERROR_BAD_STATE;
 2284|      5|            }
 2285|   188k|            uint8_t ptag;
 2286|   188k|            if (!param->pkt.readsrc->peek_eq(&ptag, 1)) {
  ------------------
  |  Branch (2286:17): [True: 293, False: 188k]
  ------------------
 2287|    293|                RNP_LOG("failed to read packet header");
  ------------------
  |  |   84|    293|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    293|    do {                                                                                 \
  |  |  |  |   77|    293|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 293, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    293|            break;                                                                       \
  |  |  |  |   79|    293|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2288|    293|                return RNP_ERROR_READ;
 2289|    293|            }
 2290|   188k|            ptype = get_packet_type(ptag);
 2291|   188k|            switch (ptype) {
 2292|   111k|            case PGP_PKT_SK_SESSION_KEY: {
  ------------------
  |  Branch (2292:13): [True: 111k, False: 76.9k]
  ------------------
 2293|   111k|                pgp_sk_sesskey_t skey;
 2294|   111k|                rnp_result_t     ret = skey.parse(*param->pkt.readsrc);
 2295|   111k|                if (ret == RNP_ERROR_READ) {
  ------------------
  |  Branch (2295:21): [True: 85, False: 110k]
  ------------------
 2296|     85|                    RNP_LOG("SKESK: Premature end of data.");
  ------------------
  |  |   84|     85|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     85|    do {                                                                                 \
  |  |  |  |   77|     85|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 85, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     85|            break;                                                                       \
  |  |  |  |   79|     85|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2297|     85|                    return ret;
 2298|     85|                }
 2299|   110k|                if (ret) {
  ------------------
  |  Branch (2299:21): [True: 77.2k, False: 33.6k]
  ------------------
 2300|  77.2k|                    RNP_LOG("Failed to parse SKESK, skipping.");
  ------------------
  |  |   84|  77.2k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  77.2k|    do {                                                                                 \
  |  |  |  |   77|  77.2k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 77.2k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  77.2k|            break;                                                                       \
  |  |  |  |   79|  77.2k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2301|  77.2k|                    errors++;
 2302|  77.2k|                    continue;
 2303|  77.2k|                }
 2304|  33.6k|                param->symencs.push_back(std::move(skey));
 2305|  33.6k|                break;
 2306|   110k|            }
 2307|  74.0k|            case PGP_PKT_PK_SESSION_KEY: {
  ------------------
  |  Branch (2307:13): [True: 74.0k, False: 113k]
  ------------------
 2308|  74.0k|                pgp_pk_sesskey_t pkey;
 2309|  74.0k|                rnp_result_t     ret = pkey.parse(*param->pkt.readsrc);
 2310|  74.0k|                if (ret == RNP_ERROR_READ) {
  ------------------
  |  Branch (2310:21): [True: 66, False: 73.9k]
  ------------------
 2311|     66|                    RNP_LOG("PKESK: Premature end of data.");
  ------------------
  |  |   84|     66|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     66|    do {                                                                                 \
  |  |  |  |   77|     66|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 66, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     66|            break;                                                                       \
  |  |  |  |   79|     66|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2312|     66|                    return ret;
 2313|     66|                }
 2314|  73.9k|                if (ret) {
  ------------------
  |  Branch (2314:21): [True: 70.9k, False: 2.97k]
  ------------------
 2315|  70.9k|                    RNP_LOG("Failed to parse PKESK, skipping.");
  ------------------
  |  |   84|  70.9k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  70.9k|    do {                                                                                 \
  |  |  |  |   77|  70.9k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 70.9k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  70.9k|            break;                                                                       \
  |  |  |  |   79|  70.9k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2316|  70.9k|                    errors++;
 2317|  70.9k|                    continue;
 2318|  70.9k|                }
 2319|  2.97k|                param->pubencs.push_back(std::move(pkey));
 2320|  2.97k|                break;
 2321|  73.9k|            }
 2322|     11|            case PGP_PKT_SE_DATA:
  ------------------
  |  Branch (2322:13): [True: 11, False: 187k]
  ------------------
 2323|  1.31k|            case PGP_PKT_SE_IP_DATA:
  ------------------
  |  Branch (2323:13): [True: 1.30k, False: 186k]
  ------------------
 2324|  2.45k|            case PGP_PKT_AEAD_ENCRYPTED:
  ------------------
  |  Branch (2324:13): [True: 1.14k, False: 186k]
  ------------------
 2325|  2.45k|                stop = true;
 2326|  2.45k|                break;
 2327|    468|            default:
  ------------------
  |  Branch (2327:13): [True: 468, False: 187k]
  ------------------
 2328|       |                /* RFC 9580, 4.3: unknown non-critical packets (type IDs 40-63) and
 2329|       |                 * padding packets (5.14) are ignored */
 2330|    468|                if (((ptype >= 40) && (ptype <= 63)) || (ptype == PGP_PKT_PADDING)) {
  ------------------
  |  Branch (2330:22): [True: 88, False: 380]
  |  Branch (2330:39): [True: 88, False: 0]
  |  Branch (2330:57): [True: 10, False: 370]
  ------------------
 2331|     98|                    RNP_LOG("Skipping non-critical packet %d", ptype);
  ------------------
  |  |   84|     98|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     98|    do {                                                                                 \
  |  |  |  |   77|     98|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 98, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     98|            break;                                                                       \
  |  |  |  |   79|     98|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2332|     98|                    if (stream_skip_packet(param->pkt.readsrc)) {
  ------------------
  |  Branch (2332:25): [True: 43, False: 55]
  ------------------
 2333|     43|                        RNP_LOG("failed to skip packet");
  ------------------
  |  |   84|     43|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     43|    do {                                                                                 \
  |  |  |  |   77|     43|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 43, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     43|            break;                                                                       \
  |  |  |  |   79|     43|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2334|     43|                        return RNP_ERROR_READ;
 2335|     43|                    }
 2336|     55|                    continue;
 2337|     98|                }
 2338|    370|                RNP_LOG("unknown packet type: %d", ptype);
  ------------------
  |  |   84|    370|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    370|    do {                                                                                 \
  |  |  |  |   77|    370|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 370, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    370|            break;                                                                       \
  |  |  |  |   79|    370|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2339|    370|                return RNP_ERROR_BAD_FORMAT;
 2340|   188k|            }
 2341|   188k|        }
 2342|  3.31k|    } catch (const rnp::rnp_exception &e) {
 2343|       |        /* LCOV_EXCL_START */
 2344|      0|        RNP_LOG("%s: %d", e.what(), e.code());
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2345|      0|        return e.code();
 2346|       |        /* LCOV_EXCL_END */
 2347|      0|    } catch (const std::exception &e) {
 2348|       |        /* LCOV_EXCL_START */
 2349|      0|        RNP_LOG("%s", e.what());
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2350|      0|        return RNP_ERROR_GENERIC;
 2351|       |        /* LCOV_EXCL_END */
 2352|      0|    }
 2353|       |
 2354|       |    /* Reading packet length/checking whether it is partial */
 2355|  2.45k|    rnp_result_t errcode = init_packet_params(param->pkt);
 2356|  2.45k|    if (errcode) {
  ------------------
  |  Branch (2356:9): [True: 3, False: 2.45k]
  ------------------
 2357|      3|        return errcode;
 2358|      3|    }
 2359|       |
 2360|       |    /* Reading header of encrypted packet */
 2361|  2.45k|    if (ptype == PGP_PKT_AEAD_ENCRYPTED) {
  ------------------
  |  Branch (2361:9): [True: 1.14k, False: 1.31k]
  ------------------
 2362|  1.14k|        param->auth_type = rnp::AuthType::AEADv1;
 2363|  1.14k|        uint8_t hdr[4];
 2364|  1.14k|        if (!param->pkt.readsrc->peek_eq(hdr, 4)) {
  ------------------
  |  Branch (2364:13): [True: 5, False: 1.13k]
  ------------------
 2365|      5|            return RNP_ERROR_READ;
 2366|      5|        }
 2367|       |
 2368|  1.13k|        if (!get_aead_src_hdr(param->pkt.readsrc, &param->aead_hdr)) {
  ------------------
  |  Branch (2368:13): [True: 10, False: 1.12k]
  ------------------
 2369|     10|            RNP_LOG("failed to read AEAD header");
  ------------------
  |  |   84|     10|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     10|    do {                                                                                 \
  |  |  |  |   77|     10|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 10, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     10|            break;                                                                       \
  |  |  |  |   79|     10|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2370|     10|            return RNP_ERROR_READ;
 2371|     10|        }
 2372|       |
 2373|       |        /* check AEAD encrypted data packet header */
 2374|  1.12k|        if (!is_valid_seipd_version(param->aead_hdr.version)) {
  ------------------
  |  Branch (2374:13): [True: 7, False: 1.11k]
  ------------------
 2375|      7|            RNP_LOG("unknown aead ver: %d", param->aead_hdr.version);
  ------------------
  |  |   84|      7|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      7|    do {                                                                                 \
  |  |  |  |   77|      7|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 7, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      7|            break;                                                                       \
  |  |  |  |   79|      7|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2376|      7|            return RNP_ERROR_BAD_FORMAT;
 2377|      7|        }
 2378|  1.11k|        if ((param->aead_hdr.aalg != PGP_AEAD_EAX) && (param->aead_hdr.aalg != PGP_AEAD_OCB)
  ------------------
  |  Branch (2378:13): [True: 499, False: 620]
  |  Branch (2378:55): [True: 147, False: 352]
  ------------------
 2379|    147|#if defined(ENABLE_AEAD_GCM)
 2380|    147|            && (param->aead_hdr.aalg != PGP_AEAD_GCM)
  ------------------
  |  Branch (2380:16): [True: 0, False: 147]
  ------------------
 2381|  1.11k|#endif
 2382|  1.11k|        ) {
 2383|      0|            RNP_LOG("unknown aead alg: %d", (int) param->aead_hdr.aalg);
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2384|      0|            return RNP_ERROR_BAD_FORMAT;
 2385|      0|        }
 2386|       |
 2387|       |        /* parse chunk size */
 2388|  1.11k|        if (!parse_aead_chunk_size(param->aead_hdr.csize, param->chunklen)) {
  ------------------
  |  Branch (2388:13): [True: 3, False: 1.11k]
  ------------------
 2389|      3|            return RNP_ERROR_BAD_FORMAT;
 2390|      3|        }
 2391|       |
 2392|       |        /* build additional data */
 2393|  1.11k|        param->aead_adlen = 13;
 2394|  1.11k|        param->aead_ad[0] = param->pkt.hdr.hdr[0];
 2395|  1.11k|        memcpy(param->aead_ad + 1, hdr, 4);
 2396|  1.11k|        memset(param->aead_ad + 5, 0, 8);
 2397|  1.31k|    } else if (ptype == PGP_PKT_SE_IP_DATA) {
  ------------------
  |  Branch (2397:16): [True: 1.30k, False: 10]
  ------------------
 2398|  1.30k|        uint8_t SEIPD_version;
 2399|  1.30k|        if (!param->pkt.readsrc->read_eq(&SEIPD_version, 1)) {
  ------------------
  |  Branch (2399:13): [True: 1, False: 1.30k]
  ------------------
 2400|      1|            return RNP_ERROR_READ;
 2401|      1|        }
 2402|       |
 2403|  1.30k|        if (SEIPD_version == PGP_SE_IP_DATA_V1) {
  ------------------
  |  Branch (2403:13): [True: 1.27k, False: 25]
  ------------------
 2404|  1.27k|            param->auth_type = rnp::AuthType::MDC;
 2405|  1.27k|            param->auth_validated = false;
 2406|  1.27k|        }
 2407|     25|#ifdef ENABLE_CRYPTO_REFRESH
 2408|     25|        else if (SEIPD_version == PGP_SE_IP_DATA_V2) {
  ------------------
  |  Branch (2408:18): [True: 15, False: 10]
  ------------------
 2409|     17|            for (auto symenc : param->symencs) {
  ------------------
  |  Branch (2409:30): [True: 17, False: 13]
  ------------------
 2410|       |                // consistency check if SEIPDv2 is only coupled with SKESKv6
 2411|     17|                if (symenc.version != PGP_SKSK_V6) {
  ------------------
  |  Branch (2411:21): [True: 2, False: 15]
  ------------------
 2412|      2|                    RNP_LOG("SEIPDv2 not usable with SKESK version");
  ------------------
  |  |   84|      2|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      2|    do {                                                                                 \
  |  |  |  |   77|      2|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 2, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      2|            break;                                                                       \
  |  |  |  |   79|      2|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2413|      2|                    return RNP_ERROR_BAD_FORMAT;
 2414|      2|                }
 2415|     17|            }
 2416|       |
 2417|     13|            param->auth_type = rnp::AuthType::AEADv2;
 2418|     13|            param->seipdv2_hdr.version = PGP_SE_IP_DATA_V2;
 2419|     13|            uint8_t hdr[4];
 2420|     13|            if (!param->pkt.readsrc->peek_eq(hdr, 4)) {
  ------------------
  |  Branch (2420:17): [True: 2, False: 11]
  ------------------
 2421|      2|                return RNP_ERROR_READ;
 2422|      2|            }
 2423|       |
 2424|     11|            if (!get_seipdv2_src_hdr(param->pkt.readsrc, &param->seipdv2_hdr)) {
  ------------------
  |  Branch (2424:17): [True: 3, False: 8]
  ------------------
 2425|      3|                RNP_LOG("failed to read SEIPDv2 header");
  ------------------
  |  |   84|      3|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      3|    do {                                                                                 \
  |  |  |  |   77|      3|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 3, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      3|            break;                                                                       \
  |  |  |  |   79|      3|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2426|      3|                return RNP_ERROR_READ;
 2427|      3|            }
 2428|       |
 2429|       |            /* check SEIPDv2 packet header */
 2430|      8|            if ((param->seipdv2_hdr.aead_alg != PGP_AEAD_EAX) &&
  ------------------
  |  Branch (2430:17): [True: 7, False: 1]
  ------------------
 2431|      7|                (param->seipdv2_hdr.aead_alg != PGP_AEAD_OCB)
  ------------------
  |  Branch (2431:17): [True: 6, False: 1]
  ------------------
 2432|      6|#if defined(ENABLE_AEAD_GCM)
 2433|      6|                && (param->seipdv2_hdr.aead_alg != PGP_AEAD_GCM)
  ------------------
  |  Branch (2433:20): [True: 5, False: 1]
  ------------------
 2434|      8|#endif
 2435|      8|            ) {
 2436|      5|                RNP_LOG("unknown AEAD alg: %d", (int) param->seipdv2_hdr.aead_alg);
  ------------------
  |  |   84|      5|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      5|    do {                                                                                 \
  |  |  |  |   77|      5|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 5, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      5|            break;                                                                       \
  |  |  |  |   79|      5|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2437|      5|                return RNP_ERROR_BAD_FORMAT;
 2438|      5|            }
 2439|       |
 2440|       |            /* parse chunk size */
 2441|      3|            if (!parse_aead_chunk_size(param->seipdv2_hdr.chunk_size_octet, param->chunklen)) {
  ------------------
  |  Branch (2441:17): [True: 1, False: 2]
  ------------------
 2442|      1|                return RNP_ERROR_BAD_FORMAT;
 2443|      1|            }
 2444|       |
 2445|       |            /* build additional data */
 2446|      2|            param->aead_adlen = 5;
 2447|      2|            param->aead_ad[0] = param->pkt.hdr.hdr[0];
 2448|      2|            memcpy(param->aead_ad + 1, hdr, 4);
 2449|       |
 2450|      2|            param->aead_hdr.aalg = param->seipdv2_hdr.aead_alg;
 2451|      2|            param->aead_hdr.csize = param->seipdv2_hdr.chunk_size_octet; // needed?
 2452|      2|            param->aead_hdr.ealg = param->seipdv2_hdr.cipher_alg;
 2453|      2|        }
 2454|     10|#endif
 2455|     10|        else {
 2456|     10|            RNP_LOG("unknown SEIPD version: %d", (int) SEIPD_version);
  ------------------
  |  |   84|     10|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     10|    do {                                                                                 \
  |  |  |  |   77|     10|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 10, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     10|            break;                                                                       \
  |  |  |  |   79|     10|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2457|     10|            return RNP_ERROR_BAD_FORMAT;
 2458|     10|        }
 2459|  1.30k|    }
 2460|  2.40k|    param->auth_validated = false;
 2461|       |
 2462|  2.40k|    return RNP_SUCCESS;
 2463|  2.45k|}
stream-parse.cpp:_ZN12_GLOBAL__N_122is_valid_seipd_versionEh:
  206|  1.12k|{
  207|  1.12k|    if (version == 1
  ------------------
  |  Branch (207:9): [True: 843, False: 283]
  ------------------
  208|    283|#ifdef ENABLE_CRYPTO_REFRESH
  209|    283|        || version == 2
  ------------------
  |  Branch (209:12): [True: 276, False: 7]
  ------------------
  210|  1.12k|#endif
  211|  1.12k|    ) {
  212|  1.11k|        return true;
  213|  1.11k|    }
  214|      7|    return false;
  215|  1.12k|}
stream-parse.cpp:_ZL21parse_aead_chunk_sizehRm:
 2216|  1.12k|{
 2217|       |    /* the chunk size must fit size_t: up to 2^62 bytes, or 2^31 with a 32-bit size_t */
 2218|  1.12k|    if ((chunk_size_octet > 56) || (chunk_size_octet + 6 >= sizeof(size_t) * 8)) {
  ------------------
  |  Branch (2218:9): [True: 4, False: 1.11k]
  |  Branch (2218:36): [True: 0, False: 1.11k]
  ------------------
 2219|      4|        RNP_LOG("too large chunk size: %d", chunk_size_octet);
  ------------------
  |  |   84|      4|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      4|    do {                                                                                 \
  |  |  |  |   77|      4|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 4, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      4|            break;                                                                       \
  |  |  |  |   79|      4|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2220|      4|        return false;
 2221|      4|    }
 2222|  1.11k|    if (chunk_size_octet > 16) {
  ------------------
  |  Branch (2222:9): [True: 350, False: 768]
  ------------------
 2223|    350|        RNP_LOG("Warning: AEAD chunk bits > 16.");
  ------------------
  |  |   84|    350|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    350|    do {                                                                                 \
  |  |  |  |   77|    350|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 350, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    350|            break;                                                                       \
  |  |  |  |   79|    350|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2224|    350|    }
 2225|  1.11k|    chunk_size = (size_t) 1 << (chunk_size_octet + 6);
 2226|  1.11k|    return true;
 2227|  1.12k|}
_ZN28pgp_source_encrypted_param_t7use_cfbEv:
  127|  51.8k|    {
  128|  51.8k|        return (auth_type != rnp::AuthType::AEADv1
  ------------------
  |  Branch (128:17): [True: 40.8k, False: 11.0k]
  ------------------
  129|  40.8k|#ifdef ENABLE_CRYPTO_REFRESH
  130|  40.8k|                && auth_type != rnp::AuthType::AEADv2
  ------------------
  |  Branch (130:20): [True: 40.7k, False: 15]
  ------------------
  131|  51.8k|#endif
  132|  51.8k|        );
  133|  51.8k|    }
_ZNK28pgp_source_encrypted_param_t11is_v2_seipdEv:
  138|  5.00k|    {
  139|  5.00k|        return auth_type == rnp::AuthType::AEADv2;
  140|  5.00k|    }
stream-parse.cpp:_ZL23encrypted_src_read_aeadP12pgp_source_tPvmPm:
  822|    983|{
  823|       |#if !defined(ENABLE_AEAD)
  824|       |    return false;
  825|       |#else
  826|    983|    auto   param = (pgp_source_encrypted_param_t *) src->param;
  827|    983|    size_t left = len;
  828|       |
  829|    983|    do {
  830|       |        /* check whether we have something in the cache */
  831|    983|        size_t cbytes = param->cachelen - param->cachepos;
  832|    983|        if (cbytes > 0) {
  ------------------
  |  Branch (832:13): [True: 0, False: 983]
  ------------------
  833|      0|            if (cbytes >= left) {
  ------------------
  |  Branch (833:17): [True: 0, False: 0]
  ------------------
  834|      0|                memcpy(buf, param->cache + param->cachepos, left);
  835|      0|                param->cachepos += left;
  836|      0|                if (param->cachepos == param->cachelen) {
  ------------------
  |  Branch (836:21): [True: 0, False: 0]
  ------------------
  837|      0|                    param->cachepos = param->cachelen = 0;
  838|      0|                }
  839|      0|                *read = len;
  840|      0|                return true;
  841|      0|            }
  842|      0|            memcpy(buf, param->cache + param->cachepos, cbytes);
  843|      0|            buf = (uint8_t *) buf + cbytes;
  844|      0|            left -= cbytes;
  845|      0|        }
  846|       |
  847|       |        /* read something into cache */
  848|    983|        if (!encrypted_src_read_aead_part(param)) {
  ------------------
  |  Branch (848:13): [True: 983, False: 0]
  ------------------
  849|    983|            return false;
  850|    983|        }
  851|    983|    } while ((left > 0) && (param->cachelen > 0));
  ------------------
  |  Branch (851:14): [True: 0, False: 0]
  |  Branch (851:28): [True: 0, False: 0]
  ------------------
  852|       |
  853|      0|    *read = len - left;
  854|      0|    return true;
  855|    983|#endif
  856|    983|}
stream-parse.cpp:_ZL22encrypted_src_read_cfbP12pgp_source_tPvmPm:
  860|    469|{
  861|    469|    pgp_source_encrypted_param_t *param = (pgp_source_encrypted_param_t *) src->param;
  862|    469|    if (!param) {
  ------------------
  |  Branch (862:9): [True: 0, False: 469]
  ------------------
  863|      0|        return false; // LCOV_EXCL_LINE
  864|      0|    }
  865|       |
  866|    469|    if (src->eof_) {
  ------------------
  |  Branch (866:9): [True: 0, False: 469]
  ------------------
  867|      0|        *readres = 0;
  868|      0|        return true;
  869|      0|    }
  870|       |
  871|    469|    size_t read;
  872|    469|    if (!param->pkt.readsrc->read(buf, len, &read)) {
  ------------------
  |  Branch (872:9): [True: 0, False: 469]
  ------------------
  873|      0|        return false;
  874|      0|    }
  875|    469|    if (!read) {
  ------------------
  |  Branch (875:9): [True: 1, False: 468]
  ------------------
  876|      1|        *readres = 0;
  877|      1|        return true;
  878|      1|    }
  879|       |
  880|    468|    bool    parsemdc = false;
  881|    468|    uint8_t mdcbuf[MDC_V1_SIZE];
  882|    468|    if (param->auth_type == rnp::AuthType::MDC) {
  ------------------
  |  Branch (882:9): [True: 468, False: 0]
  ------------------
  883|    468|        size_t mdcread = 0;
  884|       |        /* make sure there are always 22 bytes left on input */
  885|    468|        if (!param->pkt.readsrc->peek(mdcbuf, MDC_V1_SIZE, &mdcread) ||
  ------------------
  |  |  148|    468|#define MDC_V1_SIZE 22
  ------------------
  |  Branch (885:13): [True: 0, False: 468]
  ------------------
  886|    468|            (mdcread + read < MDC_V1_SIZE)) {
  ------------------
  |  |  148|    468|#define MDC_V1_SIZE 22
  ------------------
  |  Branch (886:13): [True: 10, False: 458]
  ------------------
  887|     10|            RNP_LOG("wrong mdc read state");
  ------------------
  |  |   84|     10|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     10|    do {                                                                                 \
  |  |  |  |   77|     10|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 10, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     10|            break;                                                                       \
  |  |  |  |   79|     10|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  888|     10|            return false;
  889|     10|        }
  890|    458|        if (mdcread < MDC_V1_SIZE) {
  ------------------
  |  |  148|    458|#define MDC_V1_SIZE 22
  ------------------
  |  Branch (890:13): [True: 179, False: 279]
  ------------------
  891|    179|            param->pkt.readsrc->skip(mdcread);
  892|    179|            size_t mdcsub = MDC_V1_SIZE - mdcread;
  ------------------
  |  |  148|    179|#define MDC_V1_SIZE 22
  ------------------
  893|    179|            memmove(&mdcbuf[mdcsub], mdcbuf, mdcread);
  894|    179|            memcpy(mdcbuf, (uint8_t *) buf + read - mdcsub, mdcsub);
  895|    179|            read -= mdcsub;
  896|    179|            parsemdc = true;
  897|    179|        }
  898|    458|    }
  899|       |
  900|    458|    pgp_cipher_cfb_decrypt(&param->decrypt, (uint8_t *) buf, (uint8_t *) buf, read);
  901|       |
  902|    458|    if (param->auth_type == rnp::AuthType::MDC) {
  ------------------
  |  Branch (902:9): [True: 458, False: 0]
  ------------------
  903|    458|        try {
  904|    458|            param->mdc->add(buf, read);
  905|       |
  906|    458|            if (parsemdc) {
  ------------------
  |  Branch (906:17): [True: 179, False: 279]
  ------------------
  907|    179|                pgp_cipher_cfb_decrypt(&param->decrypt, mdcbuf, mdcbuf, MDC_V1_SIZE);
  ------------------
  |  |  148|    179|#define MDC_V1_SIZE 22
  ------------------
  908|    179|                pgp_cipher_cfb_finish(&param->decrypt);
  909|    179|                param->mdc->add(mdcbuf, 2);
  910|    179|                uint8_t hash[PGP_SHA1_HASH_SIZE] = {0};
  911|    179|                param->mdc->finish(hash);
  912|    179|                param->mdc = nullptr;
  913|       |
  914|    179|                if ((mdcbuf[0] != MDC_PKT_TAG) || (mdcbuf[1] != MDC_V1_SIZE - 2)) {
  ------------------
  |  |  147|    179|#define MDC_PKT_TAG 0xd3
  ------------------
                              if ((mdcbuf[0] != MDC_PKT_TAG) || (mdcbuf[1] != MDC_V1_SIZE - 2)) {
  ------------------
  |  |  148|     12|#define MDC_V1_SIZE 22
  ------------------
  |  Branch (914:21): [True: 167, False: 12]
  |  Branch (914:51): [True: 7, False: 5]
  ------------------
  915|    174|                    RNP_LOG("mdc header check failed");
  ------------------
  |  |   84|    174|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    174|    do {                                                                                 \
  |  |  |  |   77|    174|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 174, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    174|            break;                                                                       \
  |  |  |  |   79|    174|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  916|    174|                    return false;
  917|    174|                }
  918|       |
  919|      5|                if (memcmp(&mdcbuf[2], hash, PGP_SHA1_HASH_SIZE) != 0) {
  ------------------
  |  |   42|      5|#define PGP_SHA1_HASH_SIZE 20
  ------------------
  |  Branch (919:21): [True: 5, False: 0]
  ------------------
  920|      5|                    RNP_LOG("mdc hash check failed");
  ------------------
  |  |   84|      5|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      5|    do {                                                                                 \
  |  |  |  |   77|      5|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 5, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      5|            break;                                                                       \
  |  |  |  |   79|      5|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  921|      5|                    return false;
  922|      5|                }
  923|      0|                param->auth_validated = true;
  924|      0|            }
  925|    458|        } catch (const std::exception &e) {
  926|       |            /* LCOV_EXCL_START */
  927|      0|            RNP_LOG("mdc update failed: %s", e.what());
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  928|      0|            return false;
  929|       |            /* LCOV_EXCL_END */
  930|      0|        }
  931|    458|    }
  932|    279|    *readres = read;
  933|    279|    return true;
  934|    458|}
stream-parse.cpp:_ZL20encrypted_start_aeadP28pgp_source_encrypted_param_t14pgp_symm_alg_tPh:
 1684|  3.71k|{
 1685|       |#if !defined(ENABLE_AEAD)
 1686|       |    RNP_LOG("AEAD is not enabled.");
 1687|       |    return false;
 1688|       |#else
 1689|  3.71k|    size_t gran;
 1690|       |
 1691|  3.71k|    if (alg != param->aead_hdr.ealg) {
  ------------------
  |  Branch (1691:9): [True: 0, False: 3.71k]
  ------------------
 1692|      0|        return false;
 1693|      0|    }
 1694|  3.71k|#ifdef ENABLE_CRYPTO_REFRESH
 1695|  3.71k|    std::vector<uint8_t> seipd_v2_key;
 1696|  3.71k|    if (param->is_v2_seipd()) {
  ------------------
  |  Branch (1696:9): [True: 0, False: 3.71k]
  ------------------
 1697|      0|        seipd_v2_aead_fields_t aead_fields =
 1698|      0|          seipd_v2_key_and_nonce_derivation(param->seipdv2_hdr, key);
 1699|      0|        seipd_v2_key = aead_fields.key;
 1700|      0|        key = std::move(seipd_v2_key.data());
 1701|       |        // param->seipd_v2_nonce = std::move(aead_fields.nonce);
 1702|      0|        if (aead_fields.nonce.size() > sizeof(param->aead_hdr.iv)) {
  ------------------
  |  Branch (1702:13): [True: 0, False: 0]
  ------------------
 1703|       |            // signalling error would be better here
 1704|      0|            aead_fields.nonce.resize(sizeof(param->aead_hdr.iv));
 1705|      0|        }
 1706|      0|        memcpy(param->aead_hdr.iv, aead_fields.nonce.data(), aead_fields.nonce.size());
 1707|      0|    }
 1708|  3.71k|#endif
 1709|       |
 1710|       |    /* initialize cipher with key */
 1711|  3.71k|    if (!pgp_cipher_aead_init(
  ------------------
  |  Branch (1711:9): [True: 2.73k, False: 983]
  ------------------
 1712|  3.71k|          &param->decrypt, param->aead_hdr.ealg, param->aead_hdr.aalg, key, true)) {
 1713|  2.73k|        return false;
 1714|  2.73k|    }
 1715|       |
 1716|    983|    gran = pgp_cipher_aead_granularity(&param->decrypt);
 1717|    983|    if (gran > sizeof(param->cache)) {
  ------------------
  |  Branch (1717:9): [True: 0, False: 983]
  ------------------
 1718|      0|        RNP_LOG("wrong granularity");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1719|      0|        return false;
 1720|      0|    }
 1721|       |
 1722|    983|    return encrypted_start_aead_chunk(param, 0, false);
 1723|    983|#endif
 1724|    983|}
stream-parse.cpp:_ZL28encrypted_decrypt_cfb_headerP28pgp_source_encrypted_param_t14pgp_symm_alg_tPh:
 1627|  34.5k|{
 1628|  34.5k|    pgp_crypt_t crypt;
 1629|  34.5k|    uint8_t     enchdr[PGP_MAX_BLOCK_SIZE + 2];
 1630|  34.5k|    uint8_t     dechdr[PGP_MAX_BLOCK_SIZE + 2];
 1631|  34.5k|    unsigned    blsize;
 1632|       |
 1633|  34.5k|    if (!(blsize = pgp_block_size(alg))) {
  ------------------
  |  Branch (1633:9): [True: 0, False: 34.5k]
  ------------------
 1634|      0|        return false;
 1635|      0|    }
 1636|       |
 1637|       |    /* reading encrypted header to check the password validity */
 1638|  34.5k|    if (!param->pkt.readsrc->peek_eq(enchdr, blsize + 2)) {
  ------------------
  |  Branch (1638:9): [True: 2.61k, False: 31.9k]
  ------------------
 1639|  2.61k|        RNP_LOG("failed to read encrypted header");
  ------------------
  |  |   84|  2.61k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  2.61k|    do {                                                                                 \
  |  |  |  |   77|  2.61k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 2.61k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  2.61k|            break;                                                                       \
  |  |  |  |   79|  2.61k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1640|  2.61k|        return false;
 1641|  2.61k|    }
 1642|       |
 1643|       |    /* having symmetric key in keybuf let's decrypt blocksize + 2 bytes and check them */
 1644|  31.9k|    if (!pgp_cipher_cfb_start(&crypt, alg, key, NULL)) {
  ------------------
  |  Branch (1644:9): [True: 0, False: 31.9k]
  ------------------
 1645|      0|        RNP_LOG("failed to start cipher");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1646|      0|        return false;
 1647|      0|    }
 1648|       |
 1649|  31.9k|    pgp_cipher_cfb_decrypt(&crypt, dechdr, enchdr, blsize + 2);
 1650|       |
 1651|  31.9k|    if ((dechdr[blsize] != dechdr[blsize - 2]) || (dechdr[blsize + 1] != dechdr[blsize - 1])) {
  ------------------
  |  Branch (1651:9): [True: 31.4k, False: 508]
  |  Branch (1651:51): [True: 309, False: 199]
  ------------------
 1652|  31.7k|        RNP_LOG("checksum check failed");
  ------------------
  |  |   84|  31.7k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  31.7k|    do {                                                                                 \
  |  |  |  |   77|  31.7k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 31.7k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  31.7k|            break;                                                                       \
  |  |  |  |   79|  31.7k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1653|  31.7k|        goto error;
 1654|  31.7k|    }
 1655|       |
 1656|    199|    param->pkt.readsrc->skip(blsize + 2);
 1657|    199|    param->decrypt = crypt;
 1658|       |
 1659|       |    /* init mdc if it is here */
 1660|       |    /* RFC 4880, 5.13: Unlike the Symmetrically Encrypted Data Packet, no special CFB
 1661|       |     * resynchronization is done after encrypting this prefix data. */
 1662|    199|    if (param->auth_type == rnp::AuthType::None) {
  ------------------
  |  Branch (1662:9): [True: 0, False: 199]
  ------------------
 1663|      0|        pgp_cipher_cfb_resync(&param->decrypt, enchdr + 2);
 1664|      0|        return true;
 1665|      0|    }
 1666|       |
 1667|    199|    try {
 1668|    199|        param->mdc = rnp::Hash::create(PGP_HASH_SHA1);
 1669|    199|        param->mdc->add(dechdr, blsize + 2);
 1670|    199|    } catch (const std::exception &e) {
 1671|       |        /* LCOV_EXCL_START */
 1672|      0|        RNP_LOG("cannot create sha1 hash: %s", e.what());
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1673|      0|        goto error;
 1674|       |        /* LCOV_EXCL_END */
 1675|      0|    }
 1676|    199|    return true;
 1677|  31.7k|error:
 1678|  31.7k|    pgp_cipher_cfb_finish(&crypt);
 1679|  31.7k|    return false;
 1680|    199|}
stream-parse.cpp:_ZL22encrypted_try_passwordP28pgp_source_encrypted_param_tPKc:
 1865|  3.89k|{
 1866|  3.89k|    bool keyavail = false; /* tried password at least once */
 1867|       |
 1868|  74.3k|    for (auto &skey : param->symencs) {
  ------------------
  |  Branch (1868:21): [True: 74.3k, False: 2.70k]
  ------------------
 1869|  74.3k|        rnp::secure_array<uint8_t, PGP_MAX_KEY_SIZE + 1> keybuf;
 1870|       |        /* deriving symmetric key from password */
 1871|  74.3k|        size_t keysize = pgp_key_size(skey.alg);
 1872|  74.3k|        if (!keysize || !pgp_s2k_derive_key(&skey.s2k, password, keybuf.data(), keysize)) {
  ------------------
  |  Branch (1872:13): [True: 2.74k, False: 71.6k]
  |  Branch (1872:25): [True: 11.7k, False: 59.8k]
  ------------------
 1873|  14.4k|            continue;
 1874|  14.4k|        }
 1875|  59.8k|        pgp_crypt_t    crypt;
 1876|  59.8k|        pgp_symm_alg_t alg;
 1877|       |
 1878|  59.8k|        if (skey.version == PGP_SKSK_V4) {
  ------------------
  |  Branch (1878:13): [True: 59.8k, False: 81]
  ------------------
 1879|       |            /* v4 symmetrically-encrypted session key */
 1880|  59.8k|            if (skey.enckeylen > 0) {
  ------------------
  |  Branch (1880:17): [True: 21.7k, False: 38.0k]
  ------------------
 1881|       |                /* decrypting session key */
 1882|  21.7k|                if (!pgp_cipher_cfb_start(&crypt, skey.alg, keybuf.data(), NULL)) {
  ------------------
  |  Branch (1882:21): [True: 0, False: 21.7k]
  ------------------
 1883|      0|                    continue;
 1884|      0|                }
 1885|       |
 1886|  21.7k|                pgp_cipher_cfb_decrypt(&crypt, keybuf.data(), skey.enckey, skey.enckeylen);
 1887|  21.7k|                pgp_cipher_cfb_finish(&crypt);
 1888|       |
 1889|  21.7k|                alg = (pgp_symm_alg_t) keybuf[0];
 1890|  21.7k|                keysize = pgp_key_size(alg);
 1891|  21.7k|                if (!keysize || (keysize + 1 != skey.enckeylen)) {
  ------------------
  |  Branch (1891:21): [True: 19.8k, False: 1.90k]
  |  Branch (1891:33): [True: 1.63k, False: 269]
  ------------------
 1892|  21.5k|                    continue;
 1893|  21.5k|                }
 1894|    269|                memmove(keybuf.data(), keybuf.data() + 1, keysize);
 1895|  38.0k|            } else {
 1896|  38.0k|                alg = (pgp_symm_alg_t) skey.alg;
 1897|  38.0k|            }
 1898|       |
 1899|  38.2k|            if (!pgp_block_size(alg)) {
  ------------------
  |  Branch (1899:17): [True: 0, False: 38.2k]
  ------------------
 1900|      0|                continue;
 1901|      0|            }
 1902|  38.2k|            keyavail = true;
 1903|  38.2k|        } else if (skey.version == PGP_SKSK_V5
  ------------------
  |  Branch (1903:20): [True: 69, False: 12]
  ------------------
 1904|     12|#if defined(ENABLE_CRYPTO_REFRESH)
 1905|     12|                   || skey.version == PGP_SKSK_V6
  ------------------
  |  Branch (1905:23): [True: 12, False: 0]
  ------------------
 1906|     81|#endif
 1907|     81|        ) {
 1908|       |#if !defined(ENABLE_AEAD)
 1909|       |            continue;
 1910|       |#else
 1911|       |            /* v5 AEAD-encrypted session key */
 1912|     81|            size_t taglen = pgp_cipher_aead_tag_len(skey.aalg);
 1913|     81|            size_t ceklen = pgp_key_size(param->aead_hdr.ealg);
 1914|     81|            if (!taglen || !ceklen || (ceklen + taglen != skey.enckeylen)) {
  ------------------
  |  Branch (1914:17): [True: 0, False: 81]
  |  Branch (1914:28): [True: 51, False: 30]
  |  Branch (1914:39): [True: 21, False: 9]
  ------------------
 1915|     72|                RNP_LOG("CEK len/alg mismatch");
  ------------------
  |  |   84|     72|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     72|    do {                                                                                 \
  |  |  |  |   77|     72|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 72, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     72|            break;                                                                       \
  |  |  |  |   79|     72|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1916|     72|                continue;
 1917|     72|            }
 1918|      9|            alg = skey.alg;
 1919|       |
 1920|       |            /* initialize cipher */
 1921|      9|#if defined(ENABLE_CRYPTO_REFRESH)
 1922|      9|            if (skey.version == PGP_SKSK_V6) {
  ------------------
  |  Branch (1922:17): [True: 0, False: 9]
  ------------------
 1923|       |                /* For v6 SKESK, we use the S2K derived key as input to the KDF */
 1924|      0|                auto kdf = rnp::Hkdf::create(PGP_HASH_SHA256);
 1925|       |
 1926|      0|                std::vector<uint8_t> kdf_info;
 1927|      0|                kdf_info.push_back(PGP_PKT_SK_SESSION_KEY | PGP_PTAG_ALWAYS_SET |
  ------------------
  |  |   47|      0|#define PGP_PTAG_ALWAYS_SET 0x80
  ------------------
 1928|      0|                                   PGP_PTAG_NEW_FORMAT);
  ------------------
  |  |   56|      0|#define PGP_PTAG_NEW_FORMAT 0x40
  ------------------
 1929|      0|                kdf_info.push_back(skey.version);
 1930|      0|                kdf_info.push_back(skey.alg);
 1931|      0|                kdf_info.push_back(skey.aalg);
 1932|       |
 1933|      0|                std::vector<uint8_t> kdf_input(keybuf.data(),
 1934|      0|                                               keybuf.data() + pgp_key_size(skey.alg));
 1935|       |
 1936|      0|                kdf->extract_expand(NULL,
 1937|      0|                                    0, // no salt
 1938|      0|                                    kdf_input.data(),
 1939|      0|                                    kdf_input.size(),
 1940|      0|                                    kdf_info.data(),
 1941|      0|                                    kdf_info.size(),
 1942|      0|                                    keybuf.data(),
 1943|      0|                                    keybuf.size());
 1944|      0|            }
 1945|      9|#endif
 1946|      9|            if (!pgp_cipher_aead_init(&crypt, skey.alg, skey.aalg, keybuf.data(), true)) {
  ------------------
  |  Branch (1946:17): [True: 8, False: 1]
  ------------------
 1947|      8|                continue;
 1948|      8|            }
 1949|       |
 1950|       |            /* set additional data */
 1951|      1|            if (!encrypted_sesk_set_ad(crypt, skey)) {
  ------------------
  |  Branch (1951:17): [True: 0, False: 1]
  ------------------
 1952|      0|                RNP_LOG("failed to set ad");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1953|      0|                continue;
 1954|      0|            }
 1955|       |
 1956|       |            /* calculate nonce */
 1957|      1|            uint8_t nonce[PGP_AEAD_MAX_NONCE_LEN];
 1958|      1|            size_t  noncelen = pgp_cipher_aead_nonce(skey.aalg, skey.iv, nonce, 0);
 1959|       |
 1960|       |            /* start cipher, decrypt key and verify tag */
 1961|      1|            keyavail =
 1962|      1|              pgp_cipher_aead_start(&crypt, nonce, noncelen) &&
  ------------------
  |  Branch (1962:15): [True: 1, False: 0]
  ------------------
 1963|      1|              pgp_cipher_aead_finish(&crypt, keybuf.data(), skey.enckey, skey.enckeylen);
  ------------------
  |  Branch (1963:15): [True: 0, False: 1]
  ------------------
 1964|      1|            pgp_cipher_aead_destroy(&crypt);
 1965|       |
 1966|       |            /* we have decrypted key so let's start decryption */
 1967|      1|            if (!keyavail) {
  ------------------
  |  Branch (1967:17): [True: 1, False: 0]
  ------------------
 1968|      1|                continue;
 1969|      1|            }
 1970|      1|#endif
 1971|      1|        } else {
 1972|      0|            continue;
 1973|      0|        }
 1974|       |
 1975|       |        /* Decrypt header for CFB */
 1976|  38.2k|        if (param->use_cfb() && !encrypted_decrypt_cfb_header(param, alg, keybuf.data())) {
  ------------------
  |  Branch (1976:13): [True: 34.5k, False: 3.71k]
  |  Branch (1976:33): [True: 34.3k, False: 199]
  ------------------
 1977|  34.3k|            continue;
 1978|  34.3k|        }
 1979|  3.91k|        if (!param->use_cfb() &&
  ------------------
  |  Branch (1979:13): [True: 3.71k, False: 199]
  ------------------
 1980|  3.71k|            !encrypted_start_aead(param, param->aead_hdr.ealg, keybuf.data())) {
  ------------------
  |  Branch (1980:13): [True: 2.73k, False: 983]
  ------------------
 1981|  2.73k|            continue;
 1982|  2.73k|        }
 1983|       |
 1984|  1.18k|        param->salg = param->use_cfb() ? alg : param->aead_hdr.ealg;
  ------------------
  |  Branch (1984:23): [True: 199, False: 983]
  ------------------
 1985|       |        /* inform handler that we used this symenc */
 1986|  1.18k|        if (param->handler->on_decryption_start) {
  ------------------
  |  Branch (1986:13): [True: 1.18k, False: 0]
  ------------------
 1987|  1.18k|            param->handler->on_decryption_start(NULL, &skey, param->handler->param);
 1988|  1.18k|        }
 1989|  1.18k|        return 1;
 1990|  3.91k|    }
 1991|       |
 1992|  2.70k|    if (!param->use_cfb() && pgp_block_size(param->aead_hdr.ealg)) {
  ------------------
  |  Branch (1992:9): [True: 346, False: 2.36k]
  |  Branch (1992:30): [True: 198, False: 148]
  ------------------
 1993|       |        /* we know aead symm alg even if we wasn't able to start decryption */
 1994|    198|        param->salg = param->aead_hdr.ealg;
 1995|    198|    }
 1996|       |
 1997|  2.70k|    if (!keyavail) {
  ------------------
  |  Branch (1997:9): [True: 407, False: 2.30k]
  ------------------
 1998|    407|        RNP_LOG("no supported sk available");
  ------------------
  |  |   84|    407|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    407|    do {                                                                                 \
  |  |  |  |   77|    407|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 407, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    407|            break;                                                                       \
  |  |  |  |   79|    407|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1999|    407|        return -1;
 2000|    407|    }
 2001|  2.30k|    return 0;
 2002|  2.70k|}
stream-parse.cpp:_ZL15init_signed_srcP19pgp_parse_handler_tP12pgp_source_tS2_:
 2709|  4.71k|{
 2710|  4.71k|    rnp_result_t               errcode = RNP_ERROR_GENERIC;
 2711|  4.71k|    pgp_source_signed_param_t *param;
 2712|  4.71k|    uint8_t                    ptag;
 2713|  4.71k|    int                        ptype;
 2714|  4.71k|    pgp::pkt::Signature *      sig = nullptr;
 2715|  4.71k|    bool                       cleartext;
 2716|  4.71k|    size_t                     sigerrors = 0;
 2717|       |
 2718|  4.71k|    if (!init_src_common(src, 0)) {
  ------------------
  |  Branch (2718:9): [True: 0, False: 4.71k]
  ------------------
 2719|      0|        return RNP_ERROR_OUT_OF_MEMORY; // LCOV_EXCL_LINE
 2720|      0|    }
 2721|  4.71k|    try {
 2722|  4.71k|        param = new pgp_source_signed_param_t();
 2723|  4.71k|    } catch (const std::exception &e) {
 2724|       |        /* LCOV_EXCL_START */
 2725|      0|        RNP_LOG("%s", e.what());
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2726|      0|        return RNP_ERROR_OUT_OF_MEMORY;
 2727|       |        /* LCOV_EXCL_END */
 2728|      0|    }
 2729|  4.71k|    src->param = param;
 2730|       |
 2731|  4.71k|    cleartext = readsrc->is_cleartext();
 2732|  4.71k|    param->readsrc = readsrc;
 2733|  4.71k|    param->handler = handler;
 2734|  4.71k|    param->cleartext = cleartext;
 2735|  4.71k|    param->stripped_crs = 0;
 2736|  4.71k|    src->raw_read = cleartext ? cleartext_src_read : signed_src_read;
  ------------------
  |  Branch (2736:21): [True: 561, False: 4.14k]
  ------------------
 2737|  4.71k|    src->raw_close = signed_src_close;
 2738|  4.71k|    src->raw_finish = signed_src_finish;
 2739|  4.71k|    src->type = cleartext ? PGP_STREAM_CLEARTEXT : PGP_STREAM_SIGNED;
  ------------------
  |  Branch (2739:17): [True: 561, False: 4.14k]
  ------------------
 2740|       |
 2741|       |    /* we need key provider to validate signatures */
 2742|  4.71k|    if (!handler->key_provider) {
  ------------------
  |  Branch (2742:9): [True: 0, False: 4.71k]
  ------------------
 2743|       |        /* LCOV_EXCL_START */
 2744|      0|        RNP_LOG("no key provider");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2745|      0|        errcode = RNP_ERROR_BAD_PARAMETERS;
 2746|      0|        goto finish;
 2747|       |        /* LCOV_EXCL_END */
 2748|      0|    }
 2749|       |
 2750|  4.71k|    if (cleartext) {
  ------------------
  |  Branch (2750:9): [True: 561, False: 4.14k]
  ------------------
 2751|    561|        errcode = init_cleartext_signed_src(src);
 2752|    561|        goto finish;
 2753|    561|    }
 2754|       |
 2755|       |    /* Reading one-pass and signature packets */
 2756|   249k|    while (true) {
  ------------------
  |  Branch (2756:12): [True: 249k, Folded]
  ------------------
 2757|       |        /* stop early if we are in zip-bomb with erroneous packets */
 2758|   249k|        if (sigerrors >= MAX_SIG_ERRORS) {
  ------------------
  |  | 2705|   249k|#define MAX_SIG_ERRORS 65536
  ------------------
  |  Branch (2758:13): [True: 1, False: 249k]
  ------------------
 2759|      1|            RNP_LOG("Too many one-pass/signature errors. Stopping.");
  ------------------
  |  |   84|      1|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      1|    do {                                                                                 \
  |  |  |  |   77|      1|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 1, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      1|            break;                                                                       \
  |  |  |  |   79|      1|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2760|      1|            errcode = RNP_ERROR_BAD_FORMAT;
 2761|      1|            goto finish;
 2762|      1|        }
 2763|       |
 2764|   249k|        size_t readb = readsrc->readb;
 2765|   249k|        if (!readsrc->peek_eq(&ptag, 1)) {
  ------------------
  |  Branch (2765:13): [True: 50, False: 249k]
  ------------------
 2766|     50|            RNP_LOG("failed to read packet header");
  ------------------
  |  |   84|     50|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     50|    do {                                                                                 \
  |  |  |  |   77|     50|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 50, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     50|            break;                                                                       \
  |  |  |  |   79|     50|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2767|     50|            errcode = RNP_ERROR_READ;
 2768|     50|            goto finish;
 2769|     50|        }
 2770|       |
 2771|   249k|        ptype = get_packet_type(ptag);
 2772|       |
 2773|   249k|        if (ptype == PGP_PKT_ONE_PASS_SIG) {
  ------------------
  |  Branch (2773:13): [True: 125k, False: 124k]
  ------------------
 2774|   125k|            if (param->onepasses.size() >= MAX_SIGNATURES) {
  ------------------
  |  | 1224|   125k|#define MAX_SIGNATURES 16384
  ------------------
  |  Branch (2774:17): [True: 0, False: 125k]
  ------------------
 2775|      0|                RNP_LOG("Too many one-pass signatures.");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2776|      0|                errcode = RNP_ERROR_BAD_FORMAT;
 2777|      0|                goto finish;
 2778|      0|            }
 2779|   125k|            pgp_one_pass_sig_t onepass;
 2780|   125k|            try {
 2781|   125k|                errcode = onepass.parse(*readsrc);
 2782|   125k|            } catch (const std::exception &e) {
 2783|      0|                errcode = RNP_ERROR_GENERIC; // LCOV_EXCL_LINE
 2784|      0|            }
 2785|   125k|            if (errcode) {
  ------------------
  |  Branch (2785:17): [True: 118k, False: 7.41k]
  ------------------
 2786|   118k|                if (errcode == RNP_ERROR_READ) {
  ------------------
  |  Branch (2786:21): [True: 82, False: 118k]
  ------------------
 2787|     82|                    goto finish;
 2788|     82|                }
 2789|   118k|                if (readb == readsrc->readb) {
  ------------------
  |  Branch (2789:21): [True: 0, False: 118k]
  ------------------
 2790|      0|                    errcode = RNP_ERROR_BAD_FORMAT;
 2791|      0|                    goto finish;
 2792|      0|                }
 2793|   118k|                sigerrors++;
 2794|   118k|                continue;
 2795|   118k|            }
 2796|       |
 2797|  7.41k|            try {
 2798|  7.41k|                param->onepasses.push_back(onepass);
 2799|  7.41k|            } catch (const std::exception &e) {
 2800|       |                /* LCOV_EXCL_START */
 2801|      0|                RNP_LOG("%s", e.what());
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2802|      0|                errcode = RNP_ERROR_OUT_OF_MEMORY;
 2803|      0|                goto finish;
 2804|       |                /* LCOV_EXCL_END */
 2805|      0|            }
 2806|       |
 2807|       |            /* adding hash context */
 2808|  7.41k|            try {
 2809|  7.41k|#if defined(ENABLE_CRYPTO_REFRESH)
 2810|  7.41k|                if (onepass.version == PGP_OPS_V6) {
  ------------------
  |  Branch (2810:21): [True: 1.98k, False: 5.43k]
  ------------------
 2811|  1.98k|                    add_hash_for_sig_v6(param, onepass.type, onepass.halg, onepass.salt);
 2812|  1.98k|                } else
 2813|  5.43k|#endif
 2814|  5.43k|                {
 2815|  5.43k|                    add_hash_for_sig(param, onepass.type, onepass.halg);
 2816|  5.43k|                }
 2817|  7.41k|            } catch (const std::exception &e) {
 2818|     31|                RNP_LOG("Failed to create hash %d for onepass %d : %s.",
  ------------------
  |  |   84|     31|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     31|    do {                                                                                 \
  |  |  |  |   77|     31|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 31, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     31|            break;                                                                       \
  |  |  |  |   79|     31|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2819|     31|                        (int) onepass.halg,
 2820|     31|                        (int) onepass.type,
 2821|     31|                        e.what());
 2822|     31|                errcode = RNP_ERROR_BAD_PARAMETERS;
 2823|     31|                goto finish;
 2824|     31|            }
 2825|       |
 2826|  7.38k|            if (onepass.nested) {
  ------------------
  |  Branch (2826:17): [True: 2.79k, False: 4.58k]
  ------------------
 2827|       |                /* despite the name non-zero value means that it is the last one-pass */
 2828|  2.79k|                break;
 2829|  2.79k|            }
 2830|   124k|        } else if (ptype == PGP_PKT_SIGNATURE) {
  ------------------
  |  Branch (2830:20): [True: 123k, False: 800]
  ------------------
 2831|       |            /* no need to check the error here - we already know tag */
 2832|   123k|            if (signed_read_single_signature(param, readsrc, &sig)) {
  ------------------
  |  Branch (2832:17): [True: 3, False: 123k]
  ------------------
 2833|      3|                sigerrors++;
 2834|      3|            }
 2835|       |            /* adding hash context */
 2836|   123k|            if (sig) {
  ------------------
  |  Branch (2836:17): [True: 1.57k, False: 121k]
  ------------------
 2837|  1.57k|                try {
 2838|  1.57k|#if defined(ENABLE_CRYPTO_REFRESH)
 2839|  1.57k|                    if (sig->version == PGP_V6) {
  ------------------
  |  Branch (2839:25): [True: 6, False: 1.57k]
  ------------------
 2840|      6|                        add_hash_for_sig_v6(param, sig->type(), sig->halg, sig->salt);
 2841|      6|                    } else
 2842|  1.57k|#endif
 2843|  1.57k|                    {
 2844|  1.57k|                        add_hash_for_sig(param, sig->type(), sig->halg);
 2845|  1.57k|                    }
 2846|  1.57k|                } catch (const std::exception &e) {
 2847|      9|                    RNP_LOG("Failed to create hash %d for sig %d : %s.",
  ------------------
  |  |   84|      9|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      9|    do {                                                                                 \
  |  |  |  |   77|      9|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 9, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      9|            break;                                                                       \
  |  |  |  |   79|      9|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2848|      9|                            (int) sig->halg,
 2849|      9|                            (int) sig->type(),
 2850|      9|                            e.what());
 2851|      9|                    errcode = RNP_ERROR_BAD_PARAMETERS;
 2852|      9|                    goto finish;
 2853|      9|                }
 2854|  1.57k|            }
 2855|   123k|        } else {
 2856|    800|            break;
 2857|    800|        }
 2858|       |
 2859|       |        /* check if we are not it endless loop */
 2860|   127k|        if (readb == readsrc->readb) {
  ------------------
  |  Branch (2860:13): [True: 47, False: 127k]
  ------------------
 2861|     47|            errcode = RNP_ERROR_BAD_FORMAT;
 2862|     47|            goto finish;
 2863|     47|        }
 2864|       |        /* for detached signature we'll get eof */
 2865|   127k|        if (readsrc->eof()) {
  ------------------
  |  Branch (2865:13): [True: 333, False: 127k]
  ------------------
 2866|    333|            param->detached = true;
 2867|    333|            break;
 2868|    333|        }
 2869|   127k|    }
 2870|       |
 2871|       |    /* checking what we have now */
 2872|  3.92k|    if (param->onepasses.empty() && param->sigs.empty()) {
  ------------------
  |  Branch (2872:9): [True: 991, False: 2.93k]
  |  Branch (2872:37): [True: 751, False: 240]
  ------------------
 2873|    751|        RNP_LOG("no signatures");
  ------------------
  |  |   84|    751|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    751|    do {                                                                                 \
  |  |  |  |   77|    751|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 751, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    751|            break;                                                                       \
  |  |  |  |   79|    751|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2874|    751|        errcode = RNP_ERROR_BAD_PARAMETERS;
 2875|    751|        goto finish;
 2876|    751|    }
 2877|  3.17k|    if (!param->onepasses.empty() && !param->sigs.empty()) {
  ------------------
  |  Branch (2877:9): [True: 2.93k, False: 240]
  |  Branch (2877:38): [True: 230, False: 2.70k]
  ------------------
 2878|    230|        RNP_LOG("warning: one-passes are mixed with signatures");
  ------------------
  |  |   84|    230|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    230|    do {                                                                                 \
  |  |  |  |   77|    230|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 230, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    230|            break;                                                                       \
  |  |  |  |   79|    230|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2879|    230|    }
 2880|       |
 2881|  3.17k|    errcode = RNP_SUCCESS;
 2882|  4.71k|finish:
 2883|  4.71k|    if (errcode != RNP_SUCCESS) {
  ------------------
  |  Branch (2883:9): [True: 1.20k, False: 3.50k]
  ------------------
 2884|  1.20k|        src->close();
 2885|  1.20k|    }
 2886|       |
 2887|  4.71k|    return errcode;
 2888|  3.17k|}
_ZN25pgp_source_signed_param_tC2Ev:
  169|  4.71k|    pgp_source_signed_param_t() = default;
stream-parse.cpp:_ZL18cleartext_src_readP12pgp_source_tPvmPm:
 1529|    978|{
 1530|    978|    pgp_source_signed_param_t *param = (pgp_source_signed_param_t *) src->param;
 1531|    978|    if (!param) {
  ------------------
  |  Branch (1531:9): [True: 0, False: 978]
  ------------------
 1532|      0|        return false; // LCOV_EXCL_LINE
 1533|      0|    }
 1534|       |
 1535|    978|    uint8_t  srcb[CT_BUF_LEN];
 1536|    978|    uint8_t *cur, *en, *bg;
 1537|    978|    size_t   read = 0;
 1538|    978|    size_t   origlen = len;
 1539|       |
 1540|    978|    read = param->outlen - param->outpos;
 1541|    978|    if (read >= len) {
  ------------------
  |  Branch (1541:9): [True: 0, False: 978]
  ------------------
 1542|      0|        memcpy(buf, param->out + param->outpos, len);
 1543|      0|        param->outpos += len;
 1544|      0|        if (param->outpos == param->outlen) {
  ------------------
  |  Branch (1544:13): [True: 0, False: 0]
  ------------------
 1545|      0|            param->outpos = param->outlen = 0;
 1546|      0|        }
 1547|      0|        *readres = len;
 1548|      0|        return true;
 1549|    978|    } else if (read > 0) {
  ------------------
  |  Branch (1549:16): [True: 282, False: 696]
  ------------------
 1550|    282|        memcpy(buf, param->out + param->outpos, read);
 1551|    282|        len -= read;
 1552|    282|        buf = (uint8_t *) buf + read;
 1553|    282|        param->outpos = param->outlen = 0;
 1554|    282|    }
 1555|       |
 1556|    978|    if (param->clr_eod) {
  ------------------
  |  Branch (1556:9): [True: 24, False: 954]
  ------------------
 1557|     24|        *readres = origlen - len;
 1558|     24|        return true;
 1559|     24|    }
 1560|       |
 1561|  4.39k|    do {
 1562|  4.39k|        if (!param->readsrc->peek(srcb, sizeof(srcb), &read)) {
  ------------------
  |  Branch (1562:13): [True: 0, False: 4.39k]
  ------------------
 1563|      0|            return false;
 1564|  4.39k|        } else if (!read) {
  ------------------
  |  Branch (1564:20): [True: 584, False: 3.81k]
  ------------------
 1565|    584|            break;
 1566|    584|        }
 1567|       |
 1568|       |        /* processing data line by line, eol could be \n or \r\n */
 1569|  13.7M|        for (cur = srcb, bg = srcb, en = cur + read; cur < en; cur++) {
  ------------------
  |  Branch (1569:54): [True: 13.7M, False: 3.79k]
  ------------------
 1570|  13.7M|            if ((*cur == CH_LF) ||
  ------------------
  |  |   32|  13.7M|#define CH_LF ('\n')
  ------------------
  |  Branch (1570:17): [True: 105k, False: 13.6M]
  ------------------
 1571|  13.6M|                ((*cur == CH_CR) && (cur + 1 < en) && (*(cur + 1) == CH_LF))) {
  ------------------
  |  |   31|  13.6M|#define CH_CR ('\r')
  ------------------
                              ((*cur == CH_CR) && (cur + 1 < en) && (*(cur + 1) == CH_LF))) {
  ------------------
  |  |   32|  2.17M|#define CH_LF ('\n')
  ------------------
  |  Branch (1571:18): [True: 2.18M, False: 11.4M]
  |  Branch (1571:37): [True: 2.17M, False: 677]
  |  Branch (1571:55): [True: 34.2k, False: 2.14M]
  ------------------
 1572|   139k|                cleartext_process_line(src, bg, cur - bg, true);
 1573|       |                /* processing eol */
 1574|   139k|                if (param->clr_eod) {
  ------------------
  |  Branch (1574:21): [True: 20, False: 139k]
  ------------------
 1575|     20|                    break;
 1576|     20|                }
 1577|       |
 1578|       |                /* processing eol */
 1579|   139k|                param->clr_fline = false;
 1580|   139k|                param->clr_mline = false;
 1581|   139k|                if (*cur == CH_CR) {
  ------------------
  |  |   31|   139k|#define CH_CR ('\r')
  ------------------
  |  Branch (1581:21): [True: 34.2k, False: 105k]
  ------------------
 1582|  34.2k|                    param->out[param->outlen++] = *cur++;
 1583|  34.2k|                }
 1584|   139k|                param->out[param->outlen++] = *cur;
 1585|   139k|                bg = cur + 1;
 1586|   139k|            }
 1587|  13.7M|        }
 1588|       |
 1589|       |        /* if line is larger then 4k then just dump it out */
 1590|  3.81k|        if ((bg == srcb) && !param->clr_eod) {
  ------------------
  |  Branch (1590:13): [True: 2.09k, False: 1.72k]
  |  Branch (1590:29): [True: 2.08k, False: 1]
  ------------------
 1591|       |            /* if last char is \r, and it's not the end of stream, then do not dump it */
 1592|  2.08k|            if ((en > bg) && (*(en - 1) == CH_CR) && (read > 1)) {
  ------------------
  |  |   31|  2.08k|#define CH_CR ('\r')
  ------------------
  |  Branch (1592:17): [True: 2.08k, False: 0]
  |  Branch (1592:30): [True: 431, False: 1.65k]
  |  Branch (1592:54): [True: 377, False: 54]
  ------------------
 1593|    377|                en--;
 1594|    377|            }
 1595|  2.08k|            cleartext_process_line(src, bg, en - bg, false);
 1596|  2.08k|            param->clr_mline = true;
 1597|  2.08k|            bg = en;
 1598|  2.08k|        }
 1599|  3.81k|        param->readsrc->skip(bg - srcb);
 1600|       |
 1601|       |        /* put data from the param->out to buf */
 1602|  3.81k|        read = param->outlen > len ? len : param->outlen;
  ------------------
  |  Branch (1602:16): [True: 282, False: 3.53k]
  ------------------
 1603|  3.81k|        memcpy(buf, param->out, read);
 1604|  3.81k|        buf = (uint8_t *) buf + read;
 1605|  3.81k|        len -= read;
 1606|       |
 1607|  3.81k|        if (read == param->outlen) {
  ------------------
  |  Branch (1607:13): [True: 3.53k, False: 282]
  ------------------
 1608|  3.53k|            param->outlen = 0;
 1609|  3.53k|        } else {
 1610|    282|            param->outpos = read;
 1611|    282|        }
 1612|       |
 1613|       |        /* we got to the signature marker */
 1614|  3.81k|        if (param->clr_eod || !len) {
  ------------------
  |  Branch (1614:13): [True: 25, False: 3.78k]
  |  Branch (1614:31): [True: 345, False: 3.44k]
  ------------------
 1615|    370|            break;
 1616|    370|        }
 1617|  3.81k|    } while (1);
  ------------------
  |  Branch (1617:14): [True: 3.44k, Folded]
  ------------------
 1618|       |
 1619|    954|    *readres = origlen - len;
 1620|    954|    return true;
 1621|    954|}
stream-parse.cpp:_ZL22cleartext_process_lineP12pgp_source_tPKhmb:
 1478|   142k|{
 1479|   142k|    pgp_source_signed_param_t *param = (pgp_source_signed_param_t *) src->param;
 1480|   142k|    uint8_t *                  bufen = (uint8_t *) buf + len - 1;
 1481|       |
 1482|       |    /* check for dashes only if we are not in the middle */
 1483|   142k|    if (!param->clr_mline && (len > 0) && (buf[0] == CH_DASH)) {
  ------------------
  |  |   34|  70.3k|#define CH_DASH ('-')
  ------------------
  |  Branch (1483:9): [True: 140k, False: 1.84k]
  |  Branch (1483:30): [True: 70.3k, False: 69.7k]
  |  Branch (1483:43): [True: 3.90k, False: 66.4k]
  ------------------
 1484|  3.90k|        if ((len > 1) && (buf[1] == CH_SPACE)) {
  ------------------
  |  |   35|  3.60k|#define CH_SPACE (' ')
  ------------------
  |  Branch (1484:13): [True: 3.60k, False: 295]
  |  Branch (1484:26): [True: 399, False: 3.20k]
  ------------------
 1485|    399|            buf += 2;
 1486|    399|            len -= 2;
 1487|  3.50k|        } else if ((len > 5) && !memcmp(buf, ST_DASHES, 5)) {
  ------------------
  |  |   45|  2.69k|#define ST_DASHES ("-----")
  ------------------
  |  Branch (1487:20): [True: 2.69k, False: 809]
  |  Branch (1487:33): [True: 25, False: 2.66k]
  ------------------
 1488|     25|            param->clr_eod = true;
 1489|     25|            return;
 1490|  3.47k|        } else {
 1491|  3.47k|            RNP_LOG("dash at the line begin");
  ------------------
  |  |   84|  3.47k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  3.47k|    do {                                                                                 \
  |  |  |  |   77|  3.47k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 3.47k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  3.47k|            break;                                                                       \
  |  |  |  |   79|  3.47k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1492|  3.47k|        }
 1493|  3.90k|    }
 1494|       |
 1495|       |    /* hash eol if it is not the first line and we are not in the middle */
 1496|   141k|    if (!param->clr_fline && !param->clr_mline) {
  ------------------
  |  Branch (1496:9): [True: 140k, False: 1.02k]
  |  Branch (1496:30): [True: 139k, False: 1.13k]
  ------------------
 1497|       |        /* we hash \r\n after the previous line to not hash the last eol before the sig */
 1498|   139k|        signed_src_update(src, ST_CRLF, 2);
  ------------------
  |  |   40|   139k|#define ST_CRLF ("\r\n")
  ------------------
 1499|   139k|    }
 1500|       |
 1501|   141k|    if (!len) {
  ------------------
  |  Branch (1501:9): [True: 69.7k, False: 72.2k]
  ------------------
 1502|  69.7k|        return;
 1503|  69.7k|    }
 1504|       |
 1505|  72.2k|    if (len + param->outlen > sizeof(param->out)) {
  ------------------
  |  Branch (1505:9): [True: 0, False: 72.2k]
  ------------------
 1506|       |        /* LCOV_EXCL_START */
 1507|      0|        RNP_LOG("wrong state");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1508|      0|        return;
 1509|       |        /* LCOV_EXCL_END */
 1510|      0|    }
 1511|       |
 1512|       |    /* if we have eol after this line then strip trailing spaces and tabs */
 1513|  72.2k|    if (eol) {
  ------------------
  |  Branch (1513:9): [True: 70.1k, False: 2.08k]
  ------------------
 1514|  86.9k|        for (; (bufen >= buf) &&
  ------------------
  |  Branch (1514:16): [True: 86.2k, False: 655]
  ------------------
 1515|  86.2k|               ((*bufen == CH_SPACE) || (*bufen == CH_TAB) || (*bufen == CH_CR));
  ------------------
  |  |   35|  86.2k|#define CH_SPACE (' ')
  ------------------
                             ((*bufen == CH_SPACE) || (*bufen == CH_TAB) || (*bufen == CH_CR));
  ------------------
  |  |   36|  83.1k|#define CH_TAB ('\t')
  ------------------
                             ((*bufen == CH_SPACE) || (*bufen == CH_TAB) || (*bufen == CH_CR));
  ------------------
  |  |   31|  82.7k|#define CH_CR ('\r')
  ------------------
  |  Branch (1515:17): [True: 3.18k, False: 83.1k]
  |  Branch (1515:41): [True: 343, False: 82.7k]
  |  Branch (1515:63): [True: 13.2k, False: 69.4k]
  ------------------
 1516|  70.1k|             bufen--)
 1517|  16.8k|            ;
 1518|  70.1k|    }
 1519|       |
 1520|  72.2k|    if ((len = bufen + 1 - buf)) {
  ------------------
  |  Branch (1520:9): [True: 71.5k, False: 655]
  ------------------
 1521|  71.5k|        memcpy(param->out + param->outlen, buf, len);
 1522|  71.5k|        param->outlen += len;
 1523|  71.5k|        signed_src_update(src, buf, len);
 1524|  71.5k|    }
 1525|  72.2k|}
stream-parse.cpp:_ZL15signed_src_readP12pgp_source_tPvmPm:
 1208|  11.5k|{
 1209|  11.5k|    pgp_source_signed_param_t *param = (pgp_source_signed_param_t *) src->param;
 1210|  11.5k|    if (!param) {
  ------------------
  |  Branch (1210:9): [True: 0, False: 11.5k]
  ------------------
 1211|      0|        return false;
 1212|      0|    }
 1213|  11.5k|    return param->readsrc->read(buf, len, read);
 1214|  11.5k|}
stream-parse.cpp:_ZL16signed_src_closeP12pgp_source_t:
 1218|  4.71k|{
 1219|  4.71k|    pgp_source_signed_param_t *param = (pgp_source_signed_param_t *) src->param;
 1220|  4.71k|    delete param;
 1221|       |    src->param = NULL;
 1222|  4.71k|}
_ZN25pgp_source_signed_param_tD2Ev:
  170|  4.71k|    ~pgp_source_signed_param_t() = default;
stream-parse.cpp:_ZL17signed_src_finishP12pgp_source_t:
 1327|  2.10k|{
 1328|  2.10k|    pgp_source_signed_param_t *param = (pgp_source_signed_param_t *) src->param;
 1329|  2.10k|    rnp_result_t               ret = RNP_ERROR_GENERIC;
 1330|       |
 1331|  2.10k|    if (param->cleartext) {
  ------------------
  |  Branch (1331:9): [True: 324, False: 1.77k]
  ------------------
 1332|    324|        ret = signed_read_cleartext_signatures(*src, param);
 1333|  1.77k|    } else {
 1334|  1.77k|        ret = signed_read_signatures(src);
 1335|  1.77k|    }
 1336|       |
 1337|  2.10k|    if (ret) {
  ------------------
  |  Branch (1337:9): [True: 1.05k, False: 1.04k]
  ------------------
 1338|  1.05k|        return ret;
 1339|  1.05k|    }
 1340|       |
 1341|       |    /* See https://dev.gnupg.org/T6615 for the details */
 1342|  1.04k|    if (param->cleartext) {
  ------------------
  |  Branch (1342:9): [True: 4, False: 1.04k]
  ------------------
 1343|      4|        param->lhdr.format = 't';
 1344|      4|        param->lhdr.fname_len = 0;
 1345|      4|        param->lhdr.timestamp = 0;
 1346|      4|        param->has_lhdr = true;
 1347|      4|    }
 1348|       |
 1349|  1.04k|    if (!src->eof()) {
  ------------------
  |  Branch (1349:9): [True: 64, False: 980]
  ------------------
 1350|     64|        RNP_LOG("warning: unexpected data on the stream end");
  ------------------
  |  |   84|     64|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     64|    do {                                                                                 \
  |  |  |  |   77|     64|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 64, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     64|            break;                                                                       \
  |  |  |  |   79|     64|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1351|     64|    }
 1352|       |
 1353|       |    /* validating signatures */
 1354|  1.04k|    ret = RNP_ERROR_SIGNATURE_INVALID;
 1355|  55.2k|    for (auto &sinfo : param->siginfos) {
  ------------------
  |  Branch (1355:22): [True: 55.2k, False: 1.04k]
  ------------------
 1356|  55.2k|        if (!sinfo.sig) {
  ------------------
  |  Branch (1356:13): [True: 54.4k, False: 882]
  ------------------
 1357|  54.4k|            continue;
 1358|  54.4k|        }
 1359|    882|#if defined(ENABLE_CRYPTO_REFRESH)
 1360|    882|        if (sinfo.sig->version == PGP_V6 && param->cleartext) {
  ------------------
  |  Branch (1360:13): [True: 4, False: 878]
  |  Branch (1360:45): [True: 1, False: 3]
  ------------------
 1361|      1|            RNP_LOG("Skipping signature: Cleartext signature verification currently does not "
  ------------------
  |  |   84|      1|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      1|    do {                                                                                 \
  |  |  |  |   77|      1|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 1, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      1|            break;                                                                       \
  |  |  |  |   79|      1|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1362|      1|                    "support v6 signatures");
 1363|      1|            continue;
 1364|      1|        }
 1365|    881|#endif
 1366|    881|        try {
 1367|    881|            signed_validate_signature(*param, sinfo);
 1368|    881|        } catch (const std::exception &e) {
 1369|       |            /* LCOV_EXCL_START */
 1370|      0|            RNP_LOG("Signature validation failed: %s", e.what());
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1371|      0|            sinfo.validity.mark_validated(RNP_ERROR_SIG_ERROR);
 1372|       |            /* LCOV_EXCL_END */
 1373|      0|        }
 1374|    881|        if (sinfo.validity.valid()) {
  ------------------
  |  Branch (1374:13): [True: 0, False: 881]
  ------------------
 1375|       |            /* If we have at least one valid signature then data is safe to process */
 1376|      0|            ret = RNP_SUCCESS;
 1377|      0|        }
 1378|    881|    }
 1379|       |
 1380|       |    /* call the callback with signature infos */
 1381|  1.04k|    if (param->handler->on_signatures) {
  ------------------
  |  Branch (1381:9): [True: 1.04k, False: 0]
  ------------------
 1382|  1.04k|        param->handler->on_signatures(param->siginfos, param->handler->param);
 1383|  1.04k|    }
 1384|  1.04k|    return ret;
 1385|  1.04k|}
stream-parse.cpp:_ZL32signed_read_cleartext_signaturesR12pgp_source_tP25pgp_source_signed_param_t:
 1276|    324|{
 1277|    324|    try {
 1278|    324|        rnp::ArmoredSource armor(*param->readsrc);
 1279|  16.7k|        while (!armor.eof()) {
  ------------------
  |  Branch (1279:16): [True: 16.3k, False: 319]
  ------------------
 1280|  16.3k|            auto ret = signed_read_single_signature(param, &armor.src(), NULL);
 1281|  16.3k|            if (ret) {
  ------------------
  |  Branch (1281:17): [True: 5, False: 16.3k]
  ------------------
 1282|      5|                return ret;
 1283|      5|            }
 1284|  16.3k|        }
 1285|    319|        return RNP_SUCCESS;
 1286|    324|    } catch (const rnp::rnp_exception &e) {
 1287|       |        /* LCOV_EXCL_START */
 1288|    315|        RNP_LOG("%s", e.what());
  ------------------
  |  |   84|    315|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    315|    do {                                                                                 \
  |  |  |  |   77|    315|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 315, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    315|            break;                                                                       \
  |  |  |  |   79|    315|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1289|    315|        return e.code();
 1290|       |        /* LCOV_EXCL_END */
 1291|    315|    } catch (const std::exception &e) {
 1292|       |        /* LCOV_EXCL_START */
 1293|      0|        RNP_LOG("%s", e.what());
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1294|      0|        return RNP_ERROR_BAD_FORMAT;
 1295|       |        /* LCOV_EXCL_END */
 1296|      0|    }
 1297|    324|}
stream-parse.cpp:_ZL22signed_read_signaturesP12pgp_source_t:
 1301|  1.77k|{
 1302|  1.77k|    pgp_source_signed_param_t *param = (pgp_source_signed_param_t *) src->param;
 1303|       |
 1304|       |    /* reading signatures */
 1305|  2.05k|    for (auto op = param->onepasses.rbegin(); op != param->onepasses.rend(); op++) {
  ------------------
  |  Branch (1305:47): [True: 1.83k, False: 219]
  ------------------
 1306|  1.83k|        pgp::pkt::Signature *sig = NULL;
 1307|  1.83k|        rnp_result_t         ret = signed_read_single_signature(param, src, &sig);
 1308|       |        /* we have more onepasses then signatures */
 1309|  1.83k|        if (ret == RNP_ERROR_READ) {
  ------------------
  |  Branch (1309:13): [True: 1.41k, False: 420]
  ------------------
 1310|  1.41k|            RNP_LOG("Warning: premature end of signatures");
  ------------------
  |  |   84|  1.41k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  1.41k|    do {                                                                                 \
  |  |  |  |   77|  1.41k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 1.41k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  1.41k|            break;                                                                       \
  |  |  |  |   79|  1.41k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1311|  1.41k|            if (!param->siginfos.empty()) {
  ------------------
  |  Branch (1311:17): [True: 821, False: 590]
  ------------------
 1312|    821|                return RNP_SUCCESS;
 1313|    821|            }
 1314|  1.41k|        }
 1315|  1.01k|        if (ret) {
  ------------------
  |  Branch (1315:13): [True: 739, False: 271]
  ------------------
 1316|    739|            return ret;
 1317|    739|        }
 1318|    271|        if (sig && !sig->matches_onepass(*op)) {
  ------------------
  |  Branch (1318:13): [True: 48, False: 223]
  |  Branch (1318:20): [True: 47, False: 1]
  ------------------
 1319|     47|            RNP_LOG("Warning: signature doesn't match one-pass");
  ------------------
  |  |   84|     47|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     47|    do {                                                                                 \
  |  |  |  |   77|     47|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 47, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     47|            break;                                                                       \
  |  |  |  |   79|     47|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1320|     47|        }
 1321|    271|    }
 1322|    219|    return RNP_SUCCESS;
 1323|  1.77k|}
stream-parse.cpp:_ZL25signed_validate_signatureR25pgp_source_signed_param_tRN3rnp13SignatureInfoE:
 1051|    881|{
 1052|       |    /* Check signature type */
 1053|    881|    if (!sinfo.sig->is_document()) {
  ------------------
  |  Branch (1053:9): [True: 470, False: 411]
  ------------------
 1054|    470|        RNP_LOG("Invalid document signature type: %d", (int) sinfo.sig->type());
  ------------------
  |  |   84|    470|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    470|    do {                                                                                 \
  |  |  |  |   77|    470|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 470, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    470|            break;                                                                       \
  |  |  |  |   79|    470|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1055|    470|        sinfo.validity.add_error(RNP_ERROR_SIG_NOT_DOCUMENT);
 1056|    470|    }
 1057|       |    /* Find signing key */
 1058|    881|    std::unique_ptr<rnp::KeySearch> search;
 1059|       |    /* Get signer's fp or keyid */
 1060|    881|    if (sinfo.sig->has_keyfp()) {
  ------------------
  |  Branch (1060:9): [True: 192, False: 689]
  ------------------
 1061|    192|        search = rnp::KeySearch::create(sinfo.sig->keyfp());
 1062|    689|    } else if (sinfo.sig->has_keyid()) {
  ------------------
  |  Branch (1062:16): [True: 53, False: 636]
  ------------------
 1063|     53|        search = rnp::KeySearch::create(sinfo.sig->keyid());
 1064|    636|    } else {
 1065|    636|        RNP_LOG("cannot get signer's key fp or id from signature.");
  ------------------
  |  |   84|    636|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    636|    do {                                                                                 \
  |  |  |  |   77|    636|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 636, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    636|            break;                                                                       \
  |  |  |  |   79|    636|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1066|    636|        sinfo.validity.mark_validated(RNP_ERROR_SIG_NO_SIGNER_ID);
 1067|    636|        return;
 1068|    636|    }
 1069|       |    /* Get the public key */
 1070|    245|    auto key = param.handler->key_provider->request_key(*search, PGP_OP_VERIFY);
 1071|    245|    if (!key) {
  ------------------
  |  Branch (1071:9): [True: 245, False: 0]
  ------------------
 1072|       |        /* fallback to secret key */
 1073|    245|        if (!(key = param.handler->key_provider->request_key(*search, PGP_OP_VERIFY, true))) {
  ------------------
  |  Branch (1073:13): [True: 245, False: 0]
  ------------------
 1074|    245|            RNP_LOG("signer's key not found");
  ------------------
  |  |   84|    245|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    245|    do {                                                                                 \
  |  |  |  |   77|    245|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 245, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    245|            break;                                                                       \
  |  |  |  |   79|    245|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1075|    245|            sinfo.validity.mark_validated(RNP_ERROR_SIG_NO_SIGNER_KEY);
 1076|    245|            return;
 1077|    245|        }
 1078|    245|    }
 1079|      0|    if (!key->can_sign()) {
  ------------------
  |  Branch (1079:9): [True: 0, False: 0]
  ------------------
 1080|      0|        RNP_LOG("key is not usable for verification");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1081|      0|        sinfo.validity.mark_validated(RNP_ERROR_SIG_UNUSABLE_KEY);
 1082|      0|        return;
 1083|      0|    }
 1084|       |    /* Get the hash context and clone it. */
 1085|      0|    auto hash = get_hash_for_sig(param, sinfo);
 1086|      0|    if (!hash) {
  ------------------
  |  Branch (1086:9): [True: 0, False: 0]
  ------------------
 1087|      0|        RNP_LOG("failed to get hash context.");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1088|      0|        sinfo.validity.mark_validated(RNP_ERROR_SIG_NO_HASH_CTX);
 1089|      0|        return;
 1090|      0|    }
 1091|      0|    auto shash = hash->clone();
 1092|      0|    key->validate_sig(
 1093|      0|      sinfo, *shash, param.handler->ctx->sec_ctx, param.has_lhdr ? &param.lhdr : NULL);
  ------------------
  |  Branch (1093:51): [True: 0, False: 0]
  ------------------
 1094|      0|}
stream-parse.cpp:_ZL25init_cleartext_signed_srcP12pgp_source_t:
 2673|    561|{
 2674|    561|    char                       buf[64];
 2675|    561|    size_t                     hdrlen = strlen(ST_CLEAR_BEGIN);
  ------------------
  |  |   48|    561|#define ST_CLEAR_BEGIN ("-----BEGIN PGP SIGNED MESSAGE-----")
  ------------------
 2676|    561|    pgp_source_signed_param_t *param = (pgp_source_signed_param_t *) src->param;
 2677|       |
 2678|       |    /* checking header line */
 2679|    561|    if (!param->readsrc->read_eq(buf, hdrlen)) {
  ------------------
  |  Branch (2679:9): [True: 0, False: 561]
  ------------------
 2680|      0|        RNP_LOG("failed to read header");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2681|      0|        return RNP_ERROR_READ;
 2682|      0|    }
 2683|       |
 2684|    561|    if (memcmp(ST_CLEAR_BEGIN, buf, hdrlen)) {
  ------------------
  |  |   48|    561|#define ST_CLEAR_BEGIN ("-----BEGIN PGP SIGNED MESSAGE-----")
  ------------------
  |  Branch (2684:9): [True: 16, False: 545]
  ------------------
 2685|     16|        RNP_LOG("wrong header");
  ------------------
  |  |   84|     16|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     16|    do {                                                                                 \
  |  |  |  |   77|     16|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 16, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     16|            break;                                                                       \
  |  |  |  |   79|     16|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2686|     16|        return RNP_ERROR_BAD_FORMAT;
 2687|     16|    }
 2688|       |
 2689|       |    /* eol */
 2690|    545|    if (!param->readsrc->skip_eol()) {
  ------------------
  |  Branch (2690:9): [True: 4, False: 541]
  ------------------
 2691|      4|        RNP_LOG("no eol after the cleartext header");
  ------------------
  |  |   84|      4|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      4|    do {                                                                                 \
  |  |  |  |   77|      4|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 4, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      4|            break;                                                                       \
  |  |  |  |   79|      4|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2692|      4|        return RNP_ERROR_BAD_FORMAT;
 2693|      4|    }
 2694|       |
 2695|       |    /* parsing Hash headers */
 2696|    541|    if (!cleartext_parse_headers(param)) {
  ------------------
  |  Branch (2696:9): [True: 217, False: 324]
  ------------------
 2697|    217|        return RNP_ERROR_BAD_FORMAT;
 2698|    217|    }
 2699|       |
 2700|       |    /* now we are good to go */
 2701|    324|    param->clr_fline = true;
 2702|    324|    return RNP_SUCCESS;
 2703|    541|}
stream-parse.cpp:_ZL23cleartext_parse_headersP25pgp_source_signed_param_t:
 1416|    541|{
 1417|    541|    char           hdr[1024] = {0};
 1418|    541|    char *         hval;
 1419|    541|    pgp_hash_alg_t halg;
 1420|    541|    size_t         hdrlen;
 1421|       |
 1422|  10.9k|    do {
 1423|  10.9k|        if (!param->readsrc->peek_line(hdr, sizeof(hdr), &hdrlen)) {
  ------------------
  |  Branch (1423:13): [True: 217, False: 10.7k]
  ------------------
 1424|    217|            RNP_LOG("failed to peek line");
  ------------------
  |  |   84|    217|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    217|    do {                                                                                 \
  |  |  |  |   77|    217|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 217, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    217|            break;                                                                       \
  |  |  |  |   79|    217|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1425|    217|            return false;
 1426|    217|        }
 1427|       |
 1428|  10.7k|        if (!hdrlen) {
  ------------------
  |  Branch (1428:13): [True: 269, False: 10.4k]
  ------------------
 1429|    269|            break;
 1430|    269|        }
 1431|       |
 1432|  10.4k|        if (rnp::is_blank_line(hdr, hdrlen)) {
  ------------------
  |  Branch (1432:13): [True: 55, False: 10.4k]
  ------------------
 1433|     55|            param->readsrc->skip(hdrlen);
 1434|     55|            break;
 1435|     55|        }
 1436|       |
 1437|  10.4k|        try {
 1438|  10.4k|            if ((hdrlen >= 6) && !strncmp(hdr, ST_HEADER_HASH, 6)) {
  ------------------
  |  |   52|  9.24k|#define ST_HEADER_HASH ("Hash: ")
  ------------------
  |  Branch (1438:17): [True: 9.24k, False: 1.15k]
  |  Branch (1438:34): [True: 5.91k, False: 3.33k]
  ------------------
 1439|  5.91k|                hval = hdr + 6;
 1440|       |
 1441|  5.91k|                std::string remainder = hval;
 1442|       |
 1443|  5.91k|                const std::string        delimiters = ", \t";
 1444|  5.91k|                std::vector<std::string> tokens;
 1445|       |
 1446|  5.91k|                tokenize(remainder, delimiters, tokens);
 1447|       |
 1448|  14.7k|                for (const auto &token : tokens) {
  ------------------
  |  Branch (1448:40): [True: 14.7k, False: 5.91k]
  ------------------
 1449|  14.7k|                    if ((halg = rnp::Hash::alg(token.c_str())) == PGP_HASH_UNKNOWN) {
  ------------------
  |  Branch (1449:25): [True: 11.7k, False: 2.94k]
  ------------------
 1450|  11.7k|                        RNP_LOG("unknown halg: %s", token.c_str());
  ------------------
  |  |   84|  11.7k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  11.7k|    do {                                                                                 \
  |  |  |  |   77|  11.7k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 11.7k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  11.7k|            break;                                                                       \
  |  |  |  |   79|  11.7k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1451|  11.7k|                        continue;
 1452|  11.7k|                    }
 1453|  2.94k|                    add_hash_for_sig(param, PGP_SIG_TEXT, halg);
 1454|  2.94k|                }
 1455|  5.91k|            } else {
 1456|  4.49k|                RNP_LOG("unknown header '%s'", hdr);
  ------------------
  |  |   84|  4.49k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  4.49k|    do {                                                                                 \
  |  |  |  |   77|  4.49k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 4.49k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  4.49k|            break;                                                                       \
  |  |  |  |   79|  4.49k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1457|  4.49k|            }
 1458|  10.4k|        } catch (const std::exception &e) {
 1459|       |            /* LCOV_EXCL_START */
 1460|      0|            RNP_LOG("%s", e.what());
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1461|      0|            return false;
 1462|       |            /* LCOV_EXCL_END */
 1463|      0|        }
 1464|       |
 1465|  10.4k|        param->readsrc->skip(hdrlen);
 1466|       |
 1467|  10.4k|        if (!param->readsrc->skip_eol()) {
  ------------------
  |  Branch (1467:13): [True: 0, False: 10.4k]
  ------------------
 1468|      0|            return false;
 1469|      0|        }
 1470|  10.4k|    } while (1);
  ------------------
  |  Branch (1470:14): [True: 10.4k, Folded]
  ------------------
 1471|       |
 1472|       |    /* we have exactly one empty line after the headers */
 1473|    324|    return param->readsrc->skip_eol();
 1474|    541|}
stream-parse.cpp:_ZL8tokenizeINSt3__16vectorINS0_12basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEENS5_IS7_EEEEEvRKNT_10value_typeESD_RSA_:
 1395|  5.91k|{
 1396|  5.91k|    typedef typename T::value_type::size_type string_size_t;
 1397|  5.91k|    const string_size_t                       npos = T::value_type::npos;
 1398|       |
 1399|  5.91k|    result.clear();
 1400|  5.91k|    string_size_t current;
 1401|  5.91k|    string_size_t next = 0;
 1402|  16.2k|    do {
 1403|  16.2k|        next = str.find_first_not_of(delims, next);
 1404|  16.2k|        if (next == npos) {
  ------------------
  |  Branch (1404:13): [True: 1.55k, False: 14.7k]
  ------------------
 1405|  1.55k|            break;
 1406|  1.55k|        }
 1407|  14.7k|        current = next;
 1408|  14.7k|        next = str.find_first_of(delims, current);
 1409|  14.7k|        string_size_t count = (next == npos) ? npos : (next - current);
  ------------------
  |  Branch (1409:31): [True: 4.35k, False: 10.3k]
  ------------------
 1410|  14.7k|        result.push_back(str.substr(current, count));
 1411|  14.7k|    } while (next != npos);
  ------------------
  |  Branch (1411:14): [True: 10.3k, False: 4.35k]
  ------------------
 1412|  5.91k|}
stream-parse.cpp:_ZL19add_hash_for_sig_v6P25pgp_source_signed_param_t14pgp_sig_type_t14pgp_hash_alg_tNSt3__16vectorIhNS3_9allocatorIhEEEE:
 1022|  1.98k|{
 1023|       |    /* Cleartext always uses param->hashes instead of param->txt_hashes */
 1024|  1.98k|    if (!param->cleartext && (stype == PGP_SIG_TEXT)) {
  ------------------
  |  Branch (1024:9): [True: 1.98k, False: 0]
  |  Branch (1024:30): [True: 1.10k, False: 881]
  ------------------
 1025|  1.10k|        param->txt_hashes.add_alg(halg, salt);
 1026|  1.10k|    }
 1027|  1.98k|    param->hashes.add_alg(halg, salt);
 1028|  1.98k|}
stream-parse.cpp:_ZL16add_hash_for_sigP25pgp_source_signed_param_t14pgp_sig_type_t14pgp_hash_alg_t:
 1008|  9.94k|{
 1009|       |    /* Cleartext always uses param->hashes instead of param->txt_hashes */
 1010|  9.94k|    if (!param->cleartext && (stype == PGP_SIG_TEXT)) {
  ------------------
  |  Branch (1010:9): [True: 7.00k, False: 2.94k]
  |  Branch (1010:30): [True: 3.35k, False: 3.65k]
  ------------------
 1011|  3.35k|        param->txt_hashes.add_alg(halg);
 1012|  3.35k|    }
 1013|  9.94k|    param->hashes.add_alg(halg);
 1014|  9.94k|}
stream-parse.cpp:_ZL28signed_read_single_signatureP25pgp_source_signed_param_tP12pgp_source_tPPN3pgp3pkt9SignatureE:
 1230|   141k|{
 1231|   141k|    uint8_t ptag;
 1232|   141k|    if (!readsrc->peek_eq(&ptag, 1)) {
  ------------------
  |  Branch (1232:9): [True: 1.41k, False: 140k]
  ------------------
 1233|  1.41k|        RNP_LOG("failed to read signature packet header");
  ------------------
  |  |   84|  1.41k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  1.41k|    do {                                                                                 \
  |  |  |  |   77|  1.41k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 1.41k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  1.41k|            break;                                                                       \
  |  |  |  |   79|  1.41k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1234|  1.41k|        return RNP_ERROR_READ;
 1235|  1.41k|    }
 1236|       |
 1237|   140k|    int ptype = get_packet_type(ptag);
 1238|   140k|    if (ptype != PGP_PKT_SIGNATURE) {
  ------------------
  |  Branch (1238:9): [True: 152, False: 139k]
  ------------------
 1239|    152|        RNP_LOG("unexpected packet %d", ptype);
  ------------------
  |  |   84|    152|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    152|    do {                                                                                 \
  |  |  |  |   77|    152|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 152, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    152|            break;                                                                       \
  |  |  |  |   79|    152|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1240|    152|        return RNP_ERROR_BAD_FORMAT;
 1241|    152|    }
 1242|       |
 1243|   139k|    if (param->siginfos.size() >= MAX_SIGNATURES) {
  ------------------
  |  | 1224|   139k|#define MAX_SIGNATURES 16384
  ------------------
  |  Branch (1243:9): [True: 4, False: 139k]
  ------------------
 1244|      4|        RNP_LOG("Too many signatures in the stream.");
  ------------------
  |  |   84|      4|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      4|    do {                                                                                 \
  |  |  |  |   77|      4|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 4, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      4|            break;                                                                       \
  |  |  |  |   79|      4|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1245|      4|        return RNP_ERROR_BAD_FORMAT;
 1246|      4|    }
 1247|       |
 1248|   139k|    try {
 1249|   139k|        param->siginfos.emplace_back();
 1250|   139k|        rnp::SignatureInfo &siginfo = param->siginfos.back();
 1251|   139k|        pgp::pkt::Signature readsig;
 1252|   139k|        if (readsig.parse(*readsrc)) {
  ------------------
  |  Branch (1252:13): [True: 138k, False: 1.62k]
  ------------------
 1253|   138k|            RNP_LOG("failed to parse signature");
  ------------------
  |  |   84|   138k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|   138k|    do {                                                                                 \
  |  |  |  |   77|   138k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 138k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|   138k|            break;                                                                       \
  |  |  |  |   79|   138k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1254|   138k|            siginfo.validity.add_error(RNP_ERROR_SIG_PARSE_ERROR);
 1255|   138k|            if (sig) {
  ------------------
  |  Branch (1255:17): [True: 121k, False: 16.3k]
  ------------------
 1256|   121k|                *sig = NULL;
 1257|   121k|            }
 1258|   138k|            return RNP_SUCCESS;
 1259|   138k|        }
 1260|  1.62k|        param->sigs.push_back(std::move(readsig));
 1261|  1.62k|        siginfo.sig = &param->sigs.back();
 1262|  1.62k|        if (sig) {
  ------------------
  |  Branch (1262:13): [True: 1.62k, False: 1]
  ------------------
 1263|  1.62k|            *sig = siginfo.sig;
 1264|  1.62k|        }
 1265|  1.62k|        return RNP_SUCCESS;
 1266|   139k|    } catch (const std::exception &e) {
 1267|       |        /* LCOV_EXCL_START */
 1268|      0|        RNP_LOG("%s", e.what());
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1269|      0|        return RNP_ERROR_OUT_OF_MEMORY;
 1270|       |        /* LCOV_EXCL_END */
 1271|      0|    }
 1272|   139k|}
stream-parse.cpp:_ZL23init_cleartext_sequenceR20pgp_processing_ctx_tR12pgp_source_t:
 3014|    559|{
 3015|    559|    pgp_source_t clrsrc = {};
 3016|    559|    rnp_result_t res;
 3017|       |
 3018|    559|    if ((res = init_signed_src(&ctx.handler, &clrsrc, &src))) {
  ------------------
  |  Branch (3018:9): [True: 235, False: 324]
  ------------------
 3019|    235|        return res;
 3020|    235|    }
 3021|    324|    try {
 3022|    324|        ctx.sources.push_back(clrsrc);
 3023|    324|    } catch (const std::exception &e) {
 3024|       |        /* LCOV_EXCL_START */
 3025|      0|        RNP_LOG("%s", e.what());
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3026|      0|        clrsrc.close();
 3027|      0|        return RNP_ERROR_OUT_OF_MEMORY;
 3028|       |        /* LCOV_EXCL_END */
 3029|      0|    }
 3030|    324|    return RNP_SUCCESS;
 3031|    324|}
stream-parse.cpp:_ZL21init_armored_sequenceR20pgp_processing_ctx_tR12pgp_source_t:
 3035|    856|{
 3036|    856|    pgp_source_t armorsrc = {};
 3037|    856|    rnp_result_t res;
 3038|       |
 3039|    856|    if ((res = init_armored_src(&armorsrc, &src))) {
  ------------------
  |  Branch (3039:9): [True: 385, False: 471]
  ------------------
 3040|    385|        return res;
 3041|    385|    }
 3042|       |
 3043|    471|    try {
 3044|    471|        ctx.sources.push_back(armorsrc);
 3045|    471|    } catch (const std::exception &e) {
 3046|       |        /* LCOV_EXCL_START */
 3047|      0|        RNP_LOG("%s", e.what());
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3048|      0|        armorsrc.close();
 3049|      0|        return RNP_ERROR_OUT_OF_MEMORY;
 3050|       |        /* LCOV_EXCL_END */
 3051|      0|    }
 3052|    471|    return init_packet_sequence(ctx, ctx.sources.back());
 3053|    471|}
stream-parse.cpp:_ZL17signed_src_updateP12pgp_source_tPKvm:
 1118|   215k|{
 1119|   215k|    if (!len) {
  ------------------
  |  Branch (1119:9): [True: 0, False: 215k]
  ------------------
 1120|      0|        return;
 1121|      0|    }
 1122|       |    /* check for extremely unlikely pointer overflow/wrap case */
 1123|   215k|    if (((uint8_t *) buf + len) < ((uint8_t *) buf + len - 1)) {
  ------------------
  |  Branch (1123:9): [True: 0, False: 215k]
  ------------------
 1124|      0|        signed_src_update(src, buf, len - 1);
 1125|      0|        uint8_t last = *((uint8_t *) buf + len - 1);
 1126|      0|        signed_src_update(src, &last, 1);
 1127|      0|    }
 1128|   215k|    pgp_source_signed_param_t *param = (pgp_source_signed_param_t *) src->param;
 1129|   215k|    try {
 1130|   215k|        param->hashes.add(buf, len);
 1131|   215k|    } catch (const std::exception &e) {
 1132|      0|        RNP_LOG("%s", e.what()); // LCOV_EXCL_LINE
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1133|      0|    }
 1134|       |    /* update text-mode sig hashes */
 1135|   215k|    if (param->txt_hashes.hashes.empty()) {
  ------------------
  |  Branch (1135:9): [True: 211k, False: 4.07k]
  ------------------
 1136|   211k|        return;
 1137|   211k|    }
 1138|       |
 1139|  4.07k|    uint8_t *ch = (uint8_t *) buf;
 1140|  4.07k|    uint8_t *linebeg = ch;
 1141|  4.07k|    uint8_t *end = (uint8_t *) buf + len;
 1142|       |    /* we support LF and CRLF line endings */
 1143|   114M|    while (ch < end) {
  ------------------
  |  Branch (1143:12): [True: 114M, False: 4.07k]
  ------------------
 1144|       |        /* continue if not reached LF */
 1145|   114M|        if (*ch != CH_LF) {
  ------------------
  |  |   32|   114M|#define CH_LF ('\n')
  ------------------
  |  Branch (1145:13): [True: 105M, False: 9.15M]
  ------------------
 1146|   105M|            if (*ch != CH_CR && param->stripped_crs > 0) {
  ------------------
  |  |   31|   210M|#define CH_CR ('\r')
  ------------------
  |  Branch (1146:17): [True: 78.3M, False: 26.8M]
  |  Branch (1146:33): [True: 487, False: 78.3M]
  ------------------
 1147|  1.18M|                while (param->stripped_crs--) {
  ------------------
  |  Branch (1147:24): [True: 1.18M, False: 487]
  ------------------
 1148|  1.18M|                    try {
 1149|  1.18M|                        param->txt_hashes.add(ST_CR, 1);
  ------------------
  |  |   38|  1.18M|#define ST_CR ("\r")
  ------------------
 1150|  1.18M|                    } catch (const std::exception &e) {
 1151|      0|                        RNP_LOG("%s", e.what()); // LCOV_EXCL_LINE
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1152|      0|                    }
 1153|  1.18M|                }
 1154|    487|                param->stripped_crs = 0;
 1155|    487|            }
 1156|       |
 1157|   105M|            if (!param->max_line_warn && param->text_line_len >= MAXIMUM_GNUPG_LINELEN) {
  ------------------
  |  |   74|  15.0M|#define MAXIMUM_GNUPG_LINELEN 19995
  ------------------
  |  Branch (1157:17): [True: 15.0M, False: 90.1M]
  |  Branch (1157:42): [True: 163, False: 15.0M]
  ------------------
 1158|    163|                RNP_LOG("Canonical text document signature: line is too long, may cause "
  ------------------
  |  |   84|    163|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    163|    do {                                                                                 \
  |  |  |  |   77|    163|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 163, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    163|            break;                                                                       \
  |  |  |  |   79|    163|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1159|    163|                        "incompatibility with other implementations. Consider using binary "
 1160|    163|                        "signature instead.");
 1161|    163|                param->max_line_warn = true;
 1162|    163|            }
 1163|       |
 1164|   105M|            ch++;
 1165|   105M|            param->text_line_len++;
 1166|   105M|            continue;
 1167|   105M|        }
 1168|       |        /* reached eol: dump line contents */
 1169|  9.15M|        param->stripped_crs = 0;
 1170|  9.15M|        param->text_line_len = 0;
 1171|  9.15M|        if (ch > linebeg) {
  ------------------
  |  Branch (1171:13): [True: 3.06M, False: 6.08M]
  ------------------
 1172|  3.06M|            long stripped_len = stripped_line_len(linebeg, ch);
 1173|  3.06M|            if (stripped_len > 0) {
  ------------------
  |  Branch (1173:17): [True: 2.93M, False: 129k]
  ------------------
 1174|  2.93M|                try {
 1175|  2.93M|                    param->txt_hashes.add(linebeg, stripped_len);
 1176|  2.93M|                } catch (const std::exception &e) {
 1177|      0|                    RNP_LOG("%s", e.what()); // LCOV_EXCL_LINE
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1178|      0|                }
 1179|  2.93M|            }
 1180|  3.06M|        }
 1181|       |        /* dump EOL */
 1182|  9.15M|        try {
 1183|  9.15M|            param->txt_hashes.add(ST_CRLF, 2);
  ------------------
  |  |   40|  9.15M|#define ST_CRLF ("\r\n")
  ------------------
 1184|  9.15M|        } catch (const std::exception &e) {
 1185|      0|            RNP_LOG("%s", e.what()); // LCOV_EXCL_LINE
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1186|      0|        }
 1187|  9.15M|        ch++;
 1188|  9.15M|        linebeg = ch;
 1189|  9.15M|    }
 1190|       |    /* check if we have undumped line contents */
 1191|  4.07k|    if (linebeg < end) {
  ------------------
  |  Branch (1191:9): [True: 3.70k, False: 363]
  ------------------
 1192|  3.70k|        long stripped_len = stripped_line_len(linebeg, end - 1);
 1193|  3.70k|        if (stripped_len < end - linebeg) {
  ------------------
  |  Branch (1193:13): [True: 931, False: 2.77k]
  ------------------
 1194|    931|            param->stripped_crs = end - linebeg - stripped_len;
 1195|    931|        }
 1196|  3.70k|        if (stripped_len > 0) {
  ------------------
  |  Branch (1196:13): [True: 3.29k, False: 414]
  ------------------
 1197|  3.29k|            try {
 1198|  3.29k|                param->txt_hashes.add(linebeg, stripped_len);
 1199|  3.29k|            } catch (const std::exception &e) {
 1200|      0|                RNP_LOG("%s", e.what()); // LCOV_EXCL_LINE
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1201|      0|            }
 1202|  3.29k|        }
 1203|  3.70k|    }
 1204|  4.07k|}
stream-parse.cpp:_ZL17stripped_line_lenPhS_:
 1098|  3.07M|{
 1099|  3.07M|    uint8_t *stripped_end = end;
 1100|       |
 1101|  20.3M|    while (stripped_end >= begin && (*stripped_end == CH_CR || *stripped_end == CH_LF)) {
  ------------------
  |  |   31|  40.4M|#define CH_CR ('\r')
  ------------------
                  while (stripped_end >= begin && (*stripped_end == CH_CR || *stripped_end == CH_LF)) {
  ------------------
  |  |   32|  6.01M|#define CH_LF ('\n')
  ------------------
  |  Branch (1101:12): [True: 20.2M, False: 130k]
  |  Branch (1101:38): [True: 14.2M, False: 6.01M]
  |  Branch (1101:64): [True: 3.06M, False: 2.94M]
  ------------------
 1102|  17.2M|        stripped_end--;
 1103|  17.2M|    }
 1104|       |
 1105|  3.07M|    return stripped_end - begin + 1;
 1106|  3.07M|}
stream-parse.cpp:_ZL26signed_src_set_literal_hdrR12pgp_source_tRK17pgp_literal_hdr_t:
 1110|    971|{
 1111|    971|    auto param = static_cast<pgp_source_signed_param_t *>(src.param);
 1112|    971|    param->lhdr = hdr;
 1113|    971|    param->has_lhdr = true;
 1114|    971|}

_Z18signature_hash_keyRK13pgp_key_pkt_tRN3rnp4HashE13pgp_version_t:
   53|  85.6k|{
   54|  85.6k|    if (key.pub_data.empty()) {
  ------------------
  |  Branch (54:9): [True: 0, False: 85.6k]
  ------------------
   55|       |        /* call self recursively if hashed data is not filled, to overcome const restriction */
   56|      0|        pgp_key_pkt_t keycp(key, true);
   57|      0|        keycp.fill_hashed_data();
   58|      0|        signature_hash_key(keycp, hash, pgpver);
   59|      0|        return;
   60|      0|    }
   61|       |
   62|  85.6k|    switch (pgpver) {
   63|      7|    case PGP_V2:
  ------------------
  |  Branch (63:5): [True: 7, False: 85.6k]
  ------------------
   64|      7|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|      7|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
   65|  4.54k|    case PGP_V3:
  ------------------
  |  Branch (65:5): [True: 4.53k, False: 81.1k]
  ------------------
   66|  4.54k|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|  4.54k|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
   67|  76.4k|    case PGP_V4: {
  ------------------
  |  Branch (67:5): [True: 71.9k, False: 13.7k]
  ------------------
   68|       |        /* A v4 fingerprint can only address up to 65535 octets of key data;
   69|       |         * larger key packets cannot have a valid v4 fingerprint. */
   70|  76.4k|        if (key.pub_data.size() > 0xffffu) {
  ------------------
  |  Branch (70:13): [True: 0, False: 76.4k]
  ------------------
   71|      0|            RNP_LOG("v4 key packet too large for a fingerprint");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   72|      0|            throw rnp::rnp_exception(RNP_ERROR_BAD_FORMAT);
   73|      0|        }
   74|  76.4k|        uint8_t hdr[3] = {0x99, 0x00, 0x00};
   75|  76.4k|        write_uint16(hdr + 1, key.pub_data.size());
   76|  76.4k|        hash.add(hdr, 3);
   77|  76.4k|        hash.add(key.pub_data);
   78|  76.4k|        break;
   79|  76.4k|    }
   80|    220|    case PGP_V5: {
  ------------------
  |  Branch (80:5): [True: 220, False: 85.4k]
  ------------------
   81|    220|        if (key.pub_data.size() > 0xffffffffu) {
  ------------------
  |  Branch (81:13): [True: 0, False: 220]
  ------------------
   82|      0|            RNP_LOG("key packet too large for a fingerprint");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   83|      0|            throw rnp::rnp_exception(RNP_ERROR_BAD_FORMAT);
   84|      0|        }
   85|    220|        uint8_t hdr[5] = {0x9A, 0x00, 0x00, 0x00, 0x00};
   86|    220|        write_uint32(hdr + 1, key.pub_data.size());
   87|    220|        hash.add(&hdr, 5);
   88|    220|        hash.add(key.pub_data);
   89|    220|        break;
   90|    220|    }
   91|      0|#if defined(ENABLE_CRYPTO_REFRESH)
   92|  8.98k|    case PGP_V6: {
  ------------------
  |  Branch (92:5): [True: 8.98k, False: 76.6k]
  ------------------
   93|  8.98k|        if (key.pub_data.size() > 0xffffffffu) {
  ------------------
  |  Branch (93:13): [True: 0, False: 8.98k]
  ------------------
   94|      0|            RNP_LOG("key packet too large for a fingerprint");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   95|      0|            throw rnp::rnp_exception(RNP_ERROR_BAD_FORMAT);
   96|      0|        }
   97|  8.98k|        uint8_t hdr[5] = {0x9b, 0x00, 0x00, 0x00, 0x00};
   98|  8.98k|        write_uint32(hdr + 1, key.pub_data.size());
   99|  8.98k|        hash.add(hdr, sizeof(hdr));
  100|  8.98k|        hash.add(key.pub_data);
  101|  8.98k|        break;
  102|  8.98k|    }
  103|      0|#endif
  104|      0|    default:
  ------------------
  |  Branch (104:5): [True: 0, False: 85.6k]
  ------------------
  105|      0|        RNP_LOG("unknown key/sig version: %d", (int) pgpver);
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  106|      0|        throw rnp::rnp_exception(RNP_ERROR_OUT_OF_MEMORY);
  107|  85.6k|    }
  108|  85.6k|}
_Z21signature_hash_useridRK16pgp_userid_pkt_tRN3rnp4HashE13pgp_version_t:
  112|  13.8k|{
  113|  13.8k|    if (sigver < PGP_V4) {
  ------------------
  |  Branch (113:9): [True: 3.74k, False: 10.0k]
  ------------------
  114|  3.74k|        hash.add(uid.uid.data(), uid.uid.size());
  115|  3.74k|        return;
  116|  3.74k|    }
  117|       |
  118|  10.0k|    uint8_t hdr[5] = {0};
  119|  10.0k|    switch (uid.tag) {
  120|  9.95k|    case PGP_PKT_USER_ID:
  ------------------
  |  Branch (120:5): [True: 9.95k, False: 105]
  ------------------
  121|  9.95k|        hdr[0] = 0xB4;
  122|  9.95k|        break;
  123|    105|    case PGP_PKT_USER_ATTR:
  ------------------
  |  Branch (123:5): [True: 105, False: 9.95k]
  ------------------
  124|    105|        hdr[0] = 0xD1;
  125|    105|        break;
  126|      0|    default:
  ------------------
  |  Branch (126:5): [True: 0, False: 10.0k]
  ------------------
  127|      0|        RNP_LOG("wrong uid");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  128|      0|        throw rnp::rnp_exception(RNP_ERROR_BAD_PARAMETERS);
  129|  10.0k|    }
  130|  10.0k|    write_uint32(hdr + 1, uid.uid.size());
  131|  10.0k|    hash.add(hdr, 5);
  132|  10.0k|    hash.add(uid.uid.data(), uid.uid.size());
  133|  10.0k|}
_Z28signature_hash_certificationRKN3pgp3pkt9SignatureERK13pgp_key_pkt_tRK16pgp_userid_pkt_t:
  139|  13.8k|{
  140|  13.8k|    auto hash = signature_init(key, sig);
  141|  13.8k|    signature_hash_key(key, *hash, sig.version);
  142|  13.8k|    signature_hash_userid(userid, *hash, sig.version);
  143|  13.8k|    return hash;
  144|  13.8k|}
_Z22signature_hash_bindingRKN3pgp3pkt9SignatureERK13pgp_key_pkt_tS6_:
  150|  6.04k|{
  151|  6.04k|    auto hash = signature_init(key, sig);
  152|  6.04k|    signature_hash_key(key, *hash, sig.version);
  153|  6.04k|    signature_hash_key(subkey, *hash, sig.version);
  154|  6.04k|    return hash;
  155|  6.04k|}
_Z21signature_hash_directRKN3pgp3pkt9SignatureERK13pgp_key_pkt_t:
  159|  3.82k|{
  160|  3.82k|    auto hash = signature_init(key, sig);
  161|  3.82k|    signature_hash_key(key, *hash, sig.version);
  162|  3.82k|    return hash;
  163|  3.82k|}
_ZNK3pgp3pkt9Signature6get_idEv:
  228|   162k|{
  229|   162k|    auto hash = rnp::Hash::create(PGP_HASH_SHA1);
  230|   162k|    hash->add(hashed_data);
  231|   162k|#if defined(ENABLE_CRYPTO_REFRESH)
  232|       |    /* v6 salt is not a part of the hashed data - cover it, but keep v4 id input unchanged */
  233|   162k|    if (version == PGP_V6) {
  ------------------
  |  Branch (233:9): [True: 696, False: 161k]
  ------------------
  234|    696|        hash->add(salt);
  235|    696|    }
  236|   162k|#endif
  237|   162k|    hash->add(material_buf);
  238|   162k|    SigID res = {0};
  239|   162k|    static_assert(std::tuple_size<decltype(res)>::value == PGP_SHA1_HASH_SIZE,
  240|   162k|                  "SigID size mismatch");
  241|   162k|    hash->finish(res.data());
  242|   162k|    return res;
  243|   162k|}
_ZN3pgp3pkt9Signature10get_subpktEhb:
  247|  36.6k|{
  248|  36.6k|    size_t idx = find_subpkt(stype, hashed);
  249|  36.6k|    return idx == SIZE_MAX ? nullptr : subpkts[idx].get();
  ------------------
  |  Branch (249:12): [True: 31.2k, False: 5.42k]
  ------------------
  250|  36.6k|}
_ZNK3pgp3pkt9Signature10get_subpktEhb:
  254|  1.60M|{
  255|  1.60M|    size_t idx = find_subpkt(stype, hashed);
  256|  1.60M|    return idx == SIZE_MAX ? nullptr : subpkts[idx].get();
  ------------------
  |  Branch (256:12): [True: 249k, False: 1.35M]
  ------------------
  257|  1.60M|}
_ZN3pgp3pkt9Signature10get_subpktENS0_6sigsub4TypeEb:
  261|  36.6k|{
  262|  36.6k|    return get_subpkt(static_cast<uint8_t>(type), hashed);
  263|  36.6k|}
_ZNK3pgp3pkt9Signature10get_subpktENS0_6sigsub4TypeEb:
  267|  1.60M|{
  268|  1.60M|    return get_subpkt(static_cast<uint8_t>(type), hashed);
  269|  1.60M|}
_ZNK3pgp3pkt9Signature10has_subpktEhb:
  273|   123k|{
  274|       |    return find_subpkt(stype, hashed) != SIZE_MAX;
  275|   123k|}
_ZNK3pgp3pkt9Signature20has_unknown_criticalEv:
  279|  23.6k|{
  280|   126k|    for (const auto &sub : subpkts.items) {
  ------------------
  |  Branch (280:26): [True: 126k, False: 22.3k]
  ------------------
  281|       |        /* unhashed area is not covered by the signature, so anyone may add a subpacket
  282|       |         * there: do not let it change the signature's validity */
  283|   126k|        if (sub->hashed() && (sub->type() == sigsub::Type::Unknown) && sub->critical()) {
  ------------------
  |  Branch (283:13): [True: 108k, False: 17.6k]
  |  Branch (283:30): [True: 5.18k, False: 103k]
  |  Branch (283:72): [True: 1.35k, False: 3.82k]
  ------------------
  284|  1.35k|            return true;
  285|  1.35k|        }
  286|   126k|    }
  287|  22.3k|    return false;
  288|  23.6k|}
_ZNK3pgp3pkt9Signature9has_keyidEv:
  292|  97.2k|{
  293|  97.2k|    return (version < PGP_V4) || has_subpkt(PGP_SIG_SUBPKT_ISSUER_KEY_ID, false) ||
  ------------------
  |  Branch (293:12): [True: 27.1k, False: 70.1k]
  |  Branch (293:34): [True: 25.0k, False: 45.0k]
  ------------------
  294|  45.0k|           has_keyfp();
  ------------------
  |  Branch (294:12): [True: 3, False: 45.0k]
  ------------------
  295|  97.2k|}
_ZNK3pgp3pkt9Signature5keyidEv:
  299|  52.1k|{
  300|       |    /* version 3 uses signature field */
  301|  52.1k|    if (version < PGP_V4) {
  ------------------
  |  Branch (301:9): [True: 27.1k, False: 25.0k]
  ------------------
  302|  27.1k|        return signer;
  303|  27.1k|    }
  304|       |
  305|       |    /* version 4 and up use subpackets */
  306|  25.0k|    if (version == PGP_V4) {
  ------------------
  |  Branch (306:9): [True: 20.0k, False: 5.00k]
  ------------------
  307|  20.0k|        auto sub = dynamic_cast<const sigsub::IssuerKeyID *>(
  308|  20.0k|          get_subpkt(sigsub::Type::IssuerKeyID, false));
  309|  20.0k|        if (sub) {
  ------------------
  |  Branch (309:13): [True: 20.0k, False: 1]
  ------------------
  310|  20.0k|            return sub->keyid();
  311|  20.0k|        }
  312|  20.0k|    }
  313|       |    /* v5 and up must have fingerprint, from which keyid would be extracted */
  314|  5.00k|    return keyfp().keyid();
  315|  25.0k|}
_ZNK3pgp3pkt9Signature9has_keyfpEv:
  332|   509k|{
  333|   509k|    auto sub = dynamic_cast<const sigsub::IssuerFingerprint *>(
  334|   509k|      get_subpkt(sigsub::Type::IssuerFingerprint));
  335|   509k|    if (!sub) {
  ------------------
  |  Branch (335:9): [True: 144k, False: 364k]
  ------------------
  336|   144k|        return false;
  337|   144k|    }
  338|   364k|    switch (version) {
  339|   358k|    case PGP_V4:
  ------------------
  |  Branch (339:5): [True: 358k, False: 6.80k]
  ------------------
  340|   358k|        return sub->fp().size() == PGP_FINGERPRINT_V4_SIZE;
  ------------------
  |  |   43|   358k|#define PGP_FINGERPRINT_V4_SIZE 20
  ------------------
  341|  5.75k|    case PGP_V5:
  ------------------
  |  Branch (341:5): [True: 5.75k, False: 359k]
  ------------------
  342|  5.75k|#if defined(ENABLE_CRYPTO_REFRESH)
  343|  6.80k|    case PGP_V6:
  ------------------
  |  Branch (343:5): [True: 1.05k, False: 363k]
  ------------------
  344|  6.80k|#endif
  345|  6.80k|        return sub->fp().size() == PGP_FINGERPRINT_V5_SIZE;
  ------------------
  |  |   44|  6.80k|#define PGP_FINGERPRINT_V5_SIZE 32
  ------------------
  346|      0|    default:
  ------------------
  |  Branch (346:5): [True: 0, False: 364k]
  ------------------
  347|      0|        return false;
  348|   364k|    }
  349|   364k|}
_ZNK3pgp3pkt9Signature5keyfpEv:
  353|   359k|{
  354|   359k|    auto sub = dynamic_cast<const sigsub::IssuerFingerprint *>(
  355|   359k|      get_subpkt(sigsub::Type::IssuerFingerprint));
  356|   359k|    return sub ? sub->fp() : Fingerprint{};
  ------------------
  |  Branch (356:12): [True: 359k, False: 645]
  ------------------
  357|   359k|}
_ZNK3pgp3pkt9Signature25issuer_fp_version_matchesEv:
  361|   358k|{
  362|   358k|    auto sub = dynamic_cast<const sigsub::IssuerFingerprint *>(
  363|   358k|      get_subpkt(sigsub::Type::IssuerFingerprint));
  364|   358k|    if (!sub) {
  ------------------
  |  Branch (364:9): [True: 0, False: 358k]
  ------------------
  365|      0|        return false;
  366|      0|    }
  367|       |    /* Same hashed subpacket as has_keyfp()/keyfp(). v5 is intentionally not enforced:
  368|       |     * LibrePGP describes the version octet but does not require receivers to reject a
  369|       |     * mismatch, and this library used to emit 4 for v5 signatures. */
  370|   358k|    if (version == PGP_V4) {
  ------------------
  |  Branch (370:9): [True: 357k, False: 1.67k]
  ------------------
  371|   357k|        return sub->version() == static_cast<uint8_t>(PGP_V4);
  372|   357k|    }
  373|  1.67k|#if defined(ENABLE_CRYPTO_REFRESH)
  374|  1.67k|    if (version == PGP_V6) {
  ------------------
  |  Branch (374:9): [True: 1.05k, False: 626]
  ------------------
  375|  1.05k|        return sub->version() == static_cast<uint8_t>(PGP_V6);
  376|  1.05k|    }
  377|    626|#endif
  378|    626|    return true;
  379|  1.67k|}
_ZNK3pgp3pkt9Signature8creationEv:
  406|   151k|{
  407|   151k|    if (version < PGP_V4) {
  ------------------
  |  Branch (407:9): [True: 11.9k, False: 139k]
  ------------------
  408|  11.9k|        return creation_time;
  409|  11.9k|    }
  410|   139k|    auto sub =
  411|   139k|      dynamic_cast<const sigsub::CreationTime *>(get_subpkt(sigsub::Type::CreationTime));
  412|   139k|    return sub ? sub->time() : 0;
  ------------------
  |  Branch (412:12): [True: 138k, False: 1.05k]
  ------------------
  413|   151k|}
_ZNK3pgp3pkt9Signature10expirationEv:
  429|  47.4k|{
  430|  47.4k|    auto sub =
  431|  47.4k|      dynamic_cast<const sigsub::ExpirationTime *>(get_subpkt(sigsub::Type::ExpirationTime));
  432|  47.4k|    return sub ? sub->time() : 0;
  ------------------
  |  Branch (432:12): [True: 194, False: 47.2k]
  ------------------
  433|  47.4k|}
_ZNK3pgp3pkt9Signature14key_expirationEv:
  445|  66.1k|{
  446|  66.1k|    auto sub = dynamic_cast<const sigsub::KeyExpirationTime *>(
  447|  66.1k|      get_subpkt(sigsub::Type::KeyExpirationTime));
  448|  66.1k|    return sub ? sub->time() : 0;
  ------------------
  |  Branch (448:12): [True: 10.5k, False: 55.6k]
  ------------------
  449|  66.1k|}
_ZNK3pgp3pkt9Signature9key_flagsEv:
  461|  41.5k|{
  462|  41.5k|    auto sub = dynamic_cast<const sigsub::KeyFlags *>(get_subpkt(sigsub::Type::KeyFlags));
  463|  41.5k|    return sub ? sub->flags() : 0;
  ------------------
  |  Branch (463:12): [True: 41.3k, False: 223]
  ------------------
  464|  41.5k|}
_ZNK3pgp3pkt9Signature11primary_uidEv:
  476|  5.42k|{
  477|  5.42k|    auto sub =
  478|  5.42k|      dynamic_cast<const sigsub::PrimaryUserID *>(get_subpkt(sigsub::Type::PrimaryUserID));
  479|  5.42k|    return sub ? sub->primary() : 0;
  ------------------
  |  Branch (479:12): [True: 5.42k, False: 0]
  ------------------
  480|  5.42k|}
_ZNK3pgp3pkt9Signature17revocation_reasonEv:
  644|  1.07k|{
  645|  1.07k|    auto sub = dynamic_cast<const sigsub::RevocationReason *>(
  646|  1.07k|      get_subpkt(sigsub::Type::RevocationReason));
  647|  1.07k|    return sub ? sub->reason() : "";
  ------------------
  |  Branch (647:12): [True: 1.07k, False: 0]
  ------------------
  648|  1.07k|}
_ZNK3pgp3pkt9Signature15revocation_codeEv:
  652|  1.07k|{
  653|  1.07k|    auto sub = dynamic_cast<const sigsub::RevocationReason *>(
  654|  1.07k|      get_subpkt(sigsub::Type::RevocationReason));
  655|  1.07k|    return sub ? sub->code() : PGP_REVOCATION_NO_REASON;
  ------------------
  |  Branch (655:12): [True: 1.07k, False: 0]
  ------------------
  656|  1.07k|}
_ZNK3pgp3pkt9Signature14revoker_subpktEv:
  746|  56.4k|{
  747|  56.4k|    return dynamic_cast<const sigsub::RevocationKey *>(
  748|  56.4k|      get_subpkt(sigsub::Type::RevocationKey));
  749|  56.4k|}
_ZNK3pgp3pkt9Signature11has_revokerEv:
  753|  28.2k|{
  754|  28.2k|    return revoker_subpkt();
  755|  28.2k|}
_ZNK3pgp3pkt9Signature7revokerEv:
  759|  28.1k|{
  760|  28.1k|    auto sub = revoker_subpkt();
  761|  28.1k|    return sub ? sub->fp() : Fingerprint();
  ------------------
  |  Branch (761:12): [True: 28.1k, False: 0]
  ------------------
  762|  28.1k|}
_ZNK3pgp3pkt9Signature15matches_onepassERK18pgp_one_pass_sig_t:
  803|     48|{
  804|     48|    if (!has_keyid()) {
  ------------------
  |  Branch (804:9): [True: 21, False: 27]
  ------------------
  805|     21|        return false;
  806|     21|    }
  807|       |    /* check sig and OPS packet version binding (V3) */
  808|     27|    if (onepass.version == PGP_OPS_V3) {
  ------------------
  |  Branch (808:9): [True: 26, False: 1]
  ------------------
  809|     26|        if (version != PGP_V3 && version != PGP_V4 && version != PGP_V5) {
  ------------------
  |  Branch (809:13): [True: 18, False: 8]
  |  Branch (809:34): [True: 4, False: 14]
  |  Branch (809:55): [True: 3, False: 1]
  ------------------
  810|      3|            return false;
  811|      3|        }
  812|     26|    }
  813|       |    /* check keyid (V3) */
  814|     24|    if (onepass.version == PGP_OPS_V3 && (onepass.keyid != keyid())) {
  ------------------
  |  Branch (814:9): [True: 23, False: 1]
  |  Branch (814:9): [True: 20, False: 4]
  |  Branch (814:42): [True: 20, False: 3]
  ------------------
  815|     20|        return false;
  816|     20|    }
  817|      4|#if defined(ENABLE_CRYPTO_REFRESH)
  818|       |    /* checks for V6 */
  819|      4|    if (onepass.version == PGP_OPS_V6) {
  ------------------
  |  Branch (819:9): [True: 1, False: 3]
  ------------------
  820|       |        /* check version binding) */
  821|      1|        if (onepass.version == PGP_OPS_V6 && version != PGP_V6) {
  ------------------
  |  Branch (821:13): [True: 1, False: 0]
  |  Branch (821:46): [True: 1, False: 0]
  ------------------
  822|      1|            return false;
  823|      1|        }
  824|       |        /* check fp */
  825|      0|        if (onepass.fp != keyfp()) {
  ------------------
  |  Branch (825:13): [True: 0, False: 0]
  ------------------
  826|      0|            return false;
  827|      0|        }
  828|       |        /* check salt */
  829|      0|        if (onepass.salt != salt) {
  ------------------
  |  Branch (829:13): [True: 0, False: 0]
  ------------------
  830|      0|            return false;
  831|      0|        }
  832|      0|    }
  833|      3|#endif
  834|       |    /* check the remaining common attributes */
  835|      3|    return (halg == onepass.halg) && (palg == onepass.palg) && (type_ == onepass.type);
  ------------------
  |  Branch (835:12): [True: 2, False: 1]
  |  Branch (835:38): [True: 1, False: 1]
  |  Branch (835:64): [True: 1, False: 0]
  ------------------
  836|      4|}
_ZN3pgp3pkt9Signature17version_supportedE13pgp_version_t:
  840|  81.1k|{
  841|  81.1k|    if ((version >= PGP_V2) && (version <= PGP_V5)) {
  ------------------
  |  Branch (841:9): [True: 81.1k, False: 0]
  |  Branch (841:32): [True: 80.8k, False: 348]
  ------------------
  842|  80.8k|        return true;
  843|  80.8k|    }
  844|    348|#if defined(ENABLE_CRYPTO_REFRESH)
  845|    348|    return version == PGP_V6;
  846|       |#else
  847|       |    return false;
  848|       |#endif
  849|  81.1k|}
_ZN3pgp3pkt9Signature10parse_v2v3ER17pgp_packet_body_t:
  853|  9.57k|{
  854|       |    /* parse v2/v3-specific fields, not the whole signature */
  855|  9.57k|    uint8_t buf[16] = {};
  856|  9.57k|    if (!pkt.get(buf, 16)) {
  ------------------
  |  Branch (856:9): [True: 351, False: 9.22k]
  ------------------
  857|    351|        RNP_LOG("cannot get enough bytes");
  ------------------
  |  |   84|    351|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    351|    do {                                                                                 \
  |  |  |  |   77|    351|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 351, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    351|            break;                                                                       \
  |  |  |  |   79|    351|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  858|    351|        return RNP_ERROR_BAD_FORMAT;
  859|    351|    }
  860|       |    /* length of hashed data, 5 */
  861|  9.22k|    if (buf[0] != 5) {
  ------------------
  |  Branch (861:9): [True: 97, False: 9.13k]
  ------------------
  862|     97|        RNP_LOG("wrong length of hashed data");
  ------------------
  |  |   84|     97|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     97|    do {                                                                                 \
  |  |  |  |   77|     97|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 97, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     97|            break;                                                                       \
  |  |  |  |   79|     97|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  863|     97|        return RNP_ERROR_BAD_FORMAT;
  864|     97|    }
  865|       |    /* hashed data */
  866|  9.13k|    hashed_data.assign(buf + 1, buf + 6);
  867|       |    /* signature type */
  868|  9.13k|    type_ = (pgp_sig_type_t) buf[1];
  869|       |    /* creation time */
  870|  9.13k|    creation_time = read_uint32(&buf[2]);
  871|       |    /* signer's key id */
  872|  9.13k|    static_assert(std::tuple_size<decltype(signer)>::value == PGP_KEY_ID_SIZE,
  873|  9.13k|                  "v3 signer field size mismatch");
  874|  9.13k|    memcpy(signer.data(), &buf[6], PGP_KEY_ID_SIZE);
  ------------------
  |  |   39|  9.13k|#define PGP_KEY_ID_SIZE 8
  ------------------
  875|       |    /* public key algorithm */
  876|  9.13k|    palg = (pgp_pubkey_alg_t) buf[14];
  877|       |    /* hash algorithm */
  878|  9.13k|    halg = (pgp_hash_alg_t) buf[15];
  879|  9.13k|    return RNP_SUCCESS;
  880|  9.22k|}
_ZN3pgp3pkt9Signature16parse_subpacketsEPhmbm:
  886|   161k|{
  887|   161k|    bool res = true;
  888|       |
  889|   568k|    while (len) {
  ------------------
  |  Branch (889:12): [True: 412k, False: 155k]
  ------------------
  890|   412k|        if (subpkts.size() >= MAX_SUBPACKETS) {
  ------------------
  |  |  882|   412k|#define MAX_SUBPACKETS 64
  ------------------
  |  Branch (890:13): [True: 30, False: 412k]
  ------------------
  891|     30|            RNP_LOG("too many signature subpackets");
  ------------------
  |  |   84|     30|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     30|    do {                                                                                 \
  |  |  |  |   77|     30|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 30, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     30|            break;                                                                       \
  |  |  |  |   79|     30|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  892|     30|            return false;
  893|     30|        }
  894|   412k|        if (len < 2) {
  ------------------
  |  Branch (894:13): [True: 424, False: 412k]
  ------------------
  895|    424|            RNP_LOG("got single byte %" PRIu8, *buf);
  ------------------
  |  |   84|    424|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    424|    do {                                                                                 \
  |  |  |  |   77|    424|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 424, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    424|            break;                                                                       \
  |  |  |  |   79|    424|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  896|    424|            return false;
  897|    424|        }
  898|       |
  899|       |        /* subpacket length */
  900|   412k|        size_t splen = *buf++;
  901|   412k|        len--;
  902|   412k|        if ((splen >= 192) && (splen < 255)) {
  ------------------
  |  Branch (902:13): [True: 2.11k, False: 410k]
  |  Branch (902:31): [True: 1.68k, False: 428]
  ------------------
  903|  1.68k|            splen = ((splen - 192) << 8) + *buf++ + 192;
  904|  1.68k|            len--;
  905|   410k|        } else if (splen == 255) {
  ------------------
  |  Branch (905:20): [True: 428, False: 410k]
  ------------------
  906|    428|            if (len < 4) {
  ------------------
  |  Branch (906:17): [True: 77, False: 351]
  ------------------
  907|     77|                RNP_LOG("got 4-byte len but only %zu bytes in buffer", len);
  ------------------
  |  |   84|     77|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     77|    do {                                                                                 \
  |  |  |  |   77|     77|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 77, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     77|            break;                                                                       \
  |  |  |  |   79|     77|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  908|     77|                return false;
  909|     77|            }
  910|    351|            splen = read_uint32(buf);
  911|    351|            buf += 4;
  912|    351|            len -= 4;
  913|    351|        }
  914|       |
  915|   412k|        if (!splen) {
  ------------------
  |  Branch (915:13): [True: 587, False: 411k]
  ------------------
  916|    587|            RNP_LOG("got subpacket with 0 length");
  ------------------
  |  |   84|    587|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    587|    do {                                                                                 \
  |  |  |  |   77|    587|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 587, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    587|            break;                                                                       \
  |  |  |  |   79|    587|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  917|    587|            return false;
  918|    587|        }
  919|       |
  920|       |        /* subpacket data */
  921|   411k|        if (len < splen) {
  ------------------
  |  Branch (921:13): [True: 4.42k, False: 407k]
  ------------------
  922|  4.42k|            RNP_LOG("got subpacket len %zu, while only %zu bytes left", splen, len);
  ------------------
  |  |   84|  4.42k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  4.42k|    do {                                                                                 \
  |  |  |  |   77|  4.42k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 4.42k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  4.42k|            break;                                                                       \
  |  |  |  |   79|  4.42k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  923|  4.42k|            return false;
  924|  4.42k|        }
  925|       |
  926|   407k|        auto subpkt = sigsub::Raw::create(buf, splen, hashed, depth);
  927|   407k|        if (!subpkt) {
  ------------------
  |  Branch (927:13): [True: 6.57k, False: 400k]
  ------------------
  928|  6.57k|            res = false;
  929|   400k|        } else {
  930|   400k|            subpkts.items.push_back(std::move(subpkt));
  931|   400k|        }
  932|   407k|        len -= splen;
  933|   407k|        buf += splen;
  934|   407k|    }
  935|   155k|    return res;
  936|   161k|}
_ZN3pgp3pkt9Signature14get_subpkt_lenER17pgp_packet_body_tRm:
  940|   168k|{
  941|   168k|    switch (version) {
  942|   162k|    case PGP_V4:
  ------------------
  |  Branch (942:5): [True: 162k, False: 5.84k]
  ------------------
  943|   165k|    case PGP_V5: {
  ------------------
  |  Branch (943:5): [True: 2.67k, False: 166k]
  ------------------
  944|   165k|        uint16_t len = 0;
  945|   165k|        if (!pkt.get(len)) {
  ------------------
  |  Branch (945:13): [True: 1.00k, False: 164k]
  ------------------
  946|  1.00k|            return false;
  947|  1.00k|        }
  948|   164k|        splen = len;
  949|   164k|        return true;
  950|   165k|    }
  951|      0|#if defined(ENABLE_CRYPTO_REFRESH)
  952|  3.17k|    case PGP_V6: {
  ------------------
  |  Branch (952:5): [True: 3.17k, False: 165k]
  ------------------
  953|  3.17k|        uint32_t len = 0;
  954|  3.17k|        if (!pkt.get(len)) {
  ------------------
  |  Branch (954:13): [True: 328, False: 2.84k]
  ------------------
  955|    328|            return false;
  956|    328|        }
  957|  2.84k|        splen = len;
  958|  2.84k|        return true;
  959|  3.17k|    }
  960|      0|#endif
  961|      0|    default:
  ------------------
  |  Branch (961:5): [True: 0, False: 168k]
  ------------------
  962|      0|        RNP_LOG("unsupported signature version: %d", (int) version);
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  963|      0|        return false;
  964|   168k|    }
  965|   168k|}
_ZNK3pgp3pkt9Signature11find_subpktEhbm:
  969|  1.76M|{
  970|  1.76M|    if (version < PGP_V4) {
  ------------------
  |  Branch (970:9): [True: 37.9k, False: 1.72M]
  ------------------
  971|  37.9k|        return SIZE_MAX;
  972|  37.9k|    }
  973|  6.72M|    for (size_t idx = 0; idx < subpkts.size(); idx++) {
  ------------------
  |  Branch (973:26): [True: 6.42M, False: 298k]
  ------------------
  974|  6.42M|        if ((subpkts[idx]->raw_type() != stype) || (hashed && !subpkts[idx]->hashed())) {
  ------------------
  |  Branch (974:13): [True: 4.99M, False: 1.42M]
  |  Branch (974:53): [True: 1.38M, False: 45.0k]
  |  Branch (974:63): [True: 41, False: 1.38M]
  ------------------
  975|  4.99M|            continue;
  976|  4.99M|        }
  977|  1.42M|        if (!skip) {
  ------------------
  |  Branch (977:13): [True: 1.42M, False: 0]
  ------------------
  978|  1.42M|            return idx;
  979|  1.42M|        }
  980|      0|        skip--;
  981|      0|    }
  982|   298k|    return SIZE_MAX;
  983|  1.72M|}
_ZN3pgp3pkt9Signature10parse_v4upER17pgp_packet_body_tm:
  993|  90.3k|{
  994|       |    /* parse v4 (and up) specific fields, not the whole signature */
  995|  90.3k|    uint8_t buf[3];
  996|  90.3k|    if (!pkt.get(buf, 3)) {
  ------------------
  |  Branch (996:9): [True: 537, False: 89.8k]
  ------------------
  997|    537|        RNP_LOG("cannot get first 3 bytes");
  ------------------
  |  |   84|    537|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    537|    do {                                                                                 \
  |  |  |  |   77|    537|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 537, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    537|            break;                                                                       \
  |  |  |  |   79|    537|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  998|    537|        return RNP_ERROR_BAD_FORMAT;
  999|    537|    }
 1000|       |
 1001|       |    /* signature type */
 1002|  89.8k|    type_ = (pgp_sig_type_t) buf[0];
 1003|       |    /* public key algorithm */
 1004|  89.8k|    palg = (pgp_pubkey_alg_t) buf[1];
 1005|       |    /* hash algorithm */
 1006|  89.8k|    halg = (pgp_hash_alg_t) buf[2];
 1007|       |    /* hashed subpackets length */
 1008|       |
 1009|  89.8k|    size_t splen = 0;
 1010|  89.8k|    auto   hash_begin = pkt.cur();
 1011|  89.8k|    if (!get_subpkt_len(pkt, splen)) {
  ------------------
  |  Branch (1011:9): [True: 1.33k, False: 88.5k]
  ------------------
 1012|  1.33k|        RNP_LOG("cannot get hashed len");
  ------------------
  |  |   84|  1.33k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  1.33k|    do {                                                                                 \
  |  |  |  |   77|  1.33k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 1.33k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  1.33k|            break;                                                                       \
  |  |  |  |   79|  1.33k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1013|  1.33k|        return RNP_ERROR_BAD_FORMAT;
 1014|  1.33k|    }
 1015|  88.5k|    size_t splen_size = pkt.cur() - hash_begin;
 1016|       |    /* hashed subpackets length + splen_size bytes of length of unhashed subpackets. v6 splen
 1017|       |     * is 32-bit, so do not add it to anything: the sum may wrap with a 32-bit size_t. */
 1018|  88.5k|    if ((splen > pkt.left()) || (pkt.left() - splen < splen_size)) {
  ------------------
  |  Branch (1018:9): [True: 4.13k, False: 84.3k]
  |  Branch (1018:33): [True: 15, False: 84.3k]
  ------------------
 1019|  4.14k|        RNP_LOG("wrong packet or hashed subpackets length");
  ------------------
  |  |   84|  4.14k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  4.14k|    do {                                                                                 \
  |  |  |  |   77|  4.14k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 4.14k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  4.14k|            break;                                                                       \
  |  |  |  |   79|  4.14k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1020|  4.14k|        return RNP_ERROR_BAD_FORMAT;
 1021|  4.14k|    }
 1022|       |    /* building hashed data */
 1023|  84.3k|    size_t hlen = 4 + splen + splen_size;
 1024|  84.3k|    hashed_data.resize(hlen);
 1025|  84.3k|    hashed_data[0] = version;
 1026|  84.3k|    static_assert(sizeof(buf) == 3, "Wrong signature header size.");
 1027|  84.3k|    pkt.skip_back(3 + splen_size);
 1028|       |
 1029|  84.3k|    if (!pkt.get(hashed_data.data() + 1, hlen - 1)) {
  ------------------
  |  Branch (1029:9): [True: 0, False: 84.3k]
  ------------------
 1030|      0|        RNP_LOG("cannot get hashed subpackets data");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1031|      0|        return RNP_ERROR_BAD_FORMAT;
 1032|      0|    }
 1033|       |    /* parsing hashed subpackets */
 1034|  84.3k|    if (!parse_subpackets(hashed_data.data() + 4 + splen_size, splen, true, depth)) {
  ------------------
  |  Branch (1034:9): [True: 5.39k, False: 78.9k]
  ------------------
 1035|  5.39k|        RNP_LOG("failed to parse hashed subpackets");
  ------------------
  |  |   84|  5.39k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  5.39k|    do {                                                                                 \
  |  |  |  |   77|  5.39k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 5.39k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  5.39k|            break;                                                                       \
  |  |  |  |   79|  5.39k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1036|  5.39k|        return RNP_ERROR_BAD_FORMAT;
 1037|  5.39k|    }
 1038|       |
 1039|       |    /* reading unhashed subpackets */
 1040|  78.9k|    if (!get_subpkt_len(pkt, splen)) {
  ------------------
  |  Branch (1040:9): [True: 0, False: 78.9k]
  ------------------
 1041|      0|        RNP_LOG("cannot get unhashed len");
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1042|      0|        return RNP_ERROR_BAD_FORMAT;
 1043|      0|    }
 1044|  78.9k|    if (pkt.left() < splen) {
  ------------------
  |  Branch (1044:9): [True: 2.01k, False: 76.9k]
  ------------------
 1045|  2.01k|        RNP_LOG("not enough data for unhashed subpackets");
  ------------------
  |  |   84|  2.01k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  2.01k|    do {                                                                                 \
  |  |  |  |   77|  2.01k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 2.01k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  2.01k|            break;                                                                       \
  |  |  |  |   79|  2.01k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1046|  2.01k|        return RNP_ERROR_BAD_FORMAT;
 1047|  2.01k|    }
 1048|  76.9k|    if (!parse_subpackets(pkt.cur(), splen, false, depth)) {
  ------------------
  |  Branch (1048:9): [True: 230, False: 76.7k]
  ------------------
 1049|    230|        RNP_LOG("failed to parse unhashed subpackets");
  ------------------
  |  |   84|    230|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    230|    do {                                                                                 \
  |  |  |  |   77|    230|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 230, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    230|            break;                                                                       \
  |  |  |  |   79|    230|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1050|    230|        return RNP_ERROR_BAD_FORMAT;
 1051|    230|    }
 1052|  76.7k|    pkt.skip(splen);
 1053|  76.7k|    return RNP_SUCCESS;
 1054|  76.9k|}
_ZN3pgp3pkt9Signature5parseER17pgp_packet_body_tm:
 1058|   106k|{
 1059|   106k|    uint8_t ver = 0;
 1060|   106k|    if (!pkt.get(ver)) {
  ------------------
  |  Branch (1060:9): [True: 585, False: 106k]
  ------------------
 1061|    585|        return RNP_ERROR_BAD_FORMAT;
 1062|    585|    }
 1063|   106k|    version = (pgp_version_t) ver;
 1064|       |
 1065|       |    /* v3 or v4 or v6 signature body */
 1066|   106k|    rnp_result_t res;
 1067|   106k|    switch (ver) {
 1068|  1.27k|    case PGP_V2:
  ------------------
  |  Branch (1068:5): [True: 1.27k, False: 104k]
  ------------------
 1069|  1.27k|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|  1.27k|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
 1070|  9.57k|    case PGP_V3:
  ------------------
  |  Branch (1070:5): [True: 8.30k, False: 97.8k]
  ------------------
 1071|  9.57k|        res = parse_v2v3(pkt);
 1072|  9.57k|        break;
 1073|  85.9k|    case PGP_V4:
  ------------------
  |  Branch (1073:5): [True: 85.9k, False: 20.2k]
  ------------------
 1074|  85.9k|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|  85.9k|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
 1075|  87.8k|    case PGP_V5:
  ------------------
  |  Branch (1075:5): [True: 1.94k, False: 104k]
  ------------------
 1076|  87.8k|#if defined(ENABLE_CRYPTO_REFRESH)
 1077|  87.8k|        FALLTHROUGH_STATEMENT;
  ------------------
  |  |  109|  87.8k|# define FALLTHROUGH_STATEMENT [[fallthrough]]
  ------------------
 1078|  90.3k|    case PGP_V6:
  ------------------
  |  Branch (1078:5): [True: 2.52k, False: 103k]
  ------------------
 1079|  90.3k|#endif
 1080|  90.3k|        res = parse_v4up(pkt, depth);
 1081|  90.3k|        break;
 1082|  6.21k|    default:
  ------------------
  |  Branch (1082:5): [True: 6.21k, False: 99.9k]
  ------------------
 1083|  6.21k|        RNP_LOG("unknown signature version: %d", (int) ver);
  ------------------
  |  |   84|  6.21k|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|  6.21k|    do {                                                                                 \
  |  |  |  |   77|  6.21k|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 6.21k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|  6.21k|            break;                                                                       \
  |  |  |  |   79|  6.21k|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1084|  6.21k|        res = RNP_ERROR_BAD_FORMAT;
 1085|   106k|    }
 1086|       |
 1087|   106k|    if (res) {
  ------------------
  |  Branch (1087:9): [True: 20.3k, False: 85.8k]
  ------------------
 1088|  20.3k|        return res;
 1089|  20.3k|    }
 1090|       |
 1091|       |    /* left 16 bits of the hash */
 1092|  85.8k|    if (!pkt.get(lbits.data(), 2)) {
  ------------------
  |  Branch (1092:9): [True: 120, False: 85.7k]
  ------------------
 1093|    120|        RNP_LOG("not enough data for hash left bits");
  ------------------
  |  |   84|    120|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    120|    do {                                                                                 \
  |  |  |  |   77|    120|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 120, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    120|            break;                                                                       \
  |  |  |  |   79|    120|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1094|    120|        return RNP_ERROR_BAD_FORMAT;
 1095|    120|    }
 1096|       |
 1097|  85.7k|#if defined(ENABLE_CRYPTO_REFRESH)
 1098|  85.7k|    if (ver == PGP_V6) {
  ------------------
  |  Branch (1098:9): [True: 770, False: 84.9k]
  ------------------
 1099|    770|        uint8_t salt_size = 0;
 1100|    770|        if (!pkt.get(salt_size)) {
  ------------------
  |  Branch (1100:13): [True: 85, False: 685]
  ------------------
 1101|     85|            RNP_LOG("not enough data for v6 salt size octet");
  ------------------
  |  |   84|     85|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     85|    do {                                                                                 \
  |  |  |  |   77|     85|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 85, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     85|            break;                                                                       \
  |  |  |  |   79|     85|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1102|     85|            return RNP_ERROR_BAD_FORMAT;
 1103|     85|        }
 1104|    685|        size_t expect_salt_size;
 1105|    685|        if (!pgp::pkt::Signature::v6_salt_size(halg, &expect_salt_size)) {
  ------------------
  |  Branch (1105:13): [True: 19, False: 666]
  ------------------
 1106|     19|            RNP_LOG("invalid halg");
  ------------------
  |  |   84|     19|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     19|    do {                                                                                 \
  |  |  |  |   77|     19|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 19, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     19|            break;                                                                       \
  |  |  |  |   79|     19|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1107|     19|            return RNP_ERROR_BAD_FORMAT;
 1108|     19|        }
 1109|    666|        if (salt_size != expect_salt_size) {
  ------------------
  |  Branch (1109:13): [True: 233, False: 433]
  ------------------
 1110|    233|            RNP_LOG("invalid salt size");
  ------------------
  |  |   84|    233|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    233|    do {                                                                                 \
  |  |  |  |   77|    233|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 233, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    233|            break;                                                                       \
  |  |  |  |   79|    233|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1111|    233|            return RNP_ERROR_BAD_FORMAT;
 1112|    233|        }
 1113|    433|        salt.resize(salt_size);
 1114|    433|        if (!pkt.get(salt.data(), salt_size)) {
  ------------------
  |  Branch (1114:13): [True: 19, False: 414]
  ------------------
 1115|     19|            RNP_LOG("not enough data for v6 signature salt");
  ------------------
  |  |   84|     19|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     19|    do {                                                                                 \
  |  |  |  |   77|     19|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 19, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     19|            break;                                                                       \
  |  |  |  |   79|     19|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1116|     19|            return RNP_ERROR_BAD_FORMAT;
 1117|     19|        }
 1118|    433|    }
 1119|  85.3k|#endif
 1120|       |
 1121|       |    /* raw signature material */
 1122|       |    /* we cannot fail here */
 1123|  85.3k|    pkt.get(material_buf, pkt.left());
 1124|       |    /* check whether it can be parsed */
 1125|  85.3k|    if (!parse_material()) {
  ------------------
  |  Branch (1125:9): [True: 2.73k, False: 82.6k]
  ------------------
 1126|  2.73k|        return RNP_ERROR_BAD_FORMAT;
 1127|  2.73k|    }
 1128|  82.6k|    return RNP_SUCCESS;
 1129|  85.3k|}
_ZN3pgp3pkt9Signature5parseER12pgp_source_t:
 1133|   549k|{
 1134|   549k|    pgp_packet_body_t pkt(PGP_PKT_SIGNATURE);
 1135|   549k|    rnp_result_t      res = pkt.read(src);
 1136|   549k|    if (res) {
  ------------------
  |  Branch (1136:9): [True: 443k, False: 106k]
  ------------------
 1137|   443k|        return res;
 1138|   443k|    }
 1139|   106k|    return parse(pkt);
 1140|   549k|}
_ZNK3pgp3pkt9Signature14parse_materialEv:
 1144|   109k|{
 1145|   109k|    auto sig = SigMaterial::create(palg, halg);
 1146|   109k|    if (!sig) {
  ------------------
  |  Branch (1146:9): [True: 385, False: 108k]
  ------------------
 1147|    385|        return nullptr;
 1148|    385|    }
 1149|   108k|    pgp_packet_body_t pkt(material_buf);
 1150|   108k|    if (!sig->parse(pkt)) {
  ------------------
  |  Branch (1150:9): [True: 2.23k, False: 106k]
  ------------------
 1151|  2.23k|        return nullptr;
 1152|  2.23k|    }
 1153|   106k|    if (pkt.left()) {
  ------------------
  |  Branch (1153:9): [True: 118, False: 106k]
  ------------------
 1154|    118|        RNP_LOG("extra %zu bytes in pk packet", pkt.left());
  ------------------
  |  |   84|    118|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|    118|    do {                                                                                 \
  |  |  |  |   77|    118|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 118, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|    118|            break;                                                                       \
  |  |  |  |   79|    118|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1155|    118|        return nullptr;
 1156|    118|    }
 1157|   106k|    return sig;
 1158|   106k|}
_ZNK3pgp3pkt9Signature5writeER10pgp_dest_tb:
 1162|  81.1k|{
 1163|  81.1k|    if (!Signature::version_supported(version)) {
  ------------------
  |  Branch (1163:9): [True: 0, False: 81.1k]
  ------------------
 1164|      0|        RNP_LOG("don't know version %d", (int) version);
  ------------------
  |  |   84|      0|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|      0|    do {                                                                                 \
  |  |  |  |   77|      0|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|      0|            break;                                                                       \
  |  |  |  |   79|      0|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1165|      0|        throw rnp::rnp_exception(RNP_ERROR_BAD_PARAMETERS);
 1166|      0|    }
 1167|       |
 1168|  81.1k|    pgp_packet_body_t pktbody(PGP_PKT_SIGNATURE);
 1169|       |
 1170|  81.1k|    if (version < PGP_V4) {
  ------------------
  |  Branch (1170:9): [True: 8.46k, False: 72.7k]
  ------------------
 1171|       |        /* for v3 signatures hashed data includes only type + creation_time */
 1172|  8.46k|        pktbody.add_byte(version);
 1173|  8.46k|        pktbody.add_byte(hashed_data.size());
 1174|  8.46k|        pktbody.add(hashed_data);
 1175|  8.46k|        pktbody.add(signer);
 1176|  8.46k|        pktbody.add_byte(palg);
 1177|  8.46k|        pktbody.add_byte(halg);
 1178|  72.7k|    } else {
 1179|       |        /* for v4 sig->hashed_data must contain most of signature fields */
 1180|  72.7k|        pktbody.add(hashed_data);
 1181|  72.7k|        pktbody.add_subpackets(*this, false);
 1182|  72.7k|    }
 1183|  81.1k|    pktbody.add(lbits.data(), 2);
 1184|  81.1k|#if defined(ENABLE_CRYPTO_REFRESH)
 1185|  81.1k|    if (version == PGP_V6) {
  ------------------
  |  Branch (1185:9): [True: 348, False: 80.8k]
  ------------------
 1186|    348|        pktbody.add_byte(salt.size());
 1187|    348|        pktbody.add(salt);
 1188|    348|    }
 1189|  81.1k|#endif
 1190|       |    /* write mpis */
 1191|  81.1k|    pktbody.add(material_buf);
 1192|  81.1k|    pktbody.write(dst, hdr);
 1193|  81.1k|}
_ZNK3pgp3pkt9Signature5writeEb:
 1197|  81.1k|{
 1198|  81.1k|    rnp::MemoryDest dst;
 1199|  81.1k|    write(dst.dst(), hdr);
 1200|  81.1k|    return dst.to_vector();
 1201|  81.1k|}
_ZN3pgp3pkt9Signature12v6_salt_sizeE14pgp_hash_alg_tPm:
 1236|  3.16k|{
 1237|  3.16k|    switch (halg) {
 1238|    348|    case PGP_HASH_SHA256:
  ------------------
  |  Branch (1238:5): [True: 348, False: 2.81k]
  ------------------
 1239|    348|        *salt_size = 16;
 1240|    348|        break;
 1241|     76|    case PGP_HASH_SHA224:
  ------------------
  |  Branch (1241:5): [True: 76, False: 3.08k]
  ------------------
 1242|     76|        *salt_size = 16;
 1243|     76|        break;
 1244|     28|    case PGP_HASH_SHA384:
  ------------------
  |  Branch (1244:5): [True: 28, False: 3.13k]
  ------------------
 1245|     28|        *salt_size = 24;
 1246|     28|        break;
 1247|  1.89k|    case PGP_HASH_SHA512:
  ------------------
  |  Branch (1247:5): [True: 1.89k, False: 1.26k]
  ------------------
 1248|  1.89k|        *salt_size = 32;
 1249|  1.89k|        break;
 1250|    125|    case PGP_HASH_SHA3_256:
  ------------------
  |  Branch (1250:5): [True: 125, False: 3.03k]
  ------------------
 1251|    125|        *salt_size = 16;
 1252|    125|        break;
 1253|    599|    case PGP_HASH_SHA3_512:
  ------------------
  |  Branch (1253:5): [True: 599, False: 2.56k]
  ------------------
 1254|    599|        *salt_size = 32;
 1255|    599|        break;
 1256|     88|    default:
  ------------------
  |  Branch (1256:5): [True: 88, False: 3.07k]
  ------------------
 1257|     88|        RNP_LOG("no V6 salt size for algorithm");
  ------------------
  |  |   84|     88|#define RNP_LOG(...) RNP_LOG_FD(stderr, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |   76|     88|    do {                                                                                 \
  |  |  |  |   77|     88|        if (!rnp_log_switch())                                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:13): [True: 88, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   78|     88|            break;                                                                       \
  |  |  |  |   79|     88|        (void) fprintf((fd), "[%s() %s:%d] ", __func__, __SOURCE_PATH_FILE__, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   72|      0|#define __SOURCE_PATH_FILE__ (__FILE__)
  |  |  |  |  ------------------
  |  |  |  |   80|      0|        (void) fprintf((fd), __VA_ARGS__);                                               \
  |  |  |  |   81|      0|        (void) fprintf((fd), "\n");                                                      \
  |  |  |  |   82|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (82:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1258|     88|        return false;
 1259|  3.16k|    }
 1260|  3.07k|    return true;
 1261|  3.16k|}

_ZN3pgp3pkt9SignatureC2Ev:
   80|   600k|        : type_(PGP_SIG_BINARY), version(PGP_VUNKNOWN), palg(PGP_PKA_NOTHING),
   81|   600k|          halg(PGP_HASH_UNKNOWN), creation_time(0){};
_ZNK3pgp3pkt9Signature4typeEv:
   88|   674k|    {
   89|   674k|        return type_;
   90|   674k|    };
_ZNK3pgp3pkt9Signature11is_documentEv:
   99|  24.6k|    {
  100|  24.6k|        return (type_ == PGP_SIG_BINARY) || (type_ == PGP_SIG_TEXT);
  ------------------
  |  Branch (100:16): [True: 18, False: 24.5k]
  |  Branch (100:45): [True: 393, False: 24.1k]
  ------------------
  101|  24.6k|    };

