franziskuskiefer / hpke-rs

Pure Rust implementation of HPKE (https://www.rfc-editor.org/rfc/rfc9180.html)
28 stars 14 forks source link

Test failures on GitHub macOS actions #17

Closed sayrer closed 3 years ago

sayrer commented 3 years ago

See:

https://github.com/ctz/rustls/runs/2522332833

This unwrap is failing on GitHub's macOS CI, but not on my local Mac. The tests pass on Linux and Windows in CI.

https://github.com/grafica/rustls/blob/083073b14cbd2c838b4fcb00100252ed9ff7dbe4/rustls/src/ech_key.rs#L252

franziskuskiefer commented 3 years ago

Thanks for the report @sayrer ! I suspect that the issue is that the GH macOS CI machines don't have the necessary CPU instructions to use the evercrypt AES implementation. Can you try to add the "rust-crypto" feature? This pulls in the RustCrypto AES implementation as fallback for CPUs that are not supported by evercrypt at this point.

sayrer commented 3 years ago

Yep, that was it, thanks.

sayrer commented 3 years ago

Here's why, fyi:

https://github.com/ctz/rustls/pull/663#issuecomment-834604981

franziskuskiefer commented 3 years ago

Nice! I assumed they were using some old Macs and just enabled the fallback for GH actions but never looked into the actual hardware they are using.