anon.client.crypto
Class ASymMixCipherPlainRSA

java.lang.Object
  extended by anon.client.crypto.ASymMixCipherPlainRSA
All Implemented Interfaces:
IASymMixCipher
Direct Known Subclasses:
ASymMixCipherRSAOAEP

public class ASymMixCipherPlainRSA
extends java.lang.Object
implements IASymMixCipher


Field Summary
private  MyRSAPublicKey m_PublicKey
           
(package private)  MyRSA m_RSA
           
 
Constructor Summary
ASymMixCipherPlainRSA()
           
 
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)
           
 int getInputBlockSize()
           
 int getOutputBlockSize()
           
 int getPaddingSize()
           
 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_RSA

MyRSA m_RSA

m_PublicKey

private MyRSAPublicKey m_PublicKey
Constructor Detail

ASymMixCipherPlainRSA

public ASymMixCipherPlainRSA()
Method Detail

encrypt

public int encrypt(byte[] from,
                   int ifrom,
                   byte[] to,
                   int ito)
Specified by:
encrypt in interface IASymMixCipher

getOutputBlockSize

public int getOutputBlockSize()
Specified by:
getOutputBlockSize in interface IASymMixCipher

getInputBlockSize

public int getInputBlockSize()
Specified by:
getInputBlockSize in interface IASymMixCipher

getPaddingSize

public int getPaddingSize()
Specified by:
getPaddingSize in interface IASymMixCipher

setPublicKey

public int setPublicKey(java.math.BigInteger modulus,
                        java.math.BigInteger exponent)
Specified by:
setPublicKey in interface IASymMixCipher

setPublicKey

public int setPublicKey(org.w3c.dom.Element xmlKey)
Specified by:
setPublicKey in interface IASymMixCipher

getPublicKey

public MyRSAPublicKey getPublicKey()
Specified by:
getPublicKey in interface IASymMixCipher

getBigIntegerFromXml

private java.math.BigInteger getBigIntegerFromXml(org.w3c.dom.Element root,
                                                  java.lang.String name)