COM.claymoresystems.provider
public class RawDSASignature extends Signature
This is necessary because Sun's provider does not do raw mode.
See FIPS PUB 186, ANSI X9.57
Constructor Summary | |
---|---|
RawDSASignature(String name) | |
RawDSASignature() |
Method Summary | |
---|---|
protected Object | engineGetParameter(String param)
SPI: There aren't any parameters |
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 void | engineSetParameter(String param, Object value)
SPI: There aren't any parameters |
protected byte[] | engineSign()
Sign the input, following FIPS-186.
|
protected void | engineUpdate(byte b) SPI: Single byte updates are forbidden for
Raw DSA. |
protected void | engineUpdate(byte[] b, int off, int len) SPI: Updates the digest. |
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 than DSAPublicKey
Throws: SignatureException if the engine isn't initialized properly
Throws: SignatureException bad input
Parameters: b the buffer containing the digest off the offset into the buffer len the length (must be 20)
Throws: SignatureException either if the algorithm was improperly initialized or you try to call update more than once
Throws: SignatureException bad input