Warrior0322

导航

2020年9月17日 #

关于32bit密钥分段16bit的SPN的简短实现方案

摘要: (以下方案无法用于密钥更长的SPN类型。可以试试,不过消耗时间会异常多) #define uint unsigned int#define us unsigned short#define Nr 65536 using namespace std; int K[7];int S2[16] = { 1 阅读全文

posted @ 2020-09-17 10:38 Warrior0322 阅读(168) 评论(0) 推荐(0) 编辑

关于AES的S盒子的计算

摘要: 对于置换piS 有如下计算: The matrix used in AES is a rotational matrix based on the value 0x1F, which is 00011111 in binary. The multiplication is performed in 阅读全文

posted @ 2020-09-17 10:31 Warrior0322 阅读(408) 评论(0) 推荐(0) 编辑