Rework handling of randomness

Open
#73 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Refactor
Clarity
Needs clarification
Activity status
Stale
Tech stack
rust

Research direction

Start at the tls13sign handling described in the issue and trace how ent: &Bytes is passed into the RSA-PSS and ECDSA signing paths. Compare the raw entropy expected by libcrux for RSA-PSS with the impl CryptoRng + RngCore expected for ECDSA. Done means randomness is passed consistently without unused entropy parameters.

Written by the indexing model from the issue text.

Description

For instance, in tls13sign, libcrux expects raw bytes of entropy for RSA-PSS signing and an impl CryptoRng + RngCore for ECDSA signing. We're passing around ent: &Bytes parameters for entropy, but don't use them when an Impl trait is expected.

Dominant language
F*
Stars
138
Forks
5
PR merge metrics
No merged PRs in 30d

Getting set up

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.

More from cryspen/bertie

All issues in cryspen/bertie

Similar issues

More Cryptography issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.