| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private McElieceCipher |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | getKeySize(Key
the key object key)Implements abstract org. Return the key size of the given key object in bits. |
| public String | |
| protected void | initCipherDecrypt(Key
the key which has to be used to decrypt data key, AlgorithmParameterSpec the algorithm parameters params)Implements abstract org. Initialize the AsymmetricBlockCipher with a certain key for data encryption. |
| protected void | initCipherEncrypt(Key
the key which has to be used to encrypt data key, AlgorithmParameterSpec the algorithm parameters params, SecureRandom the source of randomness sr)Implements abstract org. Initialize the AsymmetricBlockCipher with a certain key for data encryption. |
| protected byte[] | messageDecrypt(byte[]
the ciphertext to be decrypted (the ciphertext length is
less than or equal to maxCipherTextSize) input)Implements abstract org. Decrypt the ciphertext stored in input. |
| protected byte[] | messageEncrypt(byte[]
the message to be encrypted (usually the message length is
less than or equal to maxPlainTextSize) input)Implements abstract org. Encrypt the message stored in input. |
| cipher | back to summary |
|---|---|
| private McElieceCipher cipher | |
| McEliecePKCSCipherSpi | back to summary |
|---|---|
| public McEliecePKCSCipherSpi(McElieceCipher cipher) | |
| getKeySize | back to summary |
|---|---|
| public int getKeySize(Key key) throws InvalidKeyException Implements abstract org. Doc from org. Return the key size of the given key object in bits.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements abstract org.
| |
| initCipherDecrypt | back to summary |
|---|---|
| protected void initCipherDecrypt(Key key, AlgorithmParameterSpec params) throws InvalidKeyException, InvalidAlgorithmParameterException Implements abstract org. Doc from org. Initialize the AsymmetricBlockCipher with a certain key for data encryption.
| |
| initCipherEncrypt | back to summary |
|---|---|
| protected void initCipherEncrypt(Key key, AlgorithmParameterSpec params, SecureRandom sr) throws InvalidKeyException, InvalidAlgorithmParameterException Implements abstract org. Doc from org. Initialize the AsymmetricBlockCipher with a certain key for data encryption.
| |
| messageDecrypt | back to summary |
|---|---|
| protected byte[] messageDecrypt(byte[] input) throws IllegalBlockSizeException, BadPaddingException Implements abstract org. Doc from org. Decrypt the ciphertext stored in input. The method should also perform an additional length check.
| |
| messageEncrypt | back to summary |
|---|---|
| protected byte[] messageEncrypt(byte[] input) throws IllegalBlockSizeException, BadPaddingException Implements abstract org. Doc from org. Encrypt the message stored in input. The method should also perform an additional length check.
| |
| Access | Constructor and Description |
|---|---|
| public |
| McEliecePKCS | back to summary |
|---|---|
| public McEliecePKCS() | |