com.ibm.security.krb5.internal.crypto
Class DesMacCksumType
- java.lang.Object
com.ibm.security.krb5.internal.crypto.CksumType
com.ibm.security.krb5.internal.crypto.DesMacCksumType
- public class DesMacCksumType
- extends CksumType
Constructor Summary
| Constructor and Description |
|---|
DesMacCksumType()
|
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
calculateChecksum(byte[] data,int size)
|
|
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
DesMacCksumType
- public DesMacCksumType()
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!
calculateChecksum
- public byte[] calculateChecksum( byte[] data,
- int size)
Description copied from class:
CksumType
DOCUMENT ME!
Specified by:
calculateChecksum in class CksumType
Parameters:
data - DOCUMENT ME! size - 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!
CksumType