diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-01-21 08:45:02 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2018-01-21 08:45:02 -0500 |
commit | 9b174e84de7a4cf92b9c640f011c455e88182862 (patch) | |
tree | 029face4f9124a3f936867aa19c6f14d4f4d7ac7 /test.cpp | |
parent | 565bd844fcc0dec4712f8c4c3e74e056f4a9ed78 (diff) | |
download | cryptopp-git-9b174e84de7a4cf92b9c640f011c455e88182862.tar.gz |
Remove AsymmetricAlgorithm::BERDecode (GH #569)
Diffstat (limited to 'test.cpp')
-rw-r--r-- | test.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -455,17 +455,18 @@ SecByteBlock HexDecodeString(const char *hex) void GenerateRSAKey(unsigned int keyLength, const char *privFilename, const char *pubFilename, const char *seed)
{
+ // DEREncode() changed to Save() at Issue 569.
RandomPool randPool;
randPool.IncorporateEntropy((byte *)seed, strlen(seed));
RSAES_OAEP_SHA_Decryptor priv(randPool, keyLength);
HexEncoder privFile(new FileSink(privFilename));
- priv.DEREncode(privFile);
+ priv.AccessMaterial().Save(privFile);
privFile.MessageEnd();
RSAES_OAEP_SHA_Encryptor pub(priv);
HexEncoder pubFile(new FileSink(pubFilename));
- pub.DEREncode(pubFile);
+ pub.AccessMaterial().Save(pubFile);
pubFile.MessageEnd();
}
|