\CryptoManana\Core\Traits\MessageDigestionComplexAlgorithmicCostTrait

Trait ComplexAlgorithmicCostTrait - Reusable implementation of `ComplexAlgorithmicCostInterface`.

Summary

Methods
Properties
Constants
setMemoryCost()
getMemoryCost()
setTimeCost()
getTimeCost()
setThreadsCost()
getThreadsCost()
$$memoryCost
$$timeCost
$$threadsCost
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$$memoryCost

$$memoryCost : integer

The digestion internal computational memory cost property storage.

Type

integer

$$timeCost

$$timeCost : integer

The digestion internal computational time cost property storage.

Type

integer

$$threadsCost

$$threadsCost : integer

The digestion internal computational thread cost property storage.

Type

integer

Methods

setMemoryCost()

setMemoryCost(integer  $cost) : $this

Setter for the memory cost property.

Parameters

integer $cost

The algorithmic memory cost.

Throws

\Exception

Validation errors.

Returns

$this —

The hash algorithm object.

getMemoryCost()

getMemoryCost() : integer

Getter for the memory cost property.

Returns

integer —

The algorithmic memory cost.

setTimeCost()

setTimeCost(integer  $cost) : $this

Setter for the time cost property.

Parameters

integer $cost

The algorithmic time cost.

Throws

\Exception

Validation errors.

Returns

$this —

The hash algorithm object.

getTimeCost()

getTimeCost() : integer

Getter for the time cost property.

Returns

integer —

The algorithmic time cost.

setThreadsCost()

setThreadsCost(integer  $cost) : $this

Setter for the threads cost property.

Parameters

integer $cost

The algorithmic threads cost.

Throws

\Exception

Validation errors.

Returns

$this —

The hash algorithm object.

getThreadsCost()

getThreadsCost() : integer

Getter for the threads cost property.

Returns

integer —

The algorithmic threads cost.