资源简介
ZUC算法相关原理的详细介绍,及其程序代码示例
代码片段和文件信息
/* ---------------------------- EEA3 ----------------------------------------- */
/* The ZUC algorithm see ref. [3]*/
void ZUC(u8* k u8* iv u32* ks int len)
{
/* The initialization of ZUC see page 17 of ref. [3]*/
Initialization(k iv);
/* The procedure of generating keystream of ZUC see page 18 of ref. [3]*/
GenerateKeystream(ks len);
}
void EEA3(u8* CKu32 COUNTu32 BEARERu32 DIRECTIONu32 LENGTHu32* Mu32* C)
{
u32 *z L i;
u8 IV[16];
L = (LENGTH+31)/32;
z = (u32 *) malloc(L*sizeof(u32));
IV[0] = (COUNT>>24) & 0xFF;
IV[1] = (COUNT>>16) & 0xFF;
IV[2] = (COUNT>>8) & 0xFF;
IV[3] = COUNT & 0xFF;
IV[4] = ((BEARER << 3) | ((DIRECTION&1)<<2)) & 0xFC;
IV[5] = 0;
IV[6] = 0;
IV[7] = 0;
IV[8] = IV[0];
IV[9] = IV[1];
IV[10] = IV[2];
IV[11] = IV[3];
IV[12] = IV[4];
IV[13] = IV[5];
IV[14] = IV[6];
IV[15] = IV[7];
ZUC(CKIVzL);
for (i=0; i {
C[i] = M[i] ^ z[i];
}
free(z);
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 647038 2012-03-28 22:21 ZUC\ZUC相关介绍\EEA3_EIA3_Design_Evaluation_v1_3.pdf
文件 306268 2012-03-28 22:21 ZUC\ZUC相关介绍\EEA3_EIA3_specification_v1_6.pdf
文件 227188 2012-03-28 22:21 ZUC\ZUC相关介绍\EEA3_EIA3_Test_Data_v1_1.pdf
文件 293332 2012-03-28 22:22 ZUC\ZUC相关介绍\EEA3_EIA3_ZUC_v1_6.pdf
文件 1003 2010-09-10 12:03 ZUC\ZUC程序代码\128_EEA3.c
文件 1477 2010-09-10 12:04 ZUC\ZUC程序代码\128_EIA3.c
文件 7669 2010-09-10 12:02 ZUC\ZUC程序代码\zuc.c
目录 0 2014-10-27 09:59 ZUC\ZUC相关介绍
目录 0 2014-10-27 09:20 ZUC\ZUC程序代码
目录 0 2014-10-27 09:59 ZUC
----------- --------- ---------- ----- ----
1483975 10
评论
共有 条评论