mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-16 08:42:50 +00:00
Fix some variable names in code comment
Signed-off-by: Xiaofei Bai <xiaofei.bai@arm.com>
This commit is contained in:
parent
89b526da3e
commit
feecbbbb93
@ -61,21 +61,21 @@ struct mbedtls_ssl_tls13_labels_struct const mbedtls_ssl_tls13_labels =
|
|||||||
* 255 Bytes, so we require `desired_length` to be at most
|
* 255 Bytes, so we require `desired_length` to be at most
|
||||||
* 255. This allows us to save a few Bytes of code by
|
* 255. This allows us to save a few Bytes of code by
|
||||||
* hardcoding the writing of the high bytes.
|
* hardcoding the writing of the high bytes.
|
||||||
* - (label, llen): label + label length, without "tls13 " prefix
|
* - (label, label_len): label + label length, without "tls13 " prefix
|
||||||
* The label length MUST be less than or equal to
|
* The label length MUST be less than or equal to
|
||||||
* MBEDTLS_SSL_TLS1_3_KEY_SCHEDULE_MAX_LABEL_LEN
|
* MBEDTLS_SSL_TLS1_3_KEY_SCHEDULE_MAX_LABEL_LEN
|
||||||
* It is the caller's responsibility to ensure this.
|
* It is the caller's responsibility to ensure this.
|
||||||
* All (label, label length) pairs used in TLS 1.3
|
* All (label, label length) pairs used in TLS 1.3
|
||||||
* can be obtained via MBEDTLS_SSL_TLS1_3_LBL_WITH_LEN().
|
* can be obtained via MBEDTLS_SSL_TLS1_3_LBL_WITH_LEN().
|
||||||
* - (ctx, clen): context + context length
|
* - (ctx, ctx_len): context + context length
|
||||||
* The context length MUST be less than or equal to
|
* The context length MUST be less than or equal to
|
||||||
* MBEDTLS_SSL_TLS1_3_KEY_SCHEDULE_MAX_CONTEXT_LEN
|
* MBEDTLS_SSL_TLS1_3_KEY_SCHEDULE_MAX_CONTEXT_LEN
|
||||||
* It is the caller's responsibility to ensure this.
|
* It is the caller's responsibility to ensure this.
|
||||||
* - dst: Target buffer for HkdfLabel structure,
|
* - dst: Target buffer for HkdfLabel structure,
|
||||||
* This MUST be a writable buffer of size
|
* This MUST be a writable buffer of size
|
||||||
* at least SSL_TLS1_3_KEY_SCHEDULE_MAX_HKDF_LABEL_LEN Bytes.
|
* at least SSL_TLS1_3_KEY_SCHEDULE_MAX_HKDF_LABEL_LEN Bytes.
|
||||||
* - dlen: Pointer at which to store the actual length of
|
* - dst_len: Pointer at which to store the actual length of
|
||||||
* the HkdfLabel structure on success.
|
* the HkdfLabel structure on success.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static const char tls1_3_label_prefix[6] = "tls13 ";
|
static const char tls1_3_label_prefix[6] = "tls13 ";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user