hdac SDK
SDK for hdac blockchain development
hashes.h
1 #ifndef HASHES_H
2 #define HASHES_H
3 
4 #include "hashes_global.h"
5 #include <string>
6 #include <functional>
7 #include <crypto/sha256.h>
8 
9 //HASHESSHARED_EXPORT void hashFromFile(const std::string& filename);
10 void obtainHash(const std::string& input, std::function<void(unsigned char hash[CSHA256::OUTPUT_SIZE])> callback);
11 void compareHashValue(unsigned char hash[CSHA256::OUTPUT_SIZE], const std::string& correct);
12 
13 #endif // HASHES_H
vector< unsigned char > obtainHash(const string &input)
input 스트링 문자열에 대하여 vector 형 hash 를 만들어 준다.
Definition: hs_structs.cpp:26