log("f_await_http_inner_ec_request_response: match ",match(v_etsi_ts_102941_data.content,mw_enrolmentResponse(mw_innerEcResponse_ok(substr(v_request_hash,0,16),mw_etsiTs103097Certificate(mw_issuerIdentifier_self,mw_toBeSignedCertificate_ea,mw_signature_ecdsaNistP256))))," ***");// TODO In TITAN, this is the only way to get the unmatching in log
log("f_await_http_inner_ec_request_response: Well-secured EA certificate received ***");
log("p_inner_ec_response= ",p_inner_ec_response);
returntrue;
}else{
log("f_await_http_inner_ec_request_response: Unexpected message received ***");
}
}
}
[]httpPort.receive(
mw_http_response(
mw_http_response_ko
)){
tc_ac.stop;
log("f_await_http_inner_ec_request_response: Unexpected message received ***");
}
[]tc_ac.timeout{
log("f_await_http_inner_ec_request_response: Expected message not received ***");
}
}// End of 'alt' statement
returnfalse;
}// End of function f_await_http_inner_ec_request_response
}// End of group awaiting_messages
grouppki_functions{
/**
...
...
@@ -928,8 +1003,8 @@ module LibItsPki_Functions {
* @param p_signer_identifier Signer identifier for signature, could be self or certificate HashedId8
* @param p_recipientId Recipient identifier to be inclued in encrypted layer.
* If value is int2oct(0. 8), the recipient id is the HashedId8 of the symmetric key used by the sender to encrypt the message to which the response is built
* @param p_publicKeyCompressed The public compressed key (canonical form) for encryption
* @param p_compressedMode The compressed mode of the public compressed key (canonical form) for encryption
* @param p_public_key_compressed The public compressed key (canonical form) for encryption
* @param p_compressed_mode The compressed mode of the public compressed key (canonical form) for encryption
* @param p_pki_message The PKI message to be secured
* @param p_ieee1609dot2_signed_and_encrypted_data The secured message
* @param p_signer_identifier Signer identifier for signature, could be self or certificate HashedId8
* @param p_recipientId Recipient identifier to be inclued in encrypted layer.
* If value is int2oct(0. 8), the recipient id is the HashedId8 of the symmetric key used by the sender to encrypt the message to which the response is built
* @param p_publicKeyCompressed The public compressed key (canonical form) for encryption
* @param p_compressedMode The compressed mode of the public compressed key (canonical form) for encryption
* @param p_public_key_compressed The public compressed key (canonical form) for encryption
* @param p_compressed_mode The compressed mode of the public compressed key (canonical form) for encryption
* @param p_pki_message The PKI message to be secured
* @param p_ieee1609dot2_signed_and_encrypted_data The secured message