RE: Decryption using private key from cert store failing with err
From: scott (sjumsdn_at_newsgroup.nospam)
Date: 02/23/05
- Previous message: Martijn Laan: "Re: SE_REGISTRY_WOW64_64KEY?"
- In reply to: Rhett Gong [MSFT]: "RE: Decryption using private key from cert store failing with err"
- Next in thread: Rhett Gong [MSFT]: "RE: Decryption using private key from cert store failing with err"
- Reply: Rhett Gong [MSFT]: "RE: Decryption using private key from cert store failing with err"
- Reply: Rhett Gong [MSFT]: "RE: Decryption using private key from cert store failing with err"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 23 Feb 2005 14:31:01 -0800
The reason we need to do a decrypt(private)/encrypt(public) is that that is
part of the SSL standard. It decrypts with the private key and then the
other side encrypts with the public key.
Ignoring the issue of our need for a decrypt/encrypt as opposed to an
encrypt/decrypt for the moment, we still have the issue of the cryptencrypt
call taking 117 bytes as input and generating 128 bytes as output. What are
the extra 11 bytes? They cannot just be padding, it appears to us that they
contain information that is used by the cryptdecrypt call. This appears to
make the MS cryptoapi unable to interoperate with the crypto libraries we are
using on other platforms. The other libraries encrypt/decrypt calls do not
change the number of bytes in the buffer.
"Rhett Gong [MSFT]" wrote:
> Hi Scott,
> I afraid I can't make sure what you are trying to do there.
> If you use sha1/md5, to successfully do the decrypt, we must have an
> invalid cryptograph to decrypt, otherwise we will get invalid data
> returned.
> In addition, I guess you may want to decrypt "AAA..." to a unknown text,
> and send it to server, server does the encryption and get "AAA..."
> returned. If this is the case, I can't think any reason to use it in this
> way instead of calling encrypt then decrypt, it should give you the same
> result and process.
>
> And if there is any misunderstanding, please post more details on your
> scenario here so that I get fully understand your problem.
>
>
> Thanks,
> Rhett Gong [MSFT]
> Microsoft Online Partner Support
> Get Secure! - www.microsoft.com/security
>
> This posting is provided "AS IS" with no warranties and confers no rights.
>
>
- Previous message: Martijn Laan: "Re: SE_REGISTRY_WOW64_64KEY?"
- In reply to: Rhett Gong [MSFT]: "RE: Decryption using private key from cert store failing with err"
- Next in thread: Rhett Gong [MSFT]: "RE: Decryption using private key from cert store failing with err"
- Reply: Rhett Gong [MSFT]: "RE: Decryption using private key from cert store failing with err"
- Reply: Rhett Gong [MSFT]: "RE: Decryption using private key from cert store failing with err"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|