Skip to content

Commit 1b67086

Browse files
authored
Publishing v0.5.0-pre.7 (#128)
1 parent 68cc7d3 commit 1b67086

File tree

11 files changed

+930
-1039
lines changed

11 files changed

+930
-1039
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## 0.5.0-pre.7 (January 11, 2023)
4+
* Updated to be in sync with RFC 9497
5+
36
## 0.5.0-pre.6 (July 24, 2023)
47
* Updated curve25519-dalek dependency to 4
58

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ name = "voprf"
99
readme = "README.md"
1010
repository = "https://github.com/facebook/voprf/"
1111
rust-version = "1.65"
12-
version = "0.5.0-pre.6"
12+
version = "0.5.0-pre.7"
1313

1414
[features]
1515
alloc = []

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ An implementation of a (verifiable) oblivious pseudorandom function (VOPRF)
33

44
A VOPRF is a verifiable oblivious pseudorandom function, a protocol between a client and a server. The regular (non-verifiable) OPRF is also supported in this implementation.
55

6-
This implementation is based on the [Internet Draft for VOPRF](https://github.com/cfrg/draft-irtf-cfrg-voprf).
6+
This implementation is based on [RFC 9497](https://www.rfc-editor.org/rfc/rfc9497).
77

88
Documentation
99
-------------
@@ -16,7 +16,7 @@ Installation
1616
Add the following line to the dependencies of your `Cargo.toml`:
1717

1818
```
19-
voprf = "0.5.0-pre.6"
19+
voprf = "0.5.0-pre.7"
2020
```
2121

2222
### Minimum Supported Rust Version

src/ciphersuite.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ where
2222
IsLess<U256> + IsLessOrEqual<<Self::Hash as BlockSizeUser>::BlockSize>,
2323
{
2424
/// The ciphersuite identifier as dictated by
25-
/// <https://datatracker.ietf.org/doc/draft-irtf-cfrg-voprf/>
25+
/// <https://www.rfc-editor.org/rfc/rfc9497>
2626
const ID: &'static str;
2727

2828
/// A finite cyclic group along with a point representation that allows some

src/common.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ where
155155
<CS::Hash as OutputSizeUser>::OutputSize:
156156
IsLess<U256> + IsLessOrEqual<<CS::Hash as BlockSizeUser>::BlockSize>,
157157
{
158-
// https://www.ietf.org/archive/id/draft-irtf-cfrg-voprf-11.html#section-2.2.1
158+
// https://www.rfc-editor.org/rfc/rfc9497#section-2.2.1
159159

160160
let (m, z) = compute_composites::<CS, _, _>(Some(k), b, cs, ds, mode)?;
161161

@@ -218,7 +218,7 @@ where
218218
<CS::Hash as OutputSizeUser>::OutputSize:
219219
IsLess<U256> + IsLessOrEqual<<CS::Hash as BlockSizeUser>::BlockSize>,
220220
{
221-
// https://www.ietf.org/archive/id/draft-irtf-cfrg-voprf-11.html#section-2.2.2
221+
// https://www.rfc-editor.org/rfc/rfc9497#section-2.2.2
222222
let (m, z) = compute_composites::<CS, _, _>(None, b, cs, ds, mode)?;
223223
let t2 = (a * &proof.s_scalar) + &(b * &proof.c_scalar);
224224
let t3 = (m * &proof.s_scalar) + &(z * &proof.c_scalar);
@@ -287,7 +287,7 @@ where
287287
<CS::Hash as OutputSizeUser>::OutputSize:
288288
IsLess<U256> + IsLessOrEqual<<CS::Hash as BlockSizeUser>::BlockSize>,
289289
{
290-
// https://www.ietf.org/archive/id/draft-irtf-cfrg-voprf-11.html#section-2.2.1
290+
// https://www.rfc-editor.org/rfc/rfc9497#section-2.2.1
291291

292292
let elem_len = <CS::Group as Group>::ElemLen::U16.to_be_bytes();
293293

@@ -513,7 +513,7 @@ impl<L: ArrayLength<u8>> Dst<L> {
513513
{
514514
let par_1 = par_1.into();
515515
// Generates the contextString parameter as defined in
516-
// <https://datatracker.ietf.org/doc/draft-irtf-cfrg-voprf/>
516+
// <https://www.rfc-editor.org/rfc/rfc9497#section-3.1>
517517
let par_2 = GenericArray::from(STR_OPRF)
518518
.concat([mode.to_u8()].into())
519519
.concat([b'-'].into());

src/group/elliptic_curve.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ where
3838
type ScalarLen = FieldBytesSize<Self>;
3939

4040
// Implements the `hash_to_curve()` function from
41-
// https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-hash-to-curve-11#section-3
41+
// https://www.rfc-editor.org/rfc/rfc9380.html#section-3
4242
fn hash_to_curve<H>(input: &[&[u8]], dst: &[&[u8]]) -> Result<Self::Elem, InternalError>
4343
where
4444
H: BlockSizeUser + Default + FixedOutput + HashMarker,

src/group/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ use zeroize::Zeroize;
2727
use crate::{InternalError, Result};
2828

2929
/// A prime-order subgroup of a base field (EC, prime-order field ...). This
30-
/// subgroup is noted additively — as in the draft RFC — in this trait.
30+
/// subgroup is noted additively — as in the RFC — in this trait.
3131
pub trait Group {
3232
/// The type of group elements
3333
type Elem: ConstantTimeEq

src/group/ristretto.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ impl Group for Ristretto255 {
4444
type ScalarLen = U32;
4545

4646
// Implements the `hash_to_ristretto255()` function from
47-
// https://www.ietf.org/archive/id/draft-irtf-cfrg-hash-to-curve-10.txt
47+
// https://www.rfc-editor.org/rfc/rfc9380.html#appendix-B
4848
fn hash_to_curve<H>(input: &[&[u8]], dst: &[&[u8]]) -> Result<Self::Elem, InternalError>
4949
where
5050
H: BlockSizeUser + Default + FixedOutput + HashMarker,
@@ -59,7 +59,7 @@ impl Group for Ristretto255 {
5959
}
6060

6161
// Implements the `HashToScalar()` function from
62-
// https://www.ietf.org/archive/id/draft-irtf-cfrg-voprf-07.html#section-4.1
62+
// https://www.rfc-editor.org/rfc/rfc9497#section-4.1
6363
fn hash_to_scalar<H>(input: &[&[u8]], dst: &[&[u8]]) -> Result<Self::Scalar, InternalError>
6464
where
6565
H: BlockSizeUser + Default + FixedOutput + HashMarker,

src/lib.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
//! An implementation of a verifiable oblivious pseudorandom function (VOPRF)
1010
//!
1111
//! Note: This implementation is in sync with
12-
//! [draft-irtf-cfrg-voprf-19](https://www.ietf.org/archive/id/draft-irtf-cfrg-voprf-19.html),
13-
//! but this specification is subject to change, until the final version
14-
//! published by the IETF.
12+
//! [RFC 9497](https://www.rfc-editor.org/rfc/rfc9497).
1513
//!
1614
//! # Overview
1715
//!
@@ -512,7 +510,7 @@
512510
//! and [PoprfClient] are used, and that each of the functions accept an
513511
//! additional (and optional) info parameter which represents the public input.
514512
//! See
515-
//! <https://www.ietf.org/archive/id/draft-irtf-cfrg-voprf-11.html#name-poprf-public-input>
513+
//! <https://www.rfc-editor.org/rfc/rfc9497#name-poprf-public-input>
516514
//! for more detailed information on how this public input should be used.
517515
//!
518516
//! # Features

0 commit comments

Comments
 (0)