Save This Page
Home » crypto-143 » org.bouncycastle.crypto » [javadoc | source]
org.bouncycastle.crypto
public interface: StreamCipher [javadoc | source]

All Known Implementing Classes:
    HC256Engine, Salsa20Engine, StreamBlockCipher, HC128Engine, VMPCEngine, Grain128Engine, VMPCKSA3Engine, Grainv1Engine, RC4Engine

the interface stream ciphers conform to.
Method from org.bouncycastle.crypto.StreamCipher Summary:
getAlgorithmName,   init,   processBytes,   reset,   returnByte
Method from org.bouncycastle.crypto.StreamCipher Detail:
 public String getAlgorithmName()
    Return the name of the algorithm the cipher implements.
 public  void init(boolean forEncryption,
    CipherParameters params) throws IllegalArgumentException
    Initialise the cipher.
 public  void processBytes(byte[] in,
    int inOff,
    int len,
    byte[] out,
    int outOff) throws DataLengthException
    process a block of bytes from in putting the result into out.
 public  void reset()
    reset the cipher. This leaves it in the same state it was at after the last init (if there was one).
 public byte returnByte(byte in)
    encrypt/decrypt a single byte returning the result.