public class PS18ROMSignatureScheme extends PS18SignatureScheme
| Constructor and Description |
|---|
PS18ROMSignatureScheme(PSPublicParameters pp) |
PS18ROMSignatureScheme(org.cryptimeleon.math.serialization.Representation repr) |
| Modifier and Type | Method and Description |
|---|---|
Signature |
restoreSignature(org.cryptimeleon.math.serialization.Representation repr) |
Signature |
sign(PlainText plainText,
SigningKey secretKey)
Signs the giving plaintext using the given signing key.
|
java.lang.Boolean |
verify(PlainText plainText,
Signature signature,
VerificationKey publicKey)
Verifies the given signature for the given plaintext using the given verification key.
|
computeLeftHandSide, computeSigma2, equals, generateKeyPair, getMaxNumberOfBytesForMapToPlaintext, getPp, getRepresentation, hashCode, mapToPlaintext, mapToPlaintext, mapToPlaintext, restorePlainText, restoreSigningKey, restoreVerificationKeyclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitrestoreFromRepresentation, sign, verifypublic PS18ROMSignatureScheme(PSPublicParameters pp)
public PS18ROMSignatureScheme(org.cryptimeleon.math.serialization.Representation repr)
public Signature sign(PlainText plainText, SigningKey secretKey)
SignatureSchemesign in interface SignatureSchemesign in class PS18SignatureSchemeplainText - the message to signsecretKey - the secret signing keyplainText computed using secretKeypublic java.lang.Boolean verify(PlainText plainText, Signature signature, VerificationKey publicKey)
SignatureSchemeverify in interface SignatureSchemeverify in class PS18SignatureSchemeplainText - the plaintext the signature should validate againstsignature - the signature to verifypublicKey - the verification key to verify withpublic Signature restoreSignature(org.cryptimeleon.math.serialization.Representation repr)
restoreSignature in interface SignatureSchemerestoreSignature in class PS18SignatureScheme