Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TTCN-3 Libraries
LibIts
Commits
50f63dfd
Commit
50f63dfd
authored
Feb 18, 2019
by
Yann Garcia
Browse files
Bug fixed on generationTime calculation
parent
a944e1ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
ttcn/Pki/LibItsPki_Functions.ttcn
View file @
50f63dfd
...
...
@@ -1285,7 +1285,7 @@ module LibItsPki_Functions {
),
m_headerInfo_inner_pki_request
(
-
,
f_getCurrentTime
Utc
()
(
f_getCurrentTime
()
*
1000
)
//us
)
);
// Signed the encoded InnerEcRequestSignedForPop
...
...
@@ -1486,7 +1486,7 @@ module LibItsPki_Functions {
m_signedDataPayload_ext
(
v_hash_shared_at_request
),
// Payload containing extDataHash
m_headerInfo_inner_pki_request
(
// HeaderInfo
-
,
f_getCurrentTime
Utc
())
(
f_getCurrentTime
())
*
1000
)
//us
);
log
(
"f_generate_inner_at_request: v_tbs= "
,
v_tbs
);
// Signed ToBeSigned payload using the private key of EC certificate obtained from Enrolment request
...
...
@@ -1966,7 +1966,7 @@ module LibItsPki_Functions {
m_signedDataPayload
(
m_etsiTs103097Data_unsecured
(
p_pki_message
)
),
m_headerInfo_inner_pki_request
(
-
,
f_getCurrentTime
Utc
()
)
m_headerInfo_inner_pki_request
(
-
,
(
f_getCurrentTime
()
*
1000
)
/*us*/
)
);
log
(
"f_build_pki_secured_request_message_signed_with_pop: signer: "
,
p_signer_identifier
);
if
(
PICS_SECPKI_REENROLMENT
==
false
)
{
// This is the first enrolment, we used Factory keys
...
...
@@ -2367,7 +2367,7 @@ module LibItsPki_Functions {
m_signedDataPayload
(
m_etsiTs103097Data_unsecured
(
p_pki_message
)
),
m_headerInfo_inner_pki_response
(
-
,
f_getCurrentTime
Utc
()
)
m_headerInfo_inner_pki_response
(
-
,
(
f_getCurrentTime
()
*
1000
)
/*us*/
)
);
if
(
ischosen
(
p_signer_identifier
.
self_
))
{
v_tbs_signed
:=
f_signWithEcdsaNistp256WithSha256
(
bit2oct
(
encvalue
(
v_tbs
)),
int2oct
(
0
,
32
),
p_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