- var_dump: documentation ( source)
<?php
function getExpectedCiphertextSize(int $sizeOfInput) : int
{
return 4 // Version tag
+ 16 // IV
+ 16 // HKDF Salt
+ 32 // HMAC-SHA-256
+ $sizeOfInput;
}
var_dump(getExpectedCiphertextSize(100));