EldoS | Feel safer!

Software components for data protection, secure storage and transfer

AES 256 creation using TElPGPSecretKey.Generate

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.
#29091
Posted: 04/02/2014 11:34:02
by Steven Overbeek (Standard support level)
Joined: 03/27/2014
Posts: 6

Only thing I am attempting to do is get the Key for Secret Key.
When you do a generate, you get a Public and a Private Key.. I only want to Key for Algorithms like AES.

Looks like TElPGPWriter has the purpose of created an encrypted file. This is not what I want. I want to store the Secret Key in a file to be used later by Utils to Decrypt incoming files in a later process by our system.. I do not want Encrypting or decrypting files with the piece of code I am creating.

This high-level class does PGP encrypting/signing/armoring/compressing operations on incoming data. TElPGPWriter lets you avoid dealing with individual streams' parameters an intermediate data blocks.
#29092
Posted: 04/02/2014 11:38:35
by Eugene Mayevski (EldoS Corp.)

To save the generated secret key (OpenPGP Secret Key is an asymmetric key, the thing that is called Private key in PKI) you use TElSecretKey.SaveTo* method.

I think that you need to read more about OpenPGP, keys and algorithms used. So far you can't even formulate the requirements right (as said, OpenPGP keys don't use AES).


Sincerely yours
Eugene Mayevski
#29093
Posted: 04/02/2014 11:56:12
by Steven Overbeek (Standard support level)
Joined: 03/27/2014
Posts: 6

Hi Eugene
I understand that TelSecretKey.SaveTo only deals with Public/Private Key pairs Asymmetric Key.. That you keep the priviate key to yourself and give the Public key to whomever is sending you the file. This is working Fine for me.

Symmetric Keys only have one key that is shared by both parties. I understand that as well. What I am getting is there is no way just to create the Symmetric key by itself? I don't want to ecrypt the file at this point so the writer option will not work for me.

thanks
Natale
#29094
Posted: 04/02/2014 12:02:45
by Eugene Mayevski (EldoS Corp.)

Ok , I think I understand your question.

For low-level encryption and symmetric key management we have special classes (eg TElSymmetricKeyMaterial, the one you need to use), but those classes were introduced later than in SecureBlackbox 6. I.e. you need to upgrade to version 11 in order to have and use those classes.

In SecureBlackbox 11 you can use TElSymmetricKeyMaterial class and its Generate method to generate a key. Then you can save this key to stream.

The use of TElSymmetricKeyMaterial.Generate was discussed several times in the forum, so you can do search and read the found topics.


Sincerely yours
Eugene Mayevski

Reply

Statistics

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