Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: RustCrypto/universal-hashes
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: cf0a7d404f668b0b1bd70eccde4bdfa720304b3c
Choose a base ref
..
head repository: RustCrypto/universal-hashes
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3aaaf7511f34ec9dba771b9e5b6837743a427bf0
Choose a head ref
Showing with 3 additions and 3 deletions.
  1. +1 −1 polyval/src/field/backend/soft.rs
  2. +1 −1 polyval/src/lib.rs
  3. +1 −1 polyval/tests/lib.rs
2 changes: 1 addition & 1 deletion polyval/src/field/backend/soft.rs
Original file line number Diff line number Diff line change
@@ -122,9 +122,9 @@ impl U64x2 {
pub fn mulx(self) -> Self {
let mut v0 = self.0;
let mut v1 = self.1;

let v0h = v0 >> 63;
let v1h = v1 >> 63;

v0 <<= 1;
v1 <<= 1;
v0 ^= v1h;
2 changes: 1 addition & 1 deletion polyval/src/lib.rs
Original file line number Diff line number Diff line change
@@ -50,9 +50,9 @@ pub mod field;
#[cfg(feature = "ghash")]
mod ghash;

pub use universal_hash;
#[cfg(feature = "ghash")]
pub use self::ghash::GHash;
pub use universal_hash;

use core::convert::TryInto;
use universal_hash::generic_array::{typenum::U16, GenericArray};
2 changes: 1 addition & 1 deletion polyval/tests/lib.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#[macro_use]
extern crate hex_literal;

use polyval::{Polyval, universal_hash::UniversalHash};
#[cfg(feature = "ghash")]
use polyval::GHash;
use polyval::{universal_hash::UniversalHash, Polyval};

//
// Test vectors for POLYVAL from RFC 8452 Appendix A