public final class NONEWithPlainECDSASignature extends SignatureSpi
Use it like any other signature algorithm, but supply the hashed data
to the Signature.update(byte)
,
Signature.update(byte[])
,
Signature.update(java.nio.ByteBuffer)
, and
Signature.update(byte[], int, int)
methods instead of
the original data to be signed. You can call all of the update methods in any
combination. You have to ensure that the length of the hashed bytes in the
update methods fits the parameters of the curve.
If you are going to sign some yet not hashed data (respectively verify the corresponding signature), you can use the non-raw ECDSA implementations, which automatically hash the supplied data.
Signature
,
NONEWithECDSASignature
,
SHA3_224WithECDSASignature
,
SHA3_256WithECDSASignature
,
SHA3_384WithECDSASignature
,
SHA3_512WithECDSASignature
,
SHAWithECDSASignature
,
SHA224WithECDSASignature
,
SHA256WithECDSASignature
,
SHA384WithECDSASignature
,
SHA512WithECDSASignature
,
RipeMD160WithECDSASignature
,
WhirlpoolWithECDSASignature
,
SHAWithPlainECDSASignature
,
SHA224WithPlainECDSASignature
,
SHA256WithPlainECDSASignature
,
SHA384WithPlainECDSASignature
,
SHA512WithPlainECDSASignature
,
RipeMD160WithPlainECDSASignature
,
WhirlpoolWithPlainECDSASignature
appRandom
Constructor and Description |
---|
NONEWithPlainECDSASignature()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
engineGetParameter(String param)
Deprecated.
|
protected void |
engineInitSign(PrivateKey privateKey) |
protected void |
engineInitSign(PrivateKey privateKey,
SecureRandom random) |
protected void |
engineInitVerify(PublicKey publicKey) |
protected void |
engineSetParameter(AlgorithmParameterSpec params) |
protected void |
engineSetParameter(String param,
Object value)
Deprecated.
|
protected byte[] |
engineSign() |
protected void |
engineUpdate(byte b) |
protected void |
engineUpdate(byte[] b,
int off,
int len) |
protected void |
engineUpdate(ByteBuffer byteBuffer) |
protected boolean |
engineVerify(byte[] sigBytes) |
clone, engineGetParameters, engineSign, engineVerify
public NONEWithPlainECDSASignature()
protected void engineInitVerify(PublicKey publicKey) throws InvalidKeyException
engineInitVerify
in class SignatureSpi
InvalidKeyException
protected void engineInitSign(PrivateKey privateKey) throws InvalidKeyException
engineInitSign
in class SignatureSpi
InvalidKeyException
protected void engineInitSign(PrivateKey privateKey, SecureRandom random) throws InvalidKeyException
engineInitSign
in class SignatureSpi
InvalidKeyException
protected void engineUpdate(byte b) throws SignatureException
engineUpdate
in class SignatureSpi
SignatureException
protected void engineUpdate(byte[] b, int off, int len) throws SignatureException
engineUpdate
in class SignatureSpi
SignatureException
protected void engineUpdate(ByteBuffer byteBuffer)
engineUpdate
in class SignatureSpi
protected byte[] engineSign() throws SignatureException
engineSign
in class SignatureSpi
SignatureException
protected boolean engineVerify(byte[] sigBytes) throws SignatureException
engineVerify
in class SignatureSpi
SignatureException
@Deprecated protected void engineSetParameter(String param, Object value) throws UnsupportedOperationException
engineSetParameter
in class SignatureSpi
UnsupportedOperationException
@Deprecated protected Object engineGetParameter(String param) throws UnsupportedOperationException
engineGetParameter
in class SignatureSpi
UnsupportedOperationException
protected void engineSetParameter(AlgorithmParameterSpec params) throws InvalidAlgorithmParameterException
engineSetParameter
in class SignatureSpi
InvalidAlgorithmParameterException
Copyright © 2011–2022 Stiftung SIC. All rights reserved.