File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ aes-gcm = "0.10.1"
35
35
ccm = " 0.3.0"
36
36
tokio = { version = " 1.19" , features = [" full" ] }
37
37
async-trait = " 0.1.56"
38
- x25519-dalek = " 2.0.0-pre.1 "
38
+ x25519-dalek = { version = " 2.0.0-rc.2 " , features = [ " static_secrets " ] }
39
39
signature = " 1.2.2"
40
40
x509-parser = " 0.13.2"
41
41
der-parser = " 8.1"
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ fn elliptic_curve_keypair(curve: NamedCurve) -> Result<NamedCurveKeypair> {
54
54
)
55
55
}
56
56
NamedCurve :: X25519 => {
57
- let secret_key = x25519_dalek:: StaticSecret :: new ( OsRng ) ;
57
+ let secret_key = x25519_dalek:: StaticSecret :: random_from_rng ( OsRng ) ;
58
58
let public_key = x25519_dalek:: PublicKey :: from ( & secret_key) ;
59
59
(
60
60
public_key. as_bytes ( ) . to_vec ( ) ,
You can’t perform that action at this time.
0 commit comments