RustCrypto / RustCrypto/crypto-bigint

Support for 16-bit platforms?

Open
#182 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
309
Forks
95
Avg merge
1d 14h
Merged PRs (30d)
3

Description

I'm trying to compile k256 for ATmega328, a popular 8-bit chip on arduino boards, but I'm getting:

error: this crate builds on 32-bit and 64-bit platforms only
  --> /.cargo/registry/src/github.com-1ecc6299db9ec823/crypto-bigint-0.4.9/src/limb.rs:31:1
   |
31 | compile_error!("this crate builds on 32-bit and 64-bit platforms only");

The other alternatives to k256, secp256k1 and libsecp256k1 both need alloc, which I have not been able to get working yet on that platform. Any thoughts?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by examining the platform restriction in src/limb.rs and the reported k256 build on an ATmega328. Determine the requirements for supporting 16-bit or 8-bit targets and define what successful compilation and compatibility should cover.

Written by the indexing model from the issue text.

Assessment

Tech stack
arduino, rust
Domain
cryptography, embedded-iot
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.