From 9b174e84de7a4cf92b9c640f011c455e88182862 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sun, 21 Jan 2018 08:45:02 -0500 Subject: Remove AsymmetricAlgorithm::BERDecode (GH #569) --- test.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test.cpp') diff --git a/test.cpp b/test.cpp index 63d72021..7b1e8176 100644 --- a/test.cpp +++ b/test.cpp @@ -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(); } -- cgit v1.2.1