summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/chacha/chacha-merged.c10
-rw-r--r--src/lib/libssl/src/crypto/chacha/chacha-merged.c10
2 files changed, 10 insertions, 10 deletions
diff --git a/src/lib/libcrypto/chacha/chacha-merged.c b/src/lib/libcrypto/chacha/chacha-merged.c
index a31d8a8301..5ba813147a 100644
--- a/src/lib/libcrypto/chacha/chacha-merged.c
+++ b/src/lib/libcrypto/chacha/chacha-merged.c
@@ -18,15 +18,15 @@ struct chacha_ctx {
18 18
19static inline void chacha_keysetup(struct chacha_ctx *x, const u_char *k, 19static inline void chacha_keysetup(struct chacha_ctx *x, const u_char *k,
20 u_int kbits) 20 u_int kbits)
21 __bounded((__minbytes__, 2, CHACHA_MINKEYLEN)); 21 __attribute__((__bounded__(__minbytes__, 2, CHACHA_MINKEYLEN)));
22static inline void chacha_ivsetup(struct chacha_ctx *x, const u_char *iv, 22static inline void chacha_ivsetup(struct chacha_ctx *x, const u_char *iv,
23 const u_char *ctr) 23 const u_char *ctr)
24 __bounded((__minbytes__, 2, CHACHA_NONCELEN)) 24 __attribute__((__bounded__(__minbytes__, 2, CHACHA_NONCELEN)))
25 __bounded((__minbytes__, 3, CHACHA_CTRLEN)); 25 __attribute__((__bounded__(__minbytes__, 3, CHACHA_CTRLEN)));
26static inline void chacha_encrypt_bytes(struct chacha_ctx *x, const u_char *m, 26static inline void chacha_encrypt_bytes(struct chacha_ctx *x, const u_char *m,
27 u_char *c, u_int bytes) 27 u_char *c, u_int bytes)
28 __bounded((__buffer__, 2, 4)) 28 __attribute__((__bounded__(__buffer__, 2, 4)))
29 __bounded((__buffer__, 3, 4)); 29 __attribute__((__bounded__(__buffer__, 3, 4)));
30 30
31typedef unsigned char u8; 31typedef unsigned char u8;
32typedef unsigned int u32; 32typedef unsigned int u32;
diff --git a/src/lib/libssl/src/crypto/chacha/chacha-merged.c b/src/lib/libssl/src/crypto/chacha/chacha-merged.c
index a31d8a8301..5ba813147a 100644
--- a/src/lib/libssl/src/crypto/chacha/chacha-merged.c
+++ b/src/lib/libssl/src/crypto/chacha/chacha-merged.c
@@ -18,15 +18,15 @@ struct chacha_ctx {
18 18
19static inline void chacha_keysetup(struct chacha_ctx *x, const u_char *k, 19static inline void chacha_keysetup(struct chacha_ctx *x, const u_char *k,
20 u_int kbits) 20 u_int kbits)
21 __bounded((__minbytes__, 2, CHACHA_MINKEYLEN)); 21 __attribute__((__bounded__(__minbytes__, 2, CHACHA_MINKEYLEN)));
22static inline void chacha_ivsetup(struct chacha_ctx *x, const u_char *iv, 22static inline void chacha_ivsetup(struct chacha_ctx *x, const u_char *iv,
23 const u_char *ctr) 23 const u_char *ctr)
24 __bounded((__minbytes__, 2, CHACHA_NONCELEN)) 24 __attribute__((__bounded__(__minbytes__, 2, CHACHA_NONCELEN)))
25 __bounded((__minbytes__, 3, CHACHA_CTRLEN)); 25 __attribute__((__bounded__(__minbytes__, 3, CHACHA_CTRLEN)));
26static inline void chacha_encrypt_bytes(struct chacha_ctx *x, const u_char *m, 26static inline void chacha_encrypt_bytes(struct chacha_ctx *x, const u_char *m,
27 u_char *c, u_int bytes) 27 u_char *c, u_int bytes)
28 __bounded((__buffer__, 2, 4)) 28 __attribute__((__bounded__(__buffer__, 2, 4)))
29 __bounded((__buffer__, 3, 4)); 29 __attribute__((__bounded__(__buffer__, 3, 4)));
30 30
31typedef unsigned char u8; 31typedef unsigned char u8;
32typedef unsigned int u32; 32typedef unsigned int u32;