public class

HmacSha1Aes256CksumType

extends CksumType
java.lang.Object
   ↳ sun.security.mule.krb5.internal.crypto.CksumType
     ↳ sun.security.mule.krb5.internal.crypto.HmacSha1Aes256CksumType

Summary

[Expand]
Inherited Fields
From class sun.security.mule.krb5.internal.crypto.CksumType
Public Constructors
HmacSha1Aes256CksumType()
Public Methods
byte[] calculateChecksum(byte[] data, int size)
byte[] calculateKeyedChecksum(byte[] data, int size, byte[] key, int usage)
Calculates keyed checksum.
int cksumSize()
int cksumType()
int confounderSize()
boolean isSafe()
int keySize()
int keyType()
boolean verifyKeyedChecksum(byte[] data, int size, byte[] key, byte[] checksum, int usage)
Verifies keyed checksum.
[Expand]
Inherited Methods
From class sun.security.mule.krb5.internal.crypto.CksumType
From class java.lang.Object

Public Constructors

public HmacSha1Aes256CksumType ()

Public Methods

public byte[] calculateChecksum (byte[] data, int size)

Parameters
data
size

public byte[] calculateKeyedChecksum (byte[] data, int size, byte[] key, int usage)

Calculates keyed checksum.

Parameters
data The data used to generate the checksum.
size Length of the data.
key The key used to encrypt the checksum.
usage
Returns
  • keyed checksum.

public int cksumSize ()

public int cksumType ()

public int confounderSize ()

public boolean isSafe ()

public int keySize ()

public int keyType ()

public boolean verifyKeyedChecksum (byte[] data, int size, byte[] key, byte[] checksum, int usage)

Verifies keyed checksum.

Parameters
data The data.
size The length of data.
key The key used to encrypt the checksum.
checksum
usage
Returns
  • true if verification is successful.