Added helpers to remove / append zero bytes from encrypted data.