[ Home  |  FAQ-Related Q&As  |  General Q&As  |  Answered Questions ]


    Search the Q&A Archives


Windows Cryptography Problem Am using RSA Key Exchange...

<< Back to: Cryptography FAQ (01/10: Overview)

Question by vedprakash
Submitted on 7/1/2003
Related FAQ: Cryptography FAQ (01/10: Overview)
Rating: Rate this question: Vote
Windows Cryptography Problem

Am using RSA Key Exchange algorithm(CALG_RSA_KEYX ) with 1024 key length.
Am Encrypting directly with the Public key & Decrypting with the Private Key....No session is invloved anywhere....
Am using Microsoft SDK CryptoAPI for this..
Provider used is MS ENHANCED Provider...
Provider type used is PROV_RSA_FULL...
API 'CryptEncrypt()' encrypts, the return code is always a success code. But while decryption using API 'CryptDecrypt()', at times the function decrypts properly, but at times it fails with NTE_BAD_DATA...
With the same Key & same data being Encrypted,at times decryption succeeds & and at times fails with NTE_BAD_DATA....
What could be goin wrong....is it something to do with the Block chaining or Padding...
as RSA CALG_RSA_KEYX is neither a block cipher algorithm nor stream cipher,what is going wrong.... Any Solutions






Answer by Pascal
Submitted on 8/19/2003
Rating: Not yet rated Rate this answer: Vote
I do have the exact same problem. Have you found the solution since?

 

Answer by tkd
Submitted on 8/20/2003
Rating: Not yet rated Rate this answer: Vote
What OS?  Ran into the same problem in W2K It turns out that there was a registry entry for cryptography that had to be removed before it would install.  I saved the key then removed it and everything worked.   You can read the links below for more detail.

The key was
HKEY_CURRENT_USER\Software\Microsoft\Cryptography

 

Answer by sumit
Submitted on 10/29/2003
Rating: Not yet rated Rate this answer: Vote
Did anybody find the answer to the above problem? If so please e-mail me at sumitcelly@yahoo.com

 

Answer by fofo
Submitted on 12/25/2004
Rating: Not yet rated Rate this answer: Vote
Hi there,
I have question, Describe all actions and messages sent for the RSA key exchange??

I need the answer for this question ASAP


thanks

 

Answer by claudiu
Submitted on 8/25/2005
Rating: Not yet rated Rate this answer: Vote
Windows NT and Windows Me/98/95:  The Microsoft Enhanced Cryptographic Provider is not available.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/seccrypto/security/cryptencrypt.asp

this could be the cause? But I'm sure that you avoid running the application under Windows NT and Windows Me/98/95.

claudiu_burdulea@yahoo.com

 

Your answer will be published for anyone to see and rate.  Your answer will not be displayed immediately.  If you'd like to get expert points and benefit from positive ratings, please create a new account or login into an existing account below.


Your name or nickname:
If you'd like to create a new account or access your existing account, put in your password here:
Your answer:

FAQS.ORG reserves the right to edit your answer as to improve its clarity.  By submitting your answer you authorize FAQS.ORG to publish your answer on the WWW without any restrictions. You agree to hold harmless and indemnify FAQS.ORG against any claims, costs, or damages resulting from publishing your answer.

 

FAQS.ORG makes no guarantees as to the accuracy of the posts. Each post is the personal opinion of the poster. These posts are not intended to substitute for medical, tax, legal, investment, accounting, or other professional advice. FAQS.ORG does not endorse any opinion or any product or service mentioned mentioned in these posts.

 

<< Back to: Cryptography FAQ (01/10: Overview)


[ Home  |  FAQ-Related Q&As  |  General Q&As  |  Answered Questions ]

© 2008 FAQS.ORG. All rights reserved.