| java.lang.Object | |
| ↳ | com.trilead.ssh2.crypto.cipher.DES |
Known Direct Subclasses
|
DES.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Df_Key | what follows is mainly taken from "Applied Cryptography", by Bruce Schneier, however it also bears great resemblance to Richard Outerbridge's D3DES... | ||||||||||
| SP1 | |||||||||||
| SP2 | |||||||||||
| SP3 | |||||||||||
| SP4 | |||||||||||
| SP5 | |||||||||||
| SP6 | |||||||||||
| SP7 | |||||||||||
| SP8 | |||||||||||
| bigbyte | |||||||||||
| bytebit | |||||||||||
| pc1 | |||||||||||
| pc2 | |||||||||||
| totrot | |||||||||||
| workingKey | |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
standard constructor.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
initialise a DES cipher.
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
the DES engine.
| |||||||||||
generate an integer based working key based on our secret key and what we
processing we are planning to do.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.trilead.ssh2.crypto.cipher.BlockCipher
| |||||||||||
what follows is mainly taken from "Applied Cryptography", by Bruce Schneier, however it also bears great resemblance to Richard Outerbridge's D3DES...
standard constructor.
initialise a DES cipher.
| encrypting | Whether or not we are for encryption. |
|---|---|
| key | The parameters required to set up the cipher. |
| IllegalArgumentException | if the params argument is inappropriate. |
|---|
| in | |
|---|---|
| inOff | |
| out | |
| outOff |
the DES engine.
| wKey | |
|---|---|
| in | |
| inOff | |
| out | |
| outOff |
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!).
| encrypting | |
|---|---|
| key | |
| off |