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 --- .../Security/TrustCentre/include/tcAuthentic.h | 63 ++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 digital/zigbit/bitcloud/stack/Components/Security/TrustCentre/include/tcAuthentic.h (limited to 'digital/zigbit/bitcloud/stack/Components/Security/TrustCentre/include/tcAuthentic.h') diff --git a/digital/zigbit/bitcloud/stack/Components/Security/TrustCentre/include/tcAuthentic.h b/digital/zigbit/bitcloud/stack/Components/Security/TrustCentre/include/tcAuthentic.h new file mode 100644 index 00000000..f5314499 --- /dev/null +++ b/digital/zigbit/bitcloud/stack/Components/Security/TrustCentre/include/tcAuthentic.h @@ -0,0 +1,63 @@ +/**************************************************************************//** + \file tcAuthentic.h + + \brief Security Trust Centre authentic primitive header file. + + \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: + 2007.12 - ALuzhetsky created. +******************************************************************************/ +#ifndef _TCAUTHENTICH +#define _TCAUTHENTICH + +/****************************************************************************** + Include section. +******************************************************************************/ +#include + +/****************************************************************************** + Types section. +******************************************************************************/ +typedef enum _TcAuthObjState_t +{ + TC_AUTHENTIC_OBJ_STATE_IDLE, + TC_AUTHENTIC_OBJ_STATE_TRANSPORTING_NETWORK_KEY, + TC_AUTHENTIC_OBJ_STATE_TRANSPORTING_MASTER_KEY, + TC_AUTHENTIC_OBJ_STATE_ESTABLISHING_KEY, + TC_AUTHENTIC_OBJ_STATE_REMOVING_DEVICE, +} TcAuthObjState_t; + +/**************************************************************************//** + \brief Authentic handler memory object. + + This struct declares memory wichshould be reserved for the Trust Centre + Authentication proceure. +******************************************************************************/ +typedef struct +{ + union + { //! Memory for APS_TransportKeyReq. + APS_TransportKeyReq_t transportKey; + //! Memory for APS_RemoveDeviceReq. + APS_RemoveDeviceReq_t removeDevice; +#if defined _LINK_SECURITY_ && defined _HI_SECURITY_ + //! Memory for APS_EstablishKeyReq. + APS_EstablishKeyReq_t establishKey; +#endif + } buffer; + //! Memory to store source address of APS_UpdateDeviceInd command. + ExtAddr_t updateIndSrcAddr; + //! Current state for Trust Centre authentic handler. + TcAuthObjState_t state; +} TC_AuthenticObj_t; + +#endif // _TCAUTHENTICH + +// eof tcAuthentic.h -- cgit v1.2.3