com.ibm.security.krb5.internal.crypto

Class DesCbcEType

  1. java.lang.Object
  2. extended bycom.ibm.security.krb5.internal.crypto.EType
  3. extended bycom.ibm.security.krb5.internal.crypto.DesCbcEType
Direct known subclasses:
DesCbcCrcEType, DesCbcMd5EType

  1. public abstract class DesCbcEType
  2. extends EType

Constructor Summary

Constructor and Description
DesCbcEType()

Method Summary

Modifier and Type Method and Description
  1. int
blockSize()
  1. void
decrypt(byte[] cipher,byte[] key)
Decrypts the data using DES in CBC mode.
  1. void
decrypt(byte[] cipher,byte[] key,byte[] ivec)
Decrypts the data using DES in CBC mode.
  1. void
decrypt(byte[] cipher,byte[] key,int usage)
  1. byte[]
encrypt(byte[] data,byte[] key)
Encrypts the data using DES in CBC mode.
  1. byte[]
encrypt(byte[] data,byte[] key,byte[] ivec)
Encrypts the data using DES in CBC mode.
  1. byte[]
encrypt(byte[] cipher,byte[] key,int usage)
  1. int
keySize()
  1. int
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

  1. public DesCbcEType()

Method Detail

blockSize

  1. public int blockSize()
Description copied from class: EType
DOCUMENT ME!
Specified by:
blockSize in class EType
Returns:
DOCUMENT ME!

keyType

  1. public int keyType()
Description copied from class: EType
DOCUMENT ME!
Specified by:
keyType in class EType
Returns:
DOCUMENT ME!

keySize

  1. public int keySize()
Description copied from class: EType
DOCUMENT ME!
Specified by:
keySize in class EType
Returns:
DOCUMENT ME!

encrypt

  1. public byte[] encrypt(byte[] data,
  2. byte[] key)
  3. throws KrbCryptoException
Encrypts the data using DES in CBC mode.
Specified by:
encrypt in class EType
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

  1. public byte[] encrypt(byte[] data,
  2. byte[] key,
  3. byte[] ivec)
  4. throws KrbCryptoException
Encrypts the data using DES in CBC mode.
Specified by:
encrypt in class EType
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

  1. public void decrypt(byte[] cipher,
  2. byte[] key)
  3. throws KrbApErrException
  4. KrbCryptoException
Decrypts the data using DES in CBC mode.
Specified by:
decrypt in class EType
Parameters:
cipher - the input buffer.
key - the key to decrypt the data.
Throws:
KrbApErrException - DOCUMENT ME!
KrbCryptoException - DOCUMENT ME!

decrypt

  1. public void decrypt(byte[] cipher,
  2. byte[] key,
  3. byte[] ivec)
  4. throws KrbApErrException
  5. KrbCryptoException
Decrypts the data using DES in CBC mode.
Specified by:
decrypt in class EType
Parameters:
cipher - the input buffer.
key - the key to decrypt the data.
ivec - initialization vector.
Throws:
KrbApErrException - DOCUMENT ME!
KrbCryptoException - DOCUMENT ME!

decrypt

  1. public void decrypt(byte[] cipher,
  2. byte[] key,
  3. int usage)
  4. throws KrbApErrException
  5. KrbCryptoException
Description copied from class: EType
Decrypts the input cipher text using the specified key and ignoring the usage parameter.
Overrides:
decrypt in class EType
Parameters:
cipher - the cipher text to be decrypted.
key - the key to use for the decryption.
usage - key derivation constant; ignored.
Throws:

encrypt

  1. public byte[] encrypt(byte[] cipher,
  2. byte[] key,
  3. int usage)
  4. throws KrbCryptoException
Description copied from class: EType
Enciphers the input data using the specified key and ignoring the usage parameter.
Overrides:
encrypt in class EType
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: