Lines Matching refs:test
24 kdf_test(const struct kdf_testvec *test, const char *name,
35 u8 *buf = kzalloc(test->expectedlen, GFP_KERNEL);
48 ret = crypto_kdf_setkey(kmd, test->key, test->keylen,
49 test->ikm, test->ikmlen);
55 ret = crypto_kdf_generate(kmd, &test->info, 1, buf, test->expectedlen);
61 ret = memcmp(test->expected, buf, test->expectedlen);