public final class SHA256WithPlainECDSASignature extends SignatureSpi
SEQUENCE
as done by [2]. If the hash
length is larger than the domain parameter length the hash is not truncated
like in [2]; rather it is reduced modulo the order of the base point.
Note that instances of this class can only be initialized with keys of size greater than 256 bits.
References:
[1] Bundesamt fuer Sicherheit in der Informationstechnik (BSI), "Technical Guideline TR-03111 - Elliptic Curve Cryptography" , Version 1.11, April 2009.
[2] ANSI X9.62-2005, "American National Standard for Financial Services - The Elliptic Curve Digital Signature Algorithm (ECDSA)" , ASC X9, November 2005.
NONEWithECDSASignature
,
SHA3_224WithECDSASignature
,
SHA3_256WithECDSASignature
,
SHA3_384WithECDSASignature
,
SHA3_512WithECDSASignature
,
SHAWithECDSASignature
,
SHA224WithECDSASignature
,
SHA256WithECDSASignature
,
SHA384WithECDSASignature
,
SHA512WithECDSASignature
,
RipeMD160WithECDSASignature
,
WhirlpoolWithECDSASignature
,
NONEWithPlainECDSASignature
,
SHAWithPlainECDSASignature
,
SHA224WithPlainECDSASignature
,
SHA384WithPlainECDSASignature
,
SHA512WithPlainECDSASignature
,
RipeMD160WithPlainECDSASignature
,
WhirlpoolWithPlainECDSASignature
appRandom
Constructor and Description |
---|
SHA256WithPlainECDSASignature()
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 SHA256WithPlainECDSASignature()
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.