Skip to content

Commit

Permalink
Update ff/src/fields/bf.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Coratger <[email protected]>
  • Loading branch information
martinsander00 and tcoratger authored Dec 13, 2024
1 parent b131e86 commit 402033b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ff/src/fields/bf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ impl BinaryFieldElement {
// Method for addition in GF(2^k)
pub fn add(&self, other: &Self) -> Self {
// Addition in binary fields is done with XOR
BinaryFieldElement::new(&self.value ^ &other.value)
Self::new(&self.value ^ &other.value)
}

pub fn sub(&self, other: &Self) -> Self {
Expand Down

0 comments on commit 402033b

Please sign in to comment.