Lines Matching refs:ksize
1105 if (vec->ksize) { in test_shash_vec_cfg()
1106 err = crypto_shash_setkey(tfm, vec->key, vec->ksize); in test_shash_vec_cfg()
1292 if (vec->ksize) { in test_ahash_vec_cfg()
1293 err = crypto_ahash_setkey(tfm, vec->key, vec->ksize); in test_ahash_vec_cfg()
1521 vec->ksize = 0; in generate_random_hash_testvec()
1523 vec->ksize = maxkeysize; in generate_random_hash_testvec()
1525 vec->ksize = 1 + (prandom_u32() % maxkeysize); in generate_random_hash_testvec()
1526 generate_random_bytes((u8 *)vec->key, vec->ksize); in generate_random_hash_testvec()
1529 vec->ksize); in generate_random_hash_testvec()
1540 vec->psize, vec->ksize); in generate_random_hash_testvec()
1810 if (template[nr_unkeyed].ksize) in alg_test_hash()
1814 if (!template[nr_unkeyed + nr_keyed].ksize) { in alg_test_hash()
1820 template[nr_unkeyed + nr_keyed].ksize); in alg_test_hash()