ACipherAeadMode
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 0
lcom 0
cbo 2
dl 0
loc 8
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
encrypt() 0 1 ?
decrypt() 0 1 ?
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Encryption\Cipher;
6
7
8
use Encryption\Interfaces\ICipher;
9
use Encryption\Interfaces\IEncryptAeadMode;
10
use Encryption\Traits\generateIv;
11
12
abstract class ACipherAeadMode extends ACipher implements ICipher, IEncryptAeadMode
0 ignored issues
show
Coding Style introduced by
ACipherAeadMode does not seem to conform to the naming convention (^Abstract|Factory$).

This check examines a number of code elements and verifies that they conform to the given naming conventions.

You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.

Loading history...
13
{
14
    use generateIv;
15
16
    abstract public function encrypt(string $plainText, string $key, string $iv, string &$tag): string;
17
18
    abstract public function decrypt(string $encryptedText, string $key, string $iv, string $tag): string;
19
}
20
21