40 return !(that == other);
48 return !(that == other);
MD5_DIGEST md5(const void *message, size_t message_len)
Definition hash.cpp:53
bool operator==(const SHA256_DIGEST &that, const SHA256_DIGEST &other)
Definition hash.h:34
int sha256_from_str(SHA256_DIGEST *out, const char *str)
Definition hash.cpp:43
int md5_comp(MD5_DIGEST digest1, MD5_DIGEST digest2)
Definition hash.cpp:71
SHA256_DIGEST sha256(const void *message, size_t message_len)
Definition hash.cpp:30
bool operator!=(const SHA256_DIGEST &that, const SHA256_DIGEST &other)
Definition hash.h:38
void sha256_str(SHA256_DIGEST digest, char *str, size_t max_len)
Definition hash.cpp:38
int md5_from_str(MD5_DIGEST *out, const char *str)
Definition hash.cpp:66
@ MD5_MAXSTRSIZE
Definition hash.h:11
@ SHA256_MAXSTRSIZE
Definition hash.h:9
@ SHA256_DIGEST_LENGTH
Definition hash.h:8
@ MD5_DIGEST_LENGTH
Definition hash.h:10
void md5_str(MD5_DIGEST digest, char *str, size_t max_len)
Definition hash.cpp:61
int sha256_comp(SHA256_DIGEST digest1, SHA256_DIGEST digest2)
Definition hash.cpp:48
unsigned char data[MD5_DIGEST_LENGTH]
Definition hash.h:21
unsigned char data[SHA256_DIGEST_LENGTH]
Definition hash.h:16