| org.bouncycastle.crypto.StreamCipher
All known Subclasses: org.bouncycastle.crypto.engines.VMPCEngine, org.bouncycastle.crypto.engines.Salsa20Engine, org.bouncycastle.crypto.engines.RC4Engine, org.bouncycastle.crypto.StreamBlockCipher, org.bouncycastle.crypto.engines.HC128Engine, org.bouncycastle.crypto.engines.ISAACEngine, org.bouncycastle.crypto.engines.HC256Engine,
StreamCipher | public interface StreamCipher (Code) | | the interface stream ciphers conform to.
|
Method Summary | |
public String | getAlgorithmName() Return the name of the algorithm the cipher implements. | public void | init(boolean forEncryption, CipherParameters params) Initialise the cipher. | public void | processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) process a block of bytes from in putting the result into out. | public void | reset() reset the cipher. | public byte | returnByte(byte in) encrypt/decrypt a single byte returning the result.
Parameters: in - the byte to be processed. |
getAlgorithmName | public String getAlgorithmName()(Code) | | Return the name of the algorithm the cipher implements.
the name of the algorithm the cipher implements. |
init | public void init(boolean forEncryption, CipherParameters params) throws IllegalArgumentException(Code) | | Initialise the cipher.
Parameters: forEncryption - if true the cipher is initialised forencryption, if false for decryption. Parameters: params - the key and other data required by the cipher. exception: IllegalArgumentException - if the params argument isinappropriate. |
processBytes | public void processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) throws DataLengthException(Code) | | process a block of bytes from in putting the result into out.
Parameters: in - the input byte array. Parameters: inOff - the offset into the in array where the data to be processed starts. Parameters: len - the number of bytes to be processed. Parameters: out - the output buffer the processed bytes go into. Parameters: outOff - the offset into the output byte array the processed data starts at. exception: DataLengthException - if the output buffer is too small. |
reset | public void reset()(Code) | | reset the cipher. This leaves it in the same state
it was at after the last init (if there was one).
|
returnByte | public byte returnByte(byte in)(Code) | | encrypt/decrypt a single byte returning the result.
Parameters: in - the byte to be processed. the result of processing the input byte. |
|
|