Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ jobs:
- uses: dtolnay/rust-toolchain@nightly
- run: cargo doc --all-features --no-deps
env:
RUSTDOCFLAGS: "--cfg docsrs"
RUSTDOCFLAGS: "--cfg docsrs -D warnings"

msrv:
name: rust-version is MSRV
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ To run all tests, execute `cargo test --all-features`. This includes known-answe

Classical (i.e., non-post-quantum) ciphersuites test against `test-vector-COMMIT_ID.json`,where `COMMIT_ID` is the short commit of the version of the [spec](https://github.com/cfrg/draft-irtf-cfrg-hpke) that the test vectors came from. The finalized spec uses commit `5f503c5`. See the [reference implementation](https://github.com/cisco/go-hpke) for information on how to generate a test vector.

Post-quantum ciphersuites (including hybrid), test against `test-vector-go-COMMIT_ID.json` in the same way. The commit ID corresponds to Filippo's [Go HPKE](https://github.com/FiloSottile/hpke) repo. The latest commit fetched was `8aa8a04`. The vectors in turn come from the [reference implementation](https://github.com/hpkewg/hpke-pq) repo of the PQ extension standard, at commit `c523f03`. The JSON file was trimmed to only include test vectors from ciphersuites implemented in this crate.
Post-quantum ciphersuites (including hybrid), test against `test-vectors-go-COMMIT_ID.json` in the same way. The commit ID corresponds to Filippo's [Go HPKE](https://github.com/FiloSottile/hpke) repo. The latest commit fetched was `8aa8a04`. The vectors in turn come from the [reference implementation](https://github.com/hpkewg/hpke-pq) repo of the PQ extension standard, at commit `c523f03`. The JSON file was trimmed to only include test vectors from ciphersuites implemented in this crate.

Benchmarks
----------
Expand Down
4 changes: 2 additions & 2 deletions src/kem/xwing.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! Implemented as per https://filippo.io/hpke-pq, which itself derives from
//! https://datatracker.ietf.org/doc/html/draft-ietf-hpke-pq-03
//! The X-Wing hybrid PQ KEM, aka MLKEM768-X25519. Implemented as per <https://filippo.io/hpke-pq>,
//! which itself derives from <https://datatracker.ietf.org/doc/html/draft-ietf-hpke-pq-03>

use crate::{
kdf::one_stage_kdf::labeled_derive,
Expand Down
14 changes: 8 additions & 6 deletions src/single_shot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use rand_core::UnwrapErr;
// ct = ctx.Seal(aad, pt)
// return enc, ct

/// Does a [`setup_sender`] and
/// Does a [`crate::setup_sender`] and
/// [`AeadCtxS::seal_inout_detached`](crate::aead::AeadCtxS::seal_inout_detached) in one shot. That
/// is, it does a key encapsulation to the specified recipient and encrypts the provided plaintext
/// in place.
Expand Down Expand Up @@ -57,7 +57,7 @@ where
)
}

/// Does a [`setup_sender`] and
/// Does a [`setup_sender_with_rng`] and
/// [`AeadCtxS::seal_inout_detached`](crate::aead::AeadCtxS::seal_inout_detached) in one shot. That
/// is, it does a key encapsulation to the specified recipient and encrypts the provided plaintext
/// in place.
Expand Down Expand Up @@ -89,8 +89,9 @@ where
Ok((encapped_key, tag))
}

/// Does a [`setup_sender`] and [`AeadCtxS::seal`](crate::aead::AeadCtxS::seal) in one shot. That
/// is, it does a key encapsulation to the specified recipient and encrypts the provided plaintext.
/// Does a [`crate::setup_sender`] and [`AeadCtxS::seal`](crate::aead::AeadCtxS::seal) in one shot.
/// That is, it does a key encapsulation to the specified recipient and encrypts the provided
/// plaintext.
///
/// Return Value
/// ============
Expand Down Expand Up @@ -124,8 +125,9 @@ where
)
}

/// Does a [`setup_sender`] and [`AeadCtxS::seal`](crate::aead::AeadCtxS::seal) in one shot. That
/// is, it does a key encapsulation to the specified recipient and encrypts the provided plaintext.
/// Does a [`crate::setup_sender`] and [`AeadCtxS::seal`](crate::aead::AeadCtxS::seal) in one shot.
/// That is, it does a key encapsulation to the specified recipient and encrypts the provided
/// plaintext.
///
/// Return Value
/// ============
Expand Down
Loading