RustCrypto / RustCrypto/crypto-bigint

Easier working with native numbers

Open
#585 6 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

In my usage with BoxedUint I am really missing comparison and calculations with u32 and u64 at least, currently it is quite inefficient as I have to do the following

let x = make_boxed_uint();
let y = x - BoxedUint::from(4); // today
let y = x - 1u32; // should be easily possible

if x < 128u32 {
  return "small";
}

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

No files or tests are named. Start by locating BoxedUint's arithmetic and comparison implementations and their tests, then trace how native integer operands are currently handled. Done means the requested u32 and u64 subtraction, calculations, and comparisons work directly and are covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cryptography
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.