generator: get rid of AutoSeededRandomPool et al.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2022-01-08 06:01:10 +01:00
parent 2376918791
commit 592d3aac47
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

View File

@ -4,7 +4,6 @@
#include "generator.h"
#include "util.h"
#include <cryptopp/osrng.h>
#include <cryptopp/hex.h>
#include <cryptopp/filters.h>
#include <cryptopp/serpent.h>
@ -77,12 +76,6 @@ auto Generator::do_crypto() -> std::string {
using CryptoPP::Serpent;
using CryptoPP::CTR_Mode;
CryptoPP::AutoSeededRandomPool prng;
// use 256bit key
CryptoPP::SecByteBlock key(CryptoPP::Serpent::MAX_KEYLENGTH);
prng.GenerateBlock(key,key.size());
// William Shakespeare, Romeo and Juliet
std::string plain{"Oh, I am fortune's fool!"};
std::string cipher, encoded_c;