EldoS | Feel safer!

Software components for data protection, secure storage and transfer

OpenPGPBlackbox PGPKeysDemo RSA subkey not created?

Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.
#35805
Posted: 02/02/2016 03:52:09
by Christian Becker (Basic support level)
Joined: 02/02/2016
Posts: 2

Hallo,

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?
#35806
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:

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


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

Thanks for the fast reply.

Reply

Statistics

Topic viewed 1160 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!