import cyrus-sasl-2.1.23
[cyrus-sasl.git] / mac / CommonKClient / mac_kclient / kcglue_des.c
1 #include "des.h"
2 #include "kcglue_des.h"
3
4 /* $Id: kcglue_des.c,v 1.2 2001/12/04 02:05:33 rjs3 Exp $
5  * kclient and des have different definitions for key schedules
6  * this file is to include in the kclient code without dragging in the des definitions
7  */
8 int kcglue_des_key_sched(void *akey,void *asched)
9 {
10         return des_key_sched(akey,asched);
11 }
12
13 void kcglue_des_ecb_encrypt(void *asrc,void *adest,void *asched,int direction)
14 {
15         des_ecb_encrypt(asrc,adest,asched,direction);
16 }
17
18 void kcglue_des_pcbc_encrypt(void *asrc,void *adest,long length,void *asched,void *akey,int direction)
19 {
20         des_pcbc_encrypt(asrc,adest,length,asched,akey,direction);
21 }
22