Loading etc/TestCodec/TestCodec.cfg +2 −1 Original line number Diff line number Diff line Loading @@ -290,7 +290,7 @@ system.pkiPort.params := "PKI/HTTP(device_mode=1,uri=/its/inner_ec_request,host= #TestCodec_SecuredFuntions.tc_f_verifyWithEcdsaNistp256WithSha256_1 #TestCodec_SecuredFuntions.tc_f_verifyWithEcdsaNistp256WithSha256_2 #TestCodec_SecuredFuntions.tc_f_verifyWithEcdsaNistp256WithSha256_3 # Shall failed on error: Dynamic test case error: security_ecc::security_ecc (2): Failed to get coordinates TestCodec_SecuredFuntions.tc_f_verifyWithEcdsaNistp256WithSha256_4 #TestCodec_SecuredFuntions.tc_f_verifyWithEcdsaNistp256WithSha256_4 #TestCodec_SecuredFuntions.tc_f_signWithEcdsaBrainpoolp256WithSha256_1 #TestCodec_SecuredFuntions.tc_f_verifyWithEcdsaBrainpoolp256WithSha256_1 #TestCodec_SecuredFuntions.tc_f_verifyWithEcdsaBrainpoolp256WithSha256_2 Loading Loading @@ -351,6 +351,7 @@ TestCodec_SecuredFuntions.tc_f_verifyWithEcdsaNistp256WithSha256_4 #TestCodec_Pki.tc_decode_inner_ec_response_1 #TestCodec_Pki.tc_inner_ec_request_1 #TestCodec_Pki.tc_inner_ec_request_2 TestCodec_Pki.tc_inner_ec_request_3 #TestCodec_Pki.tc_inner_ec_response_1 #TestCodec_Pki.tc_inner_ec_response_2 #TestCodec_Pki.tc_inner_ec_response_3 Loading LibIts @ aa5c210a Compare a9d34302 to aa5c210a Original line number Diff line number Diff line Subproject commit a9d34302019d60f227ffc340f92a9a65c806bc02 Subproject commit aa5c210a36c8d7aa155f4cc972c49db08f9b7f0f ttcn/TestCodec/TestCodec_Pki.ttcn +51 −0 Original line number Diff line number Diff line Loading @@ -254,6 +254,57 @@ module TestCodec_Pki { } } // End of testcase tc_inner_ec_request_2 testcase tc_inner_ec_request_3() runs on TCType system TCType { var Ieee1609Dot2Data v_inner_ec_request_signed_for_pop := { protocolVersion := 3, content := { signedData := { hashId := sha256, tbsData := { payload := { data := { protocolVersion := 3, content := { unsecuredData := '018003810040038081830040314234434131323130313233414539303042424536433345424145374538374441323044424441423145374232454330363931433531433130323139303041410100808271C23BCD74028A92B10E77BE7D935CAB8AEDEBDFE95922AE587400C378E818247C831C1439A686000183010280000C800022C001018002026F810201C04002026F000001677DBBEBD782808015BA000FF44CAF5E68181E19E3C3085FD622AD974E79830137D95EF3731D543B4455305E244EFEDDB80B6A55B05DB67FAC782A1A75B11827154A9601BC03924A'O } }, extDataHash := omit }, headerInfo := { psid := 623, generationTime := 1544002726922, expiryTime := omit, generationLocation := omit, p2pcdLearningRequest := omit, missingCrlIdentifier := omit, encryptionKey := omit, inlineP2pcdRequest := omit, requestedCertificate := omit } }, signer := { self_ := NULL }, signature_ := { ecdsaNistP256Signature := { rSig := { x_only := '6694E7A01F23A569FE9C896BF4BDACE52C9972AB503FB30A41E55F33CC8156D6'O }, sSig := 'A09D9D14346781B109B932FBCF9EB034299878C84F4D837BD583837DA831453D'O } } } } }; var bitstring v_enc_message; var Oct32 v_full_request_hash; var Oct32 v_expected_full_request_hash; v_enc_message := encvalue(v_inner_ec_request_signed_for_pop); v_full_request_hash := f_hashWithSha256(bit2oct(v_enc_message)); log("v_full_request_hash= ", v_full_request_hash); } // End of testcase tc_inner_ec_request_3 testcase tc_inner_ec_response_1() runs on TCType system TCType { var Oct32 v_private_key; var Oct32 v_publicKeyX; Loading Loading
etc/TestCodec/TestCodec.cfg +2 −1 Original line number Diff line number Diff line Loading @@ -290,7 +290,7 @@ system.pkiPort.params := "PKI/HTTP(device_mode=1,uri=/its/inner_ec_request,host= #TestCodec_SecuredFuntions.tc_f_verifyWithEcdsaNistp256WithSha256_1 #TestCodec_SecuredFuntions.tc_f_verifyWithEcdsaNistp256WithSha256_2 #TestCodec_SecuredFuntions.tc_f_verifyWithEcdsaNistp256WithSha256_3 # Shall failed on error: Dynamic test case error: security_ecc::security_ecc (2): Failed to get coordinates TestCodec_SecuredFuntions.tc_f_verifyWithEcdsaNistp256WithSha256_4 #TestCodec_SecuredFuntions.tc_f_verifyWithEcdsaNistp256WithSha256_4 #TestCodec_SecuredFuntions.tc_f_signWithEcdsaBrainpoolp256WithSha256_1 #TestCodec_SecuredFuntions.tc_f_verifyWithEcdsaBrainpoolp256WithSha256_1 #TestCodec_SecuredFuntions.tc_f_verifyWithEcdsaBrainpoolp256WithSha256_2 Loading Loading @@ -351,6 +351,7 @@ TestCodec_SecuredFuntions.tc_f_verifyWithEcdsaNistp256WithSha256_4 #TestCodec_Pki.tc_decode_inner_ec_response_1 #TestCodec_Pki.tc_inner_ec_request_1 #TestCodec_Pki.tc_inner_ec_request_2 TestCodec_Pki.tc_inner_ec_request_3 #TestCodec_Pki.tc_inner_ec_response_1 #TestCodec_Pki.tc_inner_ec_response_2 #TestCodec_Pki.tc_inner_ec_response_3 Loading
LibIts @ aa5c210a Compare a9d34302 to aa5c210a Original line number Diff line number Diff line Subproject commit a9d34302019d60f227ffc340f92a9a65c806bc02 Subproject commit aa5c210a36c8d7aa155f4cc972c49db08f9b7f0f
ttcn/TestCodec/TestCodec_Pki.ttcn +51 −0 Original line number Diff line number Diff line Loading @@ -254,6 +254,57 @@ module TestCodec_Pki { } } // End of testcase tc_inner_ec_request_2 testcase tc_inner_ec_request_3() runs on TCType system TCType { var Ieee1609Dot2Data v_inner_ec_request_signed_for_pop := { protocolVersion := 3, content := { signedData := { hashId := sha256, tbsData := { payload := { data := { protocolVersion := 3, content := { unsecuredData := '018003810040038081830040314234434131323130313233414539303042424536433345424145374538374441323044424441423145374232454330363931433531433130323139303041410100808271C23BCD74028A92B10E77BE7D935CAB8AEDEBDFE95922AE587400C378E818247C831C1439A686000183010280000C800022C001018002026F810201C04002026F000001677DBBEBD782808015BA000FF44CAF5E68181E19E3C3085FD622AD974E79830137D95EF3731D543B4455305E244EFEDDB80B6A55B05DB67FAC782A1A75B11827154A9601BC03924A'O } }, extDataHash := omit }, headerInfo := { psid := 623, generationTime := 1544002726922, expiryTime := omit, generationLocation := omit, p2pcdLearningRequest := omit, missingCrlIdentifier := omit, encryptionKey := omit, inlineP2pcdRequest := omit, requestedCertificate := omit } }, signer := { self_ := NULL }, signature_ := { ecdsaNistP256Signature := { rSig := { x_only := '6694E7A01F23A569FE9C896BF4BDACE52C9972AB503FB30A41E55F33CC8156D6'O }, sSig := 'A09D9D14346781B109B932FBCF9EB034299878C84F4D837BD583837DA831453D'O } } } } }; var bitstring v_enc_message; var Oct32 v_full_request_hash; var Oct32 v_expected_full_request_hash; v_enc_message := encvalue(v_inner_ec_request_signed_for_pop); v_full_request_hash := f_hashWithSha256(bit2oct(v_enc_message)); log("v_full_request_hash= ", v_full_request_hash); } // End of testcase tc_inner_ec_request_3 testcase tc_inner_ec_response_1() runs on TCType system TCType { var Oct32 v_private_key; var Oct32 v_publicKeyX; Loading