From a54ad9edce697133a024aff096e50f7e4f389d5b Mon Sep 17 00:00:00 2001 From: Florent Duchon Date: Sun, 18 Mar 2012 12:22:02 +0100 Subject: digital/beacon: import Zigbit stack (bitcloud) & avr sources --- .../Components/NWK/include/private/nwkTxSecurity.h | 70 ++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 digital/beacon/src/Bitcloud_stack/Components/NWK/include/private/nwkTxSecurity.h (limited to 'digital/beacon/src/Bitcloud_stack/Components/NWK/include/private/nwkTxSecurity.h') diff --git a/digital/beacon/src/Bitcloud_stack/Components/NWK/include/private/nwkTxSecurity.h b/digital/beacon/src/Bitcloud_stack/Components/NWK/include/private/nwkTxSecurity.h new file mode 100644 index 00000000..fc9d0120 --- /dev/null +++ b/digital/beacon/src/Bitcloud_stack/Components/NWK/include/private/nwkTxSecurity.h @@ -0,0 +1,70 @@ +/**************************************************************************//** + \file nwkTxSecurity.h + + \brief Interface of transmission security. + + \author + Atmel Corporation: http://www.atmel.com \n + Support email: avr@atmel.com + + Copyright (c) 2008-2011, Atmel Corporation. All rights reserved. + Licensed under Atmel's Limited License Agreement (BitCloudTM). + + \internal + History: + 2009-08-31 M. Gekk - Created. + Last change: + $Id: nwkTxSecurity.h 17721 2011-06-27 10:38:42Z mgekk $ + ******************************************************************************/ +#if !defined _NWK_TX_SECURITY_H +#define _NWK_TX_SECURITY_H + +#if defined _SECURITY_ +/****************************************************************************** + Includes section + ******************************************************************************/ +#include +#include +#include +#include + +/****************************************************************************** + Prototypes section + ******************************************************************************/ +/**************************************************************************//** + \brief Check of that enciphering for a proceeding network packet is required. + + \param[in] outPkt - pointer to a network output packet. + \return 'true' if encrypting is required otherwise 'false' + ******************************************************************************/ +NWK_PRIVATE bool nwkIsEncryptingRequired(NwkOutputPacket_t *const outPkt); + +/**************************************************************************//** + \brief Request to encrypt an output network packet. + + \param[in] encryptReq - encrypt frame primitive's parameters structure. + \param[in] macDataReq - MCPS-DATA request primitive's parameters structure. + \return None. + ******************************************************************************/ +NWK_PRIVATE void nwkEncryptOutputPacket(SSP_EncryptFrameReq_t *const encryptReq, + const MAC_DataReq_t *const macDataReq); + +/**************************************************************************//** + \brief Request to decrypt an output network packet. + + \param[in] decryptReq - decrypt frame primitive's parameters structure. + \param[in] macDataReq - MCPS-DATA request primitive's parameters structure. + \return None. + ******************************************************************************/ +NWK_PRIVATE void nwkDecryptOutputPacket(SSP_DecryptFrameReq_t *const decryptReq, + const MAC_DataReq_t *const macDataReq); + +#else /* _SECURITY_ */ + +#define nwkIsEncryptingRequired(outPkt) false +#define nwkIsDecryptingRequired(outPkt) false + +#endif /* _SECURITY_ */ +#endif /* _NWK_TX_SECURITY_H */ +/** eof nwkTxSecurity.h */ + -- cgit v1.2.3