public class McElieceFujisakiCipher extends Object implements MessageEncryptor
| Modifier and Type | Field and Description |
|---|---|
static 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 String OID
public void init(boolean forSigning,
CipherParameters param)
init in interface MessageEncryptorforSigning - true if we are encrypting a signature, false
otherwise.param - key parameters for encryption or decryption.public int getKeySize(McElieceCCA2KeyParameters key) throws IllegalArgumentException
IllegalArgumentExceptionpublic void initCipherDecrypt(McElieceCCA2PrivateKeyParameters privKey)
public byte[] messageEncrypt(byte[] input)
throws Exception
messageEncrypt in interface MessageEncryptorinput - the message to be signed.Exceptionpublic byte[] messageDecrypt(byte[] input)
throws Exception
messageDecrypt in interface MessageEncryptorinput - the cipher text of the messageExceptionCopyright © 2015–2016 The veraPDF Consortium. All rights reserved.