Skip to content

Commit

Permalink
fix packing error
Browse files Browse the repository at this point in the history
  • Loading branch information
jp4g committed Nov 28, 2024
1 parent ae8357d commit e6be1ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/dkim.nr
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ impl RSAPubkey<KEY_LIMBS_2048> {
pub fn hash(self) -> Field {
let mut dkim_preimage = [0; 18];
// compose limbs
for i in 0..18 {
for i in 0..9 {
let modulus_hi = self.modulus[i * 2] * 2.pow_32(120);
let redc_hi = self.redc[i * 2] * 2.pow_32(120);
dkim_preimage[i] = modulus_hi + self.modulus[i * 2 + 1];
Expand Down

0 comments on commit e6be1ac

Please sign in to comment.