MessageEncryptor (Bouncy Castle Library 1.52 API Specification)
Date: 2015-03-01

org.bouncycastle.pqc.crypto

## Interface MessageEncryptor

- All Known Implementing Classes:
    McElieceFujisakiCipher, McElieceKobaraImaiCipher, McEliecePKCSCipher, McEliecePointchevalCipher

      public interface MessageEncryptor

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `init(boolean forEncrypting, CipherParameters param)`
    `byte[]` | `messageDecrypt(byte[] cipher)`
    `byte[]` | `messageEncrypt(byte[] message)`

- - ### Method Detail

    - #### init

          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

          byte[] messageEncrypt(byte[] message)
                                throws java.lang.Exception

      Parameters:
        `message` - the message to be signed.
      Throws:
        `java.lang.Exception`

    - #### messageDecrypt

          byte[] messageDecrypt(byte[] cipher)
                                throws java.lang.Exception

      Parameters:
        `cipher` - the cipher text of the message
      Throws:
        `java.lang.Exception`