GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

AES192Cipher   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A _cipherName() 0 3 1
A _nativeCipherName() 0 3 1
A _keySize() 0 3 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace Sop\GCM\Cipher\AES;
6
7
/**
8
 * Implements AES cipher with 192-bit key size.
9
 */
10
class AES192Cipher extends AESCipher
11
{
12
    /**
13
     * {@inheritdoc}
14
     */
15 7
    protected function _cipherName(): string
16
    {
17 7
        return 'aes-192-ecb';
18
    }
19
20
    /**
21
     * {@inheritdoc}
22
     */
23 6
    protected function _nativeCipherName(): string
24
    {
25 6
        return 'aes-192-gcm';
26
    }
27
28
    /**
29
     * {@inheritdoc}
30
     */
31 14
    protected function _keySize(): int
32
    {
33 14
        return 24;
34
    }
35
}
36