Hashing functions based upon openssl created
authorTulio Cavalcanti <tulio.cavalcanti@intra2net.com>
Mon, 17 Sep 2018 12:47:26 +0000 (14:47 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Tue, 2 Oct 2018 12:15:36 +0000 (14:15 +0200)
commit69d568ddf8e19d7e4f6e65892f1a91dd5739c929
treeee6d766a16b3deecf16a84c41dd4ceacd77aed2c
parent7e3a907d128175b8356184817093974dd0a36351
Hashing functions based upon openssl created

The following functions were implemented:
string hash_data(string data, algorithm algo=SHA1); // output: hex encoded hash
string hash_data_raw(string data, algorithm algo=SHA1); // output: raw binary hash
string hash_file(string filename, algorithm algo=SHA1); // hash data in 64kb blocks

Unit test also included.
src/CMakeLists.txt
src/crypto.cpp [new file with mode: 0644]
src/crypto.hxx [new file with mode: 0644]
test/CMakeLists.txt
test/test_crypto.cpp [new file with mode: 0644]