22#define HA_IO_ENDLINE_LF "\n"
23#define HA_IO_ENDLINE_CRLF "\r\n"
24#define HA_IO_ENDLINE HA_IO_ENDLINE_LF
60#define ha_hash2str_bound(len) ((len) * 2)
61#define ha_str2hash_bound(len) ((len) / 2)
63#define ha_strhash_bound(len) ha_hash2str_bound(len)
101HA_DEPRECATED(
"ha_hashstr now deprecated, use ha_hash2str instead")
#define HA_DEPRECATED(msg)
HA_PUBFUN size_t ha_hash2str(char *dst, ha_cdigest_t src, size_t len)
Converts a hash digest to a hexadecimal string representation.
HA_PUBFUN int ha_cmphash(ha_cdigest_t lhs, ha_cdigest_t rhs, size_t digestlen)
Compares two hash digests byte by byte.
HA_PUBFUN size_t ha_str2hash(ha_digest_t dst, const char *src, size_t len)
Converts a hexadecimal string representation to a hash digest.
HA_PUBFUN int ha_cmphashstr(ha_cdigest_t lhs, const char *rhs, size_t digestlen)
Compares a hash digest with a hexadecimal string representation.
HA_PUBFUN size_t ha_fputhash(FILE *stream, ha_cdigest_t digest, size_t digestlen, const char *end)
Writes the hash digest to the specified file stream.
HA_PUBFUN size_t ha_strhash(char *dst, ha_cdigest_t src, size_t len)
HA_PUBFUN size_t ha_puthash(ha_cdigest_t digest, size_t digestlen, const char *end)
Outputs the hash digest to standard output.
const __ha_out_buf_type ha_cdigest_t
__ha_out_buf_type ha_digest_t