update zuc

with zuc_spec test passed
This commit is contained in:
Zhi Guan
2017-12-26 22:57:54 +08:00
parent d8e57c5432
commit b920f5af10
4 changed files with 42 additions and 18 deletions

View File

@@ -108,6 +108,19 @@ int main(int argc, char **argv)
{
int err = 0;
unsigned char key[][] = {
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},
{0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff},
{0x3d,0x4c,0x4b,0xe9,0x6a,0x82,0xfd,0xae,0xb5,0x8f,0x64,0x1d,0xb1,0x7b,0x45,0x5b},
};
unsigned char iv[][] = {
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},
{0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff},
{0x84,0x31,0x9a,0xa8,0xde,0x69,0x15,0xca,0x1f,0x6b,0xda,0x6b,0xfb,0xd8,0xc7,0x66},
};
uint32_t z0[] = {0x286dafe5,0x668b56df,0x3ead461d};
uint32_t z1[] = {0x27bedc74,0x0657cfa0,0x14f1c272};
uint32_t z2[] = {0x018082da,0x7096398b,0x3279c419};
return err;
}