Lines Matching refs:cs
18 CipherState *cs; in initblowfish() local
35 cs = emalloc9p(sizeof(CipherState)); in initblowfish()
36 memset(cs, '\0', sizeof *cs); in initblowfish()
37 fprint(2, "cs: %p\n", cs); in initblowfish()
39 setupBFstate(&cs->state, c->s2cek, 16, c->s2civ); in initblowfish()
41 setupBFstate(&cs->state, c->c2sek, 16, c->c2siv); in initblowfish()
42 return cs; in initblowfish()
46 encryptblowfish(CipherState *cs, uchar *buf, int nbuf) in encryptblowfish() argument
48 bfCBCencrypt(buf, nbuf, &cs->state); in encryptblowfish()
52 decryptblowfish(CipherState *cs, uchar *buf, int nbuf) in decryptblowfish() argument
54 fprint(2, "cs: %p, nb:%d\n", cs, nbuf); in decryptblowfish()
56 bfCBCdecrypt(buf, nbuf, &cs->state); in decryptblowfish()