Fixed stuff
This commit is contained in:
parent
90a5ee0cbe
commit
76fd021d03
@ -16,13 +16,13 @@
|
|||||||
inline std::string name(const std::string& input) { \
|
inline std::string name(const std::string& input) { \
|
||||||
uint8_t result[digestLength]; \
|
uint8_t result[digestLength]; \
|
||||||
tomcrypt::name(input.data(), input.length(), result); \
|
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) { \
|
inline std::string name(const char* input, int64_t length = -1) { \
|
||||||
uint8_t result[digestLength]; \
|
uint8_t result[digestLength]; \
|
||||||
tomcrypt::name(input, length, result); \
|
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]) { \
|
inline void name(const char* input, size_t length, uint8_t(& result)[digestLength]) { \
|
||||||
|
Loading…
Reference in New Issue
Block a user