CVS commit: src/sys/crypto/adiantum

2021-04-14 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Wed Apr 14 21:29:57 UTC 2021 Modified Files: src/sys/crypto/adiantum: adiantum.c Log Message: use an enum instead of constant variables so that they work in CTASSERT. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6

CVS commit: src/sys/crypto/aes/arch/arm

2020-11-21 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Sat Nov 21 08:09:21 UTC 2020 Modified Files: src/sys/crypto/aes/arch/arm: aes_neon.c Log Message: Fix build with clang for earmv7hf; loadroundkey() is used only for __aarch64__. To generate a diff of this commit: cvs rdiff -u -r1.5

CVS commit: src/sys/crypto

2020-10-10 Thread Jared D. McNeill
Module Name:src Committed By: jmcneill Date: Sat Oct 10 08:24:10 UTC 2020 Modified Files: src/sys/crypto/aes/arch/arm: aes_neon_impl.c src/sys/crypto/chacha/arch/arm: chacha_neon_impl.c Log Message: Fix detection of NEON features. ID_AA64PFR0_EL1_ADV_SIMD_NONE mean

CVS commit: src/sys/crypto/aes/arch/arm

2020-09-10 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Thu Sep 10 11:31:04 UTC 2020 Modified Files: src/sys/crypto/aes/arch/arm: aes_neon_32.S Log Message: aes neon: Gather mc_forward/backward so we can load 256 bits at once. To generate a diff of this commit: cvs rdiff -u -r1.10

CVS commit: src/sys/crypto/aes/arch/arm

2020-09-10 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Thu Sep 10 11:30:28 UTC 2020 Modified Files: src/sys/crypto/aes/arch/arm: aes_neon_32.S Log Message: aes neon: Hoist dsbd/dsbe address calculation out of loop. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/

CVS commit: src/sys/crypto/aes/arch/arm

2020-09-10 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Thu Sep 10 11:30:08 UTC 2020 Modified Files: src/sys/crypto/aes/arch/arm: aes_neon_32.S Log Message: aes neon: Tweak register usage. - Call r12 by its usual name, ip. - No need for r7 or r11=fp at the moment. To generate a d

CVS commit: src/sys/crypto/aes/arch/arm

2020-09-10 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Thu Sep 10 11:29:43 UTC 2020 Modified Files: src/sys/crypto/aes/arch/arm: aes_neon_32.S Log Message: aes neon: Write vtbl with {qN} rather than {d(2N)-d(2N+1)}. Cosmetic; no functional change. To generate a diff of this comm

CVS commit: src/sys/crypto/aes/arch/arm

2020-09-10 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Thu Sep 10 11:29:02 UTC 2020 Modified Files: src/sys/crypto/aes/arch/arm: aes_neon_32.S Log Message: aes neon: Issue 256-bit loads rather than pairs of 128-bit loads. Not sure why I didn't realize you could do this before! Sa

CVS commit: src/sys/crypto/aes/arch/arm

2020-09-08 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Sep 8 23:58:09 UTC 2020 Modified Files: src/sys/crypto/aes/arch/arm: aes_armv8_64.S Log Message: aesarmv8: Reallocate registers to shave off unnecessary MOV. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15

CVS commit: src/sys/crypto/aes/arch/arm

2020-09-08 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Sep 8 23:57:43 UTC 2020 Modified Files: src/sys/crypto/aes/arch/arm: aes_armv8_64.S Log Message: aesarmv8: Issue two 4-register ld/st, not four 2-register ld/st. To generate a diff of this commit: cvs rdiff -u -r1.13 -r1

CVS commit: src/sys/crypto/aes/arch/arm

2020-09-08 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Sep 8 23:57:13 UTC 2020 Modified Files: src/sys/crypto/aes/arch/arm: aes_armv8_64.S Log Message: aesarmv8: Adapt aes_armv8_64.S to big-endian. Patch mainly from (and tested by) jakllsch@ with minor tweaks by me. To gene

CVS commit: src/sys/crypto/aes

2020-09-08 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Sep 8 22:48:24 UTC 2020 Modified Files: src/sys/crypto/aes: aes_selftest.c src/sys/crypto/aes/arch/x86: aes_sse2_subr.c Log Message: aes(9): Fix edge case in bitsliced SSE2 AES-CBC decryption. Make sure self-tests

CVS commit: src/sys/crypto/chacha/arch/arm

2020-09-08 Thread Jonathan A. Kollasch
Module Name:src Committed By: jakllsch Date: Tue Sep 8 17:17:32 UTC 2020 Modified Files: src/sys/crypto/chacha/arch/arm: files.chacha_arm Log Message: use correct condition To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/crypto/chacha/arch/arm/files.

CVS commit: src/sys/crypto

2020-09-07 Thread Jonathan A. Kollasch
Module Name:src Committed By: jakllsch Date: Mon Sep 7 18:06:13 UTC 2020 Modified Files: src/sys/crypto/aes/arch/arm: arm_neon.h src/sys/crypto/chacha/arch/arm: arm_neon.h Log Message: Fix vgetq_lane_u32 for aarch64eb with GCC Fixes NEON AES on aarch64eb To gen

CVS commit: src/sys/crypto/chacha/arch/arm

2020-09-07 Thread Jonathan A. Kollasch
Module Name:src Committed By: jakllsch Date: Mon Sep 7 18:05:17 UTC 2020 Modified Files: src/sys/crypto/chacha/arch/arm: chacha_neon_64.S Log Message: Use a working macro to detect big endian aarch64. Fixes aarch64eb NEON ChaCha. To generate a diff of this commit: cvs

CVS commit: src/sys/crypto/chacha/arch/arm

2020-08-23 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Aug 23 16:39:06 UTC 2020 Modified Files: src/sys/crypto/chacha/arch/arm: chacha_neon_32.S Log Message: Adjust sp, not fp, to allocate a 32-byte temporary. Costs another couple MOV instructions, but we can't skimp on this -

CVS commit: src/sys/crypto/blake2

2020-08-20 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Thu Aug 20 21:21:05 UTC 2020 Added Files: src/sys/crypto/blake2: blake2s.c blake2s.h files.blake2s Log Message: Import small BLAKE2s implementation. To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 src/sys/crypto/bla

CVS commit: src/sys/crypto/aes/arch/arm

2020-08-16 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Aug 16 18:02:03 UTC 2020 Modified Files: src/sys/crypto/aes/arch/arm: aes_neon_32.S files.aesneon Log Message: Fix AES NEON code for big-endian softfp ARM. ...which is how the kernel runs. Switch to using __SOFTFP__ for c

CVS commit: src/sys/crypto/aes

2020-08-09 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Mon Aug 10 06:27:29 UTC 2020 Modified Files: src/sys/crypto/aes: aes_ccm.c Log Message: Add hack to compile aes_ccm_tag() with -O0 for m68k for GCC8. GCC 8 miscompiles aes_ccm_tag() for m68k with optimization level -O[12], which res

CVS commit: src/sys/crypto

2020-08-08 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Aug 9 02:49:38 UTC 2020 Modified Files: src/sys/crypto/aes/arch/arm: arm_neon.h src/sys/crypto/chacha/arch/arm: arm_neon.h Log Message: Fix some clang neon intrinsics. Compile-tested only, with -Wno-nonportable-ve

CVS commit: src/sys/crypto

2020-08-08 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Aug 9 02:48:38 UTC 2020 Modified Files: src/sys/crypto/aes/arch/arm: aes_neon_subr.c arm_neon.h src/sys/crypto/chacha/arch/arm: arm_neon.h Log Message: Use vshlq_n_s32 rather than vsliq_n_s32 with zero destination.

CVS commit: src/sys/crypto/aes/arch/arm

2020-08-08 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Aug 9 02:00:57 UTC 2020 Modified Files: src/sys/crypto/aes/arch/arm: aes_neon_subr.c Log Message: Nix outdated comment. I implemented this parallelism a couple weeks ago. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/sys/crypto

2020-08-08 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Aug 9 01:59:04 UTC 2020 Modified Files: src/sys/crypto/aes/arch/arm: arm_neon_imm.h src/sys/crypto/chacha/arch/arm: arm_neon_imm.h Log Message: Fix mistake in big-endian arm clang. Swapped the two halves (only gcc

CVS commit: src/sys/crypto

2020-08-08 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Aug 8 14:47:01 UTC 2020 Modified Files: src/sys/crypto/aes/arch/arm: aes_armv8_64.S aes_neon.c aes_neon_32.S aes_neon_impl.h aes_neon_subr.c arm_neon.h src/sys/crypto/chacha/arch/arm: arm_neon.h chacha_n

CVS commit: src/sys/crypto/chacha/arch/arm

2020-07-29 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Wed Jul 29 14:23:59 UTC 2020 Modified Files: src/sys/crypto/chacha/arch/arm: chacha_neon_32.S Log Message: Issue three more swaps to save eight stores. Reduces code size and yields a small (~2%) cgd throughput boost. Remove d

CVS commit: src/sys/crypto/aes/arch/arm

2020-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Jul 28 20:11:09 UTC 2020 Modified Files: src/sys/crypto/aes/arch/arm: aes_neon.c aes_neon_impl.h aes_neon_subr.c arm_neon.h Log Message: Draft 2x vectorized neon vpaes for aarch64. Gives a modest speed boost on

CVS commit: src/sys/crypto/chacha/arch/arm

2020-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Jul 28 20:05:33 UTC 2020 Modified Files: src/sys/crypto/chacha/arch/arm: chacha_neon.c Log Message: Fix big-endian build with appropriate casts around vrev32q_u8. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.

CVS commit: src/sys/crypto/chacha/arch/arm

2020-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Jul 28 15:42:41 UTC 2020 Modified Files: src/sys/crypto/chacha/arch/arm: chacha_neon_64.S Log Message: Fix typo in comment. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/crypto/chacha/arch/arm/chacha

CVS commit: src/sys/crypto/aes/arch/x86

2020-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Jul 28 14:01:35 UTC 2020 Modified Files: src/sys/crypto/aes/arch/x86: aes_via.c Log Message: Initialize authctr in both branches. I guess I didn't test the unaligned case, weird. To generate a diff of this commit: cvs rd

CVS commit: src/sys/crypto/chacha/arch/arm

2020-07-27 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jul 27 20:58:56 UTC 2020 Modified Files: src/sys/crypto/chacha/arch/arm: arm_neon.h chacha_neon.c Log Message: Note that VSRI seems to hurt here. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/crypto/

CVS commit: src/sys/crypto/chacha/arch/arm

2020-07-27 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jul 27 20:58:07 UTC 2020 Modified Files: src/sys/crypto/chacha/arch/arm: arm_neon.h chacha_neon.c Log Message: Take advantage of REV32 and TBL for 16-bit and 8-bit rotations. However, disable use of (V)TBL on armv7/aarch32

CVS commit: src/sys/crypto

2020-07-27 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jul 27 20:57:23 UTC 2020 Modified Files: src/sys/crypto/aes/arch/arm: aes_armv8_64.S aes_neon_32.S src/sys/crypto/aes/arch/x86: aes_ni_64.S src/sys/crypto/chacha/arch/arm: chacha_neon_64.S Log Message: Add R

CVS commit: src/sys/crypto/aes/arch/arm

2020-07-27 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jul 27 20:54:12 UTC 2020 Modified Files: src/sys/crypto/aes/arch/arm: aes_armv8_64.S Log Message: Issue aese/aesmc and aesd/aesimc in pairs. Advised by the aarch64 optimization guide; increases cgd throughput by about 10%.

CVS commit: src/sys/crypto

2020-07-27 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jul 27 20:53:23 UTC 2020 Modified Files: src/sys/crypto/aes/arch/arm: aes_armv8_64.S aes_neon_32.S src/sys/crypto/aes/arch/x86: aes_ni_64.S src/sys/crypto/chacha/arch/arm: chacha_neon_64.S Log Message: Align

CVS commit: src/sys/crypto/aes/arch/arm

2020-07-27 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jul 27 20:52:11 UTC 2020 Modified Files: src/sys/crypto/aes/arch/arm: aes_neon_32.S Log Message: PIC for aes_neon_32.S. Without this, tests/sys/crypto/aes/t_aes fails to start on armv7 because of R_ARM_ABS32 relocations in

CVS commit: src/sys/crypto/chacha/arch/arm

2020-07-27 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jul 27 20:50:25 UTC 2020 Modified Files: src/sys/crypto/chacha/arch/arm: chacha_neon_64.S Log Message: Use rather than copying things from it here. Vestige from userland build on netbsd-9 during development. To generate

CVS commit: src/sys/crypto/chacha

2020-07-27 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jul 27 20:49:10 UTC 2020 Modified Files: src/sys/crypto/chacha: chacha_impl.c Log Message: Simplify ChaCha selection and allow it to be used much earlier. This way we can use it for cprng_fast early on. ChaCha is easy bec

CVS commit: src/sys/crypto/chacha/arch

2020-07-27 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jul 27 20:48:18 UTC 2020 Modified Files: src/sys/crypto/chacha/arch/arm: chacha_neon.c src/sys/crypto/chacha/arch/x86: chacha_sse2.c Log Message: Reduce some duplication. Shouldn't substantively hurt performance --

CVS commit: src/sys/crypto

2020-07-27 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jul 27 20:45:15 UTC 2020 Modified Files: src/sys/crypto/aes: aes_impl.c src/sys/crypto/chacha: chacha_impl.c Log Message: New sysctl subtree kern.crypto. kern.crypto.aes.selected (formerly hw.aes_impl) kern.crypto.

CVS commit: src/sys/crypto/aes

2020-07-27 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jul 27 20:44:30 UTC 2020 Modified Files: src/sys/crypto/aes: aes_ccm.c aes_ccm.h Log Message: Gather auth[16] and ctr[16] into one authctr[32]. Should appease clang. To generate a diff of this commit: cvs rdiff -u -r1.3

CVS commit: src/sys/crypto/aes

2020-07-25 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Jul 26 04:44:47 UTC 2020 Modified Files: src/sys/crypto/aes: aes_ccm.c Log Message: Ensure aes_ccm module init runs after aes module init. Otherwise the AES implementation might not be selected early enough. To generate

CVS commit: src/sys/crypto/adiantum

2020-07-25 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Jul 26 04:05:20 UTC 2020 Modified Files: src/sys/crypto/adiantum: adiantum.c Log Message: Simplify internal Poly1305 API in adiantum.c. Should be slightly faster this way too. To generate a diff of this commit: cvs rdiff

CVS commit: src/sys/crypto/adiantum

2020-07-25 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Jul 25 23:05:40 UTC 2020 Modified Files: src/sys/crypto/adiantum: adiantum.c Log Message: Fix typo in comment; match the paper's notation. No functional change. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4

CVS commit: src/sys/crypto/adiantum

2020-07-25 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Jul 25 22:47:16 UTC 2020 Modified Files: src/sys/crypto/adiantum: adiantum.c files.adiantum Log Message: Convert crypto/adiantum to use new ChaCha API. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/c

CVS commit: src/sys/crypto/aes/arch/x86

2020-07-25 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Jul 25 22:45:10 UTC 2020 Modified Files: src/sys/crypto/aes/arch/x86: immintrin.h Log Message: Add some Intel intrinsics for ChaCha. _mm_load1_ps _mm_loadu_si128 _mm_movelh_ps _mm_slli_epi32 _mm_storeu_si128 _mm_unpackhi_e

CVS commit: src/sys/crypto/aes/arch/x86

2020-07-25 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Jul 25 22:44:32 UTC 2020 Modified Files: src/sys/crypto/aes/arch/x86: immintrin.h Log Message: Fix target attribute on _mm_movehl_ps, fix clang _mm_unpacklo_epi64. - _mm_movehl_ps is available in SSE2, no need for SSSE3. -

CVS commit: src/sys/crypto/aes/arch/arm

2020-07-25 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Jul 25 22:42:31 UTC 2020 Modified Files: src/sys/crypto/aes/arch/arm: arm_neon.h Log Message: Fix missing clang big-endian case. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/crypto/aes/arch/arm/arm_

CVS commit: src/sys/crypto/aes/arch/arm

2020-07-25 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Jul 25 22:43:01 UTC 2020 Modified Files: src/sys/crypto/aes/arch/arm: arm_neon.h Log Message: Add 32-bit load, store, and shift intrinsics. vld1q_u32 vst1q_u32 vshlq_n_u32 vshrq_n_u32 To generate a diff of this commit: c

CVS commit: src/sys/crypto/aes

2020-07-25 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Jul 25 22:42:03 UTC 2020 Modified Files: src/sys/crypto/aes: aes_impl.c Log Message: Make aes boot message verbose-only. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/crypto/aes/aes_impl.c Please no

CVS commit: src/sys/crypto/adiantum

2020-07-25 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Jul 25 22:41:31 UTC 2020 Modified Files: src/sys/crypto/adiantum: files.adiantum Log Message: Note dependency of adiantum on aes. Forgot this a while back. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/

CVS commit: src/sys/crypto/adiantum

2020-07-25 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Jul 25 22:41:03 UTC 2020 Modified Files: src/sys/crypto/adiantum: adiantum.c Log Message: Omit useless AES call. This must have been a vestige from editing that I never got around to removing, oops. Should speed up adiant

CVS commit: src/sys/crypto/aes

2020-07-25 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Jul 25 22:36:42 UTC 2020 Modified Files: src/sys/crypto/aes: aes_impl.c aes_selftest.c Log Message: Remove now-needless AES-CCM fallback logic. These paths are no longer exercised because all of the aes_impls now do the AE

CVS commit: src/sys/crypto/aes/arch/arm

2020-07-25 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Jul 25 22:36:06 UTC 2020 Modified Files: src/sys/crypto/aes/arch/arm: aes_neon.h aes_neon_impl.c aes_neon_subr.c arm_neon.h Log Message: Implement AES-CCM with NEON. To generate a diff of this commit: cvs rdif

CVS commit: src/sys/crypto/aes/arch/arm

2020-07-25 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Jul 25 22:32:09 UTC 2020 Modified Files: src/sys/crypto/aes/arch/arm: aes_armv8_64.S Log Message: Invert some loops to save a branch instruction on every iteration. To generate a diff of this commit: cvs rdiff -u -r1.6 -r

CVS commit: src/sys/crypto/aes/arch/x86

2020-07-25 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Jul 25 22:31:32 UTC 2020 Modified Files: src/sys/crypto/aes/arch/x86: aes_via.c Log Message: Implement AES-CCM with VIA ACE. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/crypto/aes/arch/x86/aes_via.

CVS commit: src/sys/crypto/aes/arch/x86

2020-07-25 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Jul 25 22:31:04 UTC 2020 Modified Files: src/sys/crypto/aes/arch/x86: aes_ssse3.h aes_ssse3_impl.c aes_ssse3_subr.c immintrin.h Log Message: Implement AES-CCM with SSSE3. To generate a diff of this commit: cvs

CVS commit: src/sys/crypto/aes/arch/x86

2020-07-25 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Jul 25 22:29:56 UTC 2020 Modified Files: src/sys/crypto/aes/arch/x86: aes_sse2.h aes_sse2_impl.c aes_sse2_subr.c Log Message: Implement AES-CCM with SSE2. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sy

CVS commit: src/sys/crypto/aes/arch/x86

2020-07-25 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Jul 25 22:29:06 UTC 2020 Modified Files: src/sys/crypto/aes/arch/x86: aes_ni.c aes_ni.h aes_ni_64.S Log Message: Implement AES-CCM with x86 AES-NI. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/crypt

CVS commit: src/sys/crypto/aes

2020-07-25 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Jul 25 22:28:27 UTC 2020 Modified Files: src/sys/crypto/aes: aes_bear.c Log Message: Implement AES-CCM with BearSSL's bitsliced 32-bit aes_ct. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/crypto/aes

CVS commit: src/sys/crypto/aes

2020-07-25 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Jul 25 22:27:53 UTC 2020 Modified Files: src/sys/crypto/aes: aes_ccm.c aes_impl.c aes_impl.h aes_selftest.c Log Message: Push CBC-MAC and CCM block updates into the aes_impl API. This should help reduce the setup and teard

CVS commit: src/sys/crypto/aes

2020-07-25 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Jul 25 22:15:55 UTC 2020 Modified Files: src/sys/crypto/aes: files.aes Added Files: src/sys/crypto/aes: aes_ccm.c aes_ccm.h aes_ccm_mbuf.c aes_ccm_mbuf.h Log Message: New aes_ccm API. Intended for use in net80211 f

CVS commit: src/sys/crypto/aes/arch/x86

2020-07-25 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Jul 25 22:11:05 UTC 2020 Modified Files: src/sys/crypto/aes/arch/x86: aes_ni_64.S Log Message: Invert some loops to save a jmp instruction on each iteration. No semantic change intended. To generate a diff of this commit

CVS commit: src/sys/crypto/aes/arch/arm

2020-07-23 Thread Ryo Shimizu
Module Name:src Committed By: ryo Date: Thu Jul 23 11:33:01 UTC 2020 Modified Files: src/sys/crypto/aes/arch/arm: arm_neon.h Log Message: fix build with llvm/clang. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/crypto/aes/arch/arm/arm_neon.h Please

CVS commit: src/sys/crypto/aes/arch/arm

2020-07-21 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Wed Jul 22 06:15:21 UTC 2020 Modified Files: src/sys/crypto/aes/arch/arm: aes_armv8_64.S Log Message: Fix register name in comment. Some time ago I reallocated the registers to avoid inadvertently clobbering the callee-saves v

CVS commit: src/sys/crypto/aes/arch/arm

2020-07-19 Thread Ryo Shimizu
Module Name:src Committed By: ryo Date: Sun Jul 19 07:32:43 UTC 2020 Modified Files: src/sys/crypto/aes/arch/arm: aes_armv8_64.S Log Message: fix build with clang/llvm. clang aarch64 assembler doesn't accept optional number of lanes of vector register. (but ARMARM says t

CVS commit: src/sys/crypto/aes/arch/arm

2020-06-30 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Jun 30 23:06:02 UTC 2020 Modified Files: src/sys/crypto/aes/arch/arm: aes_armv8_64.S Log Message: Reallocate registers to avoid abusing callee-saves registers, v8-v15. Forgot to consult the AAPCS before committing this bef

CVS commit: src/sys/crypto/aes/arch/arm

2020-06-30 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Jun 30 21:53:39 UTC 2020 Modified Files: src/sys/crypto/aes/arch/arm: aes_armv8_64.S Log Message: Use `.arch_extension aes' for aese/aesmc/aesd/aesimc. Unlike `.arch_extension crypto', this works with clang; both work with

CVS commit: src/sys/crypto/aes/arch

2020-06-30 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Jun 30 21:41:04 UTC 2020 Modified Files: src/sys/crypto/aes/arch/arm: aes_armv8_64.S src/sys/crypto/aes/arch/x86: aes_ni_64.S Log Message: Use .p2align rather than .align. Apparently on arm, .align is actually an a

CVS commit: src/sys/crypto/aes/arch/arm

2020-06-30 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Jun 30 21:24:00 UTC 2020 Modified Files: src/sys/crypto/aes/arch/arm: arm_neon.h Log Message: Tweak clang neon intrinsics so they build. (this file is still a kludge) To generate a diff of this commit: cvs rdiff -u -r1.1

CVS commit: src/sys/crypto/aes/arch/arm

2020-06-30 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Jun 30 17:03:14 UTC 2020 Modified Files: src/sys/crypto/aes/arch/arm: files.aesneon Log Message: Limit aes_neon to cpu_cortex | aarch64. We won't use it on any other systems, and it doesn't build without NEON anyway. Veri

CVS commit: src/sys/crypto/aes

2020-06-30 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Jun 30 16:21:17 UTC 2020 Modified Files: src/sys/crypto/aes: aes_impl.c Log Message: New sysctl node hw.aes_impl for selected AES implementation. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/crypto/

CVS commit: src/sys/crypto/aes/arch/arm

2020-06-29 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jun 29 23:57:56 UTC 2020 Modified Files: src/sys/crypto/aes/arch/arm: aes_neon.c files.aesneon Added Files: src/sys/crypto/aes/arch/arm: aes_neon_32.S Log Message: Provide hand-written AES NEON assembly for arm32.

CVS commit: src/sys/crypto/aes/arch/x86

2020-06-29 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jun 29 23:50:05 UTC 2020 Modified Files: src/sys/crypto/aes/arch/x86: aes_sse2.h aes_sse2_impl.c aes_sse2_impl.h files.aessse2 Added Files: src/sys/crypto/aes/arch/x86: aes_sse2_subr.c Log Message: Split

CVS commit: src/sys/crypto/aes/arch/x86

2020-06-29 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jun 29 23:41:35 UTC 2020 Modified Files: src/sys/crypto/aes/arch/x86: aes_via.c Log Message: VIA AES: Batch AES-XTS computation into eight blocks at a time. Experimental -- performance improvement is not clearly worth the

CVS commit: src/sys/crypto/aes

2020-06-29 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jun 29 23:36:59 UTC 2020 Modified Files: src/sys/crypto/aes: aes_bear.h aes_ct.c aes_ct_dec.c aes_impl.c Log Message: Provide the standard AES key schedule. Different AES implementations prefer different variations on it,

CVS commit: src/sys/crypto/cprng_fast

2020-04-29 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Thu Apr 30 03:29:35 UTC 2020 Modified Files: src/sys/crypto/cprng_fast: cprng_fast.c Log Message: Adapt cprng_fast to use entropy_epoch(), not rnd_initial_entropy. This way it has an opportunity to be reseeded after boot. To

CVS commit: src/sys/crypto/cprng_fast

2020-04-29 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Thu Apr 30 03:29:45 UTC 2020 Modified Files: src/sys/crypto/cprng_fast: cprng_fast.c Log Message: Count cprng_fast reseed events. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/sys/crypto/cprng_fast/cprng_f

CVS commit: src/sys/crypto

2019-02-04 Thread matthew green
Module Name:src Committed By: mrg Date: Mon Feb 4 08:23:53 UTC 2019 Modified Files: src/sys/crypto/blowfish: bf_locl.h src/sys/crypto/des: des_locl.h Log Message: add fallthru comments. i considered patching makefiles to ignore these problems, but this code is de

CVS commit: src/sys/crypto/rijndael

2016-12-10 Thread Alexander Nasonov
Module Name:src Committed By: alnsn Date: Sun Dec 11 00:28:45 UTC 2016 Modified Files: src/sys/crypto/rijndael: rijndael-api-fst.c rijndael-api-fst.h Log Message: Add XTS mode. To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25 src/sys/crypto/rijndael/rijndael

CVS commit: src/sys/crypto/cprng_fast

2014-08-11 Thread Justin Cormack
Module Name:src Committed By: justin Date: Mon Aug 11 22:36:49 UTC 2014 Modified Files: src/sys/crypto/cprng_fast: cprng_fast.c Log Message: Fix inconsistent use of inline in prototype and definition To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/sys/c

CVS commit: src/sys/crypto/cprng_fast

2014-08-11 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Aug 11 13:22:17 UTC 2014 Modified Files: src/sys/crypto/cprng_fast: cprng_fast.c Log Message: Tweak cprng_fast_buf to use 32-bit unaligned writes if possible. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 s

CVS commit: src/sys/crypto/cprng_fast

2014-08-11 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Aug 11 13:12:53 UTC 2014 Modified Files: src/sys/crypto/cprng_fast: cprng_fast.c Log Message: Move initial entropy bookkeeping out of the fast path. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/cryp

CVS commit: src/sys/crypto/cprng_fast

2014-08-11 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Aug 11 13:06:31 UTC 2014 Modified Files: src/sys/crypto/cprng_fast: cprng_fast.c Log Message: Use percpu_foreach instead of manual iteration. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/crypto/cprn

CVS commit: src/sys/crypto/cprng_fast

2014-08-11 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Aug 11 13:01:58 UTC 2014 Modified Files: src/sys/crypto/cprng_fast: cprng_fast.c Log Message: Access to struct cprng_fast must be consistently at IPL_VM. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys

CVS commit: src/sys/crypto/cprng_fast

2014-08-10 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Aug 11 03:47:49 UTC 2014 Modified Files: src/sys/crypto/cprng_fast: cprng_fast.c Log Message: Include , don't copypasta declare rnd_initial_entropy. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/cryp

CVS commit: src/sys/crypto/cprng_fast

2014-08-10 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Aug 11 03:50:29 UTC 2014 Modified Files: src/sys/crypto/cprng_fast: cprng_fast.c Log Message: No need for cprng_fast_seed to be inline. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/sys/crypto/cprng_fast

CVS commit: src/sys/crypto/cprng_fast

2014-08-10 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Aug 11 03:46:54 UTC 2014 Modified Files: src/sys/crypto/cprng_fast: cprng_fast.c Log Message: Sort #includes. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/crypto/cprng_fast/cprng_fast.c Please note

CVS commit: src/sys/crypto/cprng_fast

2014-08-10 Thread Justin Cormack
Module Name:src Committed By: justin Date: Sun Aug 10 22:35:32 UTC 2014 Modified Files: src/sys/crypto/cprng_fast: cprng_fast.c Log Message: define function consistently as inline To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/crypto/cprng_fast/cprng

CVS commit: src/sys/crypto/des

2014-03-25 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue Mar 25 16:28:16 UTC 2014 Modified Files: src/sys/crypto/des: des_ecb.c Log Message: fix sprintf. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/crypto/des/des_ecb.c Please note that diffs are not pub

CVS commit: src/sys/crypto/nist_ctr_drbg

2011-11-21 Thread Michael Lorenz
Module Name:src Committed By: macallan Date: Mon Nov 21 23:48:52 UTC 2011 Modified Files: src/sys/crypto/nist_ctr_drbg: nist_ctr_drbg.h Log Message: NIST_CTR_DRBG.V is accessed as (unsigned long *) so we need to make sure it's aligned accordingly or we go boom on sparc64

CVS commit: src/sys/crypto/rijndael

2011-05-14 Thread Julio Merino
Module Name:src Committed By: jmmv Date: Sat May 14 16:46:55 UTC 2011 Modified Files: src/sys/crypto/rijndael: rijndael-api-fst.c Log Message: Revert my previous change. christos@ submitted a different fix pretty much at the same time. Did an update amd64 release build t

CVS commit: src/sys/crypto/rijndael

2011-05-14 Thread Julio Merino
Module Name:src Committed By: jmmv Date: Sat May 14 16:27:50 UTC 2011 Modified Files: src/sys/crypto/rijndael: rijndael-api-fst.c Log Message: Declare for-loop control variable outside of the for statement to prevent a warning and therefore fix the build. To generate a d

CVS commit: src/sys/crypto/rijndael

2011-05-13 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat May 14 01:59:19 UTC 2011 Modified Files: src/sys/crypto/rijndael: rijndael-api-fst.c Log Message: - don't assume aligned buffers. - little KNF To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/sys/crypto/ri

CVS commit: src/sys/crypto/blowfish

2009-06-30 Thread Antti Kantee
Module Name:src Committed By: pooka Date: Tue Jun 30 13:14:40 UTC 2009 Modified Files: src/sys/crypto/blowfish: bf_locl.h Log Message: Apply const where necessary (XXX: where is bf_locl.org?) To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/crypto/blow