Skip to content

Commit

Permalink
If we can't get the CPU features, that's fine
Browse files Browse the repository at this point in the history
  • Loading branch information
jedisct1 committed Aug 9, 2023
1 parent d5ba9aa commit d7b1189
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/common/common.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#include <errno.h>
#include <stddef.h>
#include <stdint.h>

Expand Down Expand Up @@ -48,8 +47,7 @@ aegis_init(void)
return 0;
}
if (aegis_runtime_get_cpu_features() != 0) {
errno = ENOSYS;
return -1;
return 0;
}
if (aegis128l_pick_best_implementation() != 0 || aegis128x2_pick_best_implementation() != 0 ||
aegis256_pick_best_implementation() != 0 || aegis128x4_pick_best_implementation() != 0) {
Expand Down

0 comments on commit d7b1189

Please sign in to comment.