Add method to load and save keyfiles

This commit is contained in:
Leonetienne
2022-05-22 17:54:26 +02:00
parent 88cb36fd7b
commit 19660fc696
2 changed files with 57 additions and 0 deletions

View File

@@ -17,6 +17,12 @@ namespace Leonetienne::GCrypt {
//! Will generate a random key from actual randomness (std::random_device)
static Key Random();
//! Loads a keyfile
static Key LoadFromFile(const std::string& path);
//! Will save a keyfile
void WriteToFile(const std::string& path);
Key();
Key(const Key& k);
Key(const Block& b);