DES CFB and OFB模式 文件.docVIP

  • 24
  • 0
  • 约1.27万字
  • 约 12页
  • 2017-06-13 发布于湖北
  • 举报
DES CFB and OFB模式 文件

#include stdio.h #include memory.h #include time.h #include stdlib.h #includestring.h #define PLAIN_FILE_OPEN_ERROR -1 #define KEY_FILE_OPEN_ERROR -2 #define CIPHER_FILE_OPEN_ERROR -3 #define OK 1 typedef char ElemType; //初始置换表IP int IP_Table[64] = { 58, 50, 42, 34, 26, 18, 10, 2,60, 52, 44, 36, 28, 20, 12, 4, 62, 54, 46, 38, 30, 22, 14, 6,64, 56, 48, 40, 32, 24, 16, 8, 57, 49, 41, 33, 25, 17, 9, 1,59, 51, 43, 35, 27, 19, 11, 3, 61, 53, 45, 37, 29, 21, 13, 5,63, 55, 47, 39, 31, 23, 15, 7 };//初始置换表 //逆初始置换表IP^-1 int IP_1_Table[64] = { 40, 8, 48, 16, 56, 24, 64, 32,39, 7, 47, 15, 55, 23, 63

文档评论(0)

1亿VIP精品文档

相关文档