History log of /freebsd-10-stable/sys/crypto/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
323871 21-Sep-2017 marius

MFC: r285215

remove _NORMAL flag which isn't suppose to be used w/ _alloc_ctx...

MFC: r285289

address an issue where consumers, like IPsec, can reuse the same
session in multiple threads w/o locking.. There was a single fpu
context shared per session, if multiple threads were using the session,
and both migrated away, they could corrupt each other's fpu context...

MFC: r285297

upon further examination, it turns out that _unregister_all already
provides the guarantee that no threads will be in the _newsession code..

MFC: r298332

aesni(4): Initialize error before use [1]

Reported by: Coverity [1]
CID: 1331554 [1]

314550 02-Mar-2017 avg

Fix r314332 (MFC of r300903): do not use C99 Static array indices

The proper conditional support for that feature has not been MFC-ed yet
and GCC is quirky about it. See r314101.

This is a direct commit.

Reported by: gjb

314335 27-Feb-2017 avg

MFC r300966: Retune SHA2 code for improved performance on CPUs with more ILP...

314332 27-Feb-2017 avg

MFC r300903: Implement SHA-512 truncated (224 and 256 bits)

314327 27-Feb-2017 avg

MFC r292782: Replace sys/crypto/sha2/sha2.c with lib/libmd/sha512c.c

cperciva's libmd implementation is 5-30% faster
The same was done for SHA256 previously in r263218

Approved by: secteam

314143 23-Feb-2017 avg

MFC r263215,r263218,r285366: replace the kernel sha256 code

r263215 copy these files from lib/libmd in preperation for moving these
files into the kernel...

r263218 replace the kernel's version w/ cperciva's implementation...

r285366 Complete the move that was started w/ r263218..

Note that the last change is out of order with r282726 that I am going
to merge as well.

Many thanks to cperciva for the more efficient code and to jmg for
integrating it into the kernel.

276486 31-Dec-2014 ngie

MFC r264400,r265836:

r264400:

NO_MAN= has been deprecated in favor of MAN= for some time, go ahead
and finish the job. ncurses is now the only Makefile in the tree that
uses it since it wasn't a simple mechanical change, and will be
addressed in a future commit.

r265836:

Remove last two NO_MAN= in the tree. In both of these cases, MAN= is
what is needed.


/freebsd-10-stable/cddl/usr.bin/sgsmsg/Makefile
/freebsd-10-stable/cddl/usr.bin/zinject/Makefile
/freebsd-10-stable/cddl/usr.bin/zlook/Makefile
/freebsd-10-stable/cddl/usr.bin/ztest/Makefile
/freebsd-10-stable/cddl/usr.sbin/zhack/Makefile
/freebsd-10-stable/contrib/libucl/Makefile.am
/freebsd-10-stable/contrib/libucl/doc/Makefile.am
/freebsd-10-stable/contrib/libucl/tests/Makefile.am
/freebsd-10-stable/contrib/libucl/utils/Makefile.am
/freebsd-10-stable/contrib/ofed/usr.bin/ibsendtrap/Makefile
/freebsd-10-stable/contrib/ofed/usr.lib/libsdp/Makefile
/freebsd-10-stable/crypto/heimdal/appl/Makefile.am
/freebsd-10-stable/crypto/heimdal/appl/ftp/Makefile.am
/freebsd-10-stable/crypto/heimdal/appl/ftp/common/Makefile.am
/freebsd-10-stable/crypto/heimdal/lib/Makefile.am
/freebsd-10-stable/crypto/heimdal/lib/ipc/Makefile.am
/freebsd-10-stable/games/fortune/unstr/Makefile
/freebsd-10-stable/games/ppt/Makefile
/freebsd-10-stable/games/primes/Makefile
/freebsd-10-stable/gnu/usr.bin/cc/c++/Makefile
/freebsd-10-stable/gnu/usr.bin/cc/c++filt/Makefile
/freebsd-10-stable/gnu/usr.bin/cc/cc1/Makefile
/freebsd-10-stable/gnu/usr.bin/cc/cc1plus/Makefile
/freebsd-10-stable/gnu/usr.bin/cc/collect2/Makefile
/freebsd-10-stable/gnu/usr.bin/cc/protoize/Makefile
/freebsd-10-stable/gnu/usr.bin/gdb/Makefile.inc
/freebsd-10-stable/gnu/usr.bin/gdb/gdbtui/Makefile
/freebsd-10-stable/gnu/usr.bin/groff/src/devices/grohtml/Makefile
/freebsd-10-stable/gnu/usr.bin/groff/src/preproc/html/Makefile
/freebsd-10-stable/kerberos5/libexec/digest-service/Makefile
/freebsd-10-stable/kerberos5/libexec/ipropd-slave/Makefile
/freebsd-10-stable/kerberos5/tools/asn1_compile/Makefile
/freebsd-10-stable/kerberos5/tools/make-roken/Makefile
/freebsd-10-stable/kerberos5/tools/slc/Makefile
/freebsd-10-stable/kerberos5/usr.bin/hxtool/Makefile
/freebsd-10-stable/kerberos5/usr.bin/ksu/Makefile
/freebsd-10-stable/lib/libarchive/test/Makefile
/freebsd-10-stable/lib/libauditd/Makefile
/freebsd-10-stable/lib/libproc/Makefile
/freebsd-10-stable/lib/libproc/test/t1-bkpt/Makefile
/freebsd-10-stable/lib/libproc/test/t2-name2map/Makefile
/freebsd-10-stable/lib/libproc/test/t3-name2sym/Makefile
/freebsd-10-stable/lib/ncurses/form/Makefile
/freebsd-10-stable/lib/ncurses/menu/Makefile
/freebsd-10-stable/lib/ncurses/ncurses/Makefile
/freebsd-10-stable/lib/ncurses/panel/Makefile
/freebsd-10-stable/libexec/bootpd/bootpgw/Makefile
/freebsd-10-stable/libexec/ulog-helper/Makefile
/freebsd-10-stable/release/picobsd/tinyware/aps/Makefile
/freebsd-10-stable/release/picobsd/tinyware/help/Makefile
/freebsd-10-stable/release/picobsd/tinyware/msg/Makefile
/freebsd-10-stable/release/picobsd/tinyware/ns/Makefile
/freebsd-10-stable/release/picobsd/tinyware/oinit/Makefile
/freebsd-10-stable/release/picobsd/tinyware/simple_httpd/Makefile
/freebsd-10-stable/release/picobsd/tinyware/sps/Makefile
/freebsd-10-stable/release/picobsd/tinyware/view/Makefile
/freebsd-10-stable/release/picobsd/tinyware/vm/Makefile
/freebsd-10-stable/rescue/rescue/Makefile
/freebsd-10-stable/sbin/geom/Makefile
/freebsd-10-stable/sbin/rtsol/Makefile
/freebsd-10-stable/secure/lib/libcrypto/engines/lib4758cca/Makefile
/freebsd-10-stable/share/examples/FreeBSD_version/Makefile
/freebsd-10-stable/share/examples/find_interface/Makefile
/freebsd-10-stable/share/examples/kld/cdev/test/Makefile
/freebsd-10-stable/share/examples/kld/syscall/test/Makefile
/freebsd-10-stable/share/examples/libvgl/Makefile
/freebsd-10-stable/share/examples/perfmon/Makefile
/freebsd-10-stable/share/examples/ppi/Makefile
/freebsd-10-stable/share/mk/bsd.README
/freebsd-10-stable/share/mk/bsd.test.mk
/freebsd-10-stable/sys/boot/amd64/boot1.efi/Makefile
/freebsd-10-stable/sys/boot/amd64/efi/Makefile
/freebsd-10-stable/sys/boot/arm/at91/boot0/Makefile
/freebsd-10-stable/sys/boot/arm/at91/boot0iic/Makefile
/freebsd-10-stable/sys/boot/arm/at91/boot0spi/Makefile
/freebsd-10-stable/sys/boot/arm/at91/boot2/Makefile
/freebsd-10-stable/sys/boot/arm/at91/bootiic/Makefile
/freebsd-10-stable/sys/boot/arm/at91/bootspi/Makefile
/freebsd-10-stable/sys/boot/arm/at91/libat91/Makefile
/freebsd-10-stable/sys/boot/arm/ixp425/boot2/Makefile
/freebsd-10-stable/sys/boot/i386/boot0/Makefile
/freebsd-10-stable/sys/boot/i386/btx/btx/Makefile
/freebsd-10-stable/sys/boot/i386/btx/btxldr/Makefile
/freebsd-10-stable/sys/boot/i386/btx/lib/Makefile
/freebsd-10-stable/sys/boot/i386/cdboot/Makefile
/freebsd-10-stable/sys/boot/i386/kgzldr/Makefile
/freebsd-10-stable/sys/boot/i386/mbr/Makefile
/freebsd-10-stable/sys/boot/i386/pmbr/Makefile
/freebsd-10-stable/sys/boot/i386/zfsloader/Makefile
/freebsd-10-stable/sys/boot/ia64/efi/Makefile
/freebsd-10-stable/sys/boot/ia64/ski/Makefile
/freebsd-10-stable/sys/boot/libstand32/Makefile
/freebsd-10-stable/sys/boot/pc98/boot0.5/Makefile
/freebsd-10-stable/sys/boot/pc98/boot0/Makefile
/freebsd-10-stable/sys/boot/pc98/btx/btx/Makefile
/freebsd-10-stable/sys/boot/pc98/btx/btxldr/Makefile
/freebsd-10-stable/sys/boot/pc98/btx/lib/Makefile
/freebsd-10-stable/sys/boot/pc98/cdboot/Makefile
/freebsd-10-stable/sys/boot/pc98/kgzldr/Makefile
/freebsd-10-stable/sys/boot/powerpc/boot1.chrp/Makefile
/freebsd-10-stable/sys/boot/powerpc/uboot/Makefile
/freebsd-10-stable/sys/boot/sparc64/boot1/Makefile
/freebsd-10-stable/sys/boot/userboot/libstand/Makefile
/freebsd-10-stable/sys/boot/userboot/test/Makefile
/freebsd-10-stable/sys/boot/userboot/userboot/Makefile
rijndael/Makefile
/freebsd-10-stable/sys/dev/aic7xxx/aicasm/Makefile
/freebsd-10-stable/sys/dev/patm/genrtab/Makefile
/freebsd-10-stable/tests/sys/netinet/Makefile
/freebsd-10-stable/tools/KSE/ksetest/Makefile
/freebsd-10-stable/tools/KSE/rr/Makefile
/freebsd-10-stable/tools/bsdbox/Makefile
/freebsd-10-stable/tools/diag/dumpvfscache/Makefile
/freebsd-10-stable/tools/diag/localeck/Makefile
/freebsd-10-stable/tools/regression/acct/Makefile
/freebsd-10-stable/tools/regression/aio/aiop/Makefile
/freebsd-10-stable/tools/regression/aio/aiotest/Makefile
/freebsd-10-stable/tools/regression/aio/kqueue/Makefile
/freebsd-10-stable/tools/regression/aio/kqueue/lio/Makefile
/freebsd-10-stable/tools/regression/audit/audit_pipe_ioctl/Makefile
/freebsd-10-stable/tools/regression/doat/Makefile
/freebsd-10-stable/tools/regression/environ/Makefile.envctl
/freebsd-10-stable/tools/regression/environ/Makefile.retention
/freebsd-10-stable/tools/regression/environ/Makefile.timings
/freebsd-10-stable/tools/regression/ethernet/ethermulti/Makefile
/freebsd-10-stable/tools/regression/execve/Makefile
/freebsd-10-stable/tools/regression/fifo/fifo_create/Makefile
/freebsd-10-stable/tools/regression/fifo/fifo_io/Makefile
/freebsd-10-stable/tools/regression/fifo/fifo_misc/Makefile
/freebsd-10-stable/tools/regression/fifo/fifo_open/Makefile
/freebsd-10-stable/tools/regression/file/dup/Makefile
/freebsd-10-stable/tools/regression/file/flock/Makefile
/freebsd-10-stable/tools/regression/file/ftruncate/Makefile
/freebsd-10-stable/tools/regression/file/newfileops_on_fork/Makefile
/freebsd-10-stable/tools/regression/filemon/Makefile
/freebsd-10-stable/tools/regression/fsx/Makefile
/freebsd-10-stable/tools/regression/gaithrstress/Makefile
/freebsd-10-stable/tools/regression/geom/ConfCmp/Makefile
/freebsd-10-stable/tools/regression/geom/MdLoad/Makefile
/freebsd-10-stable/tools/regression/include/stdatomic/Makefile
/freebsd-10-stable/tools/regression/include/tgmath/Makefile
/freebsd-10-stable/tools/regression/kgssapi/Makefile
/freebsd-10-stable/tools/regression/kqueue/Makefile
/freebsd-10-stable/tools/regression/kthread/kld/Makefile
/freebsd-10-stable/tools/regression/lib/libc/resolv/Makefile
/freebsd-10-stable/tools/regression/mac/mac_bsdextended/Makefile
/freebsd-10-stable/tools/regression/mlock/Makefile
/freebsd-10-stable/tools/regression/mmap/Makefile
/freebsd-10-stable/tools/regression/mqueue/mqtest1/Makefile
/freebsd-10-stable/tools/regression/mqueue/mqtest2/Makefile
/freebsd-10-stable/tools/regression/mqueue/mqtest3/Makefile
/freebsd-10-stable/tools/regression/mqueue/mqtest4/Makefile
/freebsd-10-stable/tools/regression/mqueue/mqtest5/Makefile
/freebsd-10-stable/tools/regression/netinet/arphold/Makefile
/freebsd-10-stable/tools/regression/netinet/ipbroadcast/Makefile
/freebsd-10-stable/tools/regression/netinet/ipdivert/Makefile
/freebsd-10-stable/tools/regression/netinet/ipmulticast/Makefile
/freebsd-10-stable/tools/regression/netinet/ipsockopt/Makefile
/freebsd-10-stable/tools/regression/netinet/msocket/Makefile
/freebsd-10-stable/tools/regression/netinet/msocket_ifnet_remove/Makefile
/freebsd-10-stable/tools/regression/netinet/rawconnect/Makefile
/freebsd-10-stable/tools/regression/netinet/tcpconnect/Makefile
/freebsd-10-stable/tools/regression/netinet/tcpdrop/Makefile
/freebsd-10-stable/tools/regression/netinet/tcpfullwindowrst/Makefile
/freebsd-10-stable/tools/regression/netinet/tcpsockclosebeforeaccept/Makefile
/freebsd-10-stable/tools/regression/netinet/tcpsocktimewait/Makefile
/freebsd-10-stable/tools/regression/netinet/tcpstream/Makefile
/freebsd-10-stable/tools/regression/netinet/udpconnectjail/Makefile
/freebsd-10-stable/tools/regression/netinet/udpzerobyte/Makefile
/freebsd-10-stable/tools/regression/netinet6/icmp6_filter/Makefile
/freebsd-10-stable/tools/regression/netinet6/inet6_rth/Makefile
/freebsd-10-stable/tools/regression/netinet6/ip6_sockets/Makefile
/freebsd-10-stable/tools/regression/nfsmmap/test1/Makefile
/freebsd-10-stable/tools/regression/nfsmmap/test2/Makefile
/freebsd-10-stable/tools/regression/p1003_1b/Makefile
/freebsd-10-stable/tools/regression/pipe/Makefile
/freebsd-10-stable/tools/regression/posixsem/Makefile
/freebsd-10-stable/tools/regression/posixsem2/Makefile
/freebsd-10-stable/tools/regression/posixshm/Makefile
/freebsd-10-stable/tools/regression/pthread/cv_cancel1/Makefile
/freebsd-10-stable/tools/regression/pthread/mutex_isowned_np/Makefile
/freebsd-10-stable/tools/regression/rpcsec_gss/Makefile
/freebsd-10-stable/tools/regression/security/access/Makefile
/freebsd-10-stable/tools/regression/security/cap_test/Makefile
/freebsd-10-stable/tools/regression/security/open_to_operation/Makefile
/freebsd-10-stable/tools/regression/security/proc_to_proc/Makefile
/freebsd-10-stable/tools/regression/sigqueue/sigqtest1/Makefile
/freebsd-10-stable/tools/regression/sigqueue/sigqtest2/Makefile
/freebsd-10-stable/tools/regression/sockets/accept_fd_leak/Makefile
/freebsd-10-stable/tools/regression/sockets/accf_data_attach/Makefile
/freebsd-10-stable/tools/regression/sockets/fstat/Makefile
/freebsd-10-stable/tools/regression/sockets/kqueue/Makefile
/freebsd-10-stable/tools/regression/sockets/listen_backlog/Makefile
/freebsd-10-stable/tools/regression/sockets/listenclose/Makefile
/freebsd-10-stable/tools/regression/sockets/pr_atomic/Makefile
/freebsd-10-stable/tools/regression/sockets/reconnect/Makefile
/freebsd-10-stable/tools/regression/sockets/rtsocket/Makefile
/freebsd-10-stable/tools/regression/sockets/sblock/Makefile
/freebsd-10-stable/tools/regression/sockets/sendfile/Makefile
/freebsd-10-stable/tools/regression/sockets/shutdown/Makefile
/freebsd-10-stable/tools/regression/sockets/sigpipe/Makefile
/freebsd-10-stable/tools/regression/sockets/so_setfib/Makefile
/freebsd-10-stable/tools/regression/sockets/socketpair/Makefile
/freebsd-10-stable/tools/regression/sockets/unix_bindconnect/Makefile
/freebsd-10-stable/tools/regression/sockets/unix_close_race/Makefile
/freebsd-10-stable/tools/regression/sockets/unix_cmsg/Makefile
/freebsd-10-stable/tools/regression/sockets/unix_gc/Makefile
/freebsd-10-stable/tools/regression/sockets/unix_passfd/Makefile
/freebsd-10-stable/tools/regression/sockets/unix_sendtorace/Makefile
/freebsd-10-stable/tools/regression/sockets/unix_socket/Makefile
/freebsd-10-stable/tools/regression/sockets/unix_sorflush/Makefile
/freebsd-10-stable/tools/regression/sockets/zerosend/Makefile
/freebsd-10-stable/tools/regression/sysvmsg/Makefile
/freebsd-10-stable/tools/regression/sysvsem/Makefile
/freebsd-10-stable/tools/regression/sysvshm/Makefile
/freebsd-10-stable/tools/regression/tls/ttls1/Makefile
/freebsd-10-stable/tools/regression/tls/ttls2/Makefile
/freebsd-10-stable/tools/regression/tls/ttls4/Makefile
/freebsd-10-stable/tools/regression/tmpfs/Makefile
/freebsd-10-stable/tools/regression/ufs/uprintf/Makefile
/freebsd-10-stable/tools/test/auxinfo/Makefile
/freebsd-10-stable/tools/test/iconv/gnu/Makefile
/freebsd-10-stable/tools/test/iconv/posix/Makefile
/freebsd-10-stable/tools/test/iconv/refgen/Makefile
/freebsd-10-stable/tools/test/iconv/tablegen/Makefile
/freebsd-10-stable/tools/test/malloc/Makefile
/freebsd-10-stable/tools/test/netfibs/Makefile
/freebsd-10-stable/tools/test/ppsapi/Makefile
/freebsd-10-stable/tools/test/ptrace/Makefile
/freebsd-10-stable/tools/test/upsdl/Makefile
/freebsd-10-stable/tools/tools/aac/Makefile
/freebsd-10-stable/tools/tools/ath/Makefile.inc
/freebsd-10-stable/tools/tools/ath/ath_ee_9287_print/Makefile
/freebsd-10-stable/tools/tools/ath/ath_ee_9300_print/Makefile
/freebsd-10-stable/tools/tools/ath/ath_ee_v14_print/Makefile
/freebsd-10-stable/tools/tools/ath/ath_ee_v4k_print/Makefile
/freebsd-10-stable/tools/tools/ath/athstats/Makefile
/freebsd-10-stable/tools/tools/atsectl/Makefile
/freebsd-10-stable/tools/tools/bootparttest/Makefile
/freebsd-10-stable/tools/tools/cfi/Makefile
/freebsd-10-stable/tools/tools/cxgbetool/Makefile
/freebsd-10-stable/tools/tools/cxgbtool/Makefile
/freebsd-10-stable/tools/tools/drm/radeon/mkregtable/Makefile
/freebsd-10-stable/tools/tools/find-sb/Makefile
/freebsd-10-stable/tools/tools/gdb_regofs/Makefile
/freebsd-10-stable/tools/tools/ifinfo/Makefile
/freebsd-10-stable/tools/tools/ifpifa/Makefile
/freebsd-10-stable/tools/tools/ipw/Makefile
/freebsd-10-stable/tools/tools/iwi/Makefile
/freebsd-10-stable/tools/tools/mfi/Makefile
/freebsd-10-stable/tools/tools/mwl/mwldebug/Makefile
/freebsd-10-stable/tools/tools/mwl/mwlstats/Makefile
/freebsd-10-stable/tools/tools/ncpus/Makefile
/freebsd-10-stable/tools/tools/net80211/stumbler/Makefile
/freebsd-10-stable/tools/tools/net80211/w00t/Makefile.inc
/freebsd-10-stable/tools/tools/net80211/wesside/dics/Makefile
/freebsd-10-stable/tools/tools/net80211/wesside/udps/Makefile
/freebsd-10-stable/tools/tools/net80211/wesside/wesside/Makefile
/freebsd-10-stable/tools/tools/net80211/wlaninject/Makefile
/freebsd-10-stable/tools/tools/net80211/wlanstats/Makefile
/freebsd-10-stable/tools/tools/net80211/wlantxtime/Makefile
/freebsd-10-stable/tools/tools/net80211/wlanwatch/Makefile
/freebsd-10-stable/tools/tools/net80211/wlanwds/Makefile
/freebsd-10-stable/tools/tools/netmap/Makefile
/freebsd-10-stable/tools/tools/netrate/http/Makefile
/freebsd-10-stable/tools/tools/netrate/httpd/Makefile
/freebsd-10-stable/tools/tools/netrate/juggle/Makefile
/freebsd-10-stable/tools/tools/netrate/netblast/Makefile
/freebsd-10-stable/tools/tools/netrate/netreceive/Makefile
/freebsd-10-stable/tools/tools/netrate/netsend/Makefile
/freebsd-10-stable/tools/tools/netrate/tcpconnect/Makefile
/freebsd-10-stable/tools/tools/netrate/tcpp/Makefile
/freebsd-10-stable/tools/tools/netrate/tcpreceive/Makefile
/freebsd-10-stable/tools/tools/npe/npestats/Makefile
/freebsd-10-stable/tools/tools/nxge/Makefile
/freebsd-10-stable/tools/tools/pciroms/Makefile
/freebsd-10-stable/tools/tools/pirtool/Makefile
/freebsd-10-stable/tools/tools/syscall_timing/Makefile
/freebsd-10-stable/tools/tools/tionxcl/Makefile
/freebsd-10-stable/tools/tools/umastat/Makefile
/freebsd-10-stable/tools/tools/vxge/Makefile
/freebsd-10-stable/tools/tools/wtap/vis_map/Makefile
/freebsd-10-stable/tools/tools/wtap/wtap/Makefile
/freebsd-10-stable/tools/tools/zfsboottest/Makefile
/freebsd-10-stable/usr.bin/bzip2recover/Makefile
/freebsd-10-stable/usr.bin/clang/clang-tblgen/Makefile
/freebsd-10-stable/usr.bin/clang/llvm-mc/Makefile
/freebsd-10-stable/usr.bin/clang/llvm-objdump/Makefile
/freebsd-10-stable/usr.bin/clang/llvm-rtdyld/Makefile
/freebsd-10-stable/usr.bin/clang/macho-dump/Makefile
/freebsd-10-stable/usr.bin/cpio/test/Makefile
/freebsd-10-stable/usr.bin/dirname/Makefile
/freebsd-10-stable/usr.bin/locate/bigram/Makefile
/freebsd-10-stable/usr.bin/locate/code/Makefile
/freebsd-10-stable/usr.bin/mkcsmapper_static/Makefile
/freebsd-10-stable/usr.bin/mkesdb_static/Makefile
/freebsd-10-stable/usr.bin/svn/svn/Makefile
/freebsd-10-stable/usr.bin/svn/svnadmin/Makefile
/freebsd-10-stable/usr.bin/svn/svndumpfilter/Makefile
/freebsd-10-stable/usr.bin/svn/svnlook/Makefile
/freebsd-10-stable/usr.bin/svn/svnmucc/Makefile
/freebsd-10-stable/usr.bin/svn/svnrdump/Makefile
/freebsd-10-stable/usr.bin/svn/svnserve/Makefile
/freebsd-10-stable/usr.bin/svn/svnsync/Makefile
/freebsd-10-stable/usr.bin/svn/svnversion/Makefile
/freebsd-10-stable/usr.bin/tar/test/Makefile
/freebsd-10-stable/usr.bin/unexpand/Makefile
/freebsd-10-stable/usr.bin/uudecode/Makefile
/freebsd-10-stable/usr.bin/vgrind/RETEST/Makefile
/freebsd-10-stable/usr.bin/xlint/lint2/Makefile
/freebsd-10-stable/usr.sbin/bhyvectl/Makefile
/freebsd-10-stable/usr.sbin/bootparamd/callbootd/Makefile
/freebsd-10-stable/usr.sbin/bsdinstall/distextract/Makefile
/freebsd-10-stable/usr.sbin/bsdinstall/distfetch/Makefile
/freebsd-10-stable/usr.sbin/bsdinstall/scripts/Makefile
/freebsd-10-stable/usr.sbin/crunch/examples/Makefile
/freebsd-10-stable/usr.sbin/ctm/ctm_dequeue/Makefile
/freebsd-10-stable/usr.sbin/ctm/ctm_smail/Makefile
/freebsd-10-stable/usr.sbin/ctm/mkCTM/Makefile
/freebsd-10-stable/usr.sbin/fifolog/fifolog_reader/Makefile
/freebsd-10-stable/usr.sbin/fifolog/fifolog_writer/Makefile
/freebsd-10-stable/usr.sbin/lpr/filters.ru/koi2855/Makefile
/freebsd-10-stable/usr.sbin/lpr/filters.ru/koi2alt/Makefile
/freebsd-10-stable/usr.sbin/lpr/filters/Makefile
/freebsd-10-stable/usr.sbin/ntp/ntp-keygen/Makefile
/freebsd-10-stable/usr.sbin/ntp/ntpd/Makefile
/freebsd-10-stable/usr.sbin/ntp/ntpdate/Makefile
/freebsd-10-stable/usr.sbin/ntp/ntpdc/Makefile
/freebsd-10-stable/usr.sbin/ntp/ntpq/Makefile
/freebsd-10-stable/usr.sbin/ntp/ntptime/Makefile
/freebsd-10-stable/usr.sbin/portsnap/make_index/Makefile
/freebsd-10-stable/usr.sbin/portsnap/phttpget/Makefile
/freebsd-10-stable/usr.sbin/rpc.ypupdated/Makefile
268034 30-Jun-2014 kib

MFC r267815:
Put the aesni_cipher_setup() and aesni_cipher_process() functions into
the file which is compiled with SSE disabled.

268033 30-Jun-2014 kib

MFC r267767:
Add FPU_KERN_KTHR flag to fpu_kern_enter(9).
Apply the flag to padlock(4) and aesni(4).
In aesni_cipher_process(), do not leak FPU context state on error.

258623 26-Nov-2013 jmg

MFC r258399,258492:
mark aesni module _SYNC, improves performance ~27%...

Approved by: re (glebius)

258212 16-Nov-2013 jmg

MFC r257757:
fix issues w/ AES-NI on unaligned data blocks...

Approved by: re (kib)

256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


255187 03-Sep-2013 jmg

Use the fact that the AES-NI instructions can be pipelined to improve
performance... Use SSE2 instructions for calculating the XTS tweek
factor... Let the compiler do more work and handle register allocation
by using intrinsics, now only the key schedule is in assembly...

Replace .byte hard coded instructions w/ the proper instructions now
that both clang and gcc support them...

On my machine, pulling the code to userland I saw performance go from
~150MB/sec to 2GB/sec in XTS mode. GELI on GNOP saw a more modest
increase of about 3x due to other system overhead (geom and
opencrypto)...

These changes allow almost full disk io rate w/ geli...

Reviewed by: -current, -security
Thanks to: Mike Hamburg for the XTS tweek algorithm


253214 11-Jul-2013 andre

Fix const propagation issues to make GCC happy.

Submitted by: Michael Butler <imb@protected-networks.net>


253208 11-Jul-2013 andre

SipHash is a cryptographically strong pseudo-random function (a.k.a. keyed
hash function) optimized for speed on short messages returning a 64bit hash/
digest value.

SipHash is simpler and much faster than other secure MACs and competitive
in speed with popular non-cryptographic hash functions. It uses a 128-bit
key without the hidden cost of a key expansion step. SipHash iterates a
simple round function consisting of four additions, four xors, and six
rotations, interleaved with xors of message blocks for a pre-defined number
of compression and finalization rounds. The absence of secret load/store
addresses or secret branch conditions avoid timing attacks. No state is
shared between messages. Hashing is deterministic and doesn't use nonces.
It is not susceptible to length extension attacks.

Target applications include network traffic authentication, message
authentication (MAC) and hash-tables protection against hash-flooding
denial-of-service attacks.

The number of update/finalization rounds is defined during initialization:

SipHash24_Init() for the fast and reasonable strong version.
SipHash48_Init() for the strong version (half as fast).

SipHash usage is similar to other hash functions:

struct SIPHASH_CTX ctx;
char *k = "16bytes long key"
char *s = "string";
uint64_t h = 0;
SipHash24_Init(&ctx);
SipHash_SetKey(&ctx, k);
SipHash_Update(&ctx, s, strlen(s));
SipHash_Final(&h, &ctx); /* or */
h = SipHash_End(&ctx); /* or */
h = SipHash24(&ctx, k, s, strlen(s));

It was designed by Jean-Philippe Aumasson and Daniel J. Bernstein and
is described in the paper "SipHash: a fast short-input PRF", 2012.09.18:
https://131002.net/siphash/siphash.pdf
Permanent ID: b9a943a805fbfc6fde808af9fc0ecdfa

Implemented by: andre (based on the paper)
Reviewed by: cperciva


253119 09-Jul-2013 delphij

Sync with KAME.

MFC after: 1 month


253090 09-Jul-2013 rmh

Allow assert() to operate correctly when building userland code.


247061 20-Feb-2013 pjd

When porting XTS-related code from OpenBSD I forgot to update copyright (only
OpenBSD was credited in one of two commits). Fix it.

Reported by: Theo de Raadt <deraadt@cvs.openbsd.org>
Reviewed by: Damien Miller <djm@mindrot.org>


241394 10-Oct-2012 kevlo

Revert previous commit...

Pointyhat to: kevlo (myself)


241370 09-Oct-2012 kevlo

Prefer NULL over 0 for pointers


230426 21-Jan-2012 kib

Add support for the extended FPU states on amd64, both for native
64bit and 32bit ABIs. As a side-effect, it enables AVX on capable
CPUs.

In particular:

- Query the CPU support for XSAVE, list of the supported extensions
and the required size of FPU save area. The hw.use_xsave tunable is
provided for disabling XSAVE, and hw.xsave_mask may be used to
select the enabled extensions.

- Remove the FPU save area from PCB and dynamically allocate the
(run-time sized) user save area on the top of the kernel stack,
right above the PCB. Reorganize the thread0 PCB initialization to
postpone it after BSP is queried for save area size.

- The dumppcb, stoppcbs and susppcbs now do not carry the FPU state as
well. FPU state is only useful for suspend, where it is saved in
dynamically allocated suspfpusave area.

- Use XSAVE and XRSTOR to save/restore FPU state, if supported and
enabled.

- Define new mcontext_t flag _MC_HASFPXSTATE, indicating that
mcontext_t has a valid pointer to out-of-struct extended FPU
state. Signal handlers are supplied with stack-allocated fpu
state. The sigreturn(2) and setcontext(2) syscall honour the flag,
allowing the signal handlers to inspect and manipilate extended
state in the interrupted context.

- The getcontext(2) never returns extended state, since there is no
place in the fixed-sized mcontext_t to place variable-sized save
area. And, since mcontext_t is embedded into ucontext_t, makes it
impossible to fix in a reasonable way. Instead of extending
getcontext(2) syscall, provide a sysarch(2) facility to query
extended FPU state.

- Add ptrace(2) support for getting and setting extended state; while
there, implement missed PT_I386_{GET,SET}XMMREGS for 32bit binaries.

- Change fpu_kern KPI to not expose struct fpu_kern_ctx layout to
consumers, making it opaque. Internally, struct fpu_kern_ctx now
contains a space for the extended state. Convert in-kernel consumers
of fpu_kern KPI both on i386 and amd64.

First version of the support for AVX was submitted by Tim Bird
<tim.bird am sony com> on behalf of Sony. This version was written
from scratch.

Tested by: pho (previous version), Yamagi Burmeister <lists yamagi org>
MFC after: 1 month


226839 27-Oct-2011 pjd

Update Copyright.

MFC after: 3 days


226837 27-Oct-2011 pjd

Improve AES-NI performance for AES-XTS:
- Operate on uint64_t types when doing XORing, etc. instead of uint8_t.
- Don't bzero() temporary block for every AES block. Do it once for entire
data block.
- AES-NI is available only on little endian architectures. Simplify code
that takes block number from IV.

Benchmarks:

Memory-backed md(4) device, software AES-XTS, 4kB sector:

# dd if=/dev/md0.eli bs=1m
59.61MB/s

Memory-backed md(4) device, old AES-NI AES-XTS, 4kB sector:

# dd if=/dev/md0.eli bs=1m
97.29MB/s

Memory-backed md(4) device, new AES-NI AES-XTS, 4kB sector:

# dd if=/dev/md0.eli bs=1m
221.26MB/s

127% performance improvement between old and new code.

Harddisk, raw speed:

# dd if=/dev/ada0 bs=1m
137.63MB/s

Harddisk, software AES-XTS, 4kB sector:

# dd if=/dev/ada0.eli bs=1m
47.83MB/s (34% of raw disk speed)

Harddisk, old AES-NI AES-XTS, 4kB sector:

# dd if=/dev/ada0.eli bs=1m
68.33MB/s (49% of raw disk speed)

Harddisk, new AES-NI AES-XTS, 4kB sector:

# dd if=/dev/ada0.eli bs=1m
108.35MB/s (78% of raw disk speed)

58% performance improvement between old and new code.

As a side-note, GELI with AES-NI using AES-CBC can achive native disk speed.

MFC after: 3 days


219178 02-Mar-2011 kib

Fix a bug in the result of manual assembly.

Reported by: Stefan Grundmann <sg2342 googlemail com>
PR: kern/155118
MFC after: 3 days


218918 21-Feb-2011 brucec

Make private functions static.

PR: kern/43611
Submitted by: Matt Emmerton <matt at gsicomp.on.ca>
Reviewed by: kib
MFC after: 3 days


215942 27-Nov-2010 kib

Remove DEBUG sections.

MFC after: 3 days


215864 26-Nov-2010 kib

MFaesni r215427:
Only save FPU context when not executing in the context of the crypto
thread.

Tested by: Mike Tancsa
MFC after: 1 week


215427 17-Nov-2010 kib

Only save FPU context when not executing in the context of the crypto
thread.

Tested by: Mike Tancsa


213797 13-Oct-2010 dim

Change two missed instances of 'retq' in aeskeys_i386.S to 'retl', which
makes it possible to assemble this file with gas from newer binutils.

Reviewed by: kib


213166 25-Sep-2010 pjd

Fix two copy&paste bugs.

MFC after: 2 weeks


213069 23-Sep-2010 pjd

Add support for CRYPTO_AES_XTS.

MFC after: 1 week


213066 23-Sep-2010 pjd

Add support for CRD_F_KEY_EXPLICIT flag.

MFC after: 1 week


213064 23-Sep-2010 pjd

Simplify code a bit.

MFC after: 1 week


210409 23-Jul-2010 kib

Crypto(4) driver for AESNI.

The aeskeys_{amd64,i386}.S content was mostly obtained from OpenBSD,
no objections to the license from core.

Hardware provided by: Sentex Communications
Tested by: fabient, pho (previous versions)
MFC after: 1 month


208834 05-Jun-2010 kib

Use the fpu_kern_enter() interface to properly separate usermode FPU
context from in-kernel execution of padlock instructions and to handle
spurious FPUDNA exceptions that sometime are raised when doing padlock
calculations.

Globally mark crypto(9) kthread as using FPU.

Reviewed by: pjd
Hardware provided by: Sentex Communications
Tested by: pho
PR: amd64/135014
MFC after: 1 month


192883 27-May-2009 vanhu

Changed to M_NOWAIT when reallocing psc_buf in padlock_sha_update(),
as we already hold the non sleepable crypto_driver_mutex.

Approved by: gnn(mentor)
Obtained from: NETASQ
MFC after: 2 weeks


188171 05-Feb-2009 imp

identify routine takes driver_t *, not device_t *.


187112 12-Jan-2009 jkim

Connect padlock(4) to amd64 build for VIA Nano processors.


186179 16-Dec-2008 mav

Avoid 256 integer divisions per rc4_init() call. Replace it with using
separate index variable.

It gives more then double rc4_init() performance increase on tested i386 P4.
It also gives about 15% speedup to PPTP VPN with stateless MPPE encryption
(by ng_mppc) which calls rc4_init() for every packet.


185026 17-Nov-2008 philip

Fix a potential NULL-pointer dereference in padlock(4).

Spotted by: Coverity (via pjd)
MFC after: 1 week


181478 09-Aug-2008 pjd

Simplify session selection/allocation.


181477 09-Aug-2008 pjd

- Fix freeing session on newsession failure.
- Update copyright years.


181476 09-Aug-2008 pjd

Implify sessions freeing loop.


181475 09-Aug-2008 pjd

We don't have to drop a lock around malloc(M_NOWAIT).


181474 09-Aug-2008 pjd

When freeing session, restore its ID after zeroing memory.

Bug tracked down by: Patrick Lamaiziere <patfbsd@davenulle.org>


181473 09-Aug-2008 pjd

Sessions in-use are at the end of the queue, so use TAILQ_FOREACH_REVERSE()
when looking for them.

Idea from: Patrick Lamaiziere <patfbsd@davenulle.org>


180626 20-Jul-2008 pjd

Convert lock that protects sessions list from a mutex to a rwlock.
Now we can use read lock in fast path (padlock_process()).


175360 15-Jan-2008 sobomax

Make test00 compilable again.


171167 03-Jul-2007 gnn

Commit the change from FAST_IPSEC to IPSEC. The FAST_IPSEC
option is now deprecated, as well as the KAME IPsec code.
What was FAST_IPSEC is now IPSEC.

Approved by: re
Sponsored by: Secure Computing


169425 09-May-2007 gnn

Integrate the Camellia Block Cipher. For more information see RFC 4132
and its bibliography.

Submitted by: Tomoyuki Okazaki <okazaki at kick dot gr dot jp>
MFC after: 1 month


167755 21-Mar-2007 sam

Overhaul driver/subsystem api's:
o make all crypto drivers have a device_t; pseudo drivers like the s/w
crypto driver synthesize one
o change the api between the crypto subsystem and drivers to use kobj;
cryptodev_if.m defines this api
o use the fact that all crypto drivers now have a device_t to add support
for specifying which of several potential devices to use when doing
crypto operations
o add new ioctls that allow user apps to select a specific crypto device
to use (previous ioctls maintained for compatibility)
o overhaul crypto subsystem code to eliminate lots of cruft and hide
implementation details from drivers
o bring in numerous fixes from Michale Richardson/hifn; mostly for
795x parts
o add an optional mechanism for mmap'ing the hifn 795x public key h/w
to user space for use by openssl (not enabled by default)
o update crypto test tools to use new ioctl's and add cmd line options
to specify a device to use for tests

These changes will also enable much future work on improving the core
crypto subsystem; including proper load balancing and interposing code
between the core and drivers to dispatch small operations to the s/w
driver as appropriate.

These changes were instigated by the work of Michael Richardson.

Reviewed by: pjd
Approved by: re


163602 22-Oct-2006 kevlo

Initialize T1 to silent gcc warning.

Approved by: cognet


162316 15-Sep-2006 pjd

Less magic.

MFC after: 3 days


161661 26-Aug-2006 kan

GCC 3.4.6 gets confused on this file and produces bogus warning.
Shut it up.


160785 28-Jul-2006 pjd

Remove trailing spaces.


160784 28-Jul-2006 pjd

Use existing roundup2() macro.

Suggested by: njl


160677 25-Jul-2006 pjd

Remove redundant check committed by accident.


160676 25-Jul-2006 pjd

Avoid memory allocations when the given address is already 16 bytes aligned.
Such an address can be used directly in padlock's AES.
This improves speed of geli(8) significantly:

# sysctl kern.geom.zero.clear=0
# geli onetime -s 4096 gzero
# dd if=/dev/gzero.eli of=/dev/null bs=1m count=1000

Before: 113MB/s
After: 203MB/s

BTW. If sector size is set to 128kB, I can read at 276MB/s :)


160675 25-Jul-2006 pjd

Modify PADLOCK_ALIGN() macro, so when the given address is already 16 bytes
aligned, it will be used directly, not 'address + 16'.


160674 25-Jul-2006 pjd

Style fixes.


160582 22-Jul-2006 pjd

Implement support for HMAC/SHA1 and HMAC/SHA256 acceleration found in
new VIA CPUs.
For older CPUs HMAC/SHA1 and HMAC/SHA256 (and others) will still be done
in software.

Move symmetric cryptography (currently only AES-CBC 128/192/256) to
padlock_cipher.c file. Move HMAC cryptography to padlock_hash.c file.

Hardware from: Centaur Technologies


160573 22-Jul-2006 pjd

Correct few bzero()s.

MFC after: 3 days


160568 22-Jul-2006 pjd

Set ses_ictx and ses_octx to NULL after freeing them, so we won't free
them twice.
This is possible for example in situation when session is used in
authentication context, then freed and then used in encryption context
and freed - in encryption context ses_ictx and ses_octx are not touched
at newsession time, but padlock_freesession could still try to free them
when they are not NULL.


160325 13-Jul-2006 mr

Use the already stored VIA RNG probe information
instead of probing again.
Adjust style(9) somewhat in probe.c

Reviewed by: pjd
MFC after: 1 week


159405 08-Jun-2006 pjd

Fix gratuitous compiler warning.

Reported by: Rong-en Fan <grafan@gmail.com>


159279 05-Jun-2006 pjd

- Pretend to accelerate various HMAC algorithms, so padlock(4) can be used
with fast_ipsec(4) and geli(8) authentication (comming soon).
If consumer requests only for HMAC algorithm (without encryption), return
EINVAL.
- Add support for the CRD_F_KEY_EXPLICIT flag, for both encryption and
authentication.


157899 20-Apr-2006 pjd

padlock(4) doesn't support explicitly provided keys yet.
Return an error instead of encrypting/decrypting data with a wrong key.


157684 12-Apr-2006 pjd

On padlock initialization, allocate memory with M_WAITOK.


149211 18-Aug-2005 pjd

Add VIA/ACE "PadLock" support as a crypto(9) driver.

HW donated by: Mike Tancsa <mike@sentex.net>
Most of the code obtained from: OpenBSD
MFC after: 3 days


149176 17-Aug-2005 pjd

Assert proper key size also in userland by defining KASSERT in !_KERNEL case.


149169 17-Aug-2005 cperciva

Unbreak the world build (in sbin/gbde). This file is used by both
kernel and world, so KASSERT() needs to be wrapped within an #ifdef
_KERNEL / #endif pair.

Reported by: krion, tinderbox


149143 16-Aug-2005 pjd

Check key size for rijndael, as invalid key size can lead to kernel panic.
It checked other algorithms against this bug and it seems they aren't
affected.

Reported by: Mike Tancsa <mike@sentex.net>
PR: i386/84860
Reviewed by: phk, cperciva(x2)


143431 11-Mar-2005 ume

gbde(8) is also rejndael user.

Reported by: phk


143423 11-Mar-2005 ume

just use crypto/rijndael, and nuke opencrypto/rindael.[ch].
the two became almost identical since latest KAME merge.

Discussed with: sam


143420 11-Mar-2005 ume

integrate rijndael-alg-fst.h into rijndael.h.


143418 11-Mar-2005 ume

stop including rijndael-api-fst.h from rijndael.h.
this is required to integrate opencrypto into crypto.


143410 11-Mar-2005 ume

sys/crypto/md5.[ch] is used from nowhere. So, just nuke them.


143406 11-Mar-2005 ume

refer opencrypto/cast.h directly.


143354 10-Mar-2005 ume

use cast128 in opencrypto to nuke duplicate code.


139103 21-Dec-2004 ru

Start the dreaded NOFOO -> NO_FOO conversion.

OK'ed by: core


137784 16-Nov-2004 jhb

Initiate deorbit burn sequence for 80386 support in FreeBSD: Remove
80386 (I386_CPU) support from the kernel.


136910 24-Oct-2004 ru

For variables that are only checked with defined(), don't provide
any fake value.


130443 14-Jun-2004 obrien

Use __FBSDID().


125105 27-Jan-2004 des

Fix a reentrancy issue in md5_calc().


122531 12-Nov-2003 ume

avoid module name conflict with opencrypto/rijndael.c.

Reported by: tinderbox


122509 11-Nov-2003 ume

cleanup rijndael API.
since there are naming conflicts with opencrypto, #define was
added to rename functions intend to avoid conflicts.

Obtained from: KAME


122410 10-Nov-2003 ume

rijndael-alg-fst.[ch]:
- redo updating.

rijndael-api-fst.[ch]:
- switch to use new low level rijndael api.
- stop using u8, u16 and u32.
- space cleanup.

Tested by: gbde(8) and phk's test program


121259 19-Oct-2003 phk

Add a testcase which validates that the same buffer can be passed to
rijndael_blockDecrypt() as both input and output.

This property is important because inside rijndael we can get away
with allocating just a 16 byte "work" buffer on the stack (which
is very cheap), whereas the calling code would need to allocate the
full sized buffer, and in all likelyhood would have to do so with
an expensive malloc(9).


121257 19-Oct-2003 ume

- revert to old rijndael code. new rijndael code broke gbde.
- since aes-xcbc-mac and aes-ctr require functions in new
rijndael code, aes-xcbc-mac and aes-ctr are disabled for now.


121085 14-Oct-2003 ume

Fix alignment problem on 64 bit arch.
I only tested if it doesn't break anything on i368. Since I
have no 64 bit machine, I cannot test it, actually.

Reported by: jmallett


121072 13-Oct-2003 ume

use BF_ecb_encrypt().

Obtained from: KAME


121050 12-Oct-2003 ume

simplify and update rijndael code.

Obtained from: KAME


121044 12-Oct-2003 ume

use opencrypto for RMD160.

Requested by: sam


121040 12-Oct-2003 ume

drop useless define.


121039 12-Oct-2003 ume

use bswap32() for big endian arch.

Reported by: tinderbox via kris


121022 12-Oct-2003 ume

RIPEMD160 support

Obtained from: KAME


120970 10-Oct-2003 ume

switch cast128 implementation to implementation by Steve Reid;
smaller footprint.

Obtained from: KAME


120206 18-Sep-2003 ume

one more opossite conditiion.

Reported by: "lg" <zevlg@yandex.ru>


120157 17-Sep-2003 ume

condition of padLen check was opposite.

Reported by: "lg" <zevlg@yandex.ru>
Reviewed by: Lev Walkin <vlm@netli.com>


119890 08-Sep-2003 phk

Correctly bzero the entire context, not just the first sizeof(void *) bytes.

Found by: Juergen Buchmueller <pullmoll@stop1984.com>


116174 10-Jun-2003 obrien

Use __FBSDID().


113800 21-Apr-2003 obrien

Assembly files put thru the C preprocessor need to have C style comments.


109833 25-Jan-2003 silby

Remove some unnecessary casts.


109318 15-Jan-2003 sam

make rc4 crypto support a module so other modules can depend on it

Submitted by: imp
Reviewed by: imp


106287 01-Nov-2002 phk

Make this compilable from userland as well.


105099 14-Oct-2002 phk

Don't panic when we can just return an error code.


100081 15-Jul-2002 markm

Fix some really pedantic GCC warnings.


97231 24-May-2002 suz

Fixed AES encryption algorithm bug

PR: kern/38465
Obtained from: Ramana Yarlagadda <ramana.yarlagadda@analog.com>


95192 21-Apr-2002 markm

Remove macros that are defined elsewhere.


95023 19-Apr-2002 suz

just merged cosmetic changes from KAME to ease sync between KAME and FreeBSD.
(based on freebsd4-snap-20020128)

Reviewed by: ume
MFC after: 1 week


92756 20-Mar-2002 alfred

Remove __P.


91671 05-Mar-2002 ume

- Speedup 3DES by using assembly code for i386.
- Sync des/blowfish to more recent openssl.

Obtained from: KAME/NetBSD
MFC after: 2 weeks


91313 26-Feb-2002 ume

off by one error in Aaron Gifford's code. KAME PR 393.

PR: kern/34242
Submitted by: Aaron D. Gifford <agifford@infowest.com>
MFC after: 1 week


86975 27-Nov-2001 ume

fixed the cast128 calculation with a short cipher key length.
the memory was overridden when the key length was less than 16 bytes.

Obtained from: KAME
MFC after: 1 week


79150 03-Jul-2001 ume

properly check DES weak key. KAME PR 363.

Obtained from: KAME
MFC after: 1 week


78358 16-Jun-2001 ume

less warning

warning: cast discards qualifiers from pointer target type


78064 11-Jun-2001 ume

Sync with recent KAME.
This work was based on kame-20010528-freebsd43-snap.tgz and some
critical problem after the snap was out were fixed.
There are many many changes since last KAME merge.

TODO:
- The definitions of SADB_* in sys/net/pfkeyv2.h are still different
from RFC2407/IANA assignment because of binary compatibility
issue. It should be fixed under 5-CURRENT.
- ip6po_m member of struct ip6_pktopts is no longer used. But, it
is still there because of binary compatibility issue. It should
be removed under 5-CURRENT.

Reviewed by: itojun
Obtained from: KAME
MFC after: 3 weeks


74074 10-Mar-2001 markm

Kernel crypto need binary key material, not symbolic ascii.


67958 30-Oct-2000 kris

This commit was generated by cvs2svn to compensate for changes in r67957,
which included commits to RCS files with non-trunk default branches.


66890 09-Oct-2000 archie

Fix broken const'ness in declaration of sha1_loop().


62587 04-Jul-2000 itojun

sync with kame tree as of july00. tons of bug fixes/improvements.

API changes:
- additional IPv6 ioctls
- IPsec PF_KEY API was changed, it is mandatory to upgrade setkey(8).
(also syntax change)


59391 19-Apr-2000 phk

Remove ~25 unneeded #include <sys/conf.h>
Remove ~60 unneeded #include <sys/malloc.h>


59108 09-Apr-2000 archie

A simplified RC4 implementation for kernel use.


59107 09-Apr-2000 archie

Fix bogus const-ness in declaration of sha1_loop().


57121 10-Feb-2000 shin

Prototype fix for IPsec authentication related functions

Some of IPsec authentication related functions should have
'const' for its 2nd argument, but not now.
But if someone try to use them, and passed const data for
those functions, then much bogus compile warnings will be
generated.
So those funcs prototype should be modified.

Requested by: archie
Approved by: jkh


55206 29-Dec-1999 peter

Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"
is an application space macro and the applications are supposed to be free
to use it as they please (but cannot). This is consistant with the other
BSD's who made this change quite some time ago. More commits to come.


55009 22-Dec-1999 shin

IPSEC support in the kernel.
pr_input() routines prototype is also changed to support IPSEC and IPV6
chained protocol headers.

Reviewed by: freebsd-arch, cvs-committers
Obtained from: KAME project