|
Sharkysoft home | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--lava.security.des.DesEcbCoder | +--lava.security.des.DesEcbEncoder
Encrypts using DES-ECB.
Details: DesEcbEncoder
encrypts long
arrays using DES (or 3DES) in ECB mode. Please refer to the superclass documentation for important information regarding usage.
Constructor Summary | |
DesEcbEncoder(IBlockCipher64 engine)
Sets encryption engine. |
Method Summary | |
int |
continueTransform(java.lang.Object src,
java.lang.Object dest,
int length)
Encrypts longs. |
Methods inherited from class lava.security.des.DesEcbCoder |
beginTransform,
completeTransform,
getTransformInputWidth,
getTransformOutputWidth |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public DesEcbEncoder(IBlockCipher64 engine)
Details: This constructor sets the 64-bit block encryption engine (engine) used for encryption. engine can be an instance of DesEngine
, TripleDesEngine
, or any other 64-bit block cipher that satisfies the IBlockCipher64
interface contract.
engine
- the engineMethod Detail |
public int continueTransform(java.lang.Object src, java.lang.Object dest, int length)
Details: continueTransform
encrypts the plain text stored in src and stores the resulting cipher text in the provided output array (dest). Both arrays must be long
arrays. If dest is too short to store the result, the overflow is discarded.
src
- plain textdest
- cipher textlength
- number of plain text symbols
|
Sharkysoft home | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |