COM.claymoresystems.provider
Class DSASignature
public class DSASignature
A class to perform DSA signature and verification.
This uses RawDSASignature to perform DSASignature with SHA
hashing
See FIPS PUB 186, ANSI X9.57
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
|
DSASignature
public DSASignature()
engineInitSign
protected void engineInitSign(PrivateKey key)
throws InvalidKeyExceptionSPI: Initializes this object for signing
using the private key
- engineInitSign in interface RawDSASignature
engineInitVerify
protected void engineInitVerify(PublicKey key)
throws InvalidKeyExceptionSPI: Initializes this object for verification
using the given key
- engineInitVerify in interface RawDSASignature
engineSign
protected byte[] engineSign()
throws SignatureExceptionSign the input, following FIPS-186.
The signature is encoded following ANSI X9.57:
DSSSignature ::= SEQUENCE {
r INTEGER,
s INTEGER
}
- engineSign in interface RawDSASignature
engineUpdate
protected void engineUpdate(byte b)
throws SignatureExceptionSPI: Single byte update
- engineUpdate in interface RawDSASignature
engineUpdate
protected void engineUpdate(byte[] b,
int off,
int len)
throws SignatureExceptionSPI: Update with a buffer
- engineUpdate in interface RawDSASignature
engineVerify
protected boolean engineVerify(byte[] signature)
throws SignatureExceptionSPI: Raw Verify
- engineVerify in interface RawDSASignature
Copyright (c) 1999-2001 Claymore Systems, Inc., All Rights Reserved.