public abstract class LunaSignatureRSAWithDigest extends LunaSignatureRSA
Modifier and Type | Field and Description |
---|---|
protected String |
digestAlg |
protected MessageDigest |
mDigest |
encodedSignature, keyFactory, lunaAPI, mAlgParams, mByteArray, mKey, mMechType, plainSignature
appRandom
Modifier | Constructor and Description |
---|---|
protected |
LunaSignatureRSAWithDigest(long sigMechType,
String digMechType) |
|
LunaSignatureRSAWithDigest(String digMechType) |
Modifier and Type | Method and Description |
---|---|
protected void |
engineInitSign(PrivateKey key) |
protected void |
engineInitVerify(PublicKey key) |
protected int |
engineSign(byte[] outbuf,
int offset,
int len) |
protected void |
engineUpdate(byte[] b,
int off,
int len) |
protected boolean |
engineVerify(byte[] sigBytes,
int offset,
int length) |
protected byte[] |
getEncodedDigest(byte[] digest) |
DecodeSignature, EncodeSignature, resetBuffers
engineGetParameter, engineGetParameters, engineInitSign, engineSetParameter, engineSign, engineUpdate, engineVerify, getParameterBytes
clone, engineSetParameter, engineUpdate
protected final MessageDigest mDigest
protected final String digestAlg
public LunaSignatureRSAWithDigest(String digMechType)
protected LunaSignatureRSAWithDigest(long sigMechType, String digMechType)
protected void engineInitVerify(PublicKey key) throws InvalidKeyException, ProviderException
engineInitVerify
in class LunaSignature
InvalidKeyException
ProviderException
protected void engineInitSign(PrivateKey key) throws InvalidKeyException, ProviderException
engineInitSign
in class LunaSignature
InvalidKeyException
ProviderException
protected void engineUpdate(byte[] b, int off, int len) throws SignatureException
engineUpdate
in class LunaSignature
SignatureException
protected int engineSign(byte[] outbuf, int offset, int len) throws SignatureException, ProviderException
engineSign
in class LunaSignature
SignatureException
ProviderException
protected boolean engineVerify(byte[] sigBytes, int offset, int length) throws SignatureException, ProviderException
engineVerify
in class LunaSignature
SignatureException
ProviderException
protected byte[] getEncodedDigest(byte[] digest)
Copyright 2014-2016 SafeNet Inc