The NetBSD Project

CVS log for src/sys/crypto/aes/aes_ccm.c

[BACK] Up to [] / src / sys / crypto / aes

Request diff between arbitrary revisions

Default branch: MAIN

Revision 1.6 / (download) - annotate - [select for diffs], Sun Oct 17 14:45:45 2021 UTC (2 years, 5 months ago) by jmcneill
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

Upgrade self-test passed messages from verbose to debug.

Revision 1.5 / (download) - annotate - [select for diffs], Mon Aug 10 06:27:29 2020 UTC (3 years, 8 months ago) by rin
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.4: +5 -2 lines
Diff to previous 1.4 (colored)

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 results in failure in aes_ccm_selftest():

| aes_ccm_selftest: tag 0: 8 bytes @ 0x4d3e38
| 03 80 5f 08 22 6f cb fe                          | .._."o..
| aes_ccm_selftest: verify 0 failed
| ...
| WARNING: module error: built-in module aes_ccm failed its MODULE_CMD_INIT, error 5

This is observed for amiga (A1200, 68060), mac68k (Quadra 840AV, 68040),
and luna68k (nono, 68030 emulator). However, it is not for sun3 (TME, 68020
emulator) and sun2 (TME, 68010 emulator). At the moment, it is unclear
whether this is due to differences b/w 68010-20 vs 68030-60, or something
wrong with TME.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Jul 27 20:44:30 2020 UTC (3 years, 8 months ago) by riastradh
Branch: MAIN
Changes since 1.3: +59 -49 lines
Diff to previous 1.3 (colored)

Gather auth[16] and ctr[16] into one authctr[32].

Should appease clang.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Jul 26 04:44:47 2020 UTC (3 years, 8 months ago) by riastradh
Branch: MAIN
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)

Ensure aes_ccm module init runs after aes module init.

Otherwise the AES implementation might not be selected early enough.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Jul 25 22:27:53 2020 UTC (3 years, 8 months ago) by riastradh
Branch: MAIN
Changes since 1.1: +19 -30 lines
Diff to previous 1.1 (colored)

Push CBC-MAC and CCM block updates into the aes_impl API.

This should help reduce the setup and teardown overhead (enabling and
disabling fpu, or expanding bitsliced keys) for CCM, as used in
802.11 WPA2 CCMP.  But all the fiddly formatting details remain in
aes_ccm.c to reduce the effort of implementing it -- at the cost of a
handful additional setups and teardowns per message.

Not yet implemented by any of the aes_impls, so leave a fallback that
just calls aes_enc for now.  This should be removed when all of the
aes_impls provide CBC-MAC and CCM block updates.

Revision 1.1 / (download) - annotate - [select for diffs], Sat Jul 25 22:15:55 2020 UTC (3 years, 8 months ago) by riastradh
Branch: MAIN

New aes_ccm API.

Intended for use in net80211 for WPA2 CCMP.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

CVSweb <>