public class McElieceFujisakiCipher extends java.lang.Object implements MessageEncryptor
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
OID
The OID of the algorithm.
|
Constructor and Description |
---|
McElieceFujisakiCipher() |
Modifier and Type | Method and Description |
---|---|
int |
getKeySize(McElieceCCA2KeyParameters key) |
void |
init(boolean forSigning,
CipherParameters param) |
void |
initCipherDecrypt(McElieceCCA2PrivateKeyParameters privKey) |
byte[] |
messageDecrypt(byte[] input) |
byte[] |
messageEncrypt(byte[] input) |
public static final java.lang.String OID
public void init(boolean forSigning, CipherParameters param)
init
in interface MessageEncryptor
forSigning
- true if we are encrypting a signature, false
otherwise.param
- key parameters for encryption or decryption.public int getKeySize(McElieceCCA2KeyParameters key) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public void initCipherDecrypt(McElieceCCA2PrivateKeyParameters privKey)
public byte[] messageEncrypt(byte[] input) throws java.lang.Exception
messageEncrypt
in interface MessageEncryptor
input
- the message to be signed.java.lang.Exception
public byte[] messageDecrypt(byte[] input) throws java.lang.Exception
messageDecrypt
in interface MessageEncryptor
input
- the cipher text of the messagejava.lang.Exception