generator: get rid of AutoSeededRandomPool et al.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
2376918791
commit
592d3aac47
|
@ -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;
|
||||
|
|
Reference in New Issue