sun.security.mule.krb5.internal.crypto
Class RsaMd5CksumType

java.lang.Object
  extended by sun.security.mule.krb5.internal.crypto.CksumType
      extended by sun.security.mule.krb5.internal.crypto.RsaMd5CksumType

public final class RsaMd5CksumType
extends CksumType


Constructor Summary
RsaMd5CksumType()
           
 
Method Summary
 byte[] calculateChecksum(byte[] data, int size)
          Calculates checksum using MD5.
 byte[] calculateKeyedChecksum(byte[] data, int size, byte[] key, int usage)
           
 int cksumSize()
           
 int cksumType()
           
 int confounderSize()
           
 boolean isSafe()
           
 int keySize()
           
 int keyType()
           
 boolean verifyKeyedChecksum(byte[] data, int size, byte[] key, byte[] checksum, int usage)
           
 
Methods inherited from class sun.security.mule.krb5.internal.crypto.CksumType
getInstance, getInstance, isChecksumEqual
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RsaMd5CksumType

public RsaMd5CksumType()
Method Detail

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)
                         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

calculateKeyedChecksum

public byte[] calculateKeyedChecksum(byte[] data,
                                     int size,
                                     byte[] key,
                                     int usage)
                              throws KrbCryptoException
Specified by:
calculateKeyedChecksum in class CksumType
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.