File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ static const unsigned rounds = 8;
41
41
a = PLUS(a, b); d = ROTATE(XOR(d, a), 8); \
42
42
c = PLUS(c, d); b = ROTATE(XOR(b, c), 7);
43
43
44
- static const char sigma [16 ] = "expand 32-byte k" ;
44
+ static const char sigma [16 ] NONSTRING = "expand 32-byte k" ;
45
45
46
46
void chacha_keysetup (chacha_ctx * x , const u8 * k ) {
47
47
x -> input [0 ] = U8TO32_LITTLE (sigma + 0 );
Original file line number Diff line number Diff line change 32
32
#define STRINGIFY (s ) #s
33
33
#define ALIAS (f ) __attribute__((alias(STRINGIFY(f))))
34
34
35
+ // supported since GCC 15
36
+ #if defined __has_attribute
37
+ # if __has_attribute (nonstring )
38
+ # define NONSTRING __attribute__ ((nonstring))
39
+ # else
40
+ # define NONSTRING
41
+ # endif
42
+ #else
43
+ # define NONSTRING
44
+ #endif
45
+
35
46
typedef uint8_t u8 ;
36
47
typedef uint16_t u16 ;
37
48
typedef uint32_t u32 ;
You can’t perform that action at this time.
0 commit comments