jcifs.util

Class DES

public class DES extends Object

This code is derived from the above source JCIFS API Norbert Hranitzky

and modified again by Michael B. Allen

Constructor Summary
DES()
DES(byte[] key)
Method Summary
voiddecrypt(byte[] cipherText, byte[] clearText)
byte[]decrypt(byte[] cipherText)
decrypts an array where the length must be a multiple of 8
voidencrypt(byte[] clearText, byte[] cipherText)
byte[]encrypt(byte[] clearText)
encrypts an array where the length must be a multiple of 8
static voidmakeSMBKey(byte[] key7, byte[] key8)
voidsetKey(byte[] key)
static voidspreadIntsToBytes(int[] inInts, int inOff, byte[] outBytes, int outOff, int intLen)
static voidsquashBytesToInts(byte[] inBytes, int inOff, int[] outInts, int outOff, int intLen)

Constructor Detail

DES

public DES()

DES

public DES(byte[] key)

Method Detail

decrypt

public void decrypt(byte[] cipherText, byte[] clearText)

decrypt

public byte[] decrypt(byte[] cipherText)
decrypts an array where the length must be a multiple of 8

encrypt

public void encrypt(byte[] clearText, byte[] cipherText)

encrypt

public byte[] encrypt(byte[] clearText)
encrypts an array where the length must be a multiple of 8

makeSMBKey

public static void makeSMBKey(byte[] key7, byte[] key8)

setKey

public void setKey(byte[] key)

spreadIntsToBytes

public static void spreadIntsToBytes(int[] inInts, int inOff, byte[] outBytes, int outOff, int intLen)

squashBytesToInts

public static void squashBytesToInts(byte[] inBytes, int inOff, int[] outInts, int outOff, int intLen)