代码搜索:SubBytes
找到约 19 项符合「SubBytes」的源代码
代码结果 19
www.eeworm.com/read/229983/14309719
vhd subbytes_lut.vhd
-------------------------------------------------------------------------------
-- Title : A compact 8bit AES encryption core
-------------------------------------------------------------------
www.eeworm.com/read/429104/8819130
m aes.m
function y=AES(state,key,Nk)
Nb=4;
if Nk==4
Nr=lO;
elseif Nk==6
Nr=12;
elseif Nk==8
Nr=14;
end
w=keyexpansion(key,NK,Nr);
round=0;
state=Addroundkey(state,round,Nb,w);
for
www.eeworm.com/read/274056/10889539
txt rijindael.txt
#include
#include
typedef unsigned char word8;
typedef unsigned int word32;
int main()
{
word8 Logtable[256] =
{ 0, 0, 25, 1, 50, 2, 26, 198, 75, 199, 27, 104, 51, 238, 22
www.eeworm.com/read/234408/14114398
c streamdecrypt.c
#include
#include
#include
#include"rijndael.h"
static word8 shifts[5][4]={
0,1,2,3,
0,1,2,3,
0,1,2,3,
0,1,2,4,
0,1,3,4,};
word8 m
www.eeworm.com/read/234407/14114405
c streamencrypt.c
#include
#include
#include
#include"rijndael.h"
word8 mul(word8 a,word8 b){
if (a&&b)
return Alogtable[(Logtable[a] + Logtable[b])%255];
else r
www.eeworm.com/read/337486/12365952
v encryption.v
module encryption ( clk,
sel,
clken_sb,
data_in,
key_in,
data_out,
final_out,
);
parameter AES_length = 128;
parameter AES_Round = 10;
input clk, sel,
www.eeworm.com/read/337486/12365962
v decryption.v
module decryption ( clk,
sel,
round,
clken_sb,
data_in,
key_in,
data_out,
final_out
);
parameter AES_length = 128;
parameter AES_Round = 10;
inp
www.eeworm.com/read/466587/7029380
cpp aescodec.cpp
#include "StdAfx.h"
#include "AesCodec.h"
// 用于SubBytes的S-box,为了加快运算速度,转换为一维表达
AES_BYTE AES_S_box[256] = {
0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5, 0x30, 0x01, 0x67, 0x2b, 0xfe,
www.eeworm.com/read/139181/13185220
cpp aescodec.cpp
#include "aescodec.h"
// 用于SubBytes的S-box,为了加快运算速度,转换为一维表达
AES_BYTE AES_S_box[256] = {
0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5, 0x30, 0x01, 0x67, 0x2b, 0xfe, 0xd7, 0xab, 0x76,