MessageEncryptorpublic class McEliecePointchevalCipher extends java.lang.Object implements MessageEncryptor
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
OID |
The OID of the algorithm.
|
| Constructor | Description |
|---|---|
McEliecePointchevalCipher() |
| Modifier and Type | Method | Description |
|---|---|---|
protected int |
decryptOutputSize(int inLen) |
|
protected int |
encryptOutputSize(int inLen) |
|
int |
getKeySize(McElieceCCA2KeyParameters key) |
Return the key size of the given key object.
|
void |
init(boolean forEncryption,
CipherParameters param) |
|
byte[] |
messageDecrypt(byte[] input) |
|
byte[] |
messageEncrypt(byte[] input) |
public static final java.lang.String OID
public void init(boolean forEncryption,
CipherParameters param)
init in interface MessageEncryptorforEncryption - 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
key - the McElieceCCA2KeyParameters objectjava.lang.IllegalArgumentException - if the key is invalidprotected int decryptOutputSize(int inLen)
protected int encryptOutputSize(int inLen)
public byte[] messageEncrypt(byte[] input)
messageEncrypt in interface MessageEncryptorinput - the message to be signed.public byte[] messageDecrypt(byte[] input)
throws InvalidCipherTextException
messageDecrypt in interface MessageEncryptorinput - the cipher text of the messageInvalidCipherTextException