2016-08-15 18:01:06 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2016 Nordic Semiconductor ASA
|
|
|
|
* Copyright (c) 2016 Vinayak Kariappa Chettimada
|
|
|
|
*
|
2017-01-19 09:01:01 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2016-08-15 18:01:06 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _CCM_H_
|
|
|
|
#define _CCM_H_
|
|
|
|
|
2016-09-26 18:52:57 +08:00
|
|
|
struct ccm {
|
2017-04-21 01:00:29 +08:00
|
|
|
u8_t key[16];
|
|
|
|
u64_t counter;
|
|
|
|
u8_t direction:1;
|
|
|
|
u8_t resv1:7;
|
|
|
|
u8_t iv[8];
|
2016-09-26 18:52:57 +08:00
|
|
|
} __packed;
|
2016-08-15 18:01:06 +08:00
|
|
|
|
|
|
|
#endif /* _CCM_H_ */
|