Initial implementation of keystream.