@@ -2026,13 +2026,13 @@ int des_test(void)
20262026
20272027 des_ecb_encrypt (cases [i ].txt , ct , & skey );
20282028
2029- if (compare_testvector (ct , sizeof (ct ), cases [i ].out , 8 , "DES Encrypt" , i ) != 0 ) {
2029+ if (ltc_compare_testvector (ct , sizeof (ct ), cases [i ].out , 8 , "DES Encrypt" , i ) != 0 ) {
20302030 return CRYPT_FAIL_TESTVECTOR ;
20312031 }
20322032
20332033 des_ecb_decrypt (ct , pt , & skey );
20342034
2035- if (compare_testvector (pt , sizeof (pt ), cases [i ].txt , 8 , "DES Decrypt" , i ) != 0 ) {
2035+ if (ltc_compare_testvector (pt , sizeof (pt ), cases [i ].txt , 8 , "DES Decrypt" , i ) != 0 ) {
20362036 return CRYPT_FAIL_TESTVECTOR ;
20372037 }
20382038 }
@@ -2049,7 +2049,7 @@ int des_test(void)
20492049 for (i = 0 ; i < 1000 ; i ++ ) des_ecb_encrypt (tmp , tmp , & skey );
20502050 for (i = 0 ; i < 1000 ; i ++ ) des_ecb_decrypt (tmp , tmp , & skey );
20512051
2052- if (compare_testvector (tmp , 8 , pt , 8 , "DES" , 0 ) != 0 ) {
2052+ if (ltc_compare_testvector (tmp , 8 , pt , 8 , "DES" , 0 ) != 0 ) {
20532053 return CRYPT_FAIL_TESTVECTOR ;
20542054 }
20552055
@@ -2082,7 +2082,7 @@ int desx_test(void)
20822082 for (i = 0 ; i < 1000 ; i ++ ) desx_ecb_encrypt (tmp , tmp , & skey );
20832083 for (i = 0 ; i < 1000 ; i ++ ) desx_ecb_decrypt (tmp , tmp , & skey );
20842084
2085- if (compare_testvector (tmp , 8 , pt , 8 , "DES-X" , 0 ) != 0 ) {
2085+ if (ltc_compare_testvector (tmp , 8 , pt , 8 , "DES-X" , 0 ) != 0 ) {
20862086 return CRYPT_FAIL_TESTVECTOR ;
20872087 }
20882088
@@ -2133,13 +2133,13 @@ int des3_test(void)
21332133
21342134 des3_ecb_encrypt (cases [i ].txt , ct , & skey );
21352135
2136- if (compare_testvector (ct , sizeof (ct ), cases [i ].out , 8 , "3DES Encrypt" , i ) != 0 ) {
2136+ if (ltc_compare_testvector (ct , sizeof (ct ), cases [i ].out , 8 , "3DES Encrypt" , i ) != 0 ) {
21372137 return CRYPT_FAIL_TESTVECTOR ;
21382138 }
21392139
21402140 des3_ecb_decrypt (ct , pt , & skey );
21412141
2142- if (compare_testvector (pt , sizeof (pt ), cases [i ].txt , 8 , "3DES Decrypt" , i ) != 0 ) {
2142+ if (ltc_compare_testvector (pt , sizeof (pt ), cases [i ].txt , 8 , "3DES Decrypt" , i ) != 0 ) {
21432143 return CRYPT_FAIL_TESTVECTOR ;
21442144 }
21452145 }
@@ -2156,7 +2156,7 @@ int des3_test(void)
21562156 for (i = 0 ; i < 1000 ; i ++ ) des3_ecb_encrypt (tmp , tmp , & skey );
21572157 for (i = 0 ; i < 1000 ; i ++ ) des3_ecb_decrypt (tmp , tmp , & skey );
21582158
2159- if (compare_testvector (tmp , 8 , pt , 8 , "3DES" , 0 ) != 0 ) {
2159+ if (ltc_compare_testvector (tmp , 8 , pt , 8 , "3DES" , 0 ) != 0 ) {
21602160 return CRYPT_FAIL_TESTVECTOR ;
21612161 }
21622162
0 commit comments