/* this function encrypts a message, * there are four inputs to this function: a 128-bit key, a 128-bit iv, a message, the message length in bytes * one output from this function: ciphertext */ void stuffCiphertext(Byte[] key, Byte[] iv, Byte[] message, Byte[] ciphertext, UInt64 msglength) { HC128_State state = new HC128_State(); /*initializing the state*/ Initialization(state, ConvertUtil.ConvertBytesToUInt32s(key), iv); /*encrypt a message*/ EncryptMessage(state, message, ciphertext, msglength); }