ETSI STF525 / Internal Testing test suite
This project provides an internal testing test suite and its associated Test Adapter/Codec
Functions
LibItsSecurity__Functions Namespace Reference

Functions

OCTETSTRING fx__hashWithSha256 (const OCTETSTRING &p__toBeHashedData)
 Produces a 256-bit (32-byte) hash value More...
 
OCTETSTRING fx__hashWithSha384 (const OCTETSTRING &p__toBeHashedData)
 Produces a 384-bit (48-byte) hash value More...
 
OCTETSTRING fx__signWithEcdsaNistp256WithSha256 (const OCTETSTRING &p__toBeSignedSecuredMessage, const OCTETSTRING &p__privateKey)
 Produces a Elliptic Curve Digital Signature Algorithm (ECDSA) signaturee More...
 
OCTETSTRING fx__signWithEcdsaBrainpoolp256WithSha256 (const OCTETSTRING &p__toBeSignedSecuredMessage, const OCTETSTRING &p__privateKey)
 Produces a Elliptic Curve Digital Signature Algorithm (ECDSA) signaturee More...
 
OCTETSTRING fx__signWithEcdsaBrainpoolp384WithSha384 (const OCTETSTRING &p__toBeSignedSecuredMessage, const OCTETSTRING &p__privateKey)
 Produces a Elliptic Curve Digital Signature Algorithm (ECDSA) signaturee More...
 
BOOLEAN fx__verifyWithEcdsaNistp256WithSha256 (const OCTETSTRING &p__toBeVerifiedData, const OCTETSTRING &p__signature, const OCTETSTRING &p__ecdsaNistp256PublicKeyX, const OCTETSTRING &p__ecdsaNistp256PublicKeyY)
 Verify the signature of the specified data More...
 
BOOLEAN fx__verifyWithEcdsaBrainpoolp256WithSha256 (const OCTETSTRING &p__toBeVerifiedData, const OCTETSTRING &p__signature, const OCTETSTRING &p__ecdsaBrainpoolp256PublicKeyX, const OCTETSTRING &p__ecdsaBrainpoolp256PublicKeyY)
 Verify the signature of the specified data More...
 
BOOLEAN fx__verifyWithEcdsaBrainpoolp384WithSha384 (const OCTETSTRING &p__toBeVerifiedData, const OCTETSTRING &p__signature, const OCTETSTRING &p__ecdsaBrainpoolp384PublicKeyX, const OCTETSTRING &p__ecdsaBrainpoolp384PublicKeyY)
 Verify the signature of the specified data More...
 
OCTETSTRING fx__encryptWithEciesNistp256WithSha256 (const OCTETSTRING &p__toBeEncryptedSecuredMessage, const OCTETSTRING &p__peerPublicKeyX, const OCTETSTRING &p__peerPublicKeyY, OCTETSTRING &p__publicEncKeyX, OCTETSTRING &p__publicEncKeyY, OCTETSTRING &p__ephKey, OCTETSTRING &p__tag, OCTETSTRING &p__nonce)
 
OCTETSTRING fx__decryptWithEciesNistp256WithSha256 (const OCTETSTRING &p__encryptedSecuredMessage, const OCTETSTRING &p__publicKeyX, const OCTETSTRING &p__publicKeyY, const OCTETSTRING &p__nonce, const OCTETSTRING &p__tag)
 
BOOLEAN fx__generateKeyPair__nistp256 (OCTETSTRING &p__privateKey, OCTETSTRING &p__publicKeyX, OCTETSTRING &p__publicKeyY)
 Produce a new public/private key pair based on Elliptic Curve Digital Signature Algorithm (ECDSA) algorithm. More...
 
BOOLEAN fx__generateKeyPair__brainpoolp256 (OCTETSTRING &p__privateKey, OCTETSTRING &p__publicKeyX, OCTETSTRING &p__publicKeyY)
 Produce a new public/private key pair based on Elliptic Curve Digital Signature Algorithm (ECDSA) algorithm. More...
 
BOOLEAN fx__generateKeyPair__brainpoolp384 (OCTETSTRING &p__privateKey, OCTETSTRING &p__publicKeyX, OCTETSTRING &p__publicKeyY)
 Produce a new public/private key pair based on Elliptic Curve Digital Signature Algorithm (ECDSA) algorithm. More...
 
BOOLEAN fx__loadCertificates (const CHARSTRING &p__rootDirectory, const CHARSTRING &p__configId)
 Load in memory cache the certificates available in the specified directory More...
 
BOOLEAN fx__store__certificate (const CHARSTRING &p__cert__id, const OCTETSTRING &p__cert, const OCTETSTRING &p__private__key, const OCTETSTRING &p__public__key__x, const OCTETSTRING &p__public__key__y, const OCTETSTRING &p__hashid8, const OCTETSTRING &p__issuer, const OCTETSTRING_template &p__private__enc__key, const OCTETSTRING_template &p__public__enc__key__x, const OCTETSTRING_template &p__public__enc__key__y)
 
BOOLEAN fx__unloadCertificates ()
 Unload from memory cache the certificates More...
 
BOOLEAN fx__readCertificate (const CHARSTRING &p__certificateId, OCTETSTRING &p__certificate)
 Read the specified certificate More...
 
BOOLEAN fx__readCertificateFromDigest (const OCTETSTRING &p__digest, CHARSTRING &p__certificateId)
 
BOOLEAN fx__readCertificateDigest (const CHARSTRING &p__certificateId, OCTETSTRING &p__digest)
 Read the specified certificate digest More...
 
BOOLEAN fx__readSigningKey (const CHARSTRING &p__certificateId, OCTETSTRING &p__signingPrivateKey)
 Read the private keys for the specified certificate More...
 
BOOLEAN fx__readEncryptingKey (const CHARSTRING &p__certificateId, OCTETSTRING &p__encryptingPrivateKey)
 Read the private keys for the specified certificate More...
 
BOOLEAN fx__isValidPolygonalRegion (const IEEE1609dot2BaseTypes::PolygonalRegion &p__region)
 
BOOLEAN fx__isPolygonalRegionInside (const IEEE1609dot2BaseTypes::PolygonalRegion &p__parent, const IEEE1609dot2BaseTypes::PolygonalRegion &p__region)
 
BOOLEAN fx__isLocationInsideCircularRegion (const IEEE1609dot2BaseTypes::CircularRegion &p__region, const IEEE1609dot2BaseTypes::ThreeDLocation &p__location)
 
BOOLEAN fx__isLocationInsideRectangularRegion (const IEEE1609dot2BaseTypes::SequenceOfRectangularRegion &p__region, const IEEE1609dot2BaseTypes::ThreeDLocation &p__location)
 
BOOLEAN fx__isLocationInsidePolygonalRegion (const IEEE1609dot2BaseTypes::PolygonalRegion &p__region, const IEEE1609dot2BaseTypes::ThreeDLocation &p__location)
 
BOOLEAN fx__isLocationInsideIdentifiedRegion (const IEEE1609dot2BaseTypes::IdentifiedRegion &p__region, const IEEE1609dot2BaseTypes::ThreeDLocation &p__location)
 
BOOLEAN fx__isLocationInsideOtherRegion (const OCTETSTRING &p_region, const IEEE1609dot2BaseTypes::ThreeDLocation &p_location)
 
BOOLEAN fx__areCirclesInside (const IEEE1609dot2BaseTypes::CircularRegion &p_circular_region_1, const IEEE1609dot2BaseTypes::CircularRegion &p_circular_region_2)
 
BOOLEAN fx__areRectanglesInside (const IEEE1609dot2BaseTypes::SequenceOfRectangularRegion &p_rectanglar_region_1, const IEEE1609dot2BaseTypes::SequenceOfRectangularRegion &p_rectanglar_region_2)
 
BOOLEAN fx__arePolygonsInside (const IEEE1609dot2BaseTypes::PolygonalRegion &p_polygonal_region_1, const IEEE1609dot2BaseTypes::PolygonalRegion &p_polygonal_region_2)
 
FLOAT fx__dms2dd (const INTEGER &p__degrees, const INTEGER &p__minutes, const FLOAT &p__seconds, const OCTETSTRING &p__latlon)
 

Function Documentation

◆ fx__areCirclesInside()

BOOLEAN LibItsSecurity__Functions::fx__areCirclesInside ( const IEEE1609dot2BaseTypes::CircularRegion &  p_circular_region_1,
const IEEE1609dot2BaseTypes::CircularRegion &  p_circular_region_2 
)

◆ fx__arePolygonsInside()

BOOLEAN LibItsSecurity__Functions::fx__arePolygonsInside ( const IEEE1609dot2BaseTypes::PolygonalRegion &  p_polygonal_region_1,
const IEEE1609dot2BaseTypes::PolygonalRegion &  p_polygonal_region_2 
)

◆ fx__areRectanglesInside()

BOOLEAN LibItsSecurity__Functions::fx__areRectanglesInside ( const IEEE1609dot2BaseTypes::SequenceOfRectangularRegion &  p_rectanglar_region_1,
const IEEE1609dot2BaseTypes::SequenceOfRectangularRegion &  p_rectanglar_region_2 
)

◆ fx__decryptWithEciesNistp256WithSha256()

OCTETSTRING LibItsSecurity__Functions::fx__decryptWithEciesNistp256WithSha256 ( const OCTETSTRING &  p__encryptedSecuredMessage,
const OCTETSTRING &  p__publicKeyX,
const OCTETSTRING &  p__publicKeyY,
const OCTETSTRING &  p__nonce,
const OCTETSTRING &  p__tag 
)

◆ fx__dms2dd()

FLOAT LibItsSecurity__Functions::fx__dms2dd ( const INTEGER &  p__degrees,
const INTEGER &  p__minutes,
const FLOAT &  p__seconds,
const OCTETSTRING &  p__latlon 
)

◆ fx__encryptWithEciesNistp256WithSha256()

OCTETSTRING LibItsSecurity__Functions::fx__encryptWithEciesNistp256WithSha256 ( const OCTETSTRING &  p__toBeEncryptedSecuredMessage,
const OCTETSTRING &  p__peerPublicKeyX,
const OCTETSTRING &  p__peerPublicKeyY,
OCTETSTRING &  p__publicEncKeyX,
OCTETSTRING &  p__publicEncKeyY,
OCTETSTRING &  p__ephKey,
OCTETSTRING &  p__tag,
OCTETSTRING &  p__nonce 
)

◆ fx__generateKeyPair__brainpoolp256()

BOOLEAN LibItsSecurity__Functions::fx__generateKeyPair__brainpoolp256 ( OCTETSTRING &  p__privateKey,
OCTETSTRING &  p__publicKeyX,
OCTETSTRING &  p__publicKeyY 
)

Produce a new public/private key pair based on Elliptic Curve Digital Signature Algorithm (ECDSA) algorithm.

This function should not be used by the ATS

Parameters
p_privateKeyThe new private key value
p_publicKeyXThe new public key value (x coordinate)
p_publicKeyXThe new public key value (y coordinate)
Returns
true on success, false otherwise fx_generateKeyPair_nistp256(out octetstring<UInt64> p_privateKey, out octetstring p_publicKeyX, out octetstring p_publicKeyY) return boolean;

◆ fx__generateKeyPair__brainpoolp384()

BOOLEAN LibItsSecurity__Functions::fx__generateKeyPair__brainpoolp384 ( OCTETSTRING &  p__privateKey,
OCTETSTRING &  p__publicKeyX,
OCTETSTRING &  p__publicKeyY 
)

Produce a new public/private key pair based on Elliptic Curve Digital Signature Algorithm (ECDSA) algorithm.

This function should not be used by the ATS

Parameters
p_privateKeyThe new private key value
p_publicKeyXThe new public key value (x coordinate)
p_publicKeyXThe new public key value (y coordinate)
Returns
true on success, false otherwise fx_generateKeyPair_nistp256(out octetstring<UInt64> p_privateKey, out octetstring p_publicKeyX, out octetstring p_publicKeyY) return boolean;

◆ fx__generateKeyPair__nistp256()

BOOLEAN LibItsSecurity__Functions::fx__generateKeyPair__nistp256 ( OCTETSTRING &  p__privateKey,
OCTETSTRING &  p__publicKeyX,
OCTETSTRING &  p__publicKeyY 
)

Produce a new public/private key pair based on Elliptic Curve Digital Signature Algorithm (ECDSA) algorithm.

This function should not be used by the ATS

Parameters
p_privateKeyThe new private key value
p_publicKeyXThe new public key value (x coordinate)
p_publicKeyXThe new public key value (y coordinate)
Returns
true on success, false otherwise fx_generateKeyPair_nistp256(out octetstring<UInt64> p_privateKey, out octetstring p_publicKeyX, out octetstring p_publicKeyY) return boolean;

◆ fx__hashWithSha256()

OCTETSTRING LibItsSecurity__Functions::fx__hashWithSha256 ( const OCTETSTRING &  p__toBeHashedData)

Produces a 256-bit (32-byte) hash value

Parameters
p_toBeHashedDataData to be used to calculate the hash value
Returns
The hash value fx_hashWithSha256(in octetstring p_toBeHashedData) return Oct32;

◆ fx__hashWithSha384()

OCTETSTRING LibItsSecurity__Functions::fx__hashWithSha384 ( const OCTETSTRING &  p__toBeHashedData)

Produces a 384-bit (48-byte) hash value

Parameters
p_toBeHashedDataData to be used to calculate the hash value
Returns
The hash value fx_hashWithSha384(in octetstring p_toBeHashedData) return Oct48;

◆ fx__isLocationInsideCircularRegion()

BOOLEAN LibItsSecurity__Functions::fx__isLocationInsideCircularRegion ( const IEEE1609dot2BaseTypes::CircularRegion &  p__region,
const IEEE1609dot2BaseTypes::ThreeDLocation &  p__location 
)

◆ fx__isLocationInsideIdentifiedRegion()

BOOLEAN LibItsSecurity__Functions::fx__isLocationInsideIdentifiedRegion ( const IEEE1609dot2BaseTypes::IdentifiedRegion &  p__region,
const IEEE1609dot2BaseTypes::ThreeDLocation &  p__location 
)

◆ fx__isLocationInsideOtherRegion()

BOOLEAN LibItsSecurity__Functions::fx__isLocationInsideOtherRegion ( const OCTETSTRING &  p_region,
const IEEE1609dot2BaseTypes::ThreeDLocation &  p_location 
)

◆ fx__isLocationInsidePolygonalRegion()

BOOLEAN LibItsSecurity__Functions::fx__isLocationInsidePolygonalRegion ( const IEEE1609dot2BaseTypes::PolygonalRegion &  p__region,
const IEEE1609dot2BaseTypes::ThreeDLocation &  p__location 
)

◆ fx__isLocationInsideRectangularRegion()

BOOLEAN LibItsSecurity__Functions::fx__isLocationInsideRectangularRegion ( const IEEE1609dot2BaseTypes::SequenceOfRectangularRegion &  p__region,
const IEEE1609dot2BaseTypes::ThreeDLocation &  p__location 
)

◆ fx__isPolygonalRegionInside()

BOOLEAN LibItsSecurity__Functions::fx__isPolygonalRegionInside ( const IEEE1609dot2BaseTypes::PolygonalRegion &  p__parent,
const IEEE1609dot2BaseTypes::PolygonalRegion &  p__region 
)

◆ fx__isValidPolygonalRegion()

BOOLEAN LibItsSecurity__Functions::fx__isValidPolygonalRegion ( const IEEE1609dot2BaseTypes::PolygonalRegion &  p__region)

◆ fx__loadCertificates()

BOOLEAN LibItsSecurity__Functions::fx__loadCertificates ( const CHARSTRING &  p__rootDirectory,
const CHARSTRING &  p__configId 
)

Load in memory cache the certificates available in the specified directory

Parameters
p_rootDirectoryRoot directory to access to the certificates identified by the certificate ID
p_configIdA configuration identifier
Remarks
This method SHALL be call before any usage of certificates
Returns
true on success, false otherwise fx_loadCertificates(in charstring p_rootDirectory, in charstring p_configId) return boolean;

◆ fx__readCertificate()

BOOLEAN LibItsSecurity__Functions::fx__readCertificate ( const CHARSTRING &  p__certificateId,
OCTETSTRING &  p__certificate 
)

Read the specified certificate

Parameters
p_certificateIdthe certificate identifier
p_certificatethe expected certificate
Returns
true on success, false otherwise

◆ fx__readCertificateDigest()

BOOLEAN LibItsSecurity__Functions::fx__readCertificateDigest ( const CHARSTRING &  p__certificateId,
OCTETSTRING &  p__digest 
)

Read the specified certificate digest

Parameters
p_certificateIdthe certificate identifier
p_digestthe expected certificate
Returns
true on success, false otherwise

◆ fx__readCertificateFromDigest()

BOOLEAN LibItsSecurity__Functions::fx__readCertificateFromDigest ( const OCTETSTRING &  p__digest,
CHARSTRING &  p__certificateId 
)

◆ fx__readEncryptingKey()

BOOLEAN LibItsSecurity__Functions::fx__readEncryptingKey ( const CHARSTRING &  p__certificateId,
OCTETSTRING &  p__encryptingPrivateKey 
)

Read the private keys for the specified certificate

Parameters
p_keysIdthe keys identifier
p_encryptPrivateKeythe encrypt private key
Returns
true on success, false otherwise fx_readEncryptingKey(in charstring p_keysId, out Oct32 p_encryptingPrivateKey) return boolean;

◆ fx__readSigningKey()

BOOLEAN LibItsSecurity__Functions::fx__readSigningKey ( const CHARSTRING &  p__certificateId,
OCTETSTRING &  p__signingPrivateKey 
)

Read the private keys for the specified certificate

Parameters
p_certificateIdthe keys identifier
p_signingPrivateKeythe signing private key
Returns
true on success, false otherwise

◆ fx__signWithEcdsaBrainpoolp256WithSha256()

OCTETSTRING LibItsSecurity__Functions::fx__signWithEcdsaBrainpoolp256WithSha256 ( const OCTETSTRING &  p__toBeSignedSecuredMessage,
const OCTETSTRING &  p__privateKey 
)

Produces a Elliptic Curve Digital Signature Algorithm (ECDSA) signaturee

Parameters
p_toBeSignedSecuredMessageThe data to be signed
p_privateKeyThe private key
Returns
The signature value fx_signWithEcdsaBrainpoolp256WithSha256(in octetstring p_toBeSignedSecuredMessage, in octetstring<UInt64> p_privateKey) return octetstring;

◆ fx__signWithEcdsaBrainpoolp384WithSha384()

OCTETSTRING LibItsSecurity__Functions::fx__signWithEcdsaBrainpoolp384WithSha384 ( const OCTETSTRING &  p__toBeSignedSecuredMessage,
const OCTETSTRING &  p__privateKey 
)

Produces a Elliptic Curve Digital Signature Algorithm (ECDSA) signaturee

Parameters
p_toBeSignedSecuredMessageThe data to be signed
p_privateKeyThe private key
Returns
The signature value fx_signWithEcdsaBrainpoolp384WithSha384(in octetstring p_toBeSignedSecuredMessage, in octetstring<UInt64> p_privateKey) return octetstring;

◆ fx__signWithEcdsaNistp256WithSha256()

OCTETSTRING LibItsSecurity__Functions::fx__signWithEcdsaNistp256WithSha256 ( const OCTETSTRING &  p__toBeSignedSecuredMessage,
const OCTETSTRING &  p__privateKey 
)

Produces a Elliptic Curve Digital Signature Algorithm (ECDSA) signaturee

Parameters
p_toBeSignedSecuredMessageThe data to be signed
p_privateKeyThe private key
Returns
The signature value fx_signWithEcdsaNistp256WithSha256(in octetstring p_toBeSignedSecuredMessage, in octetstring<UInt64> p_privateKey) return octetstring;

◆ fx__store__certificate()

BOOLEAN LibItsSecurity__Functions::fx__store__certificate ( const CHARSTRING &  p__cert__id,
const OCTETSTRING &  p__cert,
const OCTETSTRING &  p__private__key,
const OCTETSTRING &  p__public__key__x,
const OCTETSTRING &  p__public__key__y,
const OCTETSTRING &  p__hashid8,
const OCTETSTRING &  p__issuer,
const OCTETSTRING_template &  p__private__enc__key,
const OCTETSTRING_template &  p__public__enc__key__x,
const OCTETSTRING_template &  p__public__enc__key__y 
)

◆ fx__unloadCertificates()

BOOLEAN LibItsSecurity__Functions::fx__unloadCertificates ( )

Unload from memory cache the certificates

Returns
true on success, false otherwise

◆ fx__verifyWithEcdsaBrainpoolp256WithSha256()

BOOLEAN LibItsSecurity__Functions::fx__verifyWithEcdsaBrainpoolp256WithSha256 ( const OCTETSTRING &  p__toBeVerifiedData,
const OCTETSTRING &  p__signature,
const OCTETSTRING &  p__ecdsaBrainpoolp256PublicKeyX,
const OCTETSTRING &  p__ecdsaBrainpoolp256PublicKeyY 
)

Verify the signature of the specified data

Parameters
p_toBeVerifiedDataThe data to be verified
p_signatureThe signature
p_ecdsaBrainpoolp256PublicKeyXThe public key (x coordinate)
p_ecdsaBrainpoolp256PublicKeyYThe public key (y coordinate)
Returns
true on success, false otherwise fx_verifyWithEcdsaBrainpoolp256WithSha256(in octetstring p_toBeVerifiedData, in octetstring p_signature, in octetstring p_ecdsaBrainpoolp256PublicKeyX, in octetstring p_ecdsaBrainpoolp256PublicKeyY) return boolean;

◆ fx__verifyWithEcdsaBrainpoolp384WithSha384()

BOOLEAN LibItsSecurity__Functions::fx__verifyWithEcdsaBrainpoolp384WithSha384 ( const OCTETSTRING &  p__toBeVerifiedData,
const OCTETSTRING &  p__signature,
const OCTETSTRING &  p__ecdsaBrainpoolp384PublicKeyX,
const OCTETSTRING &  p__ecdsaBrainpoolp384PublicKeyY 
)

Verify the signature of the specified data

Parameters
p_toBeVerifiedDataThe data to be verified
p_signatureThe signature
p_ecdsaBrainpoolp384PublicKeyXThe public key (x coordinate)
p_ecdsaBrainpoolp384PublicKeyYThe public key (y coordinate)
Returns
true on success, false otherwise fx_verifyWithEcdsaBrainpoolp384WithSha384(in octetstring p_toBeVerifiedData, in octetstring p_signature, in octetstring p_ecdsaBrainpoolp384PublicKeyX, in octetstring p_ecdsaBrainpoolp384PublicKeyY) return boolean;

◆ fx__verifyWithEcdsaNistp256WithSha256()

BOOLEAN LibItsSecurity__Functions::fx__verifyWithEcdsaNistp256WithSha256 ( const OCTETSTRING &  p__toBeVerifiedData,
const OCTETSTRING &  p__signature,
const OCTETSTRING &  p__ecdsaNistp256PublicKeyX,
const OCTETSTRING &  p__ecdsaNistp256PublicKeyY 
)

Verify the signature of the specified data

Parameters
p_toBeVerifiedDataThe data to be verified
p_signatureThe signature
p_ecdsaNistp256PublicKeyXThe public key (x coordinate)
p_ecdsaNistp256PublicKeyYThe public key (y coordinate)
Returns
true on success, false otherwise fx_verifyWithEcdsaNistp256WithSha256(in octetstring p_toBeVerifiedData, in octetstring p_signature, in octetstring p_ecdsaNistp256PublicKeyX, in octetstring p_ecdsaNistp256PublicKeyY) return boolean;