Fixed stuff

This commit is contained in:
WolverinDEV 2019-07-06 15:21:59 +02:00
parent 90a5ee0cbe
commit 76fd021d03

View File

@ -16,13 +16,13 @@
inline std::string name(const std::string& input) { \
uint8_t result[digestLength]; \
tomcrypt::name(input.data(), input.length(), result); \
return std::string(result, result); \
return std::string(result, digestLength); \
} \
\
inline std::string name(const char* input, int64_t length = -1) { \
uint8_t result[digestLength]; \
tomcrypt::name(input, length, result); \
return std::string(result, result); \
return std::string(result, digestLength); \
} \
\
inline void name(const char* input, size_t length, uint8_t(& result)[digestLength]) { \