|
|||||||||
Home >> All >> cryptix >> jce >> provider >> [ cipher overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |
cryptix.jce.provider.cipher
Class TripleDESInnerCBC

java.lang.Objectjavax.crypto.CipherSpi
cryptix.jce.provider.cipher.TripleDESInnerCBC
- public final class TripleDESInnerCBC
- extends javax.crypto.CipherSpi
- Version:
- $Revision: 1.2 $
Field Summary | |
private javax.crypto.Cipher |
_c1
|
private javax.crypto.Cipher |
_c2
|
private javax.crypto.Cipher |
_c3
|
private byte[] |
_ivBuf
|
private static java.lang.String |
ALG_NAME
|
private static int |
BLOCK_SIZE
|
private static int |
IV_SIZE
|
private static int |
KEY_SIZE
|
private static java.lang.String |
PROVIDER
|
Constructor Summary | |
TripleDESInnerCBC()
|
Method Summary | |
java.lang.Object |
clone()
Always throws a CloneNotSupportedException (cloning of ciphers is not supported for security reasons). |
protected byte[] |
engineDoFinal(byte[] in,
int inOff,
int inLen)
Implemented in terms of engineDoFinal(byte[], int, int, byte[], int) |
protected int |
engineDoFinal(byte[] in,
int inOff,
int inLen,
byte[] out,
int outOff)
Finishes a multi-part transformation or transforms a portion of a byte array, and stores the transformed bytes in the supplied array. |
protected int |
engineGetBlockSize()
Returns the block size of the underlying cipher. |
protected byte[] |
engineGetIV()
Returns a copy of the initialization vector (IV) used in this cipher. |
protected int |
engineGetKeySize(java.security.Key key)
Return the length of the given key in bits. |
protected int |
engineGetOutputSize(int len)
Returns the length in bytes that an output buffer would need to be in order to hold the result of the next update or doFinal operation, given the input length inputLen (in bytes). |
protected java.security.AlgorithmParameters |
engineGetParameters()
Returns the parameters that this cipher is using. |
protected void |
engineInit(int opmode,
java.security.Key key,
java.security.spec.AlgorithmParameterSpec params,
java.security.SecureRandom random)
Initializes this cipher with an operation mode, key, parameters, and source of randomness. |
protected void |
engineInit(int opmode,
java.security.Key key,
java.security.AlgorithmParameters params,
java.security.SecureRandom random)
Initializes this cipher with an operation mode, key, parameters, and source of randomness. |
protected void |
engineInit(int opmode,
java.security.Key key,
java.security.SecureRandom random)
Initializes this cipher with an operation mode, key, and source of randomness. |
protected void |
engineSetMode(java.lang.String mode)
Set the mode in which this cipher is to run. |
protected void |
engineSetPadding(java.lang.String padding)
Set the method with which the input is to be padded. |
protected byte[] |
engineUpdate(byte[] in,
int inOff,
int inLen)
Continue with a multi-part transformation, returning a new array of the transformed bytes. |
protected int |
engineUpdate(byte[] in,
int inOff,
int inLen,
byte[] out,
int outOff)
Continue with a multi-part transformation, storing the transformed bytes into the specified array. |
Methods inherited from class javax.crypto.CipherSpi |
engineDoFinal, engineUnwrap, engineUpdate, engineWrap |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
PROVIDER
private static final java.lang.String PROVIDER
- See Also:
- Constant Field Values
BLOCK_SIZE
private static final int BLOCK_SIZE
- See Also:
- Constant Field Values
ALG_NAME
private static final java.lang.String ALG_NAME
- See Also:
- Constant Field Values
KEY_SIZE
private static final int KEY_SIZE
- See Also:
- Constant Field Values
_c1
private final javax.crypto.Cipher _c1
_c2
private final javax.crypto.Cipher _c2
_c3
private final javax.crypto.Cipher _c3
IV_SIZE
private static final int IV_SIZE
- See Also:
- Constant Field Values
_ivBuf
private byte[] _ivBuf
Constructor Detail |
TripleDESInnerCBC
public TripleDESInnerCBC()
Method Detail |
clone
public final java.lang.Object clone() throws java.lang.CloneNotSupportedException
- Always throws a CloneNotSupportedException (cloning of ciphers is not
supported for security reasons).
engineSetMode
protected final void engineSetMode(java.lang.String mode) throws java.security.NoSuchAlgorithmException
- Description copied from class:
javax.crypto.CipherSpi
- Set the mode in which this cipher is to run.
engineSetPadding
protected final void engineSetPadding(java.lang.String padding) throws javax.crypto.NoSuchPaddingException
- Description copied from class:
javax.crypto.CipherSpi
- Set the method with which the input is to be padded.
engineGetBlockSize
protected final int engineGetBlockSize()
- Description copied from class:
javax.crypto.CipherSpi
- Returns the block size of the underlying cipher.
engineGetKeySize
protected int engineGetKeySize(java.security.Key key) throws java.security.InvalidKeyException
- Description copied from class:
javax.crypto.CipherSpi
Return the length of the given key in bits.
For compatibility this method is not declared
abstract
, and the default implementation will throw an java.lang.UnsupportedOperationException. Concrete subclasses should override this method to return the correct value.
engineGetOutputSize
protected final int engineGetOutputSize(int len)
- Returns the length in bytes that an output buffer would need to be in
order to hold the result of the next update or doFinal operation, given
the input length
inputLen
(in bytes). This call takes into account any unprocessed (buffered) data from a previous update call(s), and padding. The actual output length of the nextupdate or doFinal
call may be smaller than the length returned by this method. For ciphers with a padding, calling the update method will generally return less data than predicted by this function.
engineGetIV
protected final byte[] engineGetIV()
- Returns a copy of the initialization vector (IV) used in this cipher.
engineGetParameters
protected final java.security.AlgorithmParameters engineGetParameters()
- Description copied from class:
javax.crypto.CipherSpi
- Returns the parameters that this cipher is using. This may be the
parameters used to initialize this cipher, or it may be parameters
that have been initialized with random values.
engineInit
protected final void engineInit(int opmode, java.security.Key key, java.security.SecureRandom random) throws java.security.InvalidKeyException
- Description copied from class:
javax.crypto.CipherSpi
- Initializes this cipher with an operation mode, key, and source of
randomness. If this cipher requires any other initializing data,
for example an initialization vector, then it should generate it
from the provided source of randomness.
engineInit
protected final void engineInit(int opmode, java.security.Key key, java.security.spec.AlgorithmParameterSpec params, java.security.SecureRandom random) throws java.security.InvalidKeyException, java.security.InvalidAlgorithmParameterException
- Description copied from class:
javax.crypto.CipherSpi
- Initializes this cipher with an operation mode, key, parameters,
and source of randomness. If this cipher requires any other
initializing data, for example an initialization vector, then it should
generate it from the provided source of randomness.
engineInit
protected final void engineInit(int opmode, java.security.Key key, java.security.AlgorithmParameters params, java.security.SecureRandom random) throws java.security.InvalidKeyException, java.security.InvalidAlgorithmParameterException
- Description copied from class:
javax.crypto.CipherSpi
- Initializes this cipher with an operation mode, key, parameters,
and source of randomness. If this cipher requires any other
initializing data, for example an initialization vector, then it should
generate it from the provided source of randomness.
engineUpdate
protected final int engineUpdate(byte[] in, int inOff, int inLen, byte[] out, int outOff) throws javax.crypto.ShortBufferException
- Description copied from class:
javax.crypto.CipherSpi
- Continue with a multi-part transformation, storing the transformed
bytes into the specified array.
engineUpdate
protected final byte[] engineUpdate(byte[] in, int inOff, int inLen)
- Description copied from class:
javax.crypto.CipherSpi
- Continue with a multi-part transformation, returning a new array of
the transformed bytes.
engineDoFinal
protected final int engineDoFinal(byte[] in, int inOff, int inLen, byte[] out, int outOff) throws javax.crypto.ShortBufferException, javax.crypto.IllegalBlockSizeException, javax.crypto.BadPaddingException
- Description copied from class:
javax.crypto.CipherSpi
- Finishes a multi-part transformation or transforms a portion of a
byte array, and stores the transformed bytes in the supplied array.
engineDoFinal
protected final byte[] engineDoFinal(byte[] in, int inOff, int inLen) throws javax.crypto.IllegalBlockSizeException, javax.crypto.BadPaddingException
- Implemented in terms of engineDoFinal(byte[], int, int, byte[], int)
|
|||||||||
Home >> All >> cryptix >> jce >> provider >> [ cipher overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |