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 34
34
components : rustfmt
35
35
- name : Run cargo fmt
36
36
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 54
54
//! be selected automatically without needing to specify this flag.
55
55
//!
56
56
//! 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.
58
58
//!
59
59
//! # Examples
60
60
//! ```
79
79
//! // Implementation supports parallel block processing. Number of blocks
80
80
//! // processed in parallel depends in general on hardware capabilities.
81
81
//! // 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.
83
83
//! let mut blocks = [block; 100];
84
84
//! cipher.encrypt_blocks(&mut blocks);
85
85
//!
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ fn rfc2144_b1() {
38
38
/// Test based on RFC 2144 Appendix B.2
39
39
/// https://tools.ietf.org/html/rfc2144#appendix-B.1
40
40
#[ test]
41
- fn full_maintance_test ( ) {
41
+ fn full_maintenance_test ( ) {
42
42
let a = hex ! ( "0123456712345678234567893456789A" ) ;
43
43
let b = hex ! ( "0123456712345678234567893456789A" ) ;
44
44
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
2
2
3
3
pub ( crate ) const GFT_16 : [ u8 ; 256 ] = mul_table_gf256 ( 16 ) ;
4
4
pub ( crate ) const GFT_32 : [ u8 ; 256 ] = mul_table_gf256 ( 32 ) ;
You can’t perform that action at this time.
0 commit comments