Thread View: alt.privacy.anon-server
7 messages
7 total messages
Started by Thomas J. Boschloo
Wed, 30 May 2001 17:10
PGP packet analyzer (Was: Quicksilver...nym wizard probs)
Author: Thomas J. Boschloo
Date: Wed, 30 May 2001 17:10
Date: Wed, 30 May 2001 17:10
35 lines
2485 bytes
2485 bytes
-----BEGIN PGP SIGNED MESSAGE----- QuickSilver wrote: > I saw you installed PGP6 again. Are you using the keyset created with > PGP7? > > If anyone has a few minutes, I'd appreciate if someone would send me a > keyset created using legacy RSA. I'd like to get a look at them, and > maybe see what's the problem. Since you don't post under your obvious nym to alt.security.pgp, I thought I would provide you with this fine link: <http://xdv.org/pgpdump> With it you can easily look inside pgp packets without any programming from RFC2440-Bis yourself. <http://www.planet-express.com/sven/technical/dev/sfopgp> also has a packet analyzer, but it is only OpenPGP RFC2440 I think (not legacy which you are interested in). Regards, Thomas -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 5.5.3i for non-commercial use <http://www.pgpi.com> Comment: My homepage <http://home.soneraplaza.nl/mw/prive/boschloo> iQB5AwUBOxUbSgEP2l8iXKAJAQEUgwMgqOeXCaCyJOOczRYjLEgOfvuuNDIGzO0A tHtAe2y3G6xQ4+2Jszh/WBgE9KntsPw7eqSI7YfjSmodPZLnAXG5copNngKDUaCh evaaUt95XCDEbC6TbqVQUUaL9sAkMHZgGebDGA== =kbSp -----END PGP SIGNATURE----- -- Android 16: "I will only fight Goku"
Re: PGP packet analyzer (Was: Quicksilver...nym wizard probs)
Author: Grendel
Date: Wed, 30 May 2001 19:59
Date: Wed, 30 May 2001 19:59
104 lines
5664 bytes
5664 bytes
This is a multi-part message in MIME format. ------=_NextPart_000_0038_01C0E921.4354D700 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello Thomas, I went to the web page that you suggested, more out of curioisity, than = anything else and pasted a short encrypted message which I encrypted = with my public key. The output is quite incomprehensible to me. I have = pasted it below. One of the thing that strikes me is that IDEA is = listed as the encrytpion algorithm. Well, I have set in my pref's AES = as my preferred encryption algorithm. I wonder why this is. Also, what = is the meaning or significance of "Packets"? If it's not already = obvious, I am quite new to this. -Greg PGPdump Output Old: Marker Packet(tag 10)(3 bytes) String - ... New: Public-Key Encrypted Session Key Packet(tag 1)(1038 bytes) New version(3) Key ID - 91 57 b8 4e 0e ee 77 7c=20 Pub alg - ElGamal Encrypt-Only(pub 16) ElGamal g^k mod p(4094 bits) - ... ElGamal m * y^k mod p(4095 bits) - ... -> m =3D sym alg(1) + checksum(2) + PKCS-1 block type 02 New: Symmetrically Encrypted Data Packet(tag 9)(134 bytes) Encrypted data [if pub/sym session key not present, sym alg - IDEA] -------------------------------------------------------------------------= ------- PGPdump Interface, Copyright (c) 2001, Stefan H. Holek, stefan@epy.co.at = ------=_NextPart_000_0038_01C0E921.4354D700 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 5.50.4611.1300" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY> <DIV><FONT face=3D"Lucida Bright">Hello Thomas,</FONT></DIV> <DIV><FONT face=3D"Lucida Bright"></FONT> </DIV> <DIV><FONT face=3D"Lucida Bright">I went to the web page that you = suggested, more=20 out of curioisity, than anything else and pasted a short encrypted = message which=20 I encrypted with my public key. The output is quite = incomprehensible to=20 me. I have pasted it below. One of the thing that strikes me = is that=20 IDEA is listed as the encrytpion algorithm. Well, I have set in my = pref's=20 AES as my preferred encryption algorithm. I wonder why this is. = Also, what=20 is the meaning or significance of "Packets"? If it's not already = obvious,=20 I am quite new to this.</FONT></DIV> <DIV><FONT face=3D"Lucida Bright"></FONT> </DIV> <DIV><FONT face=3D"Lucida Bright">-Greg</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3D"Lucida Bright"></FONT> </DIV> <DIV><FONT face=3D"Lucida Bright"><STRONG>PGPdump Output<BR>Old: Marker = Packet(tag=20 10)(3 bytes)<BR> String - ...<BR>New: Public-Key Encrypted Session = Key=20 Packet(tag 1)(1038 bytes)<BR> New version(3)<BR> Key ID - 91 = 57 b8 4e=20 0e ee 77 7c <BR> Pub alg - ElGamal Encrypt-Only(pub = 16)<BR> ElGamal=20 g^k mod p(4094 bits) - ...<BR> ElGamal m * y^k mod p(4095 bits) -=20 ...<BR> -> m =3D sym alg(1) + checksum(2) + PKCS-1 block = type=20 02<BR>New: Symmetrically Encrypted Data Packet(tag 9)(134=20 bytes)<BR> Encrypted data [if pub/sym session key not present, sym = alg -=20 IDEA]</STRONG></FONT></DIV> <DIV><FONT face=3D"Lucida Bright"><STRONG></STRONG></FONT> </DIV> <DIV><FONT face=3D"Lucida Bright"><STRONG></STRONG></FONT> </DIV> <DIV><FONT face=3D"Lucida Bright"><STRONG></STRONG></FONT> </DIV> <DIV><FONT=20 face=3D"Lucida = Bright"><STRONG>---------------------------------------------------------= -----------------------<BR>PGPdump=20 Interface, Copyright (c) 2001, Stefan H. Holek, </STRONG></FONT><A=20 href=3D"mailto:stefan@epy.co.at"><FONT=20 face=3D"Lucida Bright"><STRONG>stefan@epy.co.at</STRONG></FONT></A><FONT = face=3D"Lucida Bright"><STRONG> </STRONG></FONT></DIV></BODY></HTML> ------=_NextPart_000_0038_01C0E921.4354D700--
Re: PGP packet analyzer (Was: Quicksilver...nym wizard probs)
Author: Thomas J. Boschloo
Date: Thu, 31 May 2001 14:00
Date: Thu, 31 May 2001 14:00
88 lines
4796 bytes
4796 bytes
-----BEGIN PGP SIGNED MESSAGE----- Grendel wrote: > > Hello Thomas, > > I went to the web page that you suggested, more out of curioisity, > than anything else and pasted a short encrypted message which I > encrypted with my public key. The output is quite incomprehensible to > me. I have pasted it below. One of the thing that strikes me is that > IDEA is listed as the encrytpion algorithm. Well, I have set in my > pref's AES as my preferred encryption algorithm. I wonder why this > is. Also, what is the meaning or significance of "Packets"? If it's > not already obvious, I am quite new to this. > > -Greg > > > PGPdump Output > Old: Marker Packet(tag 10)(3 bytes) > String - ... > New: Public-Key Encrypted Session Key Packet(tag 1)(1038 bytes) > New version(3) > Key ID - 91 57 b8 4e 0e ee 77 7c > Pub alg - ElGamal Encrypt-Only(pub 16) > ElGamal g^k mod p(4094 bits) - ... > ElGamal m * y^k mod p(4095 bits) - ... > -> m = sym alg(1) + checksum(2) + PKCS-1 block type 02 fFrom RFC2440-bis: # The value "m" in the above formulas is derived from the session key # as follows. First the session key is prefixed with a one-octet # algorithm identifier that specifies the symmetric encryption # algorithm used to encrypt the following Symmetrically Encrypted Data # Packet. Then a two-octet checksum is appended which is equal to the # sum of the preceding session key octets, not including the algorithm # identifier, modulo 65536. This value is then encoded as described # in PKCS-1 block encoding EME-PKCS1-v1_5 [RFC2437] to form the "m" # value used in the formulas above. So could you repost the first byte of 'm'? (size 1 octet) These are the algorithms 'm' can be: # 9.2. Symmetric Key Algorithms # # ID Algorithm # -- --------- # 0 - Plaintext or unencrypted data # 1 - IDEA [IDEA] # 2 - Triple-DES (DES-EDE, [SCHNEIER] - # 168 bit key derived from 192) # 3 - CAST5 (128 bit key, as per RFC2144) # 4 - Blowfish (128 bit key, 16 rounds) [BLOWFISH] # 5 - SAFER-SK128 (13 rounds) [SAFER] # 6 - Reserved for DES/SK [AES] # 7 - AES with 128-bit key # 8 - AES with 192-bit key # 9 - AES with 256-bit key # 10 - Twofish with 256-bit key [TWOFISH] # 100 to 110 - Private/Experimental algorithm. # # Implementations MUST implement Triple-DES. Implementations SHOULD # implement IDEA and CAST5.Implementations MAY implement any other # algorithm. > New: Symmetrically Encrypted Data Packet(tag 9)(134 bytes) > Encrypted data [if pub/sym session key not present, sym alg - IDEA] Well, the pub session key was present, so we don't know yet if it really was IDEA. Good luck, Thomas (BTW, I couldn't find your key on the keyservers so I could not check if it really had AES set) -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 5.5.3i for non-commercial use <http://www.pgpi.com> Comment: My homepage <http://home.soneraplaza.nl/mw/prive/boschloo> iQB5AwUBOxZAgwEP2l8iXKAJAQFxxgMfb3uv5I3dHWavpRbrcLg6KDbLtMzUnmLR +S2ugN0Nl20zWlbvE7rC6yWJzJLHOTdF+QF0BQY90GKdXuMxwL07r2NjEieqWE1g l7qHX5mYpfbnLoe6851vpy9HPq4O/5w57nUbZw== =zLwL -----END PGP SIGNATURE----- -- Android 16: "I will only fight Goku"
Re: PGP packet analyzer (Was: Quicksilver...nym wizard probs)
Author: disastry
Date: Thu, 31 May 2001 16:39
Date: Thu, 31 May 2001 16:39
51 lines
3365 bytes
3365 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160
> Grendel wrote:
> I went to the web page that you suggested, more out of curioisity, than anything else and
> pasted a short encrypted message which I encrypted with my public key. The output is quite
> incomprehensible to me. I have pasted it below. One of the thing that strikes me is that
> IDEA is listed as the encrytpion algorithm. Well, I have set in my pref's AES as my
> preferred encryption algorithm.
preferred algorithm doesn't matter in this case :
if you do encryption to someone's public key preferred algorithm from his
key (if present) will be used, not one you have selected in preferences
if you do conventional encryption PGP will always use IDEA unless IDEA is disabled,
only if IDEA is disabled PGP will use preferred algorithm.
> I wonder why this is. Also, what is the meaning or
> significance of "Packets"? If it's not already obvious, I am quite new to this.
>
> -Greg
>
>
> PGPdump Output
> Old: Marker Packet(tag 10)(3 bytes)
> String - ...
> New: Public-Key Encrypted Session Key Packet(tag 1)(1038 bytes)
> New version(3)
> Key ID - 91 57 b8 4e 0e ee 77 7c
> Pub alg - ElGamal Encrypt-Only(pub 16)
> ElGamal g^k mod p(4094 bits) - ...
> ElGamal m * y^k mod p(4095 bits) - ...
> -> m = sym alg(1) + checksum(2) + PKCS-1 block type 02
> New: Symmetrically Encrypted Data Packet(tag 9)(134 bytes)
> Encrypted data [if pub/sym session key not present, sym alg - IDEA]
== <EOF> ==
Disastry http://i.am/disastry/
http://disastry.dhs.org/pgp <----PGP plugins for Netscape and MDaemon
^--GPG for Win32 (supports loadable modules and IDEA)
^---PGP 2.6.3ia-multi04 (supports IDEA, CAST5, BLOWFISH, TWOFISH,
AES, 3DES ciphers and MD5, SHA1, RIPEMD160 hashes)
-----BEGIN PGP SIGNATURE-----
Version: Netscape PGP half-Plugin 0.15 by Disastry / PGPsdk v1.7.1
iQA/AwUBOxZXojBaTVEuJQxkEQNjNgCfSAOCaN1Fyblom+aMaHRrXP39n6cAoI/X
rMn0kEKxQtS+4jpn23EueuH0
=3SU0
-----END PGP SIGNATURE-----
Re: PGP packet analyzer (Was: Quicksilver...nym wizard probs)
Author: vedaal
Date: Sun, 03 Jun 2001 13:01
Date: Sun, 03 Jun 2001 13:01
50 lines
2612 bytes
2612 bytes
Tom McCune wrote:
>My understanding remains that an official PGP generated v3 RSA key
will
>only encrypt to IDEA. I can't see much opportunity to test this, but
did
>set my PGP Options to disallow IDEA, and then encrypted a small text
to
>my RSA key, then dumped it at:
>http://xdv.org/cgi-bin/pgpdump
>The output seems to indicate that it was encrypted to IDEA:
>PGPdump Output
>Old: Public-Key Encrypted Session Key Packet(tag 1)(268 bytes)
>New version(3)
>Key ID - f7 2b f8 34 c4 11 d0 a9
>Pub alg - RSA Encrypt or Sign(pub 1)
>RSA m^e mod n(2047 bits) - ...
-> m = sym alg(1) + checksum(2) + PKCS-1 block type 02
>Old: Symmetrically Encrypted Data Packet(tag 9)(45 bytes)
Encrypted data [if pub/sym session key not present, sym alg -
>IDEA]
have had the same results with PGPdump, do not understand why it says
IDEA
*but*
do the following 'test':
disable everything except AES in 7.xx
encrypt to a v3 rsa key, the encrypted message will use AES as the
algorithm,
and the 'proof' is that it will not be able to be read in 6.5.8 or
2.6.3
which do not support AES, but can be read in 7.xx, 6.5.8 ckt, and
2.6.3i multi
possibly, the IDEA reading in pgpdump refers to something else about
the v3 key in the packet besides the encrypted message, and that
'something else' in fact
may have an IDEA identification
hth,
vedaal
Re: PGP packet analyzer (Was: Quicksilver...nym wizard probs)
Author: disastry
Date: Mon, 04 Jun 2001 08:40
Date: Mon, 04 Jun 2001 08:40
44 lines
2990 bytes
2990 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160
vedaal wrote:
> >The output seems to indicate that it was encrypted to IDEA:
>
> >PGPdump Output
>
> >Old: Public-Key Encrypted Session Key Packet(tag 1)(268 bytes)
> >New version(3)
> >Key ID - f7 2b f8 34 c4 11 d0 a9
> >Pub alg - RSA Encrypt or Sign(pub 1)
> >RSA m^e mod n(2047 bits) - ...
> -> m = sym alg(1) + checksum(2) + PKCS-1 block type 02
> >Old: Symmetrically Encrypted Data Packet(tag 9)(45 bytes)
> Encrypted data [if pub/sym session key not present, sym alg - IDEA]
>
> have had the same results with PGPdump, do not understand why it says IDEA
it doesn't say "IDEA"
it just says "if (condition) then IDEA"
but condition==FALSE
PGPdump can't relay know if it is IDEA or not.
and only after "pub session key" is decrypted it is possible to
find out which block cipher is used
PGPdump obviously can't do that (it have no private key)
tray "GPG -v -v --list-packets"
it will tell the truth.
== <EOF> ==
Disastry http://i.am/disastry/
http://disastry.dhs.org/pgp <----PGP plugins for Netscape and MDaemon
^--GPG for Win32 (supports loadable modules and IDEA)
^---PGP 2.6.3ia-multi04 (supports IDEA, CAST5, BLOWFISH, TWOFISH,
AES, 3DES ciphers and MD5, SHA1, RIPEMD160 hashes)
-----BEGIN PGP SIGNATURE-----
Version: Netscape PGP half-Plugin 0.15 by Disastry / PGPsdk v1.7.1
iQA/AwUBOxstYzBaTVEuJQxkEQOfhgCgqavKpNBlMCzdWqvtOc3RYZlYHSQAnRp4
6/EYDLrrmjSkL2xnlLUUR7b2
=HDz0
-----END PGP SIGNATURE-----
Re: PGP packet analyzer (Was: Quicksilver...nym wizard probs)
Author: Johan Wevers
Date: Wed, 06 Jun 2001 07:31
Date: Wed, 06 Jun 2001 07:31
28 lines
2114 bytes
2114 bytes
disastry@saiknes.lv.n0SPAM.NET wrote:
> tray "GPG -v -v --list-packets"
> it will tell the truth.
Hmmm. I will retest this on my Linux machine, but on win2000 at
work, with gpg 1.0.6 loading the IDEA, TIGER and SHA2 plugins:
gpg -v -v --list-packets adres.tex.pgp
"The instruction at "0x74fb1d1b" referenced memory at "0xaf8078b8".
The memory could not be read.
I always get this with gpg when loading modules and using -vv.
> gpg -v --list-packets filename.pgp
:encrypted data packet:
length: 3630
gpg: CAST5 encrypted data
gpg: decryption failed: bad key
This can't be true - the file I tested is conventionally encrypted
with pgp 2.6.3ia, which uses IDEA.
--
ir. J.C.A. Wevers // Physics and science fiction site:
johanw@iae.nl // http://www.xs4all.nl/~johanw/index.html
PGP/GPG public keys at http://www.xs4all.nl/~johanw/pgpkeys.html
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads