mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-02-24 11:46:56 +00:00
Document precondition of nonce-generating function in ssl_msg.c
Signed-off-by: Hanno Becker <hanno.becker@arm.com>
This commit is contained in:
parent
15952814d8
commit
f486e28694
|
@ -565,6 +565,13 @@ static int ssl_transform_aead_dynamic_iv_is_explicit(
|
||||||
* This variant occurs in TLS 1.3 and for TLS 1.2 when using ChaChaPoly.
|
* This variant occurs in TLS 1.3 and for TLS 1.2 when using ChaChaPoly.
|
||||||
*
|
*
|
||||||
* See also the documentation of mbedtls_ssl_transform.
|
* See also the documentation of mbedtls_ssl_transform.
|
||||||
|
*
|
||||||
|
* This function has the precondition that
|
||||||
|
*
|
||||||
|
* dst_iv_len >= max( fixed_iv_len, dynamic_iv_len )
|
||||||
|
*
|
||||||
|
* which has to be ensured by the caller. If this precondition
|
||||||
|
* violated, the behavior of this function is undefined.
|
||||||
*/
|
*/
|
||||||
static void ssl_build_record_nonce( unsigned char *dst_iv,
|
static void ssl_build_record_nonce( unsigned char *dst_iv,
|
||||||
size_t dst_iv_len,
|
size_t dst_iv_len,
|
||||||
|
|
Loading…
Reference in a new issue