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
46566577
Commit
46566577
authored
Nov 02, 2018
by
Yann Garcia
Browse files
Bug fixed in TestCodec_Pki
parent
0c3f0de4
Changes
1
Hide whitespace changes
Inline
Side-by-side
ttcn/TestCodec/TestCodec_Pki.ttcn
View file @
46566577
...
...
@@ -725,8 +725,6 @@ module TestCodec_Pki {
testcase
tc_inner_ec_functions_4
()
runs
on
TCType
system
TCType
{
var
Oct32
v_private_key
;
var
Oct32
v_publicKeyX
;
var
Oct32
v_publicKeyY
;
var
Oct32
v_publicKeyCompressed
;
var
Oct32
v_private_enc_key
;
var
Oct32
v_publicEncKeyCompressed
;
...
...
@@ -747,10 +745,6 @@ module TestCodec_Pki {
var
Oct8
v_hashed_id8_cert_iut_a_ea
;
var
Oct32
v_whole_hash_cert_ts_a_ea
;
var
Oct32
v_whole_hash_cert_iut_a_ea
;
var
InnerEcRequest
v_inner_ec_request
;
var
Certificate
v_ec_certificate
;
var
InnerAtRequest
v_inner_at_request
;
var
Ieee1609Dot2Data
v_inner_at_request_data
;
var
AuthorizationValidationRequest
v_authorization_validation_request
;
var
boolean
v_ret
:=
false
;
...
...
@@ -771,28 +765,7 @@ module TestCodec_Pki {
f_getCertificateHash
(
"CERT_TS_A_EA"
,
v_whole_hash_cert_ts_a_ea
);
f_getCertificateHash
(
"CERT_IUT_A_EA"
,
v_whole_hash_cert_iut_a_ea
);
v_ret
:=
f_generate_inner_ec_request
(
v_private_key
,
v_publicKeyCompressed
,
v_compressedMode
,
v_inner_ec_request
);
if
(
v_ret
==
true
)
{
setverdict
(
pass
);
}
else
{
setverdict
(
fail
,
"f_generate_inner_ec_request"
);
stop
;
}
v_ret
:=
f_generate_ec_certificate
(
v_private_key
,
v_inner_ec_request
,
v_ec_certificate
);
if
(
v_ret
==
true
)
{
setverdict
(
pass
);
}
else
{
setverdict
(
fail
,
"f_generate_ec_certificate"
);
stop
;
}
v_ret
:=
f_generate_inner_at_request
(
v_ec_certificate
,
v_private_key
,
v_cert_iut_a_ea
,
v_hashed_id8_cert_iut_a_ea
,
true
,
v_private_enc_key
,
v_publicEncKeyCompressed
,
v_compressedMode
,
v_inner_at_request
,
v_inner_at_request_data
);
if
(
v_ret
==
true
)
{
setverdict
(
pass
);
}
else
{
setverdict
(
fail
,
"f_generate_inner_at_request"
);
stop
;
}
v_ret
:=
f_generate_authorization_validation_request
(
v_inner_at_request
,
v_ec_certificate
,
v_authorization_validation_request
);
v_ret
:=
f_generate_authorization_validation_request
(
v_cert_ts_a_ea
,
v_hashed_id8_cert_ts_a_ea
,
v_private_key
,
v_publicKeyCompressed
,
v_compressedMode
,
v_authorization_validation_request
);
if
(
v_ret
==
true
)
{
setverdict
(
pass
);
}
else
{
...
...
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