org.metastatic.jessie.pki.provider

Class RSA

Implemented Interfaces:
Cloneable
Known Direct Subclasses:
MD2withRSA, MD4withRSA, MD5withRSA, SHA1withRSA

public abstract class RSA
extends SignatureSpi
implements Cloneable

Field Summary

protected static OID
DIGEST_ALGORITHM
digestAlgorithm OBJECT IDENTIFIER ::= { iso(1) member-body(2) US(840) rsadsi(113549) digestAlgorithm(2) }
protected OID
digestAlgorithm
protected MessageDigest
md
protected RSAPrivateKey
signerKey
protected RSAPublicKey
verifierKey

Constructor Summary

RSA(MessageDigest md, OID digestAlgorithm)

Method Summary

Object
clone()
protected Object
engineGetParameter(String param)
protected void
engineInitSign(PrivateKey privateKey)
protected void
engineInitSign(PrivateKey privateKey, SecureRandom random)
protected void
engineInitVerify(PublicKey publicKey)
protected void
engineSetParameter(String param, Object value)
protected byte[]
engineSign()
protected int
engineSign(byte[] out, int off, int len)
protected void
engineUpdate(byte b)
protected void
engineUpdate(byte[] buf, int off, int len)
protected boolean
engineVerify(byte[] sig)
protected boolean
engineVerify(byte[] sig, int off, int len)

Field Details

DIGEST_ALGORITHM

protected static final OID DIGEST_ALGORITHM
digestAlgorithm OBJECT IDENTIFIER ::= { iso(1) member-body(2) US(840) rsadsi(113549) digestAlgorithm(2) }

digestAlgorithm

protected final OID digestAlgorithm

md

protected final MessageDigest md

signerKey

protected RSAPrivateKey signerKey

verifierKey

protected RSAPublicKey verifierKey

Constructor Details

RSA

protected RSA(MessageDigest md,
              OID digestAlgorithm)

Method Details

clone

public Object clone()
            throws CloneNotSupportedException

engineGetParameter

protected Object engineGetParameter(String param)

engineInitSign

protected void engineInitSign(PrivateKey privateKey)
            throws InvalidKeyException

engineInitSign

protected void engineInitSign(PrivateKey privateKey,
                              SecureRandom random)
            throws InvalidKeyException

engineInitVerify

protected void engineInitVerify(PublicKey publicKey)
            throws InvalidKeyException

engineSetParameter

protected void engineSetParameter(String param,
                                  Object value)

engineSign

protected byte[] engineSign()
            throws SignatureException

engineSign

protected int engineSign(byte[] out,
                         int off,
                         int len)
            throws SignatureException

engineUpdate

protected void engineUpdate(byte b)
            throws SignatureException

engineUpdate

protected void engineUpdate(byte[] buf,
                            int off,
                            int len)
            throws SignatureException

engineVerify

protected boolean engineVerify(byte[] sig)
            throws SignatureException

engineVerify

protected boolean engineVerify(byte[] sig,
                               int off,
                               int len)
            throws SignatureException