From b24866225a6301d3a663f874725e83c012dc25d3 Mon Sep 17 00:00:00 2001 From: Florent Duchon Date: Wed, 26 Dec 2012 17:36:00 +0100 Subject: digital/beacon: add bitcloud stack into common directory digital/zigbit --- .../Components/NWK/include/private/nwkTxSecurity.h | 70 ++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 digital/zigbit/bitcloud/stack/Components/NWK/include/private/nwkTxSecurity.h (limited to 'digital/zigbit/bitcloud/stack/Components/NWK/include/private/nwkTxSecurity.h') diff --git a/digital/zigbit/bitcloud/stack/Components/NWK/include/private/nwkTxSecurity.h b/digital/zigbit/bitcloud/stack/Components/NWK/include/private/nwkTxSecurity.h new file mode 100644 index 00000000..fc9d0120 --- /dev/null +++ b/digital/zigbit/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