freebsd-src/sys/crypto
Dimitry Andric 710ec409df 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
2025-12-30 13:46:46 +01:00
..
aesni newbus: replace leftover device unit wildcards 2025-06-21 05:57:45 +03:00
armv8 newbus: replace leftover device unit wildcards 2025-06-21 05:57:45 +03:00
blake2 newbus: replace leftover device unit wildcards 2025-06-21 05:57:45 +03:00
camellia sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
ccp random: Make random_source definitions const 2025-08-19 14:06:02 +00:00
chacha20 crypto: avoid warnings about too-long initializer strings 2025-12-30 13:46:46 +01:00
des sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
libsodium sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
openssl style(9): white space after ; and around binary operators 2025-10-16 15:02:50 -07:00
rc4 sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
rijndael Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
sha2 libmd: re-apply masking of _Transform names 2024-09-30 14:59:31 -05:00
siphash siphash: minor improvements to siphash unit test 2024-07-29 14:44:41 -06:00
skein sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
via newbus: replace leftover device unit wildcards 2025-06-21 05:57:45 +03:00
chacha20_poly1305.c
chacha20_poly1305.h
curve25519.c
curve25519.h
intake.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
md4c.c sys: move sys/kern/md[45].c to sys/crypto 2025-10-24 12:16:46 +02:00
md5c.c sys/crypto: import md5c.c C rewrite 2025-10-24 12:16:58 +02:00
sha1.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
sha1.h sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00