opnsense-src/sys/crypto
Dimitry Andric 448eec1bdb crypto: avoid warnings about too-long initializer strings
Mark `sigma` and `tau` as `__non_string`, to avoid warnings from clang
21 similar to:

    sys/crypto/chacha20/chacha.c:53:31: error: initializer-string for character array is too long, array size is 16 but initializer has size 17 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization]
       53 | static const char sigma[16] = "expand 32-byte k";
          |                               ^~~~~~~~~~~~~~~~~~
    sys/crypto/chacha20/chacha.c:54:29: error: initializer-string for character array is too long, array size is 16 but initializer has size 17 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization]
       54 | static const char tau[16] = "expand 16-byte k";
          |                             ^~~~~~~~~~~~~~~~~~

MFC after:	3 days
Reviewed by:	markj
Differential Revision: https://reviews.freebsd.org/D54364

(cherry picked from commit 710ec409dffed3306ced253bba85dbdc7758510b)
2026-01-10 08:57:55 +01:00
..
aesni aesni: Push FPU sections down further 2023-12-29 13:49:42 -08:00
armv8 armv8_crypto: fix recursive fpu_kern_enter call 2023-12-29 13:49:42 -08:00
blake2 blake2: Remove dieing flag and rw lock 2023-12-29 13:49:42 -08:00
camellia sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
ccp random: Make random_source definitions const 2025-10-06 17:18:32 +02:00
chacha20 crypto: avoid warnings about too-long initializer strings 2026-01-10 08:57:55 +01:00
des sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
libsodium sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
openssl openssl: update ASM and version info for 3.0.16 import 2025-03-25 14:07:59 -07:00
rc4 sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
rijndael sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
sha2 sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
siphash sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
skein sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
via padlock: Use device_set_descf() 2024-06-27 11:27:41 -04:00
chacha20_poly1305.c spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
chacha20_poly1305.h spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
curve25519.c spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
curve25519.h spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
intake.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
sha1.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
sha1.h sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00