Commit graph

6 commits

Author SHA1 Message Date
Christian Göttsche
c8ab691ed9 support GCC15
GCC 15 starts warning about non NUL-terminated string literals:

    chacha.c:44:31: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (17 chars into 16 available) [-Werror=unterminated-string-initialization]
       44 | static const char sigma[16] = "expand 32-byte k";
          |                               ^~~~~~~~~~~~~~~~~~
2025-03-27 19:24:33 +01:00
Daniel Micay
02bfcc3b75 chacha: add constant for number of rounds 2019-04-09 01:29:35 -04:00
Daniel Micay
8b2b9d940a chacha: use C99 variable declaration style
This further aligns the code style with the rest of the project and
fixes the clang-tidy readability-isolate-declaration lint triggered by
declaring all of these variables together.
2019-04-09 00:18:17 -04:00
Daniel Micay
173ed53539 use consistent code style in chacha.c 2018-10-19 17:09:41 -04:00
Daniel Micay
433af6d4ba drop 128-bit keys from ChaCha implementation 2018-09-11 10:22:28 -04:00
Daniel Micay
c41e659383 use ChaCha8-based CSPRNG 2018-08-25 23:24:00 -04:00