AesStreamInterfaceV2.php 728 B

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