]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
ntlm: improve comment for encrypt_des
authorDaniel Stenberg <daniel@haxx.se>
Wed, 16 Nov 2022 08:11:17 +0000 (09:11 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 16 Nov 2022 10:26:22 +0000 (11:26 +0100)
Reported-by: Andrei Rybak
Fixes #9903
Closes #9925

lib/curl_ntlm_core.c

index 461c009d28396505f39bc769a1f55c39d5b7c17d..690f8f7674ebbe1db797ece22c6d9ac9d6f9a8ba 100644 (file)
@@ -186,9 +186,9 @@ static void setup_des_key(const unsigned char *key_56,
 #elif defined(USE_NSS)
 
 /*
- * Expands a 56 bit key KEY_56 to 64 bit and encrypts 64 bit of data, using
- * the expanded key.  The caller is responsible for giving 64 bit of valid
- * data is IN and (at least) 64 bit large buffer as OUT.
+ * encrypt_des() expands a 56 bit key KEY_56 to 64 bit and encrypts 64 bit of
+ * data, using the expanded key. IN should point to 64 bits of source data,
+ * OUT to a 64 bit output buffer.
  */
 static bool encrypt_des(const unsigned char *in, unsigned char *out,
                         const unsigned char *key_56)