|
|
||||||||||
| 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.Encrypt3DES
Implementation of triple DES-EDE encryption in Cypher Block Chaining mode.
| Field Summary | |
private DES |
myDes1
|
private DES |
myDes2
|
private DES |
myDes3
|
private byte[] |
myDESKeys
|
private boolean |
myIsStandardCBC
|
private byte[] |
myIV
|
private byte[] |
myPad
|
private byte[] |
myPreviousBlock
|
| Constructor Summary | |
(package private) |
Encrypt3DES(byte[] desKeys,
byte[] iv,
boolean isStandardCBC)
|
| 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 |
xor(byte[] inOut,
int offset,
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 boolean myIsStandardCBC
private final byte[] myPreviousBlock
private final byte[] myPad
private DES myDes1
private DES myDes2
private DES myDes3
| Constructor Detail |
Encrypt3DES(byte[] desKeys,
byte[] iv,
boolean isStandardCBC)
| Method Detail |
void init()
MsgTransformer
init in class MsgTransformerbyte[] getSuspendInfo()
MsgTransformer
getSuspendInfo 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 xor(byte[] inOut,
int offset,
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 | ||||||||||