File: blowfish_make_bfkey.patch

package info (click to toggle)
libcrypt-blowfish-perl 2.14-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 164 kB
  • sloc: ansic: 790; perl: 237; makefile: 2
file content (18 lines) | stat: -rw-r--r-- 673 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Subject: Correct documentation for blowfish_make_bfkey

--- a/_blowfish.c
+++ b/_blowfish.c
@@ -390,11 +390,11 @@
    dest[7]= block[1]     & 0xff ;
 }
 
-/* make_bfkey() takes the address of the key data as a char*,
+/* blowfish_make_bfkey() takes the address of the key data as a char*,
    and the length of the key in bytes.  It generates and returns
    a pointer to an object of BFkey_type, which can be passed
    to the crypt functions.  It does some simple testing of the
-   init data and crypt routine, and returns 0 on error.
+   init data and crypt routine, and returns -1 on error and 0 on success.
 */
 int
 blowfish_make_bfkey(key_string, keylength, bfkey)