File tree Expand file tree Collapse file tree 5 files changed +31
-4
lines changed
Expand file tree Collapse file tree 5 files changed +31
-4
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 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//! ```
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//!
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 1- //! Pre-computed mutliplication tables for coefficients of the linear transform
1+ //! Pre-computed multiplication tables for coefficients of the linear transform
22
33pub ( crate ) const GFT_16 : [ u8 ; 256 ] = mul_table_gf256 ( 16 ) ;
44pub ( crate ) const GFT_32 : [ u8 ; 256 ] = mul_table_gf256 ( 32 ) ;
You can’t perform that action at this time.
0 commit comments