Skip to content

Commit

Permalink
dilithium.WireMessage.clearFlag (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelquigley committed Aug 18, 2021
1 parent 2cef278 commit 46b47a9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions message.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,3 +145,7 @@ func (wm *WireMessage) hasFlag(flag messageFlag) bool {
}
return false
}

func (wm *WireMessage) clearFlag(flag messageFlag) {
wm.Mt = messageType(uint8(wm.Mt) ^ uint8(flag))
}

0 comments on commit 46b47a9

Please sign in to comment.