Skip to content

Commit

Permalink
Remove a couple more dead things
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-wood committed Jun 14, 2023
1 parent 8d0cc8c commit f997b8a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions blindsign/blindrsa/pbrsa.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f997b8a

Please sign in to comment.