Re: Raw RSA operations with CryptDecrypt
From: Valery Pryamikov (valery_at_harper.no)
Date: 03/07/05
- Next message: intcinside: "Malicious Software"
- Previous message: Sudhakar Govindavajhala: "Re: Newbie security programming questions"
- In reply to: Helen Balabine: "Raw RSA operations with CryptDecrypt"
- Next in thread: lelteto: "Re: Raw RSA operations with CryptDecrypt"
- Reply: lelteto: "Re: Raw RSA operations with CryptDecrypt"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 7 Mar 2005 00:33:40 +0100
No to both questions.
With CAPI - the only thing you can use public key is signature validation.
This is due to several reasons. most important are:
- historical. CAPI was designed during the time of US Exporting restrictions
on strong cryptographic algorithm. This made it necessary to distinguish RSA
encryption (which was restricted to 512 bit modulus) and signing (that
didn't have such restriction).
- preventive. CAPI tries to protect you from shooting yourself in your leg
by prohibiting operations that's more often leads to subtle flaws and
protocol failures.
- others. like decryption is implemented by single routine that requires
long form of key (with both primes and their inverses) for using Chinese
remainder theorem and Gauss algorithm for gaining 75% performance during
decryption operation. Last is important for protecting against denial of
service when server is required to decrypt many requests from different
clients (ex. SSL session negotiation). Apparently this routine can't be used
with public key - knowledge of primes is the analogy to knowledge of private
key.
-Valery.
http://www.harper.no/valery
"Helen Balabine" <hbalabine@comcast.net> wrote in message
news:OyhWPenIFHA.3376@TK2MSFTNGP14.phx.gbl...
> Does CryptDecrypt work for raw decryption with the *public* RSA key? If
> not,
> is there any other CAPI function which implements a raw RSA public key
> decryption operation (i.e. no PKCS#1 padding checks are performed)?
>
> Thanks!
>
>
- Next message: intcinside: "Malicious Software"
- Previous message: Sudhakar Govindavajhala: "Re: Newbie security programming questions"
- In reply to: Helen Balabine: "Raw RSA operations with CryptDecrypt"
- Next in thread: lelteto: "Re: Raw RSA operations with CryptDecrypt"
- Reply: lelteto: "Re: Raw RSA operations with CryptDecrypt"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|