ESP (IP Encapsulating Security Payload) More...
#include "ipsec/ipsec.h"
Go to the source code of this file.
Macros | |
#define | ESP_SUPPORT ENABLED |
#define | ESP_ESN_SUPPORT ENABLED |
#define | ESP_CBC_SUPPORT ENABLED |
#define | ESP_CTR_SUPPORT DISABLED |
#define | ESP_CCM_8_SUPPORT DISABLED |
#define | ESP_CCM_12_SUPPORT DISABLED |
#define | ESP_CCM_16_SUPPORT DISABLED |
#define | ESP_GCM_8_SUPPORT DISABLED |
#define | ESP_GCM_12_SUPPORT DISABLED |
#define | ESP_GCM_16_SUPPORT ENABLED |
#define | ESP_CHACHA20_POLY1305_SUPPORT ENABLED |
#define | ESP_CMAC_SUPPORT DISABLED |
#define | ESP_HMAC_SUPPORT ENABLED |
#define | ESP_IDEA_SUPPORT DISABLED |
#define | ESP_DES_SUPPORT DISABLED |
#define | ESP_3DES_SUPPORT DISABLED |
#define | ESP_AES_128_SUPPORT ENABLED |
#define | ESP_AES_192_SUPPORT ENABLED |
#define | ESP_AES_256_SUPPORT ENABLED |
#define | ESP_CAMELLIA_128_SUPPORT DISABLED |
#define | ESP_CAMELLIA_192_SUPPORT DISABLED |
#define | ESP_CAMELLIA_256_SUPPORT DISABLED |
#define | ESP_MD5_SUPPORT DISABLED |
#define | ESP_SHA1_SUPPORT ENABLED |
#define | ESP_SHA256_SUPPORT ENABLED |
#define | ESP_SHA384_SUPPORT ENABLED |
#define | ESP_SHA512_SUPPORT ENABLED |
#define | ESP_BUFFER_SIZE 2048 |
Functions | |
error_t | ipv4ProcessEspHeader (NetInterface *interface, const Ipv4Header *ipv4Header, const NetBuffer *buffer, size_t offset, NetRxAncillary *ancillary) |
Process ESP protected packet. More... | |
void | espDumpHeader (const EspHeader *espHeader) |
Dump ESP header for debugging purpose. More... | |
Variables | |
typedef | __packed_struct |
ESP header. More... | |
uint32_t | seqNum |
uint8_t | payloadData [] |
EspHeader | |
uint8_t | nextHeader |
uint8_t | icv [] |
EspTrailer | |
Detailed Description
ESP (IP Encapsulating Security Payload)
License
SPDX-License-Identifier: GPL-2.0-or-later
Copyright (C) 2022-2024 Oryx Embedded SARL. All rights reserved.
This file is part of CycloneIPSEC 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.4.4
Definition in file esp.h.
Macro Definition Documentation
◆ ESP_3DES_SUPPORT
◆ ESP_AES_128_SUPPORT
◆ ESP_AES_192_SUPPORT
◆ ESP_AES_256_SUPPORT
◆ ESP_BUFFER_SIZE
◆ ESP_CAMELLIA_128_SUPPORT
◆ ESP_CAMELLIA_192_SUPPORT
◆ ESP_CAMELLIA_256_SUPPORT
◆ ESP_CBC_SUPPORT
◆ ESP_CCM_12_SUPPORT
◆ ESP_CCM_16_SUPPORT
◆ ESP_CCM_8_SUPPORT
◆ ESP_CHACHA20_POLY1305_SUPPORT
◆ ESP_CMAC_SUPPORT
◆ ESP_CTR_SUPPORT
◆ ESP_DES_SUPPORT
◆ ESP_ESN_SUPPORT
◆ ESP_GCM_12_SUPPORT
◆ ESP_GCM_16_SUPPORT
◆ ESP_GCM_8_SUPPORT
◆ ESP_HMAC_SUPPORT
◆ ESP_IDEA_SUPPORT
◆ ESP_MD5_SUPPORT
◆ ESP_SHA1_SUPPORT
◆ ESP_SHA256_SUPPORT
◆ ESP_SHA384_SUPPORT
◆ ESP_SHA512_SUPPORT
◆ ESP_SUPPORT
Function Documentation
◆ espDumpHeader()
void espDumpHeader | ( | const EspHeader * | espHeader | ) |
◆ ipv4ProcessEspHeader()
error_t ipv4ProcessEspHeader | ( | NetInterface * | interface, |
const Ipv4Header * | ipv4Header, | ||
const NetBuffer * | buffer, | ||
size_t | offset, | ||
NetRxAncillary * | ancillary | ||
) |
Process ESP protected packet.
- Parameters
-
[in] interface Underlying network interface [in] ipv4Header Pointer to the IPv4 header [in] buffer Multi-part buffer containing the ESP protected packet [in] offset Offset to the first byte of the ESP header [in] ancillary Additional options passed to the stack along with the packet
- Returns
- Error code
Variable Documentation
◆ __packed_struct
typedef __packed_struct |