File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ run_func_1024: func_1024
50
50
run_func : run_func_512 run_func_768 run_func_1024
51
51
52
52
run_acvp : acvp
53
- python3 ./test/acvp_client.py
53
+ python3 ./test/acvp_client.py $( if $( ACVP_VERSION ) ,--version $( ACVP_VERSION ) )
54
54
55
55
func_512 : $(MLKEM512_DIR ) /bin/test_mlkem512
56
56
$(Q ) echo " FUNC ML-KEM-512: $^"
Original file line number Diff line number Diff line change @@ -506,6 +506,10 @@ class Tests:
506
506
if stack_flags :
507
507
env_update ["STACK_ANALYSIS_FLAGS" ] = " " .join (stack_flags )
508
508
509
+ # Add ACVP version for ACVP tests
510
+ if test_type == TEST_TYPES .ACVP and hasattr (self .args , "version" ):
511
+ env_update ["ACVP_VERSION" ] = self .args .version
512
+
509
513
env = os .environ .copy ()
510
514
env .update (env_update )
511
515
@@ -1054,6 +1058,11 @@ def cli():
1054
1058
acvp_parser = cmd_subparsers .add_parser (
1055
1059
"acvp" , help = "Run ACVP client" , parents = [common_parser ]
1056
1060
)
1061
+ acvp_parser .add_argument (
1062
+ "--version" ,
1063
+ default = "v1.1.0.40" ,
1064
+ help = "ACVP test vector version (default: v1.1.0.40)" ,
1065
+ )
1057
1066
1058
1067
# examples arguments
1059
1068
examples_parser = cmd_subparsers .add_parser (
You can’t perform that action at this time.
0 commit comments