FileDocCategorySizeDatePackage
StreamCipher.javaAPI DocAzureus 3.0.3.41738Tue Jun 08 05:12:58 BST 2004org.bouncycastle.crypto

StreamCipher

public interface StreamCipher
the interface stream ciphers conform to.

Fields Summary
Constructors Summary
Methods Summary
public java.lang.StringgetAlgorithmName()
Return the name of the algorithm the cipher implements.

return
the name of the algorithm the cipher implements.

public voidinit(boolean forEncryption, CipherParameters params)
Initialise the cipher.

param
forEncryption if true the cipher is initialised for encryption, if false for decryption.
param
param the key and other data required by the cipher.
exception
IllegalArgumentException if the params argument is inappropriate.

public voidprocessBytes(byte[] in, int inOff, int len, byte[] out, int outOff)
process a block of bytes from in putting the result into out.

param
in the input byte array.
param
inOff the offset into the in array where the data to be processed starts.
param
len the number of bytes to be processed.
param
out the output buffer the processed bytes go into.
param
outOff the offset into the output byte array the processed data stars at.
exception
DataLengthException if the output buffer is too small.

public voidreset()
reset the cipher. This leaves it in the same state it was at after the last init (if there was one).

public bytereturnByte(byte in)
encrypt/decrypt a single byte returning the result.

param
in the byte to be processed.
return
the result of processing the input byte.