DES算法详细介绍我就不展开了,但是简略的过程如上。同样,有需要的读者适当考虑读全英文文献[1],或者利用各个社区进行系统的学习。
#include <stdio.h>#include <stdlib.h>typedef unsigned char Byte;typedef unsigned long long Bytes;// 为Bytes定义Permutate函数Bytes PermutateBytes(Bytes a, const int b[], int m, int n) {Bytes c 0;for (int i 0; i < n; i) {c (c << 1) | …