ike_message_decrypt.h File Reference

IKE message decryption. More...

#include "ike/ike.h"

Go to the source code of this file.

Functions

error_t ikeDecryptMessage (IkeSaEntry *sa, uint8_t *message, size_t *messageLen)
 Decrypt an incoming IKE message. More...
 
error_t ikeVerifyChecksum (IkeSaEntry *sa, const uint8_t *message, size_t length, const uint8_t *icv)
 Verify ICV checksum. More...
 

Detailed Description

IKE message decryption.

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.

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

Definition in file ike_message_decrypt.h.

Function Documentation

◆ ikeDecryptMessage()

error_t ikeDecryptMessage ( IkeSaEntry sa,
uint8_t *  message,
size_t *  messageLen 
)

Decrypt an incoming IKE message.

Parameters
[in]saPointer to the IKE SA
[in,out]messageIKE message to be decrypted
[in,out]messageLenActual length of the IKE message
Returns
Error code

Definition at line 56 of file ike_message_decrypt.c.

◆ ikeVerifyChecksum()

error_t ikeVerifyChecksum ( IkeSaEntry sa,
const uint8_t *  message,
size_t  length,
const uint8_t *  icv 
)

Verify ICV checksum.

Parameters
[in]saPointer to the IKE SA
[in]messagePointer to the message
[in]lengthLength of the message, in bytes
[in]icvIntegrity Checksum Value (ICV)
Returns
Error code

Definition at line 342 of file ike_message_decrypt.c.