com.ibm.security.krb5.internal.crypto

Class RsaMd5DesCksumType

  1. java.lang.Object
  2. extended bycom.ibm.security.krb5.internal.crypto.CksumType
  3. extended bycom.ibm.security.krb5.internal.crypto.RsaMd5DesCksumType

  1. public final class RsaMd5DesCksumType
  2. extends CksumType

Constructor Summary

Constructor and Description
RsaMd5DesCksumType()

Method Summary

Modifier and Type Method and Description
  1. byte[]
calculateChecksum(byte[] data,int size)
Calculates checksum using MD5.
  1. byte[]
calculateKeyedChecksum(byte[] data,int size,byte[] key)
Calculates keyed checksum.
  1. int
cksumSize()
  1. int
cksumType()
  1. int
confounderSize()
  1. boolean
isSafe()
  1. int
keySize()
  1. int
keyType()
  1. boolean
verifyKeyedChecksum(byte[] data,int size,byte[] key,byte[] checksum)
Verifies keyed checksum.
Methods inherited from class com.ibm.security.krb5.internal.crypto.CksumType
calculateKeyedChecksum, getInstance, getInstance, isChecksumEqual, verifyKeyedChecksum
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

RsaMd5DesCksumType

  1. public RsaMd5DesCksumType()

Method Detail

confounderSize

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

cksumType

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

isSafe

  1. public boolean isSafe()
Description copied from class: CksumType
DOCUMENT ME!
Specified by:
isSafe in class CksumType
Returns:
DOCUMENT ME!

cksumSize

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

keyType

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

keySize

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

calculateKeyedChecksum

  1. public byte[] calculateKeyedChecksum( byte[] data,
  2. int size,
  3. byte[] key)
  4. throws KrbCryptoException
Calculates keyed checksum.
Specified by:
Parameters:
data - the data used to generate the checksum.
size - length of the data.
key - the key used to encrypt the checksum.
Returns:
keyed checksum.
Throws:
KrbCryptoException - DOCUMENT ME!

verifyKeyedChecksum

  1. public boolean verifyKeyedChecksum( byte[] data,
  2. int size,
  3. byte[] key,
  4. byte[] checksum)
  5. throws KrbCryptoException
Verifies keyed checksum.
Specified by:
Parameters:
data - the data.
size - the length of data.
key - the key used to encrypt the checksum.
checksum -
Returns:
true if verification is successful.
Throws:
KrbCryptoException - DOCUMENT ME!

calculateChecksum

  1. public byte[] calculateChecksum( byte[] data,
  2. int size)
  3. throws KrbCryptoException
Calculates checksum using MD5.
Specified by:
Parameters:
data - the data used to generate the checksum.
size - length of the data.
Returns:
the checksum.
Throws:
KrbCryptoException - DOCUMENT ME!