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
6 changes: 6 additions & 0 deletions .github/workflows/workspace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,9 @@ jobs:
toolchain: 1.85.0
components: clippy
- run: cargo clippy --all --all-features -- -D warnings

typos:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: crate-ci/typos@v1
10 changes: 10 additions & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[files]
extend-exclude = [
".git/"
]

[default]
extend-ignore-re = [
# Patterns which appear to be 16 or more hex characters
'\b[0-9A-Fa-f]{16,}\b',
]
2 changes: 1 addition & 1 deletion aes-siv/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ pub type Nonce<NonceSize = U16> = Array<u8, NonceSize>;
/// AES-SIV tags (i.e. the Synthetic Initialization Vector value)
pub type Tag = Array<u8, U16>;

/// Convinience wrapper around `Siv` interface.
/// Convenience wrapper around `Siv` interface.
///
/// The `SivAead` type wraps the more powerful `Siv` interface in a more
/// commonly used Authenticated Encryption with Associated Data (AEAD) API,
Expand Down
2 changes: 1 addition & 1 deletion belt-dwp/src/gf/gf128_soft64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl GfElement for Element {
let v2 = (c ^ (t >> 64)) as u64;
let v3 = (c >> 64) as u64;

// reduce over polynominal f(w) = w^128 + w^7 + w^2 + w + 1
// reduce over polynomial f(w) = w^128 + w^7 + w^2 + w + 1
let d = v2 ^ (v3 >> 63) ^ (v3 >> 62) ^ (v3 >> 57);
self.1 ^= v0 ^ d ^ (d << 1) ^ (d << 2) ^ (d << 7);
self.0 ^= v1 ^ v3 ^ (v3 << 1) ^ (v3 << 2) ^ (v3 << 7) ^ (d >> 63) ^ (d >> 62) ^ (d >> 57);
Expand Down
2 changes: 1 addition & 1 deletion ccm/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed
- Relax `zeroize` requirement to `^1` ([#360])
- Bump `ctr`, `cipher`, annd `hex-literal` dependencies ([#432])
- Bump `ctr`, `cipher`, and `hex-literal` dependencies ([#432])
- Rust 2021 edition upgrade; MSRV 1.56+ ([#435])
- Bump `aead` crate dependency to v0.5 ([#444])

Expand Down
2 changes: 1 addition & 1 deletion ccm/src/private.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub trait SealedNonce: Unsigned {
}

fn get_max_len() -> usize {
// a somewhat ugly code to prevent overlfow.
// a somewhat ugly code to prevent overflow.
// compiler should be able to completely optimize it out
let l = Self::get_l() as u128;
let v = (1 << (8 * l)) - 1;
Expand Down
2 changes: 1 addition & 1 deletion mgm/src/gf/gf128_pclmul.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ impl GfElement for Element {
let v2 = xor!(c, _mm_shuffle_epi32(t, 0x0E));
let v3 = _mm_shuffle_epi32(c, 0x0E);

// reduce over polynominal f(w) = w^128 + w^7 + w^2 + w + 1
// reduce over polynomial f(w) = w^128 + w^7 + w^2 + w + 1
let d = xor!(
v2,
_mm_srli_epi64(v3, 63),
Expand Down
2 changes: 1 addition & 1 deletion mgm/src/gf/gf128_soft64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ impl GfElement for Element {
let v2 = (c ^ (t >> 64)) as u64;
let v3 = (c >> 64) as u64;

// reduce over polynominal f(w) = w^128 + w^7 + w^2 + w + 1
// reduce over polynomial f(w) = w^128 + w^7 + w^2 + w + 1
let d = v2 ^ (v3 >> 63) ^ (v3 >> 62) ^ (v3 >> 57);
self.1 ^= v0 ^ d ^ (d << 1) ^ (d << 2) ^ (d << 7);
self.0 ^= v1 ^ v3 ^ (v3 << 1) ^ (v3 << 2) ^ (v3 << 7) ^ (d >> 63) ^ (d >> 62) ^ (d >> 57);
Expand Down
2 changes: 1 addition & 1 deletion mgm/src/gf/gf64_pclmul.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ impl GfElement for Element {
core::mem::transmute(c)
};

// reduce over polynominal f(w) = w^64 + w^4 + w^3 + w + 1
// reduce over polynomial f(w) = w^64 + w^4 + w^3 + w + 1
let t = e ^ (e >> 63) ^ (e >> 61) ^ (e >> 60);
self.0 ^= d ^ t ^ (t << 1) ^ (t << 3) ^ (t << 4);
}
Expand Down
2 changes: 1 addition & 1 deletion mgm/src/gf/gf64_soft64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ impl GfElement for Element {
let d = c as u64;
let e = (c >> 64) as u64;

// reduce over polynominal f(w) = w^64 + w^4 + w^3 + w + 1
// reduce over polynomial f(w) = w^64 + w^4 + w^3 + w + 1
let t = e ^ (e >> 63) ^ (e >> 61) ^ (e >> 60);
self.0 ^= d ^ t ^ (t << 1) ^ (t << 3) ^ (t << 4);
}
Expand Down