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
d4c4b62e
Commit
d4c4b62e
authored
Aug 25, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue for NEA2
parent
0a81fef3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
src/amf-app/amf_n1.cpp
src/amf-app/amf_n1.cpp
+7
-2
No files found.
src/amf-app/amf_n1.cpp
View file @
d4c4b62e
...
...
@@ -2457,8 +2457,13 @@ bool amf_n1::nas_message_cipher_protected(
case
EA2_128_5G
:
{
Logger
::
amf_n1
().
debug
(
"Cipher protected with EA2_128_5G"
);
nas_algorithms
::
nas_stream_encrypt_nea2
(
&
stream_cipher
,
(
uint8_t
*
)
bdata
(
output_nas
));
uint32_t
len
=
stream_cipher
.
blength
>>
3
;
if
((
stream_cipher
.
blength
&
0x7
)
>
0
)
len
+=
1
;
uint8_t
*
ciphered
=
(
uint8_t
*
)
malloc
(
len
);
nas_algorithms
::
nas_stream_encrypt_nea2
(
&
stream_cipher
,
ciphered
);
output_nas
=
blk2bstr
(
ciphered
,
len
);
free
(
ciphered
);
}
break
;
}
return
true
;
...
...
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