$plaintext = substr($input . ("\x00" x $ciphertextsize), 0, $ciphertextsize);