process the block of len bytes stored in in from offset inOff.
@param in the input data
@param inOff offset into the in array where the data starts
@param len the length of the block to be processed.
@return the resulting byte array of the encryption/decryption process.
@exception InvalidCipherTextException data decrypts improperly.
@exception DataLengthException the input data is too large for the cipher.
Process one block of input from the array in and write it to the out array.
@param in the array containing the input data.
@param inOff offset into the in array the data starts at.
@param out the array the output data will be copied into.
@param outOff the offset into the out array the output will start at.
@exception DataLengthException if there isn't enough data in in, orspace in out.
@exception IllegalStateException if the cipher isn't initialised.
@return the number of bytes processed and produced.
Process a single block using the basic ElGamal algorithm.
@param in the input array.
@param inOff the offset into the input buffer where the data starts.
@param inLen the length of the data to be processed.
@return the result of the ElGamal process.
@exception DataLengthException the input block is too large.
Process a single block using the basic RSA algorithm.
@param in the input array.
@param inOff the offset into the input buffer where the data starts.
@param inLen the length of the data to be processed.
@return the result of the RSA process.
@exception DataLengthException the input block is too large.
Process one block of input from the array in and write it to the out array.
@param in the array containing the input data.
@param inOff offset into the in array the data starts at.
@param out the array the output data will be copied into.
@param outOff the offset into the out array the output will start at.
@exception DataLengthException if there isn't enough data in in, orspace in out.
@exception IllegalStateException if the cipher isn't initialised.
@return the number of bytes processed and produced.
Process one block of input from the array in and write it to the out array.
@param in the array containing the input data.
@param inOff offset into the in array the data starts at.
@param out the array the output data will be copied into.
@param outOff the offset into the out array the output will start at.
@exception DataLengthException if there isn't enough data in in, orspace in out.
@exception IllegalStateException if the cipher isn't initialised.
@return the number of bytes processed and produced.
Process one block of input from the array in and write it to the out array.
@param in the array containing the input data.
@param inOff offset into the in array the data starts at.
@param out the array the output data will be copied into.
@param outOff the offset into the out array the output will start at.
@exception DataLengthException if there isn't enough data in in, orspace in out.
@exception IllegalStateException if the cipher isn't initialised.
@return the number of bytes processed and produced.
Process one block of input from the array in and write it to the out array.
@param in the array containing the input data.
@param inOff offset into the in array the data starts at.
@param out the array the output data will be copied into.
@param outOff the offset into the out array the output will start at.
@exception DataLengthException if there isn't enough data in in, orspace in out.
@exception IllegalStateException if the cipher isn't initialised.
@return the number of bytes processed and produced.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.