aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/crypto/include/zinc
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-09-04 10:44:42 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2018-09-04 11:08:29 -0600
commit6214b358a5502915d977d3f850d34bcad71c4cde (patch)
tree3f8849570e0ecbb60e9778ab38225705e1f46101 /src/crypto/include/zinc
parentglobal: satisfy check_patch.pl errors (diff)
downloadwireguard-monolithic-historical-6214b358a5502915d977d3f850d34bcad71c4cde.tar.xz
wireguard-monolithic-historical-6214b358a5502915d977d3f850d34bcad71c4cde.zip
global: prefer sizeof(*pointer) when possible
Suggested-by: Sultan Alsawaf <sultanxda@gmail.com>
Diffstat (limited to 'src/crypto/include/zinc')
-rw-r--r--src/crypto/include/zinc/blake2s.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/include/zinc/blake2s.h b/src/crypto/include/zinc/blake2s.h
index 0e50836..5e32d57 100644
--- a/src/crypto/include/zinc/blake2s.h
+++ b/src/crypto/include/zinc/blake2s.h
@@ -65,7 +65,7 @@ static inline void blake2s_final(struct blake2s_state *state, u8 *out,
memzero_explicit(buffer, sizeof(buffer));
}
- memzero_explicit(state, sizeof(struct blake2s_state));
+ memzero_explicit(state, sizeof(*state));
}
static inline void blake2s(u8 *out, const u8 *in, const u8 *key,