All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----is.logi.crypto.Crypto | +----is.logi.crypto.modes.EncryptMode
Most EncryptModes use a CipherKey object to do actual encryption and do additional computations to mask repetitions in the plaintext.
encrypt(source,i,length)
followed by flush()
.
public EncryptMode()
public abstract CipherKey getKey()
public abstract void setKey(CipherKey key)
public abstract byte[] flush()
public byte[] flush(byte source[], int i, int length)
encrypt(source,i,length)
followed by flush()
.
public abstract byte[] encrypt(byte source[], int i, int length)
Encrypt length
bytes from source
,
starting at i
and return the ciphertext. Data may be
encrypted in blocks in which case only whole blocks of ciphertext
are written to dest
. Any remaining plaintext will be
stored and prepended to source
in the next call to
encrypt
.
All Packages Class Hierarchy This Package Previous Next Index