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

@@ -8,7 +8,7 @@ namespace Leonetienne::GCrypt {
constexpr std::size_t BLOCK_SIZE = 512;
// MUST BE > 2
constexpr std::size_t N_ROUNDS = 64;
constexpr std::size_t N_ROUNDS = 400;
}
#endif

View File

@@ -25,6 +25,9 @@ namespace Leonetienne::GCrypt {
//! Will digest a data block, and return it
Block Digest(const Block& input);
//! Will update the base key used
void SetKey(const Key& key);
void operator=(const GCipher& other);
private: