public class DSASignature extends RawDSASignature
| Constructor and Description |
|---|
DSASignature() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
engineInitSign(java.security.PrivateKey key)
SPI: Initializes this object for signing
using the private key
|
protected void |
engineInitVerify(java.security.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
|
engineGetParameter, engineSetParameterclone, getAlgorithm, getInstance, getInstance, getInstance, getParameter, getParameters, getProvider, initSign, initSign, initVerify, initVerify, setParameter, setParameter, sign, sign, toString, update, update, update, update, verify, verifyprotected void engineInitVerify(java.security.PublicKey key)
throws java.security.InvalidKeyException
engineInitVerify in class RawDSASignaturekey - the public keyjava.security.InvalidKeyException - if the key class doesn't
implement DSAPublicKeyprotected void engineInitSign(java.security.PrivateKey key)
throws java.security.InvalidKeyException
engineInitSign in class RawDSASignaturekey - the private keyjava.security.InvalidKeyException - if the key class doesn't
implement than DSAPrivateKeyprotected void engineUpdate(byte b)
throws java.security.SignatureException
engineUpdate in class RawDSASignaturejava.security.SignatureException - in case of errorprotected void engineUpdate(byte[] b,
int off,
int len)
throws java.security.SignatureException
engineUpdate in class RawDSASignatureb - the buffer containing the digestoff - the offset into the bufferlen - the length (must be 20)java.security.SignatureException - in case of errorprotected byte[] engineSign()
throws java.security.SignatureException
engineSign in class RawDSASignaturejava.security.SignatureException - if the engine isn't initialized
properlyprotected boolean engineVerify(byte[] signature)
throws java.security.SignatureException
engineVerify in class RawDSASignaturejava.security.SignatureException - bad inputCopyright (c) 1999-2001 Claymore Systems, Inc., All Rights Reserved.