\CryptoManana\Core\Traits\MessageDigestionAlgorithmicCostTrait

Trait AlgorithmicCostTrait - Reusable implementation of `AlgorithmicCostInterface`.

Summary

Methods
Properties
Constants
setAlgorithmicCost()
getAlgorithmicCost()
$$computationalCost
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$$computationalCost

$$computationalCost : integer

The digestion internal computational cost property storage.

Type

integer

Methods

setAlgorithmicCost()

setAlgorithmicCost(integer  $cost) : $this

Setter for the computational cost property.

Parameters

integer $cost

The algorithmic cost.

Throws

\Exception

Validation errors.

Returns

$this —

The hash algorithm object.

getAlgorithmicCost()

getAlgorithmicCost() : integer

Getter for the computational cost property.

Returns

integer —

The algorithmic cost.