11.07.2015 Views

Cryptography - Sage

Cryptography - Sage

Cryptography - Sage

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

sage: a5 := a^n5sage: c5 := c^n5sage: a5^1291106532280219457618983939634726858708298sage: c51106532280219457618983939634726858708298sage: a6 = a^n6sage: c6 = c^n6sage: a6^127809579285918008980133272648385832028198sage: c6809579285918008980133272648385832028198The discrete logarithm x can be recovered from the discrete logarithms x i = log ai(c i ) wherea i = a n iand c i = c n iby using the function crt to find the Chinese remainder lifting.sage: x = CRT([29,129,127],[2*3*5*37,p5,p6]);sage: x1075217203476555175652504438224037579sage: a^x eq cTrueDigital SignaturesSecret SharingExercise 10.1 Verify the correctness of the formula for the secret secret in Shamir’s secretsharing scheme by substituting into the formula of Lagrange’s interpolation theorem.132 Appendix C. Solutions to Exercises

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!