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

public Class DesCbcCrcEType

extends DesCbcEType
Class Inheritance
Imports
sun.security.krb5.Checksum, .EncryptedData, .KrbCryptoException, sun.security.krb5.internal.*

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected byte[]
public int
public int
public int
public byte[]
decrypt(byte[]
the cipher text to be decrypted.
cipher
,
byte[]
the secret key to decrypt the data.
key
,
int usage)

Overrides sun.security.krb5.internal.crypto.DesCbcEType.decrypt.

Decrypts data with provided key using DES in CBC mode with CRC32.

public byte[]

Returns:

the buffer for cipher text.
encrypt
(byte[]
the data to be encrypted.
data
,
byte[]
the secret key to encrypt the data. It is also used as initialization vector during cipher block chaining.
key
,
int usage)

Overrides sun.security.krb5.internal.crypto.DesCbcEType.encrypt.

Encrypts data using DES in CBC mode with CRC32.

public int
public int
Inherited from sun.security.krb5.internal.crypto.DesCbcEType:
blockSizedecryptencryptisChecksumValidkeySizekeyType

Constructor Detail

DesCbcCrcETypeback to summary
public DesCbcCrcEType()

Method Detail

calculateChecksumback to summary
protected byte[] calculateChecksum(byte[] data, int size)

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

checksumSizeback to summary
public int checksumSize()

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

checksumTypeback to summary
public int checksumType()

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

confounderSizeback to summary
public int confounderSize()

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

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

Overrides sun.security.krb5.internal.crypto.DesCbcEType.decrypt.

Decrypts data with provided key using DES in CBC mode with CRC32.

Parameters
cipher:byte[]

the cipher text to be decrypted.

key:byte[]

the secret key to decrypt the data.

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

Overrides sun.security.krb5.internal.crypto.DesCbcEType.encrypt.

Encrypts data using DES in CBC mode with CRC32.

Parameters
data:byte[]

the data to be encrypted.

key:byte[]

the secret key to encrypt the data. It is also used as initialization vector during cipher block chaining.

Returns:byte[]

the buffer for cipher text.

eTypeback to summary
public int eType()

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

minimumPadSizeback to summary
public int minimumPadSize()

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