Skip to content

Commit

Permalink
refactor: better handling of signature header
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbinth committed Mar 15, 2024
1 parent 246830a commit 5d4e166
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/dsa/rpo_falcon512/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ impl Serializable for Signature {
target.write(self.htp);

// encode signature
target.write_u8(0x30 + LOG_N as u8); // header
target.write(&self.header);
target.write(&self.nonce);
target.write(&self.s2);
}
Expand All @@ -142,8 +142,7 @@ impl Deserializable for Signature {
let htp = source.read()?;

// decode signature
let header: SignatureHeader = source.read()?;

let header = source.read()?;
let nonce = source.read()?;
let s2 = source.read()?;

Expand Down

0 comments on commit 5d4e166

Please sign in to comment.