Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-AMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-AMF
Commits
ad52fef5
Commit
ad52fef5
authored
May 19, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add log to debug SQN MS
parent
4dc66e8a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
src/ngap/ngap_app/ngap_message_callback.hpp
src/ngap/ngap_app/ngap_message_callback.hpp
+0
-2
src/secu_algorithms/5gaka/authentication_algorithms_with_5gaka.cpp
...algorithms/5gaka/authentication_algorithms_with_5gaka.cpp
+8
-7
No files found.
src/ngap/ngap_app/ngap_message_callback.hpp
View file @
ad52fef5
...
@@ -283,8 +283,6 @@ int ngap_amf_handle_ue_context_release_complete(
...
@@ -283,8 +283,6 @@ int ngap_amf_handle_ue_context_release_complete(
i
->
get_msg_name
());
i
->
get_msg_name
());
}
}
return
0
;
return
0
;
return
0
;
}
}
int
ngap_amf_handle_pdu_session_resource_release_response
(
int
ngap_amf_handle_pdu_session_resource_release_response
(
...
...
src/secu_algorithms/5gaka/authentication_algorithms_with_5gaka.cpp
View file @
ad52fef5
...
@@ -560,17 +560,18 @@ uint8_t* Authentication_5gaka::sqn_ms_derive(
...
@@ -560,17 +560,18 @@ uint8_t* Authentication_5gaka::sqn_ms_derive(
sqn_ms
[
i
]
=
ak
[
i
]
^
conc_sqn_ms
[
i
];
sqn_ms
[
i
]
=
ak
[
i
]
^
conc_sqn_ms
[
i
];
}
}
// print_buffer (
"sqn_ms_derive() KEY : ", key, 16);
print_buffer
(
"amf_n1"
,
"sqn_ms_derive() KEY : "
,
key
,
16
);
// print_buffer (
"sqn_ms_derive() RAND : ", rand_p, 16);
print_buffer
(
"amf_n1"
,
"sqn_ms_derive() RAND : "
,
rand_p
,
16
);
// print_buffer (
"sqn_ms_derive() AUTS : ", auts, 14);
print_buffer
(
"amf_n1"
,
"sqn_ms_derive() AUTS : "
,
auts
,
14
);
// print_buffer (
"sqn_ms_derive() AK : ", ak, 6);
print_buffer
(
"amf_n1"
,
"sqn_ms_derive() AK : "
,
ak
,
6
);
// print_buffer (
"sqn_ms_derive() SQN_MS : ", sqn_ms, 6);
print_buffer
(
"amf_n1"
,
"sqn_ms_derive() SQN_MS : "
,
sqn_ms
,
6
);
// print_buffer (
"sqn_ms_derive() MAC_S : ", mac_s, 8);
print_buffer
(
"amf_n1"
,
"sqn_ms_derive() MAC_S : "
,
mac_s
,
8
);
f1star
(
opc
,
key
,
rand_p
,
sqn_ms
,
amf
,
mac_s_computed
);
f1star
(
opc
,
key
,
rand_p
,
sqn_ms
,
amf
,
mac_s_computed
);
// print_buffer ("MAC_S +
: ", mac_s_computed, 8);
print_buffer
(
"amf_n1"
,
"MAC_S computed
: "
,
mac_s_computed
,
8
);
if
(
memcmp
(
mac_s_computed
,
mac_s
,
8
)
!=
0
)
{
if
(
memcmp
(
mac_s_computed
,
mac_s
,
8
)
!=
0
)
{
// FPRINTF_ERROR ( "Failed to verify computed SQN_MS\n");
// FPRINTF_ERROR ( "Failed to verify computed SQN_MS\n");
Logger
::
amf_n1
().
warn
(
"Failed to verify computed SQN_MS"
);
free
(
sqn_ms
);
free
(
sqn_ms
);
return
NULL
;
return
NULL
;
}
}
...
...
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