Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
runner is a fork from a very old version of Go's crypto/tls. Back then, crypto/tls implemented some pooled memory thing to reduce allocations. The abstraction is pretty confusing. Replace it with (I think) more idiomatic patterns using []byte and bytes.Buffer. As part of this, I've moved things common to TLS and DTLS into the encrypt method so encrypt is now responsible for generating the explicit IV and adding TLS 1.3 padding. Change-Id: I21527dd406d2691bc5d24378a832114c43b8b753 Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/71367 Reviewed-by: Nick Harper <[email protected]> Commit-Queue: David Benjamin <[email protected]>
- Loading branch information