NetBSD/sys/opencrypto
drochner 8588929dc5 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.
2012-08-30 12:16:48 +00:00
..
Makefile
aesxcbcmac.c copy AES-XCBC-MAC support from KAME IPSEC to FAST_IPSEC 2011-05-24 19:10:08 +00:00
aesxcbcmac.h copy AES-XCBC-MAC support from KAME IPSEC to FAST_IPSEC 2011-05-24 19:10:08 +00:00
criov.c Don't panic, just truncate, if the iov is too short in a COPYBACK. 2011-02-24 19:28:03 +00:00
crypto.c -if an opencrypto(9) session is allocated, the driver is refcounted 2011-06-09 14:41:24 +00:00
cryptodev.c Fix memset usage. 2011-07-04 16:06:17 +00:00
cryptodev.h -if an opencrypto(9) session is allocated, the driver is refcounted 2011-06-09 14:41:24 +00:00
cryptodev_internal.h make the compatibility code conditional on COMPAT_50 2011-02-19 16:26:34 +00:00
cryptosoft.c Add "consttime_bcmp" and "explicit_bzero" functions for both kernel 2012-08-30 12:16:48 +00:00
cryptosoft.h Don't store temporary values in the opencrypto session data struct which 2011-02-10 21:00:42 +00:00
cryptosoft_xform.c Remove arc4random() and arc4randbytes() from the kernel API. Replace 2011-11-28 08:05:05 +00:00
deflate.c avoid some uninitialised warning issues GCC 4.5 complains about. 2011-07-03 01:01:06 +00:00
deflate.h -start to make the GZIP code similar to DEFLATE: make error handling 2011-03-09 11:36:43 +00:00
files.opencrypto First step of random number subsystem rework described in 2011-11-19 22:51:18 +00:00
gmac.c use 64-bit integers for GF128 multiplication on LP64 CPUs 2011-06-09 14:47:42 +00:00
gmac.h use 64-bit integers for GF128 multiplication on LP64 CPUs 2011-06-09 14:47:42 +00:00
ocryptodev.c split the "crypto_mtx" spinlock into 3: one spinlock each for 2011-05-16 10:27:49 +00:00
ocryptodev.h make the compatibility code conditional on COMPAT_50 2011-02-19 16:26:34 +00:00
xform.c pull in AES-GCM/GMAC support from OpenBSD 2011-05-26 21:50:02 +00:00
xform.h pull in AES-GCM/GMAC support from OpenBSD 2011-05-26 21:50:02 +00:00