-
Notifications
You must be signed in to change notification settings - Fork 709
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Power/PowerPC #389
Comments
I'm interested in this. Has anything changed in the last year that should be noted, and where would you suggest to start? |
No movement so far. I imagine the process would go something like this:
|
Also, I remember that some people who want to target PowerPC want to do so because there are some PowerPC-based HSMs that they want to run ring-based programs on. In that case, it would be great to get access to one of the HSMs; this might be something that can be arranged offline ([email protected]) with the vendor + an interested customer of the vendor. |
It seems that `ring` does not support powerpc because the crate uses custom assembly code for each system, and lacks powerpc. See briansmith/ring#389 Signed-off-by: Mcat12 <[email protected]>
There is a Brazilian university that provides POWER8/9 vps instances free of charge that you should be able to use for it: https://minicloud.parqtec.unicamp.br/ |
Any good reason why not have arch-independent fallbacks? I'm packaging a distro for ppc64le/ppc64 these days and I've been coming across an increasing number of Rust projects lately that directly or indirectly depend on ring (to mention some, routinator, rust-sccache, boringtun) and it always fails to build because of this. |
If you are interested in working together on getting ring working on Power/PowerPC, please email me: [email protected]. |
PR #814 attempts to fix this. I'll look at it after other people interested in POWER/PPC support (e.g. the people who have commented on this issue) have reviewed it and report back their results in testing it. |
#819 is about ready to start getting reviewed |
I am making substantial progress towards getting this working. We need to split out two parts of the existing PR(s): "whatever is needed for big endian support", which will be shared by MIPS big endian, and the PowerPC/POWER CI infrastructure. For the CI work, I suggest somebody first stub in I wouldn't spend too much time getting the actual implementations of the primitives working since how they will be implemented is TBD. My main concern right now is having the CI infrastructure ready. |
Sounds good. I'm away for the weekend right now but I'm available to help next week onwards |
PR #863 adds a pure-Rust implementation of SHA-2 that should kick in automatically for Power/PowerPC. For people working on Power/PowerPC PRs, PTAL. |
Hi I came across this issue too. I wanted to compile ring for PowerPC, in order to use it inside HSM custom code, but compilation fails with
What is status of this work? Would it be possible to actually support PPC architecture?
|
@andll I am having the same issue, this is on an IBM POWER8, which is ppc64le architecture. OS is Linux. @briansmith, just adding this comment to make you aware I am (for now) )blocked here trying to deploy an application that requires maturin, which in turn requires ring I am not experienced with rust at all so I can't offer much in the way of help here, aside from testing The exact error I receive, using the latest stable rustc/cargo (1.42.0) is:
The full stacktrace
|
Adding support for AES-GCM for Power/PowerPC will be done as part of #971. Please follow along there. RSA and then ECC stuff will follow. |
Issue #104 is fixed, so AES-GCM should be working on all platforms where we do not have assembly language AES-GCM in ring, including little-endian Power. With small changes, which I encourage somebody to do in a PR, it should also work for big-endian Power. However, I know that Power has something very much line AES-NI, and of course we should add that to ring soon. PR #996 implements (unoptimized) RSA support for WebAssembly, but also other platforms for which we do not have assembly language |
Also running into this error when attempting to build
|
Are bounties accepted, would Bountysource be appropriate, and would anyone be interested? |
PPC64LE does not directly support Github Action runners at this time that hopefully will be addressed. |
I'd expect qemu could be used, you can check and see what rust uses for its testing infrastructure... |
Also, you could get some CI infrastructure from https://osuosl.org/services/powerdev/ |
Alpine Linux has aport gitlab CI infrastructure for |
@briansmith if you need to access a PowerPC64 box, please let me know |
@briansmith Github Actions does not support ppc64/ppc64le. Alternatively, you could set up a clone repo on GitLab. I could set up my box to host the gitlab-ci-runner daemon for your Gitlab repo |
@runlevel5 re:
https://github.com/marketplace/actions/run-on-architecture |
This currently doesn't build due to, at least, `ring`'s lack of support: briansmith/ring#389 Signed-off-by: Jesse Szwedko <[email protected]>
This currently doesn't build due to, at least, `ring`'s lack of support: briansmith/ring#389 Signed-off-by: Jesse Szwedko <[email protected]>
Hello, I was wondering if there has been any additional progress on supporting powerPC. I am trying to use Vector which has a dependency on this project. |
@briansmith I hope you are well and sound. Any update on this work? Many thanks in advance |
I think the PR for this is #1057 |
Not all target architectures are supported by the "ring" dependency: - mips: briansmith/ring#562 - PowerPC: briansmith/ring#389 - Sparc: briansmith/ring#1512 - s390x: briansmith/ring@4d2e1a8 Signed-off-by: Danilo Bargen <[email protected]> Signed-off-by: Yann E. MORIN <[email protected]>
Not all target architectures are supported by the "ring" dependency: - mips: briansmith/ring#562 - PowerPC: briansmith/ring#389 - Sparc: briansmith/ring#1512 - s390x: briansmith/ring@4d2e1a8 Signed-off-by: Danilo Bargen <[email protected]> Signed-off-by: Yann E. MORIN <[email protected]> (cherry picked from commit 22bdfbd) Signed-off-by: Peter Korsgaard <[email protected]>
ring fails to compile on PowerPC briansmith/ring#389 briansmith/ring#1057 ring is used to provide https for ureq. I considered just removed the tls feature from ureq, but I thought that it would be more worth it to remove support entirely from powerpc than it would be to disable https for everyone else.
I've no intention of doing any PowerPC-specific work, but we did merge in some PowerPC code from BoringSSL.
Besides testing, we should minimize
aesp8-ppc.pl
the same we did for other targets: Remove the decryption code since all the AEADs we only need AES encryption, remove the XTS and related code, etc.The text was updated successfully, but these errors were encountered: