Analysis of Keystream Generation