|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--net.vattp.data.MsgTransformer
|
+--net.vattp.data.Decrypt3DES
Implementation of triple DES-EDE decryption in Cypher Block Chaining mode.
| Field Summary | |
private byte[] |
myCurrentBlock
|
private DES |
myDes1
|
private DES |
myDes2
|
private DES |
myDes3
|
private byte[] |
myDESKeys
|
private byte[] |
myIV
|
private byte[] |
myPad
|
private byte[] |
myPreviousBlock
|
| Constructor Summary | |
(package private) |
Decrypt3DES(byte[] desKeys,
byte[] iv)
|
| Method Summary | |
private static String |
eightToHex(byte[] b,
int offset)
|
(package private) byte[] |
getSuspendInfo()
Get any information which will be required to resume a suspended connection. |
private void |
increment(byte[] value)
|
(package private) void |
init()
Initiate a transformation. |
(package private) void |
transform(byte[] buffer)
Transform the data. |
(package private) void |
transform(byte[] buffer,
int off,
int len)
Transform the data. |
private void |
xor8(byte[] inOut,
int off,
byte[] in)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private final byte[] myIV
private final byte[] myDESKeys
private final byte[] myPreviousBlock
private byte[] myCurrentBlock
private DES myDes1
private DES myDes2
private DES myDes3
private final byte[] myPad
| Constructor Detail |
Decrypt3DES(byte[] desKeys,
byte[] iv)
| Method Detail |
byte[] getSuspendInfo()
MsgTransformer
getSuspendInfo in class MsgTransformervoid init()
MsgTransformer
init in class MsgTransformer
void transform(byte[] buffer,
int off,
int len)
MsgTransformer
transform in class MsgTransformerbuffer - is the data to be transformed.off - is the offset in buffer to start the transformationlen - is the length to transform.
private void xor8(byte[] inOut,
int off,
byte[] in)
private void increment(byte[] value)
private static String eightToHex(byte[] b,
int offset)
void transform(byte[] buffer)
buffer - is the data to be transformed.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||