Re: [PATCH] crypto: Annotate crypto strings with nonstring

2025-06-10 Thread Eric Biggers
On Thu, May 29, 2025 at 10:31:17AM -0700, Kees Cook wrote: > Annotate various keys, ivs, and other byte arrays with __nonstring so > that static initializers will not complain about truncating the trailing > NUL byte under GCC 15 with -Wunterminated-string-initialization enabled. > Silences many wa

[PATCH] crypto: Annotate crypto strings with nonstring

2025-05-29 Thread Kees Cook
Annotate various keys, ivs, and other byte arrays with __nonstring so that static initializers will not complain about truncating the trailing NUL byte under GCC 15 with -Wunterminated-string-initialization enabled. Silences many warnings like: ../lib/crypto/aesgcm.c:642:27: warning: initializer-s