Function hiding based on error correcting codes