Top Description Methods
org.bouncycastle.pqc.crypto

public Interface MessageEncryptor

Known Direct Implementers
org.bouncycastle.pqc.legacy.crypto.mceliece.McElieceCipher, org.bouncycastle.pqc.legacy.crypto.mceliece.McElieceFujisakiCipher, org.bouncycastle.pqc.legacy.crypto.mceliece.McElieceKobaraImaiCipher, org.bouncycastle.pqc.legacy.crypto.mceliece.McEliecePointchevalCipher
Imports
org.bouncycastle.crypto.CipherParameters, .InvalidCipherTextException

Base interface for a PQC encryption algorithm.

Method Summary

Modifier and TypeMethod and Description
public void
init(boolean
true if we are encrypting a signature, false otherwise.
forEncrypting
,
CipherParameters
key parameters for encryption or decryption.
param
)

public byte[]
messageDecrypt(byte[]
the cipher text of the message
cipher
)

public byte[]
messageEncrypt(byte[]
the message to be signed.
message
)

Method Detail

initback to summary
public void init(boolean forEncrypting, CipherParameters param)
Parameters
forEncrypting:boolean

true if we are encrypting a signature, false otherwise.

param:CipherParameters

key parameters for encryption or decryption.

messageDecryptback to summary
public byte[] messageDecrypt(byte[] cipher) throws InvalidCipherTextException
Parameters
cipher:byte[]

the cipher text of the message

messageEncryptback to summary
public byte[] messageEncrypt(byte[] message)
Parameters
message:byte[]

the message to be signed.