Up to [cvs.NetBSD.org] / src / lib / libcrypt
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: yamt-pagecache-base6
Revision 1.12 / (download) - annotate - [select for diffs], Thu Aug 30 12:16:49 2012 UTC (11 years, 7 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6,
agc-symver-base,
agc-symver
Branch point for: tls-maxphys
Changes since 1.11: +3 -3
lines
Diff to previous 1.11 (colored)
Add "consttime_bcmp" and "explicit_bzero" functions for both kernel abd userland, as proposed on tech-security, with explicit_bzero using a volatile function pointer as suggested by Alan Barrett. Both do what the name says. For userland, both are prefixed by "__" to keep them out of the user namespace. Change some memset/memcmp uses to the new functions where it makes sense -- these are just some examples, more to come.