| Modifier and Type | Field and Description |
|---|---|
| private Class | |
| private StreamCipher | |
| private int | |
| private int | |
| private ParametersWithIV | |
| private int | |
| private String | |
| private PBEParameterSpec |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected byte[] | engineDoFinal(byte[]
the input buffer input, int the offset in inputOffset, int input where the input startsthe input length inputLen)Overrides org. |
| protected int | engineDoFinal(byte[]
the input buffer input, int the offset in inputOffset, int input where the input
startsthe input length inputLen, byte[] the buffer for the result output, int the offset in outputOffset)output where the result
is storedOverrides org. |
| protected int | engineGetBlockSize()
Overrides org. |
| protected byte[] | engineGetIV()
Overrides org. |
| protected int | engineGetKeySize(Key
the key object key)Overrides org. |
| protected int | engineGetOutputSize(int
the input length (in bytes) inputLen)Overrides org. update
or doFinal operation, given the input length
inputLen (in bytes).
|
| protected AlgorithmParameters | engineGetParameters()
Overrides org. |
| protected void | engineInit(int
the operation mode of this opmode, Key CipherSpi object
(this is one of the following:
ENCRYPT_MODE, DECRYPT_MODE,
WRAP_MODE, or UNWRAP_MODE)the encryption key key, AlgorithmParameterSpec the algorithm parameters params, SecureRandom the source of randomness random)Overrides org. CipherSpi object with a key, a set of
algorithm parameters, and a source of randomness.
|
| protected void | engineInit(int
the operation mode of this opmode, Key CipherSpi object
(this is one of the following:
ENCRYPT_MODE, DECRYPT_MODE,
WRAP_MODE, or UNWRAP_MODE)the encryption key key, AlgorithmParameters the algorithm parameters params, SecureRandom the source of randomness random)Overrides org. CipherSpi object with a key, a set of
algorithm parameters, and a source of randomness.
|
| protected void | engineInit(int
the operation mode of this opmode, Key CipherSpi object
(this is one of the following:
ENCRYPT_MODE, DECRYPT_MODE,
WRAP_MODE or UNWRAP_MODE)the encryption key key, SecureRandom the source of randomness random)Overrides org. CipherSpi object with a key and a source
of randomness.
|
| protected void | engineSetMode(String
the cipher mode mode)Overrides org. |
| protected void | engineSetPadding(String
the padding mechanism padding)Overrides org. |
| protected byte[] | engineUpdate(byte[]
the input buffer input, int the offset in inputOffset, int input where the input startsthe input length inputLen)Overrides org. CipherSpi object was initialized),
processing another data part.
|
| protected int | engineUpdate(byte[]
the input buffer input, int the offset in inputOffset, int input where the input
startsthe input length inputLen, byte[] the buffer for the result output, int the offset in outputOffset)output where the result
is storedOverrides org. CipherSpi object was initialized),
processing another data part.
|
| availableSpecs | back to summary |
|---|---|
| private Class<T>[] availableSpecs Hides org. | |
| cipher | back to summary |
|---|---|
| private StreamCipher cipher | |
| digest | back to summary |
|---|---|
| private int digest | |
| ivLength | back to summary |
|---|---|
| private int ivLength | |
| ivParam | back to summary |
|---|---|
| private ParametersWithIV ivParam | |
| keySizeInBits | back to summary |
|---|---|
| private int keySizeInBits | |
| pbeAlgorithm | back to summary |
|---|---|
| private String pbeAlgorithm | |
| pbeSpec | back to summary |
|---|---|
| private PBEParameterSpec pbeSpec | |
| BaseStreamCipher | back to summary |
|---|---|
| protected BaseStreamCipher(StreamCipher engine, int ivLength) | |
| BaseStreamCipher | back to summary |
|---|---|
| protected BaseStreamCipher(StreamCipher engine, int ivLength, int keySizeInBits) | |
| BaseStreamCipher | back to summary |
|---|---|
| protected BaseStreamCipher(StreamCipher engine, int ivLength, int keySizeInBits, int digest) | |
| engineDoFinal | back to summary |
|---|---|
| protected byte[] engineDoFinal(byte[] input, int inputOffset, int inputLen) Overrides org. Doc from javax. 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
The first Upon finishing, this method resets this Note if any exception is thrown, this
| |
| engineDoFinal | back to summary |
|---|---|
| protected int engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) throws ShortBufferException Overrides org. Doc from javax. 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
The first If the Upon finishing, this method resets this Note if any exception is thrown, this
| |
| engineGetBlockSize | back to summary |
|---|---|
| protected int engineGetBlockSize() Overrides org. Doc from javax. Returns the block size (in bytes).
| |
| engineGetIV | back to summary |
|---|---|
| protected byte[] engineGetIV() Overrides org. Doc from javax. Returns the initialization vector (IV) in a new buffer. This is useful in the context of password-based encryption or decryption, where the IV is derived from a user-provided passphrase.
| |
| engineGetKeySize | back to summary |
|---|---|
| protected int engineGetKeySize(Key key) Overrides org. Doc from javax. Returns the key size of the given key object in bits. This concrete method has been added to this previously-defined
abstract class. It throws an
| |
| engineGetOutputSize | back to summary |
|---|---|
| protected int engineGetOutputSize(int inputLen) Overrides org. Doc from javax. Returns the length in bytes that an output buffer would
need to be in order to hold the result of the next This call takes into account any unprocessed (buffered) data from a
previous The actual output length of the next
| |
| engineGetParameters | back to summary |
|---|---|
| protected AlgorithmParameters engineGetParameters() Overrides org. Doc from javax. Returns the parameters used with this cipher. The returned parameters may be the same that were used to initialize
this cipher, or may contain additional default or random parameter
values used by the underlying cipher implementation. If the required
parameters were not supplied and can be generated by the cipher, the
generated parameters are returned. Otherwise,
| |
| engineInit | back to summary |
|---|---|
| protected void engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException Overrides org. Doc from javax. Initializes this The If this cipher requires any algorithm parameters and
If this cipher requires algorithm parameters that cannot be derived from the input parameters, and there are no reasonable provider-specific default values, initialization will necessarily fail. If this cipher (including its feedback or padding scheme)
requires any random bytes (e.g., for parameter generation), it will get
them from Note that when a
| |
| engineInit | back to summary |
|---|---|
| protected void engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException Overrides org. Doc from javax. Initializes this The If this cipher requires any algorithm parameters and
If this cipher requires algorithm parameters that cannot be derived from the input parameters, and there are no reasonable provider-specific default values, initialization will necessarily fail. If this cipher (including its feedback or padding scheme)
requires any random bytes (e.g., for parameter generation), it will get
them from Note that when a
| |
| engineInit | back to summary |
|---|---|
| protected void engineInit(int opmode, Key key, SecureRandom random) throws InvalidKeyException Overrides org. Doc from javax. Initializes this The If this cipher requires any algorithm parameters that cannot be
derived from the given If this cipher requires algorithm parameters that cannot be derived from the input parameters, and there are no reasonable provider-specific default values, initialization will necessarily fail. If this cipher (including its feedback or padding scheme)
requires any random bytes (e.g., for parameter generation), it will get
them from Note that when a
| |
| engineSetMode | back to summary |
|---|---|
| protected void engineSetMode(String mode) throws NoSuchAlgorithmException Overrides org. should never be called.
| |
| engineSetPadding | back to summary |
|---|---|
| protected void engineSetPadding(String padding) throws NoSuchPaddingException Overrides org. should never be called.
| |
| engineUpdate | back to summary |
|---|---|
| protected byte[] engineUpdate(byte[] input, int inputOffset, int inputLen) Overrides org. Doc from javax. Continues a multiple-part encryption or decryption operation
(depending on how this The first
| |
| engineUpdate | back to summary |
|---|---|
| protected int engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) throws ShortBufferException Overrides org. Doc from javax. Continues a multiple-part encryption or decryption operation
(depending on how this The first If the
| |