Bump voprf to v0.5.0-pre.2 (#304)
This commit is contained in:
@@ -81,7 +81,7 @@ impl KeGroup for Curve25519 {
|
||||
}
|
||||
|
||||
fn public_key(sk: Self::Sk) -> Self::Pk {
|
||||
(&ED25519_BASEPOINT_TABLE * &sk).to_montgomery()
|
||||
(ED25519_BASEPOINT_TABLE * &sk).to_montgomery()
|
||||
}
|
||||
|
||||
fn diffie_hellman(pk: Self::Pk, sk: Self::Sk) -> GenericArray<u8, Self::PkLen> {
|
||||
|
||||
@@ -38,11 +38,8 @@ impl KeGroup for Ristretto255 {
|
||||
}
|
||||
|
||||
fn deserialize_pk(bytes: &[u8]) -> Result<Self::Pk, InternalError> {
|
||||
if bytes.len() != 32 {
|
||||
return Err(InternalError::PointError);
|
||||
}
|
||||
|
||||
CompressedRistretto::from_slice(bytes)
|
||||
.map_err(|_| InternalError::PointError)?
|
||||
.decompress()
|
||||
.filter(|point| point != &RistrettoPoint::identity())
|
||||
.ok_or(InternalError::PointError)
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@
|
||||
//!
|
||||
//! ### Minimum Supported Rust Version
|
||||
//!
|
||||
//! Rust **1.57** or higher.
|
||||
//! Rust **1.60** or higher.
|
||||
//!
|
||||
//! # Overview
|
||||
//!
|
||||
|
||||
+1
-1
@@ -85,7 +85,7 @@ fn parse_params(input: &str) -> String {
|
||||
let key = iter.next().unwrap().split_whitespace().next().unwrap();
|
||||
let val = iter.next().unwrap().split_whitespace().next().unwrap();
|
||||
|
||||
param = format!(" \"{}\": \"{}", key, val);
|
||||
param = format!(" \"{key}\": \"{val}");
|
||||
} else {
|
||||
let s = line.trim().to_string();
|
||||
if s.contains('~') || s.contains('#') {
|
||||
|
||||
Reference in New Issue
Block a user