
Cryptography
文章平均质量分 76
kilvdn
O
展开
-
Data Encryption Standard (密码学作业一:DES)
#include stdio.h>#include string.h>int key[64] , tempkey[56] , subkey[16][48] ; int choose ;int zhxz1[56]=...{ 57,49,41,33,25,17,9 ,1 ,58,50,42,34,26,18,10,2 , 59,51,43,35,2原创 2006-11-18 17:50:00 · 1283 阅读 · 0 评论 -
密码学作业二:AES
#include stdio.h>#include stdlib.h>int sub[16],key[16];int S_BOX[256]=...{ //S盒表 99 ,124,119,123,242,107,111,194,48 ,1 ,103,43 ,254,215,171,118, 202,130,201,125,250,89 ,71 ,原创 2006-11-18 18:00:00 · 1523 阅读 · 0 评论 -
密码学作业三:ElGamal
#include stdio.h>int c1 , c2 , p , a , d , m , k , x , y ;int Mod(int x,int y,int m)...{//模平方的运算 int a,b; a=1; b=x; while( y )...{ if( y % 2 == 1 ) a = a * b % m ; y原创 2006-11-18 18:01:00 · 1795 阅读 · 0 评论