Package jcifs.smb1.util
Class DES
- java.lang.Object
-
- jcifs.smb1.util.DES
-
public class DES extends Object
This code is derived from the above source JCIFS API Norbert Hranitzkyand modified again by Michael B. Allen
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
decrypt(byte[] cipherText)
decrypts an array where the length must be a multiple of 8void
decrypt(byte[] cipherText, byte[] clearText)
byte[]
encrypt(byte[] clearText)
encrypts an array where the length must be a multiple of 8void
encrypt(byte[] clearText, byte[] cipherText)
static void
makeSMBKey(byte[] key7, byte[] key8)
void
setKey(byte[] key)
static void
spreadIntsToBytes(int[] inInts, int inOff, byte[] outBytes, int outOff, int intLen)
static void
squashBytesToInts(byte[] inBytes, int inOff, int[] outInts, int outOff, int intLen)
-
-
-
Method Detail
-
makeSMBKey
public static void makeSMBKey(byte[] key7, byte[] key8)
-
setKey
public void setKey(byte[] key)
-
encrypt
public void encrypt(byte[] clearText, byte[] cipherText)
-
decrypt
public void decrypt(byte[] cipherText, byte[] clearText)
-
encrypt
public byte[] encrypt(byte[] clearText)
encrypts an array where the length must be a multiple of 8
-
decrypt
public byte[] decrypt(byte[] cipherText)
decrypts an array where the length must be a multiple of 8
-
squashBytesToInts
public static void squashBytesToInts(byte[] inBytes, int inOff, int[] outInts, int outOff, int intLen)
-
spreadIntsToBytes
public static void spreadIntsToBytes(int[] inInts, int inOff, byte[] outBytes, int outOff, int intLen)
-
-