Overview | Package | Class | Tree | Deprecated | Index | Help
| Bouncy Castle Cryptography Library 1.84
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.bouncycastle.pqc.crypto
Interface MessageEncryptor

public interface MessageEncryptor

Base interface for a PQC encryption algorithm.

Method Summary
`void` | `init(boolean forEncrypting, CipherParameters param)`
`byte[]` | `messageDecrypt(byte[] cipher)`
`byte[]` | `messageEncrypt(byte[] message)`

Method Detail

### init

    public void init(boolean forEncrypting,
                     CipherParameters param)

  Parameters:
    `forEncrypting` - true if we are encrypting a signature, false otherwise.
    `param` - key parameters for encryption or decryption.

### messageEncrypt

    public byte[] messageEncrypt(byte[] message)

  Parameters:
    `message` - the message to be signed.

### messageDecrypt

    public byte[] messageDecrypt(byte[] cipher)
                          throws InvalidCipherTextException

  Parameters:
    `cipher` - the cipher text of the message
  Throws:
    `InvalidCipherTextException`

Overview | Package | Class | Tree | Deprecated | Index | Help
| Bouncy Castle Cryptography Library 1.84
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD