summaryrefslogtreecommitdiff
path: root/cesar/mac/common/nek.h
blob: aa20bcf6073f5a5a5e760ca16aa18c6bef3de22b (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
#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.
 */
struct mac_nek_t
{
    /** Encryption Key Select. */
    u8 eks;
    /** Whether the NEK is in use by the bsu. */
    int in_use;
    /** Network encryption Key. */
    u32 nek_enc[4];
    /** Network decryption Key. */
    u32 nek_dec[4];
};
typedef struct mac_nek_t mac_nek_t;

#endif /* mac_common_nek_h */