tls13_common.h File Reference

Handshake message processing (TLS 1.3 client and server) More...

#include "tls.h"

Go to the source code of this file.

Functions

error_t tls13SendKeyUpdate (TlsContext *context)
 Send KeyUpdate message. More...
 
error_t tls13FormatKeyUpdate (TlsContext *context, Tls13KeyUpdate *message, size_t *length)
 Format KeyUpdate message. More...
 
error_t tls13ParseKeyUpdate (TlsContext *context, const Tls13KeyUpdate *message, size_t length)
 Parse KeyUpdate message. More...
 

Detailed Description

Handshake message processing (TLS 1.3 client and server)

License

SPDX-License-Identifier: GPL-2.0-or-later

Copyright (C) 2010-2024 Oryx Embedded SARL. All rights reserved.

This file is part of CycloneSSL Open.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Author
Oryx Embedded SARL (www.oryx-embedded.com)
Version
2.4.4

Definition in file tls13_common.h.

Function Documentation

◆ tls13FormatKeyUpdate()

error_t tls13FormatKeyUpdate ( TlsContext context,
Tls13KeyUpdate message,
size_t *  length 
)

Format KeyUpdate message.

Parameters
[in]contextPointer to the TLS context
[out]messageBuffer where to format the KeyUpdate message
[out]lengthLength of the resulting KeyUpdate message
Returns
Error code

Definition at line 150 of file tls13_common.c.

◆ tls13ParseKeyUpdate()

error_t tls13ParseKeyUpdate ( TlsContext context,
const Tls13KeyUpdate message,
size_t  length 
)

Parse KeyUpdate message.

The KeyUpdate handshake message is used to indicate that the sender is updating its sending cryptographic keys. This message can be sent by either peer after it has sent a Finished message

Parameters
[in]contextPointer to the TLS context
[in]messageIncoming EncryptedExtensions message to parse
[in]lengthMessage length
Returns
Error code

Definition at line 178 of file tls13_common.c.

◆ tls13SendKeyUpdate()

error_t tls13SendKeyUpdate ( TlsContext context)

Send KeyUpdate message.

The KeyUpdate handshake message is used to indicate that the sender is updating its sending cryptographic keys. This message can be sent by either peer after it has sent a Finished message

Parameters
[in]contextPointer to the TLS context
Returns
Error code

Definition at line 57 of file tls13_common.c.