public class

DesCbcCrcEType

extends EType
java.lang.Object
   ↳ sun.security.mule.krb5.internal.crypto.EType
     ↳ sun.security.mule.krb5.internal.crypto.DesCbcCrcEType

Summary

[Expand]
Inherited Fields
From class sun.security.mule.krb5.internal.crypto.EType
Public Constructors
DesCbcCrcEType()
Public Methods
int blockSize()
int checksumSize()
int checksumType()
int confounderSize()
byte[] decrypt(byte[] cipher, byte[] key, int usage)
Decrypts data with provided key using DES in CBC mode with CRC32.
byte[] decrypt(byte[] cipher, byte[] key, byte[] ivec, int usage)
Decrypts the data using DES in CBC mode.
int eType()
byte[] encrypt(byte[] data, byte[] key, int usage)
Encrypts data using DES in CBC mode with CRC32.
byte[] encrypt(byte[] data, byte[] key, byte[] ivec, int usage)
Encrypts the data using DES in CBC mode.
int keySize()
int keyType()
int minimumPadSize()
Protected Methods
byte[] calculateChecksum(byte[] data, int size)
boolean isChecksumValid(byte[] data)
[Expand]
Inherited Methods
From class sun.security.mule.krb5.internal.crypto.EType
From class java.lang.Object

Public Constructors

public DesCbcCrcEType ()

Public Methods

public int blockSize ()

public int checksumSize ()

public int checksumType ()

public int confounderSize ()

public byte[] decrypt (byte[] cipher, byte[] key, int usage)

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

Parameters
cipher The cipher text to be decrypted.
key The secret key to decrypt the data.
usage

public byte[] decrypt (byte[] cipher, byte[] key, byte[] ivec, int usage)

Decrypts the data using DES in CBC mode.

Parameters
cipher The input buffer.
key The key to decrypt the data.
ivec Initialization vector.
usage

public int eType ()

public byte[] encrypt (byte[] data, byte[] key, int usage)

Encrypts data using DES in CBC mode with CRC32.

Parameters
data The data to be encrypted.
key The secret key to encrypt the data. It is also used as initialization vector during cipher block chaining.
usage
Returns
  • the buffer for cipher text.

public byte[] encrypt (byte[] data, byte[] key, byte[] ivec, int usage)

Encrypts the data using DES in CBC mode.

Parameters
data The buffer for plain text.
key The key to encrypt the data.
ivec Initialization vector.
usage
Returns
  • buffer for encrypted data.

public int keySize ()

public int keyType ()

public int minimumPadSize ()

Protected Methods

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

Parameters
data
size

protected boolean isChecksumValid (byte[] data)

Parameters
data