anon.client.crypto
Class ASymCipher
java.lang.Object
anon.client.crypto.ASymCipher
public class ASymCipher
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_Modulus
private java.math.BigInteger m_Modulus
m_Exponent
private java.math.BigInteger m_Exponent
tmpP
private byte[] tmpP
ASymCipher
public ASymCipher()
encrypt
public int encrypt(byte[] from,
int ifrom,
byte[] to,
int ito)
setPublicKey
public int setPublicKey(java.math.BigInteger modulus,
java.math.BigInteger exponent)
setPublicKey
public int setPublicKey(org.w3c.dom.Element xmlKey)
getPublicKey
public MyRSAPublicKey getPublicKey()
getBigIntegerFromXml
private java.math.BigInteger getBigIntegerFromXml(org.w3c.dom.Element root,
java.lang.String name)