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);
215 pk_encode(char *in, char *out, DesData *key)
224 deslen = ((strlen(in) + 7)/8)*8;
226 DES_cbc_encrypt(in, buf, deslen, &k, &i, DES_ENCRYPT);
236 pk_decode(char *in, char *out, DesData *key)
246 for (l=0,op=0;l<strlen(in)/2;l++,op+=2) {
247 if (in[op] > '9')
248 n1 = in[op] - 'A' + 10;
250 n1 = in[op] - '0';
251 if (in[op+1] > '9')
252 n2 = in[op+1] - 'A' + 10;
254 n2 = in[op+1] - '0';
258 DES_cbc_encrypt(buf, out, strlen(in) / 2, &k, &i, DES_DECRYPT);
259 out[strlen(in)/2] = '\0';