gnu.crypto.pki.provider
Class RSA
java.lang.Object
java.security.SignatureSpi
gnu.crypto.pki.provider.RSA
- All Implemented Interfaces:
- Cloneable
- Direct Known Subclasses:
- MD2withRSA, MD4withRSA, MD5withRSA, SHA1withRSA
- public abstract class RSA
- extends SignatureSpi
- implements Cloneable
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
RSA
protected RSA(MessageDigest md,
OID digestAlgorithm)
clone
public Object clone()
throws CloneNotSupportedException
- Throws:
CloneNotSupportedException
engineGetParameter
protected Object engineGetParameter(String param)
engineSetParameter
protected void engineSetParameter(String param,
Object value)
engineInitSign
protected void engineInitSign(PrivateKey privateKey)
throws InvalidKeyException
- Throws:
InvalidKeyException
engineInitSign
protected void engineInitSign(PrivateKey privateKey,
SecureRandom random)
throws InvalidKeyException
- Throws:
InvalidKeyException
engineInitVerify
protected void engineInitVerify(PublicKey publicKey)
throws InvalidKeyException
- Throws:
InvalidKeyException
engineUpdate
protected void engineUpdate(byte b)
throws SignatureException
- Throws:
SignatureException
engineUpdate
protected void engineUpdate(byte[] buf,
int off,
int len)
throws SignatureException
- Throws:
SignatureException
engineSign
protected byte[] engineSign()
throws SignatureException
- Throws:
SignatureException
engineSign
protected int engineSign(byte[] out,
int off,
int len)
throws SignatureException
- Throws:
SignatureException
engineVerify
protected boolean engineVerify(byte[] sig)
throws SignatureException
- Throws:
SignatureException
engineVerify
protected boolean engineVerify(byte[] sig,
int off,
int len)
throws SignatureException
- Throws:
SignatureException
Copyright © 2001, 2002, 2003
Free Software Foundation,
Inc. All Rights Reserved.