MAC & MDC Flashcards
What are the main categories of modification check values?
Modification Detection Code (MDC) and Message Authentication Code (MAC)
What does MDC stands for?
It stands for Modification Detection Code
What does MAC stands for?
It stands for Message Authentication Code
Why not use traditional methods (as CRC; Parity; etc) to check if a message was modified?
Messages modified on purpose cannot be detected using those tecniches - intentional modification can’t be detected.
What are hash functions?
Hash functions are functions which compress input to a shorter output.
What are the main requirements for hash functions?
Easy computation - compression level - collision resistance - locality-sensitivity
What are cryptographic hash functions?
Cryptographic hash functions are a special class of hash functions which have certain properties which make them suitable for security applications and can be used to compute modification detection codes.
What are the extra propreties which a cryptographic hash function have to additionally satisfy?
Pre-image resistance; 2nd pré-image resistance and collision resistance
What is pre-image resistance?
It is computionally infeasible to find an x such that h(x) = y for essentially all pre-specified outputs y.
What is second pre-image resistance?
Given x it is computionally infeasible to find any second input x’ with x not equal to x’ such that h(x) = h(x’)
What is collision resistance?
It is computationally infeasible to find any pair (x;x’) with x different from x’ such that h(x)=h(x’)
Why messages authentication codes are important?
It is not only important to know that data changed because it is as important to know where it is from.
What is Message authentication code?
A message authentication code algorithm is a familly of functions hk parameterized by a secret key k with the following properties: compression; ease of computation; and computation-resistance.
What is compression in the scope of MAC algorithms?
Is the property which says that hk maps an input x of arbitrary finite bitlength to an output hk(x) of fixed bitlength - called MAC
What is Ease of computation in the MAC scope?
is the property that given k and x and a known function family hk the value hk(x) is easy to compute