4 Mar 2002 18:28
8 Mar 2002 03:19
Comments on new files
Blake Ramsdell <blake <at> brutesquadlabs.com>
2002-03-08 02:19:04 GMT
2002-03-08 02:19:04 GMT
Jim, I have some comments on your last post. 1. I noticed that the public key in BobRSASignByCarl.cer changed to be what appears to be Carl's public key. I don't mind this, it's just that I thought that each one would have their own keypair. 2. From what I can tell, 6.2.ber is still DER, not BER. Well, I guess technically it's BER, but using definite lengths for everything ;). I presume that the intent was to use indefinite lengths for constructed elements, which this example does not appear to do. 3. 6.2.ber still does not decrypt in my environment with BobPrivRSAEncrypt.pri (the unwrapped key does not appear to have the correct block format, leading me to believe that it is the wrong private key. I am in the process of pulling all of this stuff apart to determine if it's a bug in my code or in the data. Blake -- Blake Ramsdell Brute Squad Labs http://www.brutesquadlabs.com
8 Mar 2002 09:51
RE: Comments on new files
Jim Schaad <jimsch <at> nwlink.com>
2002-03-08 08:51:47 GMT
2002-03-08 08:51:47 GMT
You are correct, I had assumed that the two .pri files where different and the problem was with the certificate. This is incorrect. However I am surprised that 6.2.ber does not decrypt. It appears to decrypt correctly in my system. jim > -----Original Message----- > From: owner-ietf-smime-examples <at> mail.imc.org > [mailto:owner-ietf-smime-examples <at> mail.imc.org] On Behalf Of > Blake Ramsdell > Sent: Thursday, March 07, 2002 6:19 PM > To: jimsch <at> exmsft.com > Cc: John.Pawling <at> GetronicsGov.com; IETF-SMIME-Examples; Paul Hoffman > Subject: Comments on new files > > > > Jim, > > I have some comments on your last post. > > 1. I noticed that the public key in BobRSASignByCarl.cer > changed to be what > appears to be Carl's public key. I don't mind this, it's just that I > thought that each one would have their own keypair. > > 2. From what I can tell, 6.2.ber is still DER, not BER. Well, I guess(Continue reading)
8 Mar 2002 10:13
Re: Comments on new files
Blake Ramsdell <blake <at> brutesquadlabs.com>
2002-03-08 09:13:49 GMT
2002-03-08 09:13:49 GMT
----- Original Message ----- From: "Jim Schaad" <jimsch <at> nwlink.com> To: "'Blake Ramsdell'" <blake <at> brutesquadlabs.com>; <jimsch <at> exmsft.com> Cc: <John.Pawling <at> GetronicsGov.com>; "'IETF-SMIME-Examples'" <ietf-smime-examples <at> imc.org>; "'Paul Hoffman'" <phoffman <at> imc.org> Sent: Friday, March 08, 2002 12:51 AM Subject: RE: Comments on new files > You are correct, I had assumed that the two .pri files where different > and the problem was with the certificate. This is incorrect. > > However I am surprised that 6.2.ber does not decrypt. It appears to > decrypt correctly in my system. With the confusion surrounding the pairings of the public / private keys, I thought that there was still a possibility that it was encrypted using the public key from Bob's original certificate, which I don't think I have the private key. I'll do some more testing and see what I can come up with. The RSA code I'm using has only been successfully used for signature verification, and it's possible that I'm running into some kind of signed/unsigned big integer conversion error or some such thing. Blake
8 Mar 2002 19:42
RE: Unknown OID
Jim Schaad <jimsch <at> nwlink.com>
2002-03-08 18:42:28 GMT
2002-03-08 18:42:28 GMT
Looking at the OID file for the S/MIME working group it
is
id-aa-encrypKeyPref OBJECT
IDENTIFIER ::= { id-aa 11 }
This
is documented in rfc2633.
jim
-----Original Message-----
From: owner-ietf-smime-examples <at> mail.imc.org [mailto:owner-ietf-smime-examples <at> mail.imc.org] On Behalf Of Vadim Blajkun
Sent: Tuesday, June 19, 2001 12:59 PM
To: 'ietf-smime-examples <at> imc.org'
Subject: Unknown OID
Does anyone know what object is identified by 1.2.840.113549.1.9.16.2.11 ?
It is used in some of the examples in "draft-ietf-smime-examples-06.txt" document.Thanks,
Vadim Blajkun
E-Certify (Canada)
905.615-7187
20 Mar 2002 16:39
20 Mar 2002 18:19
21 Mar 2002 08:49
Decrypting 6.2
Blake Ramsdell <blake <at> brutesquadlabs.com>
2002-03-21 07:49:41 GMT
2002-03-21 07:49:41 GMT
OK, so I pounded on the new 6.2 a bit. I was able to unwrap the 3DES key provided, but I was not successful at decrypting the content. The relevant parameters that I extracted from the message are as follows: IV E1 D1 EB E0 26 CA 58 49 Keys 13 54 34 97 7A D3 F7 45 EF 89 CE 0E 83 73 FE 2F 1A C2 57 6D E9 C7 19 EC 3DES encrypted content 02 3A 0A 0B BE B7 31 1D D4 C3 EB CA 91 18 AD 89 7B 2D F8 B1 FB FD BF 2A 52 81 77 DA 9F 49 7F 00 This yielded: Decrypted content BA 8C 40 73 91 05 EA 2E D6 C2 47 18 3A 9C 38 CD 20 4C E3 FA 21 7B 5C E1 The decrypted content does not appear to be correct, and this could very well be an error in the decryption code on my side. If anyone else has a different result, let me know. I'm still looking at my implementation, but I'm running out of possibilities. I'm putting in another 3DES implementation to see if the results are any different. I am fairly certain that the keys are correct, since the RSA block padding was intact and the unpadded keying material was 24 bytes long. I am almost 100% certain that the input data is correct, since that's verifiable by dumping the ASN.1 and parsing it by hand. So I think this leaves "encryption error" or "decryption error". Any comments, please let me know. Blake -- Blake Ramsdell Brute Squad Labs http://www.brutesquadlabs.com
21 Mar 2002 11:00
Re: Decrypting 6.2
Blake Ramsdell <blake <at> brutesquadlabs.com>
2002-03-21 10:00:48 GMT
2002-03-21 10:00:48 GMT
----- Original Message ----- From: "Blake Ramsdell" <blake <at> brutesquadlabs.com> To: "IETF-SMIME-Examples" <ietf-smime-examples <at> imc.org>; <jimsch <at> nwlink.com> Sent: Wednesday, March 20, 2002 11:49 PM Subject: Decrypting 6.2 > OK, so I pounded on the new 6.2 a bit. I was able to unwrap the 3DES key > provided, but I was not successful at decrypting the content. I forgot to add "due to my own stupidity". I found an error in my code, and example 6.2 correctly decrypts to the contents of ExContent.bin using the new private key provided. Sorry for the false alarm. I see no problems with 6.2, and it is indeed indefinite length encoded. Blake
RSS Feed