Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.neuron.jaffer
Class DES  view DES download DES.java

java.lang.Object
  extended bycom.neuron.jaffer.DES

public final class DES
extends java.lang.Object


Nested Class Summary
static class DES.Schedule
           
private static class DES.Stage
           
 
Field Summary
private static byte[] bCD_KS
           
private static byte[] bK_C
           
private static byte[] bK_D
           
private static int built
           
private static int[][] hKS_C4
           
private static int[][] lKS_D4
           
private static byte[] P
           
private static byte[] preshift
           
private static byte[][] S
           
private  DES.Schedule schedule
           
private static int[][] wC_K3
           
private static int[][] wC_K4
           
private static int[][] wD_K3
           
private static int[][] wD_K4
           
private static int[] wL_I8
           
private static int[] wO_L4
           
private static int[][] wPS
           
 
Constructor Summary
DES(byte[] key)
           
 
Method Summary
private static void buildtables()
           
private static int choice2(int[][] b, int v)
           
 void decrypt(byte[] b)
           
static void decrypt(DES.Schedule s, byte[] b)
           
 void encrypt(byte[] b)
           
static void encrypt(DES.Schedule s, byte[] b)
           
private static void fencrypt(byte[] block, boolean decrypt, DES.Schedule ks)
           
private static int FP(int L, int R, int k)
           
private static void fsetkey(byte[] key, DES.Schedule ks)
           
static DES.Schedule genSchedule(byte[] key)
           
private static byte[] longToBytes(long l)
           
static void main(java.lang.String[] args)
           
private static void printBytes(java.lang.String hdr, byte[] data)
           
private static int PS(int i, int j)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

schedule

private DES.Schedule schedule

built

private static int built

bK_C

private static final byte[] bK_C

bK_D

private static final byte[] bK_D

wC_K4

private static int[][] wC_K4

wC_K3

private static int[][] wC_K3

wD_K4

private static int[][] wD_K4

wD_K3

private static int[][] wD_K3

preshift

private static byte[] preshift

bCD_KS

private static byte[] bCD_KS

hKS_C4

private static int[][] hKS_C4

lKS_D4

private static int[][] lKS_D4

wL_I8

private static int[] wL_I8

wO_L4

private static int[] wO_L4

wPS

private static int[][] wPS

P

private static byte[] P

S

private static byte[][] S
Constructor Detail

DES

public DES(byte[] key)
Method Detail

encrypt

public void encrypt(byte[] b)

decrypt

public void decrypt(byte[] b)

main

public static void main(java.lang.String[] args)

genSchedule

public static DES.Schedule genSchedule(byte[] key)

encrypt

public static void encrypt(DES.Schedule s,
                           byte[] b)

decrypt

public static void decrypt(DES.Schedule s,
                           byte[] b)

buildtables

private static void buildtables()

longToBytes

private static byte[] longToBytes(long l)

printBytes

private static void printBytes(java.lang.String hdr,
                               byte[] data)

fsetkey

private static void fsetkey(byte[] key,
                            DES.Schedule ks)

fencrypt

private static void fencrypt(byte[] block,
                             boolean decrypt,
                             DES.Schedule ks)

choice2

private static int choice2(int[][] b,
                           int v)

PS

private static int PS(int i,
                      int j)

FP

private static int FP(int L,
                      int R,
                      int k)