Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Feb 1998 23:50:18 -0600 (CST)
From:      Mohit Aron <aron@cs.rice.edu>
To:        questions@FreeBSD.ORG
Subject:   conflicting man page of crypt()
Message-ID:  <199802130550.XAA01919@klio.cs.rice.edu>

next in thread | raw e-mail | index | archive | help
Hi,
	the man page of crypt(3) says the following:

     For compatibility with historical versions of crypt(3),  the setting may
     consist of 2 bytes of salt, encoded as above, in which case an iteration
     count of 25 is used, fewer perturbations of DES are available, at most 8
     characters of key are used, and the returned value is a NUL-terminated
     string 13 bytes in length.


However, the crypt() library function in FreeBSD 2.2.5 doesn't appear to be
compatible with older versions when given a 2 byte salt. In fact the code in
/usr/src/lib/libcrypt/crypt.c doesn't indicate that making this case special.
Is this a bug or am I in some way interpreting things wrongly ? Also is there
any way in FreeBSD 2.2.5 to make crypt compatible with old versions (short of
modifying the code).




- Mohit Aron
  aron@cs.rice.edu

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199802130550.XAA01919>