Fixed digest

This commit is contained in:
WolverinDEV 2019-07-06 15:28:19 +02:00
parent 2f07e0d044
commit 648611b9c0

View File

@ -41,11 +41,11 @@
\
inline std::string name(const char* input, ssize_t length = -1) { \
if(length == -1) length = strlen(input); \
return name(std::string(input, digestLength)); \
return name(std::string(input, length)); \
} \
\
inline void name(const char* input, size_t length, uint8_t(& result)[digestLength]) { \
method((u_char*) input, length, digestLength); \
method((u_char*) input, length, result); \
}
#endif