Hi, I have the following question: If I encrypted some text with the
public key K, and tried to decrypt it with a wrong key (i.e. a key
which is NOT the corresponding private key), will I get an exception,
or is there is a boolean function to test whether the right key has
been used?
Tor Iver Wilhelmsen - 29 Oct 2005 19:31 GMT
> Hi, I have the following question: If I encrypted some text with the
> public key K, and tried to decrypt it with a wrong key (i.e. a key
> which is NOT the corresponding private key), will I get an
> exception, or is there is a boolean function to test whether the
> right key has been used?
The only "test" is that the output of decryption is what you wanted.
If the algoritm was able to determine whether a key was right or not
it would make cracking it much easier.