test(qa): second review, A-03/A-06/A-08/A-09/A-18/A-28/A-30/A-31 and R2-02 (non-canonical pk_X)
Completes the partial QA cases and adds the not-done ones that need no new dependency: compile-time checks that no secret type is Copy, Clone, PartialEq or Display (A-28, A-31, hand-rolled assert_not_impl), ZeroizeOnDrop markers, redacted Debug, no input bytes in errors (A-30), distinct secrets for all 1120 ciphertext flips (A-03), a spliced key (A-06), deterministic implicit rejection (A-18), and the KDF-encoding and purpose-separation unit tests (A-08, A-09). qa_r2_02_non_canonical_x25519_public_key_is_refused FAILS on purpose: a pk_X with bit 255 set parses, and the exchange then silently derives mismatched PSKs.
This commit is contained in:
@@ -27,6 +27,8 @@ pub mod xwing;
|
||||
|
||||
#[cfg(test)]
|
||||
mod binding_tests;
|
||||
#[cfg(test)]
|
||||
mod qa_review_tests;
|
||||
|
||||
pub use error::{Error, Input};
|
||||
pub use exchange::{Session, WIREGUARD_PSK_LEN, WireGuardPsk};
|
||||
|
||||
Reference in New Issue
Block a user