com.ibm.security.krb5.internal.crypto
Class RsaMd5DesCksumType
- java.lang.Object
com.ibm.security.krb5.internal.crypto.CksumType
com.ibm.security.krb5.internal.crypto.RsaMd5DesCksumType
- public final class RsaMd5DesCksumType
- extends CksumType
Constructor Summary
Constructor and Description |
---|
RsaMd5DesCksumType()
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
calculateChecksum(byte[] data,int size)
Calculates checksum using MD5.
|
|
calculateKeyedChecksum(byte[] data,int size,byte[] key)
Calculates keyed checksum.
|
|
cksumSize()
|
|
cksumType()
|
|
confounderSize()
|
|
isSafe()
|
|
keySize()
|
|
keyType()
|
|
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
- public RsaMd5DesCksumType()
Method Detail
confounderSize
- public int confounderSize()
DOCUMENT ME!
Specified by:
confounderSize
in class CksumType
Returns:
DOCUMENT ME!
cksumType
- public int cksumType()
Description copied from class:
CksumType
DOCUMENT ME!
Returns:
DOCUMENT ME!
isSafe
- public boolean isSafe()
Description copied from class:
CksumType
DOCUMENT ME!
Returns:
DOCUMENT ME!
cksumSize
- public int cksumSize()
Description copied from class:
CksumType
DOCUMENT ME!
Returns:
DOCUMENT ME!
keyType
- public int keyType()
Description copied from class:
CksumType
DOCUMENT ME!
Returns:
DOCUMENT ME!
keySize
- public int keySize()
Description copied from class:
CksumType
DOCUMENT ME!
Returns:
DOCUMENT ME!
calculateKeyedChecksum
- public byte[] calculateKeyedChecksum( byte[] data,
- int size,
- byte[] key)
- throws KrbCryptoException
Calculates keyed checksum.
Specified by:
calculateKeyedChecksum
in class CksumType
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
- public boolean verifyKeyedChecksum( byte[] data,
- int size,
- byte[] key,
- byte[] checksum)
- throws KrbCryptoException
Verifies keyed checksum.
Specified by:
verifyKeyedChecksum
in class CksumType
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
- public byte[] calculateChecksum( byte[] data,
- int size)
- throws KrbCryptoException
Calculates checksum using MD5.
Specified by:
calculateChecksum
in class CksumType
Parameters:
data
- the data used to generate the checksum. size
- length of the data. Returns:
the checksum.
Throws:
KrbCryptoException
- DOCUMENT ME!
CksumType