| 1 | <?php |
| 2 | namespace Aws\Crypto; |
| 3 | |
| 4 | use Psr\Http\Message\StreamInterface; |
| 5 | |
| 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 | /** |
| 17 | * Returns an identifier recognizable by `openssl_*` functions, such as |
| 18 | * `aes-256-cbc` or `aes-128-ctr`. |
| 19 | * |
| 20 | * @return string |
| 21 | */ |
| 22 | public function getOpenSslName(); |
| 23 | |
| 24 | /** |
| 25 | * Returns the IV that should be used to initialize the next block in |
| 26 | * encrypt or decrypt. |
| 27 | * |
| 28 | * @return string |
| 29 | */ |
| 30 | public function getCurrentIv(); |
| 31 | } |