randombit / botan
Showing 1 of 1 files from the diff.

@@ -72,9 +72,9 @@
Loading
72 72
   Therefore, the first byte can always be skipped safely.
73 73
   */
74 74
75 -
   const uint8_t skip_first = CT::Mask<uint8_t>::is_zero(in[0]).if_set_return(1);
75 +
   const auto leading_0 = CT::Mask<uint8_t>::is_zero(in[0]);
76 76
77 -
   secure_vector<uint8_t> input(in + skip_first, in + in_length);
77 +
   secure_vector<uint8_t> input(in + 1, in + in_length);
78 78
79 79
   const size_t hlen = m_Phash.size();
80 80
@@ -86,7 +86,9 @@
Loading
86 86
             input.data(), hlen,
87 87
             &input[hlen], input.size() - hlen);
88 88
89 -
   return oaep_find_delim(valid_mask, input.data(), input.size(), m_Phash);
89 +
   auto unpadded = oaep_find_delim(valid_mask, input.data(), input.size(), m_Phash);
90 +
   valid_mask &= leading_0.unpoisoned_value();
91 +
   return unpadded;
90 92
   }
91 93
92 94
secure_vector<uint8_t>
Files Coverage
src 92.34%
Project Totals (568 files) 92.34%
1
---
2

3
# Documentation
4
# https://github.com/codecov/support/wiki/Codecov-Yaml#full-yaml
5
#
6
# Validate this file
7
# curl --data-binary @codecov.yml https://codecov.io/validate
8

9
coverage:
10
  status:
11
    project:
12
      default:
13
        # Random seeds in tests lead to a +/-0.05% coverage span even for PRs
14
        # that do not change source code
15
        threshold: 0.05
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading