smuellerDD / acvpparser

ACVP Parser for invocation of cryptographic implementations using the ACVP JSON test vectors
https://www.chronox.de/acvpparser
Other
36 stars 27 forks source link

Funtion flow for testType: AFT , KeyGen #20

Closed shilpa-1992 closed 3 years ago

shilpa-1992 commented 3 years ago
 Vector set ID 556101 safePrimes           keyGen           FAILED
 Vector set ID 556103 KAS-FFC-SSC          -                FAILED

Could see that "testType": "AFT", Failed in all cases.

What does this Meta info "AFT" say ?

"result": "failed", "reason": "Z does not match"

Any clue on this failure situation. what might have failed all the KeyGen .

Could you please share the function flow "testType": "AFT".

I understood that for key gen " _openssl_dh_keygen which calls openssl_dh_set_param to fill the DH structure with PQG and then call DH_generate_key to generate the key"

Regards,

shilpa-1992 commented 3 years ago

envstr = secure_getenv("OPENSSL_ACVP_DH_KEYGEN");

Could you please brief how this string get set.

smuellerDD commented 3 years ago

Am Montag, dem 17.05.2021 um 02:53 -0700 schrieb shilpa-1992:

envstr = secure_getenv("OPENSSL_ACVP_DH_KEYGEN");

Could you please brief how this string get set.

See helper/exec_openssl.sh

shilpa-1992 commented 3 years ago

What i understood is that through this script the Environment variable evaluated by ACVP Parser is set. Please correct me if wrong.

Currently i was executing the tool directly as "./acvp-parser /testvector-request.json /testvector-response.json

1.How to include the helper script as well in execution , is it necessary to include the helper script. 2.In the AFT test mode test vectors for safeprimes ,KAS-FFC-SSC and KAS-ECC-SSC is failing and the Validation test passing , any clue which part of code responsible for this ?

Regards,

smuellerDD commented 3 years ago

Am Montag, dem 17.05.2021 um 03:23 -0700 schrieb shilpa-1992:

What i understood is that through this script the Environment variable evaluated by ACVP Parser is set.

Currently i was executing the tool directly as "./acvp-parser

/testvector-request.json /testvector-response.json How to include the helper script as well in execution , is it necessary to include the helper script.

The script is intended to automate running hundreds of test vectors automatically with the right options.

If you invoke testing manually you need to set the environment variable as needed for your command.

Ciao Stephan

Regards,