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, plainSignatureappRandom| 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, resetBuffersengineGetParameter, engineGetParameters, engineInitSign, engineSetParameter, engineSign, engineUpdate, engineVerify, getParameterBytesclone, engineSetParameter, engineUpdateprotected 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 LunaSignatureInvalidKeyExceptionProviderExceptionprotected void engineInitSign(PrivateKey key) throws InvalidKeyException, ProviderException
engineInitSign in class LunaSignatureInvalidKeyExceptionProviderExceptionprotected void engineUpdate(byte[] b,
int off,
int len)
throws SignatureException
engineUpdate in class LunaSignatureSignatureExceptionprotected int engineSign(byte[] outbuf,
int offset,
int len)
throws SignatureException,
ProviderException
engineSign in class LunaSignatureSignatureExceptionProviderExceptionprotected boolean engineVerify(byte[] sigBytes,
int offset,
int length)
throws SignatureException,
ProviderException
engineVerify in class LunaSignatureSignatureExceptionProviderExceptionprotected byte[] getEncodedDigest(byte[] digest)
Copyright 2014-2016 SafeNet Inc