Open dinosaure opened 3 years ago
I'm not sure about which processors they use but it seems clear that it's about SSSE3/SSE4.1/AES/PCLMUL instructions. In that case, we should take a look on what mirage-crypto
does (I think it needs at least SSE2, SSSE3 and AES instructions).
we should take a look on what
mirage-crypto
does
pretty simple, in config/cfg.ml
it looks which architecture it compiles for, and does:
let accelerate_flags =
match arch with
| `x86_64 -> [ "-DACCELERATE"; "-mssse3"; "-maes"; "-mpclmul" ]
| _ -> []
in
I don't know how hacl is supposed to be compiled -- the errors may be due to an old gcc which does not support __has_include
. also I'm not able to find a config.h
in our repository... it may need some deeper look into the evercrypt build system and feature detection...
I don't know how hacl is supposed to be compiled -- the errors may be due to an old gcc which does not support
__has_include
Sounds about right. GCC in those distributions is quite old (4.8 in both cases)
See this trace from this OPAM CI output: