工具/软件:Code Composer Studio
我试图将一个轻量级加密代码从网上放到 MSP430FR5969微控制器上、但我的代码中有很多实例、其中显示 "#64D -移位计数太大"。
我使用的是 Code Composer Studio 8.0.0版。
是否有解决此问题的建议? 以下是一些行、如果它完全可以帮助您:
compress_Byte_array (k、k0_o、k0_e);
compress_Byte_array (k+8、k1_o、k1_e);
compress_Byte_array (npub、n0_o、n0_e);
compress_Byte_array (npub+8、n1_o、n1_e);
t1_e =(u32)(((crypto_KEYBYTES * 8)<< 24 |(速率* 8)<< 16 | pa_ROUNDS << 8 | PB_ROUNDS << 0);
x0_e = t1_e << 16;
x0_o = t1_o << 16;
compress_Byte_array (ad、in_o、in_e)
in_o |= t0_o << 16;
in_e |= t0_e << 16;
expand_U32 (t1_e、x0_o、x0_e);
expand_U32 (t1_o、x0_o>>16、x0_e>>16)
expand_U32 (t1_e、x3_o>>16、x3_e>>16);
((u32*) c)[0]= U32BIG (t1_e);
expand_U32 (t1_e、x3_o、x3_e);
((u32*) c)[1]= U32BIG (t1_e);
expand_U32 (t1_e、x4_o>>16、x4_e>>16);
((u32*) c)[2]= U32BIG (t1_e);
expand_U32 (t1_e、x4_o、x4_e);
((u32*) c)[3]= U32BIG (t1_e);
如果代码更好、我也可以链接!