From e728d0d84e7e7cd9027050a62aa14adb8dec147c Mon Sep 17 00:00:00 2001 From: Armando Faz Date: Thu, 26 Oct 2023 09:43:06 -0700 Subject: [PATCH] Apply thibmeu code review suggestions Co-authored-by: Thibault --- blindsign/blindrsa/brsa.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/blindsign/blindrsa/brsa.go b/blindsign/blindrsa/brsa.go index 0a1042097..5268cb905 100644 --- a/blindsign/blindrsa/brsa.go +++ b/blindsign/blindrsa/brsa.go @@ -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 // @@ -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) {