Lines Matching refs:cs
12 CipherState *cs; in initrc4() local
14 cs = emalloc(sizeof(CipherState)); in initrc4()
16 setupRC4state(&cs->enc, c->sesskey, 16); in initrc4()
17 setupRC4state(&cs->dec, c->sesskey+16, 16); in initrc4()
19 setupRC4state(&cs->dec, c->sesskey, 16); in initrc4()
20 setupRC4state(&cs->enc, c->sesskey+16, 16); in initrc4()
22 return cs; in initrc4()
26 encryptrc4(CipherState *cs, uchar *buf, int nbuf) in encryptrc4() argument
28 rc4(&cs->enc, buf, nbuf); in encryptrc4()
32 decryptrc4(CipherState *cs, uchar *buf, int nbuf) in decryptrc4() argument
34 rc4(&cs->dec, buf, nbuf); in decryptrc4()