Renamed class Hasher to GHash

This commit is contained in:
Leonetienne
2022-05-22 12:55:39 +02:00
parent 4e2f99c28e
commit 734324ec10
3 changed files with 12 additions and 12 deletions

View File

@@ -1,12 +1,12 @@
#include "GCrypt/Util.h"
#include "GCrypt/Hasher.h"
#include "GCrypt/GHash.h"
namespace Leonetienne::GCrypt {
Block PasswordToKey(const std::string& in) {
// We already have a hashing algorithm, so why not use it
// Yeah, this won't work, because it would create an include loop. This method needs to be outsourced to a cpp file..
const Block hashedPassword = Hasher::CalculateHashsum(StringToBits(in));
const Block hashedPassword = GHash::CalculateHashsum(StringToBits(in));
return hashedPassword;
}
}