Cipher
11 months ago
Polyfill
11 months ago
AbstractCryptoClient.php
11 months ago
AbstractCryptoClientV2.php
11 months ago
AesDecryptingStream.php
11 months ago
AesEncryptingStream.php
11 months ago
AesGcmDecryptingStream.php
11 months ago
AesGcmEncryptingStream.php
11 months ago
AesStreamInterface.php
11 months ago
AesStreamInterfaceV2.php
11 months ago
DecryptionTrait.php
11 months ago
DecryptionTraitV2.php
11 months ago
EncryptionTrait.php
11 months ago
EncryptionTraitV2.php
11 months ago
KmsMaterialsProvider.php
11 months ago
KmsMaterialsProviderV2.php
11 months ago
MaterialsProvider.php
11 months ago
MaterialsProviderInterface.php
11 months ago
MaterialsProviderInterfaceV2.php
11 months ago
MaterialsProviderV2.php
11 months ago
MetadataEnvelope.php
11 months ago
MetadataStrategyInterface.php
11 months ago
AesStreamInterface.php
31 lines
| 1 | <?php |
| 2 | namespace Aws\Crypto; |
| 3 | |
| 4 | use Psr\Http\Message\StreamInterface; |
| 5 | |
| 6 | interface AesStreamInterface extends StreamInterface |
| 7 | { |
| 8 | /** |
| 9 | * Returns an identifier recognizable by `openssl_*` functions, such as |
| 10 | * `aes-256-cbc` or `aes-128-ctr`. |
| 11 | * |
| 12 | * @return string |
| 13 | */ |
| 14 | public function getOpenSslName(); |
| 15 | |
| 16 | /** |
| 17 | * Returns an AES recognizable name, such as 'AES/GCM/NoPadding'. |
| 18 | * |
| 19 | * @return string |
| 20 | */ |
| 21 | public function getAesName(); |
| 22 | |
| 23 | /** |
| 24 | * Returns the IV that should be used to initialize the next block in |
| 25 | * encrypt or decrypt. |
| 26 | * |
| 27 | * @return string |
| 28 | */ |
| 29 | public function getCurrentIv(); |
| 30 | } |
| 31 |