src/basic/sha256.h
raw| 1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 | |
| 3 | #pragma once |
| 4 | |
| 5 | #include "basic-forward.h" |
| 6 | |
| 7 | #include "../fundamental/sha256.h" /* IWYU pragma: export */ |
| 8 | |
| 9 | int sha256_fd(int fd, uint64_t max_size, uint8_t ret[static SHA256_DIGEST_SIZE]); |
| 10 | |
| 11 | int parse_sha256(const char *s, uint8_t ret[static SHA256_DIGEST_SIZE]); |
| 12 | |
| 13 | bool sha256_is_valid(const char *s) _pure_; |