diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-04-24 13:00:32 -0400 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-04-24 13:00:32 -0400 |
commit | f5fa70e36b4480a2d857d88afe2aca90506c4bf7 (patch) | |
tree | d2088efb7cfbefc77362cab5956fb67fe751c1e7 | |
parent | if_wg: count on peers always having a remote (diff) | |
download | wireguard-freebsd-f5fa70e36b4480a2d857d88afe2aca90506c4bf7.tar.xz wireguard-freebsd-f5fa70e36b4480a2d857d88afe2aca90506c4bf7.zip |
crypto: optimize out `if (encrypt)`
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r-- | src/crypto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto.c b/src/crypto.c index 2a1348a..8e00266 100644 --- a/src/crypto.c +++ b/src/crypto.c @@ -587,7 +587,7 @@ chacha20poly1305_decrypt(uint8_t *dst, const uint8_t *src, const size_t src_len, return ret; } -static bool +static inline bool chacha20poly1305_crypt_mbuf(struct mbuf *m0, uint64_t nonce, const uint8_t key[CHACHA20POLY1305_KEY_SIZE], bool encrypt) { |