Fixed minor behavior on the trasnformations and added sha1-mbedtls

This commit is contained in:
Felipe Zimmerle
2016-05-30 16:53:08 -03:00
parent f35d28b8d3
commit 967c8c90f2
17 changed files with 1077 additions and 775 deletions

View File

@@ -40,11 +40,7 @@ Sha1::Sha1(std::string action)
std::string Sha1::evaluate(std::string value,
Transaction *transaction) {
Utils::SHA1 sha1;
sha1.update(&value);
std::string sha1_bin = sha1.final_bin();
return sha1_bin;
return Utils::Sha1::digest(value);
}
} // namespace transformations