From cryptlib@mbsks.franken.de Sun Feb 3 07:28:51 2002 From: cryptlib@mbsks.franken.de (Peter Gutmann) Date: Sun, 3 Feb 2002 20:28:51 +1300 (NZDT) Subject: [Cryptlib] Looking for implementation of cert read code Message-ID: <200202030728.UAA518895@ruru.cs.auckland.ac.nz> I'm looking for someone to do a sample implementation of http://www.ietf.org/internet-drafts/draft-ietf-pkix-certstore-http-02.txt to make available on an Internet-accessible server for testing by members of the PKIX group. All it requires is a means of translating an incoming attribute= value HTTP request (eg "GET /search-cgi?email=foo%40bar.com HTTP/1.0") into a query from a cryptlib cert store ("SELECT certificate FROM certificates WHERE email = 'foo@bar.com'"). The easiest way to do this would be with a handful of Perl code listening on some convenient port (8080) and forwarding the request on to to MySQL, with various sample certs added to the collection using certinst. Peter. From cryptlib@mbsks.franken.de Mon Feb 4 09:48:00 2002 From: cryptlib@mbsks.franken.de (Peter Gutmann) Date: Mon, 4 Feb 2002 22:48:00 +1300 (NZDT) Subject: [Cryptlib] cryptlib 3.0 released Message-ID: <200202040948.WAA26996@ruru.cs.auckland.ac.nz> The subject line says it all, it's available from the usual place, ftp://ftp.franken.de/pub/crypt/cryptlib/cl30.zip. Peter. From cryptlib@mbsks.franken.de Tue Feb 5 12:09:36 2002 From: cryptlib@mbsks.franken.de (Admin Euro Sistemi Srl) Date: Tue, 5 Feb 2002 13:09:36 +0100 Subject: [Cryptlib] Windows XP Professional & CRYPT_OPTION_CONFIGCHANGED Message-ID: <003201c1ae3d$fa982e80$2bb13bd9@piii> Messaggio in formato MIME composto da più parti. ------=_NextPart_000_002F_01C1AE46.5C2A3BE0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable On Windows XP Professional, using: cryptSetAttribute( CRYPT_UNUSED, CRYPT_OPTION_CONFIGCHANGED, FALSE ) I get a Bad Param 2 error... Why ? And why in the pc don't exists the .p15 configuration file ? Francesco ------=_NextPart_000_002F_01C1AE46.5C2A3BE0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

On Windows XP Professional, = using:

cryptSetAttribute( CRYPT_UNUSED, CRYPT_OPTION_CONFIGCHANGED, FALSE = )

I get a Bad Param 2 error... Why ?

And why in the pc don't exists the .p15 = configuration=20 file ?

Francesco

------=_NextPart_000_002F_01C1AE46.5C2A3BE0-- From cryptlib@mbsks.franken.de Tue Feb 5 15:07:23 2002 From: cryptlib@mbsks.franken.de (Nguyen) Date: Tue, 05 Feb 2002 22:07:23 +0700 Subject: [Cryptlib] cryptlib 3.0 released In-Reply-To: <200202040948.WAA26996@ruru.cs.auckland.ac.nz> Message-ID: <5.0.2.1.2.20020205220352.01e79a20@mail.hcm.vnn.vn> Hi Peter , I has downloaded this file 3 times , but still unable to open it , maybe the archive was corrupt . Has anyone experienced the same ? Can you help to check it ? best regards, Nguyen At 10:48 PM 2/4/02 +1300, you wrote: >The subject line says it all, it's available from the usual place, >ftp://ftp.franken.de/pub/crypt/cryptlib/cl30.zip. > >Peter. > >_______________________________________________ >Cryptlib mailing list >Cryptlib@mbsks.franken.de >Administration via Mail: cryptlib-request@mbsks.franken.de From cryptlib@mbsks.franken.de Tue Feb 5 16:44:58 2002 From: cryptlib@mbsks.franken.de (Matthias Bruestle) Date: Tue, 5 Feb 2002 17:44:58 +0100 Subject: [Cryptlib] cryptlib 3.0 released In-Reply-To: <5.0.2.1.2.20020205220352.01e79a20@mail.hcm.vnn.vn>; from daiviet@hcm.vnn.vn on Tue, Feb 05, 2002 at 10:07:23PM +0700 References: <200202040948.WAA26996@ruru.cs.auckland.ac.nz> <5.0.2.1.2.20020205220352.01e79a20@mail.hcm.vnn.vn> Message-ID: <20020205174458.N21987@mbsks.franken.de> Mahlzeit On Tue, Feb 05, 2002 at 10:07:23PM +0700, Nguyen wrote: > I has downloaded this file 3 times , but still unable to open it , maybe > the archive was corrupt . Has anyone experienced the same ? Can you help to The file is correct, both on the server and after I downloaded it. Mahlzeit endergone Zwiebeltuete From cryptlib@mbsks.franken.de Tue Feb 5 16:53:31 2002 From: cryptlib@mbsks.franken.de (David Smith) Date: Tue, 5 Feb 2002 10:53:31 -0600 Subject: [Cryptlib] cryptlib 3.0 released In-Reply-To: <5.0.2.1.2.20020205220352.01e79a20@mail.hcm.vnn.vn> Message-ID: Nguyen, I just downloaded it and have no trouble with the archive. David -----Original Message----- From: cryptlib-admin@mbsks.franken.de [mailto:cryptlib-admin@mbsks.franken.de]On Behalf Of Nguyen Sent: Tuesday, February 05, 2002 9:07 AM To: cryptlib@mbsks.franken.de Subject: Re: [Cryptlib] cryptlib 3.0 released Hi Peter , I has downloaded this file 3 times , but still unable to open it , maybe the archive was corrupt . Has anyone experienced the same ? Can you help to check it ? best regards, Nguyen At 10:48 PM 2/4/02 +1300, you wrote: >The subject line says it all, it's available from the usual place, >ftp://ftp.franken.de/pub/crypt/cryptlib/cl30.zip. > >Peter. > >_______________________________________________ >Cryptlib mailing list >Cryptlib@mbsks.franken.de >Administration via Mail: cryptlib-request@mbsks.franken.de _______________________________________________ Cryptlib mailing list Cryptlib@mbsks.franken.de Administration via Mail: cryptlib-request@mbsks.franken.de From cryptlib@mbsks.franken.de Tue Feb 5 17:31:15 2002 From: cryptlib@mbsks.franken.de (Max) Date: Tue, 5 Feb 2002 18:31:15 +0100 Subject: [Cryptlib] Cryptlib download Message-ID: <000c01c1ae6a$e9cb3660$3701a8c0@internal.cedit.it> Messaggio in formato MIME composto da piy parti. ------=_NextPart_000_0009_01C1AE73.4B805C20 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi crypto+folks, the archive cl30.zip is correct, but I can't find the crytplib 3.1 = beta (cl31b1.zip). I sent a new cl30.zip to Nguyen. (I re-compressed it..., I hope he = will be more lucky...) Best regards Massimiliano Ambrosini massimiliano.ambrosini@ceditsrl.it ------=_NextPart_000_0009_01C1AE73.4B805C20 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi crypto+folks,
    the archive = cl30.zip is=20 correct, but I can't find the crytplib 3.1 beta = (cl31b1.zip).
 
    I sent = a new=20 cl30.zip to Nguyen. (I re-compressed it..., I hope he will be more=20 lucky...)
 
 
    Best=20 regards
 
    Massimiliano = Ambrosini
    massimiliano.ambrosini= @ceditsrl.it
 
 
------=_NextPart_000_0009_01C1AE73.4B805C20-- From cryptlib@mbsks.franken.de Tue Feb 5 17:37:28 2002 From: cryptlib@mbsks.franken.de (Bob Carver) Date: Tue, 05 Feb 2002 11:37:28 -0600 Subject: [Cryptlib] cryptlib 3.0 released References: <5.0.2.1.2.20020205220352.01e79a20@mail.hcm.vnn.vn> Message-ID: <3C601857.701342F7@austin.ibm.com> This is a cryptographically signed message in MIME format. --------------ms6D24C174F9733C168250989F Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Nguyen wrote: > Hi Peter , > I has downloaded this file 3 times , but still unable to open it , maybe > the archive was corrupt . Has anyone experienced the same ? Can you help to > check it ? > best regards, > Nguyen > > At 10:48 PM 2/4/02 +1300, you wrote: > >The subject line says it all, it's available from the usual place, > >ftp://ftp.franken.de/pub/crypt/cryptlib/cl30.zip. > > > >Peter. > Did you unzip it using the -a option? -- Bob Carver If you want to build a ship, don't drum up the men to gather wood, divide the work and give orders. Instead, teach them to yearn for the vast and endless sea. -- Saint-Exupery --------------ms6D24C174F9733C168250989F Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIH5gYJKoZIhvcNAQcCoIIH1zCCB9MCAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHAaCC BbkwggKIMIIB8aADAgECAgMFVnEwDQYJKoZIhvcNAQECBQAwgZIxCzAJBgNVBAYTAlpBMRUw EwYDVQQIEwxXZXN0ZXJuIENhcGUxEjAQBgNVBAcTCUNhcGUgVG93bjEPMA0GA1UEChMGVGhh d3RlMR0wGwYDVQQLExRDZXJ0aWZpY2F0ZSBTZXJ2aWNlczEoMCYGA1UEAxMfUGVyc29uYWwg RnJlZW1haWwgUlNBIDIwMDAuOC4zMDAeFw0wMTA3MzAyMjExNDRaFw0wMjA3MzAyMjExNDRa MEkxHzAdBgNVBAMTFlRoYXd0ZSBGcmVlbWFpbCBNZW1iZXIxJjAkBgkqhkiG9w0BCQEWF2Jj YXJ2ZXIyQGF1c3Rpbi5pYm0uY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQChy+H3 SmyRxRs+LPN6D74cZXnFaYgZAKmmAxrWFXPgOiy3BM92/SgnN9cd9q7Z4AS2swLjeoX96xc8 lJvRGu7qunMCpzfOsqyj1D/JfmQrbOZYUNGJT7t52F6arMjXPtLwm0KNcIIBpyWcdcHs18Gd Qwc0nQwn5T7VKLPQzktcQwIDAQABozQwMjAiBgNVHREEGzAZgRdiY2FydmVyMkBhdXN0aW4u aWJtLmNvbTAMBgNVHRMBAf8EAjAAMA0GCSqGSIb3DQEBAgUAA4GBAA6BlDUcK2um8kqBCNUc qP6wK+ECBp7XnuDx+jooSb2miInF2RNRmJHdQ/dDobwQIYguzyU9wPpw8RS39XtoK95Pg7pS IePvDOAV4VnWXV+kmwh9Bix1jyO4Mxm2cR8FFo2zGYZ+a25KLhtte4yjOaPyaO2jV+4zeLW3 M9O62gdGMIIDKTCCApKgAwIBAgIBDDANBgkqhkiG9w0BAQQFADCB0TELMAkGA1UEBhMCWkEx FTATBgNVBAgTDFdlc3Rlcm4gQ2FwZTESMBAGA1UEBxMJQ2FwZSBUb3duMRowGAYDVQQKExFU aGF3dGUgQ29uc3VsdGluZzEoMCYGA1UECxMfQ2VydGlmaWNhdGlvbiBTZXJ2aWNlcyBEaXZp c2lvbjEkMCIGA1UEAxMbVGhhd3RlIFBlcnNvbmFsIEZyZWVtYWlsIENBMSswKQYJKoZIhvcN AQkBFhxwZXJzb25hbC1mcmVlbWFpbEB0aGF3dGUuY29tMB4XDTAwMDgzMDAwMDAwMFoXDTAy MDgyOTIzNTk1OVowgZIxCzAJBgNVBAYTAlpBMRUwEwYDVQQIEwxXZXN0ZXJuIENhcGUxEjAQ BgNVBAcTCUNhcGUgVG93bjEPMA0GA1UEChMGVGhhd3RlMR0wGwYDVQQLExRDZXJ0aWZpY2F0 ZSBTZXJ2aWNlczEoMCYGA1UEAxMfUGVyc29uYWwgRnJlZW1haWwgUlNBIDIwMDAuOC4zMDCB nzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA3jMypmPHCSVFPtJueCdngcXaiBmClw7jRCmK YzUqbXA8+tyu9+50bzC8M5B/+TRxoKNtmPHDT6Jl2w36S/HW3WGl+YXNVZo1Gp2Sdagnrthy +boC9tewkd4c6avgGAOofENCUFGHgzzwObSbVIoTh/+zm51JZgAtCYnslGvpoWkCAwEAAaNO MEwwKQYDVR0RBCIwIKQeMBwxGjAYBgNVBAMTEVByaXZhdGVMYWJlbDEtMjk3MBIGA1UdEwEB /wQIMAYBAf8CAQAwCwYDVR0PBAQDAgEGMA0GCSqGSIb3DQEBBAUAA4GBAHMbbyZli/8VNEtZ YortRL5Jx+gNu4+5DWomKmKEH7iHY3QcbbfPGlORS+HN5jjZ7VD0Omw0kqzmkpxuwSMBwgmn 70uuct0GZ/VQby5YuLYLwVBXtewc1+8XttWIm7eiiBrtOVs5fTT8tpYYJU1q9J3Fw5EvqZa4 BTxS/N3pYgNIMYIB9TCCAfECAQEwgZowgZIxCzAJBgNVBAYTAlpBMRUwEwYDVQQIEwxXZXN0 ZXJuIENhcGUxEjAQBgNVBAcTCUNhcGUgVG93bjEPMA0GA1UEChMGVGhhd3RlMR0wGwYDVQQL ExRDZXJ0aWZpY2F0ZSBTZXJ2aWNlczEoMCYGA1UEAxMfUGVyc29uYWwgRnJlZW1haWwgUlNB IDIwMDAuOC4zMAIDBVZxMAkGBSsOAwIaBQCggbEwGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEH ATAcBgkqhkiG9w0BCQUxDxcNMDIwMjA1MTczNzMwWjAjBgkqhkiG9w0BCQQxFgQU/G6wDQQw KsqB64kG5Nee06eBQ4UwUgYJKoZIhvcNAQkPMUUwQzAKBggqhkiG9w0DBzAOBggqhkiG9w0D AgICAIAwBwYFKw4DAgcwDQYIKoZIhvcNAwICAUAwDQYIKoZIhvcNAwICASgwDQYJKoZIhvcN AQEBBQAEgYA5RQOWVSXAgCjn/RdhKQVEt8fqzXBRYtTWPcwpXd+dR0FfnY97ZaqAc/qlcLeb 4saswdjAXsdqzcDZ+oFMVGiPV2neOpXqDoB2PnQUc3XlocVQl+xA83xUX82wfBcJ7DBLAYfa PkyVVQCQzTV4FpALjWKFRPciSRE6RlrkG8wduA== --------------ms6D24C174F9733C168250989F-- From cryptlib@mbsks.franken.de Tue Feb 5 17:35:19 2002 From: cryptlib@mbsks.franken.de (Wolfgang Gothier) Date: Tue, 5 Feb 2002 18:35:19 +0100 Subject: [Cryptlib] cryptlib 3.0 released In-Reply-To: <5.0.2.1.2.20020205220352.01e79a20@mail.hcm.vnn.vn> Message-ID: <000201c1ae6b$7af1b880$fe78a8c0@sogot2k> > Hi Peter , > I has downloaded this file 3 times , but still unable to open it , maybe > the archive was corrupt . Has anyone experienced the same ? Can > you help to > check it ? > best regards, > Nguyen > Try to download the file in binary mode (not ascii) :-)) From cryptlib@mbsks.franken.de Wed Feb 6 06:44:29 2002 From: cryptlib@mbsks.franken.de (Nguyen) Date: Wed, 06 Feb 2002 13:44:29 +0700 Subject: [Cryptlib] Cryptlib download In-Reply-To: <000c01c1ae6a$e9cb3660$3701a8c0@internal.cedit.it> Message-ID: <5.0.2.1.2.20020206134240.01d45da0@mail.hcm.vnn.vn> Thank you ,Max. I am really lucky with your help :) best regards, Nguyen At 06:31 PM 2/5/02 +0100, you wrote: >Hi crypto+folks, > the archive cl30.zip is correct, but I can't find the crytplib 3.1 > beta (cl31b1.zip). > > I sent a new cl30.zip to Nguyen. (I re-compressed it..., I hope he > will be more lucky...) > > > Best regards > > Massimiliano Ambrosini > >massimiliano.ambrosini@ceditsrl.it > > From cryptlib@mbsks.franken.de Wed Feb 6 14:50:11 2002 From: cryptlib@mbsks.franken.de (Peter Gutmann) Date: Thu, 7 Feb 2002 03:50:11 +1300 (NZDT) Subject: [Cryptlib] Windows XP Professional & CRYPT_OPTION_CONFIGCHANGED Message-ID: <200202061450.DAA84090@ruru.cs.auckland.ac.nz> "Admin Euro Sistemi Srl" writes: >On Windows XP Professional, using: > >cryptSetAttribute( CRYPT_UNUSED, CRYPT_OPTION_CONFIGCHANGED, FALSE ) > >I get a Bad Param 2 error... Why ? I've tried it under Win2K and it works fine. Can you put a breakpoint in cryptcfg.c in encodeConfigData() and commitConfigData() and step through the code? My guess is that it's something specific to XP. >And why in the pc don't exists the .p15 configuration file ? Probably because you haven't created it yet. Peter. From cryptlib@mbsks.franken.de Thu Feb 7 10:33:11 2002 From: cryptlib@mbsks.franken.de (Eric Schreuder) Date: Thu, 7 Feb 2002 11:33:11 +0100 Subject: cryptlib unzip (Was: Re: [Cryptlib] cryptlib 3.0 released) Message-ID: <001d01c1afc2$d9147f80$4601a8c0@imnla291> Hi all, A few days ago Nguyen asked a question about the cl30.zip archive. The reactions the list gave him were "the archive is OK, use the right options". But I am also not able to unzip the archive. Linux> unzip -a -L cl30.zip Archive: cl30.zip End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. note: cl30.zip may be a plain executable, not an archive unzip: cannot find zipfile directory in one of cl30.zip or cl30.zip.zip, and cannot find cl30.zip.ZIP, period. Strange. But even more strange: I am using the cl30beta06.zip for half a year now. I am able to unzip the archive on Linux (unzip -a -L) and Windows (doubleclick and WinZip pops up). But when i download the same filename today from the ftp server, unzip and WinZip both complain (WinZip: Cannot open file: it does not appear to be a valid archive. If you downloaded the file, try downloading the file again). The old and new cl30beta06.zip files have identical size, but "cmp" reports a difference near the end. I have downloaded more files from the FTP site today (other betas, list archive), but can't open any of them. Download is done with character based FTP client on Linux, and was in BINARY mode, I am very sure. What is going wrong??? How can I unpack the archive? Regards, Eric From cryptlib@mbsks.franken.de Thu Feb 7 12:00:19 2002 From: cryptlib@mbsks.franken.de (Matthias Bruestle) Date: Thu, 7 Feb 2002 13:00:19 +0100 Subject: cryptlib unzip (Was: Re: [Cryptlib] cryptlib 3.0 released) In-Reply-To: <001d01c1afc2$d9147f80$4601a8c0@imnla291>; from E.Schreuder@imn.nl on Thu, Feb 07, 2002 at 11:33:11AM +0100 References: <001d01c1afc2$d9147f80$4601a8c0@imnla291> Message-ID: <20020207130019.N7736@mbsks.franken.de> Mahlzeit On Thu, Feb 07, 2002 at 11:33:11AM +0100, Eric Schreuder wrote: > But I am also not able to unzip the archive. Hm, it seams the ftp server produces sometimes errors. You could retry to download it or if that does not work, I'll mail it to you. Mahlzeit endergone Zwiebeltuete From cryptlib@mbsks.franken.de Thu Feb 7 11:39:45 2002 From: cryptlib@mbsks.franken.de (Max) Date: Thu, 7 Feb 2002 12:39:45 +0100 Subject: [Cryptlib] Cryptlib download References: <5.0.2.1.2.20020206134240.01d45da0@mail.hcm.vnn.vn> Message-ID: <002601c1afcc$24141690$3701a8c0@internal.cedit.it> Hi, Nguyen, sorry for the 'lucky'. I can't speak (and write) english very well. What about the zip I sent to you? Have you opened it? Best regards. Max ----- Original Message ----- From: "Nguyen" To: Sent: Wednesday, February 06, 2002 7:44 AM Subject: Re: [Cryptlib] Cryptlib download > Thank you ,Max. I am really lucky with your help :) > best regards, > Nguyen > > At 06:31 PM 2/5/02 +0100, you wrote: > >Hi crypto+folks, > > the archive cl30.zip is correct, but I can't find the crytplib 3.1 > > beta (cl31b1.zip). > > > > I sent a new cl30.zip to Nguyen. (I re-compressed it..., I hope he > > will be more lucky...) > > > > > > Best regards > > > > Massimiliano Ambrosini > > > >massimiliano.ambrosini@ceditsrl. it > > > > > > > _______________________________________________ > Cryptlib mailing list > Cryptlib@mbsks.franken.de > Administration via Mail: cryptlib-request@mbsks.franken.de From cryptlib@mbsks.franken.de Thu Feb 7 15:20:18 2002 From: cryptlib@mbsks.franken.de (Nguyen) Date: Thu, 07 Feb 2002 22:20:18 +0700 Subject: [Cryptlib] Cryptlib download In-Reply-To: <002601c1afcc$24141690$3701a8c0@internal.cedit.it> References: <5.0.2.1.2.20020206134240.01d45da0@mail.hcm.vnn.vn> Message-ID: <5.0.2.1.2.20020207221537.00aa95c0@mail.hcm.vnn.vn> Hello Max, All OK. I has compiled cryptlib without any problem . Just for check I has downloaded the file from ftp server another time, with another ftp client but still no luck . Strange , since all files I has downloaded before works well. I hope that server owner will check it again? Thanks again for your help. best regards, Nguyen At 12:39 PM 2/7/02 +0100, you wrote: >Hi, Nguyen, > sorry for the 'lucky'. I can't speak (and write) english very well. > > What about the zip I sent to you? Have you opened it? > > Best regards. > > Max > > > > >----- Original Message ----- >From: "Nguyen" >To: >Sent: Wednesday, February 06, 2002 7:44 AM >Subject: Re: [Cryptlib] Cryptlib download > > > > Thank you ,Max. I am really lucky with your help :) > > best regards, > > Nguyen > > > > At 06:31 PM 2/5/02 +0100, you wrote: > > >Hi crypto+folks, > > > the archive cl30.zip is correct, but I can't find the crytplib 3.1 > > > beta (cl31b1.zip). > > > > > > I sent a new cl30.zip to Nguyen. (I re-compressed it..., I hope he > > > will be more lucky...) > > > > > > > > > Best regards > > > > > > Massimiliano Ambrosini > > > > > > >massimiliano.ambrosini@ceditsrl. >it > > > > > > > > > > > > _______________________________________________ > > Cryptlib mailing list > > Cryptlib@mbsks.franken.de > > Administration via Mail: cryptlib-request@mbsks.franken.de > > >_______________________________________________ >Cryptlib mailing list >Cryptlib@mbsks.franken.de >Administration via Mail: cryptlib-request@mbsks.franken.de From cryptlib@mbsks.franken.de Sat Feb 9 00:06:21 2002 From: cryptlib@mbsks.franken.de (Peter Gutmann) Date: Sat, 9 Feb 2002 13:06:21 +1300 (NZDT) Subject: [Cryptlib] About-to-expire certificates in self-test code Message-ID: <200202090006.NAA147297@ruru.cs.auckland.ac.nz> I've just noticed that some of the CA certs used for the self-test code are about to expire. This may lead to date-related error reports when running the self-test. If you see any error messages arising from this, it's safe to ignore them. Peter. From cryptlib@mbsks.franken.de Sat Feb 9 00:43:09 2002 From: cryptlib@mbsks.franken.de (Matthias Bruestle) Date: Sat, 9 Feb 2002 01:43:09 +0100 Subject: [Cryptlib] Cryptlib 3.0 download location Message-ID: <20020209014309.V18359@mbsks.franken.de> Mahlzeit I don't know, when the ftp server will be fixed, so I have copied cryptlib to the http server. It is at: http://www.franken.de/crypt/cl30.zip http://www.franken.de/crypt/manual.pdf Mahlzeit endergone Zwiebeltuete From cryptlib@mbsks.franken.de Sun Feb 10 12:27:45 2002 From: cryptlib@mbsks.franken.de (Matthias Bruestle) Date: Sun, 10 Feb 2002 13:27:45 +0100 Subject: [Cryptlib] ftp server Message-ID: <20020210132745.F18359@mbsks.franken.de> Mahlzeit ftp.franken.de is probably again correctly working. Mahlzeit endergone Zwiebeltuete From cryptlib@mbsks.franken.de Mon Feb 11 07:31:05 2002 From: cryptlib@mbsks.franken.de (Eric Schreuder) Date: Mon, 11 Feb 2002 08:31:05 +0100 Subject: [Cryptlib] Anybody using LDAP on Linux with success? Message-ID: <009701c1b2ce$1218b220$4601a8c0@imnla291> Hi All, Is anybody using cryptlib with LDAP support enabled on Linux with success? We use cryptlib with LDAP on Windows and AIX, but on Linux I always get memory corruptions in the malloc/free area. I tried different kernels (2.2, 2.4), different glibc's (2.1, 2.2), different cryptlib's (3.0b2, 3.0b6, 3.0) and different NS directory SDK's (now 4.1). But still the same problems remain present. If one of you has cryptlib with LDAP working on Linux, please supply me some information: - NS directory SDK version - Linux and glibc version - info how you built cryptlib with LDAP enabled (I use -DDBX_LDAP for 3.0, "-DDBX_LDAP -DNETSCAPE_API -DNETSCAPE_CLIENT" for 3.0b6) - linker options (library sequence), I use "-lcl -lldapssl41 -lplc3 -lplds3 -lnspr3 -lpthread -ldl". Regards, Eric Schreuder Example that illustrates my problem: status = cryptInit(); status = cryptKeysetOpen(&keyset, CRYPT_UNUSED, CRYPT_KEYSET_LDAP, "ldap.diginotar.nl", CRYPT_KEYOPT_READONLY); status = cryptGetPublicKey(keyset, &certificate, CRYPT_KEYID_NAME, "CN=Root Certificaat Productie,O=DigiNotar Root,C=NL"); status = cryptDestroyCert(certificate); status = cryptGetPublicKey(keyset, &certificate, CRYPT_KEYID_NAME, "CN=Root Certificaat Productie,O=DigiNotar Root,C=NL"); The first cryptGetPublicKey() succeeds, but after that a segmentation violation or an endless loop is guaranteed. Might occur in cryptlib itself, but can also occur in fopen/fclose runtime, for example. But always with functions with names *alloc or *free on the stack (that seems to be in a bad state when this happens). From cryptlib@mbsks.franken.de Mon Feb 11 08:33:55 2002 From: cryptlib@mbsks.franken.de (Peter Gutmann) Date: Mon, 11 Feb 2002 21:33:55 +1300 (NZDT) Subject: [Cryptlib] Away Message-ID: <200202110833.VAA207130@ruru.cs.auckland.ac.nz> I will be away at the RSA conference next week, and then in Europe for two weeks after that. During that time I will have, at best, sporadic access to email, and given the volume of mail I get it's extremely unlikely I'll have time to process it. If anyone's going to the RSA conference, you can probably catch me wandering around the show floor, and I'll be at the PKCS meeting on Tuesday evening. Peter. From cryptlib@mbsks.franken.de Mon Feb 11 15:20:29 2002 From: cryptlib@mbsks.franken.de (Viggo Kleven) Date: Mon, 11 Feb 2002 16:20:29 +0100 Subject: [Cryptlib] Away In-Reply-To: Message-ID: Enjoy yourselves!! Have a safe trip to San Jose ! PS: I cannot find you amongst the speakers ? :) - Viggo - >-----Original Message----- >From: cryptlib-admin@mbsks.franken.de >[mailto:cryptlib-admin@mbsks.franken.de]On Behalf Of Peter Gutmann >Sent: Monday, February 11, 2002 9:34 AM >To: cryptlib@mbsks.franken.de >Subject: [Cryptlib] Away > > >I will be away at the RSA conference next week, and then in >Europe for two >weeks after that. During that time I will have, at best, >sporadic access to >email, and given the volume of mail I get it's extremely >unlikely I'll have >time to process it. If anyone's going to the RSA conference, >you can probably >catch me wandering around the show floor, and I'll be at the >PKCS meeting on >Tuesday evening. > >Peter. > >_______________________________________________ >Cryptlib mailing list >Cryptlib@mbsks.franken.de >Administration via Mail: cryptlib-request@mbsks.franken.de > From cryptlib@mbsks.franken.de Mon Feb 11 19:31:29 2002 From: cryptlib@mbsks.franken.de (Peter Gutmann) Date: Tue, 12 Feb 2002 08:31:29 +1300 (NZDT) Subject: [Cryptlib] LDAP use under Windows Message-ID: <200202111931.IAA218945@ruru.cs.auckland.ac.nz> Someone has just pointed out MSKB article Q283199: The ordinal numbers for some of the functions in the Wldap32.lib file that were included in Visual Studio 6 and its service packs do not match the ordinals exported by the Wldap32.dll file that is found in the operating systems that are listed at the beginning of this article. In other words the standard Windows development system combined with standard Windows libraries is almost guaranteed to break in some way if you try and do anything with LDAP. Wonderful. (Thanks to Ties Molenhuis for figuring this one out). Peter. From cryptlib@mbsks.franken.de Tue Feb 12 19:09:27 2002 From: cryptlib@mbsks.franken.de (Peter Gutmann) Date: Wed, 13 Feb 2002 08:09:27 +1300 (NZDT) Subject: [Cryptlib] cryptlib 3.1 beta 1 released Message-ID: <200202121909.IAA248716@ruru.cs.auckland.ac.nz> Available from the usual place, ftp://ftp.franken.de/pub/crypt/cryptlib/beta/cl31beta1.zip. The main new features is PGP/OpenPGP support, see the readme for details. Peter. From cryptlib@mbsks.franken.de Tue Feb 12 19:47:06 2002 From: cryptlib@mbsks.franken.de (P.H. Rankin Hansen) Date: Tue, 12 Feb 2002 20:47:06 +0100 Subject: [Cryptlib] cryptlib 3.1 beta 1 released In-Reply-To: <200202121909.IAA248716@ruru.cs.auckland.ac.nz> Message-ID: <5.1.0.14.2.20020212204527.01fedec0@piteraq.dk> At 08:09 13-02-02 +1300, Peter Gutmann wrote: Un- >Available from the usual place, >ftp://ftp.franken.de/pub/crypt/cryptlib/beta/cl31beta1.zip. The file is not there (19:43 UTC) Ping. best regards / venlig hilsen P.H. Rankin Hansen M=F8lletoften 45, Gaarslev DK-7080 B=F8rkop Danmark From cryptlib@mbsks.franken.de Tue Feb 12 20:22:39 2002 From: cryptlib@mbsks.franken.de (Matthias Bruestle) Date: Tue, 12 Feb 2002 21:22:39 +0100 Subject: [Cryptlib] cryptlib 3.1 beta 1 released In-Reply-To: <5.1.0.14.2.20020212204527.01fedec0@piteraq.dk>; from ping@piteraq.dk on Tue, Feb 12, 2002 at 08:47:06PM +0100 References: <200202121909.IAA248716@ruru.cs.auckland.ac.nz> <5.1.0.14.2.20020212204527.01fedec0@piteraq.dk> Message-ID: <20020212212239.G28386@mbsks.franken.de> On Tue, Feb 12, 2002 at 08:47:06PM +0100, P.H. Rankin Hansen wrote: > At 08:09 13-02-02 +1300, Peter Gutmann wrote: > Un- > >Available from the usual place, > >ftp://ftp.franken.de/pub/crypt/cryptlib/beta/cl31beta1.zip. > The file is not there (19:43 UTC) It is called cl31beta01.zip. Mahlzeit endergone Zwiebeltuete From cryptlib@mbsks.franken.de Wed Feb 13 06:56:31 2002 From: cryptlib@mbsks.franken.de (Richard Skopal) Date: Wed, 13 Feb 2002 07:56:31 +0100 Subject: [Cryptlib] The dbxpk12.c compilation Message-ID: <8190D1AA86E3D2118BCD0008C7BA2A713FE74B@SERVER-TREXIMA> Hi, is it somehow possible to compile the misc\dbxpk12.c with cryptlib? When I try it, I will get the following errors in VC++ 6.0: \CryptLib\misc\dbxpk12.c(80) : warning C4013: 'checkReadOID' undefined; assuming extern returning int \CryptLib\misc\dbxpk12.c(80) : error C2065: 'OID_RC4' : undeclared identifier \CryptLib\misc\dbxpk12.c(95) : error C2065: 'CRYPT_UNDERFLOW' : undeclared identifier \CryptLib\misc\dbxpk12.c(96) : error C2065: 'CRYPT_DATA_READ' : undeclared identifier \CryptLib\misc\dbxpk12.c(105) : warning C4020: 'getHashParameters' : too many actual parameters \CryptLib\misc\dbxpk12.c(111) : warning C4013: 'iCryptCreateContext' undefined; assuming extern returning int \CryptLib\misc\dbxpk12.c(112) : error C2065: 'CRYPT_MODE_STREAM' : undeclared identifier \CryptLib\misc\dbxpk12.c(119) : warning C4020: 'krnlSendMessage' : too many actual parameters \CryptLib\misc\dbxpk12.c(129) : warning C4013: 'iCryptDecrypt' undefined; assuming extern returning int \CryptLib\misc\dbxpk12.c(130) : warning C4013: 'iCryptDestroyObject' undefined; assuming extern returning int \CryptLib\misc\dbxpk12.c(133) : warning C4013: 'readPKCS8PrivateKey' undefined; assuming extern returning int Error executing cl.exe. cl32.dll - 4 error(s), 7 warning(s) Or is there any way how to convert the PKCS #12 to PKCS #15? Thanks Richard Skopal From cryptlib@mbsks.franken.de Thu Feb 14 04:16:38 2002 From: cryptlib@mbsks.franken.de (Peter Gutmann) Date: Thu, 14 Feb 2002 17:16:38 +1300 (NZDT) Subject: [Cryptlib] The dbxpk12.c compilation Message-ID: <200202140416.RAA65279@ruru.cs.auckland.ac.nz> Richard Skopal writes: >is it somehow possible to compile the misc\dbxpk12.c with cryptlib? >When I try it, I will get the following errors in VC++ 6.0: Those error messages indicate that you're trying to build a version which is years out of date. What are you trying to do? Peter. From cryptlib@mbsks.franken.de Thu Feb 14 06:33:27 2002 From: cryptlib@mbsks.franken.de (Richard Skopal) Date: Thu, 14 Feb 2002 07:33:27 +0100 Subject: [Cryptlib] The dbxpk12.c compilation Message-ID: <8190D1AA86E3D2118BCD0008C7BA2A713FE754@SERVER-TREXIMA> I am trying to decrypt a file using private key stored in Windows's = ".pfx" file which is in PKCS #12 format. It would be sufficient for me to be able = to convert the PKCS #12 to PKCS #15 but I don't know how can I do it. Richard Skopal -----Original Message----- From: pgut001@cs.auckland.ac.nz [mailto:pgut001@cs.auckland.ac.nz]=20 Sent: =AE=E1dn=E9 To: cryptlib@mbsks.franken.de Subject: Re: [Cryptlib] The dbxpk12.c compilation Richard Skopal writes: >is it somehow possible to compile the misc\dbxpk12.c with cryptlib?=20 >When I try it, I will get the following errors in VC++ 6.0: Those error messages indicate that you're trying to build a version = which is years out of date. What are you trying to do? Peter. _______________________________________________ Cryptlib mailing list Cryptlib@mbsks.franken.de Administration via Mail: cryptlib-request@mbsks.franken.de From cryptlib@mbsks.franken.de Sat Feb 16 04:05:22 2002 From: cryptlib@mbsks.franken.de (Peter Gutmann) Date: Sat, 16 Feb 2002 17:05:22 +1300 (NZDT) Subject: [Cryptlib] The dbxpk12.c compilation Message-ID: <200202160405.RAA127074@ruru.cs.auckland.ac.nz> Richard Skopal writes: >I am trying to decrypt a file using private key stored in Windows's ".pfx" >file which is in PKCS #12 format. What I meant was, why are you using a file which seems to be several years out of date, judging by the error messages you posted? >It would be sufficient for me to be able to convert the PKCS #12 to PKCS #15 >but I don't know how can I do it. See the cryptlib FAQ. Peter. From cryptlib@mbsks.franken.de Sat Feb 16 06:21:22 2002 From: cryptlib@mbsks.franken.de (Peter Gutmann) Date: Sat, 16 Feb 2002 19:21:22 +1300 (NZDT) Subject: [Cryptlib] Second reminder: Away Message-ID: <200202160621.TAA129886@ruru.cs.auckland.ac.nz> This is a second reminder in case anyone missed the first one: I will be away next week at the RSA conference and for two weeks after that on various mountaintops in Europe. During that time it will be extremely difficult to contact me via email. I'll handle any mail when I return. Peter. From cryptlib@mbsks.franken.de Tue Feb 19 08:44:12 2002 From: cryptlib@mbsks.franken.de (Hans-Olof Hermansson) Date: Tue, 19 Feb 2002 00:44:12 -0800 (PST) Subject: [Cryptlib] Pocket PC VPN Message-ID: <20020219084412.11006.qmail@web14801.mail.yahoo.com> Hi, Does anybody know of any good way to make an encrypted connection from a GPRS enabled Pocket PC? Does Cryptlib support Pocket PC? Do you know of any other good VPN clients for Pocket PC? Thanks in advance Hans-Olof Hermansson __________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com From cryptlib@mbsks.franken.de Wed Feb 20 08:29:40 2002 From: cryptlib@mbsks.franken.de (Fredrik Thelandersson) Date: Wed, 20 Feb 2002 09:29:40 +0100 Subject: [Cryptlib] Pocket PC VPN In-Reply-To: <20020219084412.11006.qmail@web14801.mail.yahoo.com> Message-ID: Hello! It _is_ possible to get cryptlib to work on the pocket pc platform. I have implemented wtls (security layer in wap) for pocket pc based on cryptlib and it works fine. I have not yet had the time to clean up the code in order to fold it into the main distribution, but Pocket pc will probably eventually be supported(?). /Fredrik > -----Original Message----- > From: cryptlib-admin@mbsks.franken.de > [mailto:cryptlib-admin@mbsks.franken.de]On Behalf Of Hans-Olof > Hermansson > Sent: den 19 februari 2002 09:44 > To: cryptlib@mbsks.franken.de > Subject: [Cryptlib] Pocket PC VPN > > > Hi, > Does anybody know of any good way to make an encrypted > connection from a GPRS enabled Pocket PC? > Does Cryptlib support Pocket PC? > Do you know of any other good VPN clients for Pocket > PC? > > Thanks in advance > Hans-Olof Hermansson > > > __________________________________________________ > Do You Yahoo!? > Yahoo! Sports - Coverage of the 2002 Olympic Games > http://sports.yahoo.com > > _______________________________________________ > Cryptlib mailing list > Cryptlib@mbsks.franken.de > Administration via Mail: cryptlib-request@mbsks.franken.de From cryptlib@mbsks.franken.de Sat Feb 23 12:33:58 2002 From: cryptlib@mbsks.franken.de (alex) Date: Sat, 23 Feb 2002 15:33:58 +0300 Subject: [Cryptlib] hi from new cryptlib fan Message-ID: <3C778C36.73EF89B9@dynaweb.ru> Hi everybody! I was looking for multiplatform and rather secure crypting lib for my program and once came across cryptlib. After a while I've got it's security level and found its design as an exellent one :0) But further on I am in a fix. The problem is that I'm an experienced programmer but a newby in cryptography and hence I'm shor tof some "obvious" stuff that's missing in cryptlib docs. All that long pleamble is for you not to be flaming me for stupid questions. I'm new in cryptlib but I learn fast :0) Now my questions: I need to make secure session (connection) using ssh. As I got from the manual I'm creating session context and then (for server-side) add private key. That's nice but how could I get it. At the very beginning of the same manual I found very wise phrase about I won't have direct access to the keys generated via creation of crypt context. That's a good idea. Then I tried to push context handle as a private key but got an invalid 3-d param error. I looked through CRYPT_ATTRIBUTE_ consts but didn't find any close except for KEY itself that is avalable for direct loading only. What I'm missing? I feel I'm walking close to some very basic things that all of you threat as obvious. Though not me :0( Thanks for any help or for a link to the place where to read about it. Alexander Komratov From cryptlib@mbsks.franken.de Sat Feb 23 18:38:00 2002 From: cryptlib@mbsks.franken.de (Gregg Housh) Date: Sat, 23 Feb 2002 12:38:00 -0600 Subject: [Cryptlib] SSL in VB Message-ID: <001001c1bc99$394313c0$2fc0fa0c@attbi.com> This is a multi-part message in MIME format. ------=_NextPart_000_000D_01C1BC66.EDE0BFE0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable First off, thanks for a great free library. I need to do an SSL connection from a VB app using the cryptlb activex = object. Ive used winsock for a long time, so I hope its close to the = same idea on how to use it. I was wondering if anyone had any sample = source on how to do SSL with the object? Gregg ------=_NextPart_000_000D_01C1BC66.EDE0BFE0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
First off, thanks for a great free=20 library.
 
I need to do an SSL connection from a = VB app using=20 the cryptlb activex object.  Ive used winsock for a long time, so I = hope=20 its close to the same idea on how to use it.  I was wondering if = anyone had=20 any sample source on how to do SSL with the object?
 
Gregg
 
------=_NextPart_000_000D_01C1BC66.EDE0BFE0-- From cryptlib@mbsks.franken.de Mon Feb 25 04:13:27 2002 From: cryptlib@mbsks.franken.de (cryptlib@mbsks.franken.de) Date: Sun, 24 Feb 2002 22:13:27 -0600 Subject: [Cryptlib] Building public key keyset for SSL client authentication Message-ID: <3C796587.15461.25478139@localhost> Greetings all, I'm trying to do what seems to be a simple task: I'm setting up a SSL server which will authenticate clients cia client certificates. I've constructed a CA to sign the certs (both server and client). I've been able to generate and sign the client certs, but I can't build the keyset. I'm sure that the issue is improper mixing of certs and encryption contexts, but I just can't tell from the documentation and the archives what the proper sequence is. Here's what I have (function call sequence, sorry about the wrap): status = cryptKeysetOpen(&cKeyset, CRYPT_UNUSED, CRYPT_KEYSET_FILE, keyset, CRYPT_KEYOPT_CREATE); if (status == CRYPT_ERROR_DUPLICATE) status = cryptKeysetOpen(&cKeyset, CRYPT_UNUSED, CRYPT_KEYSET_FILE, keyset, CRYPT_KEYOPT_NONE); status = cryptImportCert(buffer, bytes, CRYPT_UNUSED, &cCert); status = cryptAddPublicKey(cKeyset, cCert); status = cryptKeysetClose(cKeyset); The cryptAddPublicKey() call fails with a -2 (CRYPT_ERROR_PARAM2). The keyset doesn't exist, so the CREATE gets called. Do I need to somehow extract the public key from the cert? If so, how is this done? Thanks very much in advance for any and all information. Brad From cryptlib@mbsks.franken.de Mon Feb 25 09:25:06 2002 From: cryptlib@mbsks.franken.de (Richard Skopal) Date: Mon, 25 Feb 2002 10:25:06 +0100 Subject: [Cryptlib] Cryptlib and Borland C++ Builder Message-ID: <8190D1AA86E3D2118BCD0008C7BA2A713FE764@SERVER-TREXIMA> Hi, is it possible to compile cryptlib with Borland C++ Builder? Richard Skopal From cryptlib@mbsks.franken.de Tue Feb 26 22:19:23 2002 From: cryptlib@mbsks.franken.de (alex) Date: Wed, 27 Feb 2002 01:19:23 +0300 Subject: [Cryptlib] SSL in VB References: <001001c1bc99$394313c0$2fc0fa0c@attbi.com> Message-ID: <3C7C09EB.8ADAA5C0@dynaweb.ru> --------------C2A3E7E6A9356A3AD3FCA436 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Hi Gregg! As it seems to me that questions in this mailing list exist but not the answers :0) So I'm trying to help you as I came across the subject that you need :0) cryptlib VB Interface ===================== I have just caught up to cryptlib beta0413 with my VB interface. It is available for download at :- http://www.geocities.com/SiliconValley/Heights/8298 To convince you that it is much more than just a plain VB interface, you might want to note the following :- 1. The entire exposed cryptlib functions have been interfaced and tested with sample code. The author feels that there is nothing you want to achieve with cryptlib that cannot be achieved with the vb interface. 2. You could use cryptXXX, VBcryptXXX or mixed. The VBcryptXXX is the VB flavoured API while the cryptXXX is the faithful interface of cryptlib function into VB. The VBcryptXXX is sweet most of the time but ocasionally becomes a real pain. The cryptXXX is pain most of the time but ocasionally becomes really handy. So, even if you are so obliged to use cryptXXX, you should also taken a look at the VBcryptXXX to get to know the bells and whistles of using C APIs not tailored for VB. 3. You could use local VB time instead of the default C language time_t. For example, validitydate = #April 26, 2007# VBcryptAddCertComponentTime cert, CRYPT_CERTINFO_VALIDTO, validitydate or VBcryptGetCertComponentTime cert, CRYPT_CERTINFO_VALIDTO, time_t CTimeToBLocalTime time_t, validitydate text1 = Format(validitydate, "ddd mmm, DD, hh:mm:ss yyyy") 4. It configures Microsoft Access ODBC for you, you don't need to click the 'control panel'. I also have a sample GUI that allows you to manage a cryptlib key database, such as search/delete certificate by DN components and dates. Again, you enter VB time/date strings directly. 5. Certificate handling is made 1-2-3 with the plentiful samples provided. You can use cryptlib to be the CA for handling XEnroll certificate requests. cryptlib signed certificates can be read into Outlook or MSIE. Also included is a utility to convert binary stream to base64 stream, since Microsoft does not support "-----BEGIN/END ...." enveloping, Dim certificate as String ' export the certificate VBcryptExportCert certificate, CRYPT_CERTFORMAT_CERTCHAIN, cert Dim base64 As String BinToBase64 certificate, base64 ' save the file Open "mycert.b64" For Binary As #3 Put #3, , base64 Close #3 Have fun. Gregg Housh wrote: > First off, thanks for a great free library. I need to do an SSL > connection from a VB app using the cryptlb activex object. Ive used > winsock for a long time, so I hope its close to the same idea on how > to use it. I was wondering if anyone had any sample source on how to > do SSL with the object? Gregg --------------C2A3E7E6A9356A3AD3FCA436 Content-Type: text/html; charset=koi8-r Content-Transfer-Encoding: 7bit Hi Gregg!

As it seems to me that questions in this mailing list exist but not the answers :0)
So I'm trying to help you as I came across the subject that you need :0)

cryptlib VB Interface
=====================

I have just caught up to cryptlib beta0413 with my VB interface.
It is available for download at :-

     http://www.geocities.com/SiliconValley/Heights/8298

To convince you that it is much more than just a plain VB interface,
you might want to note the following :-

1. The entire exposed cryptlib functions have been interfaced and
   tested with sample code. The author feels that there is nothing
   you want to achieve with cryptlib that cannot be achieved with
   the vb interface.
 
2. You could use cryptXXX, VBcryptXXX or mixed. The VBcryptXXX is
   the VB flavoured API while the cryptXXX is the faithful
   interface of cryptlib function into VB.

   The VBcryptXXX is sweet most of the time but ocasionally becomes
   a real pain. The cryptXXX is pain most of the time but ocasionally
   becomes really handy.

   So, even if you are so obliged to use cryptXXX, you should also
   taken a look at the VBcryptXXX to get to know the bells and
   whistles of using C APIs not tailored for VB.

3. You could use local VB time instead of the default C language
   time_t. For example,

     validitydate = #April 26, 2007#
     VBcryptAddCertComponentTime cert, CRYPT_CERTINFO_VALIDTO, validitydate

 or
 
     VBcryptGetCertComponentTime cert, CRYPT_CERTINFO_VALIDTO, time_t
     CTimeToBLocalTime time_t, validitydate
     text1 = Format(validitydate, "ddd mmm, DD, hh:mm:ss yyyy")

4. It configures Microsoft Access ODBC for you,  you don't need to click
   the 'control panel'.

   I also have a sample GUI that allows you to manage a cryptlib key
   database, such as search/delete certificate by DN components and dates.
   Again, you enter VB time/date strings directly.

5. Certificate handling is made 1-2-3 with the plentiful samples provided.

   You can use cryptlib to be the CA for handling XEnroll certificate
   requests. cryptlib signed certificates can be read into Outlook
   or MSIE.

   Also included is a utility to convert binary stream to base64 stream,
   since Microsoft does not support "-----BEGIN/END ...." enveloping,
 
       Dim certificate as String
       ' export the certificate
       VBcryptExportCert certificate, CRYPT_CERTFORMAT_CERTCHAIN, cert
       Dim base64 As String
       BinToBase64 certificate, base64
       ' save the file
       Open "mycert.b64" For Binary As #3
       Put #3, , base64
       Close #3

Have fun.
 
 

Gregg Housh wrote:

First off, thanks for a great free library. I need to do an SSL connection from a VB app using the cryptlb activex object.  Ive used winsock for a long time, so I hope its close to the same idea on how to use it.  I was wondering if anyone had any sample source on how to do SSL with the object? Gregg 
--------------C2A3E7E6A9356A3AD3FCA436-- From cryptlib@mbsks.franken.de Tue Feb 26 23:01:14 2002 From: cryptlib@mbsks.franken.de (Gregg Housh) Date: Tue, 26 Feb 2002 17:01:14 -0600 Subject: [Cryptlib] SSL in VB References: <001001c1bc99$394313c0$2fc0fa0c@attbi.com> <3C7C09EB.8ADAA5C0@dynaweb.ru> Message-ID: <001f01c1bf19$7dbe5dc0$0400a8c0@gregg2> This is a multi-part message in MIME format. ------=_NextPart_000_001C_01C1BEE7.32E84450 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable Thank you for responding. This looks like good stuff. I will give it a = look when I get the free time, probably tomorrow night. Gregg ----- Original Message -----=20 From: alex=20 To: cryptlib@mbsks.franken.de=20 Sent: Tuesday, February 26, 2002 4:19 PM Subject: Re: [Cryptlib] SSL in VB Hi Gregg!=20 As it seems to me that questions in this mailing list exist but not = the answers :0)=20 So I'm trying to help you as I came across the subject that you need = :0)=20 cryptlib VB Interface=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=20 I have just caught up to cryptlib beta0413 with my VB interface.=20 It is available for download at :-=20 http://www.geocities.com/SiliconValley/Heights/8298=20 To convince you that it is much more than just a plain VB interface,=20 you might want to note the following :-=20 1. The entire exposed cryptlib functions have been interfaced and=20 tested with sample code. The author feels that there is nothing=20 you want to achieve with cryptlib that cannot be achieved with=20 the vb interface.=20 =20 2. You could use cryptXXX, VBcryptXXX or mixed. The VBcryptXXX is=20 the VB flavoured API while the cryptXXX is the faithful=20 interface of cryptlib function into VB.=20 The VBcryptXXX is sweet most of the time but ocasionally becomes=20 a real pain. The cryptXXX is pain most of the time but ocasionally=20 becomes really handy.=20 So, even if you are so obliged to use cryptXXX, you should also=20 taken a look at the VBcryptXXX to get to know the bells and=20 whistles of using C APIs not tailored for VB.=20 3. You could use local VB time instead of the default C language=20 time_t. For example,=20 validitydate =3D #April 26, 2007#=20 VBcryptAddCertComponentTime cert, CRYPT_CERTINFO_VALIDTO, = validitydate=20 or=20 =20 VBcryptGetCertComponentTime cert, CRYPT_CERTINFO_VALIDTO, time_t=20 CTimeToBLocalTime time_t, validitydate=20 text1 =3D Format(validitydate, "ddd mmm, DD, hh:mm:ss yyyy")=20 4. It configures Microsoft Access ODBC for you, you don't need to = click=20 the 'control panel'.=20 I also have a sample GUI that allows you to manage a cryptlib key=20 database, such as search/delete certificate by DN components and = dates.=20 Again, you enter VB time/date strings directly.=20 5. Certificate handling is made 1-2-3 with the plentiful samples = provided.=20 You can use cryptlib to be the CA for handling XEnroll certificate=20 requests. cryptlib signed certificates can be read into Outlook=20 or MSIE.=20 Also included is a utility to convert binary stream to base64 = stream,=20 since Microsoft does not support "-----BEGIN/END ...." enveloping,=20 =20 Dim certificate as String=20 ' export the certificate=20 VBcryptExportCert certificate, CRYPT_CERTFORMAT_CERTCHAIN, cert = Dim base64 As String=20 BinToBase64 certificate, base64=20 ' save the file=20 Open "mycert.b64" For Binary As #3=20 Put #3, , base64=20 Close #3=20 Have fun.=20 =20 =20 Gregg Housh wrote:=20 First off, thanks for a great free library. I need to do an SSL = connection from a VB app using the cryptlb activex object. Ive used = winsock for a long time, so I hope its close to the same idea on how to = use it. I was wondering if anyone had any sample source on how to do = SSL with the object? Gregg=20 ------=_NextPart_000_001C_01C1BEE7.32E84450 Content-Type: text/html; charset="koi8-r" Content-Transfer-Encoding: quoted-printable
Thank you for responding.  This = looks like=20 good stuff.  I will give it a look when I get the free time, = probably=20 tomorrow night.
 
Gregg
 
----- Original Message -----
From:=20 alex =
Sent: Tuesday, February 26, = 2002 4:19=20 PM
Subject: Re: [Cryptlib] SSL in = VB

Hi Gregg!=20

As it seems to me that questions in this mailing list exist but not = the=20 answers :0)
So I'm trying to help you as I came across the subject = that=20 you need :0)=20

cryptlib VB Interface =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=20

I have just caught up to cryptlib beta0413 with my VB interface. =
It is=20 available for download at :-=20

     http://www.g= eocities.com/SiliconValley/Heights/8298=20

To convince you that it is much more than just a plain VB = interface,=20
you might want to note the following :-=20

1. The entire exposed cryptlib functions have been interfaced and=20
   tested with sample code. The author feels that there = is=20 nothing
   you want to achieve with cryptlib that cannot = be=20 achieved with
   the vb interface.
 
2. You = could=20 use cryptXXX, VBcryptXXX or mixed. The VBcryptXXX is
   = the VB=20 flavoured API while the cryptXXX is the faithful
   = interface of=20 cryptlib function into VB.=20

   The VBcryptXXX is sweet most of the time but = ocasionally=20 becomes
   a real pain. The cryptXXX is pain most of the = time=20 but ocasionally
   becomes really handy.=20

   So, even if you are so obliged to use cryptXXX, you = should=20 also
   taken a look at the VBcryptXXX to get to know = the bells=20 and
   whistles of using C APIs not tailored for VB.=20

3. You could use local VB time instead of the default C language=20
   time_t. For example,=20

     validitydate =3D #April 26, 2007#=20
     VBcryptAddCertComponentTime cert,=20 CRYPT_CERTINFO_VALIDTO, validitydate=20

 or
 
    =20 VBcryptGetCertComponentTime cert, CRYPT_CERTINFO_VALIDTO, time_t=20
     CTimeToBLocalTime time_t, validitydate=20
     text1 =3D Format(validitydate, "ddd mmm, = DD,=20 hh:mm:ss yyyy")=20

4. It configures Microsoft Access ODBC for you,  you don't = need to=20 click
   the 'control panel'.=20

   I also have a sample GUI that allows you to manage a = cryptlib=20 key
   database, such as search/delete certificate by DN = components and dates.
   Again, you enter VB time/date = strings=20 directly.=20

5. Certificate handling is made 1-2-3 with the plentiful samples = provided.=20

   You can use cryptlib to be the CA for handling XEnroll = certificate
   requests. cryptlib signed certificates = can be=20 read into Outlook
   or MSIE.=20

   Also included is a utility to convert binary stream to = base64=20 stream,
   since Microsoft does not support = "-----BEGIN/END=20 ...." enveloping,
 
       = Dim=20 certificate as String
       ' = export the=20 certificate
       VBcryptExportCert = certificate, CRYPT_CERTFORMAT_CERTCHAIN, cert=20
       Dim base64 As String=20
       BinToBase64 certificate, = base64=20
       ' save the file=20
       Open "mycert.b64" For Binary = As #3=20
       Put #3, , base64=20
       Close #3=20

Have fun.
 
 =20

Gregg Housh wrote:=20

First off, thanks for a great = free=20 library. I = need to do an=20 SSL connection from a VB app using the cryptlb activex object.  = Ive=20 used winsock for a long time, so I hope its close to the same idea = on how to=20 use it.  I was wondering if anyone had any sample source on how = to do=20 SSL with the object? Gregg 
------=_NextPart_000_001C_01C1BEE7.32E84450-- From cryptlib@mbsks.franken.de Wed Feb 27 13:57:35 2002 From: cryptlib@mbsks.franken.de (bigworm) Date: Wed, 27 Feb 2002 21:57:35 +0800 (CST) Subject: [Cryptlib] =?gb2312?B?UmU6IFJlOiBbQ3J5cHRsaWJdIFNTTCBpbiBWQg==?= Message-ID: <3C7CE5CF.000006.09734@bjapp7> Hi, Can you give me one copy of it ,I can not download from the website. My EMail address is :zhong_duhang@163.net > > Hi Gregg! > As it seems to me that questions in this mailing list exist but not > the answers :0) > > So I'm trying to help you as I came across the subject that you need > :0) > cryptlib VB Interface > > ===================== > I have just caught up to cryptlib beta0413 with my VB interface. > > It is available for download at :- > http://www.geocities.com/SiliconValley/Heights/8298 > To convince you that it is much more than just a plain VB interface, =============================================== ÊÖ»úºÅÂëÊǵçÓÊ£¬´Ó´Ë½»·Ñ²»ÓóһºÅÔÚÊÖ¡°ËæÉíÓÊ¡± ¡ª¡ª 163¡°ËæÉíÓÊ¡±ÊÖ»úÓÊÏä ¡ª¡ª ¡ò ÊÖ»úºÅÂë¾ÍÊǵç×ÓÓÊÏ䵨ַ£¬·½±ã¼ÇÒä ¡ò ²»ÓÃÉÏÍø£¬Í¸¹ýÊÖ»ú¶ÌÐÅ£¬ËæÊ±ÕÆÎÕÓʼþµÄ½ÓÊÕÇé¿ö ¡ò ¾ö²»´í¹ýÈκÎÉÌÒµÁ¼»ú ¡ò ·½±ãµÄ°´ÔÂÊÕ·Ñ·½Ê½£¬×îµÍÿÔÂÖ»Ðè5Ôª ÏêÇéÇëä¯ÀÀ http://vip.163.net/mobile/mobile.htm =============================================== From cryptlib@mbsks.franken.de Thu Feb 28 02:31:49 2002 From: cryptlib@mbsks.franken.de (Tod Courtney) Date: Wed, 27 Feb 2002 20:31:49 -0600 Subject: [Cryptlib] trouble verifying signature generated by cryptlib Message-ID: <3C7D9695.48C58BE7@crhc.uiuc.edu> all I am fairly new to crypto and cryptlib. I am having trouble verifying a signature generated by cryptlib. I am using SHA hashing with RSA. The signature is being passed to a java program via a CORBA call, along with the Certificate and original data (the data that was signed). In Java I am using the 'bouncycastle' crypt library. First, I had a very difficult time interpretting the signature char * array returned by cryptCreateSignatureEx. Finally, with some help from folks, I can do this, and I can now have the java performing the signature verification without any exceptions. But it is failing. It performs the RSA decryption and produces data with a 15 byte DigestInfo header, but the 20 bytes of hash values don't match what I originally hashed it with. Because the DigestInfo is correct, I believe the RSA decryption is occurring correctly. However I can not figure out why the hash values would be wrong. My only thought is perhaps cryptlib isn't storing the hash values as a standard 20 byte array-- that instead it is stored some other way. Is this possible? For specifics, here is what I am getting when the Java code verifies the signature: digestInfo header: 30 21 30 9 6 5 2b e 3 2 1a 5 0 4 14 sigHash: (the incorrect decrypted hash) 8b b9 c9 5 df 84 6a 34 41 b5 2b b6 ce d2 11 b8 b a9 ec c5 hash: (the correct hash) 44 b7 ab 51 25 6a 27 52 33 b6 36 ae a0 1c 1b a9 1c 57 f 25 I have confirmed that the hash values (the second ones) are correct. These are what is produced by the hashing functions in both Java and C++. (I checked the C++ using cryptGetAttributeString(hash_ctx, CRYPT_CTXINFO_HASHVALUE,hash,&hashLen); I would appreciate any help or hints you can give on this problem. If nothing else, could someone point me to specific places the source where this hash value is stored into the DigestInfo object before RSA encryption? In case it helps, I have enclosed the output of dumpasn1 of the signature char * array produced by cryptlib. Notice the hash in the header (starting at byte 132) also matches the 'correct' hash above. thanks tod >~/code/crypt_lib-3.0/keymgmt/dumpasn1 sig.out 0 30 296: SEQUENCE { 4 02 1: INTEGER 1 7 30 39: SEQUENCE { 9 30 27: SEQUENCE { 11 31 11: SET { 13 30 9: SEQUENCE { 15 06 3: OBJECT IDENTIFIER countryName (2 5 4 6) 20 13 2: PrintableString 'US' : } : } 24 31 12: SET { 26 30 10: SEQUENCE { 28 06 3: OBJECT IDENTIFIER commonName (2 5 4 3) 33 13 3: PrintableString 'p01' : } : } : } 38 02 8: INTEGER : 71 C5 AC EF E4 51 69 84 : } 48 30 9: SEQUENCE { 50 06 5: OBJECT IDENTIFIER sha1 (1 3 14 3 2 26) 57 05 0: NULL : } 59 A0 93: [0] { 61 30 24: SEQUENCE { 63 06 9: OBJECT IDENTIFIER contentType (1 2 840 113549 1 9 3) 74 31 11: SET { 76 06 9: OBJECT IDENTIFIER data (1 2 840 113549 1 7 1) : } : } 87 30 28: SEQUENCE { 89 06 9: OBJECT IDENTIFIER signingTime (1 2 840 113549 1 9 5) 100 31 15: SET { 102 17 13: UTCTime '020228032547Z' : } : } 117 30 35: SEQUENCE { 119 06 9: OBJECT IDENTIFIER messageDigest (1 2 840 113549 1 9 4) 130 31 22: SET { 132 04 20: OCTET STRING : 44 B7 AB 51 25 6A 27 52 33 B6 36 AE A0 1C 1B A9 : 1C 57 0F 25 : } : } : } 154 30 13: SEQUENCE { 156 06 9: OBJECT IDENTIFIER rsaEncryption (1 2 840 113549 1 1 1) 167 05 0: NULL : } 169 04 128: OCTET STRING : 5B 29 EA BF 2C 47 5B 28 FD 0E F3 08 D6 2D 5E 73 : 7F 3F 79 58 90 98 38 9B C6 8F 7E 73 4C 91 9E 6A : 84 C5 EC C9 90 3B D3 32 E7 01 ED 95 28 89 8D FB : BD 5E D1 88 D3 1C F3 3C FF 3A 99 FA 05 72 95 5C : 1A B6 1E CD 73 D9 48 40 B3 02 5A 07 BA 24 D8 91 : AB 1D 58 DE 73 E5 C0 67 30 F4 31 26 0B 5D 94 F6 : 4E D5 A7 FA 79 F9 40 0E 29 63 3F 2E 4D 58 29 30 : B5 39 68 49 11 86 AB CC 2B C9 E1 64 EF FB B9 86 : } -- Tod Courtney Research Programmer, PERFORM Research Group Center for Reliable & High-Performance Computing |Ph: (217)244-3203 University of Illinois at Urbana, Champaign |Fax:(217)244-3359 231 CSL, 1308 W. Main St., Urbana, IL 61801 |tod@crhc.uiuc.edu From cryptlib@mbsks.franken.de Thu Feb 28 14:31:04 2002 From: cryptlib@mbsks.franken.de (alex) Date: Thu, 28 Feb 2002 17:31:04 +0300 Subject: [Cryptlib] client ssh session fails to activate Message-ID: <3C7E3F28.3F0D665A@dynaweb.ru> Hi! I'm activating client ssh session just as it's explained in the manual. But after proceeding cryptSetAttribute(session,CRYPT_SESSION_ACTIVE,1) I get only -11 error code i.e. CRYPT_ERROR_NOTINITED. I'm trying to gather error info using cryptGetAttribute(session,CRYPT_ATTRIBUTE_INT_ERRORCODE, &ecode) but it returns zero value. More over cryptGetAttributeString(session,CRYPT_ATTRIBUTE_INT_ERRORMESSAGE, emsg, &emsg_len) returns -43 i.e. data not found. Well, then I opened sources of ssh.c and found four points where I can get CRYPT_ERROR_NOTINITED but in every that point there's code putting some error info about the situation. I it something what I don't understand here? Or tis a bug? Working under RedHat Linux 7.2 kernel 2.4.17 GCC 3.02 Alex PS I wish any help - though while last week I see only questions not answers :0( From cryptlib@mbsks.franken.de Thu Feb 28 15:37:21 2002 From: cryptlib@mbsks.franken.de (Tod Courtney) Date: Thu, 28 Feb 2002 09:37:21 -0600 Subject: [Cryptlib] trouble verifying signature generated by cryptlib References: <3C7D9695.48C58BE7@crhc.uiuc.edu> Message-ID: <3C7E4EB1.74F85DC6@crhc.uiuc.edu> all Just to let you know, this problem is resolved. It looks like a bug in cryptCreateSignatureEx. I switched back to cryptCreateSignature and now everything is working fine. Just wanted to let others know in case there is something that needs to be fixed. I am using cryptlib 3.0. tod Tod Courtney wrote: > > all > > I am fairly new to crypto and cryptlib. > > I am having trouble verifying a signature generated by cryptlib. I am > using SHA hashing with RSA. The signature is being passed to a java > program via a CORBA call, along with the Certificate and original data > (the data that was signed). In Java I am using the 'bouncycastle' > crypt library. > > First, I had a very difficult time interpretting the signature char * > array returned by cryptCreateSignatureEx. Finally, with some help > from folks, I can do this, and I can now have the java performing the > signature verification without any exceptions. But it is failing. It > performs the RSA decryption and produces data with a 15 byte > DigestInfo header, but the 20 bytes of hash values don't match what I > originally hashed it with. > > Because the DigestInfo is correct, I believe the RSA decryption is > occurring correctly. However I can not figure out why the hash values > would be wrong. > > My only thought is perhaps cryptlib isn't storing the hash values as a > standard 20 byte array-- that instead it is stored some other way. Is > this possible? > > For specifics, here is what I am getting when the Java code verifies > the signature: > > digestInfo header: > 30 21 30 9 6 5 2b e 3 2 1a 5 0 4 14 > > sigHash: (the incorrect decrypted hash) > 8b b9 c9 5 df 84 6a 34 41 b5 2b b6 ce d2 11 b8 b a9 ec c5 > > hash: (the correct hash) > 44 b7 ab 51 25 6a 27 52 33 b6 36 ae a0 1c 1b a9 1c 57 f 25 > > I have confirmed that the hash values (the second ones) are correct. > These are what is produced by the hashing functions in both Java and > C++. (I checked the C++ using > cryptGetAttributeString(hash_ctx, > CRYPT_CTXINFO_HASHVALUE,hash,&hashLen); > > I would appreciate any help or hints you can give on this problem. If > nothing else, could someone point me to specific places the source > where this hash value is stored into the DigestInfo object before RSA > encryption? > > In case it helps, I have enclosed the output of dumpasn1 of the > signature char * array produced by cryptlib. Notice the hash in the > header (starting at byte 132) also matches the 'correct' hash above. > > thanks > > tod > > >~/code/crypt_lib-3.0/keymgmt/dumpasn1 sig.out > 0 30 296: SEQUENCE { > 4 02 1: INTEGER 1 > 7 30 39: SEQUENCE { > 9 30 27: SEQUENCE { > 11 31 11: SET { > 13 30 9: SEQUENCE { > 15 06 3: OBJECT IDENTIFIER countryName (2 5 4 6) > 20 13 2: PrintableString 'US' > : } > : } > 24 31 12: SET { > 26 30 10: SEQUENCE { > 28 06 3: OBJECT IDENTIFIER commonName (2 5 4 3) > 33 13 3: PrintableString 'p01' > : } > : } > : } > 38 02 8: INTEGER > : 71 C5 AC EF E4 51 69 84 > : } > 48 30 9: SEQUENCE { > 50 06 5: OBJECT IDENTIFIER sha1 (1 3 14 3 2 26) > 57 05 0: NULL > : } > 59 A0 93: [0] { > 61 30 24: SEQUENCE { > 63 06 9: OBJECT IDENTIFIER contentType (1 2 840 113549 1 9 > 3) > 74 31 11: SET { > 76 06 9: OBJECT IDENTIFIER data (1 2 840 113549 1 7 1) > : } > : } > 87 30 28: SEQUENCE { > 89 06 9: OBJECT IDENTIFIER signingTime (1 2 840 113549 1 9 > 5) > 100 31 15: SET { > 102 17 13: UTCTime '020228032547Z' > : } > : } > 117 30 35: SEQUENCE { > 119 06 9: OBJECT IDENTIFIER messageDigest (1 2 840 113549 1 > 9 4) > 130 31 22: SET { > 132 04 20: OCTET STRING > : 44 B7 AB 51 25 6A 27 52 33 B6 36 AE A0 1C 1B > A9 > : 1C 57 0F 25 > : } > : } > : } > 154 30 13: SEQUENCE { > 156 06 9: OBJECT IDENTIFIER rsaEncryption (1 2 840 113549 1 1 > 1) > 167 05 0: NULL > : } > 169 04 128: OCTET STRING > : 5B 29 EA BF 2C 47 5B 28 FD 0E F3 08 D6 2D 5E 73 > : 7F 3F 79 58 90 98 38 9B C6 8F 7E 73 4C 91 9E 6A > : 84 C5 EC C9 90 3B D3 32 E7 01 ED 95 28 89 8D FB > : BD 5E D1 88 D3 1C F3 3C FF 3A 99 FA 05 72 95 5C > : 1A B6 1E CD 73 D9 48 40 B3 02 5A 07 BA 24 D8 91 > : AB 1D 58 DE 73 E5 C0 67 30 F4 31 26 0B 5D 94 F6 > : 4E D5 A7 FA 79 F9 40 0E 29 63 3F 2E 4D 58 29 30 > : B5 39 68 49 11 86 AB CC 2B C9 E1 64 EF FB B9 86 > : } > > -- > Tod Courtney Research Programmer, PERFORM Research Group > Center for Reliable & High-Performance Computing |Ph: (217)244-3203 > University of Illinois at Urbana, Champaign |Fax:(217)244-3359 > 231 CSL, 1308 W. Main St., Urbana, IL 61801 |tod@crhc.uiuc.edu > > _______________________________________________ > Cryptlib mailing list > Cryptlib@mbsks.franken.de > Administration via Mail: cryptlib-request@mbsks.franken.de -- Tod Courtney Research Programmer, PERFORM Research Group Center for Reliable & High-Performance Computing |Ph: (217)244-3203 University of Illinois at Urbana, Champaign |Fax:(217)244-3359 231 CSL, 1308 W. Main St., Urbana, IL 61801 |tod@crhc.uiuc.edu From cryptlib@mbsks.franken.de Thu Feb 28 17:36:01 2002 From: cryptlib@mbsks.franken.de (Olivier Fouache) Date: Thu, 28 Feb 2002 18:36:01 +0100 Subject: [Cryptlib] interoperability trouble between CryptLib and Cryptix Message-ID: <3C7E6A80.E1ABD89B@eurecom.fr> This is a multi-part message in MIME format. --------------9BC317E378C0EAB764F0BA21 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I have some pb of decryption with Rijndael (AES) cipher and decipher (CBC mode): for exemple : key : c1668d66f21eafe1a762f526dc6cf89d IV : 8eb968ca9d155ca64b13ebc7ff358c37 PT : 0000000301000100000080c59a7ff98f Cryptlib CT : e1da869f44e3c8141c386ce75183d7e1 Cryptix CT : b47edd0252e5162a02eff0de1f13d22a if someone knows what is the origin of this pb ... thanks. -- Olivier Fouache Ingenieur de Recherche Laboratoire Securite (labo 118) Olivier.Fouache@eurecom.fr Institut EURECOM, 2229 Route des Cretes Tel labo secu : 04.93.00.26.98 SOPHIA ANTIPOLIS 06560 VALBONNE - FRANCE http://www.eurecom.fr/~fouache/ --------------9BC317E378C0EAB764F0BA21 Content-Type: text/x-vcard; charset=us-ascii; name="olivier.fouache.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Olivier Fouache Content-Disposition: attachment; filename="olivier.fouache.vcf" begin:vcard n:Fouache;Olivier tel;cell:06.66.01.87.42 tel;work:04.93.00.26.98 x-mozilla-html:FALSE url:http://www.eurecom.fr/~fouache org:Institut Eurécom;Corporate Communication version:2.1 email;internet:olivier.fouache@eurecom.fr title:Ingénieur de Recherche adr;quoted-printable:;;2229 Route des Cr=EAtes=0D=0A;Valbonne;France;06560; fn:Olivier Fouache end:vcard --------------9BC317E378C0EAB764F0BA21-- From cryptlib@mbsks.franken.de Thu Feb 28 18:58:12 2002 From: cryptlib@mbsks.franken.de (Matthias Bruestle) Date: Thu, 28 Feb 2002 19:58:12 +0100 Subject: [Cryptlib] interoperability trouble between CryptLib and Cryptix In-Reply-To: <3C7E6A80.E1ABD89B@eurecom.fr>; from olivier.fouache@eurecom.fr on Thu, Feb 28, 2002 at 06:36:01PM +0100 References: <3C7E6A80.E1ABD89B@eurecom.fr> Message-ID: <20020228195812.F28051@mbsks.franken.de> Mahlzeit On Thu, Feb 28, 2002 at 06:36:01PM +0100, Olivier Fouache wrote: > I have some pb of decryption with Rijndael (AES) cipher and decipher > (CBC mode): > for exemple : > key : c1668d66f21eafe1a762f526dc6cf89d > IV : 8eb968ca9d155ca64b13ebc7ff358c37 > PT : 0000000301000100000080c59a7ff98f > Cryptlib CT : e1da869f44e3c8141c386ce75183d7e1 > Cryptix CT : b47edd0252e5162a02eff0de1f13d22a When I do normal CBC (xor IV with PT and then encrypt the block) I get the same results as in cryptlib: key = c1668d66f21eafe1a762f526dc6cf89d input = 8eb968c99c155da64b136b02654a75b8 enc = e1da869f44e3c8141c386ce75183d7e1 dec = 8eb968c99c155da64b136b02654a75b8 This was with Brian Gladmans implementation from February 2001. Mahlzeit endergone Zwiebeltuete