* Provides a safe interface for validating ASMap data before use. * Returns true if the data is valid for 128 bits long inputs. */
| 306 | * Returns true if the data is valid for 128 bits long inputs. |
| 307 | */ |
| 308 | bool CheckStandardAsmap(const std::span<const std::byte> data) |
| 309 | { |
| 310 | if (!SanityCheckAsmap(data, 128)) { |
| 311 | LogWarning("Sanity check of asmap data failed\n"); |
| 312 | return false; |
| 313 | } |
| 314 | return true; |
| 315 | } |
| 316 | |
| 317 | /** |
| 318 | * Loads an ASMap file from disk and validates it. |