cryptal  latest
Cryptography Abstraction Layer
fpoirotte\Cryptal\ContextBasedInterface Interface Reference
+ Inheritance diagram for fpoirotte\Cryptal\ContextBasedInterface:

Public Member Functions

 __toString ()
 
 finalize ($raw=false)
 
 update ($data)
 

Detailed Description

Definition at line 5 of file ContextBasedInterface.php.

Member Function Documentation

fpoirotte\Cryptal\ContextBasedInterface::__toString ( )

Finalize the computation using the current context and return the value resulting from the computation, in hexadecimal form.

Return values
stringValue resulting from the computation.
fpoirotte\Cryptal\ContextBasedInterface::finalize (   $raw = false)

Finalize the computation and return the resulting value.

Parameters
bool$raw(optional) Whether the result should be returned in its raw form (true) or using its hexadecimal representation (false). Defaults to false.
Return values
stringValue resulting from the computation.
fpoirotte\Cryptal\ContextBasedInterface::update (   $data)

Update the internal state using the given data.

Parameters
string$dataAdditional data to process.
Return values
objectReturns this instance.

The documentation for this interface was generated from the following file: