27.06.2014 Views

La sicurezza nelle comunicazioni fra PC

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

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

RSA: ci<strong>fra</strong>tura, deci<strong>fra</strong>zione<br />

• Dati (n,e) e (n,d) calcolati come al punto<br />

precedente<br />

• Per ci<strong>fra</strong>re la stringa di bit corrispondente a<br />

m, calcola<br />

– c= m e mod n<br />

• Per deci<strong>fra</strong>re c, calcola<br />

– m= c d mod n<br />

• Si può dimostrare che:<br />

– m= (m e mod n ) d mod n

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

Saved successfully!

Ooh no, something went wrong!