Class Gmac
- Aws\Crypto\Polyfill\Gmac uses Aws\Crypto\Polyfill\NeedsTrait
- Namespace: Aws\Crypto\Polyfill
- Located at Crypto/Polyfill/Gmac.php
Class Gmac
Methods Summary
-
__construct ( Aws\Crypto\Polyfill\Key $aesKey, string $nonce, int $keySize = 256 )
Gmac constructor.
-
update ( Aws\Crypto\Polyfill\ByteArray $blocks )
Update the object with some data.
-
finish ( int $aadLength, int $ciphertextLength )
Finish processing the authentication tag.
-
flush ( )
Finish processing any leftover bytes in the internal buffer.
Methods used from Aws\Crypto\Polyfill\NeedsTrait
Methods Details
__construct (
Aws\Crypto\Polyfill\Key
$aesKey,
string
$nonce,
integer
$keySize = 256
)
Aws\Crypto\Polyfill\Gmac
update (
Aws\Crypto\Polyfill\ByteArray
$blocks
)
Update the object with some data.
This method mutates this Gmac object.
Parameters
Aws\Crypto\Polyfill\ByteArray |
$blocks |
Returns
Aws\Crypto\Polyfill\Gmac |
Aws\Crypto\Polyfill\ByteArray
finish (
integer
$aadLength,
integer
$ciphertextLength
)
Finish processing the authentication tag.
This method mutates this Gmac object (effectively resetting it).
Parameters
integer | $aadLength | |
integer | $ciphertextLength |
Returns
Aws\Crypto\Polyfill\ByteArray |
Aws\Crypto\Polyfill\Gmac
flush (
)
Constants summary
integer |
BLOCK_SIZE
|
#
16
|