anon.client.crypto
Class ASymCipher

java.lang.Object
  extended by anon.client.crypto.ASymCipher

public class ASymCipher
extends java.lang.Object


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

Field Detail

m_Modulus

private java.math.BigInteger m_Modulus

m_Exponent

private java.math.BigInteger m_Exponent

tmpP

private byte[] tmpP
Constructor Detail

ASymCipher

public ASymCipher()
Method Detail

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)