Renamed method DigestFlexblock to CipherFlexblock, and made it public

This commit is contained in:
Leonetienne
2022-05-22 13:04:20 +02:00
parent 734324ec10
commit cf784ca8ac
2 changed files with 12 additions and 7 deletions

View File

@@ -28,10 +28,11 @@ namespace Leonetienne::GCrypt {
//! @filename_out The file the decrypted version should be saved in.
static bool DecryptFile(const std::string& filename_in, const std::string& filename_out, const std::string& password, bool printProgressReport = false);
//! Will enncrypt or decrypt an entire flexblock of binary data, given a key.
static Flexblock CipherFlexblock(const Flexblock& data, const Block& key, const GCipher::DIRECTION direction);
private:
//! Will digest a flexblock with a key
static Flexblock DigestFlexblock(const Flexblock& data, const Block& key, const GCipher::DIRECTION direction);
// No instanciation! >:(
GCryptWrapper();