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
17337d9a
Commit
17337d9a
authored
Oct 06, 2014
by
garciay
Browse files
Comments some logs
parent
34a8250f
Changes
1
Hide whitespace changes
Inline
Side-by-side
ttcn/Security/LibItsSecurity_Functions.ttcn3
View file @
17337d9a
...
...
@@ -244,7 +244,7 @@ module LibItsSecurity_Functions {
e_signature
);
}
log
(
"v_toBeSignedSecuredMessage="
,
v_toBeSignedSecuredMessage
);
//
log("v_toBeSignedSecuredMessage=", v_toBeSignedSecuredMessage);
// Add additional header fields if any
if
(
ispresent
(
p_headerFields
)
==
true
)
{
...
...
@@ -258,17 +258,17 @@ module LibItsSecurity_Functions {
}
v_secPayload
:=
bit2oct
(
encvalue
(
v_toBeSignedSecuredMessage
));
log
(
"v_secPayload= "
,
v_secPayload
);
//
log("v_secPayload= ", v_secPayload);
// Calculate the hash of the SecuredMessage payload to be signed
v_hash
:=
f_hashWithSha256
(
v_secPayload
);
log
(
"v_hash= "
,
v_hash
);
//
log("v_hash= ", v_hash);
// Signed payload
v_signature
:=
f_signWithEcdsaNistp256WithSha256
(
v_hash
);
log
(
"v_signature= "
,
v_signature
);
//
log("v_signature= ", v_signature);
p_securedMessage
:=
md_secureMessage_profileCam
(
// See Clause 7.1 Security profile for CAMs
v_toBeSignedSecuredMessage
.
header_fields
,
...
...
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