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/APS/include/apsTcSwapOut.h | 59 ++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 digital/beacon/src/Bitcloud_stack/Components/APS/include/apsTcSwapOut.h (limited to 'digital/beacon/src/Bitcloud_stack/Components/APS/include/apsTcSwapOut.h') diff --git a/digital/beacon/src/Bitcloud_stack/Components/APS/include/apsTcSwapOut.h b/digital/beacon/src/Bitcloud_stack/Components/APS/include/apsTcSwapOut.h new file mode 100644 index 00000000..a005ee69 --- /dev/null +++ b/digital/beacon/src/Bitcloud_stack/Components/APS/include/apsTcSwapOut.h @@ -0,0 +1,59 @@ +/*************************************************************************//** + \file apsTcSwapOut.h + + \brief Interface of APS Trust Centre Swap Out. + + \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: + 2010-11-28 Max Gekk - Created. + Last change: + $Id: apsTcSwapOut.h 17813 2011-07-04 14:11:12Z dloskutnikov $ + *****************************************************************************/ +#if !defined _APS_TC_SWAP_OUT_H +#define _APS_TC_SWAP_OUT_H +/**//** + * + * In order to protect the data that is being backed up, a hash on the TC + * link key will be performed and that will be the key stored externally. + * The actual link key used for operational networks never be transported + * out of the ESI. See ZigBee-095310r23ZB, page 82. + * + **/ + +/****************************************************************************** + Includes section + ******************************************************************************/ +#include + +#if defined _SECURITY_ && defined _LINK_SECURITY_ && defined _TC_SWAPOUT_ + +/****************************************************************************** + Prototypes section + ******************************************************************************/ +/**************************************************************************//** + \brief Creates link key hash for the Trust Centre and store it inside. + ******************************************************************************/ +void APS_EnableLinkKeyHashChecking(void); + +/**************************************************************************//** + \brief Writes invalid value to link key hash for the Trust Centre. + ******************************************************************************/ +void APS_DisableLinkKeyHashChecking(void); + +/**************************************************************************//** + \brief Gets pointer to stored link key hash for the Trust Centre. + ******************************************************************************/ +uint8_t *APS_GetLinkKeyHash(void); + +#endif /* _SECURITY_ and _LINK_SECURITY_ and _TC_SWAPOUT_ */ + +#endif /* _APS_TC_SWAP_OUT_H */ +/** eof apsTcSwapOut.h */ + -- cgit v1.2.3