cloudflare / boringtun

Userspace WireGuard® Implementation in Rust
BSD 3-Clause "New" or "Revised" License
5.93k stars 397 forks source link

Rip out custom (x)chacha20, replace with ring and chacha20poly1305 #272

Closed jeff-hiner closed 2 years ago

jeff-hiner commented 2 years ago

There still remains some work to be done with buffer reuse. Specifically, the existing seal/open function signatures don't allow in-place operations, which have significantly improved cache locality and require half the memory. Future work: switch to the bytes crate for that.