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

pack-priv abstract Class DesCbcEType

extends EType
Class Inheritance
Known Direct Subclasses
sun.security.krb5.internal.crypto.DesCbcCrcEType, sun.security.krb5.internal.crypto.DesCbcMd5EType
Imports
sun.security.krb5.Confounder, .KrbCryptoException, sun.security.krb5.internal.*

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public int
protected abstract byte[]
calculateChecksum(byte[] data, int size)

private byte[]
checksumField(byte[] data)

private void
copyChecksumField(byte[] data, byte[] cksum)

public byte[]
decrypt(byte[]
the input buffer.
cipher
,
byte[]
the key to decrypt the data.
key
,
int usage)

Implements abstract sun.security.krb5.internal.crypto.EType.decrypt.

Decrypts the data using DES in CBC mode.
public byte[]
decrypt(byte[]
the input buffer.
cipher
,
byte[]
the key to decrypt the data.
key
,
byte[]
initialization vector.
ivec
,
int usage)

Implements abstract sun.security.krb5.internal.crypto.EType.decrypt.

Decrypts the data using DES in CBC mode.
public byte[]

Returns:

the buffer for encrypted data.
encrypt
(byte[]
the buffer for plain text.
data
,
byte[]
the key to encrypt the data.
key
,
int usage)

Implements abstract sun.security.krb5.internal.crypto.EType.encrypt.

Encrypts the data using DES in CBC mode.
public byte[]

Returns:

buffer for encrypted data.
encrypt
(byte[]
the buffer for plain text.
data
,
byte[]
the key to encrypt the data.
key
,
byte[]
initialization vector.
ivec
,
int usage)

Implements abstract sun.security.krb5.internal.crypto.EType.encrypt.

Encrypts the data using DES in CBC mode.
private byte[]
generateChecksum(byte[] data)

private boolean
isChecksumEqual(byte[] cksum1, byte[] cksum2)

protected boolean
isChecksumValid(byte[] data)

public int
public int
private void
resetChecksumField(byte[] data)

Inherited from sun.security.krb5.internal.crypto.EType:
checksumSizechecksumTypeconfounderSizedataSizedecryptedDataeTypegetBuiltInDefaultsgetDefaultsgetDefaultsgetInstanceinitStaticisNewerisSupportedisSupportedminimumPadSizepadSizestartOfChecksumstartOfDatastartOfPadtoString

Constructor Detail

DesCbcETypeback to summary
pack-priv DesCbcEType()

Method Detail

blockSizeback to summary
public int blockSize()

Implements abstract sun.security.krb5.internal.crypto.EType.blockSize.

calculateChecksumback to summary
protected abstract byte[] calculateChecksum(byte[] data, int size) throws KrbCryptoException
checksumFieldback to summary
private byte[] checksumField(byte[] data)
copyChecksumFieldback to summary
private void copyChecksumField(byte[] data, byte[] cksum)
decryptback to summary
public byte[] decrypt(byte[] cipher, byte[] key, int usage) throws KrbApErrException, KrbCryptoException

Implements abstract sun.security.krb5.internal.crypto.EType.decrypt.

Decrypts the data using DES in CBC mode.

Parameters
cipher:byte[]

the input buffer.

key:byte[]

the key to decrypt the data.

decryptback to summary
public byte[] decrypt(byte[] cipher, byte[] key, byte[] ivec, int usage) throws KrbApErrException, KrbCryptoException

Implements abstract sun.security.krb5.internal.crypto.EType.decrypt.

Decrypts the data using DES in CBC mode.

Parameters
cipher:byte[]

the input buffer.

key:byte[]

the key to decrypt the data.

ivec:byte[]

initialization vector.

encryptback to summary
public byte[] encrypt(byte[] data, byte[] key, int usage) throws KrbCryptoException

Implements abstract sun.security.krb5.internal.crypto.EType.encrypt.

Encrypts the data using DES in CBC mode.

Parameters
data:byte[]

the buffer for plain text.

key:byte[]

the key to encrypt the data.

Returns:byte[]

the buffer for encrypted data.

encryptback to summary
public byte[] encrypt(byte[] data, byte[] key, byte[] ivec, int usage) throws KrbCryptoException

Implements abstract sun.security.krb5.internal.crypto.EType.encrypt.

Encrypts the data using DES in CBC mode.

Parameters
data:byte[]

the buffer for plain text.

key:byte[]

the key to encrypt the data.

ivec:byte[]

initialization vector.

Returns:byte[]

buffer for encrypted data.

generateChecksumback to summary
private byte[] generateChecksum(byte[] data) throws KrbCryptoException
isChecksumEqualback to summary
private boolean isChecksumEqual(byte[] cksum1, byte[] cksum2)
isChecksumValidback to summary
protected boolean isChecksumValid(byte[] data) throws KrbCryptoException
keySizeback to summary
public int keySize()

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

keyTypeback to summary
public int keyType()

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

resetChecksumFieldback to summary
private void resetChecksumField(byte[] data)