Rework handling of randomness
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
- Domain
- cryptography, security
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
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cryspen/bertie
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
[Bug] ECDSA P-256 CertificateVerify signatures are not always valid DERMay be free again A pull request for this issue was closed without being merged. Open
Difficulty 4/5 3-5 days Newbie friendliness 20/100
-
bug
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
-
Update `rand` dependencyPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
tlsfuzzer/python-ecdsa#387 ·
-
Keypair.from_mnemonic_phrase accepts a negative indexPossibly taken @wavebyrd claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
StellarCN/py-stellar-base#1294 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
lidofinance/validator-ejector#233 ·
Maintainers usually reply within 1 day
-
area/Driver_-_cpp-rs-driver bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
scylladb/cpp-rs-driver#542 ·