org.bouncycastle.crypto.signers
Class ISO9796d2Signer
java.lang.Object
|
+--org.bouncycastle.crypto.signers.ISO9796d2Signer
- public class ISO9796d2Signer
- extends java.lang.Object
ISO9796-2 - mechanism using a hash function.
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 |
TRAILER_IMPLICIT
public static final int TRAILER_IMPLICIT
TRAILER_RIPEMD160
public static final int TRAILER_RIPEMD160
TRAILER_RIPEMD128
public static final int TRAILER_RIPEMD128
TRAILER_SHA1
public static final int TRAILER_SHA1
ISO9796d2Signer
public ISO9796d2Signer(AsymmetricBlockCipher cipher,
Digest digest,
boolean implicit)
ISO9796d2Signer
public ISO9796d2Signer(AsymmetricBlockCipher cipher,
Digest digest)
init
public void init(boolean forSigning,
CipherParameters param)
update
public void update(byte b)
- update the internal digest with the byte b
update
public void update(byte[] in,
int off,
int len)
- update the internal digest with the byte array in
reset
public void reset()
- reset the internal state
generateSignature
public byte[] generateSignature()
throws CryptoException
- generate a signature for the loaded message using the key we were
initialised with.
verifySignature
public boolean verifySignature(byte[] signature)
- return true if the signature represents a ISO9796-2 signature
for the passed in message.