分组密码SAFER+的C#实现
2009-02-27 08:18:34 来源:WEB开发网if (i < 16)
{
for (j = 0; j < 16; ++j)
{
m_nKeyExpandBox[l + j] = (byte)((m_nKeyBox[m] + m_nExpBox[m_nExpBox[(k + j) & 0xFF]]) & 0xFF);
m = (m == m_nChipherLen ? 0 : m + 1);
}
}
else
{
for (j=0;j<16;++j)
{
m_nKeyExpandBox[l + j] = (byte)((m_nKeyBox[m] + m_nExpBox[(k + j) & 0xFF]) & 0xFF);
m = (m == m_nChipherLen ? 0 : m + 1);
}
}
更多精彩
赞助商链接