|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--de.flexiprovider.pqc.hbc.ots.WinternitzPRFOTS
| Constructor Summary | |
WinternitzPRFOTS(int w)
Constructor. |
|
WinternitzPRFOTS(int w,
int bitSecurity)
Constructor. |
|
| Method Summary | |
boolean |
canComputeVerificationKeyFromSignature()
The verification key of come one-time signature schemes can be computes from the signature. |
byte[] |
computeVerificationKey(byte[] mBytes,
byte[] sigBytes)
Compute the OTS verification key from the one-time signature of a message. |
void |
generateKeyPair(byte[] seed)
Generate an OTS key pair using the given seed and the message digest and PRNG specified via init(MessageDigest, PRNG). |
void |
generateSignatureKey(byte[] seed)
Generate an OTS signature key the given seed and the message digest and PRNG specified via init(MessageDigest, PRNG). |
void |
generateVerificationKey()
Generate an OTS verification key from the previously generated signature key given the message digest specified via init(MessageDigest, PRNG). |
int |
getSignatureLength()
|
byte[] |
getVerificationKey()
|
int |
getVerificationKeyLength()
|
void |
init(MessageDigest md,
PRNG rng)
Initialize the OTS. |
byte[] |
sign(byte[] mBytes)
Generate a one-time signature of the given message using the private key generated via generateKeyPair(byte[]). |
boolean |
verify(byte[] mBytes,
byte[] sBytes,
byte[] pBytes)
Verify a one-time signature of the given message using the verification key generated via generateKeyPair(byte[]). |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public WinternitzPRFOTS(int w)
w - the Winternitz parameter
public WinternitzPRFOTS(int w,
int bitSecurity)
w - the Winternitz parameterbitSecurity - the desired bit security| Method Detail |
public boolean canComputeVerificationKeyFromSignature()
OTScanComputeVerificationKeyFromSignature in interface OTSde.flexiprovider.pqc.hbc.ots.OTS
public byte[] computeVerificationKey(byte[] mBytes,
byte[] sigBytes)
computeVerificationKey in interface OTSmBytes - the messagesigBytes - the one-time signaturepublic void generateKeyPair(byte[] seed)
init(MessageDigest, PRNG).generateKeyPair in interface OTSseed - the seed for the PRGNpublic void generateSignatureKey(byte[] seed)
init(MessageDigest, PRNG).generateSignatureKey in interface OTSseed - the seed for the PRNGpublic void generateVerificationKey()
init(MessageDigest, PRNG).generateVerificationKey in interface OTSpublic int getSignatureLength()
getSignatureLength in interface OTSpublic byte[] getVerificationKey()
getVerificationKey in interface OTSgenerateKeyPair(byte[])public int getVerificationKeyLength()
getVerificationKeyLength in interface OTSde.flexiprovider.pqc.hbc.ots.OTS
public void init(MessageDigest md,
PRNG rng)
init in interface OTSmd - the hash function for the OTSrng - the RNG used for key pair generationpublic byte[] sign(byte[] mBytes)
generateKeyPair(byte[]).sign in interface OTSmBytes - the message
public boolean verify(byte[] mBytes,
byte[] sBytes,
byte[] pBytes)
generateKeyPair(byte[]).verify in interface OTSmBytes - the messagesBytes - the signaturepBytes - the verification key
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||