Chinaunix首页 | 论坛 | 博客
  • 博客访问: 324011
  • 博文数量: 858
  • 博客积分: 3000
  • 博客等级: 中校
  • 技术积分: 8622
  • 用 户 组: 普通用户
  • 注册时间: 2009-05-30 12:01
文章分类

全部博文(858)

文章存档

2011年(1)

2009年(857)

我的朋友

分类:

2009-05-30 13:01:42

#include
#include

#define Nb 4

// xtime is a macro that finds the product of {02} and the argument to xtime modulo {1b}  
#define xtime(x)   ((x<<1) ^ (((x>>7) & 1) * 0x1b))
// Multiplty is a macro used to multiply numbers in the field GF(2^8)
#define Multiply(x,y) (((y & 1) * x) ^ ((y>>1 & 1) * xtime(x)) ^ ((y>>2 & 1) * xtime(xtime(x))) ^ ((y>>3 & 1) * xtime(xtime(xtime(……
阅读(252) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~