Made the whole thing MUCH more secure, by adding an IV (initialization vector), implemeted RRKM (rolling round key mode) and redone key extrapolation

This commit is contained in:
Leonetienne
2022-02-06 21:54:43 +01:00
parent e57456e9ae
commit 8678d3cb1b
18 changed files with 427 additions and 65 deletions

View File

@@ -2,15 +2,18 @@
#include "Config.h"
#include "Block.h"
/** Will create a sudo-random Block based on a seed
*/
class InitializationVector
namespace GhettoCipher
{
public:
InitializationVector(const GhettoCipher::Block& seed);
/** Will create a sudo-random Block based on a seed
*/
class InitializationVector
{
public:
InitializationVector(const GhettoCipher::Block& seed);
operator GhettoCipher::Block() const;
operator GhettoCipher::Block() const;
private:
GhettoCipher::Block iv;
};
private:
GhettoCipher::Block iv;
};
}