Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Implemented

...

By

Supported Methods

Table of Contents
maxLevel43
minLevel43

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

The parameter should be an roByteArray.  The data in the array is encrypted or decrypted. Returns an roByteArray containing the result.

...

  evp.Reinit()
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.

...