mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-03-26 23:05:12 +00:00
Expand documentation of internal mbedtls_record structure
This commit is contained in:
parent
6c0e53ce6f
commit
e84b28cb9d
|
@ -789,9 +789,20 @@ static inline int mbedtls_ssl_transform_uses_aead(
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
uint8_t ctr[8]; /* Record sequence number */
|
uint8_t ctr[8]; /* In TLS: The implicit record sequence number.
|
||||||
uint8_t type; /* Record type */
|
* In DTLS: The 2-byte epoch followed by
|
||||||
uint8_t ver[2]; /* SSL/TLS version */
|
* the 6-byte sequence number.
|
||||||
|
* This is stored as a raw big endian byte array
|
||||||
|
* as opposed to a uint64_t because we rarely
|
||||||
|
* need to perform arithmetic on this, but do
|
||||||
|
* need it as a Byte array for the purpose of
|
||||||
|
* MAC computations. */
|
||||||
|
uint8_t type; /* The record content type. */
|
||||||
|
uint8_t ver[2]; /* SSL/TLS version as present on the wire.
|
||||||
|
* Convert to internal presentation of versions
|
||||||
|
* using mbedtls_ssl_read_version() and
|
||||||
|
* mbedtls_ssl_write_version().
|
||||||
|
* Keep wire-format for MAC computations. */
|
||||||
|
|
||||||
unsigned char *buf; /* Memory buffer enclosing the record content */
|
unsigned char *buf; /* Memory buffer enclosing the record content */
|
||||||
size_t buf_len; /* Buffer length */
|
size_t buf_len; /* Buffer length */
|
||||||
|
|
Loading…
Reference in a new issue