summaryrefslogtreecommitdiff
path: root/digital/zigbit/bitcloud/stack/Components/APS/include/apsTcSwapOut.h
blob: a005ee69c436fe6f5087d266110b3059e78945c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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 <apsCommon.h>

#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 */