Lines Matching defs:testdata
897 struct { byte key[24]; byte plain[8]; byte cipher[8]; } testdata[] = {
965 for (i=0; i<sizeof(testdata)/sizeof(*testdata); ++i)
967 tripledes_set3keys (des3, testdata[i].key,
968 testdata[i].key + 8, testdata[i].key + 16);
970 tripledes_ecb_encrypt (des3, testdata[i].plain, result);
971 if (memcmp (testdata[i].cipher, result, 8))
974 tripledes_ecb_decrypt (des3, testdata[i].cipher, result);
975 if (memcmp (testdata[i].plain, result, 8))