Ok, I fixed it. Sorry for the confusion. The problem was in what I was
feeding to the decrypt function not with the code itself. Also the decrypt
function gives the data back in big endian. I think.
Well, thanks for the help.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Mark Corner
Sent: Wednesday, April 04, 2001 4:33 PM
To: [EMAIL PROTECTED]
Subject: RE: CAPI(!)/openssl interop
Ok, thanks. Good idea. I got it to run on my win2k machine, but it has the
same problem. I will keep wacking at it. I think it has to do with all the
endian conversions, but it is hard to tell with no source :(
FYI, I found two things: in wincrypt.h you have to comment out an ifdef at
the beginning referring to your NT version. Also, the X86 emulation mode
for the CE devices does not seem to include CAPI. You have to go to the
device to use it.
Is your code for PRIVATEKEYBLOBS available? I see a binary on your page,
but no source for the PVK util.
Yeah, my code sucks, I know it :) I will clean it up.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Dr S N Henson
Sent: Tuesday, April 03, 2001 9:46 PM
To: [EMAIL PROTECTED]
Subject: Re: CAPI(!)/openssl interop
>It might be an idea to see if your stuff works on PC CryptoAPI first
>then worry about WinCE on the iPAQ later.
>There's also some code which you should be able to use in my PVK utility
>source which converts between RSA structures and CryptoAPI
>PRIVATEKEYBLOBs.
>There's nothing I can see obviously wrong with your code. I personally
>wrote functions to convert between BIGNUMs and little endian buffers and
>use BN_get_word()/BN_set_word() to handle the public exponent which
>makes things a little clearer.
>Steve.
>--
>Dr Stephen N. Henson. http://www.drh-consultancy.demon.co.uk/
>Personal Email: [EMAIL PROTECTED]
>Senior crypto engineer, Celo Communications: http://www.celocom.com/
>Core developer of the OpenSSL project: http://www.openssl.org/
>Business Email: [EMAIL PROTECTED] PGP key: via homepage.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]