summaryrefslogtreecommitdiff
path: root/digital/zigbit/bitcloud/stack/Components/NWK/include/private/nwkTxSecurity.h
diff options
context:
space:
mode:
authorFlorent Duchon2012-12-26 17:36:00 +0100
committerFlorent Duchon2013-02-13 21:21:12 +0100
commitb24866225a6301d3a663f874725e83c012dc25d3 (patch)
treeca527a2aab9abcdfbaf244c53ca63f0c531892b0 /digital/zigbit/bitcloud/stack/Components/NWK/include/private/nwkTxSecurity.h
parent2ba279f4eb2f23fa08a7c13465d16ae6ba5d0f96 (diff)
digital/beacon: add bitcloud stack into common directory digital/zigbit
Diffstat (limited to 'digital/zigbit/bitcloud/stack/Components/NWK/include/private/nwkTxSecurity.h')
-rw-r--r--digital/zigbit/bitcloud/stack/Components/NWK/include/private/nwkTxSecurity.h70
1 files changed, 70 insertions, 0 deletions
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 <nwkConfig.h>
+#include <mac.h>
+#include <sspSfp.h>
+#include <nwkTx.h>
+
+/******************************************************************************
+ 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 */
+