AESKW192   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
eloc 3
dl 0
loc 16
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A _cipherMethod() 0 3 1
A _keySize() 0 3 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace Sop\AESKW;
6
7
/**
8
 * Implements AES key wrap with 192 bit key size.
9
 */
10
class AESKW192 extends Algorithm
11
{
12
    /**
13
     * {@inheritdoc}
14
     */
15 4
    protected function _cipherMethod(): string
16
    {
17 4
        return 'aes-192-ecb';
18
    }
19
20
    /**
21
     * {@inheritdoc}
22
     */
23 4
    protected function _keySize(): int
24
    {
25 4
        return 24;
26
    }
27
}
28