| 285 | */ |
| 286 | template<AddressType::Enum type> |
| 287 | void hash_addressrange(SHA256_CTX &sha256, const DataAccess &access) { |
| 288 | auto &hashIndex = access.hashIndex; |
| 289 | auto rng = hashIndex->getAddressRange<type>(); |
| 290 | RANGES_FOR(auto pair, rng) { |
| 291 | SHA256_Update(&sha256, &pair.first, sizeof(pair.first)); |
| 292 | SHA256_Update(&sha256, &pair.second, sizeof(pair.second)); |
| 293 | } |
| 294 | } |
| 295 | |
| 296 | /** |
| 297 | Compute a checksum over all addres ranges in hash index. |
nothing calls this directly
no outgoing calls
no test coverage detected