|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.motorola.iden.security.SignatureSpi | +--com.motorola.iden.provider.ECDSA
ECDSA is not supported in Gemini product.
MOTOROLA and the Stylized M Logo are registered trademarks of Motorola, Inc. Reg. U.S. Pat. & Tm. Off.
[CipherSpi]
Constructor Summary | |
ECDSA()
|
Method Summary | |
protected AlgorithmParameterSpec |
engineGetParameter()
ECDSA is not supported in Gemini product. |
protected void |
engineInitSign(PrivateKey Key)
ECDSA is not supported in Gemini product. |
protected void |
engineInitVerify(PublicKey Key)
ECDSA is not supported in Gemini product. |
protected void |
engineSetParameter(AlgorithmParameterSpec params)
ECDSA is not supported in Gemini product. |
protected byte[] |
engineSign()
ECDSA is not supported in Gemini product. |
protected void |
engineUpdate(byte[] b,
int off,
int len)
ECDSA is not supported in Gemini product. |
protected boolean |
engineVerify(byte[] sigBytes)
ECDSA is not supported in Gemini product. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ECDSA()
Method Detail |
protected final void engineSetParameter(AlgorithmParameterSpec params) throws InvalidAlgorithmParameterException
engineSetParameter
in class SignatureSpi
com.motorola.iden.security.SignatureSpi
params
- the parametersjava.lang.SecurityException
- if this method is not
overridden by a providerInvalidAlgorithmParameterException
- if this method is
overridden by a provider and the the given parameters
are inappropriate for this signature engineprotected final AlgorithmParameterSpec engineGetParameter()
engineGetParameter
in class SignatureSpi
com.motorola.iden.security.SignatureSpi
java.lang.SecurityException
- if this method is
not overridden by a providerprotected final void engineInitSign(PrivateKey Key) throws InvalidKeyException
engineInitSign
in class SignatureSpi
com.motorola.iden.security.SignatureSpi
privateKey
- the private key of the identity whose signature
will be generated.
InvalidKeyException
- if the key is improperly
encoded, parameters are missing, and so on.protected final void engineInitVerify(PublicKey Key) throws InvalidKeyException
engineInitVerify
in class SignatureSpi
com.motorola.iden.security.SignatureSpi
publicKey
- the public key of the identity whose signature is
going to be verified.
InvalidKeyException
- if the key is improperly
encoded, parameters are missing, and so on.protected final void engineUpdate(byte[] b, int off, int len) throws SignatureException
engineUpdate
in class SignatureSpi
com.motorola.iden.security.SignatureSpi
b
- the array of bytesoff
- the offset to start from in the array of byteslen
- the number of bytes to use, starting at offset
SignatureException
- if the engine is not initialized
properlyprotected final byte[] engineSign() throws SignatureException
engineSign
in class SignatureSpi
com.motorola.iden.security.SignatureSpi
SignatureException
- if the engine is not
initialized properly.protected final boolean engineVerify(byte[] sigBytes) throws SignatureException
engineVerify
in class SignatureSpi
com.motorola.iden.security.SignatureSpi
sigBytes
- the signature bytes to be verified.input
- message to be verified.
SignatureException
- if the engine is not initialized
properly, or the passed-in signature is improperly encoded or
of the wrong type, etc.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |