Browse Source

Minor update

Julien 'Lta' BALLET 11 years ago
parent
commit
5dd4ad8895
2 changed files with 6 additions and 2 deletions
  1. 4 0
      README.md
  2. 2 2
      src/hmac_md5.c

+ 4 - 0
README.md

@@ -59,6 +59,10 @@ DirectTCP SMB is on the way, to fix this issue.
 
 
 Feel free to contribute items to this list (or network trace of not working devices)
 Feel free to contribute items to this list (or network trace of not working devices)
 
 
+## TODO
+
+* HEAVILY refactor. Any help is welcome.
+
 ## Contributing
 ## Contributing
 
 
 * Fork elthariel/libdsm
 * Fork elthariel/libdsm

+ 2 - 2
src/hmac_md5.c

@@ -33,8 +33,8 @@ unsigned char *HMAC_MD5(const void *key, size_t key_len, const void *msg,
 
 
   assert(key != NULL && msg != NULL);
   assert(key != NULL && msg != NULL);
 
 
-  // This is Microsoft variation for NTLMv2 (afaik)
-  // afaik, they truncate the key instead of hashing it
+  // This is Microsoft variation of HMAC_MD5 for NTLMv2
+  // It seems they truncate over-sized keys instead of rehashing
   if (key_len > 64)
   if (key_len > 64)
     key_len = 64;
     key_len = 64;
   else
   else