| java.lang.Object com.sun.portal.kssl.Cipher com.sun.portal.kssl.Alg2
Alg2 | final class Alg2 extends Cipher (Code) | | This class implements RSA encryption/decryption
|
Method Summary | |
public void | Alg2() Constructor for algorithm 2. | public int | doFinal(byte[] inBuf, int inOff, int inLen, byte[] outBuf, int outOff) Process the final data record. | public byte | getAlgorithm() Get the alorithm (ALG_RSA_PKCS1). | public void | init(Key theKey, byte theMode, byte[] b, int off, int len) Initialize the alorithm with initial data. | public void | init(Key theKey, byte theMode) Initialize the alorithm. | public int | update(byte[] inBuf, int inOff, int inLen, byte[] outBuf, int outOff) Update the current data record. |
Alg2 | public void Alg2()(Code) | | Constructor for algorithm 2.
|
doFinal | public int doFinal(byte[] inBuf, int inOff, int inLen, byte[] outBuf, int outOff) throws CryptoException(Code) | | Process the final data record.
Parameters: inBuf - input buffer of data Parameters: inOff - offset in the provided input buffer Parameters: inLen - length of data to be processed Parameters: outBuf - output buffer of data Parameters: outOff - offset in the provided output buffer number of bytes copied to output buffer exception: CryptoException - is thrown, if there are errors in the arguments |
getAlgorithm | public byte getAlgorithm()(Code) | | Get the alorithm (ALG_RSA_PKCS1).
algorithm 2 code |
init | public void init(Key theKey, byte theMode, byte[] b, int off, int len) throws CryptoException(Code) | | Initialize the alorithm with initial data. (Not supported)
Parameters: theKey - public key Parameters: theMode - mode of operation Parameters: b - buffer of data Parameters: off - offset in the provided buffer Parameters: len - length of data to be processed exception: CryptoException - is thrown, because the method is not supported. |
init | public void init(Key theKey, byte theMode) throws CryptoException(Code) | | Initialize the alorithm.
Parameters: theKey - public key Parameters: theMode - mode of operation exception: CryptoException - is thrown, if there is an error in the arguments. |
update | public int update(byte[] inBuf, int inOff, int inLen, byte[] outBuf, int outOff) throws CryptoException(Code) | | Update the current data record.
Parameters: inBuf - input buffer of data Parameters: inOff - offset in the provided input buffer Parameters: inLen - length of data to be processed Parameters: outBuf - output buffer of data Parameters: outOff - offset in the provided output buffer number of bytes copied to output buffer exception: CryptoException - is thrown, if there are errors in the arguments |
Methods inherited from com.sun.portal.kssl.Cipher | abstract public int doFinal(byte[] inBuf, int inOff, int inLen, byte[] outBuf, int outOff) throws CryptoException(Code)(Java Doc) abstract public byte getAlgorithm()(Code)(Java Doc) public static Cipher getInstance(byte alg, boolean ext) throws CryptoException(Code)(Java Doc) abstract public void init(Key theKey, byte theMode) throws CryptoException(Code)(Java Doc) abstract public void init(Key theKey, byte theMode, byte[] b, int off, int len) throws CryptoException(Code)(Java Doc) abstract public int update(byte[] inBuf, int inOff, int inLen, byte[] outBuf, int outOff) throws CryptoException(Code)(Java Doc)
|
|
|