| java.lang.Object org.bouncycastle.crypto.engines.HC128Engine
HC128Engine | public class HC128Engine implements StreamCipher(Code) | | HC-128 is a software-efficient stream cipher created by Hongjun Wu. It
generates keystream from a 128-bit secret key and a 128-bit initialization
vector.
http://www.ecrypt.eu.org/stream/p3ciphers/hc/hc256_p3.pdf
It is a third phase candidate in the eStream contest, and is patent-free.
No attacks are known as of today (April 2007). See
http://www.ecrypt.eu.org/stream/hcp3.html
|
init | public void init(boolean forEncryption, CipherParameters params) throws IllegalArgumentException(Code) | | Initialise a HC-128 cipher.
Parameters: forEncryption - whether or not we are for encryption. Irrelevant, asencryption and decryption are the same. Parameters: params - the parameters required to set up the cipher. throws: IllegalArgumentException - if the params argument isinappropriate (ie. the key is not 128 bit long). |
reset | public void reset()(Code) | | |
returnByte | public byte returnByte(byte in)(Code) | | |
|
|