com.ibm.security.krb5.internal.crypto
Class DesCbcEType
- java.lang.Object
com.ibm.security.krb5.internal.crypto.EType
com.ibm.security.krb5.internal.crypto.DesCbcEType
Direct known subclasses:
- public abstract class DesCbcEType
- extends EType
Constructor Summary
Constructor and Description |
---|
DesCbcEType()
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
blockSize()
|
|
decrypt(byte[] cipher,byte[] key)
Decrypts the data using DES in CBC mode.
|
|
decrypt(byte[] cipher,byte[] key,byte[] ivec)
Decrypts the data using DES in CBC mode.
|
|
decrypt(byte[] cipher,byte[] key,int usage)
|
|
encrypt(byte[] data,byte[] key)
Encrypts the data using DES in CBC mode.
|
|
encrypt(byte[] data,byte[] key,byte[] ivec)
Encrypts the data using DES in CBC mode.
|
|
encrypt(byte[] cipher,byte[] key,int usage)
|
|
keySize()
|
|
keyType()
|
Methods inherited from class com.ibm.security.krb5.internal.crypto.EType |
---|
calculateChecksum, checksumField, checksumSize, checksumType, confounderSize, copyChecksumField, dataSize, decrypt, decryptedData, encrypt, eType, generateChecksum, getBuiltInDefaults, getDefaults, getDefaults, getInstance, getInstance, isChecksumEqual, isChecksumValid, isSupported, isSupported, minimumPadSize, 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
DesCbcEType
- public DesCbcEType()
Method Detail
blockSize
- public int blockSize()
DOCUMENT ME!
Returns:
DOCUMENT ME!
keyType
- public int keyType()
Description copied from class:
EType
DOCUMENT ME!
Returns:
DOCUMENT ME!
keySize
- public int keySize()
Description copied from class:
EType
DOCUMENT ME!
Returns:
DOCUMENT ME!
encrypt
- public byte[] encrypt(byte[] data,
- byte[] key)
- throws KrbCryptoException
Encrypts the data using DES in CBC mode.
Parameters:
data
- the buffer for plain text. key
- the key to encrypt the data. Returns:
the buffer for encrypted data.
Throws:
KrbCryptoException
- DOCUMENT ME! encrypt
- public byte[] encrypt(byte[] data,
- byte[] key,
- byte[] ivec)
- throws KrbCryptoException
Encrypts the data using DES in CBC mode.
Parameters:
data
- the buffer for plain text. key
- the key to encrypt the data. ivec
- initialization vector. Returns:
buffer for encrypted data.
Throws:
KrbCryptoException
- DOCUMENT ME! decrypt
- public void decrypt(byte[] cipher,
- byte[] key)
- throws KrbApErrException
- KrbCryptoException
Decrypts the data using DES in CBC mode.
Parameters:
cipher
- the input buffer. key
- the key to decrypt the data. Throws:
KrbApErrException
- DOCUMENT ME! KrbCryptoException
- DOCUMENT ME! decrypt
- public void decrypt(byte[] cipher,
- byte[] key,
- byte[] ivec)
- throws KrbApErrException
- KrbCryptoException
Decrypts the data using DES in CBC mode.
Parameters:
cipher
- the input buffer. key
- the key to decrypt the data. ivec
- initialization vector. Throws:
KrbApErrException
- DOCUMENT ME! KrbCryptoException
- 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.
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[] cipher,
- byte[] key,
- int usage)
- throws KrbCryptoException
Description copied from class:
EType
Enciphers the input data using the specified key and ignoring the usage
parameter.
Parameters:
cipher
- the data to be encrypted. key
- the key to use to encipher the data. usage
- key derivation constant; ignored. Returns:
DOCUMENT ME!
Throws:
EType