All Packages Class Hierarchy This Package Previous Next Index
This is NOT the implementation from Sun. This class has been developed by IAIK according to the documentation publically available. Only the documentation from Sun has been inserted into the source files.
An interface implemented by algorithms that use feedback. Examples
include block ciphers in CBC
, CFB
, or
OFB
mode.
This interface is used to set or get the initialization vector, which is the data first used as feedback.
Note that initialization vectors are not secret, and should not be used for data (such as cipher keys) where secrecy is required.
setInitializationVector
.
public abstract void setInitializationVector(byte iv[])
This method may only be called on an uninitialized cipher
(one in the UNINITIALIZED
state) that implements
FeedbackCipher.
public abstract byte[] getInitializationVector()
null
if the initialization vector has not been set.
public abstract int getInitializationVectorLength()
setInitializationVector
.
setInitializationVector
.
public abstract void encrypt(byte in[], int inOff, int inLen, byte out[], int outOff)
public abstract void decrypt(byte in[], int inOff, int inLen, byte out[], int outOff)
public abstract String getName()
All Packages Class Hierarchy This Package Previous Next Index