Lines Matching refs:fb
61 struct fb { struct
80 static struct fb fb[2]; argument
110 void fb64_init(struct fb *);
111 static int fb64_start(struct fb *, int, int);
112 int fb64_is(unsigned char *, int, struct fb *);
113 int fb64_reply(unsigned char *, int, struct fb *);
114 static void fb64_session(Session_Key *, int, struct fb *);
116 int fb64_keyid(int, unsigned char *, int *, struct fb *);
121 fb64_init(&fb[CFB]); in cfb64_init()
122 fb[CFB].fb_feed[4] = ENCTYPE_DES_CFB64; in cfb64_init()
123 fb[CFB].streams[0].str_flagshift = SHIFT_VAL(0, CFB); in cfb64_init()
124 fb[CFB].streams[1].str_flagshift = SHIFT_VAL(1, CFB); in cfb64_init()
130 fb64_init(&fb[OFB]); in ofb64_init()
131 fb[OFB].fb_feed[4] = ENCTYPE_DES_OFB64; in ofb64_init()
132 fb[CFB].streams[0].str_flagshift = SHIFT_VAL(0, OFB); in ofb64_init()
133 fb[CFB].streams[1].str_flagshift = SHIFT_VAL(1, OFB); in ofb64_init()
137 fb64_init(struct fb *fbp) in fb64_init()
158 return(fb64_start(&fb[CFB], dir, server)); in cfb64_start()
164 return(fb64_start(&fb[OFB], dir, server)); in ofb64_start()
168 fb64_start(struct fb *fbp, int dir, int server __unused) in fb64_start()
235 return(fb64_is(data, cnt, &fb[CFB])); in cfb64_is()
241 return(fb64_is(data, cnt, &fb[OFB])); in ofb64_is()
245 fb64_is(unsigned char *data, int cnt, struct fb *fbp) in fb64_is()
318 return(fb64_reply(data, cnt, &fb[CFB])); in cfb64_reply()
324 return(fb64_reply(data, cnt, &fb[OFB])); in ofb64_reply()
328 fb64_reply(unsigned char *data, int cnt, struct fb *fbp) in fb64_reply()
367 fb64_session(key, server, &fb[CFB]); in cfb64_session()
373 fb64_session(key, server, &fb[OFB]); in ofb64_session()
377 fb64_session(Session_Key *key, int server, struct fb *fbp) in fb64_session()
409 return(fb64_keyid(dir, kp, lenp, &fb[CFB])); in cfb64_keyid()
415 return(fb64_keyid(dir, kp, lenp, &fb[OFB])); in ofb64_keyid()
419 fb64_keyid(int dir, unsigned char *kp, int *lenp, struct fb *fbp) in fb64_keyid()
537 struct stinfo *stp = &fb[CFB].streams[DIR_ENCRYPT-1]; in cfb64_encrypt()
560 struct stinfo *stp = &fb[CFB].streams[DIR_DECRYPT-1]; in cfb64_decrypt()
610 struct stinfo *stp = &fb[OFB].streams[DIR_ENCRYPT-1]; in ofb64_encrypt()
630 struct stinfo *stp = &fb[OFB].streams[DIR_DECRYPT-1]; in ofb64_decrypt()