File tree 5 files changed +15
-10
lines changed
5 files changed +15
-10
lines changed Original file line number Diff line number Diff line change 23
23
- --features serde
24
24
toolchain :
25
25
- stable
26
- - 1.57 .0
26
+ - 1.60 .0
27
27
name : test
28
28
steps :
29
29
- name : Checkout sources
78
78
matrix :
79
79
toolchain :
80
80
- stable
81
- - 1.57 .0
81
+ - 1.60 .0
82
82
name : test simple_login command-line example
83
83
steps :
84
84
- name : install expect
@@ -101,7 +101,7 @@ jobs:
101
101
matrix :
102
102
toolchain :
103
103
- stable
104
- - 1.57 .0
104
+ - 1.60 .0
105
105
name : test digital_locker command-line example
106
106
steps :
107
107
- name : install expect
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ license = "Apache-2.0 OR MIT"
8
8
name = " opaque-ke"
9
9
readme = " README.md"
10
10
repository = " https://github.com/novifinancial/opaque-ke"
11
- rust-version = " 1.57 "
11
+ rust-version = " 1.60 "
12
12
version = " 2.0.0"
13
13
14
14
[features ]
@@ -52,14 +52,15 @@ chacha20poly1305 = "0.10"
52
52
criterion = " 0.4"
53
53
hex = " 0.4"
54
54
json = " 0.12"
55
- p256 = { version = " 0.11 " , default-features = false , features = [
55
+ p256 = { version = " 0.12 " , default-features = false , features = [
56
56
" hash2curve" ,
57
57
" voprf" ,
58
58
] }
59
59
proptest = " 1"
60
60
rand = " 0.8"
61
61
regex = " 1"
62
- rustyline = " 10"
62
+ # MSRV
63
+ rustyline = " 10.1.1"
63
64
scrypt = " 0.10"
64
65
serde_json = " 1"
65
66
@@ -75,3 +76,6 @@ targets = []
75
76
[[example ]]
76
77
name = " simple_login"
77
78
required-features = [" argon2" ]
79
+
80
+ [patch .crates-io ]
81
+ voprf = { git = " https://github.com/facebook/voprf" }
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ opaque-ke = "2"
27
27
28
28
### Minimum Supported Rust Version
29
29
30
- Rust ** 1.57 ** or higher.
30
+ Rust ** 1.60 ** or higher.
31
31
32
32
Audit
33
33
-----
Original file line number Diff line number Diff line change 25
25
G : GroupDigest ,
26
26
FieldSize < Self > : ModulusSize ,
27
27
AffinePoint < Self > : FromEncodedPoint < Self > + ToEncodedPoint < Self > ,
28
- ProjectivePoint < Self > : CofactorGroup + ToEncodedPoint < Self > ,
28
+ ProjectivePoint < Self > : CofactorGroup ,
29
29
Scalar < Self > : FromOkm ,
30
30
{
31
31
type Pk = ProjectivePoint < Self > ;
37
37
type SkLen = FieldSize < Self > ;
38
38
39
39
fn serialize_pk ( pk : Self :: Pk ) -> GenericArray < u8 , Self :: PkLen > {
40
- GenericArray :: clone_from_slice ( pk. to_encoded_point ( true ) . as_bytes ( ) )
40
+ let affine: AffinePoint < Self > = pk. into ( ) ;
41
+ GenericArray :: clone_from_slice ( affine. to_encoded_point ( true ) . as_bytes ( ) )
41
42
}
42
43
43
44
fn deserialize_pk ( bytes : & [ u8 ] ) -> Result < Self :: Pk , InternalError > {
Original file line number Diff line number Diff line change 14
14
//!
15
15
//! ### Minimum Supported Rust Version
16
16
//!
17
- //! Rust **1.57 ** or higher.
17
+ //! Rust **1.60 ** or higher.
18
18
//!
19
19
//! # Overview
20
20
//!
You can’t perform that action at this time.
0 commit comments