public class RSA_SSCD
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
blockSize |
protected static org.slf4j.Logger |
LOGGER |
protected tr.gov.tubitak.uekae.esya.api.crypto.alg.DigestAlg |
mDigestAlg |
protected java.math.BigInteger |
mModulus |
protected java.security.interfaces.RSAPrivateKey |
mPrivKey |
protected java.security.interfaces.RSAPublicKey |
mPublicKey |
protected tr.gov.tubitak.uekae.esya.api.common.crypto.BaseSigner |
mSigner |
Modifier and Type | Method and Description |
---|---|
byte[] |
generateSignature(byte[] dataToBeSigned,
byte[] dataToBeRecovered)
Ozet=Hash(PRND||dataToBeSigned)
ImzaVerisi=(’6A’||PRND||dataToBeEmbedded||Ozet||’BC’)
Imza=Sign(Private,ImzaVerisi)
ImzaMin=Min(Imza,N.GEM-Imza)
|
byte[] |
getDataRecovered() |
static RSA_SSCD |
getInstance(tr.gov.tubitak.uekae.esya.api.crypto.alg.DigestAlg aDigestAlg) |
static RSA_SSCD |
getInstance(tr.gov.tubitak.uekae.esya.api.crypto.alg.DigestAlg aDigestAlg,
tr.gov.tubitak.uekae.esya.api.common.crypto.IRandom aRand) |
void |
setupForSigning(tr.gov.tubitak.uekae.esya.api.common.crypto.BaseSigner signer,
java.math.BigInteger modulus) |
void |
setupForSigning(java.security.PrivateKey key) |
void |
setupForVerification(java.security.PublicKey key) |
boolean |
verifySignature(byte[] signature,
byte[] aDataThatisIncludedByMe,
int aLenOfDataToBeRecovered)
Ozet=Hash(PRND1||dataEmbedded||aDataThatisIncludedByMe)
ImzaVerisi=(’6A’||PRND1||dataEmbedded||Ozet||’BC’)
Imza=Sign(PrK.TCKK.GM,ImzaVerisi)
|
protected tr.gov.tubitak.uekae.esya.api.common.crypto.BaseSigner mSigner
protected int blockSize
protected java.math.BigInteger mModulus
protected tr.gov.tubitak.uekae.esya.api.crypto.alg.DigestAlg mDigestAlg
protected java.security.interfaces.RSAPublicKey mPublicKey
protected java.security.interfaces.RSAPrivateKey mPrivKey
protected static org.slf4j.Logger LOGGER
public static final RSA_SSCD getInstance(tr.gov.tubitak.uekae.esya.api.crypto.alg.DigestAlg aDigestAlg, tr.gov.tubitak.uekae.esya.api.common.crypto.IRandom aRand)
public static final RSA_SSCD getInstance(tr.gov.tubitak.uekae.esya.api.crypto.alg.DigestAlg aDigestAlg)
public void setupForVerification(java.security.PublicKey key) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public void setupForSigning(java.security.PrivateKey key) throws java.lang.IllegalArgumentException, tr.gov.tubitak.uekae.esya.api.crypto.exceptions.CryptoException
java.lang.IllegalArgumentException
tr.gov.tubitak.uekae.esya.api.crypto.exceptions.CryptoException
public void setupForSigning(tr.gov.tubitak.uekae.esya.api.common.crypto.BaseSigner signer, java.math.BigInteger modulus)
public byte[] generateSignature(byte[] dataToBeSigned, byte[] dataToBeRecovered) throws java.lang.IllegalStateException, tr.gov.tubitak.uekae.esya.api.common.ESYAException
dataToBeSigned
- dataToBeRecovered
- java.lang.IllegalStateException
tr.gov.tubitak.uekae.esya.api.common.ESYAException
public boolean verifySignature(byte[] signature, byte[] aDataThatisIncludedByMe, int aLenOfDataToBeRecovered) throws java.lang.IllegalStateException
signature
- aDataThatisIncludedByMe
- java.lang.IllegalStateException
public byte[] getDataRecovered()
Copyright © 2025. All rights reserved.