APIdia Launch Partner
Top Constructors Methods
sun.security.krb5.internal.crypto

public final Class RsaMd5DesCksumType

extends CksumType
Class Inheritance
Imports
sun.security.krb5.Checksum, .Confounder, .KrbCryptoException, sun.security.krb5.internal.*, javax.crypto.spec.DESKeySpec, java.security.MessageDigest, .InvalidKeyException

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.

private byte[]

Returns:

the checksum.
calculateRawChecksum
(byte[]
the data used to generate the checksum.
data
,
int
length of the data.
size
)

Calculates checksum using MD5.

public int
public int
public int
private byte[]

Returns:

the checksum.
decryptKeyedChecksum
(byte[]
the buffer for encrypted checksum.
enc_cksum
,
byte[]
the key.
key
)

Decrypts keyed checksum.

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

RsaMd5DesCksumTypeback to summary
public RsaMd5DesCksumType()

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.

calculateRawChecksumback to summary
private byte[] calculateRawChecksum(byte[] data, int size) throws KrbCryptoException

Calculates checksum using MD5.

Parameters
data:byte[]

the data used to generate the checksum.

size:int

length of the data.

Returns:byte[]

the 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.

decryptKeyedChecksumback to summary
private byte[] decryptKeyedChecksum(byte[] enc_cksum, byte[] key) throws KrbCryptoException

Decrypts keyed checksum.

Parameters
enc_cksum:byte[]

the buffer for encrypted checksum.

key:byte[]

the key.

Returns:byte[]

the checksum.

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.