3DES key generation

Ingo Klöcker ingo.kloecker@epost.de
Fri Apr 18 13:14:01 2003


--Boundary-02=_O98n+QUehYc1zi+
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Description: signed data
Content-Disposition: inline

On Friday 18 April 2003 11:13, Egon Andersen wrote:
> David Shaw wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > On Thu, Apr 17, 2003 at 05:13:41PM +0200, Egon Andersen wrote:
> >>Hi,
> >>
> >>I know that gpg can use 3DES cipher algorithm, but how do I
> >> generate the 128-bit key used for this?
> >>
> >>I can see that gpg can generate DSA and ElGamal, but I can find out
> >> how to generate keys for 3DES.
> >
> > GnuPG uses 3DES for session keys, so you do not need to generate
> > them.  They are generated automatically as needed.
>
> Well, this true when I use gpg in both ends.
> But my problem is that the opposite end only uses symmetric ciphers
> and I have to inform them about my 3DES key for this session
> (encrypted with another 3DES key).
> So therefore I need to generate 3DES keys, encrypt it with a given
> 3DES key, at send it to the receiver.
> (I haven't 'invented' this system, the receiver did.)
>
> So is there any way I can generate/get 3DES key?
> Perhaps using some library?

Try --show-session-key and --override-session-key <string>. See 'man=20
gpg'.

Regards,
Ingo


--Boundary-02=_O98n+QUehYc1zi+
Content-Type: application/pgp-signature
Content-Description: signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQA+n89OGnR+RTDgudgRAkgyAJ9zWne4x7UtaLRenef1mRiehwcmZgCgwZS4
y794lzQgNE7pPJY9B4R5PjQ=
=Smpn
-----END PGP SIGNATURE-----

--Boundary-02=_O98n+QUehYc1zi+--