|
Sharkysoft home | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--lava.security.des.DesFbCoder | +--lava.security.des.DesOfbCoder
Encrypts data using DES in cipher feedback (CFB) mode.
Details: DesOfbCoder
performs data encryption/decryption using DES in output feedback (CFB) mode. This class performs both encryption and decryption, because the two operations are identical and self-
Constructor Summary | |
DesOfbCoder(DesKey key,
int k,
long iv)
Initializes with DES function, value for k, and initialization vector. |
|
DesOfbCoder(IBlockCipher64 engine,
int k,
long iv)
Initializes with arbitrary block cipher, value for k, and initialization vector. |
Method Summary | |
int |
continueTransform(java.lang.Object input,
java.lang.Object output,
int len)
ITextTransform interface method. |
Methods inherited from class lava.security.des.DesFbCoder |
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 DesOfbCoder(IBlockCipher64 engine, int k, long iv)
Details: This constructor initializes a new instance to encrypt/
engine
- the block cipherk
- the symbol widthiv
- the initialization vectorpublic DesOfbCoder(DesKey key, int k, long iv)
Details: This constructor initializes a new instance to encrypt/
engine
- the block cipherk
- the symbol widthiv
- the initialization vectorMethod Detail |
public int continueTransform(java.lang.Object input, java.lang.Object output, int len)
Details: Refer to ITextTransform
for a description of this interface method's contract.
This implementation performs both encryption and decryption, immediately producing one output symbol for each input symbol.
input
- the input symbolsoutput
- buffer for output symbolslen
- number of input symbols to process
|
Sharkysoft home | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |