Skip to content

Commit

Permalink
[shared] bump opaque-ke to 2.1.0-pre.1
Browse files Browse the repository at this point in the history
Summary:
This version of opaque-ke uses the latest version of voprf. The previous version of opaque-ke was using an older version of voprf that no longer works with the latest version of Rust. Hence, in order to upgrade to the latest version of Rust, we need to first upgrade opaque-ke.

As part of this upgrade, we need a wrapper for Argon2 that uses the default params from argon 0.4. Further explanation provided inline.

Basically copied this code: drey7925/perovskite@2076604#diff-400eb1f04580ae4870aa9d4aae3210268771ed3a5237703cc070d87296830d38

This resolves: https://linear.app/comm/issue/ENG-9164/upgrade-opaque-ke-20

Next diff will bump our Rust version from 1.76 to 1.82 (latest stable version)

Test Plan:
1. deployed custom identity image to staging with these changes
2. checked out master branch
3. successfully logged in to existing account on staging identity from native, web, keyserver
4. successfully registered and logged in to staging from native
5. switched back to feature branch
6. successfully logged in to existing account on staging identity from native, web, keyserver
7. successfully registered and logged in to staging from native

Note that I ran `cleaninstall` after switching branches

Reviewers: will, bartek

Reviewed By: will, bartek

Subscribers: tomek

Differential Revision: https://phab.comm.dev/D13895
  • Loading branch information
vdhanan committed Nov 12, 2024
1 parent 8a334ca commit 0350430
Show file tree
Hide file tree
Showing 6 changed files with 245 additions and 174 deletions.
68 changes: 45 additions & 23 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ actix-web-httpauth = "0.8.0"
aead = "0.5"
aes-gcm = "0.10"
anyhow = "1.0.74"
argon2 = "0.4"
argon2 = "0.5.3"
async-stream = "0.3.2"
aws-config = "1.5.4"
aws-sdk-dynamodb = "1.39.1"
Expand All @@ -60,6 +60,7 @@ ed25519-dalek = "1"
futures = "0.3.30"
futures-core = "0.3"
futures-util = "0.3.28"
generic-array = "0.14.7"
hex = "0.4.3"
http = "0.2.9"
hyper = "0.14"
Expand All @@ -75,7 +76,7 @@ num-derive = "0.4"
num-traits = "0.2"
num_cpus = "1.13.1"
once_cell = "1.17"
opaque-ke = "2.0"
opaque-ke = "2.1.0-pre.1"
postmark = "0.8"
prost = "0.11"
regex = "1.10.3"
Expand Down
Loading

0 comments on commit 0350430

Please sign in to comment.