mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-28 00:21:48 +03:00
Replace instances of byte reading macros with PUT
Instances of a group of byte reading macros which are equivilant to MBEDTLS_PUT_UINTx_yz Signed-off-by: Joe Subbiani <joe.subbiani@arm.com>
This commit is contained in:
@ -245,8 +245,7 @@ int mbedtls_ssl_ticket_write( void *p_ticket,
|
||||
{
|
||||
goto cleanup;
|
||||
}
|
||||
state_len_bytes[0] = MBEDTLS_BYTE_1( clear_len );
|
||||
state_len_bytes[1] = MBEDTLS_BYTE_0( clear_len );
|
||||
MBEDTLS_PUT_UINT16_BE( clear_len, state_len_bytes, 0 );
|
||||
|
||||
/* Encrypt and authenticate */
|
||||
if( ( ret = mbedtls_cipher_auth_encrypt_ext( &key->ctx,
|
||||
|
Reference in New Issue
Block a user