You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I notice an interesting behaviour when testing CLI. When trying to decrypt an encrypted number using an "incorrect" private key (eg, one that has different keysize to a public key used during encryption) one of the following happens:
IllegalArgumentException is thrown because the ciphertext of the encrypted number is greater than the public key's modulus.
DecodeException is thrown because the decrypted value cannot be decoded as a double.
successful decryption process, but the value is incorrect.
It would be good if CLI checks whether the correct private key is used (especially when the encrypted number is successfully decrypted).
The text was updated successfully, but these errors were encountered:
I notice an interesting behaviour when testing CLI. When trying to decrypt an encrypted number using an "incorrect" private key (eg, one that has different keysize to a public key used during encryption) one of the following happens:
IllegalArgumentException
is thrown because the ciphertext of the encrypted number is greater than the public key's modulus.DecodeException
is thrown because the decrypted value cannot be decoded as a double.It would be good if CLI checks whether the correct private key is used (especially when the encrypted number is successfully decrypted).
The text was updated successfully, but these errors were encountered: