public interface IndCpaCipher
Said primitives do not provide authentication, thus should not be used directly, but only to
construct safer primitives such as Aead.
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decrypt(byte[] ciphertext)
Decrypts
ciphertext. |
byte[] |
encrypt(byte[] plaintext)
Encrypts
plaintext. |
byte[] encrypt(byte[] plaintext)
throws GeneralSecurityException
plaintext. The resulting ciphertext is indistinguishable under
chosen-plaintext attack. However, it does not have integrity protection.GeneralSecurityExceptionbyte[] decrypt(byte[] ciphertext)
throws GeneralSecurityException
ciphertext.GeneralSecurityException