The MirOS Project

CVS log for src/lib/libc/crypt/Attic/arc4random.c

[BACK] Up to [The MirOS Project] / src / lib / libc / crypt

Request diff between arbitrary revisions - Display revisions graphically


Keyword substitution: kv
Default branch: MAIN


Revision 1.31
Sun Sep 12 17:10:28 2010 UTC (20 months, 1 week ago) by tg - 1004C8D0939027D8BE7
Branches: MAIN
CVS tags: HEAD
FILE REMOVED
Changes since revision 1.30: +1 -1 lines
new implementation of arc4random(3) API (except arc4random_uniform(3),
which though has been split off earlier today)

deprecate arc4random_push arc4random_pushb arc4random_pushk
in favour of arc4random_pushb_fast as well

hide internal symbols from user with a version script (only some,
until the next major bump)

make deprecated functions into macros already

switch some kernel code to use the new shared code already; rewrite
of kernel arc4random(9) will come next/later

Revision 1.30: download - view: text, markup, annotated - select for diffs
Sun Sep 12 12:24:05 2010 UTC (20 months, 1 week ago) by tg - 1004C8CC69150D1B4BD
Branches: MAIN
Diff to previous 1.29: preferred, coloured
Changes since revision 1.29: +1 -55 lines
• kern/c/arc4random_uniform.c, kern/include/libckern.h: move
  arc4random_uniform(3) implementation here
• kern/c/Makefile.inc: build arc4random_uniform.c kernel/user
• lib/libc/crypt/arc4random.c, sys/dev/rnd.c: remove implementation here
• sys/dev/rndvar.h: prototype is now in <libckern.h>
• contrib/code/Snippets/arc4random.c: sync with master implementation

Revision 1.29: download - view: text, markup, annotated - select for diffs
Sat Jan 16 20:29:17 2010 UTC (2 years, 4 months ago) by tg - 1004B5221B01604F5E4
Branches: MAIN
Diff to previous 1.28: preferred, coloured
Changes since revision 1.28: +86 -2 lines
add (if 0’d) arc4random_add_lazy – will be added when we really need/use
it, maybe with a push_lazy variant as well – and a small bugfix

Revision 1.28: download - view: text, markup, annotated - select for diffs
Wed Jan 6 19:11:30 2010 UTC (2 years, 4 months ago) by tg - 1004B44E03412A89242
Branches: MAIN
Diff to previous 1.27: preferred, coloured
Changes since revision 1.27: +10 -9 lines
With the test programme below, I also have double-checked the
arc4random_uniform interna. Thus, sync it across all the dif-
ferent implemementations for better comprehension.

begin 644 test.c.gz
M'XL(```````"`UV036O#,`R&S_:O>-=1L)MN)$X(A7X<=^JUL,-@C"6EAM0=
M:=(:UNRW3[83ME076=*C5[(>M?FLVJ+$ZMP4^O1\V'"N3<./']J(RTD7DG]S
MUE(JS]X;V#GJ/%N&3*I<)E642]6QK;Q?<LXLUH@)NAYT54)$D<4*L4WBWG;;
MK03),M)RZ*B"*2SU,A*FFG_J/80+-X0N!C(HL#":R-KS"2+\6+<&8QW*ZES>
M84+$]J6W'9Z"\`Q04E)K(MWXT,Z"XC^><$>/L:Y?T/WE(:QQN^$OHK'2J7W5
M=+*]F-CU-%Z\(L^"3]5,#2_OW\QD[J_JFD`FAEM+$AW=6M)\&E^735L;6I3B
+CO\"?M$\_-(!````
`
end

Revision 1.27: download - view: text, markup, annotated - select for diffs
Wed Jan 6 17:52:08 2010 UTC (2 years, 4 months ago) by tg - 1004B44CDF76EA71CDB
Branches: MAIN
Diff to previous 1.26: preferred, coloured
Changes since revision 1.26: +2 -1 lines
fix a coding error in the KSA found by myself reading several descriptions of aRC4

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sun Nov 29 15:29:01 2009 UTC (2 years, 5 months ago) by tg - 1004B1293503FBA3433
Branches: MAIN
Diff to previous 1.25: preferred, coloured
Changes since revision 1.25: +5 -5 lines
make things const that should be const where we can,
complain about things where we cannot change the API
designed by const-dirty OpenBSDdiots

Revision 1.25: download - view: text, markup, annotated - select for diffs
Sun Nov 29 14:56:37 2009 UTC (2 years, 5 months ago) by tg - 1004B128BD37E8B48DA
Branches: MAIN
Diff to previous 1.24: preferred, coloured
Changes since revision 1.24: +41 -30 lines
again, improved entropy pass behaviour in arc4random_pushb (and pushk,
which has been the same for quite a while)

Revision 1.24: download - view: text, markup, annotated - select for diffs
Mon Nov 9 22:35:26 2009 UTC (2 years, 6 months ago) by tg - 1004AF8995013E8DF46
Branches: MAIN
Diff to previous 1.23: preferred, coloured
Changes since revision 1.23: +21 -27 lines
feature- and style-sync Snippets/arc4random.c and libc’s with each other

Revision 1.23: download - view: text, markup, annotated - select for diffs
Mon Nov 9 21:58:15 2009 UTC (2 years, 6 months ago) by tg - 1004AF8909940C73519
Branches: MAIN
Diff to previous 1.22: preferred, coloured
Changes since revision 1.22: +33 -26 lines
reword arc4random_pushb(3) – cleaner, leaner, hashier

Revision 1.22: download - view: text, markup, annotated - select for diffs
Wed Jan 21 19:41:13 2009 UTC (3 years, 3 months ago) by tg - 10049777A7F4BE988B2
Branches: MAIN
Diff to previous 1.21: preferred, coloured
Changes since revision 1.21: +7 -7 lines
throw away before, not after (more PFS)

Revision 1.21: download - view: text, markup, annotated - select for diffs
Wed Jan 21 19:38:21 2009 UTC (3 years, 3 months ago) by tg - 100497779C62F46751A
Branches: MAIN
Diff to previous 1.20: preferred, coloured
Changes since revision 1.20: +17 -3 lines
throw away single arc4_getbyte()s at random on request, as we do in kernel

Revision 1.20: download - view: text, markup, annotated - select for diffs
Wed Jan 21 19:33:00 2009 UTC (3 years, 3 months ago) by tg - 10049777882582BA13F
Branches: MAIN
Diff to previous 1.19: preferred, coloured
Changes since revision 1.19: +7 -4 lines
• remove a dead line of code
• ensure some more fuzz in initial keystream throwaway

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sat Dec 27 21:17:31 2008 UTC (3 years, 4 months ago) by tg - 10049569B9439744217
Branches: MAIN
Diff to previous 1.18: preferred, coloured
Changes since revision 1.18: +162 -76 lines
merge and wrap exec/exit functions better

Revision 1.1.1.3 (vendor branch): download - view: text, markup, annotated - select for diffs
Sat Dec 27 20:17:47 2008 UTC (3 years, 4 months ago) by tg - 10049568D936F09B8CD
Branches: openbsd
Diff to previous 1.1.1.2: preferred, coloured
Changes since revision 1.1.1.2: +115 -49 lines
import OpenBSD-current

Revision 1.18: download - view: text, markup, annotated - select for diffs
Sat Dec 6 18:05:10 2008 UTC (3 years, 5 months ago) by tg - 100493ABE6F284D4E41
Branches: MAIN
Diff to previous 1.17: preferred, coloured
Changes since revision 1.17: +25 -2 lines
use user-space programmes as a sort of fifth entropy pool by pushing
entropy to kernel atexit(3) - imperfect (could do better by using the
entire state information plus time and pid, calculate space better, etc.)
and pending an arc4random.c total rewrite, but for that I'd like to add
the new APIs from obsd-current (_bytes and _uniform) first and read the
books mentioned, so we do this "el cheapo" for now => increases amount
of entropy in overall system circulation and modelling difficulty raises

Revision 1.17: download - view: text, markup, annotated - select for diffs
Mon Oct 20 10:41:29 2008 UTC (3 years, 7 months ago) by tg - 10048FC605C604CB3F7
Branches: MAIN
Diff to previous 1.16: preferred, coloured
Changes since revision 1.16: +7 -5 lines
discarding the initial key stream wants us to get rid of
256 “long words” of 32 bit, not of 256 bytes… (plus that
fuzzy factor of ours I added)

spotted while improving contrib/code/Snippets/arc4random.c

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sun Jul 6 15:34:23 2008 UTC (3 years, 10 months ago) by tg - 1004870E619397F7B3E
Branches: MAIN
Diff to previous 1.15: preferred, coloured
Changes since revision 1.15: +7 -4 lines
add a little uncertainty to the arc4random_pushb(3) functionality

Revision 1.15: download - view: text, markup, annotated - select for diffs
Mon Apr 7 20:57:29 2008 UTC (4 years, 1 month ago) by tg - 10047FA8AD7422D7EAB
Branches: MAIN
Diff to previous 1.14: preferred, coloured
Changes since revision 1.14: +4 -6 lines
even better and fix a bug when passing >256 args *sigh*
*gets a coffee*

Revision 1.14: download - view: text, markup, annotated - select for diffs
Mon Apr 7 20:55:26 2008 UTC (4 years, 1 month ago) by tg - 10047FA8A6407F5792D
Branches: MAIN
Diff to previous 1.13: preferred, coloured
Changes since revision 1.13: +5 -3 lines
I knew it… a revision 1.13 is bad luck

Revision 1.13: download - view: text, markup, annotated - select for diffs
Mon Apr 7 20:50:42 2008 UTC (4 years, 1 month ago) by tg - 10047FA893862D432E9
Branches: MAIN
Diff to previous 1.12: preferred, coloured
Changes since revision 1.12: +27 -21 lines
make arc4random_pushb internally a little more KISS like arc4random_pushk;
also allows more than 256 bytes of argument (they get folded then)

Revision 1.12: download - view: text, markup, annotated - select for diffs
Thu Aug 9 17:46:52 2007 UTC (4 years, 9 months ago) by tg - 10046BB533A4B4E48C7
Branches: MAIN
CVS tags: MIRBSD_10_BASE, MIRBSD_10
Diff to previous 1.11: preferred, coloured
Changes since revision 1.11: +11 -5 lines
while time isn’t a secret, it certainly helps sometimes; I’d add truerand() to the mix but it’s too hard from within libc

Revision 1.11: download - view: text, markup, annotated - select for diffs
Thu Aug 9 17:28:32 2007 UTC (4 years, 9 months ago) by tg - 10046BB4EEE102748DC
Branches: MAIN
Diff to previous 1.10: preferred, coloured
Changes since revision 1.10: +25 -19 lines
solve alignment issues (on sparc and with __CRAZY=Yes) by use of a union

Revision 1.10: download - view: text, markup, annotated - select for diffs
Thu Aug 9 17:12:46 2007 UTC (4 years, 9 months ago) by tg - 10046BB4AE668786D10
Branches: MAIN
Diff to previous 1.9: preferred, coloured
Changes since revision 1.9: +22 -18 lines
• take pid and time more/better into account when stirring or a4_pushb, and
  throw away less information supplied by the user on the latter
• __CRAZY=Yes clean

Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed Feb 7 21:16:35 2007 UTC (5 years, 3 months ago) by tg - 10045CA41E17D3F4271
Branches: MAIN
Diff to previous 1.8: preferred, coloured
Changes since revision 1.8: +3 -3 lines
taitime.h missing include

Revision 1.8: download - view: text, markup, annotated - select for diffs
Mon Jan 15 02:19:02 2007 UTC (5 years, 4 months ago) by tg - 10045AAE4AB103BEF0F
Branches: MAIN
Diff to previous 1.7: preferred, coloured
Changes since revision 1.7: +16 -13 lines
oops, rand() not random() where we deliberately use
non-strong data from other sources; shrinks this some

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sat Aug 19 02:02:45 2006 UTC (5 years, 9 months ago) by tg - 10044E6716A6772EFD9
Branches: MAIN
Diff to previous 1.6: preferred, coloured
Changes since revision 1.6: +3 -3 lines
the implementation was good, the specification lacked a const...

Revision 1.6: download - view: text, markup, annotated - select for diffs
Fri Aug 18 13:01:54 2006 UTC (5 years, 9 months ago) by tg - 10044E5BA6E310A62DF
Branches: MAIN
Diff to previous 1.5: preferred, coloured
Changes since revision 1.5: +35 -11 lines
implement new arc4random_pushb(3) API

Revision 1.5: download - view: text, markup, annotated - select for diffs
Fri Jun 9 10:02:30 2006 UTC (5 years, 11 months ago) by tg - 1004489475038030224
Branches: MAIN
CVS tags: MIRBSD_9_BASE
Diff to previous 1.4: preferred, coloured
Changes since revision 1.4: +7 -3 lines
_do_ stir with the current time as well

Revision 1.4: download - view: text, markup, annotated - select for diffs
Fri Jun 2 02:29:22 2006 UTC (5 years, 11 months ago) by tg - 100447FA28346FF91C0
Branches: MAIN
Diff to previous 1.3: preferred, coloured
Changes since revision 1.3: +5 -5 lines
__CRAZY cleanliness for most of libc
not: net/rpc/etc., time, thread, sys

Revision 1.3: download - view: text, markup, annotated - select for diffs
Thu Sep 22 20:06:36 2005 UTC (6 years, 7 months ago) by tg - 696c43330ef70acb
Branches: MAIN
CVS tags: MIRBSD_8_BASE, MIRBSD_8
Diff to previous 1.2: preferred, coloured
Changes since revision 1.2: +31 -20 lines
merge

Revision 1.1.1.2 (vendor branch): download - view: text, markup, annotated - select for diffs
Thu Jul 21 20:51:57 2005 UTC (6 years, 10 months ago) by tg - 560042e0092f571e
Branches: openbsd
CVS tags: cvs-200509212000, cvs-200507211800
Diff to previous 1.1.1.1: preferred, coloured
Changes since revision 1.1.1.1: +29 -18 lines
Import almost everything (no ancontrol, ifconfig, pfctl, wicontrol)
of (the undeleted parts of) OpenBSD-current's userland of about 3 hours ago.
Warning: this introduces major breakage!

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Mar 6 20:28:12 2005 UTC (7 years, 2 months ago) by tg
Branches: MAIN
Diff to previous 1.1: preferred, coloured
Changes since revision 1.1: +21 -22 lines
merge src/lib

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Sat Feb 5 17:24:16 2005 UTC (7 years, 3 months ago) by tg
Branches: openbsd
Diff to previous 1.1: preferred, coloured
Changes since revision 1.1: +0 -0 lines
Import the OpenBSD foundation of MirOS BSD

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sat Feb 5 17:24:16 2005 UTC (7 years, 3 months ago) by tg
Branches: MAIN
Initial revision

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

Valid XHTML/1.0 Transitional! — CVSweb for MirOSChangeLog