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
58cdf525
Commit
58cdf525
authored
Dec 05, 2018
by
Yann Garcia
Browse files
Minor bugs fixed
parent
fdc671be
Changes
3
Hide whitespace changes
Inline
Side-by-side
etc/TestCodec/TestCodec.cfg
View file @
58cdf525
...
...
@@ -290,7 +290,7 @@ system.pkiPort.params := "PKI/HTTP(device_mode=1,uri=/its/inner_ec_request,host=
#TestCodec_SecuredFuntions.tc_f_verifyWithEcdsaNistp256WithSha256_1
#TestCodec_SecuredFuntions.tc_f_verifyWithEcdsaNistp256WithSha256_2
#TestCodec_SecuredFuntions.tc_f_verifyWithEcdsaNistp256WithSha256_3 # Shall failed on error: Dynamic test case error: security_ecc::security_ecc (2): Failed to get coordinates
TestCodec_SecuredFuntions.tc_f_verifyWithEcdsaNistp256WithSha256_4
#
TestCodec_SecuredFuntions.tc_f_verifyWithEcdsaNistp256WithSha256_4
#TestCodec_SecuredFuntions.tc_f_signWithEcdsaBrainpoolp256WithSha256_1
#TestCodec_SecuredFuntions.tc_f_verifyWithEcdsaBrainpoolp256WithSha256_1
#TestCodec_SecuredFuntions.tc_f_verifyWithEcdsaBrainpoolp256WithSha256_2
...
...
@@ -351,6 +351,7 @@ TestCodec_SecuredFuntions.tc_f_verifyWithEcdsaNistp256WithSha256_4
#TestCodec_Pki.tc_decode_inner_ec_response_1
#TestCodec_Pki.tc_inner_ec_request_1
#TestCodec_Pki.tc_inner_ec_request_2
TestCodec_Pki.tc_inner_ec_request_3
#TestCodec_Pki.tc_inner_ec_response_1
#TestCodec_Pki.tc_inner_ec_response_2
#TestCodec_Pki.tc_inner_ec_response_3
...
...
LibIts
@
aa5c210a
Compare
a9d34302
...
aa5c210a
Subproject commit a
9d34302019d60f227ffc340f92a9a65c806bc02
Subproject commit a
a5c210a36c8d7aa155f4cc972c49db08f9b7f0f
ttcn/TestCodec/TestCodec_Pki.ttcn
View file @
58cdf525
...
...
@@ -253,6 +253,57 @@ module TestCodec_Pki {
stop
;
}
}
// End of testcase tc_inner_ec_request_2
testcase
tc_inner_ec_request_3
()
runs
on
TCType
system
TCType
{
var
Ieee1609Dot2Data
v_inner_ec_request_signed_for_pop
:=
{
protocolVersion
:=
3
,
content
:=
{
signedData
:=
{
hashId
:=
sha256
,
tbsData
:=
{
payload
:=
{
data
:=
{
protocolVersion
:=
3
,
content
:=
{
unsecuredData
:=
'
018003810040038081830040314234434131323130313233414539303042424536433345424145374538374441323044424441423145374232454330363931433531433130323139303041410100808271
C23BCD74028A92B10E77BE7D935CAB8AEDEBDFE95922AE587400C378E818247C831C1439A686000183010280000C800022C001018002026F810201C04002026F000001677DBBEBD782808015BA000FF44CAF5E68181E19E3C3085FD622AD974E79830137D95EF3731D543B4455305E244EFEDDB80B6A55B05DB67FAC782A1A75B11827154A9601BC03924A
'
O
}
},
extDataHash
:=
omit
},
headerInfo
:=
{
psid
:=
623
,
generationTime
:=
1544002726922
,
expiryTime
:=
omit
,
generationLocation
:=
omit
,
p2pcdLearningRequest
:=
omit
,
missingCrlIdentifier
:=
omit
,
encryptionKey
:=
omit
,
inlineP2pcdRequest
:=
omit
,
requestedCertificate
:=
omit
}
},
signer
:=
{
self_
:=
NULL
},
signature_
:=
{
ecdsaNistP256Signature
:=
{
rSig
:=
{
x_only
:=
'
6694
E7A01F23A569FE9C896BF4BDACE52C9972AB503FB30A41E55F33CC8156D6
'
O
},
sSig
:=
'
A09D9D14346781B109B932FBCF9EB034299878C84F4D837BD583837DA831453D
'
O
}
}
}
}
};
var
bitstring
v_enc_message
;
var
Oct32
v_full_request_hash
;
var
Oct32
v_expected_full_request_hash
;
v_enc_message
:=
encvalue
(
v_inner_ec_request_signed_for_pop
);
v_full_request_hash
:=
f_hashWithSha256
(
bit2oct
(
v_enc_message
));
log
(
"v_full_request_hash= "
,
v_full_request_hash
);
}
// End of testcase tc_inner_ec_request_3
testcase
tc_inner_ec_response_1
()
runs
on
TCType
system
TCType
{
var
Oct32
v_private_key
;
...
...
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