public class Cast128Cipher extends BlockCipher
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
CIPHER_NAME
The JCE name of this cipher.
|
protected static java.util.Hashtable |
cipherModePaddingMechansims_
The mapping from mode + "/" + padding to the cryptoki mechanism for IDEA.
|
protected static iaik.pkcs.pkcs11.Mechanism |
DEFAULT_MECHANISM
The defualt mechanism for this cipher.
|
DEFAULT_MODE, DEFAULT_PADDING, externalPadding_, externalPaddings_, ivParameterSpec_, ivParameterSpecChanged_, modePaddingMechanisms_, supportedModes_, supportedPaddings_
currentKeyIsSoftwareKey_, DUMMY_DATA, initialized_, key_, keyObject_, mechanism_, mode_, modeChanged_, operationMode_, padding_, paddingChanged_, parameters_, parameterSpecs_, pkcs11OperationInitialized_, session_, softwareDelegate_, tokenManager_, unwrapTemplate_, updateUsed_, usedMechanismInfos_, usedMechanisms_
Constructor and Description |
---|
Cast128Cipher()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkKeyObject(iaik.pkcs.pkcs11.objects.Key keyObject)
Check the given key object, if it is acceptable for this cipher.
|
protected java.lang.String |
getAlgorithmName()
Get the JCE name of this cipher algorithm.
|
protected iaik.pkcs.pkcs11.Mechanism |
getDefaultMechanism()
Get the default mechanism of this cipher.
|
protected java.util.Hashtable |
getModePaddingMechanisms()
Get the hashtable that maps from mode + "/" + padding to the cryptoki mechanism.
|
protected iaik.pkcs.pkcs11.Mechanism[] |
getUsedMechanisms()
Returns an array of Mechanisms that this engine class uses.
|
protected int |
pkcs11GetBlockSize()
Get the block size of this cipher algorithm.
|
protected int |
pkcs11GetKeySize(java.security.Key key)
Determines the key size in bits.
|
protected int |
pkcs11GetOutputSize(int inputLen)
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).
|
getDefaultMode, getDefaultPadding, getMechanism, getMechanismForModeAndPadding, getUsedMechanismFeatures, isExternalPaddingSupported, isModeSupported, isPaddingSupported, pkcs11DoFinal, pkcs11GetIV, pkcs11GetParameters, pkcs11Init, pkcs11Init, pkcs11Update
engineDoFinal, engineDoFinal, engineGetBlockSize, engineGetIV, engineGetKeySize, engineGetOutputSize, engineGetParameters, engineInit, engineInit, engineInit, engineSetMode, engineSetPadding, engineUnwrap, engineUpdate, engineUpdate, engineUpdateAAD, engineWrap, finalize, finalizePkcs11Operation, getFullAlgorithmName, initialize, initializePkcs11Operation, initializeSession, initializeSoftwareDelegate, isSupportedBy, pkcs11DoFinal, pkcs11Init, pkcs11Unwrap, pkcs11Update, pkcs11Wrap, updateAAD, updateAAD, updateAAD
protected static final java.lang.String CIPHER_NAME
protected static final iaik.pkcs.pkcs11.Mechanism DEFAULT_MECHANISM
protected static java.util.Hashtable cipherModePaddingMechansims_
protected iaik.pkcs.pkcs11.Mechanism[] getUsedMechanisms()
getRequiredMechanismFeatures()
method.getUsedMechanisms
in class PKCS11Cipher
getUsedMechanismFeatures()
. May be empty, but must not be null.protected void checkKeyObject(iaik.pkcs.pkcs11.objects.Key keyObject) throws java.security.InvalidKeyException
checkKeyObject
in class BlockCipher
keyObject
- The key object to check.java.security.InvalidKeyException
- If this cipher cannot work with this type of key object.protected java.lang.String getAlgorithmName()
getAlgorithmName
in class PKCS11Cipher
protected java.util.Hashtable getModePaddingMechanisms()
getModePaddingMechanisms
in class BlockCipher
protected iaik.pkcs.pkcs11.Mechanism getDefaultMechanism()
getDefaultMechanism
in class BlockCipher
protected int pkcs11GetOutputSize(int inputLen)
pkcs11GetOutputSize
in class PKCS11Cipher
inputLen
- The length of the input data in bytes.protected int pkcs11GetKeySize(java.security.Key key) throws java.security.InvalidKeyException
pkcs11GetKeySize
in class BlockCipher
key
- The key to get the length for.java.security.InvalidKeyException
- If the given key is not supported by this class.protected int pkcs11GetBlockSize()
pkcs11GetBlockSize
in class BlockCipher
IAIK JavaSecurity Website https://jce.iaik.tugraz.at/
IAIK at Graz University of Technology, Austria, Europe
Copyright 2001-2023 IAIK, Graz University of Technology, Inffeldgasse 16a, 8010 Graz, Austria. All Rights Reserved. Version 1.9.4