Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
littleBu
OpenXG-RAN
Commits
f73579ea
Commit
f73579ea
authored
6 months ago
by
Guido Casati
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Limit scope of NAS functions (static)
parent
ddad26ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
openair3/NAS/NR_UE/nr_nas_msg.c
openair3/NAS/NR_UE/nr_nas_msg.c
+3
-3
No files found.
openair3/NAS/NR_UE/nr_nas_msg.c
View file @
f73579ea
...
...
@@ -93,7 +93,7 @@ static void servingNetworkName(uint8_t *msg, char *imsiStr, int nmc_size)
memcpy
(
msg
+
13
,
imsiStr
,
3
);
}
security_state_t
nas_security_rx_process
(
nr_ue_nas_t
*
nas
,
uint8_t
*
pdu_buffer
,
int
pdu_length
)
s
tatic
s
ecurity_state_t
nas_security_rx_process
(
nr_ue_nas_t
*
nas
,
uint8_t
*
pdu_buffer
,
int
pdu_length
)
{
if
(
nas
->
security_container
==
NULL
)
return
NAS_SECURITY_NO_SECURITY_CONTEXT
;
...
...
@@ -438,7 +438,7 @@ void derive_knas(algorithm_type_dist_t nas_alg_type, uint8_t nas_alg_id, uint8_t
memcpy
(
knas
,
out
+
16
,
16
);
}
void
derive_kgnb
(
uint8_t
kamf
[
32
],
uint32_t
count
,
uint8_t
*
kgnb
)
static
void
derive_kgnb
(
uint8_t
kamf
[
32
],
uint32_t
count
,
uint8_t
*
kgnb
)
{
/* Compute the KDF input parameter
* S = FC(0x6E) || UL NAS Count || 0x00 0x04 || 0x01 || 0x00 0x01
...
...
@@ -473,7 +473,7 @@ void derive_kgnb(uint8_t kamf[32], uint32_t count, uint8_t *kgnb)
printf
(
"
\n
"
);
}
void
derive_ue_keys
(
uint8_t
*
buf
,
nr_ue_nas_t
*
nas
)
static
void
derive_ue_keys
(
uint8_t
*
buf
,
nr_ue_nas_t
*
nas
)
{
uint8_t
ak
[
6
];
uint8_t
sqn
[
6
];
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment