diff --git a/.github/workflows/workspace.yml b/.github/workflows/workspace.yml index ea7305d..7f9e7ed 100644 --- a/.github/workflows/workspace.yml +++ b/.github/workflows/workspace.yml @@ -34,3 +34,9 @@ jobs: components: rustfmt - name: Run cargo fmt run: cargo fmt --all -- --check + + typos: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: crate-ci/typos@v1 diff --git a/.typos.toml b/.typos.toml new file mode 100644 index 0000000..c10dfb8 --- /dev/null +++ b/.typos.toml @@ -0,0 +1,11 @@ +[files] +extend-exclude = [ + ".git/", + "kbkdf/tests/data/" +] + +[default] +extend-ignore-re = [ + # Patterns which appear to be 16 or more characters of Base16 + '"[0-9A-Fa-f +]{16,}"', +] diff --git a/bake-kdf/src/lib.rs b/bake-kdf/src/lib.rs index d72095d..b71ec09 100644 --- a/bake-kdf/src/lib.rs +++ b/bake-kdf/src/lib.rs @@ -21,7 +21,7 @@ use belt_hash::{BeltHash, Digest, belt_compress}; pub fn belt_keyexpand(k: &[u8; N]) -> [u32; 8] { let mut t = [0u32; 8]; // TODO: move this conversion into `belt_keyrep` when we will be able - // to use generic paramaters as `[u32; N / 4]`. + // to use generic parameters as `[u32; N / 4]`. for (src, dst) in k.chunks_exact(4).zip(t.iter_mut()) { *dst = u32::from_le_bytes(src.try_into().unwrap()); }