dh.txt

download dh.txt

If you can't read please download the document

description

dh

Transcript of dh.txt

//Diffie hellmen Page no:1 #include #include #include #include #define TRUE 1 #define FALSE 0 int checkprime(int a) { for(int i=2;i1) { i=(i*ij) % a; j-=1; } if(j==1) i=(i*ij) % a; return i; } int find_primitive_root(int a) { int t[1000],v[1000],s=0; int i,j,k; for(i=0;i