Improved security

This commit is contained in:
Leonetienne
2022-05-22 20:13:41 +02:00
parent 19660fc696
commit 5677d94e6a
5 changed files with 22 additions and 11 deletions

View File

@@ -51,6 +51,12 @@ namespace Leonetienne::GCrypt {
throw std::runtime_error("Unreachable branch reached.");
}
void GCipher::SetKey(const Key& key) {
feistel.SetKey(key);
return;
}
void GCipher::operator=(const GCipher& other) {
direction = other.direction;
feistel = other.feistel;