boringssl/crypto/bytestring
David Benjamin a7810c12e9 Make tls_open_record always in-place.
The business with ssl_record_prefix_len is rather a hassle. Instead, have
tls_open_record always decrypt in-place and give back a CBS to where the body
is.

This way the caller doesn't need to do an extra check all to avoid creating an
invalid pointer and underflow in subtraction.

Change-Id: I4e12b25a760870d8f8a503673ab00a2d774fc9ee
Reviewed-on: https://boringssl-review.googlesource.com/8173
Reviewed-by: Steven Valdez <svaldez@google.com>
Reviewed-by: David Benjamin <davidben@google.com>
2016-06-08 18:39:07 +00:00
..
asn1_compat.c Add a convenience function for i2d compatibility wrappers. 2016-02-16 19:40:53 +00:00
ber.c Add CBS_ASN1_UTF8STRING define. 2016-03-23 19:29:49 +00:00
bytestring_test.cc Make tls_open_record always in-place. 2016-06-08 18:39:07 +00:00
cbb.c Rewrite ssl3_send_server_key_exchange to use CBB. 2015-12-22 17:23:58 +00:00
cbs.c Make tls_open_record always in-place. 2016-06-08 18:39:07 +00:00
CMakeLists.txt Add a convenience function for i2d compatibility wrappers. 2016-02-16 19:40:53 +00:00
internal.h Add a convenience function for i2d compatibility wrappers. 2016-02-16 19:40:53 +00:00