@@ -294,7 +294,7 @@ static int test_lms_key_generate(void)
294294 error_print ();
295295 return -1 ;
296296 }
297- //lms_key_print (stdout, 0, 0, "lms_key ", &lms_key);
297+ lms_private_key_print (stdout , 0 , 0 , "lms_private_key " , & lms_key );
298298
299299 printf ("%s() ok\n" , __FUNCTION__ );
300300 return 1 ;
@@ -341,13 +341,13 @@ static int test_lms_key_to_bytes(void)
341341 error_print ();
342342 return -1 ;
343343 }
344- lms_key_print (stdout , 0 , 4 , "lms_public_key" , & key );
344+ lms_public_key_print (stdout , 0 , 4 , "lms_public_key" , & key );
345345
346346 if (lms_private_key_from_bytes (& key , & cp , & len ) != 1 ) {
347347 error_print ();
348348 return -1 ;
349349 }
350- lms_key_print (stdout , 0 , 4 , "lms_private_key" , & key );
350+ lms_private_key_print (stdout , 0 , 4 , "lms_private_key" , & key );
351351 if (len != 0 ) {
352352 error_print ();
353353 return -1 ;
@@ -539,7 +539,7 @@ static int test_hss_key_generate(void)
539539 }
540540
541541 hss_public_key_print (stdout , 0 , 4 , "hss_public_key" , & key );
542- hss_key_print (stdout , 0 , 4 , "hss_key" , & key );
542+ hss_private_key_print (stdout , 0 , 4 , "hss_key" , & key );
543543
544544 printf ("%s() ok\n" , __FUNCTION__ );
545545 return 1 ;
@@ -799,7 +799,7 @@ static int test_hss_key_to_bytes(void)
799799 error_print ();
800800 return -1 ;
801801 }
802- hss_key_print (stdout , 0 , 4 , "lms_private_key" , & key );
802+ hss_private_key_print (stdout , 0 , 4 , "lms_private_key" , & key );
803803 if (len != 0 ) {
804804 error_print ();
805805 return -1 ;
@@ -868,7 +868,7 @@ static int test_hss_sign_level2(void)
868868 error_print ();
869869 return -1 ;
870870 }
871- hss_key_print (stderr , 0 , 4 , "hss_key" , & key );
871+ hss_private_key_print (stderr , 0 , 4 , "hss_key" , & key );
872872
873873
874874 if (hss_sign_init (& ctx , & key ) != 1 ) {
@@ -916,7 +916,7 @@ static int test_hss_sign(void)
916916 error_print ();
917917 return -1 ;
918918 }
919- hss_key_print (stderr , 0 , 4 , "hss_key" , & key );
919+ hss_private_key_print (stderr , 0 , 4 , "hss_key" , & key );
920920
921921
922922 if (hss_sign_init (& ctx , & key ) != 1 ) {
@@ -951,6 +951,7 @@ static int test_hss_sign(void)
951951 return 1 ;
952952}
953953
954+ /*
954955static int test_hss_public_key_algor(void)
955956{
956957 int lms_types[] = {
@@ -1025,7 +1026,7 @@ static int test_hss_public_key_algor(void)
10251026 return 1;
10261027
10271028}
1028-
1029+ */
10291030
10301031int main (void )
10311032{
@@ -1048,7 +1049,7 @@ int main(void)
10481049 if (test_hss_sign_level1 () != 1 ) goto err ;
10491050 if (test_hss_sign_level2 () != 1 ) goto err ;
10501051 if (test_hss_sign () != 1 ) goto err ;
1051- if (test_hss_public_key_algor () != 1 ) goto err ;
1052+ // if (test_hss_public_key_algor() != 1) goto err;
10521053
10531054 printf ("%s all tests passed\n" , __FILE__ );
10541055 return 0 ;
0 commit comments