Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chacha20_poly1305_openssh: Don't panic in
open_in_place
.
Return an error instead of panicking. Luckily, since the slicing is done after the Poly1305 verification is done, it won't be hit by anybody in practice unless Poly1305 is broken. Unfortunately, for the same reason, it is too hard to write a test. Also, the user will have needed to have already decrypted the packet length before calling `open_in_place`, which means they must have successfully parsed a packet length.
- Loading branch information