Class AesGcmEncryptingStream
- Aws\Crypto\AesGcmEncryptingStream implements Aws\Crypto\AesStreamInterface, Aws\Crypto\AesStreamInterfaceV2 uses GuzzleHttp\Psr7\StreamDecoratorTrait
- Namespace: Aws\Crypto
- Located at Crypto/AesGcmEncryptingStream.php
Methods Summary
-
static
getStaticAesName ( )
Same as non-static 'getAesName' method, allowing calls in a static context.
- __construct ( Psr\Http\Message\StreamInterface $plaintext, string $key, string $initializationVector, string $aad = '', int $tagLength = 16, int $keySize = 256 )
-
getOpenSslName ( )
Returns an identifier recognizable by
openssl_*
functions, such asaes-256-cbc
oraes-128-ctr
. -
getAesName ( )
Same as static method and retained for backwards compatibility
-
getCurrentIv ( )
Returns the IV that should be used to initialize the next block in encrypt or decrypt.
- createStream ( )
- getTag ( )
-
isWritable ( )
Returns whether or not the stream is writable.
Methods inherited from Psr\Http\Message\StreamInterface
__toString()
,
close()
,
detach()
,
eof()
,
getContents()
,
getMetadata()
,
getSize()
,
isReadable()
,
isSeekable()
,
read()
,
rewind()
,
seek()
,
tell()
,
write()
Methods used from GuzzleHttp\Psr7\StreamDecoratorTrait
Methods Details
static string getStaticAesName ( )
Same as non-static 'getAesName' method, allowing calls in a static context.
Returns
string |
Implementation of
__construct (
Psr\Http\Message\StreamInterface
$plaintext,
string
$key,
string
$initializationVector,
string
$aad = '',
integer
$tagLength = 16,
integer
$keySize = 256
)
Parameters
Psr\Http\Message\StreamInterface |
$plaintext | |
string | $key | |
string | $initializationVector | |
string | $aad = '' | |
integer | $tagLength = 16 | |
integer | $keySize = 256 |
string getOpenSslName ( )
Returns an identifier recognizable by openssl_*
functions, such as
aes-256-cbc
or aes-128-ctr
.
Returns
string |
Implementation of
string getAesName ( )
Same as static method and retained for backwards compatibility
Returns
string |
Implementation of
string getCurrentIv ( )
Returns the IV that should be used to initialize the next block in encrypt or decrypt.
Returns
string |
Implementation of
createStream ( )
string getTag ( )
Returns
string |
boolean isWritable ( )
Returns whether or not the stream is writable.
Returns
boolean |