FreeBSD Bugzilla – Attachment 14862 Details for
Bug 27775
Too short salt of Blowfish of 4.3-STABLE
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.10 KB, created by
Yoshihiro Koya
on 2001-05-30 18:30:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Yoshihiro Koya
Created:
2001-05-30 18:30:01 UTC
Size:
1.10 KB
patch
obsolete
>Index: local_passwd.c >=================================================================== >RCS file: /home/ncvs/src/usr.bin/passwd/local_passwd.c,v >retrieving revision 1.27 >retrieving revision 1.24.2.1 >diff -u -r1.27 -r1.24.2.1 >--- local_passwd.c 2001/03/11 16:37:30 1.27 >+++ local_passwd.c 2000/09/20 11:19:55 1.24.2.1 >@@ -30,7 +30,7 @@ > * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF > * SUCH DAMAGE. > * >- * $FreeBSD: src/usr.bin/passwd/local_passwd.c,v 1.27 2001/03/11 16:37:30 markm Exp $ >+ * $FreeBSD: src/usr.bin/passwd/local_passwd.c,v 1.24.2.1 2000/09/20 11:19:55 green Exp $ > */ > > #ifndef lint >@@ -100,7 +100,7 @@ > #ifdef LOGIN_CAP > login_cap_t * lc; > #endif >- char buf[_PASSWORD_LEN+1], salt[32]; >+ char buf[_PASSWORD_LEN+1], salt[10]; > struct timeval tv; > > if (!nis) >@@ -182,11 +182,7 @@ > to64(&salt[0], random(), 3); > to64(&salt[3], tv.tv_usec, 3); > to64(&salt[6], tv.tv_sec, 2); >- to64(&salt[8], random(), 5); >- to64(&salt[13], random(), 5); >- to64(&salt[17], random(), 5); >- to64(&salt[22], random(), 5); >- salt[27] = '\0'; >+ salt[8] = '\0'; > #endif > return (crypt(buf, salt)); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 27775
: 14862