FreeBSD Bugzilla – Attachment 180961 Details for
Bug 217920
[PATCH] ipfilter discard bytes - 3072 instead of 1024
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch_for_arc4random_discard
arc4random.c_patch (text/plain), 608 bytes, created by
Codarren Velvindron
on 2017-03-19 15:52:47 UTC
(
hide
)
Description:
Patch_for_arc4random_discard
Filename:
MIME Type:
Creator:
Codarren Velvindron
Created:
2017-03-19 15:52:47 UTC
Size:
608 bytes
patch
obsolete
>Index: head/contrib/ipfilter/arc4random.c >=================================================================== >--- head/contrib/ipfilter/arc4random.c (revision 315555) >+++ head/contrib/ipfilter/arc4random.c (working copy) >@@ -109,9 +109,9 @@ > /* > * Throw away the first N words of output, as suggested in the > * paper "Weaknesses in the Key Scheduling Algorithm of RC4" >- * by Fluher, Mantin, and Shamir. (N = 256 in our case.) >+ * by Fluher, Mantin, and Shamir. (N = 768 in our case.) > */ >- for (n = 0; n < 256*4; n++) >+ for (n = 0; n < 768*4; n++) > arc4_randbyte(); > MUTEX_EXIT(&arc4_mtx); > }
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 217920
: 180961