Skip to content

Commit e728d0d

Browse files
armfazhthibmeu
andcommitted
Apply thibmeu code review suggestions
Co-authored-by: Thibault <thibmeu@users.noreply.github.com>
1 parent ceb2d90 commit e728d0d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

blindsign/blindrsa/brsa.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// Package blindrsa implements the RSA Blind Signature Protocol.
1+
// Package blindrsa implements the RSA Blind Signature Protocol as defined in [RFC9474].
22
//
3-
// The RSA Blind Signature protocol, also called RSABSSA
3+
// The RSA Blind Signature protocol, and its variant RSABSSA
44
// (RSA Blind Signature with Appendix) is a two-party protocol
55
// between a Client and Server where they interact to compute
66
//
@@ -114,7 +114,7 @@ func (v randomBRSAVerifier) Hash() hash.Hash {
114114
}
115115

116116
func prepareMsg(message, prefix []byte) []byte {
117-
return append(append([]byte{}, prefix...), message...)
117+
return append(prefix, message...)
118118
}
119119

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

0 commit comments

Comments
 (0)