fpoirotte\Cryptal\AbstractContextBasedAlgorithm::__toString |
( |
| ) |
|
|
final |
Return the Message Authentication Code associated with the current context, in hexadecimal form.
- Return values
-
string | Message Authentication Code |
Definition at line 63 of file AbstractContextBasedAlgorithm.php.
fpoirotte\Cryptal\AbstractContextBasedAlgorithm::finalize |
( |
|
$raw = false | ) |
|
|
final |
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
-
string | Value resulting from the computation. |
- Note
- Once this method has been called, the context is marked as expired and can no longer be used. Trying to reuse an expired context will result in an error.
Definition at line 45 of file AbstractContextBasedAlgorithm.php.
References fpoirotte\Cryptal\AbstractContextBasedAlgorithm\internalFinalize().
fpoirotte\Cryptal\AbstractContextBasedAlgorithm::internalFinalize |
( |
| ) |
|
|
abstractprotected |
fpoirotte\Cryptal\AbstractContextBasedAlgorithm::internalUpdate |
( |
|
$data | ) |
|
|
abstractprotected |
Update the internal state using the given data.
- Parameters
-
string | $data | Additional data to process. |
- Return values
-
object | Returns this instance. |
fpoirotte\Cryptal\AbstractContextBasedAlgorithm::$finalized = false |
|
private |
The documentation for this class was generated from the following file: