summaryrefslogtreecommitdiff
path: root/cesar/mac/common/nek.h
blob: 53a012d2ebb075199cb21a9717904609d81ae51a (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
#ifndef mac_common_nek_h
#define mac_common_nek_h
/* Cesar project {{{
 *
 * Copyright (C) 2008 Spidcom
 *
 * <<<Licence>>>
 *
 * }}} */
/**
 * \file    mac/common/nek.h
 * \brief   NEK related definitions.
 * \ingroup mac_common
 */

/** EKS/NEK pair.
 * This pair is valid if EKS is less than MAC_EKS_NB.
 *
 * To update a pair, first set EKS to MAC_EKS_CLEAR, then change the key, and
 * finally, write the EKS.
 */
struct mac_nek_t
{
    /** Encryption Key Select. */
    u8 eks;
    /** Network encryption Key. */
    u32 nek[4];
};
typedef struct mac_nek_t mac_nek_t;

#endif /* mac_common_nek_h */