Lines Matching defs:in
5 * Redistribution and use in source and binary forms, with or without
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
39 pk_encode(char *in, *out, DesData *deskey);
40 pk_decode(char *in, *out, DesData *deskey);
220 pk_encode(char *in, char *out, DesData *key)
229 deslen = ((strlen(in) + 7)/8)*8;
231 des_cbc_encrypt(in,buf,deslen, k,&i,DES_ENCRYPT);
241 pk_decode(char *in, char *out, DesData *key)
251 for (l=0,op=0;l<strlen(in)/2;l++,op+=2) {
252 if (in[op] > '9')
253 n1 = in[op] - 'A' + 10;
255 n1 = in[op] - '0';
256 if (in[op+1] > '9')
257 n2 = in[op+1] - 'A' + 10;
259 n2 = in[op+1] - '0';
263 des_cbc_encrypt(buf,out,strlen(in)/2, k,&i,DES_DECRYPT);
264 out[strlen(in)/2] = '\0';