| 76 | Digest(size_t len) : _length(len) { TSAssert(len <= EVP_MAX_MD_SIZE); } |
| 77 | |
| 78 | [[nodiscard]] cripts::string |
| 79 | Hex() const |
| 80 | { |
| 81 | return ts::hex({reinterpret_cast<const char *>(_hash), _length}); |
| 82 | } |
| 83 | |
| 84 | operator cripts::string() const { return Hex(); } |
| 85 |