public class DesCipher
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static int[] |
bigbyte |
private static byte[] |
bytebit |
private int[] |
decryptKeys |
private int[] |
encryptKeys |
private static byte[] |
pc1 |
private static byte[] |
pc2 |
private static int[] |
SP1 |
private static int[] |
SP2 |
private static int[] |
SP3 |
private static int[] |
SP4 |
private static int[] |
SP5 |
private static int[] |
SP6 |
private static int[] |
SP7 |
private static int[] |
SP8 |
private int[] |
tempInts |
private static int[] |
totrot |
Constructor and Description |
---|
DesCipher(byte[] key) |
Modifier and Type | Method and Description |
---|---|
private void |
cookey(int[] raw,
int[] KnL) |
void |
decrypt(byte[] cipherText,
int cipherOff,
byte[] clearText,
int clearOff) |
private void |
des(int[] inInts,
int[] outInts,
int[] keys) |
private void |
deskey(byte[] keyBlock,
boolean encrypting,
int[] KnL) |
void |
encrypt(byte[] clearText,
int clearOff,
byte[] cipherText,
int cipherOff) |
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) |
private int[] encryptKeys
private int[] decryptKeys
private int[] tempInts
private static byte[] bytebit
private static int[] bigbyte
private static byte[] pc1
private static int[] totrot
private static byte[] pc2
private static int[] SP1
private static int[] SP2
private static int[] SP3
private static int[] SP4
private static int[] SP5
private static int[] SP6
private static int[] SP7
private static int[] SP8
public static void spreadIntsToBytes(int[] inInts, int inOff, byte[] outBytes, int outOff, int intLen)
public static void squashBytesToInts(byte[] inBytes, int inOff, int[] outInts, int outOff, int intLen)
private void cookey(int[] raw, int[] KnL)
public void decrypt(byte[] cipherText, int cipherOff, byte[] clearText, int clearOff)
private void des(int[] inInts, int[] outInts, int[] keys)
private void deskey(byte[] keyBlock, boolean encrypting, int[] KnL)
public void encrypt(byte[] clearText, int clearOff, byte[] cipherText, int cipherOff)
public void setKey(byte[] key)