|
Bouncy Castle Cryptography 1.22 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.bouncycastle.crypto.signers.ISO9796d2Signer
ISO9796-2 - mechanism using a hash function.
Field Summary | |
static int |
TRAILER_IMPLICIT
|
static int |
TRAILER_RIPEMD128
|
static int |
TRAILER_RIPEMD160
|
static int |
TRAILER_SHA1
|
Constructor Summary | |
ISO9796d2Signer(AsymmetricBlockCipher cipher,
Digest digest)
|
|
ISO9796d2Signer(AsymmetricBlockCipher cipher,
Digest digest,
boolean implicit)
|
Method Summary | |
byte[] |
generateSignature()
generate a signature for the loaded message using the key we were initialised with. |
void |
init(boolean forSigning,
CipherParameters param)
|
void |
reset()
reset the internal state |
void |
update(byte b)
update the internal digest with the byte b |
void |
update(byte[] in,
int off,
int len)
update the internal digest with the byte array in |
boolean |
verifySignature(byte[] signature)
return true if the signature represents a ISO9796-2 signature for the passed in message. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int TRAILER_IMPLICIT
public static final int TRAILER_RIPEMD160
public static final int TRAILER_RIPEMD128
public static final int TRAILER_SHA1
Constructor Detail |
public ISO9796d2Signer(AsymmetricBlockCipher cipher, Digest digest, boolean implicit)
public ISO9796d2Signer(AsymmetricBlockCipher cipher, Digest digest)
Method Detail |
public void init(boolean forSigning, CipherParameters param)
public void update(byte b)
public void update(byte[] in, int off, int len)
public void reset()
public byte[] generateSignature() throws CryptoException
CryptoException
public boolean verifySignature(byte[] signature)
|
Bouncy Castle Cryptography 1.22 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |