免責聲明

Disclaimer (免責聲明)
繼續閱覽代表您接受以上的免責聲明.
To continue reading means you accept the above disclaimer.

2010年6月23日 星期三

Certificate and RSACryptoServiceProvider

//===
RSACryptoServiceProvider rsa ...

Bob rsa.Encrypt(): use Alice's public key to encrypt the msg sent for the receiver Alice;

Bob rsa.Decrypt():  use Bob's private key to decrypt the received msg target for Bob from ...;


Henceforth, in order to sign the hash, have to use rsa.Decrypt() (i.e. pirvate key) !?
to verify the crypted sig , have to use rsa.Encrypt()
but they failed for hash/sig verify/creation

*** use rsa.VerifyHash() / rsa.SignHash() instead


//=== another trouble
exception: Key not valid for use in specified state.
input data to long?

沒有留言:

張貼留言