File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1818int cryptotest_kex ()
1919{ // Testing key exchange
2020 unsigned int i ;
21- unsigned char PrivateKeyA [SIDH_SECRETKEYBYTES ], PrivateKeyB [SIDH_SECRETKEYBYTES ];
21+ unsigned char PrivateKeyA [SIDH_SECRETKEYBYTES_A ], PrivateKeyB [SIDH_SECRETKEYBYTES_B ];
2222 unsigned char PublicKeyA [SIDH_PUBLICKEYBYTES ], PublicKeyB [SIDH_PUBLICKEYBYTES ];
2323 unsigned char SharedSecretA [SIDH_BYTES ], SharedSecretB [SIDH_BYTES ];
2424 bool passed = true;
@@ -53,14 +53,17 @@ int cryptotest_kex()
5353int cryptorun_kex ()
5454{ // Benchmarking key exchange
5555 unsigned int n ;
56- unsigned char PrivateKeyA [SIDH_SECRETKEYBYTES ], PrivateKeyB [SIDH_SECRETKEYBYTES ];
56+ unsigned char PrivateKeyA [SIDH_SECRETKEYBYTES_A ], PrivateKeyB [SIDH_SECRETKEYBYTES_B ];
5757 unsigned char PublicKeyA [SIDH_PUBLICKEYBYTES ], PublicKeyB [SIDH_PUBLICKEYBYTES ];
5858 unsigned char SharedSecretA [SIDH_BYTES ], SharedSecretB [SIDH_BYTES ];
5959 unsigned long long cycles , cycles1 , cycles2 ;
6060
6161 printf ("\n\nBENCHMARKING EPHEMERAL ISOGENY-BASED KEY EXCHANGE SYSTEM %s\n" , SCHEME_NAME );
6262 printf ("--------------------------------------------------------------------------------------------------------\n\n" );
6363
64+ random_mod_order_A (PrivateKeyA );
65+ random_mod_order_B (PrivateKeyB );
66+
6467 // Benchmarking Alice's key generation
6568 cycles = 0 ;
6669 for (n = 0 ; n < BENCH_LOOPS ; n ++ )
You can’t perform that action at this time.
0 commit comments