sun.security.mule.krb5.internal.crypto
Class DesMacKCksumType
java.lang.Object
sun.security.mule.krb5.internal.crypto.CksumType
sun.security.mule.krb5.internal.crypto.DesMacKCksumType
public class DesMacKCksumType
- extends CksumType
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DesMacKCksumType
public DesMacKCksumType()
confounderSize
public int confounderSize()
- Specified by:
confounderSize in class CksumType
cksumType
public int cksumType()
- Specified by:
cksumType in class CksumType
isSafe
public boolean isSafe()
- Specified by:
isSafe in class CksumType
cksumSize
public int cksumSize()
- Specified by:
cksumSize in class CksumType
keyType
public int keyType()
- Specified by:
keyType in class CksumType
keySize
public int keySize()
- Specified by:
keySize in class CksumType
calculateChecksum
public byte[] calculateChecksum(byte[] data,
int size)
- Specified by:
calculateChecksum in class CksumType
calculateKeyedChecksum
public byte[] calculateKeyedChecksum(byte[] data,
int size,
byte[] key,
int usage)
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
verifyKeyedChecksum
public boolean verifyKeyedChecksum(byte[] data,
int size,
byte[] key,
byte[] checksum,
int usage)
throws KrbCryptoException
- Specified by:
verifyKeyedChecksum in class CksumType
- Throws:
KrbCryptoException
Copyright © 2013. All Rights Reserved.