| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private ByteArrayOutputStream | buf
buffer to store the input data |
| private McElieceKobaraImaiCipher | |
| private Digest |
| Access | Constructor and Description |
|---|---|
| public | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected int | decryptOutputSize(int
the length of the input inLen)Implements abstract org. Compute the output size of an update() or doFinal() operation of a hybrid asymmetric cipher in decryption mode when given input of the specified length. |
| public byte[] | Returns: the new buffer with the resultthe input buffer input, int the offset in input where the input starts inOff, int the input length inLen)Implements abstract org. Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation. |
| protected int | encryptOutputSize(int
the length of the input inLen)Implements abstract org. Compute the output size of an update() or doFinal() operation of a hybrid asymmetric cipher in encryption mode when given input of the specified length. |
| 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 AsymmetricHybridCipher 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 AsymmetricHybridCipher with a certain key for data encryption. |
| private byte[] | |
| private byte[] | |
| public byte[] | Returns: the processed byte array.byte array containing the next part of the input input, int index in the array where the input starts inOff, int length of the input inLen)Implements abstract org. Continue a multiple-part encryption or decryption operation. |
| buf | back to summary |
|---|---|
| private ByteArrayOutputStream buf buffer to store the input data | |
| cipher | back to summary |
|---|---|
| private McElieceKobaraImaiCipher cipher | |
| digest | back to summary |
|---|---|
| private Digest digest | |
| McElieceKobaraImaiCipherSpi | back to summary |
|---|---|
| public McElieceKobaraImaiCipherSpi() | |
| McElieceKobaraImaiCipherSpi | back to summary |
|---|---|
| protected McElieceKobaraImaiCipherSpi(Digest digest, McElieceKobaraImaiCipher cipher) | |
| decryptOutputSize | back to summary |
|---|---|
| protected int decryptOutputSize(int inLen) Implements abstract org. Doc from org. Compute the output size of an update() or doFinal() operation of a hybrid asymmetric cipher in decryption mode when given input of the specified length.
| |
| doFinal | back to summary |
|---|---|
| public byte[] doFinal(byte[] input, int inOff, int inLen) throws BadPaddingException Implements abstract org. Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation. The data is encrypted or decrypted, depending on how this cipher was initialized.
| |
| encryptOutputSize | back to summary |
|---|---|
| protected int encryptOutputSize(int inLen) Implements abstract org. Doc from org. Compute the output size of an update() or doFinal() operation of a hybrid asymmetric cipher in encryption mode when given input of the specified length.
| |
| 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 AsymmetricHybridCipher 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 AsymmetricHybridCipher with a certain key for data encryption.
| |
| pad | back to summary |
|---|---|
| private byte[] pad() Pad and return the message stored in the message buffer.
| |
| unpad | back to summary |
|---|---|
| private byte[] unpad(byte[] pmBytes) throws BadPaddingException Unpad a message.
| |
| update | back to summary |
|---|---|
| public byte[] update(byte[] input, int inOff, int inLen) Implements abstract org. Continue a multiple-part encryption or decryption operation.
| |
| Access | Constructor and Description |
|---|---|
| public |
| McElieceKobaraImai | back to summary |
|---|---|
| public McElieceKobaraImai() | |
| Access | Constructor and Description |
|---|---|
| public |
| McElieceKobaraImai224 | back to summary |
|---|---|
| public McElieceKobaraImai224() | |
| Access | Constructor and Description |
|---|---|
| public |
| McElieceKobaraImai256 | back to summary |
|---|---|
| public McElieceKobaraImai256() | |
| Access | Constructor and Description |
|---|---|
| public |
| McElieceKobaraImai384 | back to summary |
|---|---|
| public McElieceKobaraImai384() | |
| Access | Constructor and Description |
|---|---|
| public |
| McElieceKobaraImai512 | back to summary |
|---|---|
| public McElieceKobaraImai512() | |