Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src

Module Name:    src
Committed By:   drochner
Date:           Thu Aug 30 12:16:49 UTC 2012

Modified Files:
        src/include: string.h
        src/lib/libcrypt: bcrypt.c crypt-sha1.c md5crypt.c
        src/sys/dev: cgd_crypto.c
        src/sys/lib/libkern: Makefile.libkern libkern.h
        src/sys/netipsec: key.c xform_ah.c xform_esp.c
        src/sys/opencrypto: cryptosoft.c
Added Files:
        src/common/lib/libc/string: consttime_bcmp.c explicit_bzero.c

Log Message:
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.

To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/common/lib/libc/string/consttime_bcmp.c \
cvs rdiff -u -r1.40 -r1.41 src/include/string.h
cvs rdiff -u -r1.75 -r1.76 src/lib/libc/string/
cvs rdiff -u -r1.16 -r1.17 src/lib/libcrypt/bcrypt.c
cvs rdiff -u -r1.4 -r1.5 src/lib/libcrypt/crypt-sha1.c
cvs rdiff -u -r1.11 -r1.12 src/lib/libcrypt/md5crypt.c
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/cgd_crypto.c
cvs rdiff -u -r1.17 -r1.18 src/sys/lib/libkern/Makefile.libkern
cvs rdiff -u -r1.105 -r1.106 src/sys/lib/libkern/libkern.h
cvs rdiff -u -r1.77 -r1.78 src/sys/netipsec/key.c
cvs rdiff -u -r1.37 -r1.38 src/sys/netipsec/xform_ah.c
cvs rdiff -u -r1.40 -r1.41 src/sys/netipsec/xform_esp.c
cvs rdiff -u -r1.39 -r1.40 src/sys/opencrypto/cryptosoft.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Home | Main Index | Thread Index | Old Index