summaryrefslogtreecommitdiffstats
path: root/src/blake2s.h
diff options
context:
space:
mode:
authorMatt Dunwoodie <ncon@mail.noconroy.net>2019-09-17 10:08:51 +0200
committerMatt Dunwoodie <ncon@mail.noconroy.net>2019-09-17 10:26:44 +0200
commit8cefab1740fe402d9f6161a625ad2d637201d5ad (patch)
tree1fa602c19e9a6cb1b35cd4d883468f0f1aacd674 /src/blake2s.h
parentAdjust wg_peer_encrypt and wg_peer_decrypt return (diff)
downloadwireguard-openbsd-8cefab1740fe402d9f6161a625ad2d637201d5ad.tar.xz
wireguard-openbsd-8cefab1740fe402d9f6161a625ad2d637201d5ad.zip
sed /u_int/uint/
Diffstat (limited to 'src/blake2s.h')
-rw-r--r--src/blake2s.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/blake2s.h b/src/blake2s.h
index 0cb586eca2f..865de953fb2 100644
--- a/src/blake2s.h
+++ b/src/blake2s.h
@@ -19,21 +19,21 @@ enum blake2s_lengths {
};
struct blake2s_state {
- u_int32_t h[8];
- u_int32_t t[2];
- u_int32_t f[2];
- u_int8_t buf[BLAKE2S_BLOCK_SIZE];
+ uint32_t h[8];
+ uint32_t t[2];
+ uint32_t f[2];
+ uint8_t buf[BLAKE2S_BLOCK_SIZE];
size_t buflen;
- u_int8_t last_node;
+ uint8_t last_node;
};
void blake2s_init(struct blake2s_state *state, const size_t outlen);
void blake2s_init_key(struct blake2s_state *state, const size_t outlen,
const void *key, const size_t keylen);
-void blake2s_update(struct blake2s_state *state, const u_int8_t *in, size_t inlen);
-void blake2s_final(struct blake2s_state *state, u_int8_t *out, const size_t outlen);
+void blake2s_update(struct blake2s_state *state, const uint8_t *in, size_t inlen);
+void blake2s_final(struct blake2s_state *state, uint8_t *out, const size_t outlen);
-static inline void blake2s(u_int8_t *out, const u_int8_t *in, const u_int8_t *key,
+static inline void blake2s(uint8_t *out, const uint8_t *in, const uint8_t *key,
const size_t outlen, const size_t inlen,
const size_t keylen)
{
@@ -52,7 +52,7 @@ static inline void blake2s(u_int8_t *out, const u_int8_t *in, const u_int8_t *ke
blake2s_final(&state, out, outlen);
}
-void blake2s_hmac(u_int8_t *out, const u_int8_t *in, const u_int8_t *key, const size_t outlen,
- const size_t inlen, const size_t keylen);
+void blake2s_hmac(uint8_t *out, const uint8_t *in, const uint8_t *key,
+ const size_t outlen, const size_t inlen, const size_t keylen);
#endif /* _BLAKE2S_H_ */