20 #ifndef SHA1_HPP_XJADWV5G
21 #define SHA1_HPP_XJADWV5G
33 USCXML_API
inline std::string sha1(
const char* data,
size_t length) {
36 SHA1Input(&sha, (
const unsigned char*)data, length);
37 if (!SHA1Result(&sha)) {
40 std::ostringstream ss;
41 ss << std::hex << std::uppercase << std::setfill(
'0' );
42 for (
size_t i = 0; i < 5; i++) {
43 ss << std::setw( 2 ) << sha.Message_Digest[i];
50 USCXML_API
inline std::string sha1(
const std::string& data) {
51 return sha1(data.data(), data.size());
Definition: Breakpoint.cpp:26