Skip to content

felixjansson/PA-TDA352

Repository files navigation

Programming Assignment - TDA352

Cryptlib: A library that provides a number of mathematical functions commonly used in cryptography, i.e. Euler's Phi Function (Totient), the Extended Euclidean Algorithm, modular inverse etc.

Fiat-Shamir-Attack: Eavesdropped on a number of Fiat-Shamir protocol runs. Found that the same nonce was used twice! Due to the special soundness property, the secret key used in the protocol can be retrieved. :)

CBC-Attack: Intercepted a message that was encrypted using cipher-block chaining and decrypt it under the premise: knowing the plain-text value of the first block. ^^

RSA-Attack: The same message is encrypted using RSA to three different recipients. The enablers of the attack are (1) all recipients have the same public key (e = 3) and (2) the recipients have different modulus (N1, N2, N3) that are coprime.

ElGamal-Attack: Two ElGamal encryptions of the same message can look completely different. However, this also makes the strength of the encryption depend on the random number generation, which is weak here.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published