liboqs-rust icon indicating copy to clipboard operation
liboqs-rust copied to clipboard

ARMv8 compatibility: CI and cross-compiling?

Open thomwiggers opened this issue 3 years ago • 8 comments

At the moment, this crate is only expected to work on intel. We might want to set up CI for ARMv8 and next figure out the relevant CMake flags etc.

thomwiggers avatar Mar 15 '22 13:03 thomwiggers

I use the oqs-sys crate in wolfssl-sys. I've got an example that builds and tests post quantum with WolfSSL here: https://github.com/expressvpn/wolfssl-sys

It builds happily on an M1 mac as an arm64 executable.

Though I just discovered that the ports on the test site aren't fixed, so my test breaks if you don't update the port 😄

expressvpn-pete-m avatar Aug 17 '22 19:08 expressvpn-pete-m

That's good to hear; but I don't know what you mean by "the ports on the test site"?

thomwiggers avatar Aug 18 '22 09:08 thomwiggers

Also I think that cross-compiling to ARMv8 is something that we should probably support but I'm not too experienced with how to set up cmake for that.

thomwiggers avatar Aug 18 '22 09:08 thomwiggers

Okay for the latter it seems we're blocked on https://github.com/rust-lang/cmake-rs/pull/158 at least.

thomwiggers avatar Aug 18 '22 09:08 thomwiggers

Ah sorry, I have an example app that connects to test.openquantumsafe.org on port 6051. At the time of writing, it was the port used for the equivalent of WOLFSSL_P521_KYBER_LEVEL5. Since then though (I guess it was restarted?) the assigned port numbers have changed, so this example no longer works.

I just need to find out if there's a way to programmatically get that port lis, if I need to scrape the page or just make the port a command line argument 😊

expressvpn-pete-m avatar Aug 19 '22 09:08 expressvpn-pete-m

Ah right. That's more of a question for the liboqs repository I think.

thomwiggers avatar Aug 19 '22 09:08 thomwiggers

@expressvpn-pete-m : Sorry I only see this comment now:

I just need to find out if there's a way to programmatically get that port lis, if I need to scrape the page or just make the port a command line argument

There is: See the current port assignment JSON here.

baentsch avatar Jan 16 '23 08:01 baentsch

Is it possible that my issue here is related to this? I'm trying to use armv8 via cross compiling, too.

aparcar avatar Aug 15 '24 08:08 aparcar