[linux-cifs-client] NT and LM hash

Sweekar Pinto sweekarpinto at gmail.com
Tue Nov 6 15:02:30 GMT 2007


Hi,
I was looking for a way to get the NT and LM hash for a given cleartext.
I believe nt_lm_owf_gen() could do this.
In that case somehow managing to call nt_lm_owf_gen() like:
uchar pwd_c[16]="test";
uchar nt_p16_c[16];
uchar lm_p16_c[16];
nt_lm_owf_gen(pwd_c,nt_p16_c,lm_p16_c);

should so the trick. But I get some junk value in lm_p16_c and lm_p16_c instead.
Am I doing this completely wrong? Any pointers.
Thanks,
Sweekar


More information about the linux-cifs-client mailing list