Error encrypting string data
Ralf Schneider
ralf@tapfere-schneiderleins.de
Mon, 21 Jul 2003 18:29:49 +0200
=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am Montag, 21. Juli 2003 18:20 schrieb Moritz Schulte:
> Ralf Schneider <ralf@tapfere-schneiderleins.de> writes:
> > Ok, and then I have 6 MPI values. What do I have to with them to get
> > the key?
>
> Uhm, I think you misunderstood something; *those* MPI values together
Yes, I think so :-(
> form the key, it is everything what you need and the only interesting
> piece of information that is stored in a gcry_ac_key_t structure.
But what is the content of the files that are created when I generate a key=
=20
pair with GPG?=20
> > What do I have to do to get the key as a byte array?
>
> Not sure. You need a special format for this purpose.
What I want to do is simply store the key (in my case in a database, but it=
=20
must be the same when storing it in file) and at a later time I want to=20
reload the data from the database and rebuild the key from it so that it ca=
n=20
be used for decrypting a piece of encrypted data.
I'm sure there must be a way to manage this :-)
Best regards,
Ralf.
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD4DBQE/HBT97YyyfykA0YkRAtvVAJ9akAfgHgGKRuB0inPjghWjiwQiqwCUCPc2
6NYfml3xbl2sn/9s/AD9Qw=3D=3D
=3Dh4Xb
=2D----END PGP SIGNATURE-----