rsa side channel attack - asecuritysite.comsay hello to rsa • two primes p, q. • calculate n...

11
RSA Side Channel Attack Prof Bill Buchanan OBE, The Cyber Academy http://asecuritysite.com

Upload: others

Post on 16-Feb-2021

0 views

Category:

Documents


0 download

TRANSCRIPT

  • RSA Side Channel Attack

    ProfBillBuchananOBE,TheCyberAcademyhttp://asecuritysite.com

  • Say Hello To RSA

    • Twoprimesp,q.• CalculateN(modulus)aspxqeg3and11.n=33.

    • CalculatePHIas(p-1)x(q-1).PHI=20• SelectefornocommonfactorwithPHI.e=3.

    • Encryptionkey[e,n]or[3,33].• (dxe)modPHI=1• (dx3)mod20=1• d=7• Decryptionkey[d,n]or[7,33]

  • Say Hello To RSA

    • Encryptionkey[e,n]or[3,33].• Decryptionkey[d,n]or[7,33]• Cipher=MemodNegM=5.• Cipher=53mod33=26• Decipher=CdmodN• Decipher=(26)7mod33=5

  • RSA

    Square Square Square

    Binaryvalueof12is:0b1100BitResult2:25(square)2:125(multiply)3:15625(square)4:244140625(square)Result:244140625

    58x5=59

    1 - Square and multiply 0 - Square

    Link

    AxAy=Ax+y(Ax)y=Axy(Ax)2=A2x

    https://asecuritysite.com/encryption/sqm?val1=5&val2=128

  • RSA

    Link

    0(S),1(SM),1(SM),0(S),1SM,0(S),0(S),1(SM),1(SM),1(SM),0(S),1(SM).Wehavenowrevealedvirtuallyallofthebitsinthekey:

    UnderstandingCryptography:Atextbookforstudents,Page197.

    https://asecuritysite.com/encryption/sqm?val1=5&val2=128

  • RSA

    LinkSamsungGalaxyCenturaSCH-S738Csmartphone,anAlcatelIdealsmartphone,andanA13-OLinuXinoboard(Figure3).

    https://asecuritysite.com/encryption/sqm?val1=5&val2=128

  • RSA

    LinkSamsungGalaxyCenturaSCH-S738Csmartphone,anAlcatelIdealsmartphone,andanA13-OLinuXinoboard(Figure3).

    https://asecuritysite.com/encryption/sqm?val1=5&val2=128

  • RSA

    LinkInMontgomeryreductionweaddmultiplesofNinordertosimplythemultiplication.

    https://asecuritysite.com/encryption/mont_m

  • RSA

    LinkInMontgomeryreductionweaddmultiplesofNinordertosimplythemultiplication.

    https://asecuritysite.com/encryption/mont_m

  • RSA

    LinkInMontgomeryreductionweaddmultiplesofNinordertosimplythemultiplication.

    https://asecuritysite.com/encryption/mont_m

  • RSA Side Channel Attack

    ProfBillBuchananOBE,TheCyberAcademyhttp://asecuritysite.com