| 1 |
<?php |
| 2 |
|
| 3 |
namespace Dudlewebs\WPMCS\s3\Aws\Crypto; |
| 4 |
|
| 5 |
use Dudlewebs\WPMCS\s3\Psr\Http\Message\StreamInterface; |
| 6 |
interface AesStreamInterfaceV2 extends StreamInterface |
| 7 |
{ |
| 8 |
/** |
| 9 |
* Returns an AES recognizable name, such as 'AES/GCM/NoPadding'. V2 |
| 10 |
* interface is accessible from a static context. |
| 11 |
* |
| 12 |
* @return string |
| 13 |
*/ |
| 14 |
public static function getStaticAesName(); |
| 15 |
/** |
| 16 |
* Returns an identifier recognizable by `openssl_*` functions, such as |
| 17 |
* `aes-256-cbc` or `aes-128-ctr`. |
| 18 |
* |
| 19 |
* @return string |
| 20 |
*/ |
| 21 |
public function getOpenSslName(); |
| 22 |
/** |
| 23 |
* Returns the IV that should be used to initialize the next block in |
| 24 |
* encrypt or decrypt. |
| 25 |
* |
| 26 |
* @return string |
| 27 |
*/ |
| 28 |
public function getCurrentIv(); |
| 29 |
} |
| 30 |
|