McElieceCipher
, McElieceFujisakiCipher
, McElieceKobaraImaiCipher
, McEliecePointchevalCipher
public interface MessageEncryptor
Modifier and Type | Method | 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.byte[] messageDecrypt(byte[] cipher) throws InvalidCipherTextException
cipher
- the cipher text of the messageInvalidCipherTextException