diff options
author | bcook <> | 2014-07-11 08:47:47 +0000 |
---|---|---|
committer | bcook <> | 2014-07-11 08:47:47 +0000 |
commit | c642c67f55e80c1f3eb1966dd740b397ddf64e6d (patch) | |
tree | de003f5795d0c8b490bb25a0c0be005cbb15747f /src | |
parent | 8c3482db610348be15fb633bb52b0511c2cabbcf (diff) | |
download | openbsd-c642c67f55e80c1f3eb1966dd740b397ddf64e6d.tar.gz openbsd-c642c67f55e80c1f3eb1966dd740b397ddf64e6d.tar.bz2 openbsd-c642c67f55e80c1f3eb1966dd740b397ddf64e6d.zip |
replace u_int8_t with uint8_t
ok beck@
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/chacha/chacha-merged.c | 8 | ||||
-rw-r--r-- | src/lib/libssl/src/crypto/chacha/chacha-merged.c | 8 |
2 files changed, 10 insertions, 6 deletions
diff --git a/src/lib/libcrypto/chacha/chacha-merged.c b/src/lib/libcrypto/chacha/chacha-merged.c index a665fb316f..557dfd5b56 100644 --- a/src/lib/libcrypto/chacha/chacha-merged.c +++ b/src/lib/libcrypto/chacha/chacha-merged.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: chacha-merged.c,v 1.6 2014/06/24 18:12:09 jsing Exp $ */ | 1 | /* $OpenBSD: chacha-merged.c,v 1.7 2014/07/11 08:47:47 bcook Exp $ */ |
2 | /* | 2 | /* |
3 | chacha-merged.c version 20080118 | 3 | chacha-merged.c version 20080118 |
4 | D. J. Bernstein | 4 | D. J. Bernstein |
@@ -7,6 +7,8 @@ Public domain. | |||
7 | 7 | ||
8 | #include <sys/types.h> | 8 | #include <sys/types.h> |
9 | 9 | ||
10 | #include <stdint.h> | ||
11 | |||
10 | #define CHACHA_MINKEYLEN 16 | 12 | #define CHACHA_MINKEYLEN 16 |
11 | #define CHACHA_NONCELEN 8 | 13 | #define CHACHA_NONCELEN 8 |
12 | #define CHACHA_CTRLEN 8 | 14 | #define CHACHA_CTRLEN 8 |
@@ -15,8 +17,8 @@ Public domain. | |||
15 | 17 | ||
16 | struct chacha_ctx { | 18 | struct chacha_ctx { |
17 | u_int input[16]; | 19 | u_int input[16]; |
18 | u_int8_t ks[CHACHA_BLOCKLEN]; | 20 | uint8_t ks[CHACHA_BLOCKLEN]; |
19 | u_int8_t unused; | 21 | uint8_t unused; |
20 | }; | 22 | }; |
21 | 23 | ||
22 | static inline void chacha_keysetup(struct chacha_ctx *x, const u_char *k, | 24 | static inline void chacha_keysetup(struct chacha_ctx *x, const u_char *k, |
diff --git a/src/lib/libssl/src/crypto/chacha/chacha-merged.c b/src/lib/libssl/src/crypto/chacha/chacha-merged.c index a665fb316f..557dfd5b56 100644 --- a/src/lib/libssl/src/crypto/chacha/chacha-merged.c +++ b/src/lib/libssl/src/crypto/chacha/chacha-merged.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: chacha-merged.c,v 1.6 2014/06/24 18:12:09 jsing Exp $ */ | 1 | /* $OpenBSD: chacha-merged.c,v 1.7 2014/07/11 08:47:47 bcook Exp $ */ |
2 | /* | 2 | /* |
3 | chacha-merged.c version 20080118 | 3 | chacha-merged.c version 20080118 |
4 | D. J. Bernstein | 4 | D. J. Bernstein |
@@ -7,6 +7,8 @@ Public domain. | |||
7 | 7 | ||
8 | #include <sys/types.h> | 8 | #include <sys/types.h> |
9 | 9 | ||
10 | #include <stdint.h> | ||
11 | |||
10 | #define CHACHA_MINKEYLEN 16 | 12 | #define CHACHA_MINKEYLEN 16 |
11 | #define CHACHA_NONCELEN 8 | 13 | #define CHACHA_NONCELEN 8 |
12 | #define CHACHA_CTRLEN 8 | 14 | #define CHACHA_CTRLEN 8 |
@@ -15,8 +17,8 @@ Public domain. | |||
15 | 17 | ||
16 | struct chacha_ctx { | 18 | struct chacha_ctx { |
17 | u_int input[16]; | 19 | u_int input[16]; |
18 | u_int8_t ks[CHACHA_BLOCKLEN]; | 20 | uint8_t ks[CHACHA_BLOCKLEN]; |
19 | u_int8_t unused; | 21 | uint8_t unused; |
20 | }; | 22 | }; |
21 | 23 | ||
22 | static inline void chacha_keysetup(struct chacha_ctx *x, const u_char *k, | 24 | static inline void chacha_keysetup(struct chacha_ctx *x, const u_char *k, |