mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-27 11:50:29 +00:00
Update comments
This commit is contained in:
parent
b4b1b530c1
commit
acf15c21c0
5
test.cpp
5
test.cpp
@ -152,8 +152,9 @@ int CRYPTOPP_API main(int argc, char *argv[])
|
||||
std::string seed = IntToString(time(NULL));
|
||||
seed.resize(16, ' ');
|
||||
|
||||
OFB_Mode<AES>::Encryption& prng = dynamic_cast<OFB_Mode<AES>::Encryption&>(GlobalRNG());
|
||||
prng.SetKeyWithIV((byte *)seed.data(), 16, (byte *)seed.data());
|
||||
// Fetch the SymmetricCipher interface, not the RandomNumberGenerator interface, to key the underlying cipher
|
||||
OFB_Mode<AES>::Encryption& aesg = dynamic_cast<OFB_Mode<AES>::Encryption&>(GlobalRNG());
|
||||
aesg.SetKeyWithIV((byte *)seed.data(), 16, (byte *)seed.data());
|
||||
|
||||
std::string command, executableName, macFilename;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user