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
canghaiwuhen
OpenXG-RAN
Commits
094ac2f3
Commit
094ac2f3
authored
Feb 01, 2017
by
Laurent
Browse files
Options
Browse Files
Download
Plain Diff
merge with head of branch
parents
00ebfbb0
396d59ff
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
27 deletions
+5
-27
cmake_targets/CMakeLists.txt
cmake_targets/CMakeLists.txt
+0
-12
common/utils/T/T.h
common/utils/T/T.h
+0
-12
openair2/UTIL/OSA/osa_stream_eea.c
openair2/UTIL/OSA/osa_stream_eea.c
+1
-1
openair3/SECU/nas_stream_eea2.c
openair3/SECU/nas_stream_eea2.c
+2
-1
openair3/TEST/test_aes128_ctr_decrypt.c
openair3/TEST/test_aes128_ctr_decrypt.c
+2
-1
No files found.
cmake_targets/CMakeLists.txt
View file @
094ac2f3
...
@@ -1662,18 +1662,6 @@ endif()
...
@@ -1662,18 +1662,6 @@ endif()
message
(
"NETTLE VERSION_INSTALLED =
${
NETTLE_VERSION
}
"
)
message
(
"NETTLE VERSION_INSTALLED =
${
NETTLE_VERSION
}
"
)
string
(
REGEX REPLACE
"([0-9]+).*"
"
\\
1"
NETTLE_VERSION_MAJOR
${
NETTLE_VERSION
}
)
string
(
REGEX REPLACE
"[0-9]+
\\
.([0-9]+).*"
"
\\
1"
NETTLE_VERSION_MINOR
${
NETTLE_VERSION
}
)
message
(
"NETTLE_VERSION_MAJOR =
${
NETTLE_VERSION_MAJOR
}
"
)
message
(
"NETTLE_VERSION_MINOR =
${
NETTLE_VERSION_MINOR
}
"
)
if
(
"
${
NETTLE_VERSION_MAJOR
}
"
STREQUAL
""
OR
"
${
NETTLE_VERSION_MINOR
}
"
STREQUAL
""
)
message
(
FATAL_ERROR
"The nettle version not detected properly. Try to run build_oai -I again"
)
endif
()
add_definitions
(
"-DNETTLE_VERSION_MAJOR=
${
NETTLE_VERSION_MAJOR
}
"
)
add_definitions
(
"-DNETTLE_VERSION_MINOR=
${
NETTLE_VERSION_MINOR
}
"
)
pkg_search_module
(
XPM xpm
)
pkg_search_module
(
XPM xpm
)
if
(
NOT
${
XPM_FOUND
}
)
if
(
NOT
${
XPM_FOUND
}
)
message
(
"PACKAGE xpm not found: some targets will fail"
)
message
(
"PACKAGE xpm not found: some targets will fail"
)
...
...
common/utils/T/T.h
View file @
094ac2f3
...
@@ -188,12 +188,6 @@ extern T_cache_t *T_cache;
...
@@ -188,12 +188,6 @@ extern T_cache_t *T_cache;
#define T_HEADER(x) \
#define T_HEADER(x) \
do { \
do { \
if (!__builtin_types_compatible_p(typeof(x), struct T_header *)) { \
printf("%s:%d:%s: " \
"bad use of T, pass a message ID as first parameter\n", \
__FILE__, __LINE__, __FUNCTION__); \
abort(); \
} \
struct timespec T_HEADER_time; \
struct timespec T_HEADER_time; \
if (clock_gettime(CLOCK_REALTIME, &T_HEADER_time)) abort(); \
if (clock_gettime(CLOCK_REALTIME, &T_HEADER_time)) abort(); \
memcpy(T_LOCAL_buf, &T_HEADER_time, sizeof(struct timespec)); \
memcpy(T_LOCAL_buf, &T_HEADER_time, sizeof(struct timespec)); \
...
@@ -205,12 +199,6 @@ extern T_cache_t *T_cache;
...
@@ -205,12 +199,6 @@ extern T_cache_t *T_cache;
#define T_HEADER(x) \
#define T_HEADER(x) \
do { \
do { \
if (!__builtin_types_compatible_p(typeof(x), struct T_header *)) { \
printf("%s:%d:%s: " \
"bad use of T, pass a message ID as first parameter\n", \
__FILE__, __LINE__, __FUNCTION__); \
abort(); \
} \
T_PUT_int(1, (int)(uintptr_t)(x)); \
T_PUT_int(1, (int)(uintptr_t)(x)); \
} while (0)
} while (0)
...
...
openair2/UTIL/OSA/osa_stream_eea.c
View file @
094ac2f3
...
@@ -192,7 +192,7 @@ int stream_encrypt_eea2(stream_cipher_t *stream_cipher, uint8_t **out)
...
@@ -192,7 +192,7 @@ int stream_encrypt_eea2(stream_cipher_t *stream_cipher, uint8_t **out)
}
}
#endif
#endif
#if NETTLE_VERSION_MAJOR < 3
#if
!defined(NETTLE_VERSION_MAJOR) ||
NETTLE_VERSION_MAJOR < 3
nettle_aes128
.
set_encrypt_key
(
ctx
,
stream_cipher
->
key_length
,
nettle_aes128
.
set_encrypt_key
(
ctx
,
stream_cipher
->
key_length
,
stream_cipher
->
key
);
stream_cipher
->
key
);
#else
#else
...
...
openair3/SECU/nas_stream_eea2.c
View file @
094ac2f3
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
#include <nettle/nettle-meta.h>
#include <nettle/nettle-meta.h>
#include <nettle/aes.h>
#include <nettle/aes.h>
#include <nettle/ctr.h>
#include <nettle/ctr.h>
#include <nettle/bignum.h>
#include "assertions.h"
#include "assertions.h"
#include "conversions.h"
#include "conversions.h"
...
@@ -78,7 +79,7 @@ int nas_stream_encrypt_eea2(nas_stream_cipher_t *stream_cipher, uint8_t *out)
...
@@ -78,7 +79,7 @@ int nas_stream_encrypt_eea2(nas_stream_cipher_t *stream_cipher, uint8_t *out)
}
}
#endif
#endif
#if NETTLE_VERSION_MAJOR < 3
#if
!defined(NETTLE_VERSION_MAJOR) ||
NETTLE_VERSION_MAJOR < 3
nettle_aes128
.
set_encrypt_key
(
ctx
,
stream_cipher
->
key_length
,
nettle_aes128
.
set_encrypt_key
(
ctx
,
stream_cipher
->
key_length
,
stream_cipher
->
key
);
stream_cipher
->
key
);
#else
#else
...
...
openair3/TEST/test_aes128_ctr_decrypt.c
View file @
094ac2f3
...
@@ -31,6 +31,7 @@
...
@@ -31,6 +31,7 @@
#include <nettle/nettle-meta.h>
#include <nettle/nettle-meta.h>
#include <nettle/aes.h>
#include <nettle/aes.h>
#include <nettle/ctr.h>
#include <nettle/ctr.h>
#include <nettle/bignum.h>
static
static
void
test_uncipher_ctr
(
const
struct
nettle_cipher
*
cipher
,
const
uint8_t
*
key
,
void
test_uncipher_ctr
(
const
struct
nettle_cipher
*
cipher
,
const
uint8_t
*
key
,
...
@@ -41,7 +42,7 @@ void test_uncipher_ctr(const struct nettle_cipher *cipher, const uint8_t *key,
...
@@ -41,7 +42,7 @@ void test_uncipher_ctr(const struct nettle_cipher *cipher, const uint8_t *key,
uint8_t
*
data
=
malloc
(
length
);
uint8_t
*
data
=
malloc
(
length
);
uint8_t
*
ctr
=
malloc
(
cipher
->
block_size
);
uint8_t
*
ctr
=
malloc
(
cipher
->
block_size
);
#if NETTLE_VERSION_MAJOR < 3
#if
!defined(NETTLE_VERSION_MAJOR) ||
NETTLE_VERSION_MAJOR < 3
cipher
->
set_encrypt_key
(
ctx
,
key_length
,
key
);
cipher
->
set_encrypt_key
(
ctx
,
key_length
,
key
);
#else
#else
cipher
->
set_encrypt_key
(
ctx
,
key
);
cipher
->
set_encrypt_key
(
ctx
,
key
);
...
...
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