DTLS 1.3 (Datagram Transport Layer Security) More...
#include "tls/tls.h"#include "tls/tls_misc.h"#include "dtls/dtls_record.h"#include "dtls13/dtls13_misc.h"#include "debug.h"Go to the source code of this file.
Macros | |
| #define | TRACE_LEVEL TLS_TRACE_LEVEL |
Functions | |
| void | dtls13SaveRecordNumber (TlsContext *context, uint64_t epoch, uint64_t seqNum) |
| Update the list of record numbers. More... | |
| error_t | dtls13SendAck (TlsContext *context) |
| Send ACK message. More... | |
| error_t | dtls13FormatAck (TlsContext *context, Dtls13Ack *message, size_t *length) |
| Format ACK message. More... | |
| error_t | dtls13ParseAck (TlsContext *context, const Dtls13Ack *message, size_t length) |
| Parse ACK message. More... | |
| void | dtls13FormatNonce (TlsEncryptionEngine *encryptionEngine, const DtlsSequenceNumber *seqNum, uint8_t *nonce, size_t *nonceLen) |
| Format nonce. More... | |
| size_t | dtls13ComputeEncryptionOverhead (TlsEncryptionEngine *encryptionEngine) |
| Compute overhead caused by encryption. More... | |
Detailed Description
DTLS 1.3 (Datagram Transport Layer Security)
License
SPDX-License-Identifier: GPL-2.0-or-later
Copyright (C) 2010-2026 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.
- Version
- 2.6.2
Definition in file dtls13_misc.c.
Macro Definition Documentation
◆ TRACE_LEVEL
| #define TRACE_LEVEL TLS_TRACE_LEVEL |
Definition at line 32 of file dtls13_misc.c.
Function Documentation
◆ dtls13ComputeEncryptionOverhead()
| size_t dtls13ComputeEncryptionOverhead | ( | TlsEncryptionEngine * | encryptionEngine | ) |
Compute overhead caused by encryption.
- Parameters
-
[in] encryptionEngine Pointer to the encryption engine
- Returns
- Overhead, in bytes, caused by encryption
Definition at line 416 of file dtls13_misc.c.
◆ dtls13FormatAck()
| error_t dtls13FormatAck | ( | TlsContext * | context, |
| Dtls13Ack * | message, | ||
| size_t * | length | ||
| ) |
Format ACK message.
- Parameters
-
[in] context Pointer to the TLS context [out] message Buffer where to format the ACK message [out] length Length of the resulting ACK message
- Returns
- Error code
Definition at line 190 of file dtls13_misc.c.
◆ dtls13FormatNonce()
| void dtls13FormatNonce | ( | TlsEncryptionEngine * | encryptionEngine, |
| const DtlsSequenceNumber * | seqNum, | ||
| uint8_t * | nonce, | ||
| size_t * | nonceLen | ||
| ) |
Format nonce.
- Parameters
-
[in] encryptionEngine Pointer to the encryption engine [in] seqNum Pointer to the sequence number [out] nonce Pointer to the buffer where to store the resulting nonce [out] nonceLen Length of the nonce, in bytes
Definition at line 381 of file dtls13_misc.c.
◆ dtls13ParseAck()
| error_t dtls13ParseAck | ( | TlsContext * | context, |
| const Dtls13Ack * | message, | ||
| size_t | length | ||
| ) |
Parse ACK message.
- Parameters
-
[in] context Pointer to the TLS context [in] message Incoming ACK message to parse [in] length Message length
- Returns
- Error code
Definition at line 257 of file dtls13_misc.c.
◆ dtls13SaveRecordNumber()
| void dtls13SaveRecordNumber | ( | TlsContext * | context, |
| uint64_t | epoch, | ||
| uint64_t | seqNum | ||
| ) |
Update the list of record numbers.
- Parameters
-
[in] context Pointer to the TLS context [in] epoch Epoch number of the received DTLS record [in] seqNum Sequence number of the received DTLS record
Definition at line 53 of file dtls13_misc.c.
◆ dtls13SendAck()
| error_t dtls13SendAck | ( | TlsContext * | context | ) |
Send ACK message.
The ACK message is used by an endpoint to indicate which handshake records it has received and processed from the other side
- Parameters
-
[in] context Pointer to the TLS context
- Returns
- Error code
Definition at line 117 of file dtls13_misc.c.
