public interface MessageEncryptor
Modifier and Type | Method and Description |
---|---|
void |
init(boolean forEncrypting,
CipherParameters param) |
byte[] |
messageDecrypt(byte[] cipher) |
byte[] |
messageEncrypt(byte[] message) |
void init(boolean forEncrypting, CipherParameters param)
forEncrypting
- true if we are encrypting a signature, false
otherwise.param
- key parameters for encryption or decryption.byte[] messageEncrypt(byte[] message)
message
- the message to be signed.java.lang.Exception
byte[] messageDecrypt(byte[] cipher) throws InvalidCipherTextException
cipher
- the cipher text of the messagejava.lang.Exception
InvalidCipherTextException