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
900b6d5f
Commit
900b6d5f
authored
Oct 08, 2018
by
garciay
Browse files
STF545: Execute first EA tests
parent
56d65ed3
Changes
2
Hide whitespace changes
Inline
Side-by-side
ttcn/Security/LibItsSecurity_Functions.ttcn
View file @
900b6d5f
...
...
@@ -587,6 +587,15 @@ module LibItsSecurity_Functions {
out
Oct32
p_publicKeyCompressed
,
out
integer
p_compressedMode
)
return
boolean
{
if
(
PICS_SEC_FIXED_KEYS
)
{
p_privateKey
:=
'
F8EB15C001A03623A5B5E44D73869621877710712A498C98FF9E60EE10F390F8
'
O
;
p_publicKeyX
:=
'
7029
A9B20D22AE37B1344B7FCC2322C8F1E5ECE09C39CC289E500A9487298B9B
'
O
;
p_publicKeyY
:=
'
F9EFA8BCC4129BC43B640566A59AE5CED7106BBA76E5DC828AF37D315634D3DC
'
O
;
p_publicKeyCompressed
:=
'
7029
A9B20D22AE37B1344B7FCC2322C8F1E5ECE09C39CC289E500A9487298B9B
'
O
;
p_compressedMode
:=
0
;
return
true
;
}
return
fx_generateKeyPair_nistp256
(
p_privateKey
,
p_publicKeyX
,
p_publicKeyY
,
p_publicKeyCompressed
,
p_compressedMode
);
}
...
...
@@ -2359,9 +2368,6 @@ module LibItsSecurity_Functions {
*/
external
function
fx_signWithEcdsaNistp256WithSha256
(
in
octetstring
p_toBeSignedSecuredMessage
,
in
Oct32
p_certificateIssuer
,
in
Oct32
p_privateKey
)
return
octetstring
;
external
function
fx_signWithEcdsaNistp256WithSha256_1
(
in
octetstring
p_toBeSignedSecuredMessage
,
in
EccP256CurvePoint
p_curve_point
,
in
Oct32
p_privateKey
)
return
octetstring
;
external
function
fx_signWithEcdsaBrainpoolp256WithSha256_1
(
in
octetstring
p_toBeSignedSecuredMessage
,
in
EccP256CurvePoint
p_curve_point
,
in
Oct32
p_privateKey
)
return
octetstring
;
/**
* @desc Produces a Elliptic Curve Digital Signature Algorithm (ECDSA) signature
* @param p_toBeSignedSecuredMessage The data to be signed
...
...
ttcn/Security/LibItsSecurity_Pics.ttcn
View file @
900b6d5f
...
...
@@ -98,5 +98,11 @@ module LibItsSecurity_Pics {
* Does the IUT support encryption data?
*/
modulepar
boolean
PICS_SEC_ENCRYPTION_SUPPORT
:=
true
;
/**
* @desc Generate fixed private/public keys.
Used for debug only
*/
modulepar
boolean
PICS_SEC_FIXED_KEYS
:=
true
;
}
// End of module LibItsSecurity_Pics
\ No newline at end of file
}
// End of module LibItsSecurity_Pics
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