|Table of Contents|
Description of Methods
Setup(encrypt as Boolean, format as String, key as String, iv as String, padding as Integer) as Integer
Setup and initialize a new cipher context. The Setup function takes the following parameters:
Returns 0 on success or non-zero on failure.
Reinit() as Integer
Reinitialize an existing cipher context. This can be called to reuse an existing roEVPCipher object to encrypt new data. Returns 0 on success or non-zero on failure.
Process(bytes as Object) as Object
x = evp.Update(bytes)
x = x + evp.Final()
Update(bytes as Object) as Object
The parameter should be an roByteArray. The data in the array is encrypted or decrypted. Returns an roByteArray containing a subset of the result. Some or all of the result may not be returned until the next call to Update().
Final() as Object
Signals that all data has been submitted by previous calls to Update(). Returns the last remaining encrypted or decrypted bytes.