COM.claymoresystems.provider
public class DSASignature extends RawDSASignature
This uses RawDSASignature to perform DSASignature with SHA hashing
See FIPS PUB 186, ANSI X9.57
Constructor Summary | |
---|---|
DSASignature() |
Method Summary | |
---|---|
protected void | engineInitSign(PrivateKey key) SPI: Initializes this object for signing
using the private key |
protected void | engineInitVerify(PublicKey key) SPI: Initializes this object for verification
using the given key |
protected byte[] | engineSign()
Sign the input, following FIPS-186.
|
protected void | engineUpdate(byte b) SPI: Single byte update |
protected void | engineUpdate(byte[] b, int off, int len) SPI: Update with a buffer |
protected boolean | engineVerify(byte[] signature) SPI: Raw Verify |
Parameters: key the private key
Throws: InvalidKeyException if the key class doesn't implement than DSAPrivateKey
Parameters: key the public key
Throws: InvalidKeyException if the key class doesn't implement DSAPublicKey
Throws: SignatureException if the engine isn't initialized properly
Throws: SignatureException in case of error
Throws: SignatureException in case of error
Throws: SignatureException bad input