Completed
Push — master ( 9083d4...b91f33 )
by Tony Karavasilev (Тони
11:46
created

AbstractKeyStretchingFunction::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 0
c 1
b 0
f 0
dl 0
loc 2
ccs 1
cts 1
cp 1
rs 10
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
/**
4
 * Abstraction for key stretching and key derivation objects.
5
 */
6
7
namespace CryptoManana\Core\Abstractions\MessageDigestion;
8
9
use \CryptoManana\Core\Abstractions\MessageDigestion\AbstractHashAlgorithm as HashAlgorithm;
10
11
/**
12
 * Class AbstractKeyStretchingFunction - Abstraction for key stretching classes.
13
 *
14
 * @package CryptoManana\Core\Abstractions\MessageDigestion
15
 */
16
abstract class AbstractKeyStretchingFunction extends HashAlgorithm
17
{
18
    /**
19
     * The internal name of the algorithm.
20
     */
21
    const ALGORITHM_NAME = 'none';
22
23
    /**
24
     * Flag to force native code polyfill realizations, if available.
25
     *
26
     * @var bool Flag to force native realizations.
27
     */
28
    protected $useNative = false;
29
30
    /**
31
     * Key stretching algorithm constructor.
32
     */
33 352
    public function __construct()
34
    {
35 352
    }
36
}
37