Top Constructors Methods
sun.security.krb5.internal.crypto

public Class HmacSha2Aes128CksumType

extends CksumType
Class Inheritance
Imports
sun.security.krb5.Checksum, .KrbCryptoException, sun.security.krb5.internal.*, java.security.GeneralSecurityException

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public byte[]

Returns:

keyed checksum.
calculateChecksum
(byte[]
the data used to generate the checksum.
data
,
int
length of the data.
size
,
byte[]
the key used to encrypt the checksum.
key
,
int usage)

Implements abstract sun.security.krb5.internal.crypto.CksumType.calculateChecksum.

Calculates keyed checksum.

public int
public int
public int
public boolean
public int
public int
public boolean

Returns:

true if verification is successful.
verifyChecksum
(byte[]
the data.
data
,
int
the length of data.
size
,
byte[]
the key used to encrypt the checksum.
key
,
byte[]
the checksum.
checksum
,
int usage)

Implements abstract sun.security.krb5.internal.crypto.CksumType.verifyChecksum.

Verifies keyed checksum.

Inherited from sun.security.krb5.internal.crypto.CksumType:
getInstanceisChecksumEqual

Constructor Detail

HmacSha2Aes128CksumTypeback to summary
public HmacSha2Aes128CksumType()

Method Detail

calculateChecksumback to summary
public byte[] calculateChecksum(byte[] data, int size, byte[] key, int usage) throws KrbCryptoException

Implements abstract sun.security.krb5.internal.crypto.CksumType.calculateChecksum.

Calculates keyed checksum.

Parameters
data:byte[]

the data used to generate the checksum.

size:int

length of the data.

key:byte[]

the key used to encrypt the checksum.

Returns:byte[]

keyed checksum.

cksumSizeback to summary
public int cksumSize()

Implements abstract sun.security.krb5.internal.crypto.CksumType.cksumSize.

cksumTypeback to summary
public int cksumType()

Implements abstract sun.security.krb5.internal.crypto.CksumType.cksumType.

confounderSizeback to summary
public int confounderSize()

Implements abstract sun.security.krb5.internal.crypto.CksumType.confounderSize.

isKeyedback to summary
public boolean isKeyed()

Implements abstract sun.security.krb5.internal.crypto.CksumType.isKeyed.

keySizeback to summary
public int keySize()

Implements abstract sun.security.krb5.internal.crypto.CksumType.keySize.

keyTypeback to summary
public int keyType()

Implements abstract sun.security.krb5.internal.crypto.CksumType.keyType.

verifyChecksumback to summary
public boolean verifyChecksum(byte[] data, int size, byte[] key, byte[] checksum, int usage) throws KrbCryptoException

Implements abstract sun.security.krb5.internal.crypto.CksumType.verifyChecksum.

Verifies keyed checksum.

Parameters
data:byte[]

the data.

size:int

the length of data.

key:byte[]

the key used to encrypt the checksum.

checksum:byte[]

the checksum.

Returns:boolean

true if verification is successful.