|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This is an interface for the different one-time signature schemes used by CMSS.
| 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 verification OTS 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[]). |
| Method Detail |
public void init(MessageDigest md,
PRNG rng)
md - the hash function for the OTSrng - the name of the PRNG used for key pair generationpublic void generateKeyPair(byte[] seed)
init(MessageDigest, PRNG).seed - the seed for the PRGNpublic void generateSignatureKey(byte[] seed)
init(MessageDigest, PRNG).seed - the seed for the PRGNpublic void generateVerificationKey()
init(MessageDigest, PRNG).public byte[] getVerificationKey()
generateKeyPair(byte[])public int getSignatureLength()
public int getVerificationKeyLength()
public byte[] sign(byte[] mBytes)
generateKeyPair(byte[]).mBytes - the message
public boolean verify(byte[] mBytes,
byte[] sBytes,
byte[] pBytes)
generateKeyPair(byte[]).mBytes - the messagesBytes - the signaturepBytes - the verification key
public byte[] computeVerificationKey(byte[] mBytes,
byte[] sigBytes)
mBytes - the messagesigBytes - the one-time signaturepublic boolean canComputeVerificationKeyFromSignature()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||