public final class

DesCbcMd5EType

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

Summary

[Expand]
Inherited Fields
From class sun.security.mule.krb5.internal.crypto.EType
Public Constructors
DesCbcMd5EType()
Public Methods
int blockSize()
int checksumSize()
int checksumType()
int confounderSize()
byte[] decrypt(byte[] cipher, byte[] key, int usage)
Decrypts the data using DES in CBC mode.
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 the data using DES in CBC mode.
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)
Calculates checksum using MD5.
boolean isChecksumValid(byte[] data)
[Expand]
Inherited Methods
From class sun.security.mule.krb5.internal.crypto.EType
From class java.lang.Object

Public Constructors

public DesCbcMd5EType ()

Public Methods

public int blockSize ()

public int checksumSize ()

public int checksumType ()

public int confounderSize ()

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

Decrypts the data using DES in CBC mode.

Parameters
cipher The input buffer.
key The 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 the data using DES in CBC mode.

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

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)

Calculates checksum using MD5.

Parameters
data The input data.
size The length of data.
Returns
  • the checksum.

protected boolean isChecksumValid (byte[] data)

Parameters
data