Integrity

Integrity is intended to protect information from unauthorized modification. In most cases, it does not prevent the modification itself, but rather detects an unauthorized modification.

This is usually done using hash functions. These functions map input data to a hash value of a fixed size. This hash function is based on the one-way function requirement, which means that it should be possible to calculate a hash value from input data using simple means, However, it should not be possible to deduce information about the input data from the hash value. Even minor changes to the input data should be clearly visible in the hash value. Additionally, the function must be free of collisions, meaning it should be mathematically very difficult for two different input data to result in the same hash value.