RSA加解密算法C语言的实现.docxVIP

  • 8
  • 0
  • 约1.72万字
  • 约 30页
  • 2021-01-08 发布于天津
  • 举报
#in cludestdio.h #in cludestri ng.h #i nclude stdlib.h #in elude time.h #in elude math.h #i nclude malloc.h #defi ne MAX 100 #defi ne LEN sizeof(struct sli nk) void sub(i nt a[MAX],i nt b[MAX] ,int c[MAX]); struct sli nk { int big nu m[MAX]; /*bignum[98]用来标记正负号,1正,0负bignum[99]来标记实际长度*/ struct sli nk *n ext; }; /*/ 自己建立的大数运算库 */ void print( int a[MAX]) { int i; for(i=0;ia[99];i++) prin tf(%d,a[a[99]-i-1]); prin tf(\n\n); return; } int cmp(int a1[MAX],int a2[MAX]) { int 11,12; int i; l1= a1[99]; I2=a2[99]; if (I1I2) return 1; if (I1I2) return -1; for(i=(I1-1);i=0;i--) { if (a1[i]a2[i]) return

文档评论(0)

1亿VIP精品文档

相关文档