RustCrypto / RustCrypto/PAKEs

Use `kdf` traits for PBKDFs

Open
#254 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

security
Dominant language
Rust
Stars
124
Forks
48
PR merge metrics
No merged PRs in 30d

Description

Right now spake2 and srp suggest they should be used in conjunction with PBKDFs, but do not make it easy to do so or provide ready-made recipes for using them in conjunction with a PBKDF.

aucpace uses the password-hash crate to achieve this, then extracts the output from the computed password hash.

Instead, all of our PAKE implementations could use forthcoming traits from the kdf crate to abstract over PBKDF algorithms (i.e. that we have implemented in the https://github.com/RustCrypto/password-hashes repo)

See: https://github.com/RustCrypto/traits/pull/1879

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 reviewing the spake2 and srp PBKDF guidance, then compare aucpace's password-hash integration with the forthcoming kdf traits in RustCrypto/traits PR 1879. Determine how the PAKE implementations should abstract over PBKDF algorithms and verify that the resulting usage provides the intended recipes.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cryptography, security
Issue type
Refactor
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.