Skip to content

Commit

Permalink
improve comment for galois_multiplication
Browse files Browse the repository at this point in the history
  • Loading branch information
eightfilms committed Jul 8, 2024
1 parent d793e1b commit 02c20ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/encryption/symmetric/aes/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ struct State([[u8; 4]; 4]);
/// m(x) = x^8 + x^4 + x^3 + x + 1
///
/// Note that in most AES implementations, this is done using "carry-less" multiplication -
/// to see how this works in field terms, this implementation uses an actual polynomial
/// implementation (a [`Polynomial`] of [`BinaryField`]s)
/// to see how this works in more concretely in field arithmetic, this implementation uses an actual
/// polynomial implementation (a [`Polynomial`] of [`BinaryField`]s).
fn galois_multiplication(mut col: u8, mut multiplicant: u8) -> u8 {
// Decompose bits into degree-7 polynomials.
let mut col_bits = [BinaryField::new(0); 8];
Expand Down

0 comments on commit 02c20ae

Please sign in to comment.