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

AbstractKeyStretchingFunction   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 3
c 1
b 0
f 0
dl 0
loc 19
ccs 1
cts 1
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 2 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