Lines Matching full:fb

78 struct fb {  struct
89 static struct fb fb[2]; argument
119 void fb64_init (struct fb *);
120 static int fb64_start (struct fb *, int, int);
121 int fb64_is (unsigned char *, int, struct fb *);
122 int fb64_reply (unsigned char *, int, struct fb *);
123 static void fb64_session (Session_Key *, int, struct fb *);
125 int fb64_keyid (int, unsigned char *, int *, struct fb *);
131 fb64_init(&fb[CFB]); in cfb64_init()
132 fb[CFB].fb_feed[4] = ENCTYPE_DES_CFB64; in cfb64_init()
133 fb[CFB].streams[0].str_flagshift = SHIFT_VAL(0, CFB); in cfb64_init()
134 fb[CFB].streams[1].str_flagshift = SHIFT_VAL(1, CFB); in cfb64_init()
140 fb64_init(&fb[OFB]); in ofb64_init()
141 fb[OFB].fb_feed[4] = ENCTYPE_DES_OFB64; in ofb64_init()
142 fb[CFB].streams[0].str_flagshift = SHIFT_VAL(0, OFB); in ofb64_init()
143 fb[CFB].streams[1].str_flagshift = SHIFT_VAL(1, OFB); in ofb64_init()
146 void fb64_init(struct fb *fbp) in fb64_init()
166 return(fb64_start(&fb[CFB], dir, server)); in cfb64_start()
171 return(fb64_start(&fb[OFB], dir, server)); in ofb64_start()
174 static int fb64_start(struct fb *fbp, int dir, int server) in fb64_start()
247 return(fb64_is(data, cnt, &fb[CFB])); in cfb64_is()
252 return(fb64_is(data, cnt, &fb[OFB])); in ofb64_is()
256 int fb64_is(unsigned char *data, int cnt, struct fb *fbp) in fb64_is()
329 return(fb64_reply(data, cnt, &fb[CFB])); in cfb64_reply()
334 return(fb64_reply(data, cnt, &fb[OFB])); in ofb64_reply()
338 int fb64_reply(unsigned char *data, int cnt, struct fb *fbp) in fb64_reply()
376 fb64_session(key, server, &fb[CFB]); in cfb64_session()
381 fb64_session(key, server, &fb[OFB]); in ofb64_session()
384 static void fb64_session(Session_Key *key, int server, struct fb *fbp) in fb64_session()
419 return(fb64_keyid(dir, kp, lenp, &fb[CFB])); in cfb64_keyid()
424 return(fb64_keyid(dir, kp, lenp, &fb[OFB])); in ofb64_keyid()
427 int fb64_keyid(int dir, unsigned char *kp, int *lenp, struct fb *fbp) in fb64_keyid()
542 struct stinfo *stp = &fb[CFB].streams[DIR_ENCRYPT-1]; in cfb64_encrypt()
564 struct stinfo *stp = &fb[CFB].streams[DIR_DECRYPT-1]; in cfb64_decrypt()
614 struct stinfo *stp = &fb[OFB].streams[DIR_ENCRYPT-1]; in ofb64_encrypt()
633 struct stinfo *stp = &fb[OFB].streams[DIR_DECRYPT-1]; in ofb64_decrypt()