Minor cryptoutil improvements