2017-03-06 13:47:39 +00:00
|
|
|
#ifndef __MME_KDF_H__
|
|
|
|
#define __MME_KDF_H__
|
|
|
|
|
|
|
|
#include "core.h"
|
|
|
|
|
2018-01-04 11:38:22 +00:00
|
|
|
#include "nas/nas_ies.h"
|
2017-03-06 13:47:39 +00:00
|
|
|
|
2017-03-07 00:30:12 +00:00
|
|
|
/* Algorithm Type Distinguishers */
|
2017-03-06 13:47:39 +00:00
|
|
|
#define MME_KDF_NAS_ENC_ALG 0x01
|
|
|
|
#define MME_KDF_NAS_INT_ALG 0x02
|
|
|
|
|
2017-03-07 00:30:12 +00:00
|
|
|
/* Algorithm Identity defined in nas_ies.h
|
|
|
|
#define NAS_SECURITY_ALGORITHMS_EIA0_EEA0 0
|
|
|
|
#define NAS_SECURITY_ALGORITHMS_128_EIA1_EEA1 1
|
|
|
|
#define NAS_SECURITY_ALGORITHMS_128_EIA1_EEA2 2
|
|
|
|
#define NAS_SECURITY_ALGORITHMS_128_EIA3_EEA3 3
|
|
|
|
*/
|
|
|
|
|
2017-03-08 06:27:48 +00:00
|
|
|
CORE_DECLARE(void) mme_kdf_nas(c_uint8_t algorithm_type_distinguishers,
|
2017-03-06 13:47:39 +00:00
|
|
|
c_uint8_t algorithm_identity, c_uint8_t *kasme, c_uint8_t *knas);
|
|
|
|
|
2017-09-12 01:41:00 +00:00
|
|
|
CORE_DECLARE(void) mme_kdf_enb(
|
|
|
|
c_uint8_t *kasme, c_uint32_t ul_count, c_uint8_t *kenb);
|
|
|
|
|
|
|
|
CORE_DECLARE(void) mme_kdf_nh(
|
|
|
|
c_uint8_t *kasme, c_uint8_t *sync_input, c_uint8_t *kenb);
|
2017-04-13 12:05:30 +00:00
|
|
|
|
2017-03-06 13:47:39 +00:00
|
|
|
#endif /* __MME_KDF_H__ */
|