|
Bouncy Castle Cryptography Library 1.48 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.crypto.signers.NTRUSigner
public class NTRUSigner
Signs, verifies data and generates key pairs.
Constructor Summary | |
---|---|
NTRUSigner(NTRUSigningParameters params)
Constructs a new instance with a set of signature parameters. |
Method Summary | |
---|---|
protected org.bouncycastle.math.ntru.polynomial.IntegerPolynomial |
createMsgRep(byte[] msgHash,
int r)
|
byte[] |
generateSignature()
Adds data to sign and computes a signature over this data and any data previously added via update(byte[], int, int) . |
void |
init(boolean forSigning,
CipherParameters params)
Resets the engine for signing a message. |
void |
update(byte b)
Adds data to sign or verify. |
void |
update(byte[] m,
int off,
int length)
Adds data to sign or verify. |
boolean |
verifySignature(byte[] sig)
Verifies a signature for any data previously added via update(byte[], int, int) . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NTRUSigner(NTRUSigningParameters params)
params
- signature parametersMethod Detail |
---|
public void init(boolean forSigning, CipherParameters params)
forSigning
- params
- public void update(byte b)
b
- datapublic void update(byte[] m, int off, int length)
m
- dataoff
- offsetlength
- number of bytespublic byte[] generateSignature()
update(byte[], int, int)
.
java.lang.IllegalStateException
- if initSign
was not calledpublic boolean verifySignature(byte[] sig)
update(byte[], int, int)
.
sig
- a signature
java.lang.IllegalStateException
- if initVerify
was not calledprotected org.bouncycastle.math.ntru.polynomial.IntegerPolynomial createMsgRep(byte[] msgHash, int r)
|
Bouncy Castle Cryptography Library 1.48 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |