Hi Everyone,

We removed Remove DL_PrivateKey_GFP_OldFormat and 
DL_PublicKey_GFP_OldFormat at 
https://github.com/weidai11/cryptopp/commit/a5a684d92986 .

The old format classes date back to Crypto++ 1.0 or 2.0. The classes were 
used for ElGamal encryption schemes. Everything else in the library was 
using the new format.

If you need to update your code, you can perform the following. It is how 
we converted the ElGamal data file.

    FileSource fc(CRYPTOPP_DATA_DIR "TestData/elgc1024.dat", true, new 
HexDecoder);

    DL_PrivateKey_GFP_OldFormat<DL_CryptoKeys_GFP::PrivateKey> oldKey(fc);
    DL_CryptoKeys_GFP::PrivateKey newKey(oldKey);

    HexEncoder hex(new FileSink(std::cout));
    newKey.Save(hex);

The converted key is printed to std::cout, but you can send it anywhere you 
want.

Jeff

-- 
You received this message because you are subscribed to "Crypto++ Users". More 
information about Crypto++ and this group is available at 
http://www.cryptopp.com and 
http://groups.google.com/forum/#!forum/cryptopp-users.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to