public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/4417] New: arc4random function addition
@ 2007-04-24 3:20 robert at linuxfromscratch dot org
2007-04-24 3:24 ` [Bug libc/4417] " robert at linuxfromscratch dot org
` (4 more replies)
0 siblings, 5 replies; 9+ messages in thread
From: robert at linuxfromscratch dot org @ 2007-04-24 3:20 UTC (permalink / raw)
To: glibc-bugs
Hello. I'm attaching patches for adding the arc4random(3) library function. The
patch includes a manual page. This function uses the free Arcfour (another-rc4)
stream cipher, seeded with entropy. This function is intended for
non-cryptographic uses, such as for mktemp.
As-is this patch takes 128 bits from /dev/urandom, or gettimeofday/getpid
if /dev/urandom is not available. This can be more flexable, to use hp-timing.
I would suggest arc4random() is used in place of hp-timing throughout the Glibc
package, with the exception of the stack protector (for performance reasons),
and use hp-timing in arc4random.c.
--
Summary: arc4random function addition
Product: glibc
Version: unspecified
Status: NEW
Severity: enhancement
Priority: P3
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: robert at linuxfromscratch dot org
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=4417
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libc/4417] arc4random function addition
2007-04-24 3:20 [Bug libc/4417] New: arc4random function addition robert at linuxfromscratch dot org
@ 2007-04-24 3:24 ` robert at linuxfromscratch dot org
2007-04-24 3:26 ` robert at linuxfromscratch dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 9+ messages in thread
From: robert at linuxfromscratch dot org @ 2007-04-24 3:24 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From robert at linuxfromscratch dot org 2007-04-24 04:24 -------
Created an attachment (id=1734)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=1734&action=view)
--with-prng-device patch
This patch adds --with-prng-device= to allow users to specify their
/dev/urandom or /dev/arandom or /dev/erandom, to use with ssp and arc4random,
and future.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=4417
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libc/4417] arc4random function addition
2007-04-24 3:20 [Bug libc/4417] New: arc4random function addition robert at linuxfromscratch dot org
2007-04-24 3:24 ` [Bug libc/4417] " robert at linuxfromscratch dot org
@ 2007-04-24 3:26 ` robert at linuxfromscratch dot org
2007-04-24 3:28 ` robert at linuxfromscratch dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 9+ messages in thread
From: robert at linuxfromscratch dot org @ 2007-04-24 3:26 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From robert at linuxfromscratch dot org 2007-04-24 04:26 -------
Created an attachment (id=1735)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=1735&action=view)
arc4random() patch
This patch adds the arc4random() code. It depends on the prng patch to build it
as-is.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=4417
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libc/4417] arc4random function addition
2007-04-24 3:20 [Bug libc/4417] New: arc4random function addition robert at linuxfromscratch dot org
2007-04-24 3:24 ` [Bug libc/4417] " robert at linuxfromscratch dot org
2007-04-24 3:26 ` robert at linuxfromscratch dot org
@ 2007-04-24 3:28 ` robert at linuxfromscratch dot org
2007-04-24 6:48 ` robert at linuxfromscratch dot org
2007-04-24 18:52 ` drepper at redhat dot com
4 siblings, 0 replies; 9+ messages in thread
From: robert at linuxfromscratch dot org @ 2007-04-24 3:28 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From robert at linuxfromscratch dot org 2007-04-24 04:28 -------
Created an attachment (id=1736)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=1736&action=view)
arc4random mktemp/tempname patch
This patch is for tempname.c to make mktemp, and friends, use arc4random().
--
http://sourceware.org/bugzilla/show_bug.cgi?id=4417
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libc/4417] arc4random function addition
2007-04-24 3:20 [Bug libc/4417] New: arc4random function addition robert at linuxfromscratch dot org
` (2 preceding siblings ...)
2007-04-24 3:28 ` robert at linuxfromscratch dot org
@ 2007-04-24 6:48 ` robert at linuxfromscratch dot org
2007-04-24 18:52 ` drepper at redhat dot com
4 siblings, 0 replies; 9+ messages in thread
From: robert at linuxfromscratch dot org @ 2007-04-24 6:48 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From robert at linuxfromscratch dot org 2007-04-24 07:48 -------
In resolv/res_init.c, res_randomid() could use arc4random() instead of
getpid().
--
http://sourceware.org/bugzilla/show_bug.cgi?id=4417
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libc/4417] arc4random function addition
2007-04-24 3:20 [Bug libc/4417] New: arc4random function addition robert at linuxfromscratch dot org
` (3 preceding siblings ...)
2007-04-24 6:48 ` robert at linuxfromscratch dot org
@ 2007-04-24 18:52 ` drepper at redhat dot com
4 siblings, 0 replies; 9+ messages in thread
From: drepper at redhat dot com @ 2007-04-24 18:52 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From drepper at redhat dot com 2007-04-24 19:52 -------
glibc is no dumping ground for arbitrary code. The existing code is just find.
Put your code in separate libraries.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
http://sourceware.org/bugzilla/show_bug.cgi?id=4417
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <bug-4417-131@http.sourceware.org/bugzilla/>]
end of thread, other threads:[~2022-08-01 15:49 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-24 3:20 [Bug libc/4417] New: arc4random function addition robert at linuxfromscratch dot org
2007-04-24 3:24 ` [Bug libc/4417] " robert at linuxfromscratch dot org
2007-04-24 3:26 ` robert at linuxfromscratch dot org
2007-04-24 3:28 ` robert at linuxfromscratch dot org
2007-04-24 6:48 ` robert at linuxfromscratch dot org
2007-04-24 18:52 ` drepper at redhat dot com
[not found] <bug-4417-131@http.sourceware.org/bugzilla/>
2022-04-12 11:36 ` adhemerval.zanella at linaro dot org
2022-04-25 11:20 ` fweimer at redhat dot com
2022-08-01 15:49 ` adhemerval.zanella at linaro dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).