Data encryption with RSA public key in WinCE
hi,
i am writing an app for WinCE (on iPAQ) in which i need to Encrypt a 20 byte data using RSA public key using CryptoAPI. In msdn it is specified that public keys are used only to encrypt session keys since it takes lot of time to encrypt bulk data.
but i need to encrypt a 20 byte data. i am trying to encrypt using CryptEncrypt() api.<BR>But it encrypting data, but not in a proper way. If anyone knows about this pl let me know. If you have a sample code it will be very helpful.
Thanx in advance..<BR>Murali Mohan.K
__________________
Murali Mohan.K<BR>Software Engg.<BR>Microcon Intl.<BR>Bangalore<BR>India
|