1. A method comprising: receiving a characteristic function representing data; receiving a first hash code calculated from the characteristic function; transforming the characteristic function to an arithmetic function; calculating a second hash code from the arithmetic function; if the first hash code equals the second hash code, designating the data as valid; and otherwise, designating the data as invalid.