diff --git a/blindsign/blindrsa/pbrsa.go b/blindsign/blindrsa/pbrsa.go index 883df783c..99ddee055 100644 --- a/blindsign/blindrsa/pbrsa.go +++ b/blindsign/blindrsa/pbrsa.go @@ -181,7 +181,6 @@ func fixedPartiallyBlind(message, rand, salt []byte, r, rInv *big.Int, pk *BigPu hash: hash, salt: salt, rInv: rInv, - // rand: rand, }, nil } @@ -213,16 +212,13 @@ func (v RandomizedPBRSAVerifier) Blind(random io.Reader, message, metadata []byt return nil, PBRSAVerifierState{}, err } - // Compute e_MD = e * H_MD(D) metadataKey := augmentPublicKey(v.cryptoHash, v.pk, metadata) - - // Do the rest with (M', D) as the message being signed inputMsg := encodeMessageMetadata(message, metadata) - return fixedPartiallyBlind(inputMsg, nil, salt, r, rInv, metadataKey, v.hash) } -// Verify verifies the input (message, signature) pair and produces an error upon failure. +// Verify verifies the input (message, signature) pair using the augmented public key +// and produces an error upon failure. // // See the specification for more details: // https://datatracker.ietf.org/doc/html/draft-amjad-cfrg-partially-blind-rsa-00#name-verification-2