anon.client.crypto
Class ASymMixCipherPlainRSA
java.lang.Object
anon.client.crypto.ASymMixCipherPlainRSA
- All Implemented Interfaces:
- IASymMixCipher
- Direct Known Subclasses:
- ASymMixCipherRSAOAEP
public class ASymMixCipherPlainRSA
- extends java.lang.Object
- implements IASymMixCipher
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_RSA
MyRSA m_RSA
m_PublicKey
private MyRSAPublicKey m_PublicKey
ASymMixCipherPlainRSA
public ASymMixCipherPlainRSA()
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)