Re: CALG_SSL3_SHAMD5 support for ClientAuthentication
From: John Banes (jabanes_at_comcast.remove.net)
Date: 10/26/05
- Previous message: Michel Gallant: "Re: Extracting a timestamp from a PKCS#7"
- In reply to: viveque.kumar_at_gmail.com: "CALG_SSL3_SHAMD5 support for ClientAuthentication"
- Next in thread: viveque.kumar_at_gmail.com: "Re: CALG_SSL3_SHAMD5 support for ClientAuthentication"
- Reply: viveque.kumar_at_gmail.com: "Re: CALG_SSL3_SHAMD5 support for ClientAuthentication"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 25 Oct 2005 18:47:26 -0700
The CALG_SSL3_SHAMD5 algorithm uses a 36 byte hash value (MD5+SHA). There is
no DER algorithm identifier in the PKCS signature block (per the SSL/TLS
specification). This is a signature operation so you need to use type 1
padding. I'm not familiar with the openssl library so I can't comment on the
exact logistics to make this work using that library. Best of luck!
Regards,
John
<viveque.kumar@gmail.com> wrote in message
news:1130140396.649027.245530@g49g2000cwa.googlegroups.com...
> Hi,
> We are trying to do client authentication using Smart cards on
> CustomCSP.
>
> I see the following taking place when the calls come in
>> CPAcquireContext has PROV_RSA_FULL set
>> CryptCreateHash has CALG_SSL3_SHAMD5 set as the algID
>
> During the call to CPSignHash, the call finally goes down to the RSAKey
> class::SignHash() where it fails with an NTE_BAD_ALGID as there is no
> separate handling for CALG_SSL3_SHAMD5
>
> In SignHash() function the following takes place on a piecemeal basis
> for the different algorithms.
>
>> A header DER value is added to the Hash buffer and it's size to the Hash
>> size
>> The Hash value is then sent to openssl for PKCS1_type1() padding
>> The padded data is then sent to be signed by the private key of the
>> container using PKI
>
> Here, I am assuming that to support CALG_SSL3_SHAMD5 if I add another
> case for the same will make the whole thing work.
>
> How do I find out / generate the header DER value for CALG_SSL3_SHAMD5
> algorithm?
> Also, the padding should be type1 or type2?
>
> Please help, I am very new to CSP and Hashing.
>
> - Vivek
>
- Previous message: Michel Gallant: "Re: Extracting a timestamp from a PKCS#7"
- In reply to: viveque.kumar_at_gmail.com: "CALG_SSL3_SHAMD5 support for ClientAuthentication"
- Next in thread: viveque.kumar_at_gmail.com: "Re: CALG_SSL3_SHAMD5 support for ClientAuthentication"
- Reply: viveque.kumar_at_gmail.com: "Re: CALG_SSL3_SHAMD5 support for ClientAuthentication"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|