Article View: sci.crypt.random-numbers
Article #5Re: Gathering entropy for PRNGs on MVS
From: Glenn Baddeley
Date: Tue, 11 Mar 2003 03:37
Date: Tue, 11 Mar 2003 03:37
37 lines
2921 bytes
2921 bytes
Duke, The gettimeofday() function or a direct equivalent doesn't seem to exist on OS/390 C like it does on Unix. I have used an exclusive-or combination of time(), getpid() and the .tms_utime, .tms_cutime, and .tms_cstime values returned by the times() function as a source of entropy on OS/390. Its hardly perfect, but it was good enough for what I wanted. Glenn. Duke Arber wrote: > > > > How accurately can you measure time? > > > > Read the time and date. Reschedule so the operating system > > runs and read the time when you are reactivated. The > > entropy comes from the run time of the other programs and > > the date. You may be able to play games with the disks and > > operator reply times. > > > > Andrew Swallow > > > > The hardware clock resolution depends on the actual hardware model. The > Time-Of-Day (TOD) API returns a microsecond resolution. I think it's "safe > to say" that most of the models produced in the last 5 years have <=20 > microsecond resolution. Others in the IBM-MAIN newsgroup may be able to > fill in the details. > > Basically, use the current O/S activity rate as a basis for entropy. Hand > off control back to the O/S and depending on its activity, it will hand > control back in some period of time. During an IPL, there is a lot of > activity. During other periods of the day, there may be very little. Would > this hold up during periods of low activity?
Technical Details
Message-ID:
<3E6D59E7.98CAA32B@team.telstra.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news1.optus.net.au!optus!ken-transit.news.telstra.net!news.telstra.net!vicpull2.telstra.net!mws-stat-syd.cdn.telstra.com.au!not-for-mailReferences:
<b4ieak$2qn$1@slb9.atl.mindspring.net> <b4if1a$jte$1@helle.btinternet.com> <b4ihfk$4oh$1@slb0.atl.mindspring.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fd4af,4336d2c2bccbde14 X-Google-Attributes: gidfd4af,public X-Google-Thread: fed83,4336d2c2bccbde14 X-Google-Attributes: gidfed83,public X-Google-Thread: fb57f,4336d2c2bccbde14 X-Google-Attributes: gidfb57f,public X-Google-ArrivalTime: 2003-03-10 19:40:01 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news1.optus.net.au!optus!ken-transit.news.telstra.net!news.telstra.net!vicpull2.telstra.net!mws-stat-syd.cdn.telstra.com.au!not-for-mail From: Glenn Baddeley <Glenn.Baddeley.snip123@team.telstra.com> Newsgroups: sci.crypt.random-numbers,bit.listserv.ibm-main,sci.crypt Subject: Re: Gathering entropy for PRNGs on MVS Date: Tue, 11 Mar 2003 14:37:11 +1100 Organization: IBM GSA (delete .snip123 to reply) Lines: 38 Distribution: world Message-ID: <3E6D59E7.98CAA32B@team.telstra.com> References: <b4ieak$2qn$1@slb9.atl.mindspring.net> <b4if1a$jte$1@helle.btinternet.com> <b4ihfk$4oh$1@slb0.atl.mindspring.net> NNTP-Posting-Host: 144.135.1.125 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: mws-stat-syd.cdn.telstra.com.au 1047353824 22793 144.135.1.125 (11 Mar 2003 03:37:04 GMT) X-Complaints-To: usenet@mws-stat-syd.cdn.telstra.com.au NNTP-Posting-Date: Tue, 11 Mar 2003 03:37:04 +0000 (UTC) X-Mailer: Mozilla 4.75 [en] (WinNT; U) X-Accept-Language: en