AES-GCM code

This commit is contained in:
Adam Ierymenko
2019-08-12 12:51:32 -07:00
parent 1e8fcf1344
commit d02d3f72fe
2 changed files with 603 additions and 45 deletions

View File

@ -293,10 +293,7 @@ static const uint32_t Te3[256] = {
0x2d2d775a,0x0f0f111e,0xb0b0cb7b,0x5454fca8,0xbbbbd66d,
0x16163a2c
};
static const uint32_t rcon[] = {
0x01000000, 0x02000000, 0x04000000, 0x08000000, 0x10000000,
0x20000000, 0x40000000, 0x80000000, 0x1B000000, 0x36000000,
};
static const uint32_t rcon[10] = { 0x01000000,0x02000000,0x04000000,0x08000000,0x10000000,0x20000000,0x40000000,0x80000000,0x1B000000,0x36000000 };
} // anonymous namespace