More streamlined naming scheme for digestion method of ghash

This commit is contained in:
Leonetienne
2022-05-26 19:57:14 +02:00
parent 3f990b30d0
commit 1ea89541f9
4 changed files with 8 additions and 8 deletions
+3 -3
View File
@@ -24,7 +24,7 @@ namespace Leonetienne::GCrypt {
return;
}
void GHash::DigestBlock(const Block& data) {
void GHash::Digest(const Block& data) {
// Set the cipher key to the current data to be hashed
cipher.SetKey(data);
@@ -50,7 +50,7 @@ namespace Leonetienne::GCrypt {
// Digest all blocks
for (const Block& block : data) {
hasher.DigestBlock(block);
hasher.Digest(block);
}
// Add an additional block, containing the length of the input
@@ -75,7 +75,7 @@ namespace Leonetienne::GCrypt {
lengthBlock.FromTextString(ss.str());
// Digest the length block
hasher.DigestBlock(lengthBlock);
hasher.Digest(lengthBlock);
// Return the total hashsum
return hasher.GetHashsum();