Anti-replay mechanism. More...
#include "ipsec/ipsec.h"
Go to the source code of this file.
Functions | |
void | ipsecInitReplayWindow (IpsecSadEntry *sa) |
Initialize sliding window. More... | |
error_t | ipsecCheckReplayWindow (const IpsecSadEntry *sa, uint64_t seqNum) |
Perform replay detection. More... | |
void | ipsecUpdateReplayWindow (IpsecSadEntry *sa, uint64_t seqNum) |
Update sliding window. More... | |
Detailed Description
Anti-replay mechanism.
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 ipsec_anti_replay.h.
Function Documentation
◆ ipsecCheckReplayWindow()
error_t ipsecCheckReplayWindow | ( | const IpsecSadEntry * | sa, |
uint64_t | seqNum | ||
) |
Perform replay detection.
- Parameters
-
[in] sa Pointer to the security association [in] seqNum Sequence number of the received packet
- Returns
- Error code
Definition at line 65 of file ipsec_anti_replay.c.
◆ ipsecInitReplayWindow()
void ipsecInitReplayWindow | ( | IpsecSadEntry * | sa | ) |
Initialize sliding window.
- Parameters
-
[in] sa Pointer to the security association
Definition at line 44 of file ipsec_anti_replay.c.
◆ ipsecUpdateReplayWindow()
void ipsecUpdateReplayWindow | ( | IpsecSadEntry * | sa, |
uint64_t | seqNum | ||
) |
Update sliding window.
- Parameters
-
[in] sa Pointer to the security association [in] seqNum Sequence number of the received packet
Definition at line 152 of file ipsec_anti_replay.c.