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) throws Exception
message
- the message to be signed.Exception
Copyright © 2016 BouncyCastle.org. All rights reserved.