01.06.2013 Views

Codici Segreti - Dipartimento di Matematica e Informatica

Codici Segreti - Dipartimento di Matematica e Informatica

Codici Segreti - Dipartimento di Matematica e Informatica

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.

CRITTOGRAFIA A CHIAVE PUBBLICA<br />

RSA – GENERAZIONE CHIAVI<br />

4. Bob sceglie un altro numero (esponente) e tale che<br />

MCD(e, Φ(n)) = 1<br />

◮ Sceglie un numero <strong>di</strong>spari delle <strong>di</strong>mensioni<br />

opportune<br />

◮ Esegue l’algoritmo <strong>di</strong> Euclide tra e e Φ(n)<br />

◮ Se l’output è 1, OK,<br />

◮ Altrimenti incrementa <strong>di</strong> due e ritenta<br />

◮ Il processo termina al più al numero primo<br />

successivo che non <strong>di</strong>vide né p − 1 né q − 1.<br />

5. Bob calcola d tale che de = 1 mod Φ(n). (si può<br />

fare <strong>di</strong>rettamente al passo precedente usando EE in<br />

luogo <strong>di</strong> Euclide)<br />

6. Bob pubblica la chiave (n, e).<br />

CODICI SEGRETI<br />

A. DOVIER<br />

CRITTOGRAFIA A<br />

CHIAVE PUBBLICA<br />

TRAPDOOR<br />

KNAPSACK<br />

INTRODUZIONE<br />

GENERAZIONE CHIAVI<br />

CIFRAZIONE<br />

DECIFRAZIONE<br />

DECRITTAZIONE<br />

RSA<br />

INTRODUZIONE<br />

GENERAZIONE CHIAVI<br />

CIFRAZIONE<br />

DECIFRAZIONE<br />

DECRITTAZIONE<br />

LO SCAMBIO<br />

DELLE CHIAVI

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

Saved successfully!

Ooh no, something went wrong!