Skip to content

Commit

Permalink
Apply thibmeu code review suggestions
Browse files Browse the repository at this point in the history
Co-authored-by: Thibault <[email protected]>
  • Loading branch information
armfazh and thibmeu committed Oct 27, 2023
1 parent ceb2d90 commit e728d0d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions blindsign/blindrsa/brsa.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Package blindrsa implements the RSA Blind Signature Protocol.
// Package blindrsa implements the RSA Blind Signature Protocol as defined in [RFC9474].
//
// The RSA Blind Signature protocol, also called RSABSSA
// The RSA Blind Signature protocol, and its variant RSABSSA
// (RSA Blind Signature with Appendix) is a two-party protocol
// between a Client and Server where they interact to compute
//
Expand Down Expand Up @@ -114,7 +114,7 @@ func (v randomBRSAVerifier) Hash() hash.Hash {
}

func prepareMsg(message, prefix []byte) []byte {
return append(append([]byte{}, prefix...), message...)
return append(prefix, message...)
}

func fixedBlind(message, salt []byte, r, rInv *big.Int, pk *rsa.PublicKey, hash hash.Hash) ([]byte, VerifierState, error) {
Expand Down

0 comments on commit e728d0d

Please sign in to comment.