Cryptography

Birthday theorem

\mbox{Let F be a pseudo random function so that :}
F:x \to [0..n] \qquad and \qquad (a0..am) \epsilon [0..n]

\mbox{Then probability of } \exists (ai, ak) \epsilon (a0..am) \mbox{ so that } F(ai)=F(ak) :
P \simeq \frac{m^{2}}{2n} \qquad if \ m \ll n

\mbox{From this we can deduce the strenght of a k bit lenght hash.}
\mbox{To have a 50% chance of at least a collision :}
m = 2 ^ {\frac{k}{2}}

Some definitions

PKI_Cryptography.svg