stymiee/php-simple-encryption

View on GitHub
src/Encryption/Cipher/ACipherAeadMode.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

namespace Encryption\Cipher;

use Encryption\Interfaces\ICipher;
use Encryption\Interfaces\IEncryptAeadMode;
use Encryption\Traits\GenerateIv;

/**
 * Class ACipherAeadMode
 * @package Encryption\Cipher
 */
abstract class ACipherAeadMode extends ACipher implements ICipher, IEncryptAeadMode
{
    use GenerateIv;

    abstract public function encrypt(string $plainText, string $key, string $iv, string &$tag): string;

    abstract public function decrypt(string $encryptedText, string $key, string $iv, string $tag): string;
}