|
|||||||||
Home >> All >> cryptix >> jce >> provider >> [ dsa overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |
cryptix.jce.provider.dsa
Class RawDSASignature

java.lang.Objectjava.security.SignatureSpi
cryptix.jce.provider.dsa.RawDSASignature
- public final class RawDSASignature
- extends java.security.SignatureSpi
Field Summary | |
private byte[] |
buf
|
private int |
bufPtr
|
private java.math.BigInteger |
g
|
private java.math.BigInteger |
p
|
private java.math.BigInteger |
q
|
private java.security.SecureRandom |
random
|
private java.math.BigInteger |
x
|
private java.math.BigInteger |
y
|
private java.math.BigInteger |
ZERO
Puke, we need this because JDK 1.1.x doesn't have BigInteger.ZERO :-( |
Fields inherited from class java.security.SignatureSpi |
appRandom |
Constructor Summary | |
RawDSASignature()
|
Method Summary | |
private void |
burn()
Try and zero all potentially sensitive data. |
protected java.lang.Object |
engineGetParameter(java.lang.String param)
deprecated |
protected void |
engineInitSign(java.security.PrivateKey key)
Initializes this instance with the private key for signing purposes. |
protected void |
engineInitSign(java.security.PrivateKey key,
java.security.SecureRandom random)
Initializes this instance with the private key and source of randomness for signing purposes. |
protected void |
engineInitVerify(java.security.PublicKey key)
Initializes this instance with the public key for verification purposes. |
protected void |
engineSetParameter(java.security.spec.AlgorithmParameterSpec params)
Sets the signature engine with the specified java.security.spec.AlgorithmParameterSpec. |
protected void |
engineSetParameter(java.lang.String param,
java.lang.Object value)
deprecated |
protected byte[] |
engineSign()
Returns a signature over the accumulated data. |
protected void |
engineUpdate(byte b)
Updates the data to be signed or verified with the specified byte. |
protected void |
engineUpdate(byte[] in,
int offset,
int length)
Updates the data to be signed or verified with the specified bytes. |
protected boolean |
engineVerify(byte[] signature)
Verifies a designated signature. |
private boolean |
validate()
Check our invariants. |
Methods inherited from class java.security.SignatureSpi |
clone, engineGetParameters, engineSign, engineVerify |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
ZERO
private java.math.BigInteger ZERO
- Puke, we need this because JDK 1.1.x doesn't have BigInteger.ZERO :-(
x
private java.math.BigInteger x
y
private java.math.BigInteger y
g
private java.math.BigInteger g
p
private java.math.BigInteger p
q
private java.math.BigInteger q
buf
private final byte[] buf
bufPtr
private int bufPtr
random
private java.security.SecureRandom random
Constructor Detail |
RawDSASignature
public RawDSASignature()
Method Detail |
engineInitVerify
protected void engineInitVerify(java.security.PublicKey key) throws java.security.InvalidKeyException
- Description copied from class:
java.security.SignatureSpi
- Initializes this instance with the public key for verification purposes.
engineInitSign
protected void engineInitSign(java.security.PrivateKey key) throws java.security.InvalidKeyException
- Description copied from class:
java.security.SignatureSpi
- Initializes this instance with the private key for signing purposes.
engineInitSign
protected void engineInitSign(java.security.PrivateKey key, java.security.SecureRandom random) throws java.security.InvalidKeyException
- Description copied from class:
java.security.SignatureSpi
- Initializes this instance with the private key and source of randomness for
signing purposes.
This method cannot be abstract for backward compatibility reasons.
engineUpdate
protected void engineUpdate(byte b) throws java.security.SignatureException
- Description copied from class:
java.security.SignatureSpi
- Updates the data to be signed or verified with the specified byte.
engineUpdate
protected void engineUpdate(byte[] in, int offset, int length) throws java.security.SignatureException
- Description copied from class:
java.security.SignatureSpi
- Updates the data to be signed or verified with the specified bytes.
engineSign
protected byte[] engineSign() throws java.security.SignatureException
- Returns a signature over the accumulated data.
engineVerify
protected boolean engineVerify(byte[] signature) throws java.security.SignatureException
- Description copied from class:
java.security.SignatureSpi
- Verifies a designated signature.
engineSetParameter
protected void engineSetParameter(java.lang.String param, java.lang.Object value) throws java.security.InvalidParameterException
- deprecated
engineSetParameter
protected void engineSetParameter(java.security.spec.AlgorithmParameterSpec params) throws java.security.InvalidAlgorithmParameterException
- Description copied from class:
java.security.SignatureSpi
- Sets the signature engine with the specified java.security.spec.AlgorithmParameterSpec.
This method cannot be abstract for backward compatibility reasons. By default it always throws java.lang.UnsupportedOperationException unless overridden.
engineGetParameter
protected java.lang.Object engineGetParameter(java.lang.String param) throws java.security.InvalidParameterException
- deprecated
burn
private void burn()
- Try and zero all potentially sensitive data. This is not secure because
we cannot control memory allocation, garbage collection and swapping.
It's the best we can do though, apart from changing the JVM.
validate
private boolean validate()
- Check our invariants.
|
|||||||||
Home >> All >> cryptix >> jce >> provider >> [ dsa overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |