search for: get_snk_pass

Displaying 1 result from an estimated 1 matches for "get_snk_pass".

2001 Jun 06
0
snk authentication
...= 'a' || buf[i] == 'b' || buf[i] == 'c') + buf[i] = '2'; + else + if(buf[i] == 'd' || buf[i] == 'e' || buf[i] == 'f') + buf[i] = '3'; + strcpy(rbuf, buf); + return(0); +} + +/* Get the DES key from the specified data. */ + +int get_snk_pass(char *pass, char *res, int reslen, char *data) { + des_cblock kblock; + des_key_schedule keysched; + char kbuf[16]; + des_cblock iv; + int i, j; + char *p; + MD5_CTX ctx; + unsigned char digest[16]; + + if(data[0] ){ + des_string_to_key(pass, &kblock); + des_set_key((des_cblock *)kbl...