Lines Matching refs:st
75 static void self_test_setparams(OSSL_SELF_TEST *st) in self_test_setparams() argument
79 if (st->cb != NULL) { in self_test_setparams()
80 st->params[n++] = in self_test_setparams()
82 (char *)st->phase, 0); in self_test_setparams()
83 st->params[n++] = in self_test_setparams()
85 (char *)st->type, 0); in self_test_setparams()
86 st->params[n++] = in self_test_setparams()
88 (char *)st->desc, 0); in self_test_setparams()
90 st->params[n++] = OSSL_PARAM_construct_end(); in self_test_setparams()
109 void OSSL_SELF_TEST_free(OSSL_SELF_TEST *st) in OSSL_SELF_TEST_free() argument
111 OPENSSL_free(st); in OSSL_SELF_TEST_free()
115 void OSSL_SELF_TEST_onbegin(OSSL_SELF_TEST *st, const char *type, in OSSL_SELF_TEST_onbegin() argument
118 if (st != NULL && st->cb != NULL) { in OSSL_SELF_TEST_onbegin()
119 st->phase = OSSL_SELF_TEST_PHASE_START; in OSSL_SELF_TEST_onbegin()
120 st->type = type; in OSSL_SELF_TEST_onbegin()
121 st->desc = desc; in OSSL_SELF_TEST_onbegin()
122 self_test_setparams(st); in OSSL_SELF_TEST_onbegin()
123 (void)st->cb(st->params, st->cb_arg); in OSSL_SELF_TEST_onbegin()
131 void OSSL_SELF_TEST_onend(OSSL_SELF_TEST *st, int ret) in OSSL_SELF_TEST_onend() argument
133 if (st != NULL && st->cb != NULL) { in OSSL_SELF_TEST_onend()
134 st->phase = in OSSL_SELF_TEST_onend()
136 self_test_setparams(st); in OSSL_SELF_TEST_onend()
137 (void)st->cb(st->params, st->cb_arg); in OSSL_SELF_TEST_onend()
139 st->phase = OSSL_SELF_TEST_PHASE_NONE; in OSSL_SELF_TEST_onend()
140 st->type = OSSL_SELF_TEST_TYPE_NONE; in OSSL_SELF_TEST_onend()
141 st->desc = OSSL_SELF_TEST_DESC_NONE; in OSSL_SELF_TEST_onend()
153 int OSSL_SELF_TEST_oncorrupt_byte(OSSL_SELF_TEST *st, unsigned char *bytes) in OSSL_SELF_TEST_oncorrupt_byte() argument
155 if (st != NULL && st->cb != NULL) { in OSSL_SELF_TEST_oncorrupt_byte()
156 st->phase = OSSL_SELF_TEST_PHASE_CORRUPT; in OSSL_SELF_TEST_oncorrupt_byte()
157 self_test_setparams(st); in OSSL_SELF_TEST_oncorrupt_byte()
158 if (!st->cb(st->params, st->cb_arg)) { in OSSL_SELF_TEST_oncorrupt_byte()