Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ITS - Intelligent Transport Systems
ITS
Commits
2c994fad
Commit
2c994fad
authored
Mar 24, 2020
by
Yann Garcia
Browse files
Bug fixed in Native API
parent
cb8cf8a4
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
tools/itssecurity/.vs/itssecurity/v16/.suo
View file @
2c994fad
No preview for this file type
tools/itssecurity/.vs/itssecurity/v16/Browse.VC.db
View file @
2c994fad
No preview for this file type
tools/itssecurity/.vs/itssecurity/v16/Solution.VC.db
View file @
2c994fad
No preview for this file type
tools/itssecurity/lib_its_security/lib_its_security.c
View file @
2c994fad
This diff is collapsed.
Click to expand it.
tools/itssecurity/org_etsi_its_security/org_etsi_its_security_NativeSecurity.c
View file @
2c994fad
This diff is collapsed.
Click to expand it.
tools/itssecurity/test/test_lib_its_security.cc
View file @
2c994fad
...
...
@@ -3,7 +3,7 @@
extern
"C"
{
#include
"lib_its_security.h"
#ifndef _Win64
uint8_t
*
hex_to_bin
(
const
int8_t
*
p_buffer
,
size_t
*
p_buffer_length
);
uint8_t
*
hex_to_bin
(
const
int8_t
*
p_buffer
,
size_t
*
p_buffer_length
);
#endif
}
...
...
@@ -19,7 +19,7 @@ uint8_t* hex_to_bin(const int8_t* p_buffer, size_t* p_buffer_length) {
}
if
((
len
=
strlen
((
const
char
*
)
p_buffer
))
&
1
)
{
return
NULL
;
}
}
retval
=
(
uint8_t
*
)
malloc
(
len
>>
1
);
for
(
i
=
0
;
i
<
len
;
i
++
)
{
...
...
@@ -978,7 +978,7 @@ TEST(lib_its_security_test_suite, decrypt_aes_ccm_4) {
EXPECT_TRUE
(
decrypt
(
lib_its_security_context
,
encrypted_secured_message
,
encrypted_secured_message_length
,
&
new_plain_text_message
,
&
new_plain_text_message_length
)
==
0
);
EXPECT_TRUE
(
new_plain_text_message
!=
NULL
);
EXPECT_TRUE
(
plain_text_message_length
==
new_plain_text_message_length
);
for
(
size_t
i
=
0
;
i
<
new_plain_text_message_length
;
i
++
)
{
for
(
size_t
i
=
0
;
i
<
new_plain_text_message_length
;
i
++
)
{
EXPECT_TRUE
(
*
(
new_plain_text_message
+
i
)
==
*
(
plain_text_message
+
i
));
}
...
...
@@ -1520,8 +1520,7 @@ TEST(lib_its_security_test_suite, encrypt_with_ecies_brainpoolp256r1_with_sha256
* @param[in] p_argc Number of argumrnt
* @param[in] p_argv List of the arguments
*/
int
main
(
int
argc
,
char
**
argv
)
{
int
main
(
int
argc
,
char
**
argv
)
{
::
testing
::
InitGoogleTest
(
&
argc
,
argv
);
return
RUN_ALL_TESTS
();
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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