Lines Matching refs:funcs
122 test_setup(cryptotest_t *args, test_fg_t *funcs, crypto_op_t **opp) in test_setup() argument
127 switch (funcs->tf_fg) { in test_setup()
142 funcs->tf_fg); in test_setup()
146 if ((crypto_op = cryptotest_init(args, funcs->tf_fg)) == NULL) { in test_setup()
167 test_multi(cryptotest_t *args, test_fg_t *funcs, uint8_t *cmp, size_t cmplen) in test_multi() argument
176 if ((ret = test_setup(args, funcs, &crypto_op)) != CRYPTO_SUCCESS) { in test_multi()
214 if ((ret = funcs->tf_init(crypto_op)) != CRYPTO_SUCCESS) { in test_multi()
226 ret = funcs->tf_update(crypto_op, offset, len, &outlen); in test_multi()
242 ret = funcs->tf_final(crypto_op, outlen); in test_multi()
268 test_single(cryptotest_t *args, test_fg_t *funcs, uint8_t *cmp, size_t cmplen) in test_single() argument
276 if ((ret = test_setup(args, funcs, &crypto_op)) != CRYPTO_SUCCESS) { in test_single()
281 if ((ret = funcs->tf_init(crypto_op)) != CRYPTO_SUCCESS) { in test_single()
286 if ((ret = funcs->tf_single(crypto_op)) != CRYPTO_SUCCESS) in test_single()
317 test_fg_t *funcs) in run_test() argument
324 errs += test_multi(args, funcs, cmp, cmplen); in run_test()
328 errs += test_single(args, funcs, cmp, cmplen); in run_test()