Add sm3 arm neon implementation

This commit is contained in:
Zhi Guan
2024-05-10 22:06:41 +08:00
parent f11cf530d3
commit cc154048e7
2 changed files with 284 additions and 2 deletions

View File

@@ -199,16 +199,16 @@ static int test_sm3_speed(void)
seconds = (double)(end - start)/CLOCKS_PER_SEC;
fprintf(stderr, "%s: %f MiB per second\n", __FUNCTION__, 16/seconds);
return 1;
}
int main(void)
{
if (test_sm3() != 1) goto err;
#if ENABLE_TEST_SPEED
if (test_sm3_speed() != 1) goto err;
#endif
printf("%s all tests passed\n", __FILE__);
return 0;
err: