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
118d5a55
Commit
118d5a55
authored
Sep 26, 2018
by
garciay
Browse files
STF545: Review first test
parent
930772fe
Changes
3
Hide whitespace changes
Inline
Side-by-side
ccsrc/Protocols/Security/etsi_ts103097_data_codec.cc
View file @
118d5a55
...
...
@@ -4,6 +4,8 @@
#include
"asn1/asn_application.h"
// from asn1c
#include
"asn1/EtsiTs103097Certificate.h"
#include
"etsi_ts103097_codec_factory.hh"
#include
"loggers.hh"
int
etsi_ts103097_data_codec
::
encode
(
const
IEEE1609dot2
::
Ieee1609Dot2Data
&
p_ieee1609Dot2Data
,
OCTETSTRING
&
p_data
)
...
...
@@ -33,6 +35,8 @@ int etsi_ts103097_data_codec::decode (const OCTETSTRING& p_data, IEEE1609dot2::I
return
0
;
}
etsi_ts103097_codec_factory
etsi_ts103097_codec_factory
::
_f
;
// extern "C" {
// extern asn_TYPE_descriptor_t asn_DEF_EtsiTs103097;
// }
...
...
ttcn/AtsPki/ItsPki_TestCases.ttcn
View file @
118d5a55
...
...
@@ -176,7 +176,7 @@ module ItsPki_TestCases {
// Local variables
var
EtsiTs103097Certificate
v_certificate
;
var
HeaderLines
v_headers
;
var
charstring
v_hashedId8ToBeUsed
:=
"CERT_TS_
A
_AT"
;
var
charstring
v_hashedId8ToBeUsed
:=
"CERT_TS_
B
_AT"
;
// Test control
...
...
ttcn/TestCodec/TestCodec_Pki.ttcn
View file @
118d5a55
...
...
@@ -279,7 +279,7 @@ module TestCodec_Pki {
var
integer
v_res
:=
0
;
var
EtsiTs103097Certificate
v_certificate
;
var
InnerEcResponse
v_innerEcResponse
;
var
bitstring
v_exp_enc_msg
:=
oct2bit
(
'
400000000000000000000000000000000
A0080030080DB4F29FDF09200D2708300000000001A5617008422388301018000FA60010380012481040301FFFF80012581050401FFFFFF800
200
8D810201008080823C5C40E2D3117A493E97ECA2EA7AE164A2E3EBC856EEC760428442076370ED83808051AAE5E5DB859816DE75DB80112FBA869E2704829B912D1BE3B082F2E531C061C5699757849F335C816DDDA1742E3E6C0C2A0930146D1E0697BF035B14655AFD
'
O
);
var
bitstring
v_exp_enc_msg
:=
oct2bit
(
'
400000000000000000000000000000000
A0080030080DB4F29FDF09200D2708300000000001A5617008422388301018000FA60010380012481040301FFFF80012581050401FFFFFF800
1
8D810201008080823C5C40E2D3117A493E97ECA2EA7AE164A2E3EBC856EEC760428442076370ED83808051AAE5E5DB859816DE75DB80112FBA869E2704829B912D1BE3B082F2E531C061C5699757849F335C816DDDA1742E3E6C0C2A0930146D1E0697BF035B14655AFD
'
O
);
var
bitstring
v_enc_msg
:=
oct2bit
(
'
80030080
db4f29fdf09200d2708300000000001a5617008422388301018000fa60010380012481040301ffff80012581050401ffffff80018d810201008080823c5c40e2d3117a493e97eca2ea7ae164a2e3ebc856eec760428442076370ed83808051aae5e5db859816de75db80112fba869e2704829b912d1be3b082f2e531c061c5699757849f335c816ddda1742e3e6c0c2a0930146d1e0697bf035b14655afd
'
O
);
// CERT_IUT_E_AT.oer
var
Oct32
v_private_key
:=
'
9
e85f9242800761c6ee2889bb7bbad8942927caad8519729f8475ee50302e7f7
'
O
;
// CERT_IUT_E_AT.vkey
...
...
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