Top Description Fields Constructors Methods
org.bouncycastle.crypto.fips

pack-priv Class DesBase

extends Object
Class Inheritance
Known Direct Subclasses
org.bouncycastle.crypto.fips.DesEdeEngine

a class that provides a basic DES engine.

Field Summary

Modifier and TypeField and Description
private static final int[]
protected static final int
private static final short[]
bytebit

what follows is mainly taken from "Applied Cryptography", by Bruce Schneier, however it also bears great resemblance to Richard Outerbridge's D3DES...

private static final byte[]
private static final byte[]
private static final int[]
private static final int[]
private static final int[]
private static final int[]
private static final int[]
private static final int[]
private static final int[]
private static final int[]
private static final byte[]

Constructor Summary

AccessConstructor and Description
public
DesBase()

standard constructor.

Method Summary

Modifier and TypeMethod and Description
protected void
desFunc(int[] wKey, byte[] in, int inOff, byte[] out, int outOff)

the DES engine.

protected int[]
generateWorkingKey(boolean encrypting, byte[] key)

generate an integer based working key based on our secret key and what we processing we are planning to do.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bigbyteback to summary
private static final int[] bigbyte
BLOCK_SIZEback to summary
protected static final int BLOCK_SIZE
bytebitback to summary
private static final short[] bytebit

what follows is mainly taken from "Applied Cryptography", by Bruce Schneier, however it also bears great resemblance to Richard Outerbridge's D3DES...

pc1back to summary
private static final byte[] pc1
pc2back to summary
private static final byte[] pc2
SP1back to summary
private static final int[] SP1
SP2back to summary
private static final int[] SP2
SP3back to summary
private static final int[] SP3
SP4back to summary
private static final int[] SP4
SP5back to summary
private static final int[] SP5
SP6back to summary
private static final int[] SP6
SP7back to summary
private static final int[] SP7
SP8back to summary
private static final int[] SP8
totrotback to summary
private static final byte[] totrot

Constructor Detail

DesBaseback to summary
public DesBase()

standard constructor.

Method Detail

desFuncback to summary
protected void desFunc(int[] wKey, byte[] in, int inOff, byte[] out, int outOff)

the DES engine.

generateWorkingKeyback to summary
protected int[] generateWorkingKey(boolean encrypting, byte[] key)

generate an integer based working key based on our secret key and what we processing we are planning to do. Acknowledgements for this routine go to James Gillogly & Phil Karn. (whoever, and wherever they are!).