| 293 | |
| 294 | template<size_t WIDTH> |
| 295 | bool HasCollision(StepRow<WIDTH>& a, StepRow<WIDTH>& b, size_t l) |
| 296 | { |
| 297 | // This doesn't need to be constant time. |
| 298 | for (size_t j = 0; j < l; j++) { |
| 299 | if (a.hash[j] != b.hash[j]) |
| 300 | return false; |
| 301 | } |
| 302 | return true; |
| 303 | } |
| 304 | |
| 305 | template<size_t WIDTH> |
| 306 | TruncatedStepRow<WIDTH>::TruncatedStepRow(const unsigned char* hashIn, size_t hInLen, |
no outgoing calls
no test coverage detected