Fixed digest
This commit is contained in:
parent
2f07e0d044
commit
648611b9c0
@ -41,11 +41,11 @@
|
|||||||
\
|
\
|
||||||
inline std::string name(const char* input, ssize_t length = -1) { \
|
inline std::string name(const char* input, ssize_t length = -1) { \
|
||||||
if(length == -1) length = strlen(input); \
|
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]) { \
|
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
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user