Skip to content

Commit 76dda53

Browse files
authored
ci: add typos job (#487)
1 parent ad83428 commit 76dda53

File tree

5 files changed

+31
-4
lines changed

5 files changed

+31
-4
lines changed

.github/workflows/workspace.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,9 @@ jobs:
3434
components: rustfmt
3535
- name: Run cargo fmt
3636
run: cargo fmt --all -- --check
37+
38+
typos:
39+
runs-on: ubuntu-latest
40+
steps:
41+
- uses: actions/checkout@v4
42+
- uses: crate-ci/typos@v1

.typos.toml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[files]
2+
extend-exclude = [
3+
".git/"
4+
]
5+
6+
[default]
7+
extend-ignore-re = [
8+
# Patterns which appear to be 32 or more hex characters
9+
'\b[0-9A-H+/]{32,}\b',
10+
# Test in belt-block
11+
'\b5C07DAA4\b',
12+
# Test in threefish
13+
'\b8927673D5C1CAF3D\b',
14+
]
15+
16+
[default.extend-words]
17+
"GOST" = "GOST"
18+
# encryption-decryption-encryption acronym in des
19+
"EDE" = "EDE"
20+
# Function name in aria
21+
"fo" = "fo"

aes/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
//! be selected automatically without needing to specify this flag.
5555
//!
5656
//! Note: runtime detection is not possible on SGX targets. Please use the
57-
//! afforementioned `RUSTFLAGS` to leverage AES-NI and VAES on these targets.
57+
//! aforementioned `RUSTFLAGS` to leverage AES-NI and VAES on these targets.
5858
//!
5959
//! # Examples
6060
//! ```
@@ -79,7 +79,7 @@
7979
//! // Implementation supports parallel block processing. Number of blocks
8080
//! // processed in parallel depends in general on hardware capabilities.
8181
//! // This is achieved by instruction-level parallelism (ILP) on a single
82-
//! // CPU core, which is differen from multi-threaded parallelism.
82+
//! // CPU core, which is different from multi-threaded parallelism.
8383
//! let mut blocks = [block; 100];
8484
//! cipher.encrypt_blocks(&mut blocks);
8585
//!

cast5/tests/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ fn rfc2144_b1() {
3838
/// Test based on RFC 2144 Appendix B.2
3939
/// https://tools.ietf.org/html/rfc2144#appendix-B.1
4040
#[test]
41-
fn full_maintance_test() {
41+
fn full_maintenance_test() {
4242
let a = hex!("0123456712345678234567893456789A");
4343
let b = hex!("0123456712345678234567893456789A");
4444

kuznyechik/src/gft.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! Pre-computed mutliplication tables for coefficients of the linear transform
1+
//! Pre-computed multiplication tables for coefficients of the linear transform
22
33
pub(crate) const GFT_16: [u8; 256] = mul_table_gf256(16);
44
pub(crate) const GFT_32: [u8; 256] = mul_table_gf256(32);

0 commit comments

Comments
 (0)