EldoS | Feel safer!

Software components for data protection, secure storage and transfer

OpenPGPBlackbox PGPKeysDemo RSA subkey not created?

Also by EldoS: CallbackFilter
A component to monitor and control disk activity, track file and directory operations (create, read, write, rename etc.), alter file data, encrypt files, create virtual files.
Posted: 02/02/2016 03:52:09
by Christian Becker (Basic support level)
Joined: 02/02/2016
Posts: 2


I'am evaluating the OpenPGPBlackbox and was trying to create keys. The PKPKeys demo allows to select between RSA, Elgamal and ECDSA. Creating a RSA key will create a new key, but the created key does not contain an encryption subkey.

Imported RSA PGP keys generated with other tools by default contain a subkey, as do Elgamal and ECDSA keys generated by the PGPKeys demo.

Is that a bug (in the demo?) or a general limitation?
Posted: 02/02/2016 04:03:01
by Ken Ivanov (EldoS Corp.)

Hi Christian,

Thank you for contacting us.

It's just a limitation of the sample, which generates legacy RSA keys by default. Please use the two-algorithm overload of the TElPGPSecretKey.Generate() method to generate an RSA key with a subkey:

SecretKey.Generate(passphrase, bits, SBPGPConstants.Unit.SB_PGP_ALGORITHM_PK_RSA, bits, SBPGPConstants.Unit.SB_PGP_ALGORITHM_PK_RSA_ENCRYPT, username, 0);

Posted: 02/02/2016 04:10:35
by Christian Becker (Basic support level)
Joined: 02/02/2016
Posts: 2

Thanks for the fast reply.



Topic viewed 1090 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!