com.ibm.security.krb5.internal.crypto
Class DesCbcCrcEType
- java.lang.Object
com.ibm.security.krb5.internal.crypto.EType
com.ibm.security.krb5.internal.crypto.DesCbcEType
com.ibm.security.krb5.internal.crypto.DesCbcCrcEType
- public class DesCbcCrcEType
- extends DesCbcEType
Constructor Summary
| Constructor and Description |
|---|
DesCbcCrcEType()
|
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
calculateChecksum(byte[] data,int size)
|
|
checksumSize()
|
|
checksumType()
|
|
confounderSize()
|
|
decrypt(byte[] cipher,byte[] key)
Decrypts data with provided key using DES in CBC mode with CRC32.
|
|
decrypt(byte[] cipher,byte[] key,int usage)
|
|
encrypt(byte[] data,byte[] key)
Encrypts data using DES in CBC mode with CRC32.
|
|
encrypt(byte[] data,byte[] key,int usage)
|
|
eType()
|
|
minimumPadSize()
|
| Methods inherited from class com.ibm.security.krb5.internal.crypto.DesCbcEType |
|---|
blockSize, decrypt, encrypt, keySize, keyType |
| Methods inherited from class com.ibm.security.krb5.internal.crypto.EType |
|---|
checksumField, copyChecksumField, dataSize, decrypt, decryptedData, encrypt, generateChecksum, getBuiltInDefaults, getDefaults, getDefaults, getInstance, getInstance, isChecksumEqual, isChecksumValid, isSupported, isSupported, padSize, resetChecksumField, setChecksum, startOfChecksum, startOfData, startOfPad, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail
DesCbcCrcEType
- public DesCbcCrcEType()
Method Detail
eType
- public int eType()
DOCUMENT ME!
Returns:
DOCUMENT ME!
minimumPadSize
- public int minimumPadSize()
Description copied from class:
EType
DOCUMENT ME!
Specified by:
minimumPadSize in class EType
Returns:
DOCUMENT ME!
confounderSize
- public int confounderSize()
Description copied from class:
EType
DOCUMENT ME!
Specified by:
confounderSize in class EType
Returns:
DOCUMENT ME!
checksumType
- public int checksumType()
Description copied from class:
EType
DOCUMENT ME!
Specified by:
checksumType in class EType
Returns:
DOCUMENT ME!
checksumSize
- public int checksumSize()
Description copied from class:
EType
DOCUMENT ME!
Specified by:
checksumSize in class EType
Returns:
DOCUMENT ME!
encrypt
- public byte[] encrypt(byte[] data,
- byte[] key)
- throws KrbCryptoException
Encrypts data using DES in CBC mode with CRC32.
Overrides:
encrypt in class DesCbcEType
Parameters:
data - the data to be encrypted. key - the secret key to encrypt the data. It is also used as initialization vector during cipher block chaining. Returns:
the buffer for cipher text.
Throws:
KrbCryptoException - DOCUMENT ME! decrypt
- public void decrypt(byte[] cipher,
- byte[] key)
- throws KrbApErrException
- KrbCryptoException
Decrypts data with provided key using DES in CBC mode with CRC32.
Overrides:
decrypt in class DesCbcEType
Parameters:
cipher - the cipher text to be decrypted. key - the secret key to decrypt the data. Throws:
KrbApErrException - DOCUMENT ME! KrbCryptoException - DOCUMENT ME! calculateChecksum
- public byte[] calculateChecksum( byte[] data,
- int size)
Description copied from class:
EType
DOCUMENT ME!
Specified by:
calculateChecksum in class EType
Parameters:
data - DOCUMENT ME! size - DOCUMENT ME! Returns:
DOCUMENT ME!
decrypt
- public void decrypt(byte[] cipher,
- byte[] key,
- int usage)
- throws KrbApErrException
- KrbCryptoException
Description copied from class:
EType
Decrypts the input cipher text using the specified key and ignoring the
usage parameter.
Overrides:
decrypt in class DesCbcEType
Parameters:
cipher - the cipher text to be decrypted. key - the key to use for the decryption. usage - key derivation constant; ignored. Throws:
encrypt
- public byte[] encrypt(byte[] data,
- byte[] key,
- int usage)
- throws KrbCryptoException
Description copied from class:
EType
Enciphers the input data using the specified key and ignoring the usage
parameter.
Overrides:
encrypt in class DesCbcEType
Parameters:
data - the data to be encrypted. key - the key to use to encipher the data. usage - key derivation constant; ignored. Returns:
DOCUMENT ME!
Throws:
EType