AesStreamInterface.php 656 B

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