|
Sharkysoft home | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--lava.security.des.TripleDesEngine
Optimized 3DES implementation.
Details: TripleDesEngine is an efficient implementation of the 3DES chain cipher. A 3DES cipher is simply three, independently-
Except for key initialization, the interface to this class is identical to DesEngine. Make sure to read the documentation for class DesEngine before using this class.
DesEngine| Constructor Summary | |
TripleDesEngine(TripleDesKey key)
Sets triple-key. |
|
TripleDesEngine(TripleDesKey key,
boolean itpe,
boolean ftpe)
Sets triple-key; enables/disables permutations. |
|
| Method Summary | |
void |
decrypt(java.lang.Object src,
java.lang.Object dest,
int srclen)
Decrypts blocks. |
void |
encrypt(java.lang.Object src,
java.lang.Object dest,
int srclen)
Encrypts blocks. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public TripleDesEngine(TripleDesKey key)
Details: This constructor initializes a new TripleDesEngine instance for standard 3DES encryption/decryption.
key - the 3DES key
public TripleDesEngine(TripleDesKey key,
boolean itpe,
boolean ftpe)
Details: This constructor initializes a new TripleDesEngine instance and enables or disables initial and final text permutations.
key - the 3DES keyitpe - initial text permutation enabledftpe - final text permutation enabled| Method Detail |
public final void encrypt(java.lang.Object src,
java.lang.Object dest,
int srclen)
Details:
See IBlockCipher64 (read all of it!) for a description of this interface method's contract.src - source arraydest - destination arraysrclen - number of elements in source array
public final void decrypt(java.lang.Object src,
java.lang.Object dest,
int srclen)
Details:
See IBlockCipher64 (read all of it!) for a description of this interface method's contract.src - source arraydest - destination arraysrclen - number of elements in source array
|
Sharkysoft home | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||