|
JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jxta.security.impl.publickey.RSA
Fields inherited from interface jxta.security.publickey.PublicKeyAlgorithm |
name |
Constructor Summary | |
RSA(RSAKey rKey)
Note: KeyBuilder must be called prior to instantiating this class to set the appropriate size. |
Method Summary | |
byte[] |
Algorithm(byte[] data,
int offset,
int length,
byte type,
boolean encrypt)
Encrypt/decrypt byte array. |
void |
clearDebug()
turn off debugging |
java.lang.String |
getAlgorithmName()
// Algorithm name |
int |
getEncryptionBlockLength()
length 0f Datablock + padding (Modulus in bytes) |
int |
getMaxInputDataBlockLength()
max input data block length |
java.lang.Object |
getPrivatekey()
get the RSA private key data |
java.lang.Object |
getPublickey()
get the RSA public key data |
void |
reset()
|
void |
setDebug()
turn on debugging |
void |
setPrivateKey()
Compute the private key from the public key Here, we compute d = 1/e mod((p-1)(q-1)), and store the remainder of the CRT parameters |
void |
setPrivateKey(java.lang.Object privatekeyData)
Set private key from saved values |
void |
setPublicKey()
Compute the public key given the key size in bits Here, we compute p, q, and n = pq. |
void |
setPublicKey(byte[] nModulus)
Set the public key from a saved value for public key |
void |
setPublicKey(java.lang.Object publickeyData)
Set the public key from a saved value for public key |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public RSA(RSAKey rKey) throws jxta.security.exceptions.CryptoException
Method Detail |
public void setDebug()
public void clearDebug()
public void reset()
public java.lang.String getAlgorithmName()
public int getMaxInputDataBlockLength()
public int getEncryptionBlockLength()
public byte[] Algorithm(byte[] data, int offset, int length, byte type, boolean encrypt) throws jxta.security.exceptions.CryptoException
public void setPrivateKey() throws jxta.security.exceptions.CryptoException
public void setPrivateKey(java.lang.Object privatekeyData) throws jxta.security.exceptions.CryptoException
public void setPublicKey() throws jxta.security.exceptions.CryptoException
public void setPublicKey(byte[] nModulus) throws jxta.security.exceptions.CryptoException
public void setPublicKey(java.lang.Object publickeyData) throws jxta.security.exceptions.CryptoException
public java.lang.Object getPublickey() throws jxta.security.exceptions.CryptoException
public java.lang.Object getPrivatekey() throws jxta.security.exceptions.CryptoException
|
JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |