Lines Matching refs:secret
54 * Encrypt a secret key given passwd
55 * The secret key is passed and returned in hex notation.
59 xencrypt(char *secret, char *passwd)
67 len = strlen(secret) / 2;
72 hex2bin(len, secret, buf);
81 bin2hex(len, (unsigned char *) buf, secret);
87 * Decrypt secret key using passwd
88 * The secret key is passed and returned in hex notation.
92 xdecrypt(char *secret, char *passwd)
100 len = strlen(secret) / 2;
105 hex2bin(len, secret, buf);
114 bin2hex(len, (unsigned char *) buf, secret);