com.ibm.security.krb5.internal.crypto

Class DesCbcCrcEType

  1. java.lang.Object
  2. extended bycom.ibm.security.krb5.internal.crypto.EType
  3. extended bycom.ibm.security.krb5.internal.crypto.DesCbcEType
  4. extended bycom.ibm.security.krb5.internal.crypto.DesCbcCrcEType

  1. public class DesCbcCrcEType
  2. extends DesCbcEType

Constructor Summary

Constructor and Description
DesCbcCrcEType()

Method Summary

Modifier and Type Method and Description
  1. byte[]
calculateChecksum(byte[] data,int size)
  1. int
checksumSize()
  1. int
checksumType()
  1. int
confounderSize()
  1. void
decrypt(byte[] cipher,byte[] key)
Decrypts data with provided key using DES in CBC mode with CRC32.
  1. void
decrypt(byte[] cipher,byte[] key,int usage)
  1. byte[]
encrypt(byte[] data,byte[] key)
Encrypts data using DES in CBC mode with CRC32.
  1. byte[]
encrypt(byte[] data,byte[] key,int usage)
  1. int
eType()
  1. int
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

  1. public DesCbcCrcEType()

Method Detail

eType

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

minimumPadSize

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

confounderSize

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

checksumType

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

checksumSize

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

encrypt

  1. public byte[] encrypt(byte[] data,
  2. byte[] key)
  3. 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

  1. public void decrypt(byte[] cipher,
  2. byte[] key)
  3. throws KrbApErrException
  4. 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

  1. public byte[] calculateChecksum( byte[] data,
  2. int size)
Description copied from class: EType
DOCUMENT ME!
Specified by:
Parameters:
data - DOCUMENT ME!
size - DOCUMENT ME!
Returns:
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 DesCbcEType
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[] data,
  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 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: