RustCrypto / RustCrypto/crypto-bigint

`MontyForm` variable-time arithmetic for constants

Open
#966 9 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

Elliptic-curve algorithms often contain arithmetic with constants. MontyForm could provide functions that optimize these operations.

I propose to introduce *_vartime methods that are only variable-time over rhs: MontyForm. They have to be constant-time for lhs.

Related: #839.

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 reading the existing MontyForm arithmetic APIs and the discussion in related issue #839. Identify which constant operations need *_vartime methods, then verify that each is variable-time only over rhs: MontyForm and remains constant-time for lhs.

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
Quiet
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.