error C2665: 'delete' : none of the 2 overloads can convert parameter 1 from type 'const unsigned
voidAES::MixColumns(){bytematrix[4][4]={{0x02,0x03,0x01,0x01},{0x01,0x02,0x03,0x01},{...
void AES::MixColumns()
{
byte matrix[4][4] = {
{0x02, 0x03, 0x01, 0x01},
{0x01, 0x02, 0x03, 0x01},
{0x01, 0x01, 0x02, 0x03},
{0x03, 0x01, 0x01, 0x02}};
const byte* temp = GFMultplyBytesMatrix((byte*)matrix, state);
for(int i = 0; i < 16; ++i)
{
state[i] = temp[i];
}
delete[] temp;
}
怎么解决这个错误啊?大神们 展开
{
byte matrix[4][4] = {
{0x02, 0x03, 0x01, 0x01},
{0x01, 0x02, 0x03, 0x01},
{0x01, 0x01, 0x02, 0x03},
{0x03, 0x01, 0x01, 0x02}};
const byte* temp = GFMultplyBytesMatrix((byte*)matrix, state);
for(int i = 0; i < 16; ++i)
{
state[i] = temp[i];
}
delete[] temp;
}
怎么解决这个错误啊?大神们 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询